:root {
  --ink: #000;
  --muted: #b2b2b2;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  /* Móvil: 409 px de cuerpo en escritorio (igual que el iPhone de joi.software) */
  --pw: min(409px, 78vw);
  --u: calc(var(--pw) / 409);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  --marble: url(assets/marmol-rosa.webp);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip y no hidden: hidden convierte body en un contenedor de scroll y el móvil fijo (sticky) deja de quedarse fijo */
  overflow-x: clip;
}

/* Fondo de mármol fijo detrás de toda la página (una capa fija funciona también en iPhone) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--marble) center / cover no-repeat;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 24px 0;
  text-align: center;
}

/* Igual que el splash de la app: MENTTO en la serif del sistema (New York), regular y espaciada */
.hero-label {
  margin: 0 0 30px;
  font-family: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .35em;
  padding-left: .35em; /* compensa el espaciado de la última letra para centrarla */
}

/* Glitch: dos copias del texto en rojo y cian, recortadas en franjas que saltan a los lados a ratos */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding-left: inherit;
  /* Sin fondo: las franjas se mezclan con lo de detrás (el mármol) en lugar de taparlo con blanco */
  mix-blend-mode: multiply;
  opacity: 0;
}
.glitch::before { color: #ff2d55; text-shadow: -1px 0 #00c7ff; animation: glitch-a 4.2s steps(1) infinite .6s; }
.glitch::after { color: #00c7ff; text-shadow: 1px 0 #ff2d55; animation: glitch-b 4.2s steps(1) infinite .6s; }
@keyframes glitch-a {
  0%   { opacity: 1; clip-path: inset(10% 0 62% 0); transform: translate(-6px, -1px); }
  4%   { opacity: 1; clip-path: inset(58% 0 12% 0); transform: translate(5px, 1px); }
  8%   { opacity: 1; clip-path: inset(32% 0 40% 0); transform: translate(-3px, 0); }
  12%  { opacity: 0; }
  52%  { opacity: 1; clip-path: inset(70% 0 4% 0); transform: translate(4px, 0); }
  55%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes glitch-b {
  0%   { opacity: 1; clip-path: inset(66% 0 6% 0); transform: translate(6px, 1px); }
  4%   { opacity: 1; clip-path: inset(6% 0 70% 0); transform: translate(-5px, -1px); }
  8%   { opacity: 1; clip-path: inset(44% 0 30% 0); transform: translate(3px, 0); }
  12%  { opacity: 0; }
  52%  { opacity: 1; clip-path: inset(14% 0 64% 0); transform: translate(-4px, 0); }
  55%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-title {
  margin: 0;
  font-size: 96px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero-title .line {
  display: block;
  white-space: nowrap;
}

.glyph {
  display: inline-block;
  width: .74em;
  height: .74em;
  vertical-align: -.07em;
  margin: 0 .02em;
}
/* Icono de la app en cristal líquido: losa translúcida con brillo en el borde y el trazo flotando encima.
   main.js mueve --tx/--ty (de -1 a 1) siguiendo al ratón: la losa se inclina un poco y el trazo y el brillo se desplazan */
.glyph-3d {
  display: inline-block;
  margin: 0 .06em 0 .02em;
  vertical-align: -.08em;
}
.glass {
  --tx: 0;
  --ty: 0;
  position: relative;
  display: block;
  width: 1.02em;
  height: 1.02em;
  transform: perspective(5em)
    rotateY(calc(-18deg + var(--tx) * 12deg))
    rotateX(calc(10deg - var(--ty) * 12deg))
    rotateZ(-7deg);
  transform-style: preserve-3d;
}
.glass-tile,
.glass-shine {
  position: absolute;
  inset: 0;
  border-radius: 22.5%;
}
.glass-tile {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .95) 0%, rgba(248, 244, 236, .7) 38%, rgba(232, 222, 202, .75) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(1.6);
  backdrop-filter: blur(8px) saturate(1.6);
  box-shadow:
    inset 0 0 0 .01em rgba(255, 255, 255, .95),
    inset 0 .025em .02em rgba(255, 255, 255, 1),
    inset .02em .02em .05em rgba(255, 255, 255, .8),
    inset 0 -.035em .06em rgba(140, 115, 75, .28),
    inset -.02em 0 .05em rgba(140, 115, 75, .14),
    0 .02em .04em rgba(60, 40, 10, .14),
    0 .14em .3em rgba(60, 40, 10, .2);
}
.glass-mark {
  position: absolute;
  left: 29.3%;
  top: 21.9%;
  width: 42.8%;
  height: auto;
  transform: translate3d(calc(var(--tx) * .035em), calc(var(--ty) * .035em), 0);
  filter: drop-shadow(calc(var(--tx) * -.02em) calc(.03em + var(--ty) * -.02em) .025em rgba(40, 25, 5, .3));
}
/* Reflejo: una mancha de luz que sigue al ratón y un filo brillante que rodea la losa */
.glass-shine {
  background:
    radial-gradient(55% 40% at calc(28% + var(--tx) * 30%) calc(16% + var(--ty) * 25%), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    radial-gradient(70% 50% at calc(75% + var(--tx) * 20%) calc(100% + var(--ty) * 10%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.glass-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: .022em;
  background: linear-gradient(calc(135deg + var(--tx) * 40deg), #fff 0%, rgba(255, 255, 255, .15) 35%, rgba(190, 170, 130, .25) 55%, #fff 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Los dibujos tienen fondo blanco: se funden con el fondo con multiply */
.glyph-bust {
  width: auto;
  height: 1.22em;
  margin: -.1em 0 -.12em .02em;
  vertical-align: -.3em;
  mix-blend-mode: multiply;
}
/* La estatua no altera el alto de la línea: ocupa un hueco y sobresale por arriba */
.statue {
  position: relative;
  display: inline-block;
  width: .98em;
  height: .8em;
  margin: 0 .04em;
  vertical-align: -.12em;
  mix-blend-mode: multiply;
}
.statue-david { width: .9em; }
.statue-columna { width: 1.08em; }
/* Las figuras en color ya tienen fondo transparente: sin multiply para que no se oscurezcan */
.glyph-statue.glyph-color { mix-blend-mode: normal; }
.glyph-statue {
  position: absolute;
  left: 0;
  bottom: -.2em;
  width: auto;
  height: 1.38em;
  mix-blend-mode: multiply;
}

/* Aparición inicial */
.hero > :not(.hero-title) {
  opacity: 0;
  transform: translateY(24px);
  animation: rise .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }


 
/* ---------- Cristal líquido ---------- */

/* Paneles translúcidos sobre el mármol: desenfocan lo de detrás, con un filo de luz arriba y en el borde */
@property --tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #f7f1e3;
}
.glass-panel {
  -webkit-backdrop-filter: blur(3px) saturate(1.3);
  backdrop-filter: blur(3px) saturate(1.3);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    0 30px 80px -20px rgba(90, 60, 60, .12),
    0 2px 6px rgba(90, 60, 60, .04);
}

/* ---------- Escenario del móvil ---------- */

/* La sección es alta y el móvil se queda fijo mientras se recorre (main.js fija la altura) */
.stage {
  position: relative;
  margin-top: 82px;
  height: 1400vh;
  --pw: min(409px, 78vw, calc((100vh - 130px) * 0.4699));
  --u: calc(var(--pw) / 409);
}

.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px max(72px, (100% - 1296px) / 2);
}

.stage-card {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 0 56px;
  border-radius: 64px;
  /* main.js cambia --tint con cada pantalla del móvil; el cristal toma ese tono */
  background: color-mix(in srgb, var(--tint) 22%, transparent);
  transition: --tint .9s ease;
}

.chapters {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
  height: 220px;
}
.chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.chapter.is-active { opacity: 1; transform: none; }
.chapter-kicker {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #9a9a9a;
}
.chapter h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.5px;
}
.chapter h2 + p {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  color: #6e6e6e;
}

.toc {
  justify-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.toc li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: #c4c4c4;
  transition: color .3s ease;
}
.toc li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transition: transform .3s ease;
}
.toc li.is-active { color: #000; }
.toc li.is-active::before { transform: scale(1.5); }

.phone {
  position: relative;
  width: var(--pw);
  aspect-ratio: 409 / 870.4;
  padding: calc(8 * var(--u));
  border-radius: calc(72 * var(--u));
  background: #0b0b0c;
  box-shadow:
    inset 0 0 0 calc(2 * var(--u)) #4a4a4e,
    inset 0 0 0 calc(3.5 * var(--u)) #1c1c1e,
    0 calc(40 * var(--u)) calc(80 * var(--u)) rgba(0, 0, 0, .12),
    0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, .10);
}

.btn {
  position: absolute;
  width: calc(4 * var(--u));
  background: linear-gradient(90deg, #2a2a2c, #56565a 60%, #2a2a2c);
  border-radius: calc(2 * var(--u));
}
.btn-action    { left: calc(-3 * var(--u)); top: calc(156 * var(--u)); height: calc(32 * var(--u)); }
.btn-vol-up    { left: calc(-3 * var(--u)); top: calc(222 * var(--u)); height: calc(64 * var(--u)); }
.btn-vol-down  { left: calc(-3 * var(--u)); top: calc(302 * var(--u)); height: calc(64 * var(--u)); }
.btn-power     { right: calc(-3 * var(--u)); top: calc(262 * var(--u)); height: calc(102 * var(--u)); }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(64 * var(--u));
  background: #f3e9d2;
  isolation: isolate;
}
.screen img {
  display: block;
  width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

/* Cada pantalla es una capa a pantalla completa (las crea main.js) */
.scr {
  position: absolute;
  inset: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.scr.is-opaque { background: #f3e9d2; }
.scr.is-push { box-shadow: calc(-10 * var(--u)) 0 calc(30 * var(--u)) rgba(40, 25, 0, .18); }
.scr-shade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.scr-win {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}
.scr-strip { will-change: transform; }
.scr-over {
  position: absolute;
  left: 0;
}

/* Hoja (Tu día): en reposo asoma desde el 56 % de la pantalla, como en Joi */
.scr-dim { position: absolute; left: 0; top: 0; opacity: 0; }
.scr-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: #f3e9d2;
  border-radius: calc(36 * var(--u)) calc(36 * var(--u)) 0 0;
  box-shadow: 0 calc(-6 * var(--u)) calc(30 * var(--u)) rgba(60, 40, 10, .10);
  overflow: hidden;
  will-change: transform;
}
.scr-sheet .scr-win { bottom: 0; }
.scr-head { position: absolute; left: 0; opacity: 0; }

/* Máquina de escribir de la Lectura: cada línea se destapa de izquierda a derecha */
.scr-cover {
  position: absolute;
  right: 0;
  background: #f3e9d2;
}

/* En la navegación la barra de pestañas no se mueve: se queda encima mientras las pantallas se deslizan */
.tab-band {
  position: absolute;
  z-index: 40;
  left: 0;
  width: 100%;
  top: 90.008%;
  visibility: hidden;
}
.tab-band img { position: absolute; left: 0; top: 0; }

.island {
  position: absolute;
  z-index: 50;
  top: calc(11 * var(--u));
  left: 50%;
  width: calc(124 * var(--u));
  height: calc(36 * var(--u));
  margin-left: calc(-62 * var(--u));
  border-radius: calc(18 * var(--u));
  background: #000;
}

@media (max-width: 1100px) {
  .stage-card { grid-template-columns: 1fr auto; padding: 0 40px; gap: 40px; }
  .toc { display: none; }
}

/* ---------- Privacidad (carrusel de tres) ---------- */

.trust {
  max-width: 620px;
  margin: 120px auto 0;
  padding: 0 24px;
  text-align: center;
}
/* Las tres frases ocupan la misma celda: el bloque mide lo que la más larga y no salta al cambiar */
.trust-slides { display: grid; max-width: 660px; margin: 0 auto; }
.trust-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
  pointer-events: none;
}
.trust-slide.is-active {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity .6s ease .15s, filter .6s ease .15s, transform .8s cubic-bezier(.22, 1, .36, 1) .15s;
  pointer-events: auto;
}
/* main.js iguala el alto de las tres frases al de la más larga; la más corta queda centrada en ese hueco */
.trust-slide blockquote {
  margin: 0;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.trust-slide figcaption { margin-top: 22px; font-size: 15px; line-height: 1.45; }
.trust-slide figcaption strong { display: block; font-weight: 600; }
.trust-slide figcaption span { color: rgba(0, 0, 0, .58); font-weight: 500; }

.trust-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 26px;
}
/* Puntos: el activo se alarga en una píldora; el área de toque es mayor que el punto */
.trust-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.trust-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%);
  transition: width .45s cubic-bezier(.22, 1, .36, 1), background-color .3s ease;
}
.trust-dot:hover::before { background: rgba(0, 0, 0, .45); }
.trust-dot.is-active { width: 34px; }
.trust-dot.is-active::before { width: 22px; background: #111; }
.trust-dot:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 12px; }

/* ---------- Frases grandes ---------- */

.band {
  margin: 100px max(72px, (100% - 1296px) / 2) 0;
  padding: 150px 24px;
  border-radius: 64px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04));
}
.band .statement { max-width: 1040px; margin: 0 auto; }
.band .statement,
.statements .statement { line-height: 1.14; }

.statements {
  max-width: 1040px;
  margin: 0 auto;
  padding: 170px 24px 120px;
  display: grid;
  gap: 180px;
}

.statement {
  margin: 0;
  text-align: center;
  font-size: 68px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.italic {
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* ---------- Texto que aparece (reveal) y garabatos ---------- */

/* main.js parte el texto en palabras; cada una entra desenfocada y subiendo, una detrás de otra */
.w {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(.28em);
  transition: opacity .7s ease, filter .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * 45ms);
}
.is-in .w,
.chapter.is-active .w { opacity: 1; filter: none; transform: none; }
/* Las ilustraciones entran con un pequeño salto, en su turno dentro de la frase */
.glyph-statue.w,
.glyph-bust.w {
  mix-blend-mode: multiply;
  transform: translateY(.3em) scale(.6) rotate(-8deg);
  transform-origin: 50% 90%;
  transition-timing-function: ease, ease, cubic-bezier(.34, 1.56, .64, 1);
}
.is-in .glyph-statue.w,
.is-in .glyph-bust.w { transform: none; }
.chapter:not(.is-active) .w { transition-delay: 0s; transition-duration: .2s; }

.nw { white-space: nowrap; }
.dd {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  isolation: isolate;
}
.dd svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.dd path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
}
/* Solo se anima al aparecer: si no, al medir el trazo (y al cargar la fuente) se veía un trozo */
.is-in .dd path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dd-dur, .7s) cubic-bezier(.45, .05, .25, 1);
  transition-delay: var(--dd-delay, 0s);
}

/* El rotulador se mezcla con multiply: lo que queda debajo (como la coma que sigue) se ve a través */
.dd-highlight,
.dd-marker { mix-blend-mode: multiply; }
.dd-highlight svg { z-index: -1; left: -3%; width: 106%; top: .1em; height: 1em; }
.dd-highlight path { stroke: #c4f25a; stroke-width: .62em; stroke-linecap: butt; opacity: .9; }
.dd.dd-yellow path { stroke: #ffe14d; }
.dd.dd-green path { stroke: #c4f25a; }

.dd-circle svg { left: -9%; width: 122%; top: -.2em; height: 1.5em; }
.dd-circle path { stroke: #a9a9a9; stroke-width: .045em; --dd-dur: 1s; }

.dd-marker svg { z-index: -1; left: -3%; width: 106%; top: .12em; height: .95em; }
.dd-marker path { stroke: #ffc8e4; stroke-width: .6em; stroke-linecap: butt; }

.dd-wave svg { left: -2%; width: 104%; bottom: -.14em; height: .18em; }
.dd-wave path { stroke: #7154e3; stroke-width: .06em; }

/* Final del titular: main.js lo escribe y lo borra como una máquina de escribir */
.hero-title .line { min-height: 1.05em; }
/* La línea que se escribe puede partirse si no cabe (en móvil ocupa dos) */
.hero-title .line-type { white-space: normal; }
.rot { display: inline; }
.caret {
  display: inline-block;
  width: max(1.5px, .028em);
  height: .86em;
  margin-left: .05em;
  vertical-align: -.08em;
  background: currentColor;
  animation: blink 1.05s steps(1) infinite;
}
.caret.is-typing { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

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

.legal .faq-list { margin-top: 36px; }
.faq-more { margin-top: 28px !important; }
.faq-item { border-top: 1px solid rgba(0, 0, 0, .08); }
.faq-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, .08); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.2px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 400;
  color: #8a8a8a;
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: -6px 0 24px;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: #555;
}

/* ---------- Volver arriba ---------- */

.to-top {
  position: fixed;
  z-index: 60;
  left: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: #111;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1), background-color .2s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(255, 255, 255, .85); }
.to-top:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.footer {
  padding: 130px 24px 140px;
  text-align: center;
}
.footer p { margin: 0; }
.footer-logo {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  opacity: .14;
}
.footer-note {
  margin-top: 10px !important;
  font-size: 16px;
  font-weight: 600;
  opacity: .3;
}
/* Los enlaces van pegados (sin espacios): flex con salto de línea para que en móvil bajen a otra fila */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 6px;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
}
.footer-legal a { color: rgba(0, 0, 0, .55); white-space: nowrap; transition: color .2s ease; }
.footer-legal a:hover { color: #000; }
.footer-legal i {
  font-style: normal;
  margin: 0 10px;
  font-size: 12px;
  vertical-align: 2px;
  opacity: .3;
}
.footer-ip {
  max-width: 720px;
  margin: 22px auto 0 !important;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(0, 0, 0, .42);
  text-wrap: pretty;
}

/* ---------- Páginas legales ---------- */

.legal {
  max-width: 820px;
  margin: 56px auto 0;
  padding: 64px 72px;
  border-radius: 48px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .4));
}
.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, .5);
}
.legal-back:hover { color: #000; }
.legal-brand {
  margin: 0 0 18px;
  font-family: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: 18px;
  letter-spacing: .35em;
}
.legal h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.01em;
}
.legal-date { margin: 14px 0 0; font-size: 15px; color: rgba(0, 0, 0, .45); }
.legal h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.2px;
}
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: #ffe14d;
  color: #000;
  font-weight: 600;
}

/* ---------- Pantallas pequeñas ---------- */

@media (max-width: 1100px) {
  .hero-title { font-size: 8.6vw; }
  .statement { font-size: 6.6vw; }
}

@media (max-width: 720px) {
  .hero { padding: 56px 16px 0; }
  .hero-label { font-size: 19px; margin-bottom: 18px; }
  .hero-title { font-size: 9.4vw; }
  /* En móvil la frase que se escribe ocupa hasta dos líneas: se reserva el hueco para que no salte */
  .hero-title .line-type { min-height: 2.1em; }

  .stage { margin-top: 56px; --pw: min(74vw, calc((100svh - 230px) * 0.4699)); }
  .stage-pin { height: 100svh; padding: 16px; }
  .stage-card { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 20px 16px; border-radius: 40px; }
  .chapters { justify-self: auto; width: 100%; height: 92px; text-align: center; }
  .chapter-kicker { font-size: 13px; margin-bottom: 6px; }
  .chapter h2 { font-size: 24px; }
  .chapter h2 + p { font-size: 14px; margin-top: 6px; }

  .trust { margin-top: 80px; padding: 0 20px; }
  .trust-slide blockquote { font-size: 21px; }
  .band { margin: 48px 16px 0; padding: 90px 16px; border-radius: 40px; }
  .statements { padding: 110px 16px 60px; }
  .statement { font-size: 7.6vw; }

  .faq-item summary { font-size: 17px; padding: 18px 0; }
  .faq-item p { font-size: 15.5px; }
  .to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; }
  .footer { padding: 120px 16px 90px; }
  .footer-legal { font-size: 15px; gap: 6px 18px; }
  .footer-legal i { display: none; }
  .footer-legal i { margin: 0 6px; }
  .legal { margin: 16px 16px 0; padding: 36px 22px; border-radius: 32px; }
  .legal h1 { font-size: 36px; }
  .legal h2 { font-size: 20px; margin-top: 34px; }
  .legal p, .legal li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > :not(.hero-title) { animation: none; opacity: 1; transform: none; }
}
