/* Instalio · landing. Tokens heredados del sistema de diseño de la app (DESIGN.md §4): señal teal
   sobre grafito neutro y bordes de 1 px. El único degradado es el del símbolo de la marca,
   frío → calor (climatización), reservado para resaltar palabras y luces de fondo muy suaves. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/overview/fonts/inter-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/overview/fonts/inter-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/overview/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --surface: #ffffff;
  --sunken: #edeff1;
  --border: #e2e5e9;
  --border-strong: #cbd1d7;
  --text: #0f1419;
  --text-2: #4a5460;
  --muted: #667380;
  --accent: #0b7a68;
  --accent-hover: #09685a;
  --accent-soft: #e1f2ee;
  --on-accent: #ffffff;
  --warning: #a8620a;
  --success: #1e8a4c;
  --device: #0c0e10;
  --device-edge: #262b31;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, .06);
  --shadow-md: 0 1px 4px rgba(15, 20, 25, .04), 0 6px 18px rgba(15, 20, 25, .06);
  --shadow-lg: 0 2px 8px rgba(15, 20, 25, .06), 0 24px 60px -12px rgba(15, 20, 25, .18);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* Frío → calor, del símbolo de la marca. Tonos con contraste suficiente para texto grande. */
  --g-cold: #1f87c4;
  --g-mid: #0b7a68;
  --g-warm: #cf6236;
  --glow-cold: rgba(79, 179, 230, .42);
  --glow-warm: rgba(232, 146, 104, .34);

  /* Cristal de la cabecera, etiquetas y menú. */
  --glass: rgba(255, 255, 255, .72);
  --glass-edge: rgba(15, 20, 25, .08);
  --glass-shadow: 0 12px 32px -14px rgba(15, 20, 25, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
  --pill-bg: rgba(15, 20, 25, .06);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-xxl: 28px;

  --container: 1200px;
  --gutter: 16px;
  --section: clamp(4.5rem, 10vw, 9rem);

  /* Curvas de movimiento: salida suave y larga, sin rebotes. */
  --ease-out: cubic-bezier(.33, 1, .68, 1);
  --ease-quint: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 260ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e10; --bg-soft: #101316; --surface: #14171a; --sunken: #1b1f23; --border: #262b31; --border-strong: #38404a;
    --text: #eceff2; --text-2: #a5aeb8; --muted: #7f8a96; --accent: #3fd9b2; --accent-hover: #5ee3c2; --accent-soft: #12302a; --on-accent: #04201a;
    --warning: #e8a63a; --success: #4cc38a; --device: #1b1f23; --device-edge: #38404a;
    --shadow-sm: none; --shadow-md: 0 4px 16px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
    --g-cold: #7fc8f0; --g-mid: #3fd9b2; --g-warm: #f2a07a;
    --glow-cold: rgba(79, 179, 230, .22); --glow-warm: rgba(232, 146, 104, .16);
    --glass: rgba(20, 23, 26, .68); --glass-edge: rgba(255, 255, 255, .09);
    --glass-shadow: 0 12px 32px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
    --pill-bg: rgba(255, 255, 255, .08);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e10; --bg-soft: #101316; --surface: #14171a; --sunken: #1b1f23; --border: #262b31; --border-strong: #38404a;
  --text: #eceff2; --text-2: #a5aeb8; --muted: #7f8a96; --accent: #3fd9b2; --accent-hover: #5ee3c2; --accent-soft: #12302a; --on-accent: #04201a;
  --warning: #e8a63a; --success: #4cc38a; --device: #1b1f23; --device-edge: #38404a;
  --shadow-sm: none; --shadow-md: 0 4px 16px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
  --g-cold: #7fc8f0; --g-mid: #3fd9b2; --g-warm: #f2a07a;
  --glow-cold: rgba(79, 179, 230, .22); --glow-warm: rgba(232, 146, 104, .16);
  --glass: rgba(20, 23, 26, .68); --glass-edge: rgba(255, 255, 255, .09);
  --glass-shadow: 0 12px 32px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  --pill-bg: rgba(255, 255, 255, .08);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (min-width: 840px) { :root { --gutter: 24px; } }

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .15em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; line-height: 1.15; }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
code { font-family: var(--font-mono); font-size: .9em; }
strong { font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.measure { max-width: 68ch; }
.display { font-size: clamp(2.6rem, 1.5rem + 4.9vw, 5.5rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; font-variation-settings: 'opsz' 32; }
.display--sm { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.75rem); }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--text-2); }
.overline { margin: 0 0 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: var(--r-md); font-weight: 600; pointer-events: auto; }
.skip-link:focus { top: .75rem; }

/* ── Botones ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s, transform .35s var(--ease-quint), color .25s, box-shadow .35s var(--ease-quint);
}
.btn:active { transform: scale(.97); }
.btn__arrow { flex: none; transition: transform .45s var(--ease-quint); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text-2); }
.btn--pill { min-height: 40px; padding: 0 .95rem 0 1.15rem; background: var(--text); color: var(--bg); font-size: .9063rem; }
.btn--pill:hover { background: color-mix(in srgb, var(--text) 84%, var(--bg)); }
.btn.lg { min-height: 54px; padding: 0 1.6rem; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ── Cabecera flotante ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 1rem;
  max-width: var(--container); height: 60px; margin: 0 auto; padding: 0 8px 0 16px;
  border-radius: 999px; border: 1px solid transparent; background: transparent;
  transition: max-width .8s var(--ease-quint), background-color .45s var(--ease-out), border-color .45s, box-shadow .45s, padding .6s var(--ease-quint);
}
.site-header.is-scrolled .site-header__bar,
.site-header.is-open .site-header__bar {
  max-width: 1060px; background: var(--glass); border-color: var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; color: var(--text); text-decoration: none; border-radius: 999px; }
/* Logo: la tesela del icono. En la cabecera, el orbe va encima en vivo (orb.js) con la geometría de
   tool/instalio_icon.py: diámetro 0,70 del lado dentro de un lienzo de 0,70 / 0,94 = 74,47 %, centrado
   y 0,5 % más arriba. */
.brand__mark { position: relative; flex: none; width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); transition: transform .6s var(--ease-quint); }
.brand__icon { display: block; width: 100%; height: 100%; }
.brand__orb { position: absolute; left: 12.77%; top: 12.27%; width: 74.47%; height: 74.47%; visibility: hidden; pointer-events: none; }
.brand__mark.is-live .brand__orb { visibility: visible; }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.04); }
.brand__name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
/* The dot of the second "i" is the primary color: a dotless ı with its own dot. */
.brand__i { position: relative; }
.brand__i::after { content: ""; position: absolute; left: 50%; top: .12em; width: .19em; height: .19em; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.site-nav { display: flex; align-items: center; gap: .5rem; }
.site-nav__links { position: relative; }
.site-nav__list { position: relative; z-index: 1; display: flex; list-style: none; }
.site-nav__list a { display: block; padding: .55rem .85rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .3s var(--ease-out); }
/* Seis enlaces (con «Blog») justo por encima del menú compacto: algo más juntos. */
@media (min-width: 1000px) and (max-width: 1099px) { .site-nav__list a { padding-inline: .6rem; } }
.site-nav__list a:hover, .site-nav__list a.is-active { color: var(--text); }
.site-nav__pill {
  position: absolute; left: 0; top: 0; height: 100%; width: var(--w, 0); border-radius: 999px; background: var(--pill-bg);
  transform: translateX(var(--x, 0)); opacity: var(--o, 0);
  transition: transform .6s var(--ease-quint), width .6s var(--ease-quint), opacity .3s var(--ease-out);
}
.menu-toggle { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: var(--pill-bg); color: var(--text); cursor: pointer; }
.menu-toggle__bars { position: relative; width: 16px; height: 10px; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 1.75px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease-quint), top .45s var(--ease-quint); }
.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); }

/* Tema: Sistema → Claro → Oscuro. Se muestra el icono del modo actual. */
.theme-toggle { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: var(--pill-bg); color: var(--text); cursor: pointer; transition: background-color .25s var(--ease-out), transform .35s var(--ease-quint); }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: color-mix(in srgb, var(--pill-bg), var(--text) 8%); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.theme-toggle__icon { display: none; }
.theme-toggle[data-mode="system"] .theme-toggle__icon--system,
.theme-toggle[data-mode="light"] .theme-toggle__icon--light,
.theme-toggle[data-mode="dark"] .theme-toggle__icon--dark { display: block; }
.site-header__bar .theme-toggle { margin-left: -.5rem; }
.theme-toggle + .menu-toggle { margin-left: -.5rem; }

/* Botón principal en la barra cuando el menú está plegado: en el móvil, con texto corto. */
.site-header__cta { display: none; }
.site-header__cta-short { display: none; }
@media (max-width: 999px) { .site-header__cta { display: inline-flex; margin-right: .35rem; } }
@media (max-width: 559px) {
  .site-header__cta { min-height: 38px; padding: 0 .8rem 0 .95rem; font-size: .875rem; }
  .site-header__cta-long { display: none; }
  .site-header__cta-short { display: inline; }
}

/* Menú compacto por debajo de 1000 px: los cinco enlaces y «Habla con Instalio» no caben antes. */
@media (max-width: 999px) {
  .site-header { padding-top: 10px; }
  .site-header__bar { height: 56px; padding: 0 7px 0 14px; background: var(--glass); border-color: var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
  .menu-toggle { display: grid; }
  .site-header__bar .theme-toggle { width: 42px; height: 42px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: .25rem;
    padding: .5rem .5rem .75rem; border-radius: 24px; background: color-mix(in srgb, var(--bg) 97%, transparent); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), 0 24px 48px -16px rgba(15, 20, 25, .25);
    -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .3s var(--ease-out), transform .5s var(--ease-quint), visibility 0s .5s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .5s var(--ease-quint), visibility 0s; }
  .site-nav__pill { display: none; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: .9rem 1rem; font-size: 1.0625rem; color: var(--text); border-radius: 16px; }
  .site-nav__list a:hover { background: var(--pill-bg); }
  .site-nav .btn--pill { min-height: 50px; margin-top: .35rem; font-size: 1rem; }
}

/* Móvil: marca, «Probar gratis», tema y menú en una barra de 56 px. Menos aire, sin flecha y, por
   debajo de 390 px, solo «Probar». */
@media (max-width: 559px) {
  .site-header__bar { gap: .5rem; }
  .site-header__cta { margin-right: 0; padding: 0 .9rem; }
  .site-header__cta .btn__arrow { display: none; }
  .site-header__bar .theme-toggle { width: 40px; height: 40px; margin-left: 0; }
  .theme-toggle + .menu-toggle { width: 40px; height: 40px; margin-left: -.125rem; }
}
@media (max-width: 389px) { .site-header__cta-rest { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 0; margin-top: -72px; padding-top: calc(72px + clamp(3.5rem, 8vw, 7rem)); overflow: clip; }
@media (max-width: 559px) { .hero { padding-top: calc(72px + 2.25rem); } }
.hero__glow { position: absolute; inset: 0 0 auto; height: min(1100px, 120vh); pointer-events: none; }
.hero__glow i { position: absolute; width: clamp(320px, 46vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(90px); }
.hero__glow i:first-child { left: -6%; top: 4%; background: var(--glow-cold); animation: drift-a 22s ease-in-out infinite alternate; }
.hero__glow i:last-child { right: -8%; top: 22%; background: var(--glow-warm); animation: drift-b 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7vw, -4vh) scale(.94); } }
.hero__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { max-width: 15ch; margin-inline: auto; }
.hero__title .w { display: inline-block; }
.hero__copy .lead { margin-top: 1.4rem; }
.hero__copy .actions { justify-content: center; }
.hero__note { margin-top: 1.1rem; font-size: .9375rem; color: var(--muted); }

/* Palabras del titular: entran una a una al cargar (solo CSS, también sin JavaScript). */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w { animation: word-in 1s var(--ease-quint) both; animation-delay: calc(120ms + var(--i) * 55ms); }
  [data-hero-in] { animation: rise-in 1s var(--ease-quint) both; animation-delay: calc(260ms + var(--d) * 70ms); }
}
@keyframes word-in { from { opacity: 0; transform: translateY(.38em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Fragmentos resaltados: un barrido frío → calor recorre el texto y deja un subrayado, por turnos. */
.hl { position: relative; display: inline-block; white-space: nowrap; }
.glue { white-space: nowrap; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hl {
    color: transparent;
    /* La palabra ve una cuarta parte del degradado: en reposo (0 % y 100 %) solo color de texto, con
       margen, para que no quede teñida ninguna letra; a mitad del barrido (50 %), frío → calor entero. */
    background-image: linear-gradient(100deg, var(--text) 0 30%, var(--g-cold) 38%, var(--g-mid) 50%, var(--g-warm) 62%, var(--text) 70% 100%);
    background-size: 400% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
  }
}
.hl::after {
  content: ''; position: absolute; left: .02em; right: .02em; bottom: -.04em; height: .055em; border-radius: 1em;
  background: linear-gradient(90deg, var(--g-cold), var(--g-mid), var(--g-warm));
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hl.is-lit { animation: hl-sweep 3.6s var(--ease-quint) both; }
  .hl.is-lit::after { animation: hl-line 3.6s var(--ease-quint) both; }
}
@keyframes hl-sweep { 0% { background-position: 100% 0; } 30%, 72% { background-position: 50% 0; } 100% { background-position: 0% 0; } }
@keyframes hl-line { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 72% { transform: scaleX(1); opacity: 1; transform-origin: right; } 100% { transform: scaleX(0); opacity: 1; transform-origin: right; } }

/* Escenario del hero: la ventana sube, se endereza y crece con el scroll; el teléfono y las
   etiquetas se mueven a distinta velocidad. --p (0–1) lo fija el script; sin él, estado final. */
.hero__stage { position: relative; margin-top: clamp(3rem, 6vw, 5.5rem); --p: 1; }
.hero__visual { position: relative; padding-bottom: clamp(1.5rem, 4vw, 2.5rem); perspective: 1800px; }
.hero__visual .hero__browser {
  width: min(100% - clamp(0px, 10vw, 140px), 1120px); margin: 0 auto 0 0; transform-origin: 50% 0;
  transform: translateY(calc((1 - var(--p)) * 56px)) rotateX(calc((1 - var(--p)) * 14deg)) scale(calc(.93 + var(--p) * .07));
}
.hero__visual .hero__phone {
  position: absolute; right: 0; bottom: 0; width: clamp(150px, 21vw, 280px); max-width: none; margin: 0;
  transform: translateY(calc((1 - var(--p)) * 140px)) rotate(calc((1 - var(--p)) * 4deg));
}
.hero__tags { position: absolute; inset: 0; list-style: none; pointer-events: none; }
.tag {
  position: absolute; display: flex; align-items: center; gap: .55rem; padding: .55rem .85rem .55rem .7rem;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  font-size: .8125rem; line-height: 1.2; white-space: nowrap;
  translate: 0 calc((1 - var(--p)) * var(--depth, 80px));
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
.tag--cold .tag__dot { background: var(--g-cold); }
.tag--warm .tag__dot { background: var(--g-warm); }
.tag--success .tag__dot { background: var(--success); }
.tag__value { font-family: var(--font-mono); font-weight: 600; font-size: .875rem; letter-spacing: -.01em; }
.tag__label { color: var(--muted); }
.tag--0 { left: -1.5%; top: 14%; --depth: 160px; }
.tag--1 { left: 50%; top: -3.5%; --depth: 60px; }
.tag--2 { left: 4%; bottom: 20%; --depth: 220px; }
.tag--3 { right: clamp(160px, 21vw, 300px); bottom: 5%; --depth: 120px; }
@media (prefers-reduced-motion: no-preference) {
  .tag { animation: tag-in .9s var(--ease-quint) both, bob 7s ease-in-out infinite alternate; animation-delay: calc(900ms + var(--i) * 140ms), calc(var(--i) * -1.7s); }
}
@keyframes tag-in { from { opacity: 0; scale: .7; filter: blur(6px); } to { opacity: 1; scale: 1; filter: blur(0); } }
@keyframes bob { from { transform: translateY(-5px) rotate(-.6deg); } to { transform: translateY(6px) rotate(.6deg); } }

/* En pantallas estrechas la captura de escritorio no se lee: manda el teléfono. */
@media (max-width: 639px) {
  .hero__visual .hero__browser { display: none; }
  .hero__visual { padding-bottom: 0; }
  .hero__visual .hero__phone { position: relative; width: min(74%, 300px); margin-inline: auto; }
  .tag--1, .tag--2 { display: none; }
  .tag--0 { left: 0; top: 16%; }
  .tag--3 { right: 0; bottom: 14%; }
  .tag__label { display: none; }
}

/* ── Marcos de dispositivo ─────────────────────────────────────── */
.device { margin: 0; }
.device__screen { background: var(--sunken); overflow: hidden; }
.device__screen img { width: 100%; }
.device--browser { border-radius: var(--r-lg); background: var(--device); border: 1px solid var(--device-edge); box-shadow: var(--shadow-lg); overflow: hidden; }
.device--browser .device__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--device); }
.device--browser .device__bar span { width: 10px; height: 10px; border-radius: 50%; background: #38404a; }
.device--browser .device__bar i { flex: 1; max-width: 360px; height: 18px; margin-left: 12px; border-radius: 6px; background: #1b1f23; }
.device--browser .device__screen { aspect-ratio: 1440 / 900; }

/* iPhone: barra de estado (54 pt) + zona segura de la app (756 pt, la captura) + indicador de
   inicio (34 pt) = 844 pt. Medidas en unidades del contenedor para que escalen con el marco. */
.device--phone { width: 100%; max-width: 360px; margin-inline: auto; padding: 9px; border-radius: 52px; background: var(--device); border: 1px solid var(--device-edge); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .05); }
.device--phone .device__screen {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 390 / 844; border-radius: 43px;
  background: #f6f7f8; color: #0f1419; container-type: inline-size;
}
.statusbar {
  position: relative; flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 50px; height: 13.85cqw; padding: 0 7.4cqw 0 9.2cqw;
  font: 600 4.36cqw/1 -apple-system, 'SF Pro Text', 'Inter', system-ui, sans-serif; letter-spacing: -.01em;
}
.statusbar__time { padding-top: .9cqw; }
.statusbar__island { position: absolute; left: 50%; top: 2.82cqw; width: 32.3cqw; height: 9.5cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.statusbar__icons { display: flex; align-items: center; gap: 1.55cqw; padding-top: .9cqw; }
.statusbar svg { fill: currentColor; width: auto; }
.sb-signal { height: 3.05cqw; }
.sb-wifi { height: 3.15cqw; }
.sb-battery { height: 3.4cqw; }
.device__content { position: relative; flex: none; aspect-ratio: 390 / 756; overflow: hidden; }
.device__content img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.homebar { flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2.2cqw; }
.homebar i { width: 34.6cqw; height: 1.3cqw; border-radius: 99px; background: #0f1419; }

.img-pending { display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px; background: repeating-linear-gradient(45deg, var(--sunken) 0 12px, var(--bg-soft) 12px 24px); color: var(--text-2); text-align: center; font-size: .875rem; padding: 1rem; }

/* ── Secciones ─────────────────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head h2 { margin-bottom: .45em; }
.section__head .lead { margin: 0; }

/* Problema / solución */
.pairs { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; margin: 0; }
.pair { background: var(--surface); padding: clamp(1.4rem, 3vw, 2.25rem); }
.pair dt { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.015em; margin-bottom: .55rem; }
.pair dt::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 .6rem .12rem 0; border-radius: 50%; background: var(--warning); }
.pair dd { margin: 0; color: var(--text-2); }
@media (min-width: 720px) { .pairs { grid-template-columns: 1fr 1fr; } }

/* Funcionalidades: versión estática */
.feature { display: grid; gap: 2rem; align-items: center; padding: clamp(2.5rem, 6vw, 5.5rem) 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature__copy h3 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem); line-height: 1.12; letter-spacing: -.028em; max-width: 20ch; }
.feature__copy > p { color: var(--text-2); font-size: 1.0625rem; max-width: 52ch; }
.feature__visual { display: flex; justify-content: center; }
.feature__visual .device--phone { max-width: 340px; }
@media (min-width: 840px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); }
  .feature--flip .feature__copy { order: 2; }
  .feature--flip .feature__visual { order: 1; }
}
.checks { list-style: none; margin-top: 1.25rem; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--text); }
.checks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ''; position: absolute; left: 5px; top: calc(.35em + 4px); width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks--compact { gap: .5rem; font-size: .9375rem; }

/* ── Funcionalidades: secuencia controlada por el scroll ─────────────
   Un teléfono fijo reproduce un diagnóstico real fotograma a fotograma; a la izquierda, una lista
   de pestañas abre la del tramo en curso con su barra de progreso. Sin JavaScript, con «reducir
   movimiento» o con ahorro de datos se muestra la versión estática (.features-static). */
.section--features { padding-bottom: 0; }

/* ── Normativa vigente ────────────────────────────────────────────── */
.regs .feature__copy h2 { max-width: 16ch; }
/* Aquí la cabecera es la de la sección: sin el tamaño y el color de párrafo de `.feature__copy > p`. */
.regs .feature__copy > .overline { font-size: .75rem; color: var(--accent); }
.regs .feature__copy > .lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); }
.regs .feature__copy > .regs__label { margin: 2rem 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.regs__norms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.regs__norms li { padding: .375rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .875rem; line-height: 1.4; }
.scrub { --scrub-length: 480vh; position: relative; height: var(--scrub-length); margin-top: calc(-1 * clamp(1rem, 3vw, 2.5rem)); }
.scrub[hidden], .features-static[hidden] { display: none; }
.scrub__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 64px; }
.scrub__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.scrub__tabs { list-style: none; display: grid; gap: .15rem; }
.scrub__tab { position: relative; padding: .95rem 0 .95rem 1.6rem; }
.scrub__bar { position: absolute; left: 0; top: 1.05rem; bottom: 1.05rem; width: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.scrub__bar i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--g-cold), var(--g-mid), var(--g-warm)); transform-origin: top; transform: scaleY(var(--seg-p, 0)); }
.scrub__title { margin: 0; font-size: inherit; }
.scrub__jump { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-sm); }
.scrub__kicker { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); transition: color .5s var(--ease-out); }
.scrub__headline { display: block; max-width: 22ch; font-size: clamp(1.25rem, 1.02rem + .85vw, 1.875rem); font-weight: 600; line-height: 1.14; letter-spacing: -.028em; color: color-mix(in srgb, var(--text) 38%, transparent); transition: color .5s var(--ease-out); }
.scrub__jump:hover .scrub__headline { color: color-mix(in srgb, var(--text) 70%, transparent); }
.scrub__tab.is-active .scrub__kicker { color: var(--accent); }
.scrub__tab.is-active .scrub__headline { color: var(--text); }
.scrub__body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease-quint), opacity .5s var(--ease-out); }
.scrub__body > div { overflow: hidden; }
.scrub__tab.is-active .scrub__body { grid-template-rows: 1fr; opacity: 1; }
.scrub__body p { margin: .8rem 0 0; max-width: 48ch; color: var(--text-2); font-size: 1rem; }
.scrub__body .checks { margin-top: .9rem; }
.scrub__device { display: flex; justify-content: center; }
.scrub__phone { height: min(80svh, 760px); width: fit-content; max-width: 100%; margin: 0; }
.scrub__phone .device__screen { height: 100%; width: auto; }
.scrub__canvas, .scrub__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.scrub__poster[hidden] { display: none; }
.scrub__short, .scrub__dots { display: none; }
.scrub__hint { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; font-size: .8125rem; color: var(--muted); transition: opacity var(--t-slow); }
.scrub.is-started .scrub__hint { opacity: 0; }
@media (max-height: 760px) and (min-width: 840px) { .scrub__body .checks { display: none; } }

@media (max-width: 839px) {
  .scrub { --scrub-length: 440vh; }
  .scrub__sticky { padding-top: 66px; }
  .scrub__layout { grid-template-columns: 1fr; gap: 1rem; align-content: center; }
  .scrub__device { order: -1; }
  .scrub__device { flex-direction: column; align-items: center; }
  /* Alto de la pantalla menos la cabecera y el pie de foto (antetítulo, titular y dos o tres líneas). */
  .scrub__phone { height: clamp(300px, calc(100svh - 66px - 14.5rem), 600px); }
  .scrub__tabs { display: grid; }
  .scrub__tab { grid-area: 1 / 1; padding: 0; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-quint); pointer-events: none; }
  .scrub__tab.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .scrub__bar { display: none; }
  .scrub__jump { text-align: center; }
  .scrub__headline { margin: 0 auto; font-size: clamp(1.25rem, 1.05rem + 1.2vw, 1.5rem); }
  .scrub__body { grid-template-rows: 1fr; opacity: 1; }
  .scrub__text, .scrub__body .checks { display: none; }
  .scrub__short { display: block; max-width: 34ch; margin: .45rem auto 0; color: var(--text-2); font-size: .9375rem; line-height: 1.45; }
  .scrub__kicker { margin-bottom: .25rem; }
  .scrub__dots { display: flex; gap: 4px; width: min(200px, 56%); margin-top: .85rem; }
  .scrub__dots span { flex: 1; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
  .scrub__dots i { display: block; height: 100%; background: linear-gradient(90deg, var(--g-cold), var(--g-mid), var(--g-warm)); transform-origin: left; transform: scaleX(var(--seg-p, 0)); }
  .scrub__hint { bottom: .5rem; }
}
/* Pantallas bajas (iPhone SE y parecidos): sin antetítulo, para que el teléfono no encoja tanto. */
@media (max-height: 700px) and (max-width: 839px) {
  .scrub__kicker { display: none; }
  .scrub__phone { height: clamp(280px, calc(100svh - 66px - 12rem), 600px); }
}

/* Cómo funciona */
.steps { list-style: none; display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; } }
.step__visual .device--phone { max-width: 260px; }
@media (max-width: 639px) {
  .steps { grid-auto-flow: column; grid-auto-columns: 74%; gap: 1rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps > li { scroll-snap-align: start; }
}
.step__copy { margin-top: 1.5rem; text-align: center; }
.step__num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: .75rem; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.step__copy h3 { font-size: 1.1875rem; margin-bottom: .35em; }
.step__copy p { color: var(--text-2); font-size: .9375rem; margin: 0; }

/* Precios */
.plans-wrap { position: relative; }
.plans__glow { position: absolute; inset: 8% 6% -6%; pointer-events: none; }
.plans__glow i { position: absolute; width: 46%; aspect-ratio: 1.4; border-radius: 50%; filter: blur(80px); opacity: .55; }
.plans__glow i:first-child { left: 8%; top: 4%; background: var(--glow-cold); animation: breathe-a 12s ease-in-out infinite alternate; }
.plans__glow i:last-child { right: 8%; bottom: 0; background: var(--glow-warm); animation: breathe-b 14s ease-in-out infinite alternate; }
@keyframes breathe-a { from { transform: translate(-2%, -4%); opacity: .45; } to { transform: translate(4%, 3%); opacity: .7; } }
@keyframes breathe-b { from { transform: translate(3%, 2%); opacity: .4; } to { transform: translate(-4%, -3%); opacity: .65; } }
.plans { position: relative; display: grid; gap: 1rem; }
@media (min-width: 840px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.plan { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xxl); box-shadow: var(--shadow-md); transition: transform .5s var(--ease-quint), box-shadow .5s var(--ease-quint); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan__head { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.plan__head h3 { font-size: 1.125rem; margin-bottom: .75rem; letter-spacing: 0; }
.plan__price { display: flex; align-items: baseline; gap: .25rem; margin: 0 0 .5rem; }
.plan__amount { font-size: 2.75rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__period { color: var(--muted); font-size: 1rem; }
.plan__summary { margin: 0; color: var(--text-2); font-size: .9375rem; }
.plan__usage { font-size: .9375rem; color: var(--text-2); margin-bottom: 1rem; padding: .8rem .95rem; background: var(--bg-soft); border-radius: var(--r-lg); }
.plan__usage strong { color: var(--text); display: block; margin-bottom: .15rem; }
.plan__cta { margin-top: auto; padding-top: 1.5rem; }
.plan__cta .btn { width: 100%; min-height: 48px; }
/* El plan sugerido: borde de acento, halo suave y su etiqueta junto al nombre. */
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -18px color-mix(in srgb, var(--accent) 45%, transparent); }
.plan--featured:hover { box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -18px color-mix(in srgb, var(--accent) 55%, transparent); }
.plan--featured .plan__head h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.plan__badge { margin-block: -.25rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.notes { margin-top: 2.25rem; color: var(--muted); font-size: .9375rem; }
.notes p { margin-bottom: .6em; }

/* Descargas */
/* La captura de escritorio no se lee en un móvil: ahí basta con las plataformas. */
@media (max-width: 719px) { .downloads__visual { display: none; } }
.platforms { list-style: none; display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 720px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platform { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); display: flex; flex-direction: column; }
.platform h3 { font-size: 1.125rem; margin-bottom: .25rem; letter-spacing: 0; }
.platform__req { margin: 0 0 .5rem; font-size: .9375rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.platform__note { margin: 0; font-size: .9375rem; color: var(--muted); }
.platform__action { margin-top: auto; padding-top: 1.25rem; }
.platform__action .btn { width: 100%; min-height: 48px; }
.pending { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; width: 100%; justify-content: center; padding: 0 1rem; border: 1px dashed var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: .9375rem; font-weight: 500; }
.pending__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.downloads__browser { width: min(100%, 1120px); margin-inline: auto; }

/* FAQ */
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.faq__icon { position: relative; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--sunken); transition: background .3s, transform .5s var(--ease-quint); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--text); transform: translate(-50%, -50%); transition: transform .5s var(--ease-quint); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { padding: 0 2.5rem 1.25rem 0; color: var(--text-2); }
.faq__answer p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer { animation: rise-in .6s var(--ease-quint) both; }
}

/* Cierre */
.closing { position: relative; padding: calc(var(--section) * 1.1) 0; background: #0c0e10; color: #eceff2; overflow: clip; isolation: isolate; }
.closing__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.closing__glow i { position: absolute; width: clamp(320px, 42vw, 640px); aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .5; }
.closing__glow i:first-child { left: 10%; top: -20%; background: rgba(79, 179, 230, .45); animation: drift-a 20s ease-in-out infinite alternate; }
.closing__glow i:last-child { right: 8%; bottom: -30%; background: rgba(232, 146, 104, .38); animation: drift-b 24s ease-in-out infinite alternate; }
.closing__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing__icon { width: 64px; height: 64px; margin-bottom: 1.75rem; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.closing h2 { max-width: 18ch; }
.closing .lead { color: rgba(236, 239, 242, .72); margin: .75rem 0 2rem; }
.closing .btn--primary { background: #eceff2; color: #0c0e10; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.closing .btn--primary:hover { background: #ffffff; }
.closing .btn:focus-visible { box-shadow: 0 0 0 2px #0c0e10, 0 0 0 4px #eceff2; }

/* Pie */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--border); background: var(--bg); font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } .site-footer__brand { grid-column: auto; } }
.site-footer__brand p { max-width: 36ch; color: var(--text-2); margin: 1rem 0 0; }
.site-footer__title { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__pending { color: var(--muted); }
.footer__pending small { font-size: .8125rem; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
.site-footer__bottom p { margin: 0 0 .5em; max-width: 90ch; }

/* ── Apariciones al hacer scroll (con JavaScript y sin «reducir movimiento») ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-quint), transform 1.1s var(--ease-quint), filter .9s var(--ease-quint); }
  .js [data-reveal="zoom"] { transform: translateY(40px) scale(.94); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

  .js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(8px); transition: opacity .8s var(--ease-quint), transform 1s var(--ease-quint), filter .8s var(--ease-quint); transition-delay: calc(var(--i) * 45ms); }
  .js [data-split].is-visible .w { opacity: 1; transform: none; filter: none; }

  .js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-quint), transform 1s var(--ease-quint), clip-path 1.1s var(--ease-quint); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-stagger].is-visible > * { opacity: 1; transform: none; }
  /* Tarjetas de precios: se abren desde dentro, como un recorte que se expande. */
  .js .plans[data-stagger] > .plan { clip-path: inset(22px round 36px); }
  .js .plans[data-stagger].is-visible > .plan { clip-path: inset(-16px round 40px); }
  .js .plans[data-stagger].is-visible > .plan:hover { transform: translateY(-4px); }
}

/* Sin animaciones decorativas para quien prefiere menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  .hero__glow i, .plans__glow i, .closing__glow i { animation: none; }
  .hero__visual .hero__browser, .hero__visual .hero__phone { transform: none; }
  .tag { translate: none; }
  .brand:hover .brand__mark, .plan:hover { transform: none; }
}

/* Cierre: acción secundaria discreta sobre fondo oscuro. */
.closing__actions { justify-content: center; margin-top: 0; }
.btn--ghost { color: #eceff2; border-color: rgba(236, 239, 242, .28); background: transparent; }
.btn--ghost:hover { border-color: rgba(236, 239, 242, .6); }

/* ── Calculadoras: tres capturas reales de las herramientas interactivas ─────────────── */
.section--tools { position: relative; overflow: clip; isolation: isolate; }
.tools__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tools__glow i { position: absolute; width: clamp(280px, 38vw, 560px); aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .5; }
.tools__glow i:first-child { right: -6%; top: 6%; background: var(--glow-cold); animation: breathe-a 14s ease-in-out infinite alternate; }
.tools__glow i:last-child { left: -8%; bottom: 4%; background: var(--glow-warm); animation: breathe-b 16s ease-in-out infinite alternate; }
.tools { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.tool__visual .device--phone { max-width: 320px; }
/* El central, un poco más abajo: rompe la fila sin perder la lectura de izquierda a derecha. */
@media (min-width: 720px) { .tool:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3.5rem); } }
.tool__copy { margin-top: 1.5rem; text-align: center; }
.tool__copy h3 { font-size: 1.25rem; margin-bottom: .35em; }
.tool__copy p { margin: 0 auto; max-width: 30ch; color: var(--text-2); font-size: .9375rem; }
.tools__note { margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; color: var(--muted); font-size: .9375rem; }
@media (max-width: 719px) {
  /* Carrusel táctil: una calculadora por «página», con la siguiente asomando. */
  .tools { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 1rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tools::-webkit-scrollbar { display: none; }
  .tool { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .tools__glow i { animation: none; } }
