/* CobranzaPC — landing de producto de cobranza (suscripción de pago) */

:root {
  --ink: #0b1f2a;
  --ink-2: #143041;
  --ink-soft: #4a6170;
  --paper: #f4f7f8;
  --paper-2: #e8eef1;
  --white: #ffffff;
  --teal: #0d7a72;
  --teal-deep: #0a5f59;
  --teal-soft: #d3ebe8;
  --sand: #f3ebe0;
  --line: rgba(11, 31, 42, 0.12);
  --line-strong: rgba(11, 31, 42, 0.2);
  --shadow: 0 20px 50px rgba(11, 31, 42, 0.14);
  --font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --radius: 0.7rem;
  --header-h: 4.15rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --app-height: 100vh;
}

@supports (height: 100dvh) {
  :root { --app-height: 100dvh; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}
/* El panel móvil debe poder scrollear; el fondo no */
body.nav-open main,
body.nav-open .hero {
  touch-action: none;
}
body.nav-open .site-nav {
  touch-action: pan-y;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 700;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.shell {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Fondo opaco en el propio header; el blur va en ::before.
     backdrop-filter en este elemento crea containing block y colapsa
     el .site-nav position:fixed a ~header-h (menú de pocos px). */
  background: color-mix(in srgb, var(--ink) 94%, #000);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1140px, calc(100% - 2rem));
}

.brand-logo {
  height: 2.45rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: #fff;
  display: block;
}

.nav-backdrop {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.42rem 0.8rem; font-size: 0.86rem; }
.btn-lg { padding: 0.88rem 1.3rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 122, 114, 0.28);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.95;
}
.site-nav .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.plan .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.plan .btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(var(--app-height) - var(--header-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(13, 122, 114, 0.28), transparent 55%),
    radial-gradient(700px 420px at 5% 90%, rgba(243, 235, 224, 0.12), transparent 50%),
    linear-gradient(155deg, #0b1f2a 0%, #123445 48%, #0d2a36 100%);
  color: #fff;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 40% 40%, #000 20%, transparent 75%);
}
.hero-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(2rem, 5vh, 3.25rem) 0;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  color: #8fd4cb;
  margin: 0 0 0.55rem;
  letter-spacing: -0.03em;
  animation: rise 0.7s var(--ease) both;
}
.hero h1 {
  color: #fff;
  animation: rise 0.75s var(--ease) 0.06s both;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 34rem;
  animation: rise 0.75s var(--ease) 0.12s both;
}
.hero-paid {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.75rem;
  border-left: 3px solid #8fd4cb;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  animation: rise 0.75s var(--ease) 0.16s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.75s var(--ease) 0.2s both;
}

.hero-stage { animation: rise 0.85s var(--ease) 0.18s both; }

.stage-screen {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.stage-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
}
.stage-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.stage-chrome span:nth-child(1) { background: #e8a090; }
.stage-chrome span:nth-child(2) { background: #e2c87a; }
.stage-chrome span:nth-child(3) { background: #8fd4cb; }
.stage-chrome em { margin-left: auto; font-style: normal; }
.stage-body { display: grid; gap: 0.65rem; }
.stage-kpi {
  padding: 0.85rem 0.95rem;
  border-radius: 0.65rem;
  background: rgba(11, 31, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stage-kpi strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fd4cb;
  margin-bottom: 0.2rem;
}
.stage-kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.stage-kpi i {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}
.stage-kpi-accent {
  background: linear-gradient(135deg, rgba(13, 122, 114, 0.45), rgba(11, 31, 42, 0.4));
}

/* Sections */
.section { padding: clamp(3.4rem, 7vw, 5.2rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: linear-gradient(145deg, #0b1f2a, #143041 55%, #0d3a40);
  color: #fff;
}
.section-dark h2 { color: #fff; }

.section-head { max-width: 42rem; margin-bottom: 2.1rem; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}
.kicker-light { color: #8fd4cb; }
.lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 40rem; }
.lead-light { color: rgba(255, 255, 255, 0.82); }

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.flow li {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.25rem;
  border-top: 3px solid var(--teal-soft);
}
.flow span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  font-size: 0.95rem;
}
.flow p { color: var(--ink-soft); font-size: 0.96rem; }

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem 1.5rem;
}
.modules article {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.modules p { color: var(--ink-soft); }

/* Plans — cards as plan selection UI */
.audience-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.audience-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.audience-btn.is-active {
  background: var(--ink);
  color: #fff;
}
.audience-intro {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}
.billing-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  width: fit-content;
  max-width: 100%;
}
.billing-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.billing-btn.is-active {
  background: var(--teal-deep);
  color: #fff;
}
.billing-save {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(16, 140, 120, 0.14);
  color: var(--teal-deep);
}
.billing-btn.is-active .billing-save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.audience-panel[hidden] { display: none !important; }
.audience-panel { margin-bottom: 2rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.plans-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.3rem;
  position: relative;
}
.plan-featured {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  margin: 0;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}
.plan-for {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.plan-uf {
  font-size: 2.35rem;
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.03em;
}
.plan-iva {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.plan-price-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}
.plan ul {
  display: grid;
  gap: 0.5rem;
  flex: 1;
  margin-bottom: 0.25rem;
}
.plan li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}
.plan li.muted {
  opacity: 0.72;
}
.plan li.muted::before {
  background: #b7c4cb;
}

.compare {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.35rem;
}
.compare h3 { margin-bottom: 0.9rem; }
.table-wrap { overflow-x: auto; }
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  background: var(--paper);
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink);
}
.compare td { color: var(--ink-soft); }
.compare-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Demo */
.demo-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
}
.ticks {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.35rem;
}
.ticks li {
  padding-left: 1.2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8fd4cb;
  font-weight: 800;
}
.demo-aside {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.demo-num {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: #8fd4cb;
  margin: 0;
}
.demo-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}
.demo-sub {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.35rem 0 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
}
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.85rem 1rem;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--teal);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: #07151c;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0 1.35rem;
}
.footer-logo {
  height: 2.15rem;
  width: auto;
  margin-bottom: 0.8rem;
  display: block;
  object-fit: contain;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-label {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.65rem;
}
.footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-brand, .hero h1, .hero-lead, .hero-paid, .hero-cta, .hero-stage {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(1140px, calc(100% - 2 * max(1rem, env(safe-area-inset-left, 0px))));
  }
  .header-bar {
    width: min(1140px, calc(100% - 2 * max(1rem, env(safe-area-inset-left, 0px))));
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: clamp(1.5rem, 4vh, 2.5rem) 0 clamp(2rem, 5vh, 3rem);
  }
  .hero-stage { order: 2; max-width: 28rem; margin-inline: auto; width: 100%; }
  .hero-copy { order: 1; }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
  }
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }
  .plans-two {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
  .demo-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .demo-aside { max-width: 16rem; margin-inline: auto; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .plan-featured { transform: none; }
  .hero { min-height: auto; }
  .audience-switch,
  .billing-switch {
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
  }
  .audience-btn,
  .billing-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}

@media (max-width: 820px) {
  :root { --header-h: 3.75rem; }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 28, 34, 0.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-backdrop.is-open,
  body.nav-open .nav-backdrop {
    display: block;
  }

  .site-header {
    z-index: 220; /* sobre backdrop; el toggle sigue usable */
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    z-index: 230;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-toggle span {
    transition: transform 0.2s var(--ease), opacity 0.15s ease;
  }

  /* Panel a viewport real (no containing-block del header).
     height auto + top/bottom: full resto bajo el header (~390px phones). */
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto; /* anula cualquier height heredada / colapso */
    max-height: none;
    min-height: calc(var(--app-height) - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem max(1.15rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1.15rem, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--ink) 98%, #000);
    border-bottom: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateY(-0.5rem);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.22s ease, visibility 0.28s;
    z-index: 210;
  }
  .site-nav.is-open {
    display: flex;
    transform: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a:not(.btn) {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 48px;
    padding: 0.55rem 0.35rem;
    font-size: 1.05rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-wrap: anywhere;
  }
  .site-nav .btn {
    width: 100%;
    flex-shrink: 0;
    min-height: 48px;
    margin-top: 0.35rem;
  }
  .site-nav .btn-sm { font-size: 0.95rem; padding: 0.7rem 1rem; }
  .brand-logo {
    height: 2.15rem;
    max-width: min(168px, 52vw);
  }
  .hero {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .section {
    padding-top: clamp(2.6rem, 6vw, 3.8rem);
    padding-bottom: clamp(2.6rem, 6vw, 3.8rem);
  }
  .compare th, .compare td {
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
  }
  .faq-list summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0;
  }
  .faq-list summary::after {
    float: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(1.65rem, 7.2vw, 2.15rem); }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .shell {
    width: calc(100% - 2 * max(0.85rem, env(safe-area-inset-left, 0px)));
  }
  .header-bar {
    width: calc(100% - 2 * max(0.85rem, env(safe-area-inset-left, 0px)));
  }
  .hero-grid { padding: 1.25rem 0 1.75rem; gap: 1.25rem; }
  .hero-lead { font-size: 1rem; max-width: none; }
  .hero-paid {
    display: block;
    font-size: 0.84rem;
    line-height: 1.4;
    padding: 0.5rem 0.7rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .hero-stage { display: none; } /* menos scroll en teléfono; el copy ya vende */
  .flow { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-logo { height: 1.9rem; }
  .audience-switch {
    border-radius: 0.75rem;
    flex-direction: column;
    gap: 0.2rem;
  }
  .audience-btn {
    width: 100%;
    border-radius: 0.55rem;
    min-height: 44px;
  }
  .billing-switch { width: 100%; }
  .billing-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }
  .plan {
    padding: 1.2rem 1.05rem 1.15rem;
  }
  .plan-uf { font-size: 2.1rem; }
  .plan-cta-group .btn { min-height: 48px; }
  .demo-num { font-size: 3.4rem; }
  .table-wrap {
    margin-inline: -0.15rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .compare table { min-width: 32rem; }
  .compare-note { font-size: 0.88rem; }
  .section-head { margin-bottom: 1.5rem; }
  .lead { font-size: 1rem; }
}

/* Lead / contratar modal */
.lead-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lead-modal-root[hidden] { display: none !important; }
.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 34, 0.55);
}
.lead-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 24px 60px rgba(8, 28, 34, 0.28);
}
.lead-close {
  position: absolute;
  top: .55rem;
  right: .7rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.lead-sub { color: var(--ink-soft); font-size: .92rem; margin: .35rem 0 1rem; }
.lead-form { display: grid; gap: .65rem; }
.lead-form label {
  display: grid;
  gap: .28rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.lead-form input,
.lead-form textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .55rem .65rem;
}
.lead-note { font-size: .82rem; color: var(--ink-soft); margin: .25rem 0 0; }
.lead-msg { font-size: .88rem; margin-top: .35rem; }
.lead-msg.ok { color: #0f6b4c; }
.lead-msg.err { color: #b42318; }
body.lead-open { overflow: hidden; }

.plan-cta-group {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.lead-dialog-wide {
  width: min(640px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
}
.lead-form-dense .lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
}
.lead-form-dense .lead-span-2 { grid-column: 1 / -1; }
.lead-group-title {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 560px) {
  .lead-form-dense .lead-form-grid { grid-template-columns: 1fr; }
}
.contratar-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.contratar-tab {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
}
.contratar-tab.is-active {
  background: var(--teal-deep);
  color: #fff;
}
.lead-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
.lead-check input {
  margin-top: 0.2rem;
}
.input-rut,
input.input-rut,
.lead-form input.input-rut {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ——— Responsive público (landing) 2026-09-28 ——— */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: clip;
}
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: translateY(0); }

@media (max-width: 560px) {
  .lead-form-dense .lead-form-grid { grid-template-columns: 1fr; }
  .lead-modal-root {
    padding: 0;
    place-items: stretch;
    align-items: flex-end;
  }
  .lead-dialog,
  .lead-dialog-wide {
    width: 100%;
    max-width: none;
    max-height: min(94dvh, 94vh);
    border-radius: 1rem 1rem 0 0;
    padding: 1.15rem max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    margin: 0;
  }
  .lead-close {
    top: 0.65rem;
    right: max(0.7rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    font-size: 1.55rem;
  }
  .lead-form input,
  .lead-form textarea,
  .lead-form select {
    min-height: 48px;
    font-size: 16px; /* evita zoom iOS */
  }
  .lead-form textarea { min-height: 96px; }
  .contratar-tabs { flex-wrap: wrap; border-radius: 0.75rem; }
  .contratar-tab { min-height: 44px; border-radius: 0.55rem; }
  .plan-badge { left: 0.85rem; }
}

@media (max-width: 380px) {
  .brand-logo { max-width: min(148px, 48vw); height: 1.95rem; }
  .btn-lg { font-size: 0.95rem; padding: 0.8rem 1.05rem; }
  .plan h3 { font-size: 1.3rem; }
}

@media (min-width: 821px) and (max-width: 980px) {
  .site-nav { gap: 0.55rem; font-size: 0.86rem; }
  .site-nav .btn-sm { padding: 0.38rem 0.65rem; }
}

@media (pointer: coarse) {
  .audience-btn,
  .billing-btn,
  .faq-list summary,
  .nav-toggle,
  .btn {
    min-height: 44px;
  }
}
