/* MozoTauro · página de presentación, con tema claro (predeterminado) y oscuro.
   Claro: fondo crema, texto casi negro y el oro de la marca en botones y acentos.
   Oscuro: los colores del tema oscuro de la app (artifacts/mobile/constants/colors.ts),
   con el brillo y los anillos dorados.
   Todos los colores de este archivo son variables, en tres bloques: «Colores fijos» (los
   mismos en los dos temas: los marcos del móvil y los degradados que solo se ven en el
   oscuro), el tema claro (:root) y el oscuro ([data-theme="dark"]; tema.js pone el
   atributo en <html>). Los bloques claro y oscuro definen las mismas variables. Fuera de
   los bloques solo quedan las máscaras de fundido (#000 = opaco), que no son colores que
   se vean. Las capturas de la app y la foto del callejón también van por tema: ver
   «Imágenes de cada tema».
   Espaciado en múltiplos de 8 px. Sin dependencias ni recursos externos. */

/* ---------- Fuentes (Inter, servida desde aquí; licencia en fonts/Inter-OFL.txt) ----------
   Inter recortada a los caracteres latinos (unos 15 KB por grosor en WOFF2; el TTF
   recortado es el respaldo). «Inter fallback» es Arial ajustada a las medidas de
   Inter: mientras llega la fuente, el texto ocupa casi lo mismo y no salta. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400.woff2") format("woff2"), url("fonts/inter-latin-400.ttf") format("truetype"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2192, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600.woff2") format("woff2"), url("fonts/inter-latin-600.ttf") format("truetype"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2192, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-800.woff2") format("woff2"), url("fonts/inter-latin-800.ttf") format("truetype"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2192, U+2212; }

@font-face { font-family: "Inter fallback"; font-style: normal; font-weight: 400; src: local("Arial"), local("ArialMT"); size-adjust: 105.6%; ascent-override: 91.74%; descent-override: 22.84%; line-gap-override: 0%; }
@font-face { font-family: "Inter fallback"; font-style: normal; font-weight: 600 800; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 102.5%; ascent-override: 94.51%; descent-override: 23.53%; line-gap-override: 0%; }

/* ---------- Medidas (iguales en los dos temas) ---------- */

:root {
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  --radius-lg: 20px;
  --radius-xl: 28px;

  --max: 1120px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: clamp(80px, 40px + 8vw, 128px);

  --font: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

/* ---------- Colores fijos (iguales en los dos temas) ---------- */

:root {
  /* Marcos del móvil: oscuros en los dos temas, como un móvil de verdad. La pantalla
     (detrás de la captura mientras llega) también; la ventana del navegador va por tema. */
  --device-bezel: linear-gradient(155deg, #3b4252 0%, #1b2029 22%, #0e1117 55%, #1d222c 85%, #3a404d 100%);
  --device-screen: #0d1117;

  /* Degradados que solo se ven en el oscuro. Van en capas con opacity: var(--solo-oscuro)
     (ver «Degradados del tema oscuro»), así que tienen que ser iguales en los dos temas. */
  --dark-hero-sky: radial-gradient(70% 45% at 50% 70%, rgba(201, 164, 74, .09), transparent 70%), linear-gradient(180deg, #0a0d12 0%, #0d1117 100%);
  --dark-hero-sky-wide: radial-gradient(45% 60% at 74% 42%, rgba(201, 164, 74, .13), transparent 70%), linear-gradient(180deg, #0a0d12 0%, #0d1117 100%);
  --dark-section-glow: radial-gradient(70% 420px at 50% 0%, rgba(201, 164, 74, .07), transparent 70%);
  --dark-media-glow: radial-gradient(circle, rgba(201, 164, 74, .2), transparent 68%);
  --dark-btn-gold: linear-gradient(180deg, #dcbd6b 0%, #c9a44a 55%, #b8933c 100%);
  --dark-btn-gold-hover: linear-gradient(180deg, #e2c475 0%, #cfaa52 55%, #bd9841 100%);
  --dark-btn-gold-shine: inset 0 1px 0 rgba(255, 244, 214, .45);   /* filo de luz de arriba del botón */
  --dark-tile: linear-gradient(180deg, rgba(201, 164, 74, .12), rgba(201, 164, 74, 0));
  --dark-step: radial-gradient(circle at 50% 30%, rgba(201, 164, 74, .17), rgba(201, 164, 74, 0));
  --dark-step-line: linear-gradient(180deg, rgba(201, 164, 74, .55), rgba(201, 164, 74, 0));
  --dark-feature: linear-gradient(180deg, rgba(17, 21, 28, 0) 0%, #11151c 100%);
  /* Precios: el filo de luz de arriba y el degradado de la tarjeta. */
  --dark-price: linear-gradient(90deg, rgba(240, 215, 140, 0) 15%, #f0d78c 50%, rgba(240, 215, 140, 0) 85%) top / 100% 1px no-repeat, linear-gradient(180deg, rgba(18, 22, 29, 0) 0%, #12161d 100%);
}

/* Colores del texto dorado (.gold-text). Registrados como colores para que el degradado
   del texto se anime al cambiar de tema; donde no hay @property, cambia de golpe. */
@property --gold-text-top { syntax: "<color>"; inherits: true; initial-value: #a5843a; }
@property --gold-text-mid { syntax: "<color>"; inherits: true; initial-value: #97792f; }
@property --gold-text-end { syntax: "<color>"; inherits: true; initial-value: #8f7229; }

/* ---------- Tema claro (predeterminado) ---------- */

:root {
  color-scheme: light;

  /* Superficies */
  --bg: #fbfaf7;
  --bg-alt: #f3f0e9;          /* secciones alternas */
  --surface: #ffffff;         /* tarjetas */
  --line: #e6e0d4;            /* bordes finos */
  --line-strong: #d4ccbd;
  --section-line: transparent;

  /* Texto */
  --ink: #0d1117;             /* titulares (el negro de la app) */
  --text: #2a2e35;            /* cuerpo */
  --muted: #5d5a54;           /* secundario: 6:1 sobre --bg */
  --subtle: #6b6257;          /* terciario: 5,7:1 sobre --bg */

  /* Oro de la marca */
  --gold: #c9a44a;            /* rellenos (texto oscuro encima: 8:1) */
  --gold-rgb: 201, 164, 74;   /* --gold en RGB, para sus transparencias: rgba(var(--gold-rgb), .2) */
  --accent: #7d621f;          /* oro para texto pequeño: 5,1:1 o más */
  --accent-hi: #7d621f;       /* oro de realce (pill, números, enlaces) */
  --mark: #9a7c2e;            /* TAURO del logotipo (el de la app) y oro grande: 3,8:1 */
  --gold-soft: #f5ecd5;
  --gold-line: rgba(201, 164, 74, .35);
  --gold-text-top: #a5843a;   /* texto dorado (.gold-text): arriba, al 62 % y abajo */
  --gold-text-mid: #97792f;
  --gold-text-end: #8f7229;
  --on-gold: #0d1117;

  --focus: #0d1117;
  --selection: rgba(201, 164, 74, .35);
  --hover-tint: rgba(13, 17, 23, .04);
  /* Cabecera fija. Con .9 de opacidad, los enlaces (--muted) siguen por encima de 4,5:1
     también cuando pasa por encima de las capturas y de la foto del callejón. */
  --header-bg: rgba(251, 250, 247, .9);
  --link-line: rgba(125, 98, 31, .4);

  /* Botones */
  --btn-gold-bg: #c9a44a;
  --btn-gold-bg-hover: #d5b35e;
  --btn-gold-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(13, 17, 23, .12), 0 10px 24px -12px rgba(166, 128, 40, .7);
  --btn-gold-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(13, 17, 23, .12), 0 14px 30px -12px rgba(166, 128, 40, .75);
  --btn-ghost-bg: #ffffff;
  --btn-ghost-border: #d4ccbd;
  --btn-ghost-bg-hover: #ffffff;
  --btn-ghost-border-hover: #a99f8c;
  --btn-ghost-color-hover: #0d1117;

  /* Iconos en cuadro */
  --tile-bg: #f5ecd5;
  --tile-ring: rgba(201, 164, 74, 0);
  --tile-color: #7d621f;
  --tile-muted-bg: #f3f0e9;
  --tile-muted-ring: rgba(13, 17, 23, 0);
  --tile-muted-color: #5d5a54;

  /* Tarjetas */
  --card-bg: #ffffff;
  --card-border: #e6e0d4;
  --feature-bg: #ffffff;
  --feature-border: #e6e0d4;
  --feature-border-hover: #d4ccbd;

  /* Pasos */
  --step-bg: #ffffff;
  --step-border: #c9a44a;
  --step-line: #d4ccbd;

  /* Marcos de móvil. Las dos sombras (claro y oscuro) tienen las mismas capas, dos
     interiores y tres exteriores, para que el cambio de tema las funda en vez de saltar. */
  --phone-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, 0), 0 0 0 1px rgba(13, 17, 23, .55), 0 50px 80px -34px rgba(13, 17, 23, .5), 0 24px 40px -26px rgba(13, 17, 23, .4);
  --phone-back-filter: none;

  /* Ventana del navegador de «Pensada para el callejón» (el fondo es el de detrás de la
     captura mientras llega). Las dos sombras tienen las mismas capas, como las del móvil. */
  --device-browser-bg: #f3f0e9;
  --device-browser-shadow: 0 0 0 1px rgba(13, 17, 23, .04), 0 40px 80px -30px rgba(13, 17, 23, .38), 0 60px 120px -50px rgba(201, 164, 74, .22);
  --device-dot: #d4ccbd;

  /* «Pensada para el callejón»: degradado de la banda (sin foto o mientras llega) y velo
     crema encima de la foto, del fondo de la página, para leer el título en tinta oscura.
     El velo es fuerte donde va el texto (hasta 140 px pasado el centro, que en el móvil es
     toda la banda) y se aclara hacia la derecha, para que la foto se vea. */
  --callejon-glow: rgba(201, 164, 74, .16);
  --callejon-dusk: #f3efe6;
  --callejon-dusk-end: #ece5d7;
  --callejon-veil: linear-gradient(90deg, rgba(251, 250, 247, .76) 0, rgba(251, 250, 247, .76) calc(50% + 140px), rgba(251, 250, 247, 0) calc(50% + 440px)), linear-gradient(180deg, rgba(251, 250, 247, .55) 0%, rgba(251, 250, 247, .15) 50%, rgba(251, 250, 247, .15) 75%, #fbfaf7 100%);

  /* Precios (la barra dorada de arriba de la tarjeta es --gold y solo sale en el claro) */
  --price-bg: #ffffff;
  --price-border: #e6e0d4;
  --price-shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 40px 80px -40px rgba(13, 17, 23, .22);

  /* Preguntas */
  --faq-icon-bg: #f3f0e9;
  --faq-icon-border: rgba(13, 17, 23, 0);
  --faq-icon-color: #0d1117;
  --faq-open-bg: #f5ecd5;
  --faq-open-border: rgba(13, 17, 23, 0);
  --faq-open-color: #7d621f;

  /* Brillos y pie */
  --halo-glow: .75;           /* brillo dorado detrás de los móviles de la portada */
  --final-glow: rgba(201, 164, 74, .16);
  --app-icon-shadow: 0 0 0 1px rgba(13, 17, 23, .1), 0 16px 32px -14px rgba(13, 17, 23, .5);
  --footer-bg: #fbfaf7;

  /* Capas que solo se ven en un tema: 0 = oculta, 1 = visible. Al cambiar de tema se
     funden con la opacidad. --solo-oscuro: anillos, brillos y degradados del oscuro;
     --solo-claro: la barra dorada de Precios. */
  --solo-oscuro: 0;
  --solo-claro: 1;
}

/* ---------- Tema oscuro ---------- */

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

  --bg: #0d1117;
  --bg-alt: #090c11;
  --surface: #161b24;
  --line: rgba(243, 237, 224, .08);
  --line-strong: #2a3140;
  --section-line: rgba(243, 237, 224, .08);

  --ink: #f3ede0;
  --text: #f3ede0;
  --muted: #bfb8a6;
  --subtle: #8d8674;          /* 5,2:1 sobre --bg */

  --gold: #c9a44a;            /* 8:1 sobre --bg */
  --gold-rgb: 201, 164, 74;
  --accent: #c9a44a;
  --accent-hi: #f0d78c;
  --mark: #c9a44a;
  --gold-soft: rgba(201, 164, 74, .08);
  --gold-line: rgba(201, 164, 74, .35);
  --gold-text-top: #f0d78c;
  --gold-text-mid: #c9a44a;
  --gold-text-end: #b8933c;
  --on-gold: #14110a;

  --focus: #f0d78c;
  --selection: rgba(201, 164, 74, .35);
  --hover-tint: rgba(243, 237, 224, .05);
  --header-bg: rgba(13, 17, 23, .8);
  --link-line: rgba(240, 215, 140, .4);

  /* Los degradados del oscuro (botón, iconos, pasos, tarjetas) van en una capa encima
     de estos colores lisos: --dark-* en «Colores fijos». */
  --btn-gold-bg: #c9a44a;
  --btn-gold-bg-hover: #cfaa52;
  --btn-gold-shadow: inset 0 1px 0 rgba(255, 244, 214, .45), 0 1px 0 rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(201, 164, 74, .55);
  --btn-gold-shadow-hover: inset 0 1px 0 rgba(255, 244, 214, .5), 0 1px 0 rgba(0, 0, 0, .4), 0 18px 44px -14px rgba(201, 164, 74, .7);
  --btn-ghost-bg: rgba(243, 237, 224, .04);
  --btn-ghost-border: rgba(243, 237, 224, .18);
  --btn-ghost-bg-hover: rgba(201, 164, 74, .08);
  --btn-ghost-border-hover: rgba(201, 164, 74, .6);
  --btn-ghost-color-hover: #f0d78c;

  --tile-bg: rgba(201, 164, 74, .05);
  --tile-ring: rgba(201, 164, 74, .24);
  --tile-color: #c9a44a;
  --tile-muted-bg: #1e2633;
  --tile-muted-ring: rgba(243, 237, 224, .08);
  --tile-muted-color: #8d8674;

  --card-bg: #161b24;
  --card-border: rgba(243, 237, 224, .08);
  --feature-bg: #161b24;
  --feature-border: rgba(243, 237, 224, .08);
  --feature-border-hover: rgba(201, 164, 74, .35);

  --step-bg: rgba(201, 164, 74, .04);
  --step-border: rgba(201, 164, 74, .55);
  --step-line: rgba(201, 164, 74, .12);

  --phone-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .55), 0 24px 48px -16px rgba(0, 0, 0, .75), 0 50px 100px -30px rgba(201, 164, 74, .16);
  --phone-back-filter: brightness(.55) saturate(.85);

  --device-browser-bg: #10141b;
  --device-browser-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 40px 80px -30px rgba(0, 0, 0, .85), 0 60px 120px -50px rgba(201, 164, 74, .18);
  --device-dot: #2f3747;

  /* La plaza al anochecer. #0d1117 es --bg. */
  --callejon-glow: rgba(201, 164, 74, .22);
  --callejon-dusk: #11141b;
  --callejon-dusk-end: #17161a;
  --callejon-veil: linear-gradient(180deg, rgba(13, 17, 23, .9) 0%, rgba(13, 17, 23, .55) 45%, rgba(13, 17, 23, .4) 75%, #0d1117 100%);

  --price-bg: #1a1f29;
  --price-border: rgba(201, 164, 74, .35);
  --price-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 40px 100px -40px rgba(201, 164, 74, .35);

  --faq-icon-bg: rgba(243, 237, 224, 0);
  --faq-icon-border: #2a3140;
  --faq-icon-color: #c9a44a;
  --faq-open-bg: rgba(243, 237, 224, 0);
  --faq-open-border: rgba(201, 164, 74, .5);
  --faq-open-color: #c9a44a;

  --halo-glow: 1;
  --final-glow: rgba(201, 164, 74, .2);
  --app-icon-shadow: 0 0 0 1px rgba(201, 164, 74, .3), 0 20px 50px -12px rgba(201, 164, 74, .45);
  --footer-bg: #090c11;

  --solo-oscuro: 1;
  --solo-claro: 0;
}

/* ---------- Cambio de tema ----------
   Transición suave de colores solo al pulsar el botón (tema.js pone «tema-cambiando»
   en <html> unos 400 ms): al cargar la página no hay ninguna. Nada con «reducir movimiento». */

@media (prefers-reduced-motion: no-preference) {
  html.tema-cambiando,
  html.tema-cambiando *,
  html.tema-cambiando *::before,
  html.tema-cambiando *::after {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow, opacity, filter, outline-color, text-decoration-color !important;
    transition-duration: .35s !important;
    transition-timing-function: ease !important;
    transition-delay: 0s !important;
  }
  /* Los colores del texto dorado se animan solo en <html>: el resto los hereda. */
  html.tema-cambiando {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow, opacity, filter, outline-color, text-decoration-color, --gold-text-top, --gold-text-mid, --gold-text-end !important;
  }
}

/* ---------- Degradados del tema oscuro ----------
   Un degradado no se puede animar: al cambiar de tema saltaría de golpe mientras todo lo
   demás se funde. Por eso estas piezas llevan de fondo un color liso del tema (que sí se
   anima) y el degradado del oscuro va en una capa encima, detrás del contenido, que
   aparece con opacity: var(--solo-oscuro). */

.btn-gold,
.tile,
.step-num,
.feature,
.pricing-card {
  position: relative;
  isolation: isolate;
}
.btn-gold::before,
.tile:not(.tile--muted)::before,
.step-num::before,
.feature::before,
.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: var(--solo-oscuro);
  pointer-events: none;
}
/* El botón: la capa cubre también el borde transparente y lleva su propio filo de luz,
   porque tapa el de la sombra del botón. */
.btn-gold::before { inset: -1px; background: var(--dark-btn-gold); box-shadow: var(--dark-btn-gold-shine); }
.tile::before { background: var(--dark-tile); }
.step-num::before { background: var(--dark-step); }
.feature::before { background: var(--dark-feature); }
.pricing-card::after { background: var(--dark-price); }
@media (hover: hover) {
  .btn-gold:hover::before { background: var(--dark-btn-gold-hover); }
}

/* ---------- Imágenes de cada tema ----------
   Cada captura de la app y la foto del callejón van dos veces: .solo-claro, la que se ve
   con la página en claro (también sin JavaScript, que no pone data-theme), y .solo-oscuro.
   Las capturas van al revés que la página para que contrasten (con la página clara, la app
   en oscuro; con la oscura, la app en claro); la foto del callejón, como la página. La del otro tema
   no se pinta y, como todas llevan loading="lazy", tampoco se descarga; al cambiar de
   tema sale la otra en el acto y se descarga entonces. Las dos de cada pareja tienen las
   mismas medidas, así que el cambio no mueve nada. La captura de la portada la precarga
   tema.js. img, picture { display: block } («Base») no las pisa: estas reglas son de clase. */

.solo-oscuro { display: none; }
:root[data-theme="dark"] .solo-claro { display: none; }
:root[data-theme="dark"] .solo-oscuro { display: block; }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-2));
  scrollbar-color: var(--line-strong) var(--bg);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: normal; }

::selection { background: var(--selection); color: var(--ink); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -120px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; white-space: nowrap; }
.btn-lg { min-height: 56px; padding: 10px 28px; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn .i { width: 18px; height: 18px; }

.btn-gold {
  background: var(--btn-gold-bg);
  color: var(--on-gold);
  box-shadow: var(--btn-gold-shadow);
}
.btn-gold:active { filter: brightness(.95); }

.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--ink);
  border-color: var(--btn-ghost-border);
}
.btn-ghost:active { background: var(--hover-tint); }

@media (hover: hover) {
  .btn-gold:hover {
    background: var(--btn-gold-bg-hover);
    box-shadow: var(--btn-gold-shadow-hover);
  }
  .btn-ghost:hover {
    background: var(--btn-ghost-bg-hover);
    border-color: var(--btn-ghost-border-hover);
    color: var(--btn-ghost-color-hover);
  }
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-row .btn { width: 100%; }
@media (min-width: 520px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
  .cta-row--center { justify-content: center; }
}

/* ---------- Piezas comunes ---------- */

.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-2);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0), var(--gold));
}

.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tile-bg);
  box-shadow: inset 0 0 0 1px var(--tile-ring);
  color: var(--tile-color);
}
.tile .i { width: 22px; height: 22px; }
.tile--muted {
  background: var(--tile-muted-bg);
  box-shadow: inset 0 0 0 1px var(--tile-muted-ring);
  color: var(--tile-muted-color);
}

.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.gold-text {
  color: var(--mark);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text {
    background: linear-gradient(180deg, var(--gold-text-top) 0%, var(--gold-text-mid) 62%, var(--gold-text-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ---------- Marcos: móvil y navegador ---------- */

.phone {
  position: relative;
  flex: none;
  container-type: inline-size;
}
.phone-body {
  position: relative;
  padding: 9px;
  padding: 3.2cqi;
  border-radius: 42px;
  border-radius: 15.5cqi;
  background: var(--device-bezel);
  box-shadow: var(--phone-shadow);
}
.phone-body img {
  width: 100%;
  border-radius: 33px;
  border-radius: 12.3cqi;
  background: var(--device-screen);
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--device-browser-bg);
  box-shadow: var(--device-browser-shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--device-dot); }
.browser-url {
  flex: 0 1 240px;
  height: 16px;
  margin-left: 12px;
  border-radius: 6px;
  background: var(--bg);
}
.browser img { width: 100%; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-gold { color: var(--mark); }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--hover-tint); }

/* Botón del tema, «Entrar» y «Crear cuenta». En el móvil, «Entrar» es un enlace de texto
   (44 px de alto) y el botón dice «Crear cuenta» (« gratis» queda para el lector de
   pantalla); desde 480 px se lee entero y desde 600 px «Entrar» vuelve a ser botón.
   Por debajo de 375 px no cabe «Crear cuenta»: está en la portada, justo debajo. */
.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.header-login {
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
}
.header-cta {
  display: none;
  padding: 0 10px;
  font-size: .875rem;
}
.cta-extra {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Claro / oscuro */
.tema-boton {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 50%;
  background: var(--btn-ghost-bg);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tema-boton .i { width: 20px; height: 20px; }
.tema-boton .i-sol { display: none; }
:root[data-theme="dark"] .tema-boton .i-sol { display: block; }
:root[data-theme="dark"] .tema-boton .i-luna { display: none; }
/* Sin JavaScript no hay data-theme: el botón no haría nada, así que no se enseña. */
html:not([data-theme]) .tema-boton { display: none; }
@media (hover: hover) {
  .tema-boton:hover {
    background: var(--btn-ghost-bg-hover);
    border-color: var(--btn-ghost-border-hover);
    color: var(--btn-ghost-color-hover);
  }
}

@media (min-width: 375px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 480px) {
  .header-inner { gap: var(--s-2); }
  .wordmark { font-size: 1.125rem; }
  .header-actions { gap: 4px; }
  .header-cta { padding: 0 16px; font-size: .9375rem; }
  .cta-extra {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }
}
@media (min-width: 600px) {
  .header-actions { gap: var(--s-1); }
  .header-login {
    padding: 0 18px;
    border-color: var(--btn-ghost-border);
    background: var(--btn-ghost-bg);
  }
}
@media (min-width: 1024px) {
  .header-inner { gap: var(--s-3); }
  .wordmark { font-size: 1.25rem; }
  .nav { display: block; margin-left: auto; }
}
/* Cinco enlaces (desde el 12/11/2026, con «Privacidad»): hasta 1199 px no caben con el relleno
   de siempre, así que se aprieta un poco. Cada uno sigue midiendo 44 px de alto. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-inner { gap: var(--s-2); }
  .nav ul { gap: 0; }
  .nav a { padding: 0 8px; }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: var(--s-4) 0 var(--s-6);
}
/* Degradado de anochecer: solo en el tema oscuro. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dark-hero-sky);
  opacity: var(--solo-oscuro);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
/* En una columna (móvil y tableta), el texto de la portada va centrado; en el ordenador, a la
   izquierda, con los móviles a la derecha. */
@media (max-width: 1023px) {
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-copy .pill { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
}

.pill {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-hi);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .2);
}

.hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 34em;
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}

.hero .cta-row { margin-top: var(--s-4); }

.hero-note {
  margin-top: var(--s-2);
  color: var(--subtle);
  font-size: .9375rem;
}

/* En el móvil, la captura se corta abajo con un fundido. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: 520px;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero-halo {
  position: absolute;
  top: 280px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.halo-glow { opacity: var(--halo-glow); }
.halo-rings { opacity: var(--solo-oscuro); }

.phone--front {
  z-index: 1;
  width: min(280px, 76vw);
  margin-top: var(--s-2);
}
.phone--back { display: none; }
.phone--back .phone-body img { filter: var(--phone-back-filter); }

.proof {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
/* Centrados: el icono encima y el texto debajo. */
.proof li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.proof .i { color: var(--accent); }

@media (min-width: 560px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }
}

@media (min-width: 1024px) {
  .hero { padding: var(--s-8) 0; }
  .hero-bg { background: var(--dark-hero-sky-wide); }
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--s-6);
  }
  .hero-visual {
    display: block;
    height: 640px;
    margin: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-halo {
    top: 320px;
    right: 150px;
    left: auto;
    width: 820px;
    height: 820px;
    transform: translate(50%, -50%);
  }
  .phone--front {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 284px;
    margin: 0;
  }
  .phone--back {
    display: block;
    position: absolute;
    top: 64px;
    right: 150px;
    width: 240px;
    transform: rotate(-4deg);
    transform-origin: 100% 100%;
  }
  .proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--s-6);
  }
}

/* ---------- Secciones ---------- */

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--section-line);
}
/* Brillo dorado arriba: solo en el tema oscuro. */
.section--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dark-section-glow);
  opacity: var(--solo-oscuro);
  pointer-events: none;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 24px + 3vw, 64px);
}
.section-head--tight { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(270deg, rgba(var(--gold-rgb), 0), var(--gold));
}

h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-lead {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.55;
}

/* ---------- El problema ---------- */

.problem-grid { display: grid; gap: var(--s-2); }
/* Las tarjetas con icono van centradas: el icono (.tile, inline-grid) arriba y el título y el
   texto debajo. */
.problem-card { padding: var(--s-4) var(--s-3); text-align: center; }
.problem-card h3 { margin-top: var(--s-3); }
.problem-card p { margin-top: var(--s-1); color: var(--muted); font-size: 1rem; }

@media (min-width: 768px) {
  .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .problem-card { padding: var(--s-4); }
}

.problem-answer {
  max-width: 24em;
  margin: var(--s-8) auto 0;
  color: var(--ink);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
.problem-answer span { color: var(--accent); }

/* ---------- Cómo funciona ---------- */

.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }

.steps { display: grid; margin-top: var(--s-5); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-2) 20px;
  padding-bottom: var(--s-4);
}
.step:last-child { padding-bottom: 0; }
/* Trazo entre pasos: ::before, liso; ::after, en el oscuro, se apaga hacia abajo. */
.step::before,
.step::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 8px;
  left: 21.5px;
  width: 1px;
}
.step::before { background: var(--step-line); }
.step::after {
  background: var(--dark-step-line);
  opacity: var(--solo-oscuro);
}
.step:last-child::before,
.step:last-child::after { display: none; }
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--step-border);
  border-radius: 50%;
  background: var(--step-bg);
  color: var(--accent-hi);
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step h3 { padding-top: 9px; }
.step p { margin-top: 4px; color: var(--muted); }

.motto {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--s-5);
  padding: 20px var(--s-3);
  border: 1px solid rgba(var(--gold-rgb), .28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--gold-rgb), .11), rgba(var(--gold-rgb), .02));
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
.motto .i { color: var(--accent); }
.motto em { color: var(--accent-hi); }

/* En el móvil, la captura se corta abajo con un fundido, como en la portada. */
.how-visual {
  display: flex;
  justify-content: center;
  height: 520px;
  margin-inline: calc(var(--gutter) * -1);
  padding-top: var(--s-1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 66%, transparent 100%);
}
.how-visual .phone { width: min(288px, 78vw); }

@media (min-width: 960px) {
  .how {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: var(--s-12);
  }
  .how-visual {
    order: -1;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .how-visual .phone { width: 300px; }
}

/* ---------- Funciones ---------- */

.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }

.feature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--feature-border);
  border-radius: var(--radius-xl);
  background: var(--feature-bg);
}
.feature:not(.feature--compact) { display: flex; flex-direction: column; }
.feature-text { padding: var(--s-4) var(--s-3) 0; }

.feature-label {
  margin-bottom: var(--s-1);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feature h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); font-weight: 800; letter-spacing: -0.025em; }
.feature h3 + p { margin-top: var(--s-1); color: var(--muted); font-size: 1rem; }

.feature-media {
  position: relative;
  display: flex;
  justify-content: center;
  height: 320px;
  margin-top: auto;
  padding-top: var(--s-4);
  overflow: hidden;
}
/* Brillo dorado detrás del móvil: solo en el tema oscuro. */
.feature-media::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--dark-media-glow);
  opacity: var(--solo-oscuro);
  pointer-events: none;
}
.feature-media .phone { width: 236px; }

.features-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.feature--compact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: var(--s-4) var(--s-3);
}
.feature--compact .feature-label { margin-top: 2px; }
.feature--compact h3 { font-size: 1.25rem; }

.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.also-label {
  color: var(--subtle);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.3;
}
.chips li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

@media (min-width: 768px) {
  .features,
  .features-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-text { padding: var(--s-5) var(--s-5) 0; }
  .feature--compact { padding: var(--s-5); }
  .feature-media { height: 380px; }
  .feature-media .phone { width: 260px; }
}

/* ---------- Pensada para el callejón ----------
   Sigue el tema de la página: clara en el claro y la plaza al anochecer en el oscuro. La
   banda, su foto y su velo cambian de golpe al cambiar de tema (un degradado no se anima). */

.callejon {
  position: relative;
  padding-bottom: var(--section-y);
  background: var(--bg);
  color: var(--text);
}

.callejon-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* En el móvil, la banda solo deja una franja corta de anillos bajo el texto. */
  min-height: clamp(360px, 46vw, 600px);
  padding-top: var(--section-y);
  background:
    radial-gradient(110% 70% at 50% 108%, var(--callejon-glow), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--callejon-dusk) 50%, var(--callejon-dusk-end) 100%);
}
.plaza-art,
.callejon-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.callejon-photo { object-fit: cover; }
/* El dibujo de la plaza al anochecer: solo en el oscuro. */
.plaza-art { opacity: var(--solo-oscuro); }
.plaza-art ellipse:not(.pz-callejon),
.plaza-art path { vector-effect: non-scaling-stroke; }

/* Fundido inferior hacia el fondo de la sección. */
.callejon-band::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 96px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
/* Velo para leer el título encima de la foto: crema en el claro y de noche en el oscuro. */
.callejon-band:has(.callejon-photo)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--callejon-veil);
  pointer-events: none;
}

.callejon-band-inner { position: relative; }
.callejon-band-inner .section-lead { max-width: 30em; }
.callejon h2 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem); }

.callejon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-2);
}

.points { display: grid; gap: var(--s-4); }
/* Centrados, como las tarjetas: el icono encima y el título y el texto debajo. */
.point {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.point > div { max-width: 34em; }
.point h3 { margin-top: 10px; font-size: 1.125rem; }
.point p { margin-top: 4px; color: var(--muted); font-size: 1rem; }

.devices { margin: 0; }
.devices-stage {
  position: relative;
  padding: 0 9% 10% 0;
}
.devices .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  min-width: 92px;
}
.devices figcaption {
  margin-top: var(--s-3);
  color: var(--subtle);
  font-size: .875rem;
  text-align: center;
}

@media (min-width: 1024px) {
  /* Aquí la figura de los dispositivos sube sobre la banda: hace falta más alto. */
  .callejon-band { min-height: clamp(480px, 46vw, 600px); }
  /* Las dos columnas acaban a la misma altura: los puntos y el pie de los dispositivos. */
  .callejon-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: end;
    gap: var(--s-8);
  }
  .points { padding-top: var(--s-4); }
  /* En dos columnas, el icono a la izquierda del texto y centrado con él en altura: los
     puntos ocupan menos y quedan a la par de los dispositivos. */
  .point {
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 20px;
    text-align: left;
  }
  .point h3 { margin-top: 0; }
  .devices {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * clamp(96px, 12vw, 160px));
  }
}

/* ---------- Seguridad y privacidad ---------- */

.split { display: grid; gap: var(--s-2); }
@media (min-width: 1000px) {
  .split {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: var(--s-12);
    align-items: start;
  }
  .split-head { margin-bottom: 0; }
}

.sec-more {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 1rem;
}
.sec-more a,
.faq-answer a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}
.sec-more a:hover { text-decoration-color: currentColor; }

.security-grid { display: grid; gap: var(--s-2); }
@media (min-width: 600px) {
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
}

.sec-card { padding: var(--s-4) var(--s-3); text-align: center; }
.sec-card h3 { margin-top: var(--s-3); }
.sec-card p { margin-top: var(--s-1); color: var(--muted); font-size: 1rem; }

/* ---------- Precios ---------- */

.pricing-card {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  overflow: hidden;
  padding: var(--s-5) var(--s-3) var(--s-4);
  border: 1px solid var(--price-border);
  border-radius: var(--radius-xl);
  background: var(--price-bg);
  box-shadow: var(--price-shadow);
}
/* Claro: barra dorada arriba (::before). Oscuro: un filo de luz, que va con el degradado
   de la tarjeta en ::after (ver «Degradados del tema oscuro»). Al cambiar, se funden. */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gold);
  opacity: var(--solo-claro);
}
@media (min-width: 600px) {
  .pricing-card { padding: var(--s-6) var(--s-5) var(--s-5); }
}

.price-label {
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: var(--s-1);
}
.price-amount {
  color: var(--ink);
  font-size: clamp(3.5rem, 3rem + 2vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.price-term { color: var(--muted); }

.price-list {
  display: grid;
  gap: 12px;
  margin: var(--s-4) 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.price-list li { display: flex; align-items: flex-start; gap: 12px; }
.price-list .i { margin-top: 3px; color: var(--accent); }

.price-note {
  margin-top: var(--s-2);
  color: var(--subtle);
  font-size: .875rem;
  text-align: center;
}

/* ---------- Preguntas ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 64px;
  padding: var(--s-2) 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-hi); }
@media (min-width: 768px) { .faq summary { font-size: 1.125rem; min-height: 72px; } }

.faq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--faq-icon-border);
  border-radius: 50%;
  background: var(--faq-icon-bg);
  color: var(--faq-icon-color);
}
.faq-icon .i { width: 18px; height: 18px; }
.faq details[open] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--faq-open-border);
  background: var(--faq-open-bg);
  color: var(--faq-open-color);
}

.faq-answer {
  max-width: 64ch;
  padding: 0 var(--s-1) var(--s-3) 0;
  color: var(--muted);
}
@media (min-width: 768px) { .faq-answer { padding-right: var(--s-6); } }

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: var(--s-10);
  }
  .faq-head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
  }
}

/* ---------- Llamada final ---------- */

.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 56px + 8vw, 160px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 50% 100%, var(--final-glow), transparent 70%),
    var(--bg-alt);
  text-align: center;
}

.app-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--s-4);
  border-radius: 18px;
  box-shadow: var(--app-icon-shadow);
}
.final h1,
.final h2 {
  max-width: 16em;
  margin-inline: auto;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
}
.final-lead {
  max-width: 34em;
  margin: var(--s-2) auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
}
.final .cta-row { margin-top: var(--s-4); }
.final-note {
  max-width: 32em;
  margin: var(--s-3) auto 0;
  color: var(--subtle);
  font-size: .9375rem;
}

/* Página de «no encontrado» (404.html): la llamada final a pantalla completa. */
.pagina-404 {
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  border-top: 0;
}

/* ---------- Pie ---------- */

.site-footer {
  padding: var(--s-8) 0 var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--muted);
  font-size: .9375rem;
}

.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

.footer-brand .wordmark { font-size: 1.125rem; }
.footer-brand p { margin-top: var(--s-1); color: var(--subtle); line-height: 1.7; }

.footer-title {
  margin-bottom: var(--s-1);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.footer-links { display: grid; }
.footer-links a,
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover,
.to-top:hover {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.to-top .i { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .875rem;
}

/* ---------- Movimiento (solo si la persona no pide reducirlo) ---------- */

@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes reveal-up {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes tema-icono {
  from { opacity: 0; transform: rotate(-90deg) scale(.6); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn,
  .tema-boton,
  .nav a,
  .faq summary,
  .footer-links a,
  .to-top {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s var(--ease), transform .2s var(--ease);
  }
  .faq-icon { transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease; }
  .btn .i { transition: transform .2s var(--ease); }
  .btn:active,
  .tema-boton:active { transform: scale(.97); }

  .feature { transition: border-color .3s var(--ease); }
  .feature-media .phone { transition: transform .5s var(--ease); }

  @media (hover: hover) {
    .btn-gold:hover { transform: translateY(-1px); }
    .btn:hover .i { transform: translateX(3px); }
    .feature:hover { border-color: var(--feature-border-hover); }
    .feature:hover .feature-media .phone { transform: translateY(-8px); }
  }

  html.tema-cambiando .tema-boton .i { animation: tema-icono .4s var(--ease) both; }

  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-visual > .phone { animation: rise .9s .15s var(--ease) both; }

  /* Apariciones al bajar, solo donde el navegador las soporta; en el resto todo se ve desde el principio. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Alto contraste del sistema ---------- */

@media (forced-colors: active) {
  .gold-text { -webkit-text-fill-color: currentColor; }
  .phone-body,
  .browser,
  .feature,
  .card,
  .pricing-card,
  .tema-boton { border: 1px solid CanvasText; }
}
