/* =========================================
   OpticApp — Landing
   Precisión clínica moderna: teal + menta, lentes superpuestas
========================================= */
:root {
  --bg:          #ffffff;
  --bg-tint:     #f1f7f5;
  --surface:     #ffffff;
  --text:        #0d1f1e;
  --muted:       #4a5f5c;
  --border:      rgba(12, 90, 85, 0.12);

  --brand:       #0c5a55;
  --brand-ink:   #083f3c;
  --mint:        #55c99a;
  --mint-soft:   rgba(85, 201, 154, 0.16);
  --slate:       #5f8f8b;
  --link:        #0c5a55;

  --warn:        #b26a00;
  --warn-bg:     #fff3dc;
  --danger:      #c0362c;
  --danger-bg:   #fde8e6;
  --ok:          #157a52;
  --ok-bg:       #dcf5ea;

  --prism: linear-gradient(90deg, #55c99a, #4fb3d9, #7d7fe0, #d9779d, #f2b05a);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 20px;
  --shadow:    0 1px 2px rgba(8, 40, 38, .05), 0 8px 24px rgba(8, 40, 38, .07);
  --shadow-lg: 0 2px 6px rgba(8, 40, 38, .06), 0 24px 60px rgba(8, 40, 38, .14);

  --f-display: "Sora", system-ui, sans-serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 180ms var(--ease);
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
@media (max-width: 520px) {
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
}

.eyebrow {
  font: 600 13px/1 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ── Botones ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font: 600 15px/1 var(--f-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background-color var(--t), box-shadow var(--t), border-color var(--t);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm    { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  background: #0c5a55; color: #fff;
  box-shadow: 0 6px 18px rgba(12, 90, 85, .25);
}
.btn--primary:hover { background: #0a4c48; box-shadow: 0 10px 26px rgba(12, 90, 85, .32); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--mint); }
.btn--light { background: #fff; color: #0c5a55; }
.btn--light:hover { background: #ecfaf4; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color var(--t);
}
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }
@media (max-width: 820px) {
  .nav__inner { gap: 12px; height: 60px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  }
  .nav__toggle span {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform var(--t);
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 14px 4px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) { .brand__word { display: none; } }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__mark { width: 40px; height: 35px; }
.brand__word { font: 500 17px/1 var(--f-display); letter-spacing: .08em; color: #3fb486; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero__lenses { position: absolute; inset: 0; pointer-events: none; }
.hero__lenses span {
  position: absolute; border-radius: 50%;
  width: 520px; height: 520px;
  filter: blur(2px);
  animation: drift 18s var(--ease) infinite alternate;
}
@media (max-width: 720px) {
  .hero__lenses span { width: 300px; height: 300px; animation: none; filter: none; }
  .hero__lenses span:nth-child(4) { display: none; }
}
.hero__lenses span:nth-child(1) { right: 6%;  top: -120px; background: rgba(85, 201, 154, .16); }
.hero__lenses span:nth-child(2) { right: -8%; top: 40px;   background: rgba(95, 143, 139, .14); animation-delay: -4s; }
.hero__lenses span:nth-child(3) { right: 14%; top: 180px;  background: rgba(85, 201, 154, .10); animation-delay: -8s; }
.hero__lenses span:nth-child(4) { left: -260px; bottom: -300px; background: rgba(95, 143, 139, .08); animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(-24px, 18px, 0) scale(1.04); } }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 700; }
.focus-word {
  color: var(--brand);
  display: inline-block;
  animation: focusIn 1.1s var(--ease) .15s both;
}
@keyframes focusIn {
  from { filter: blur(10px); opacity: .2; letter-spacing: .04em; }
  to   { filter: blur(0);    opacity: 1;  letter-spacing: -0.02em; }
}
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__chips {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero__chips li {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.hero__chips li::before { content: "✓ "; color: var(--mint); }
.hero__visual { position: relative; }

@media (max-width: 940px) {
  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Ventana / capturas ──────────────────────────────── */
.window {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window__bar span { margin-left: 10px; }

/* Las capturas reales son de la app en tema oscuro: se muestran completas, con su proporción */
.shot { position: relative; background: #0f172a; }
.shot img { width: 100%; height: auto; }
.window:has(.shot:not(.is-missing)) { background: #0f172a; border-color: rgba(148, 163, 184, .18); }
.window:has(.shot:not(.is-missing)) .window__bar { border-bottom-color: rgba(148, 163, 184, .14); color: #94a3b8; }
.window:has(.shot:not(.is-missing)) .window__bar i { background: rgba(148, 163, 184, .3); }
.shot.is-missing {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 42% 45%, rgba(85,201,154,.20) 0 22%, transparent 22.5%),
    radial-gradient(circle at 58% 45%, rgba(95,143,139,.18) 0 22%, transparent 22.5%),
    radial-gradient(circle at 50% 60%, rgba(85,201,154,.14) 0 22%, transparent 22.5%),
    var(--bg-tint);
}
.shot.is-missing::after {
  content: attr(data-label);
  align-self: end; margin-bottom: 18px;
  font: 500 12px/1 var(--f-mono); color: var(--muted);
  padding: 6px 10px; border-radius: 6px;
  background: var(--surface); border: 1px dashed var(--border);
}

/* ── Tarjetas flotantes ──────────────────────────────── */
.float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  font-size: 13px;
  animation: bob 6s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translateY(-6px); } }
.float__title { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.float__tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; margin-right: 8px;
}
.tag--warn   { color: var(--warn);   background: var(--warn-bg); }
.tag--danger { color: var(--danger); background: var(--danger-bg); }
.tag--ok     { color: var(--ok);     background: var(--ok-bg); }

.float--alert { left: -28px; bottom: -28px; display: grid; gap: 4px; }
.float--alert .mono { color: var(--muted); font-size: 12px; }

.float--rx { right: -20px; bottom: -32px; padding: 12px 14px; }
.float--rx table { border-collapse: collapse; font-family: var(--f-mono); font-size: 13px; }
.float--rx th, .float--rx td { padding: 4px 10px; text-align: right; }
.float--rx thead th { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.float--rx tbody th { color: var(--brand); text-align: left; font-weight: 500; }
.float--rx tbody tr + tr td, .float--rx tbody tr + tr th { border-top: 1px solid var(--border); }

.float--wa { right: -20px; bottom: -30px; max-width: 260px; border-left: 3px solid #25d366; }
.float--wa p { line-height: 1.45; }

@media (max-width: 940px) {
  .float { position: relative; inset: auto; margin: -24px 16px 0 auto; width: fit-content; max-width: calc(100% - 32px); }
  .float--alert { margin: -24px auto 0 16px; }
}

/* ── Visor de capturas ───────────────────────────────── */
.shot img { cursor: zoom-in; }
.viewer {
  width: min(1400px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--r); background: transparent;
  overflow: visible;
}
.viewer::backdrop { background: rgba(4, 12, 11, .72); backdrop-filter: blur(6px); }
.viewer[open] { animation: viewerIn 220ms var(--ease); }
@keyframes viewerIn { from { opacity: 0; transform: scale(.97); filter: blur(4px); } }
.viewer img {
  width: 100%; max-height: calc(100vh - 32px); object-fit: contain;
  border-radius: var(--r); box-shadow: var(--shadow-lg); cursor: zoom-out;
}
.viewer__hint { display: none; }
.viewer__close {
  position: absolute; top: -14px; right: -14px;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0c5a55; font: 600 20px/1 var(--f-body);
  box-shadow: var(--shadow); transition: transform var(--t);
}
.viewer__close:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  .viewer {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0;
    border-radius: 0; display: none; flex-direction: column; justify-content: center;
  }
  .viewer[open] { display: flex; }
  .viewer__scroll { overflow-x: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px; }
  .viewer img { width: auto; height: auto; max-width: none; max-height: 70dvh; min-width: 220vw; border-radius: 8px; cursor: default; }
  .viewer__hint { display: block; text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px; margin-bottom: 12px; }
  .viewer__close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; }
}

/* ── Strip ───────────────────────────────────────────── */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid div { padding: 28px 24px; display: grid; gap: 4px; }
.strip__grid div + div { border-left: 1px solid var(--border); }
.strip__grid strong { font: 600 18px/1.2 var(--f-display); color: var(--brand); }
.strip__grid span { color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid div:nth-child(3) { border-left: 0; }
  .strip__grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── Secciones ───────────────────────────────────────── */
.section { padding: 112px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 680px; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section__head h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 20px;
  border-radius: 3px; background: var(--prism);
}
.section__sub { margin-top: 18px; font-size: 18px; color: var(--muted); }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__sub { font-size: 16px; }
  .hero { padding: 28px 0 56px; }
  .lead { font-size: 17px; margin-top: 16px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__chips { margin-top: 24px; gap: 6px; }
  .hero__chips li { font-size: 12px; padding: 5px 10px; }
  .feature__copy > p { font-size: 16px; }
  .ticks { gap: 8px; font-size: 15px; }
  .extras, .terms { margin-top: 64px; }
  .cta { padding-bottom: 64px; }
  .billing { margin-bottom: 28px; }
}

/* ── Flujo ───────────────────────────────────────────── */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: var(--prism); opacity: .5;
}
.flow li { position: relative; }
.flow__n {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  font: 500 13px/1 var(--f-mono); color: var(--brand);
  margin-bottom: 18px;
  transition: transform var(--t), border-color var(--t);
}
.flow li:hover .flow__n { transform: scale(1.08); border-color: var(--mint); }
.flow h3 { font-size: 18px; margin-bottom: 6px; }
.flow p { font-size: 14px; color: var(--muted); }
@media (max-width: 940px) {
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .flow::before { display: none; }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr 1fr; } }

/* ── Features ────────────────────────────────────────── */
.feature {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center;
}
.feature + .feature { margin-top: 120px; }
.feature--flip .feature__copy { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 14px; }
.feature__copy > p { color: var(--muted); font-size: 17px; }
.feature__media {
  position: relative; margin: 0;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.feature__media .shot { border-radius: var(--r); overflow: hidden; }
.feature--pro .feature__media { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--prism) border-box; }
@media (max-width: 940px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__copy { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%2355c99a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.plan-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 6px;
  color: var(--brand); background: var(--mint-soft);
}
.plan-badge--premium { color: #fff; background: #0c5a55; }
.plan-badge--pro { color: #fff; background: linear-gradient(90deg, #0c5a55, #4f7fbf 60%, #7d7fe0); }

/* ── Extras ──────────────────────────────────────────── */
.extras {
  margin-top: 120px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.extra {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.extra:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(85, 201, 154, .4); }
.extra svg {
  width: 36px; height: 36px; padding: 7px; border-radius: 10px;
  background: var(--mint-soft); stroke: var(--brand); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 14px;
}
.extra h4 { font-size: 17px; margin-bottom: 6px; }
.extra p { color: var(--muted); font-size: 14px; }
.extra em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--brand); }
@media (max-width: 940px) { .extras { grid-template-columns: 1fr 1fr; margin-top: 88px; } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }

/* ── Planes ──────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: transform var(--t), box-shadow var(--t);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 22px; }
.plan__tagline { color: var(--brand); font-weight: 600; margin-top: 4px; }
.plan__price { margin-top: 24px; font: 700 34px/1 var(--f-display); letter-spacing: -0.02em; }
.plan__price .js-price { font-family: var(--f-mono); font-weight: 500; font-size: 30px; }
.plan__price small { font: 500 14px var(--f-body); color: var(--muted); margin-left: 6px; }
.plan__equiv { margin-top: 8px; min-height: 1.4em; font-size: 13px; font-weight: 600; color: var(--brand); }
.plan--featured .plan__equiv { color: #7ad8b0; }
.plan__for { margin-top: 8px; color: var(--muted); font-size: 15px; }
.js-price.is-refocus { animation: focusIn .5s var(--ease); }

.billing {
  display: flex; width: fit-content; margin: 0 auto 40px; padding: 4px; gap: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.billing[hidden] { display: none; }
.billing__opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 15px/1 var(--f-body);
  transition: background-color var(--t), color var(--t);
}
.billing__opt:hover { color: var(--text); }
.billing__opt.is-active { background: #0c5a55; color: #fff; }
.billing__save {
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  background: var(--mint-soft); color: var(--brand);
}
.billing__opt.is-active .billing__save { background: rgba(122, 216, 176, .25); color: #c9f2e1; }
.plan .ticks { margin: 24px 0 32px; flex: 1; font-size: 15px; }
.plan--featured {
  background: #0c5a55; color: #e8f6f1; border-color: #0c5a55;
  box-shadow: 0 24px 60px rgba(12, 90, 85, .3);
}
.plan--featured .plan__tagline { color: #7ad8b0; }
.plan--featured .plan__for, .plan--featured .plan__price small { color: rgba(232, 246, 241, .75); }
.plan--featured .ticks li::before { background-color: rgba(122, 216, 176, .2); }
.plan--featured .btn--primary { background: #fff; color: #0c5a55; box-shadow: none; }
.plan--featured .btn--primary:hover { background: #ecfaf4; }
.plan__ribbon {
  position: absolute; top: -12px; left: 28px;
  font-size: 12px; font-weight: 700; color: #0c5a55;
  padding: 5px 12px; border-radius: 999px;
  background: #7ad8b0;
}
.plan--pro { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--prism) border-box; }
@media (max-width: 940px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 28px; }
}

.compare { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.compare summary {
  cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.compare summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.compare summary::after, .faq summary::after {
  content: "+"; font: 400 22px/1 var(--f-mono); color: var(--brand);
  transition: transform var(--t);
}
.compare[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.compare__scroll { overflow-x: auto; border-top: 1px solid var(--border); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
@media (max-width: 640px) {
  .compare summary { padding: 16px 18px; }
  .compare table { min-width: 0; table-layout: fixed; font-size: 14px; }
  .compare th, .compare td { padding: 12px 4px; }
  .compare th:first-child { width: 40%; padding-left: 12px; }
  .compare thead th { font-size: 10px; letter-spacing: 0; text-align: center; }
  .compare thead th:first-child { text-align: left; }
  .compare tbody td.a::before { content: "Extra"; font-size: 11px; padding: 3px 6px; }
}
.compare th, .compare td { padding: 14px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font: 600 13px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody th { font-weight: 500; }
.compare tbody tr { transition: background-color var(--t); }
.compare tbody tr:hover { background: var(--mint-soft); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td { width: 14%; text-align: center; font-size: 0; }
.compare td.y::before { content: "✓"; font-size: 17px; color: var(--ok); font-weight: 700; }
.compare td.n::before { content: "—"; font-size: 15px; color: var(--muted); opacity: .6; }

.compare td.a::before { content: "Adicional"; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--mint-soft); padding: 3px 8px; border-radius: 6px; }

/* ── Cómo se contrata ────────────────────────────────── */
.terms { margin-top: 72px; }
.terms__title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 24px; }
.terms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.term {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
  transition: border-color var(--t), box-shadow var(--t);
}
.term:hover { border-color: rgba(85, 201, 154, .4); box-shadow: var(--shadow); }
.term h4 { font-size: 17px; margin-bottom: 14px; }
.term > p:not(.term__price) { color: var(--muted); font-size: 14px; }
.term__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 12px; }
.term__price .mono { font-size: 24px; color: var(--brand); }
.term__price small { color: var(--muted); font-size: 13px; }
.term__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.term__list li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--mint); }
.term__list strong { font-size: 15px; }
.term__list span { color: var(--muted); font-size: 14px; }
.included {
  margin-top: 16px; padding: 24px;
  border-radius: var(--r); background: var(--mint-soft);
}
.included h4 { font-size: 17px; }
.included .ticks { grid-template-columns: 1fr 1fr; margin-top: 14px; font-size: 15px; }
.terms__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 940px) { .terms__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .included .ticks { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); transition: border-color var(--t);
}
.faq details[open] { border-color: rgba(85, 201, 154, .45); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ── CTA final ───────────────────────────────────────── */
.cta { padding: 0 0 112px; background: var(--bg-tint); }
.cta__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px; border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 88% 20%, rgba(122, 216, 176, .35) 0 120px, transparent 121px),
    radial-gradient(circle at 96% 70%, rgba(95, 143, 139, .45) 0 140px, transparent 141px),
    #0c5a55;
  color: #fff;
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .8); max-width: 520px; font-size: 17px; }
@media (max-width: 720px) { .cta { padding-bottom: 72px; } .cta__inner { padding: 36px 24px; } }

/* ── Botón flotante de WhatsApp (celular) ────────────── */
.wa-fab { display: none; }
@media (max-width: 720px) {
  .wa-fab {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 18px; border-radius: 999px;
    background: #0c5a55; color: #fff; text-decoration: none; font: 600 15px/1 var(--f-body);
    box-shadow: 0 10px 30px rgba(12, 90, 85, .35);
    opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .wa-fab svg { width: 20px; height: 20px; fill: none; stroke: #7ad8b0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .footer { padding-bottom: 96px; }
}

/* ── Footer ──────────────────────────────────────────── */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer__copy { margin-left: auto; }

/* ── Reveal: entra "enfocando" ───────────────────────── */
.js .reveal {
  opacity: 0; filter: blur(8px); transform: translateY(16px);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; filter: blur(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
  html { scroll-behavior: auto; }
}
