/* POS Empresarial — Landing (posempresarial.com)
   Tema oscuro profesional, alineado con la página de Revendedores
   (landing-empresarial/revendedores.html): fondo azul noche, paneles
   #101B31, acento esmeralda #10B981 y primario azul #2563EB. */

:root {
  /* Paleta compartida con revendedores.html */
  --accent: #10B981;
  --accent-ink: #06281E;
  --blue-700: #1d4ed8;
  --blue-600: #2563EB;
  --blue-soft: #5B8DEF;
  --blue-100: rgba(91, 141, 239, 0.35);
  --blue-50: rgba(37, 99, 235, 0.14);
  --ink-900: #F8FAFC;   /* títulos */
  --ink-700: #C3CBDC;   /* cuerpo */
  --ink-500: #7C8AA5;   /* texto secundario */
  --ink-400: #5E6C8C;   /* texto tenue */
  --line: #22304D;
  --paper: #070D1A;     /* fondo de página */
  --paper-alt: #0B1220; /* secciones alternas / footer */
  --card: #101B31;      /* tarjetas y paneles */
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-phone: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(16, 185, 129, 0.35); color: var(--ink-900); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-700);
}
.btn-outline:hover { border-color: var(--accent); color: var(--ink-900); }

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img {
  width: 40px;
  height: auto;
  /* El logo tiene fondo blanco opaco: chip claro para que luzca sobre el tema oscuro */
  background: #fff;
  border-radius: 10px;
  padding: 3px;
}
.brand-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.75rem; color: var(--ink-500); margin-top: -2px; }

.nav-links { display: none; gap: 2rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-700); }
.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions .btn-outline { display: none; }

.menu-btn {
  display: inline-flex;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  color: var(--ink-700);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 0.75rem 1.25rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 500;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 0.75rem; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-actions .btn-outline { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Navbar compacta en pantallas pequeñas */
@media (max-width: 639px) {
  .brand-tag { display: none; }
  .brand img { width: 34px; }
  .nav-actions .btn-primary { padding: 0.55rem 0.9rem; font-size: 0.8125rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(45rem 26rem at 0% 110%, rgba(16, 185, 129, 0.10), transparent 60%),
    var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-soft);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 .hl { color: var(--accent); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-700);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-500);
}
.hero-points span, .hero-points a { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points svg { color: var(--accent); flex-shrink: 0; }
.hero-wa:hover { color: var(--accent); }

/* Teléfonos del hero */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  min-height: 26rem;
}
.phone {
  width: min(46%, 15.5rem);
  border-radius: 1.75rem;
  border: 6px solid #1E2A45;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  background: var(--card);
}
.phone img { width: 100%; height: auto; }
.phone-back {
  transform: rotate(-6deg) translateX(18%);
  opacity: 0.92;
}
.phone-front {
  transform: rotate(3deg) translateX(-14%);
  z-index: 2;
}

@media (max-width: 959px) {
  .hero-phones { min-height: 0; margin-top: 0.5rem; padding-bottom: 0.5rem; }
  .phone { width: min(52%, 12rem); }
}

/* ---------- Franja de rubros ---------- */
.trades {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  padding: 1.1rem 0;
}
.trades-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.trades-inner span { display: inline-flex; align-items: center; gap: 1.75rem; }
.trades-inner span:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.section-lead { font-size: 1.0625rem; color: var(--ink-700); }

/* ---------- Galería de capturas ---------- */
.shots {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, 1fr); } }

.shot { text-align: center; }
.shot .phone {
  width: min(100%, 16rem);
  margin: 0 auto 1.25rem;
  border-width: 5px;
  border-radius: 1.5rem;
}
.shot h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.35rem; }
.shot p { font-size: 0.9375rem; color: var(--ink-500); max-width: 17rem; margin: 0 auto; }

/* ---------- Filas de funciones (alternadas) ---------- */
.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature-row.flip .feature-media { order: 2; }
}
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(75%, 17rem); }
.feature-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.feature-body > p { color: var(--ink-700); margin-bottom: 1.25rem; }
.feature-list { list-style: none; display: grid; gap: 0.65rem; }
.feature-list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--ink-700);
}
.feature-list svg { color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }

/* ---------- Rubros (grid de tarjetas) ---------- */
.trade-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .trade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trade-grid { grid-template-columns: repeat(3, 1fr); } }

.trade-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.trade-card:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: var(--shadow-card); }
.trade-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.4rem; }
.trade-card p { font-size: 0.9375rem; color: var(--ink-500); }

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--card);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-soft);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; color: var(--ink-500); }

/* ---------- Precios ---------- */
.plans {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .plans { grid-template-columns: 1fr 1fr 1fr; } }

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.plan.featured {
  border: 2px solid var(--accent);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.plan-desc { font-size: 0.9375rem; color: var(--ink-500); margin-bottom: 1.25rem; min-height: 2.8em; }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.35rem; }
.plan-price .amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-price .per { color: var(--ink-500); }
.plan-note { font-size: 0.8125rem; color: var(--ink-400); margin-bottom: 1.5rem; }

.plan-list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.75rem; }
.plan-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-700);
}
.plan-list svg { color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }

.plans-foot {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-500);
  margin-top: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 1.1rem 1.25rem;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 1rem; height: 1rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237C8AA5' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin-top: 0.75rem; color: var(--ink-500); font-size: 0.9375rem; }

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(135deg, #101B31 0%, #0E2148 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--ink-900);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
}
@media (min-width: 760px) { .cta-band { padding: 4.5rem 3rem; } }
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}
.cta-band p {
  color: var(--ink-700);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.cta-band .btn-light {
  background: var(--accent);
  color: var(--accent-ink);
}
.cta-band .btn-light:hover { filter: brightness(1.1); }
.cta-band .btn-ghost {
  border-color: var(--line);
  color: var(--ink-900);
  background: transparent;
}
.cta-band .btn-ghost:hover { border-color: var(--accent); }
.cta-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.cta-wa { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-500); }
.cta-wa a { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.65); }
.wa-float svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.wa-float .wa-label { display: none; font-weight: 600; font-size: 0.875rem; padding-right: 0.4rem; }
@media (min-width: 640px) {
  .wa-float { padding: 0.8rem 1.1rem; }
  .wa-float .wa-label { display: inline; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.875rem; }
.footer-brand img {
  width: 34px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
}
.footer-brand span { font-weight: 700; font-size: 1.0625rem; }
.footer-about { font-size: 0.9375rem; color: var(--ink-500); max-width: 24rem; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9375rem; color: var(--ink-500); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-400);
}

/* ---------- Accesibilidad ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
