/* Experia — portada (página de venta) y formulario de contacto.
   Hoja independiente de app.css: estas páginas solo cargan esta.
   La CSP no admite estilos en línea: todo estilo vive aquí, y lo que cambia con el
   desplazamiento llega como variable CSS desde landing.js. */

:root {
  /* Marca (los mismos valores que app.css) */
  --navy-900: #0b1f3a;
  --blue-600: #1d4ed8;
  /* Degradado del símbolo de Experia */
  --brand-blue: #3a86a8;
  --brand-teal: #55cfcb;
  --brand-mint: #74e6c0;

  --hero: #030916;
  --ink: #0b1f3a;
  --text: #1f2a3d;
  --muted: #5b6b82;
  --accent-text: #17708f;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --line: rgb(11 31 58 / 0.1);

  /* Semáforo de reseñas */
  --good: #16a34a;
  --regular: #f59e0b;
  --bad: #dc2626;
  --good-text: #166534;
  --regular-text: #92400e;
  --bad-text: #b91c1c;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Con un rebote corto: para piezas chicas que caen en su sitio. */
  --ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --shadow-soft: 0 1px 2px rgb(11 31 58 / 0.04), 0 12px 32px -12px rgb(11 31 58 / 0.14);
  --shadow-lift: 0 2px 4px rgb(11 31 58 / 0.05), 0 32px 64px -24px rgb(11 31 58 / 0.28);
  --focus: 0 0 0 3px rgb(56 189 248 / 0.6);

  /* La tipografía del sistema primero: San Francisco en Apple, Inter en lo demás. */
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --nav-height: 52px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: var(--focus);
}

/* ---------- Tipografía: tamaño, interlineado y espaciado van juntos ---------- */

h1 {
  font-size: clamp(2.75rem, 8.4vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h3 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.125rem, 2.1vw, 1.375rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.eyebrow {
  color: var(--accent-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.gradient-text {
  color: var(--brand-mint);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* El degradado ocupa el primer tercio de una franja tres veces más ancha; lo demás es
     blanco. Así el color puede «entrar» al titular (ver Movimiento) y quedar como siempre. */
  .gradient-text {
    background: linear-gradient(
        100deg,
        var(--brand-mint),
        var(--brand-teal) 16%,
        #7cc4f5 33.3%,
        #fff 62%
      )
      0% 50% / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Línea de titular con máscara: `.line` recorta y `.line-ink` sube desde abajo (ver
   Movimiento). El relleno, con su margen negativo, deja sitio a los trazos que sobresalen
   de la línea sin mover el texto de su lugar. */
.line {
  display: inline-block;
  overflow: hidden;
  margin: -0.12em -0.06em -0.16em;
  padding: 0.12em 0.06em 0.16em;
  vertical-align: top;
}

.line-ink {
  display: inline-block;
}

/* ---------- Utilidades ---------- */

.wrap {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

.wrap-narrow {
  max-width: 800px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 600;
  transition: top 160ms ease;
}

.skip:focus {
  top: 12px;
}

.face {
  display: block;
}

/* ---------- Botones y enlaces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Destello: una franja de luz que cruza la pieza (botones, etiqueta de la portada y cupón).
   En reposo espera fuera, a la izquierda; quién la hace cruzar se decide en Movimiento.
   Las piezas que lo recortan llevan `isolation: isolate` para que Safari respete sus
   esquinas redondeadas mientras lo de dentro se mueve. */
.btn::after,
.chip::after,
.coupon::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sheen, rgb(255 255 255 / 0.3)),
    transparent
  );
  transform: translate3d(-140%, 0, 0) skewX(-18deg);
  pointer-events: none;
}

/* La respuesta llega al presionar, no al soltar. */
.btn:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.btn:focus-visible {
  border-radius: 980px;
}

.btn-light {
  --sheen: rgb(85 207 203 / 0.4);
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: #e6effb;
}

.btn-dark {
  background: var(--navy-900);
  color: #fff;
}

.btn-dark:hover {
  background: #15315c;
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-more .chevron {
  transition: transform 200ms var(--ease);
}

.link-more:hover .chevron {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 32px;
}

.cta-row-start {
  justify-content: flex-start;
}

/* ---------- Menú de vidrio ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  background: rgb(3 9 22 / 0.72);
  color: #fff;
  transition:
    background-color 300ms ease,
    color 300ms ease;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

/* Borde que aparece solo cuando hay contenido pasando por debajo. */
.nav::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgb(255 255 255 / 0.12);
  opacity: 0;
  transition: opacity 240ms ease;
}

.nav.is-scrolled::after {
  opacity: 1;
}

/* Avance de lectura de la portada: landing.js pone --read (de 0 a 1) al desplazarse. */
.nav-landing::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal), var(--brand-mint));
  transform: scaleX(var(--read, 0));
  transform-origin: 0 50%;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 2 * var(--gutter), 1120px);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.brand-tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
}

.brand-word {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav-links {
  display: none;
  gap: 28px;
  margin-inline: auto;
}

.nav-links a,
.nav-login {
  display: inline-flex;
  align-items: center;
  height: var(--nav-height);
  color: rgb(255 255 255 / 0.78);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-login:hover,
.nav-links a.is-current {
  color: #fff;
}

/* Subrayado de la sección en la que se está (lo marca landing.js) y de la que se señala. */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.3);
  transition:
    opacity 200ms ease,
    transform 320ms var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  opacity: 1;
  transform: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Sobre las secciones claras el vidrio se vuelve claro: landing.js lo activa al pasar la
   portada, y el formulario de contacto lo trae puesto. */
.nav.is-light {
  background: rgb(255 255 255 / 0.78);
  color: var(--ink);
}

.nav.is-light::after {
  background: var(--line);
}

.nav.is-light .brand {
  color: var(--ink);
}

.nav.is-light .brand-tile {
  box-shadow: 0 0 0 1px var(--line);
}

.nav.is-light .nav-links a,
.nav.is-light .nav-login {
  color: rgb(11 31 58 / 0.8);
}

.nav.is-light .nav-links a:hover,
.nav.is-light .nav-login:hover,
.nav.is-light .nav-links a.is-current {
  color: var(--ink);
}

.nav.is-light .btn-light {
  background: var(--navy-900);
  color: #fff;
}

.nav.is-light .btn-light:hover {
  background: #15315c;
}

.nav-login {
  white-space: nowrap;
}

/* En el celular no caben la marca, el acceso de clientes y el botón. Arriba, donde la portada
   ya trae su propio botón, se muestra el acceso; pasada la portada (el menú se aclara), su
   lugar lo toma el botón. El acceso sigue en el pie. Sin JavaScript se queda el acceso. */
@media (max-width: 479px) {
  .nav-landing:not(.is-light) .btn {
    display: none;
  }

  .nav-landing.is-light .nav-login {
    display: none;
  }
}

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }

  /* Con los enlaces al centro, las acciones ya quedan a la derecha. */
  .nav-links + .nav-actions {
    margin-left: 0;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-height) + clamp(48px, 9vw, 104px)) var(--gutter) clamp(36px, 6vw, 72px);
  background: var(--hero);
  color: #fff;
  text-align: center;
}

/* Luz detrás del producto, en dos capas que derivan muy despacio en sentidos opuestos (ver
   Movimiento). Son más grandes que su caja para que, al moverse, no asomen sus bordes. */
.hero::before,
.closing::before,
.offer-section::before,
.hero::after,
.closing::after,
.offer-section::after {
  content: '';
  position: absolute;
  inset: -14%;
  z-index: -1;
}

.hero::before,
.closing::before,
.offer-section::before {
  background:
    radial-gradient(56% 44% at 50% 80%, rgb(85 207 203 / 0.24), transparent 70%),
    radial-gradient(40% 34% at 80% 28%, rgb(58 134 168 / 0.3), transparent 70%),
    radial-gradient(36% 30% at 16% 20%, rgb(29 78 216 / 0.24), transparent 70%);
}

.hero::after,
.closing::after,
.offer-section::after {
  background:
    radial-gradient(32% 26% at 26% 68%, rgb(116 230 192 / 0.12), transparent 70%),
    radial-gradient(36% 28% at 76% 60%, rgb(58 134 168 / 0.18), transparent 70%);
}

.hero-copy {
  max-width: 900px;
  margin-inline: auto;
  /* La portada se aleja al bajar (--hero-p va de 0 a 1 y lo pone landing.js). */
  opacity: calc(1 - var(--hero-p, 0) * 0.9);
  transform: translate3d(0, calc(var(--hero-p, 0) * -24px), 0);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 16px;
  border-radius: 980px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.92);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.chip:hover {
  background: rgb(255 255 255 / 0.14);
}

.chip:focus-visible {
  border-radius: 980px;
}

.hero h1 {
  margin-top: 28px;
}

.hero-lead {
  max-width: 660px;
  margin: 24px auto 0;
  color: rgb(255 255 255 / 0.76);
  font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.hero .link-more,
.closing .link-more {
  color: #8fd8ff;
}

.hero-stage {
  margin-top: clamp(44px, 7vw, 84px);
  transform: translate3d(0, calc(var(--hero-p, 0) * 20px), 0)
    scale(calc(1 - var(--hero-p, 0) * 0.06));
  transform-origin: 50% 0;
}

.hero-note {
  margin-top: 30px;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8125rem;
}

/* El escenario se mide en em: cambiar su font-size lo escala completo.
   Con un cursor, se inclina apenas hacia él: landing.js pone --px y --py (de -1 a 1). */
.stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 33em;
  font-size: clamp(10px, 3.05vw, 18px);
  transform: perspective(60em) rotateY(calc(var(--px, 0) * 4deg))
    rotateX(calc(var(--py, 0) * -3deg));
}

.stage::before {
  content: '';
  position: absolute;
  bottom: -2.5em;
  left: 50%;
  width: 30em;
  height: 6em;
  margin-left: -15em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(85 207 203 / 0.4), transparent);
  filter: blur(1.2em);
}

/* Profundidad: el teléfono (delante) y la tarjeta (detrás) se desplazan distinto con el
   cursor y al bajar la página. `translate` se suma al `transform` sin pisarlo. */
.stage-card {
  position: relative;
  z-index: 1;
  margin-bottom: 2.6em;
  transform: translateX(-0.3em) rotate(-7deg);
  translate: calc(var(--px, 0) * -0.5em) calc(var(--py, 0) * -0.35em + var(--hero-p, 0) * 1.2em);
}

.stage-phone {
  position: relative;
  z-index: 2;
  transform: translateX(0.5em) rotate(5deg);
  translate: calc(var(--px, 0) * 0.8em) calc(var(--py, 0) * 0.5em - var(--hero-p, 0) * 1em);
}

.stage-waves {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
}

.stage-waves span {
  position: absolute;
  top: -3em;
  left: -3em;
  width: 6em;
  height: 6em;
  border: 0.16em solid var(--brand-mint);
  border-radius: 50%;
  opacity: 0;
}

/* Tarjeta de acrílico (50 × 85 mm) */
.acrylic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12.5em;
  height: 21.25em;
  padding: 1.7em 1em 1.1em;
  overflow: hidden;
  border-radius: 1.15em;
  background: linear-gradient(158deg, #ffffff 10%, #eef4fb 62%, #dfeaf6);
  box-shadow:
    inset 0 0 0 0.07em rgb(255 255 255 / 0.9),
    inset 0 -0.5em 1.2em rgb(58 134 168 / 0.1),
    0 0 0 0.05em rgb(255 255 255 / 0.3),
    0 2.4em 4.4em -1.8em rgb(0 0 0 / 0.75);
  color: var(--navy-900);
  text-align: center;
}

/* Brillo del canto: la luz sobre el material. */
.acrylic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgb(255 255 255 / 0.75) 47%,
    transparent 56%
  );
  pointer-events: none;
}

.acrylic > * {
  position: relative;
}

.acrylic-title {
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.acrylic .stars {
  margin-top: 1.5em;
}

.acrylic-nfc {
  width: 4.6em;
  height: 4.6em;
  margin-top: 1.6em;
  color: var(--navy-900);
}

.acrylic-text {
  margin-top: 1.4em;
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.3;
}

.acrylic-bar {
  width: 78%;
  height: 0.42em;
  margin-top: auto;
  border-radius: 1em;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal), var(--brand-mint));
}

.stars {
  display: inline-flex;
  gap: 0.16em;
}

.star {
  width: 1.5em;
  height: 1.5em;
}

.stars-lg .star {
  width: 1.9em;
  height: 1.9em;
}

/* Teléfono */
.phone {
  position: relative;
  flex: none;
  width: 15em;
  height: 31.5em;
  padding: 0.6em;
  border-radius: 2.7em;
  background: linear-gradient(145deg, #2c3442, #0c1018 42%, #1b212c);
  box-shadow:
    inset 0 0 0 0.09em rgb(255 255 255 / 0.16),
    0 2.6em 4.6em -1.8em rgb(0 0 0 / 0.7);
}

.phone::before {
  content: '';
  position: absolute;
  top: 1.25em;
  left: 50%;
  z-index: 4;
  width: 4.4em;
  height: 1.2em;
  margin-left: -2.2em;
  border-radius: 1em;
  background: #06080d;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.15em;
  background: #f4f7fb;
  color: #0f172a;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.7em 1em 1.1em;
  text-align: center;
}

.screen-faces {
  justify-content: center;
  padding-top: 2.6em;
}

.screen-business {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
}

.screen-logo {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.65em;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-mint));
  color: #fff;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1;
}

.screen-name {
  color: #0b1f3a;
  font-size: 0.85em;
  font-weight: 600;
}

.screen-title {
  margin-top: 1.1em;
  color: #0b1f3a;
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.screen-row {
  display: flex;
  justify-content: center;
  gap: 0.55em;
  margin-top: 1.5em;
}

.screen-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  padding: 0;
  border: 0;
  background: none;
  color: #334155;
  font-size: 0.7em;
  font-weight: 600;
}

.screen-face .face {
  width: 4.9em;
  height: 4.9em;
}

button.screen-face {
  cursor: pointer;
  transition: transform 140ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

button.screen-face:hover .face {
  filter: brightness(1.06);
}

button.screen-face:active {
  transform: scale(0.92);
  transition-duration: 70ms;
}

button.screen-face:focus-visible {
  border-radius: 1.4em;
}

.screen-question {
  margin-top: 1.4em;
  color: #64748b;
  font-size: 0.9em;
}

.screen-caption {
  color: #64748b;
  font-size: 0.72em;
  font-weight: 600;
}

.screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  margin-top: 0.9em;
  padding: 1em 0.9em;
  border-radius: 1em;
  background: #fff;
  box-shadow:
    0 0.06em 0.12em rgb(15 23 42 / 0.06),
    0 0.5em 1.4em rgb(15 23 42 / 0.07);
}

.screen-line {
  display: block;
  width: 100%;
  height: 0.55em;
  border-radius: 0.3em;
  background: #e2e8f0;
}

.screen-line-short {
  align-self: flex-start;
  width: 62%;
}

.screen-pill {
  display: inline-grid;
  place-items: center;
  min-width: 5.5em;
  padding: 0.55em 1.1em;
  border-radius: 2em;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.78em;
  font-weight: 600;
}

.screen-pill-block {
  width: 100%;
}

.screen-label {
  align-self: flex-start;
  margin-bottom: -0.4em;
  color: #475569;
  font-size: 0.66em;
  font-weight: 600;
}

.screen-input {
  position: relative;
  display: block;
  width: 100%;
  height: 1.9em;
  border: 0.07em solid #cbd5e1;
  border-radius: 0.5em;
  background: #fff;
}

.screen-input-tall {
  height: 3.4em;
}

/* Lo que el cliente escribe: una línea que crece en cada campo (ver Movimiento). */
.screen-input::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.6em;
  width: 56%;
  height: 0.42em;
  margin-top: -0.21em;
  border-radius: 0.3em;
  background: #cbd5e1;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.screen-input-tall::after {
  top: 0.7em;
  width: 74%;
  margin-top: 0;
}

.screen-form-face .face {
  width: 2.7em;
  height: 2.7em;
}

.screen-form .screen-title {
  margin-top: 0.45em;
  font-size: 1em;
}

/* Las dos opciones tras la carita amarilla o roja: idénticas en tamaño y estilo. */
.screen-choice .screen-title {
  margin: 0.45em 0 0.9em;
  font-size: 1em;
}

.screen-option {
  display: grid;
  gap: 0.2em;
  width: 100%;
  min-height: 4.6em;
  padding: 0.75em 0.9em;
  border: 0.07em solid #cbd5e1;
  border-radius: 0.8em;
  background: #fff;
  color: #64748b;
  font-size: 0.74em;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 140ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.screen-option + .screen-option {
  margin-top: 0.75em;
}

.screen-option strong {
  color: #0b1f3a;
  font-size: 1.1em;
  line-height: 1.3;
  min-height: 2.6em;
}

.screen-option span {
  line-height: 1.4;
  min-height: 4.2em;
}

.screen-option:hover {
  border-color: #1d4ed8;
}

.screen-option:active {
  transform: scale(0.97);
  transition-duration: 70ms;
}

.screen-option:focus-visible {
  border-radius: 0.8em;
}

.screen-back {
  margin-top: auto;
  padding: 0.75em 1em;
  border: 0;
  background: none;
  color: #1d4ed8;
  font-size: 0.78em;
  font-weight: 600;
  cursor: pointer;
}

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

.section {
  padding: clamp(80px, 12vw, 160px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head .lead {
  margin-top: 20px;
}

/* ---------- Así funciona ---------- */

.steps {
  display: grid;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
}

.step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Trazo de la marca que recorre cada paso al aparecer y se apaga (ver Movimiento). */
.step::before {
  content: '';
  position: absolute;
  inset: -1.5px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-mint));
  opacity: 0;
  transform-origin: 0 50%;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.step h3 {
  margin-top: 14px;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

.demo {
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  margin-top: clamp(48px, 7vw, 88px);
}

.demo-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-demo {
  font-size: clamp(14px, 4.2vw, 18px);
}

.demo-hint {
  order: -1;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Las pantallas del teléfono cambian según lo que se toca: `data-screen` dice cuál se ve
   (caritas, opciones, formulario o reseña) y `data-tone`, qué carita se eligió. */
.demo .screen {
  transition:
    opacity 260ms ease,
    transform 320ms var(--ease),
    visibility 0s linear 0s;
}

.demo .screen-result,
.demo:not([data-screen='faces']) .screen-faces {
  visibility: hidden;
  opacity: 0;
  transition-delay: 0s, 0s, 320ms;
}

.demo .screen-result {
  transform: scale(0.97);
}

.demo:not([data-screen='faces']) .screen-faces {
  transform: scale(1.03);
}

.demo[data-screen='review'] .screen-review,
.demo[data-screen='choice'] .screen-choice,
.demo[data-screen='form'] .screen-form {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.only-regular,
.only-bad {
  display: none;
}

.demo[data-tone='regular'] .only-regular,
.demo[data-tone='bad'] .only-bad {
  display: inline-block;
}

.demo[data-screen='review'] .screen-review .star {
  animation: star-pop 420ms var(--ease) both;
}

.demo[data-screen='review'] .screen-review .star:nth-child(2) {
  animation-delay: 70ms;
}

.demo[data-screen='review'] .screen-review .star:nth-child(3) {
  animation-delay: 140ms;
}

.demo[data-screen='review'] .screen-review .star:nth-child(4) {
  animation-delay: 210ms;
}

.demo[data-screen='review'] .screen-review .star:nth-child(5) {
  animation-delay: 280ms;
}

@keyframes star-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* La alerta que recibe el dueño. Conserva su espacio para que nada salte al aparecer. */
.demo-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 340px);
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px rgb(11 31 58 / 0.06);
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  transition:
    opacity 260ms ease,
    transform 360ms var(--ease),
    visibility 0s linear 360ms;
}

/* Llega después de que el formulario se «escribe» y se «envía» (ver Movimiento). */
.demo[data-screen='form'] .demo-alert {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 1700ms, 1700ms, 0s;
}

.demo-alert-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--brand-mint);
}

.demo-alert-text {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
}

.demo-alert-text strong {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.outcomes {
  display: grid;
  gap: 12px;
}

.outcome {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease,
    opacity 200ms ease,
    transform 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.outcome:hover {
  background: #edf1f6;
}

.outcome:active {
  transform: scale(0.985);
  transition-duration: 80ms;
}

.outcome:focus-visible {
  border-radius: var(--radius-lg);
}

.outcome-good {
  --tone: var(--good);
  --tone-text: var(--good-text);
}

.outcome-regular {
  --tone: var(--regular);
  --tone-text: var(--regular-text);
}

.outcome-bad {
  --tone: var(--bad);
  --tone-text: var(--bad-text);
}

.outcome[aria-pressed='true'] {
  background: #fff;
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1.5px var(--tone);
}

.demo:not([data-tone='none']) .outcome[aria-pressed='false'] {
  opacity: 0.62;
}

.outcome-face {
  flex: none;
}

.outcome-face .face {
  width: 44px;
  height: 44px;
}

.outcome-body {
  display: grid;
  gap: 4px;
}

.outcome-label {
  color: var(--tone-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.outcome-title {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.outcome-text {
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.5;
}

/* La idea central de la página, al cierre de «Así funciona». */
.statement {
  max-width: 860px;
  margin: clamp(72px, 10vw, 128px) auto 0;
  text-align: center;
}

.statement h3 {
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

/* landing.js parte el título en palabras y las enciende conforme se baja por la página. */
.statement .is-reading .word {
  opacity: 0.2;
  transition: opacity 420ms ease;
}

.statement .is-reading .word.is-lit {
  opacity: 1;
}

.statement .lead {
  margin-top: 20px;
}

.statement-note {
  display: inline-grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  max-width: 640px;
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9688rem;
  line-height: 1.5;
  text-align: left;
}

.statement-note .check-icon {
  margin-top: 2px;
  color: #15803d;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (min-width: 900px) {
  .demo {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ---------- Tu panel: maqueta ---------- */

.window {
  margin-top: clamp(40px, 7vw, 80px);
}

.window-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f4f7fb;
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px rgb(11 31 58 / 0.06);
  font-size: clamp(11px, 1.45vw, 15px);
}

/* landing.js pone --lean (de 1, recostada, a 0) mientras la maqueta sube por la pantalla,
   y quita la clase al terminar para que el texto quede nítido. */
.window.is-leaning .window-frame {
  transform: perspective(1400px) rotateX(calc(var(--lean, 0) * 13deg))
    scale(calc(1 - var(--lean, 0) * 0.06));
  transform-origin: 50% 100%;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.9em 1.4em;
  background: var(--navy-900);
  color: #fff;
}

.window-bar .screen-logo {
  font-size: 0.9em;
}

.window-name {
  font-weight: 600;
}

.window-tabs {
  display: flex;
  gap: 0.4em;
  margin-left: auto;
}

.window-tab {
  padding: 0.45em 0.95em;
  border-radius: 2em;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.85em;
  font-weight: 500;
}

.window-tab:not(.is-current) {
  display: none;
}

.window-tab.is-current {
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  color: #fff;
}

.window-body {
  display: grid;
  gap: 1.2em;
  padding: 1.4em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8em;
}

.tile {
  display: grid;
  grid-column: span 2;
  gap: 0.25em;
  padding: 1em 1.1em;
  border-radius: 0.95em;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.tile:nth-child(n + 4) {
  grid-column: span 3;
}

.tile-label {
  color: #64748b;
  font-size: 0.78em;
  font-weight: 500;
}

.tile-value {
  color: #0b1f3a;
  font-size: 1.9em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tile-good .tile-value {
  color: #15803d;
}

.tile-regular .tile-value {
  color: #b45309;
}

.tile-bad .tile-value {
  color: #b91c1c;
}

.tile-pending {
  background: #fff7ed;
}

.tile-pending .tile-value {
  color: #c2410c;
}

.window-grid {
  display: grid;
  gap: 1.2em;
}

.window-panel {
  display: grid;
  align-content: start;
  gap: 0.8em;
  padding: 1.1em 1.2em 1.2em;
  border-radius: 0.95em;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.window-panel-title {
  color: #0b1f3a;
  font-size: 0.85em;
  font-weight: 600;
}

.chart {
  width: 100%;
  height: 11em;
}

.chart .bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.ticket {
  display: grid;
  gap: 0.5em;
  padding: 0.85em 0.95em;
  border-radius: 0.75em;
  background: #f8fafc;
}

.ticket-head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #334155;
  font-size: 0.78em;
  font-weight: 600;
}

.dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
}

.dot-regular {
  background: var(--regular);
}

.dot-bad {
  background: var(--bad);
}

.ticket-text {
  color: #475569;
  font-size: 0.82em;
  line-height: 1.4;
}

.state {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.4em;
  padding: 0.35em 0.8em;
  border-radius: 2em;
  font-size: 0.75em;
  font-weight: 600;
}

.state .check-icon {
  width: 1.15em;
  height: 1.15em;
}

.state-pending {
  background: #fef3c7;
  color: #92400e;
}

.state-done {
  background: #dcfce7;
  color: #166534;
}

.window figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

@media (min-width: 720px) {
  .window-tab:not(.is-current) {
    display: block;
  }

  .tiles {
    grid-template-columns: repeat(5, 1fr);
  }

  .tile,
  .tile:nth-child(n + 4) {
    grid-column: auto;
  }

  .window-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* ---------- Tu panel: funciones (bento) ---------- */

.bento {
  display: grid;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 40px);
}

.bento-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 1px 2px rgb(11 31 58 / 0.04);
}

.bento-copy h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.bento-copy p {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.art {
  display: grid;
  place-items: center;
  min-height: 132px;
}

.mail {
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mail-from {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.mail-subject {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.mail-body {
  margin-top: 4px;
  padding-left: 12px;
  border-left: 3px solid var(--regular);
  color: #475569;
  font-size: 0.9375rem;
}

.mail-button {
  justify-self: start;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.state-swap {
  display: grid;
}

.state-swap > .state {
  grid-area: 1 / 1;
  justify-self: center;
  padding: 0.6em 1.3em;
  font-size: 1.0625rem;
}

/* Estado final: atendida. La animación parte de "No atendida" cuando la pieza aparece. */
.state-swap > .state-pending {
  opacity: 0;
}

.art-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: italic;
  text-align: center;
}

.art-line svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.line-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* El dato más reciente: un punto al final de la línea, con un pulso alrededor. */
.line-dot,
.line-ping {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.line-dot {
  fill: #2ba9b4;
}

.line-ping {
  fill: none;
  stroke: #2ba9b4;
  stroke-width: 1.5;
  opacity: 0;
}

.art-nfc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nfc-badge {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 30px;
  background: var(--navy-900);
  color: var(--brand-mint);
}

/* Onda que sale de la insignia mientras está en pantalla (ver Movimiento). */
.nfc-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--brand-teal);
  border-radius: inherit;
  opacity: 0;
}

.nfc-badge .nfc-icon {
  width: 54px;
  height: 54px;
}

.qr-frame {
  position: relative;
  isolation: isolate;
  display: block;
  flex: none;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}

.qr {
  width: 100%;
  height: 100%;
}

/* Línea de lectura que baja por el código (ver Movimiento). En reposo espera arriba, fuera. */
.qr-frame::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  border-bottom: 2px solid var(--brand-teal);
  background: linear-gradient(180deg, transparent, rgb(85 207 203 / 0.45));
  transform: translate3d(0, -110%, 0);
}

.browser {
  width: min(100%, 250px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px var(--line);
}

.browser-bar {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px;
  background: var(--bg-alt);
}

/* Barra de carga de la página que se abre (ver Movimiento). */
.browser-bar::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-mint));
  opacity: 0;
  transform-origin: 0 50%;
}

.browser-url {
  padding: 4px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.browser-faces {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
}

.browser-faces .face {
  width: 44px;
  height: 44px;
}

.art-lock {
  color: var(--brand-blue);
}

.art-lock svg {
  width: 92px;
  height: 92px;
}

@media (min-width: 680px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bento-item {
    min-height: 320px;
  }

  .bento-alerta,
  .bento-privacidad {
    grid-column: span 2;
  }

  .bento-privacidad {
    min-height: 0;
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-alerta {
    grid-column: span 4;
  }

  .bento-seguimiento {
    grid-column: span 2;
  }

  .bento-estadisticas,
  .bento-nfc {
    grid-column: span 3;
  }

  .bento-sin-app {
    grid-column: span 2;
  }

  .bento-privacidad {
    grid-column: span 4;
    min-height: 320px;
  }

  /* Las piezas anchas van en fila: texto a un lado, ilustración al otro. */
  .bento-alerta,
  .bento-privacidad {
    flex-direction: row;
    align-items: center;
  }

  .bento-alerta > *,
  .bento-privacidad > * {
    flex: 1;
  }
}

/* ---------- Cupón ---------- */

.split {
  display: grid;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.split-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.split-copy .lead {
  margin-top: 20px;
}

.ticks {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
}

.ticks .check-icon {
  margin-top: 3px;
  color: #15803d;
}

/* Con un cursor encima se inclina hacia él: landing.js pone --tx y --ty (de -1 a 1). */
.coupon {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b1f3a, #123259);
  box-shadow: var(--shadow-lift);
  color: #fff;
  transform: perspective(900px) rotate(-2deg) rotateX(calc(var(--ty, 0) * -7deg))
    rotateY(calc(var(--tx, 0) * 9deg));
}

.coupon-main {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
}

.coupon-kicker {
  color: var(--brand-mint);
  font-size: 0.8125rem;
  font-weight: 600;
}

.coupon-offer {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.coupon-valid,
.coupon-label {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.8125rem;
}

.coupon-stub {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 24px 28px;
  border-top: 2px dashed rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.06);
}

.coupon-code {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.coupon-char {
  display: inline-block;
}

.coupon .state {
  font-size: 0.8125rem;
}

@media (min-width: 520px) {
  .coupon {
    grid-template-columns: 1fr auto;
  }

  .coupon-stub {
    justify-items: center;
    border-top: 0;
    border-left: 2px dashed rgb(255 255 255 / 0.24);
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Giros ---------- */

.kinds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: clamp(40px, 6vw, 64px);
}

.kind {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.kind svg {
  color: var(--accent-text);
  transition: transform 320ms var(--ease);
}

@media (min-width: 700px) {
  .kinds {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1000px) {
  .kinds {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---------- Fotos de la tarjeta en uso ---------- */

.photos {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
}

.photos-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.photos-single {
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
}

.photos-single .photos-note {
  margin-top: 12px;
}

/* Las fotos de los mostradores van de dos en dos en el celular. */
.photos-four {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photos-four .photo figcaption {
  font-size: 0.8125rem;
}

@media (min-width: 700px) {
  .photos-pair {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1000px) {
  .photos-four {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ---------- Precio: oferta de fundadores ---------- */

.offer-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero);
  color: #fff;
}

.offer-section .eyebrow {
  color: var(--brand-mint);
}

.offer-section .section-head h2 {
  color: #fff;
}

.offer-section .section-head .lead {
  color: rgb(255 255 255 / 0.74);
}

.offer-section .link-more {
  color: #8fd8ff;
}

/* «Por poco tiempo»: un punto que late, sin cuenta regresiva ni fechas inventadas. */
.offer-live {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 28px auto 0;
  padding: 8px 18px;
  border-radius: 980px;
  background: rgb(255 255 255 / 0.1);
  color: var(--brand-mint);
  font-size: 0.875rem;
  font-weight: 600;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbc83b;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: live-ping 1.9s ease-out infinite;
}

.offers {
  display: grid;
  gap: 36px;
  margin-top: clamp(36px, 5vw, 56px);
}

.offer {
  position: relative;
  display: grid;
  align-content: start;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.7);
}

.offer-media {
  display: grid;
  aspect-ratio: 16 / 11;
  gap: 3px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.offer-media-2 {
  grid-template-columns: 1fr 1fr;
}

.offer-media figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.offer-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transition: transform 700ms var(--ease);
}

/* La tarjeta de la cuenta queda en el lado derecho de la foto: se encuadra hacia allá. */
.offer-tarjeta .offer-media img {
  object-position: 66% 62%;
}

.offer-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
  color: var(--navy-900);
  font-size: 0.8125rem;
  font-weight: 600;
}

.offer-body {
  display: grid;
  gap: 10px;
  padding: 26px clamp(22px, 3vw, 34px) clamp(26px, 3vw, 34px);
}

.offer-kind {
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.offer-body h3 {
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.offer-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.offer-colors li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(11 31 58 / 0.28);
}

.swatch-white {
  background: #fff;
}

.swatch-black {
  background: #0b0f1a;
}

.offer-what {
  color: var(--muted);
}

.offer-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 14px;
  margin-top: 10px;
}

/* El precio normal va tachado con un trazo rojo que se dibuja al aparecer. */
.offer-was {
  position: relative;
  padding-bottom: 0.2em;
  color: #8493a8;
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.offer-was::after {
  content: '';
  position: absolute;
  top: 46%;
  right: -4px;
  left: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--bad);
  transform: rotate(-8deg);
  transform-origin: 0 50%;
}

.offer-now {
  color: var(--navy-900);
  font-size: clamp(3.5rem, 7vw, 4.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.offer-unit {
  padding-bottom: 0.5em;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.offer-cta {
  --sheen: rgb(116 230 192 / 0.5);
  width: 100%;
  margin-top: 16px;
  background: var(--navy-900);
  color: #fff;
}

.offer-cta:hover {
  background: #16335c;
}

/* Sticker de «Ahorras»: ligeramente torcido, con borde punteado como una etiqueta pegada. */
.sticker {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: 20px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 18px 11px;
  border: 2px dashed rgb(11 31 58 / 0.4);
  border-radius: 18px;
  background: #fbc83b;
  box-shadow:
    0 12px 26px -10px rgb(0 0 0 / 0.55),
    inset 0 0 0 2px rgb(255 255 255 / 0.55);
  color: var(--navy-900);
  line-height: 1;
  transform: rotate(6deg);
}

.sticker span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sticker strong {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Franja de la acción rápida */
.rush {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    120deg,
    rgb(116 230 192 / 0.22),
    rgb(58 134 168 / 0.28) 60%,
    rgb(29 78 216 / 0.25)
  );
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.rush::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.2), transparent);
  transform: translate3d(-160%, 0, 0) skewX(-18deg);
  animation: rush-sheen 7s ease-in-out 2s infinite;
  pointer-events: none;
}

.rush-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  justify-self: center;
}

.burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.35));
  fill: #f0443a;
  animation: burst-spin 26s linear infinite;
}

.rush-badge strong {
  position: relative;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transform: rotate(-6deg);
}

.rush-copy h3 {
  color: #fff;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
}

.rush-copy p {
  margin-top: 8px;
  color: rgb(255 255 255 / 0.86);
}

.rush-copy .rush-note {
  color: var(--brand-mint);
  font-size: 0.875rem;
  font-weight: 600;
}

.offer-includes {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.offer-includes-title {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-includes .ticks {
  margin-top: 20px;
}

.offer-includes .ticks li {
  color: rgb(255 255 255 / 0.9);
}

.offer-includes .ticks .check-icon {
  color: var(--brand-mint);
}

.offer-norent {
  margin-top: 24px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.offer-section .cta-row {
  margin-top: 36px;
}

.offer-after {
  margin-top: 30px;
  color: rgb(255 255 255 / 0.88);
  font-weight: 600;
  text-align: center;
}

.photos-note-dark {
  color: rgb(255 255 255 / 0.5);
}

.offer-fine {
  max-width: 820px;
  margin: 18px auto 0;
  color: rgb(255 255 255 / 0.55);
  font-size: 0.8125rem;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 720px) {
  .rush {
    grid-template-columns: auto 1fr;
    gap: 32px;
  }

  .rush-badge {
    justify-self: start;
  }
}

@media (min-width: 820px) {
  .offer-includes .ticks {
    grid-template-columns: 1fr 1fr;
    gap: 14px 36px;
  }
}

@media (min-width: 900px) {
  .offers {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .offer {
    transition:
      transform 420ms var(--ease),
      box-shadow 420ms var(--ease);
  }

  .offer:hover {
    box-shadow: 0 56px 100px -40px rgb(0 0 0 / 0.8);
    transform: translateY(-8px);
  }

  .offer:hover .offer-media img {
    transform: scale(1.06);
  }
}

/* Movimiento de la oferta: al aparecer, el precio sube, el trazo rojo tacha el precio normal
   y los stickers se pegan con un pequeño rebote; después, solo se mueve lo que invita a mirar
   (el sticker se menea, la insignia gira y la franja deja pasar un destello). */
@keyframes live-ping {
  from {
    opacity: 0.7;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(3.4);
  }
}

@keyframes sticker-pop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-32deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.18) rotate(11deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(6deg);
  }
}

@keyframes sticker-wiggle {
  0%,
  86%,
  100% {
    transform: rotate(6deg);
  }

  90% {
    transform: rotate(-2deg) scale(1.05);
  }

  95% {
    transform: rotate(9deg) scale(1.03);
  }
}

@keyframes strike {
  from {
    transform: rotate(-8deg) scaleX(0);
  }

  to {
    transform: rotate(-8deg) scaleX(1);
  }
}

@keyframes price-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.22em, 0) scale(0.88);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes badge-pop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-40deg);
  }

  65% {
    opacity: 1;
    transform: scale(1.14) rotate(8deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes burst-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rush-sheen {
  0%,
  72% {
    transform: translate3d(-160%, 0, 0) skewX(-18deg);
  }

  100% {
    transform: translate3d(430%, 0, 0) skewX(-18deg);
  }
}

.offers.reveal-run .offer-now {
  animation: price-rise 700ms var(--ease-pop) 350ms backwards;
}

.offers.reveal-run .offer-was::after {
  animation: strike 600ms var(--ease) 650ms backwards;
}

.offers.reveal-run .sticker {
  animation:
    sticker-pop 750ms var(--ease-pop) 700ms backwards,
    sticker-wiggle 6s ease-in-out 2.4s infinite;
}

.offers.reveal-run .offer + .offer .sticker {
  animation-delay: 850ms, 3.6s;
}

.rush.reveal-run .rush-badge {
  animation: badge-pop 800ms var(--ease-pop) 250ms backwards;
}

/* ---------- Confianza ---------- */

.trust {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 6vw, 64px);
}

.trust li {
  position: relative;
  padding-top: 22px;
}

.trust li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-mint));
  transform-origin: 0 50%;
}

.trust h3 {
  font-size: 1.125rem;
}

.trust p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9688rem;
}

@media (min-width: 700px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.faq {
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

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

/* Mientras landing.js anima su altura, lo que aún no cabe no se asoma. */
.faq-item.is-animating {
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.faq-mark::before,
.faq-mark::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 3px;
  left: 3px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease);
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-mark::after {
  transform: rotate(0deg);
}

/* Al cerrar, el signo cambia desde el principio, no cuando termina de plegarse. */
.faq-item.is-closing .faq-mark::after {
  transform: rotate(90deg);
}

.faq-item p {
  max-width: 64ch;
  padding: 0 4px 24px;
  color: var(--muted);
}

.faq-item[open] p {
  animation: answer 280ms var(--ease);
}

@keyframes answer {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
}

/* ---------- Cierre ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--hero);
  color: #fff;
  text-align: center;
}

/* Ondas que salen del centro, como las del toque de la portada (ver Movimiento). */
.closing-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 0;
  height: 0;
}

.closing-waves span {
  position: absolute;
  top: -160px;
  left: -160px;
  width: 320px;
  height: 320px;
  border: 1.5px solid rgb(116 230 192 / 0.55);
  border-radius: 50%;
  opacity: 0;
}

.closing h2 {
  color: #fff;
}

.closing .lead {
  margin-top: 18px;
  color: rgb(255 255 255 / 0.74);
}

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

.footer {
  padding: 48px 0 40px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand p {
  margin-top: 12px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Formulario de contacto ---------- */

.contact {
  min-height: 100vh;
  padding: calc(var(--nav-height) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 120px);
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  gap: 40px;
}

.contact h1 {
  color: var(--ink);
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact-intro .lead {
  margin-top: 18px;
}

.contact-offer {
  display: grid;
  gap: 6px;
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.contact-offer strong {
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.contact-offer span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-intro .link-more {
  margin-top: 12px;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
}

.field + .field {
  margin-top: 18px;
}

.field label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #cdd5e0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.input:hover {
  border-color: #9aa8bb;
}

.input:focus-visible {
  border-color: var(--blue-600);
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgb(29 78 216 / 0.16);
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.9375rem;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--navy-900);
}

.check a,
.form-note a {
  color: var(--blue-600);
  text-underline-offset: 3px;
}

.alert {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9375rem;
}

.alert-error {
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px #fecaca;
  color: #991b1b;
}

.alert ul {
  padding-left: 18px;
  list-style: disc;
}

.cf-turnstile {
  min-height: 65px;
  margin-top: 22px;
}

.form-card .btn {
  margin-top: 22px;
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.thanks {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.thanks-mark {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}

.thanks .lead {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 72px;
  }
}

/* ---------- Movimiento ---------- */

/* Reglas del movimiento de la portada:
   - Los estilos base son el estado final: sin animación, o sin JavaScript, la página se ve
     completa.
   - Se mueve con `transform` y `opacity`. Las excepciones ocurren una sola vez o por una
     acción de la persona: los trazos que se dibujan, el color que entra al titular y la altura
     de las preguntas al abrirlas.
   - Lo que se repite es poco y pequeño, y solo corre mientras su sección está en pantalla:
     landing.js marca con `is-away` las secciones que no se ven.
   - Lo que sigue al cursor lo mueve landing.js con un resorte y llega aquí como variable CSS. */

.is-away,
.is-away::before,
.is-away::after,
.is-away *,
.is-away *::before,
.is-away *::after {
  animation-play-state: paused !important;
}

/* ----- Portada: entrada (solo CSS, no espera a JavaScript) ----- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
}

@keyframes rise-sm {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}

@keyframes rise-card {
  from {
    opacity: 0;
    transform: translate3d(0, 3em, 0) scale(0.95);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translate3d(6em, 2.5em, 0) rotate(9deg);
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
}

/* La línea sube desde debajo de su máscara. */
@keyframes line-up {
  from {
    transform: translate3d(0, 110%, 0);
  }
}

/* El color entra al titular: la franja pasa de su tramo blanco al degradado de la marca. */
@keyframes tint {
  from {
    background-position: 100% 50%;
  }
}

@keyframes sheen {
  to {
    transform: translate3d(240%, 0, 0) skewX(-18deg);
  }
}

@keyframes wake {
  from {
    opacity: 1;
  }
}

@keyframes face-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}

.nav-landing {
  animation: nav-in 800ms var(--ease) backwards;
}

.hero-copy > * {
  animation: rise 900ms var(--ease) both;
}

/* El titular no sube en bloque: entra línea por línea. */
.hero-copy > h1 {
  animation: none;
}

.hero .line-ink {
  animation: line-up 1100ms var(--ease) 120ms both;
}

.hero .line-ink.gradient-text {
  animation:
    line-up 1100ms var(--ease) 250ms both,
    tint 1900ms var(--ease) 650ms backwards;
}

.hero-copy > :nth-child(3) {
  animation-delay: 380ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 480ms;
}

.chip::after {
  animation: sheen 1300ms var(--ease) 1700ms;
}

.stage-card .acrylic {
  animation: rise-card 1000ms var(--ease) 300ms both;
}

.stage-phone .phone {
  animation: phone-in 1200ms var(--ease) 550ms both;
}

.stage-card .star {
  animation: star-pop 420ms var(--ease-pop) 1000ms backwards;
}

.stage-card .star:nth-child(2) {
  animation-delay: 1070ms;
}

.stage-card .star:nth-child(3) {
  animation-delay: 1140ms;
}

.stage-card .star:nth-child(4) {
  animation-delay: 1210ms;
}

.stage-card .star:nth-child(5) {
  animation-delay: 1280ms;
}

/* La pantalla se enciende con el primer toque y aparecen las caritas. */
.stage-phone .phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0a1020;
  opacity: 0;
  pointer-events: none;
  animation: wake 600ms ease 1650ms backwards;
}

/* ----- Portada: el toque se repite ----- */

/* Cada 7 s el teléfono y la tarjeta se acercan, salen las ondas, un destello cruza el
   acrílico y las caritas dan un saltito; entre un toque y otro, los dos flotan despacio.
   Todo comparte duración y arranque (1.5 s) para ir a compás. */
@keyframes float-card {
  0%,
  12%,
  100% {
    transform: translate(-0.3em, 0) rotate(-7deg);
  }

  5% {
    transform: translate(0.2em, 0) rotate(-6.2deg);
  }

  56% {
    transform: translate(-0.8em, -0.6em) rotate(-8deg);
  }
}

@keyframes float-phone {
  0%,
  12%,
  100% {
    transform: translate(0.5em, 0) rotate(5deg);
  }

  5% {
    transform: translate(-0.05em, 0) rotate(4.2deg);
  }

  56% {
    transform: translate(0.9em, -0.45em) rotate(5.8deg);
  }
}

@keyframes wave {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }

  4% {
    opacity: 0.9;
  }

  24%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

/* El brillo del canto sale por la derecha y vuelve a entrar por la izquierda. */
@keyframes glint {
  0%,
  26%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  11% {
    transform: translate3d(85%, 0, 0);
  }

  11.01% {
    transform: translate3d(-85%, 0, 0);
  }
}

@keyframes face-hop {
  0%,
  12%,
  100% {
    transform: none;
  }

  5% {
    transform: translate3d(0, -0.42em, 0) scale(1.08);
  }
}

.stage-card {
  animation: float-card 7s ease-in-out 1500ms infinite;
}

.stage-phone {
  animation: float-phone 7s ease-in-out 1500ms infinite;
}

.stage-waves span {
  animation: wave 7s var(--ease) 1500ms infinite;
}

.stage-waves span:nth-child(2) {
  animation-delay: 1700ms;
}

.stage-waves span:nth-child(3) {
  animation-delay: 1900ms;
}

.acrylic::before {
  animation: glint 7s ease-in-out 1500ms infinite;
}

/* Las caritas aparecen al encenderse la pantalla; el saltito empieza con el segundo toque. */
.stage-phone .screen-face .face {
  animation:
    face-in 620ms var(--ease-pop) 1850ms backwards,
    face-hop 7s ease-in-out 9300ms infinite;
}

.stage-phone .screen-face:nth-child(2) .face {
  animation-delay: 1950ms, 9450ms;
}

.stage-phone .screen-face:nth-child(3) .face {
  animation-delay: 2050ms, 9600ms;
}

/* ----- Luz de fondo: deriva muy despacio ----- */

@keyframes drift-a {
  from {
    transform: translate3d(-2.5%, -2%, 0) rotate(-3deg) scale(1);
  }

  to {
    transform: translate3d(2.5%, 2.5%, 0) rotate(3deg) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(3%, 2%, 0) rotate(2deg) scale(1.06);
  }

  to {
    transform: translate3d(-3%, -2.5%, 0) rotate(-2deg) scale(1);
  }
}

.hero::before,
.closing::before,
.offer-section::before {
  animation: drift-a 21s ease-in-out infinite alternate;
}

.hero::after,
.closing::after,
.offer-section::after {
  animation: drift-b 27s ease-in-out infinite alternate;
}

/* ----- Aparición al deslizar ----- */

/* landing.js oculta (`reveal-pending`) solo lo que aún no está en pantalla y, cuando entra, lo
   cambia por `reveal-run`. La animación corre una vez y no deja nada aplicado, así que no
   estorba a los efectos del cursor. Sin JavaScript no se oculta nada. */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}

.reveal-pending {
  opacity: 0;
}

.reveal-run {
  animation: reveal 800ms var(--ease) backwards;
}

.bento .reveal-run:nth-child(even) {
  animation-delay: 90ms;
}

/* Grupos: el contenedor no se mueve; sus piezas entran una tras otra. `--n` es el lugar de
   cada pieza y `--step`, la pausa entre una y la siguiente. */
.reveal-group.reveal-pending {
  opacity: 1;
}

.reveal-group.reveal-pending > * {
  opacity: 0;
}

.reveal-group.reveal-run {
  animation: none;
}

.reveal-group.reveal-run > * {
  animation: reveal 760ms var(--ease) backwards;
  animation-delay: calc(var(--n, 0) * var(--step, 90ms));
}

.reveal-group > :nth-child(2) {
  --n: 1;
}

.reveal-group > :nth-child(3) {
  --n: 2;
}

.reveal-group > :nth-child(4) {
  --n: 3;
}

.reveal-group > :nth-child(5) {
  --n: 4;
}

.reveal-group > :nth-child(6) {
  --n: 5;
}

.reveal-group > :nth-child(7) {
  --n: 6;
}

.reveal-group > :nth-child(8) {
  --n: 7;
}

.reveal-group > :nth-child(9) {
  --n: 8;
}

.reveal-group > :nth-child(10) {
  --n: 9;
}

.reveal-group > :nth-child(11) {
  --n: 10;
}

.reveal-group > :nth-child(12) {
  --n: 11;
}

.steps {
  --step: 150ms;
}

.kinds {
  --step: 70ms;
}

.faq {
  --step: 45ms;
}

/* Titulares con máscara fuera de la portada: el precio y el cierre. */
.reveal-run .line-ink {
  animation: line-up 1000ms var(--ease) 200ms backwards;
}

.closing .reveal-run > h2 {
  animation: none;
}

.reveal-run .btn::after {
  animation: sheen 1200ms var(--ease) 1000ms;
}

/* Trazos que se dibujan. El patrón de guiones vive solo en la animación: en reposo, y donde
   no se anima, el trazo es continuo. */
@keyframes draw-in {
  from {
    stroke-dasharray: 1 1.1;
    stroke-dashoffset: 1.05;
  }

  to {
    stroke-dasharray: 1 1.1;
    stroke-dashoffset: 0;
  }
}

/* Una línea que crece de izquierda a derecha... */
@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}

/* ...y otra que, además, se apaga al terminar. */
@keyframes trace {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }

  60% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
    transform: none;
  }
}

/* Listas con palomita: cada renglón entra y su palomita se dibuja. */
@keyframes tick-in {
  from {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
  }
}

.ticks > :nth-child(2) {
  --k: 1;
}

.ticks > :nth-child(3) {
  --k: 2;
}

.ticks > :nth-child(4) {
  --k: 3;
}

.ticks > :nth-child(5) {
  --k: 4;
}

.ticks > :nth-child(6) {
  --k: 5;
}

.reveal-run .ticks > li {
  animation: tick-in 640ms var(--ease) backwards;
  animation-delay: calc(var(--k, 0) * 90ms + 380ms);
}

.reveal-run .ticks .check-mark {
  animation: draw-in 520ms var(--ease) backwards;
  animation-delay: calc(var(--k, 0) * 90ms + 620ms);
}

/* ----- Así funciona ----- */

.steps.reveal-run .step::before {
  animation: trace 1500ms var(--ease) backwards;
  animation-delay: calc(var(--n, 0) * 260ms + 150ms);
}

.steps.reveal-run .step-number {
  animation: pop 560ms var(--ease-pop) backwards;
  animation-delay: calc(var(--n, 0) * 260ms + 250ms);
}

/* Invitación a tocar: la pista late y las caritas saltan, hasta que alguien toca algo
   (landing.js pone `is-touched`). */
@keyframes nudge {
  0%,
  18%,
  100% {
    transform: none;
  }

  6% {
    transform: scale(1.07);
  }

  12% {
    transform: scale(0.99);
  }
}

.demo:not(.is-touched) .demo-hint {
  animation: nudge 6.4s ease-in-out 1200ms infinite;
}

.demo:not(.is-touched) button.screen-face .face {
  animation: face-hop 6.4s ease-in-out 1500ms infinite;
}

.demo:not(.is-touched) button.screen-face:nth-child(2) .face {
  animation-delay: 1650ms;
}

.demo:not(.is-touched) button.screen-face:nth-child(3) .face {
  animation-delay: 1800ms;
}

.outcomes > :nth-child(2) {
  --n: 1;
}

.outcomes > :nth-child(3) {
  --n: 2;
}

.demo.reveal-run .outcome {
  animation: reveal 760ms var(--ease) backwards;
  animation-delay: calc(var(--n, 0) * 110ms + 250ms);
}

/* La carita de la opción elegida responde. */
@keyframes bounce {
  0% {
    transform: scale(0.8);
  }

  55% {
    transform: scale(1.14);
  }
}

.outcome[aria-pressed='true'] .outcome-face .face {
  animation: bounce 520ms var(--ease);
}

/* El formulario se «escribe» campo por campo, se «envía» y entonces llega la alerta. La
   transición vive solo en el estado activo: al salir de la pantalla, los campos se vacían
   sin animación. */
.demo[data-screen='form'] .screen-input::after {
  transform: none;
  transition: transform 520ms var(--ease) 350ms;
}

.demo[data-screen='form'] .screen-input ~ .screen-input::after {
  transition-delay: 650ms;
}

.demo[data-screen='form'] .screen-input ~ .screen-input ~ .screen-input::after {
  transition-delay: 950ms;
}

@keyframes press {
  45% {
    transform: scale(0.93);
  }
}

.demo[data-screen='form'] .screen-pill-block {
  animation: press 360ms var(--ease) 1450ms;
}

@keyframes ring {
  20% {
    transform: rotate(-14deg);
  }

  40% {
    transform: rotate(11deg);
  }

  60% {
    transform: rotate(-7deg);
  }

  80% {
    transform: rotate(4deg);
  }
}

.demo[data-screen='form'] .demo-alert-icon svg {
  animation: ring 800ms ease-in-out 2050ms;
}

.statement.reveal-run .check-mark {
  animation: draw-in 520ms var(--ease) 700ms backwards;
}

/* ----- Tu panel ----- */

.tiles > :nth-child(2) {
  --t: 1;
}

.tiles > :nth-child(3) {
  --t: 2;
}

.tiles > :nth-child(4) {
  --t: 3;
}

.tiles > :nth-child(5) {
  --t: 4;
}

.window.reveal-run .tile {
  animation: rise-sm 640ms var(--ease) backwards;
  animation-delay: calc(var(--t, 0) * 70ms + 300ms);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
}

.window.reveal-run .ticket {
  animation: slide-in 700ms var(--ease) 800ms backwards;
}

.window.reveal-run .ticket + .ticket {
  animation-delay: 950ms;
}

.chart .bar {
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 16ms + 200ms);
}

/* Se esconden de golpe (sin transición) para estar listas cuando la maqueta aparezca. */
.reveal-pending .chart .bar {
  transform: scaleY(0);
  transition: none;
}

/* El correo de alerta cae como una notificación. */
@keyframes drop {
  from {
    opacity: 0;
    transform: translate3d(0, -22px, 0) scale(0.95);
  }
}

.reveal-run .mail {
  animation: drop 760ms var(--ease-pop) 320ms backwards;
}

.reveal-run .mail-button {
  animation: pop 520ms var(--ease-pop) 950ms backwards;
}

@keyframes swap-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: scale(0.94);
  }
}

@keyframes swap-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.94);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

.reveal.is-in .state-swap > .state-pending {
  animation: swap-out 420ms var(--ease) 1000ms both;
}

.reveal.is-in .state-swap > .state-done {
  animation: swap-in 520ms var(--ease) 1250ms both;
}

.reveal.is-in .line-path {
  animation: draw 1500ms var(--ease) 300ms both;
}

/* Al terminar de dibujarse la línea aparece el punto del último dato, y late. */
@keyframes ping {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

.reveal.is-in .line-dot {
  animation: pop 420ms var(--ease-pop) 1650ms backwards;
}

.reveal.is-in .line-ping {
  animation: ping 2.8s ease-out 2100ms infinite;
}

/* NFC: las ondas del símbolo se encienden de adentro hacia afuera y sale un anillo. */
@keyframes signal {
  0%,
  100% {
    opacity: 0.3;
  }

  20%,
  60% {
    opacity: 1;
  }
}

@keyframes ring-out {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

.reveal.is-in .nfc-badge .nfc-icon path {
  animation: signal 2.8s ease-in-out infinite;
}

.reveal.is-in .nfc-badge .nfc-icon path:nth-child(2) {
  animation-delay: 220ms;
}

.reveal.is-in .nfc-badge .nfc-icon path:nth-child(3) {
  animation-delay: 440ms;
}

.reveal.is-in .nfc-badge::before {
  animation: ring-out 2.8s ease-out 500ms infinite;
}

/* Código QR: la línea de lectura baja, espera y vuelve a empezar. */
@keyframes scan {
  0% {
    transform: translate3d(0, -110%, 0);
  }

  45%,
  100% {
    transform: translate3d(0, 380%, 0);
  }
}

.reveal.is-in .qr-frame::after {
  animation: scan 3.4s ease-in-out 900ms infinite;
}

/* Sin aplicaciones: la página carga y aparecen las caritas. */
.reveal-run .browser-bar::after {
  animation: trace 1100ms var(--ease) 350ms backwards;
}

.reveal-run .browser-faces .face {
  animation: face-in 560ms var(--ease-pop) 1000ms backwards;
}

.reveal-run .browser-faces .face:nth-child(2) {
  animation-delay: 1110ms;
}

.reveal-run .browser-faces .face:nth-child(3) {
  animation-delay: 1220ms;
}

/* Privacidad: se dibuja el escudo y después su palomita. */
.reveal-run .lock-shield {
  animation: draw-in 1100ms var(--ease) 300ms backwards;
}

.reveal-run .lock-check {
  animation: draw-in 520ms var(--ease) 1250ms backwards;
}

/* ----- Cupón ----- */

/* La tarjeta llega girando hasta asentarse, un destello la cruza, el código aparece letra
   por letra y al final salta «Código válido». */
@keyframes coupon-in {
  from {
    opacity: 0;
    transform: perspective(900px) translate3d(8%, 44px, 0) rotate(-10deg) scale(0.9);
  }
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.5em, 0);
  }
}

.split-art.reveal-run {
  animation: none;
}

.reveal-run .coupon {
  animation: coupon-in 1100ms var(--ease) 100ms backwards;
}

.reveal-run .coupon::after {
  animation: sheen 1300ms var(--ease) 1000ms;
}

.coupon-char:nth-child(2) {
  --c: 1;
}

.coupon-char:nth-child(3) {
  --c: 2;
}

.coupon-char:nth-child(4) {
  --c: 3;
}

.coupon-char:nth-child(5) {
  --c: 4;
}

.coupon-char:nth-child(6) {
  --c: 5;
}

.coupon-char:nth-child(7) {
  --c: 6;
}

.coupon-char:nth-child(8) {
  --c: 7;
}

.coupon-char:nth-child(9) {
  --c: 8;
}

.reveal-run .coupon-char {
  animation: char-in 420ms var(--ease) backwards;
  animation-delay: calc(var(--c, 0) * 60ms + 750ms);
}

.reveal-run .coupon .state {
  animation: pop 520ms var(--ease-pop) 1400ms backwards;
}

/* ----- Giros, precio y confianza ----- */

.kinds.reveal-run .kind svg > * {
  animation: draw-in 1000ms var(--ease) backwards;
  animation-delay: calc(var(--n, 0) * 70ms + 250ms);
}

.trust.reveal-run li::before {
  animation: grow-x 900ms var(--ease) backwards;
  animation-delay: calc(var(--n, 0) * 110ms + 150ms);
}

/* ----- Cierre: ondas ----- */

@keyframes swell {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  14% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Los retrasos negativos reparten las tres ondas desde el primer momento. */
.closing-waves span {
  animation: swell 6.6s linear infinite;
}

.closing-waves span:nth-child(2) {
  animation-delay: -2.2s;
}

.closing-waves span:nth-child(3) {
  animation-delay: -4.4s;
}

/* ----- Con cursor: lo que responde al pasar por encima ----- */

@media (hover: hover) and (pointer: fine) {
  /* El destello cruza al entrar el cursor; al salir vuelve a su sitio sin verse. */
  .btn:hover::after,
  .coupon:hover::after {
    transform: translate3d(240%, 0, 0) skewX(-18deg);
    transition: transform 900ms var(--ease);
  }

  .bento-item,
  .kind {
    transition:
      transform 420ms var(--ease),
      box-shadow 420ms var(--ease);
  }

  .bento-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translate3d(0, -4px, 0);
  }

  .kind:hover {
    box-shadow: var(--shadow-soft);
    transform: translate3d(0, -3px, 0);
  }

  .kind:hover svg {
    transform: scale(1.12);
  }

  /* Luz que sigue al cursor dentro de cada pieza: landing.js pone --mx y --my. */
  .bento-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(85 207 203 / 0.18), transparent);
    opacity: 0;
    transform: translate3d(var(--mx, 0), var(--my, 0), 0);
    transition: opacity 400ms ease;
    pointer-events: none;
  }

  .bento-item:hover::after {
    opacity: 1;
  }
}

/* ---------- Preferencias del sistema ---------- */

/* Menos movimiento: sin animaciones, desplazamientos ni efectos al bajar. Como los estilos
   base son el estado final, la página queda completa; lo que aparece al deslizar solo se
   funde. landing.js tampoco mueve nada con el cursor ni con el desplazamiento. */
@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .reveal-run,
  .reveal-group.reveal-run > * {
    animation: fade 240ms ease backwards !important;
  }

  .hero-copy,
  .hero-stage {
    opacity: 1;
    transform: none;
  }

  .chart .bar,
  .demo[data-screen='form'] .screen-input::after,
  .link-more .chevron,
  .faq-mark::before,
  .faq-mark::after,
  .nav-links a::after,
  .kind svg,
  .statement .is-reading .word {
    transition: none;
  }

  .reveal-pending .chart .bar {
    transform: none;
  }

  .demo .screen,
  .demo-alert {
    transform: none !important;
  }

  .demo[data-screen='form'] .demo-alert {
    transition-delay: 0s;
  }

  .btn:active,
  .outcome:active,
  .screen-option:active,
  button.screen-face:active,
  .bento-item:hover,
  .kind:hover,
  .kind:hover svg {
    transform: none;
  }

  /* Sin destellos ni luz que siga al cursor. */
  .btn::after,
  .chip::after,
  .coupon::after,
  .bento-item::after {
    display: none;
  }
}

/* Menos transparencia: el vidrio se vuelve sólido. */
@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--hero);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav.is-light {
    background: #fff;
  }

  .chip {
    background: #16233b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Más contraste: fondos sólidos, bordes definidos y texto secundario más oscuro. */
@media (prefers-contrast: more) {
  :root {
    --muted: #3b4a61;
    --line: rgb(11 31 58 / 0.4);
  }

  .nav {
    background: var(--hero);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav.is-light {
    background: #fff;
  }

  .nav::after {
    opacity: 1;
  }

  .hero-lead,
  .closing .lead,
  .nav-links a,
  .nav-login {
    color: #fff;
  }

  .nav.is-light .nav-links a,
  .nav.is-light .nav-login {
    color: var(--ink);
  }

  .bento-item,
  .kind,
  .outcome,
  .form-card {
    box-shadow: inset 0 0 0 1.5px var(--ink);
  }

  .bento-item::after {
    display: none;
  }
}

/* ---------- Franja «El problema», giros enlazados y páginas por giro ---------- */

.pains svg {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-text);
}

.pains-closing {
  margin-top: clamp(32px, 5vw, 48px);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
}

.pains-closing .link-more {
  margin-left: 6px;
}

/* Cada giro de la lista es un enlace a su página. */
.kinds > li {
  display: grid;
}

a.kind {
  text-decoration: none;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

a.kind:hover,
a.kind:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.1);
}

a.kind:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.kind-more {
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.faq-more {
  margin-top: 24px;
  text-align: center;
}

.giro-note {
  max-width: 62ch;
  margin: clamp(32px, 5vw, 48px) auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

@media (min-width: 700px) {
  .trust-three,
  .pains {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  a.kind {
    transition: none;
  }

  a.kind:hover,
  a.kind:focus-visible {
    transform: none;
  }
}

/* Botón flotante de las páginas por giro: regresa a la lista de negocios de la portada.
   Pegado al borde izquierdo y centrado en vertical; en pantallas angostas solo la flecha, para no
   tapar el texto. */
.back-float {
  position: fixed;
  top: 50%;
  left: max(12px, env(safe-area-inset-left));
  z-index: 60;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: var(--navy-900);
  box-shadow: 0 8px 24px rgb(5 10 25 / 0.35);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-50%);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.back-float:hover {
  background: #14233f;
  transform: translate(-2px, -50%);
}

.back-float:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

@media (max-width: 699px) {
  .back-float {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }

  .back-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-float {
    transition: none;
  }

  .back-float:hover {
    transform: translateY(-50%);
  }
}

/* Botón flotante de WhatsApp de la portada: abajo a la derecha. */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #1fa855;
  box-shadow: 0 8px 24px rgb(5 10 25 / 0.35);
  color: #fff;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.wa-float:hover {
  background: #178a45;
  transform: scale(1.06);
}

.wa-float:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }

  .wa-float:hover {
    transform: none;
  }
}
