/* Doctor Online MX v2 — base compartida por todas las páginas */

@font-face { font-family: "Clash Display"; src: url("/fonts/clash-display-var.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-var-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --paper: #F3F6FC;
  --paper-2: #E9F0FB;
  --paper-3: #DCE6F7;
  --card: #FFFFFF;
  --ink: #0B1D3B;
  --ink-2: #4A5672;
  --ink-3: #6B7690;
  --line: rgba(11, 29, 59, .12);
  --line-strong: rgba(11, 29, 59, .2);
  --electric: #0055FF;
  --electric-600: #0046D6;
  --electric-050: #E6EEFF;
  --night: #040B20;
  --night-2: #0B1D3B;
  --sky: #8FB6FF;
  --mint: #3ECFBF;
  --mint-ink: #0A6B61;
  --wa: #25D366;

  --font: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Clash Display", "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --wide: 100%;
  --semi-wide: 100%;

  --fs-hero: clamp(2.55rem, 1.35rem + 5.2vw, 6.1rem);
  --fs-d2: clamp(2.05rem, 1.25rem + 3.4vw, 4.3rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.22rem, 1.05rem + .75vw, 1.55rem);
  --fs-lead: clamp(1.08rem, 1rem + .38vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 2.5rem);
  --space-section: clamp(4.5rem, 2.8rem + 6.4vw, 9rem);
  --header-h: 68px;

  --r-panel: 28px;
  --r-card: 18px;
  --r-field: 12px;

  --shadow-1: 0 1px 0 rgba(11, 29, 59, .04), 0 1px 2px rgba(11, 29, 59, .06);
  --shadow-2: 0 1px 0 rgba(11, 29, 59, .04), 0 14px 34px -16px rgba(0, 38, 128, .28);
  --shadow-3: 0 2px 4px rgba(11, 29, 59, .05), 0 40px 80px -30px rgba(0, 38, 128, .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.58; font-weight: 420; font-stretch: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: rgba(0, 85, 255, .14); }
img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul, ol)[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
[hidden] { display: none !important; }
::selection { background: var(--electric); color: #fff; }

:focus-visible { outline: 2.5px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
.theme-night :focus-visible, .theme-electric :focus-visible { outline-color: #fff; }

.visually-hidden { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; font-weight: 600; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.t-hero, .t-d2, .t-h2, .t-h3 { font-family: var(--font-display); letter-spacing: -.012em; word-spacing: .07em; text-wrap: balance; }
.t-hero { font-size: var(--fs-hero); font-weight: 600; line-height: .95; letter-spacing: -.02em; }
.t-d2 { font-size: var(--fs-d2); font-weight: 600; line-height: 1; letter-spacing: -.018em; }
.t-h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.04; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.16; letter-spacing: -.005em; }
.t-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 60ch; }
.t-body { font-size: var(--fs-body); color: var(--ink-2); text-wrap: pretty; max-width: 64ch; }
.t-small { font-size: var(--fs-small); color: var(--ink-2); }
.t-xs { font-size: var(--fs-xs); color: var(--ink-3); }
.t-tab { font-variant-numeric: tabular-nums; }
.t-electric { color: var(--electric); }
.t-strong { color: var(--ink); font-weight: 600; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 620; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * .6); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, .75rem); align-items: center; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, .8rem + 1vw, 1.75rem); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); }
.section-head--split { max-width: none; }
@media (min-width: 1024px) { .section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 3rem; } }

/* ---------- Botones y enlaces ---------- */
.btn { --btn-h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: var(--btn-h); padding: .55em 1.45em; border-radius: 999px; font-weight: 620; font-size: 1rem; font-stretch: var(--semi-wide); letter-spacing: -.005em; line-height: 1.15; text-align: center; white-space: nowrap; transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .35s var(--ease-out); will-change: transform; }
.btn .i { width: 1.2em; height: 1.2em; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--electric); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 26px -12px rgba(0, 85, 255, .75); }
.btn--primary:hover { background: var(--electric-600); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 32px -12px rgba(0, 85, 255, .85); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); background: rgba(255, 255, 255, .4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn--light:hover { background: var(--electric-050); }
.btn--outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .08); }
.btn--wa { background: var(--wa); color: #06331A; box-shadow: 0 12px 26px -12px rgba(18, 140, 70, .7); }
.btn--wa:hover { background: #1fc05c; }
.btn--sm { --btn-h: 44px; padding: .45em 1.15em; font-size: .9375rem; }
.btn--block { width: 100%; }
@media (max-width: 420px) { .btn { white-space: normal; } }

.link { color: var(--electric); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }
.theme-night .link, .theme-electric .link { color: #fff; }

.i { width: 1.25rem; height: 1.25rem; flex: none; }
.i--sm { width: 1rem; height: 1rem; }
.i--lg { width: 1.6rem; height: 1.6rem; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); --logo-ring: var(--paper); }
.brand__mark { width: 34px; height: 34px; color: var(--electric); flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; letter-spacing: -.005em; white-space: nowrap; }
.brand__word b { color: var(--electric); font-weight: 700; }
.brand--light { color: #fff; --logo-ring: var(--night); }
.brand--light .brand__word b { color: var(--sky); }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h); transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .45s var(--ease-out); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(245, 248, 253, .78); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); opacity: 0; transition: opacity .35s var(--ease-out); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.site-header__cta { display: none; }
@media (min-width: 560px) { .site-header__cta { display: inline-flex; } }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; margin-left: 1.5rem; }
  .nav__list { display: flex; gap: .25rem; align-items: center; }
  .nav__link { display: inline-flex; align-items: center; gap: .35rem; height: 44px; padding: 0 .9rem; border-radius: 999px; font-weight: 560; font-size: .97rem; color: var(--ink); transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
  .nav__link:hover, .nav__trigger[aria-expanded="true"] { background: rgba(11, 29, 59, .06); }
  .nav__trigger .i { transition: transform .3s var(--ease-out); }
  .nav__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }
  .menu-toggle { display: none !important; }
}
.nav__item--mega { position: static; }
.mega { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 6px); }
.mega__inner { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 1.25rem; padding: 1.5rem; background: var(--card); border-radius: var(--r-panel); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); transform-origin: top center; animation: mega-in .35s var(--ease-out); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.mega__title { display: flex; align-items: center; gap: .5rem; font-weight: 640; font-stretch: var(--semi-wide); font-size: .95rem; color: var(--ink-2); padding: .25rem .75rem .75rem; }
.mega__title .i { color: var(--electric); }
.mega__col ul { display: grid; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.mega__col a { display: grid; gap: .1rem; padding: .7rem .75rem; border-radius: 14px; transition: background-color .2s var(--ease-out); }
.mega__col a:hover { background: var(--paper); }
.mega__col a span { font-weight: 600; }
.mega__col a small { font-size: var(--fs-xs); color: var(--ink-3); }
.mega__col--aside { background: var(--paper); border-radius: 20px; padding: .5rem; }
.mega__col--aside a:hover { background: #fff; }

.menu-toggle { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(11, 29, 59, .06); }
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 4px; transform: rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(6, 20, 51, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .25s var(--ease-out); }
.sheet__panel { position: absolute; inset: var(--header-h) 0 0 0; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 1.25rem; animation: sheet-in .4s var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(-12px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__group { border-bottom: 1px solid var(--line); }
.sheet__group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-weight: 640; font-stretch: var(--semi-wide); font-size: 1.15rem; cursor: pointer; }
.sheet__group summary::-webkit-details-marker { display: none; }
.sheet__group summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out); }
.sheet__group[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.sheet__group ul, .sheet__links { list-style: none; padding: 0; margin: 0; }
.sheet__group ul { padding-bottom: .75rem; }
.sheet__group li a { display: block; padding: .7rem 0 .7rem .25rem; color: var(--ink-2); font-size: 1.05rem; }
.sheet__links li a { display: block; padding: .85rem 0; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .sheet { display: none !important; } }

/* ---------- Pie ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: rgba(255, 255, 255, .78); padding-top: clamp(4rem, 3rem + 5vw, 7.5rem); padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
.site-footer::before { content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; left: 50%; top: -38vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 85, 255, .45), rgba(0, 85, 255, 0)); pointer-events: none; }
.site-footer > .wrap { position: relative; }
.site-footer__sign { display: grid; gap: 2rem; justify-items: start; padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__claim { font-family: var(--font-display); font-size: clamp(2.8rem, 1rem + 7.6vw, 9rem); font-weight: 600; line-height: .9; letter-spacing: -.025em; word-spacing: .07em; color: #fff; text-wrap: balance; max-width: 13ch; }
.site-footer__grid { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.site-footer__about, .site-footer__col:nth-child(4), .site-footer__col:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .site-footer__about, .site-footer__col:nth-child(4), .site-footer__col:last-child { grid-column: auto; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2rem; } }
.site-footer__about p { margin-top: 1rem; max-width: 30ch; font-size: var(--fs-small); }
.site-footer__title { color: #fff; font-weight: 640; font-stretch: var(--semi-wide); margin-bottom: .9rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--fs-small); }
.site-footer__col a { transition: color .2s var(--ease-out); }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact a { display: inline-flex; gap: .55rem; align-items: center; }
.site-footer__contact .i { color: var(--sky); }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.site-footer__social a { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background-color .2s var(--ease-out); }
.site-footer__social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); }
.site-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 16px 34px -12px rgba(16, 130, 64, .65), 0 0 0 0 rgba(37, 211, 102, .5); transition: transform .35s var(--ease-out), opacity .35s var(--ease-out); }
.wa-float .i { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-pulse { animation: wa-pulse 2.4s var(--ease-out) 2; }
@keyframes wa-pulse { 70% { box-shadow: 0 16px 34px -12px rgba(16, 130, 64, .65), 0 0 0 16px rgba(37, 211, 102, 0); } }
.wa-float.is-tucked, .wa-float.is-waiting, .wa-float.is-form { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Temas ---------- */
.theme-night { background: var(--night); color: rgba(255, 255, 255, .8); --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .24); }
.theme-night .t-hero, .theme-night .t-d2, .theme-night .t-h2, .theme-night .t-h3, .theme-night .t-strong { color: #fff; }
.theme-night .t-lead, .theme-night .t-body, .theme-night .t-small { color: rgba(255, 255, 255, .74); }
.theme-night .t-xs { color: rgba(255, 255, 255, .58); }
.theme-night .t-electric { color: var(--sky); }
.theme-electric { background: var(--electric); color: rgba(255, 255, 255, .9); --line: rgba(255, 255, 255, .22); }
.theme-electric .t-hero, .theme-electric .t-d2, .theme-electric .t-h2, .theme-electric .t-h3, .theme-electric .t-strong { color: #fff; }
.theme-electric .t-lead, .theme-electric .t-body, .theme-electric .t-small, .theme-electric .t-xs { color: rgba(255, 255, 255, .88); }

/* ---------- Componentes compartidos ---------- */
.panel { background: var(--card); border-radius: var(--r-panel); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: .3rem .85rem; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: var(--fs-small); font-weight: 520; line-height: 1.2; }
.chip .i { width: 1rem; height: 1rem; color: var(--electric); }
.theme-night .chip { background: rgba(255, 255, 255, .08); color: #fff; }
.theme-night .chip .i { color: var(--sky); }
.badge { justify-self: start; align-self: start; width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 640; background: var(--electric-050); color: var(--electric-600); letter-spacing: .005em; }
.badge--mint { background: rgba(62, 207, 191, .16); color: var(--mint-ink); }
.theme-night .badge { background: rgba(143, 182, 255, .14); color: var(--sky); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.stack > .ticks:not(:first-child) { margin-top: var(--stack, 1rem); }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .65rem; align-items: start; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }
.ticks li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: .05rem; border-radius: 999px; background: var(--electric-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.ticks--no li::before { background: rgba(11, 29, 59, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7690' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 55% no-repeat; }
.theme-night .ticks li { color: rgba(255, 255, 255, .78); }
.theme-night .ticks li::before { background: rgba(143, 182, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FB6FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; font-variant-numeric: tabular-nums; }
.price__num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.price__old { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 600; }
.price__note { font-size: var(--fs-small); color: var(--ink-2); }
.theme-night .price__num, .theme-electric .price__num { color: #fff; }
.theme-night .price__note, .theme-electric .price__note { color: rgba(255, 255, 255, .78); }

/* Acordeón / FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--card); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease-out); }
.faq details[open] { box-shadow: 0 0 0 1.5px var(--electric), var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.15rem 1.25rem; font-weight: 620; font-stretch: var(--semi-wide); font-size: 1.05rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1D3B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease-out), background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--electric-050); }
.faq .faq__a { padding: 0 1.25rem 1.25rem; color: var(--ink-2); max-width: 70ch; }

/* Formularios */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field .field__label { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: var(--r-field); border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 1rem; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1D3B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat; padding-right: 2.6rem; }
.input::placeholder, .textarea::placeholder { color: #8A93A8; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(11, 29, 59, .35); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(0, 85, 255, .14); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #D92D20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.field__error { color: #B42318; font-size: var(--fs-xs); font-weight: 600; }
.form__note { font-size: var(--fs-xs); color: var(--ink-3); }
.form__status { font-weight: 600; color: var(--mint-ink); }
.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.choice-group legend { font-weight: 600; font-size: var(--fs-small); margin-bottom: .5rem; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: var(--fs-small); font-weight: 560; transition: box-shadow .2s var(--ease-out), background-color .2s var(--ease-out), color .2s; }
.choice input:checked + span { background: var(--electric); color: #fff; box-shadow: none; }
.choice input:focus-visible + span { outline: 2.5px solid var(--electric); outline-offset: 3px; }

/* Marco de celular (DOM, no imagen) */
.phone { --pw: 300px; position: relative; width: var(--pw); aspect-ratio: 9 / 19.3; border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .034); background: linear-gradient(145deg, #2A3550, #0A1020 46%, #1B2540); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #05070D, var(--shadow-3); }
.phone::before { content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #1B2540; }
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .128); overflow: hidden; background: #fff; isolation: isolate; }
.phone__island { position: absolute; z-index: 30; top: calc(var(--pw) * .03); left: 50%; width: 32%; height: calc(var(--pw) * .085); transform: translateX(-50%); border-radius: 999px; background: #05070D; }
.phone__status { position: absolute; z-index: 25; inset: 0 0 auto 0; height: calc(var(--pw) * .14); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--pw) * .085); font-size: calc(var(--pw) * .042); font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; pointer-events: none; }
.phone__status .icons { display: flex; gap: 4px; align-items: center; }
.phone__status .i { width: calc(var(--pw) * .05); height: calc(var(--pw) * .05); }

/* ---------- Movimiento ---------- */
.motion-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.motion-ready [data-reveal].is-in { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }

/* Entrada del hero: solo CSS, corre en el primer pintado sin depender del JS */
.rise-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.rise-line > span { display: block; animation: rise-in 1.15s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise-in { from { transform: translateY(105%); } }
[data-enter] { animation: enter-in 1s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes enter-in { from { opacity: 0; transform: translateY(16px); } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
/* La cabecera se queda quieta y el contenido sube con un fundido al cambiar de página */
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: .32s var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: .55s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .motion-ready [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media (pointer: fine) { html { overscroll-behavior: none; } }

/* =====================================================================
   v3 — Sistema de alto impacto: fondos con capas, apilado, movimiento
   ===================================================================== */

/* Grano de película en todo el sitio (una sola capa fija, barata) */
body::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Secciones oscuras con profundidad */
.theme-night { background: radial-gradient(120% 80% at 50% 0%, #0A1A44 0%, var(--night) 55%), var(--night); }
.theme-night, .theme-electric { position: relative; isolation: isolate; }
.fx-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; }
.fx-aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--c, rgba(0, 85, 255, .55)), transparent 72%); opacity: .75; will-change: transform; animation: aurora 22s var(--ease-in-out) infinite alternate; }
.fx-aurora i:nth-child(1) { --c: rgba(0, 85, 255, .6); left: -20vmax; top: -30vmax; }
.fx-aurora i:nth-child(2) { --c: rgba(48, 90, 255, .38); right: -25vmax; top: 10%; animation-duration: 28s; animation-delay: -8s; }
.fx-aurora i:nth-child(3) { --c: rgba(62, 207, 191, .16); left: 20%; bottom: -40vmax; animation-duration: 32s; animation-delay: -15s; }
.fx-aurora--soft i { opacity: .45; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } 100% { transform: translate3d(-4vmax, 7vmax, 0) scale(.95); } }
.is-offscreen .fx-aurora i { animation-play-state: paused; }
.fx-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(143, 182, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 182, 255, .07) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); }
.fx-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background-image: radial-gradient(rgba(11, 29, 59, .13) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 50% at 85% 10%, #000 0%, transparent 70%); mask-image: radial-gradient(60% 50% at 85% 10%, #000 0%, transparent 70%); }
.fx-dots ~ .wrap, .fx-dots ~ div { position: relative; z-index: 1; }

/* Secciones que se apilan como tarjetas */
.stack-panel { position: relative; margin-top: -2.5rem; border-radius: 2.5rem 2.5rem 0 0; background-color: var(--paper); box-shadow: 0 -30px 60px -40px rgba(4, 11, 32, .45); }
.stack-panel.theme-night { background-color: var(--night); }
.stack-panel.theme-electric { background-color: var(--electric); }
.kinetic + .stack-panel { margin-top: 0; }
@media (max-width: 759px) { .stack-panel { margin-top: -1.5rem; border-radius: 1.5rem 1.5rem 0 0; } }

/* Botones de alto impacto */
.btn--glass { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn--glow { position: relative; isolation: isolate; }
.btn--glow::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--ang, 0deg), #0055FF, #8FB6FF, #3ECFBF, #0055FF); filter: blur(10px); opacity: .55; animation: glow-spin 5s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes glow-spin { to { --ang: 360deg; } }
.badge--solid { background: var(--electric); color: #fff; }
.theme-night .badge--solid { background: var(--electric); color: #fff; }

/* Marquesinas */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--gap, 2.5rem); align-items: center; will-change: transform; }
.marquee__track > * { flex: none; }

/* Revelado de imágenes con recorte */
.motion-ready .reveal-clip[data-reveal]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10% round var(--r-panel)); }
.motion-ready .reveal-clip[data-reveal]:not(.is-in) img { transform: scale(1.18); }
.motion-ready .reveal-clip[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-panel)); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-clip img { transition: transform 1.6s var(--ease-out); }

/* Cursor propio (solo ratón) */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; transform: translate3d(-100px, -100px, 0); }
.cursor--dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--electric); }
.cursor--ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; box-shadow: inset 0 0 0 1.5px rgba(0, 85, 255, .55); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.cursor--ring span { opacity: 0; transition: opacity .2s; }
.cursor--ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; box-shadow: inset 0 0 0 1.5px rgba(0, 85, 255, .9); }
.cursor--ring.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--electric); box-shadow: 0 10px 30px -8px rgba(0, 85, 255, .8); }
.cursor--ring.is-label span { opacity: 1; }
.on-dark-cursor .cursor--ring { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.on-dark-cursor .cursor--dot { background: #fff; }
@media (pointer: coarse) { .cursor { display: none; } }

/* Cabecera sobre secciones oscuras */
.site-header.on-dark { color: #fff; }
.site-header.on-dark .brand, .site-header.on-dark .nav__link { color: #fff; }
.site-header.on-dark .brand { --logo-ring: var(--night); }
.site-header.on-dark .brand__word b { color: var(--sky); }
.site-header.on-dark .nav__link:hover, .site-header.on-dark .nav__trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.site-header.on-dark::before { background: rgba(4, 11, 32, .62); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header.on-dark .menu-toggle { background: rgba(255, 255, 255, .1); }
.site-header.on-dark .menu-toggle__bars i { background: #fff; }

/* Tarjetas de vidrio flotantes */
.float-card { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .7rem; border-radius: 18px; background: rgba(6, 16, 46, .62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 20px 50px -20px rgba(0, 0, 0, .6); color: #fff; font-family: var(--font); }
.float-card > span:last-child { display: grid; line-height: 1.25; }
.float-card b { font-weight: 650; font-size: .95rem; }
.float-card em { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .68); }
.float-card__ico { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: var(--electric); color: #fff; flex: none; }
.float-card__ico .i { width: 1.15rem; height: 1.15rem; }
.float-card__ico--mint { background: var(--mint); color: #053B35; }
.float-card__ico--wa { background: var(--wa); }
.float-card__stars { display: flex; color: #F5B83D; }
.float-card__stars svg { width: 1rem; height: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .fx-aurora i, .btn--glow::before { animation: none !important; }
  .cursor { display: none; }
}

/* =====================================================================
   Kit v3 compartido (portada y subpáginas)
   ===================================================================== */
/* Marquesina tipográfica grande y banda cinética */
.marquee--big { --gap: clamp(1.5rem, 1rem + 2vw, 3rem); -webkit-mask-image: none; mask-image: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 1.5rem + 7vw, 9rem); line-height: 1; letter-spacing: -.02em; color: #fff; }
.marquee--big .o { color: transparent; -webkit-text-stroke: 1.5px rgba(143, 182, 255, .7); }
.marquee--big i { font-style: normal; font-size: .38em; color: var(--electric); }
.kinetic-band { position: relative; background: var(--night); color: #fff; padding: clamp(1.25rem, .9rem + 1.6vw, 2.5rem) 0; overflow: hidden; }
.kinetic-band .marquee--big { font-size: clamp(2.4rem, 1.2rem + 5.4vw, 6.5rem); }
.marquee--chips { --gap: .75rem; }
.marquee--chips span { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-weight: 600; font-size: var(--fs-small); white-space: nowrap; }

/* Galería horizontal fijada (data-hgallery) */
.hg { overflow: clip; }
.hg__pin { padding-block: var(--space-section, clamp(4rem, 3rem + 4vw, 7rem)); display: flex; flex-direction: column; justify-content: center; }
.hg__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hg__viewport { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.hg__viewport::-webkit-scrollbar { display: none; }
.hg.section { padding-block: 0; }
.hg .hg__track { list-style: none; margin: 0; display: flex; gap: clamp(1rem, .75rem + 1vw, 1.5rem); width: max-content; padding: .5rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1.25rem; }
.hg .hg__track > * { flex: none; width: min(84vw, 400px); scroll-snap-align: center; }
.hg__progress { width: min(280px, 100%); height: 3px; border-radius: 3px; background: rgba(127, 150, 200, .28); overflow: hidden; }
.hg__head .hg__progress { min-width: min(280px, 100%); }
.hg__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--electric), var(--sky)); transform-origin: left; transform: scaleX(.08); }
.hg__hint { margin-top: .5rem; font-size: var(--fs-xs); color: var(--ink-3); }
.theme-night .hg__hint { color: rgba(255, 255, 255, .55); }
.hg.is-pinned .hg__viewport { overflow: visible; scroll-snap-type: none; }
.hg.is-pinned .hg__hint { display: none; }
@media (min-width: 1024px) {
  .hg.is-pinned .hg__pin { height: 100svh; min-height: 0; justify-content: flex-start; padding-block: calc(var(--header-h) + 1.25rem) 2rem; }
  .hg.is-pinned .hg__viewport { flex: 1; min-height: 0; display: flex; }
  .hg.is-pinned .hg__track { height: 100%; padding-block: 0; }
  .hg.is-pinned .hg__track > * { height: 100%; min-height: 0; }
}
.hg[data-hdepth] .hg__track { padding-right: calc(max(var(--gutter), (100vw - var(--wrap)) / 2) + 5vw); }
.hg.section:has(+ .stack-panel) { padding-bottom: 2.5rem; }
.kinetic-band + .stack-panel { margin-top: 0; }
[data-hsteps] > * { transition: background-color .4s var(--ease-out), color .4s var(--ease-out), opacity .4s; }
