/* Finanzas Animadas · estilos del sitio */

@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("/assets/fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --crema: #f8f1df;
  --papel: #fffaf0;
  --arena: #eadfc4;
  --borde: #e6d7b8;
  --tinta: #3a2a1c;
  --tinta-suave: #5a4632;
  --tinta-tenue: #6b5844;
  --ladrillo: #b4432c;
  --ladrillo-oscuro: #9c3824;
  --ladrillo-sombra: #7d2c1c;
  --azul: #2f5a86;
  --azul-oscuro: #1f3f60;
  --oro-claro: #fbe3a6;
  --oro-texto: #6a4a08;
  --error: #9b2c1a;
  --ancho: 1200px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 400 18px/1.55 var(--texto); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; color: var(--tinta); line-height: 1.1; }
p { margin: 0; }
a { color: var(--azul); }
a:hover { color: var(--azul-oscuro); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 16px; top: -60px; background: var(--tinta); color: var(--crema); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.saltar:focus { top: 16px; color: var(--crema); }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.seccion { padding: 88px 0; }
.seccion--papel { background: var(--papel); }
.seccion--arena { background: var(--arena); }
.centrado { text-align: center; }
.cabecera-seccion { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.titulo-seccion { font-size: clamp(32px, 4vw, 42px); }
.subtitulo { font-size: 19px; color: var(--tinta-suave); }
.etiqueta { font: 700 15px var(--display); letter-spacing: .04em; color: var(--ladrillo); text-transform: uppercase; }
.pildora { align-self: flex-start; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--oro-claro); color: var(--oro-texto); }
.pildora--oscura { background: var(--tinta); color: var(--crema); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ladrillo); color: #fff; font: 800 17px var(--texto); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--ladrillo-sombra); transition: transform .08s ease, background-color .15s ease; }
.boton:hover { background: var(--ladrillo-oscuro); color: #fff; }
.boton:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ladrillo-sombra); }
.boton[disabled] { opacity: .7; cursor: progress; }
.boton--chico { min-height: 44px; padding: 0 20px; font-size: 15px; }
.enlace-fuerte { font-weight: 800; font-size: 17px; }

/* Encabezado */
.encabezado { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tinta); font: 700 22px var(--display); }
.marca:hover { color: var(--tinta); }
/* Luka saluda: agita la mano, la baja al cuerpo y vuelve a saludar */
.luka { position: relative; flex: none; width: 63px; height: 64px; }
.luka img { position: absolute; inset: 0; width: 100%; height: 100%; }
.luka__brazo { transform-origin: 79.6% 54.6%; animation: luka-saluda 6s ease-in-out infinite; will-change: transform; }
@keyframes luka-saluda {
  0%, 30%, 84%, 100% { transform: rotate(0deg); }
  5%, 15%, 25% { transform: rotate(-16deg); }
  10%, 20% { transform: rotate(12deg); }
  42%, 72% { transform: rotate(150deg); }
}
@media (prefers-reduced-motion: reduce) { .luka__brazo { animation: none; } }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-weight: 700; font-size: 16px; }
.menu a:not(.boton) { text-decoration: none; }
@media (max-width: 720px) { .menu { display: none; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 72px; }
.hero__texto { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__titulo { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.05; }
.hero__bajada { font-size: 20px; color: var(--tinta-suave); }
.hero__imagen { flex: 1 1 460px; min-width: 0; }

/* Formulario */
.formulario { display: flex; flex-direction: column; gap: 10px; margin: 0; width: 100%; }
.formulario__fila { display: flex; flex-wrap: wrap; gap: 12px; }
.formulario__etiqueta { font-weight: 800; font-size: 15px; }
.campo { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 20px; border: 2px solid var(--tinta); border-radius: 999px; background: var(--papel); font: 600 17px var(--texto); color: var(--tinta); }
.campo::placeholder { color: #8a7660; }
.campo[aria-invalid="true"] { border-color: var(--error); }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--tinta-suave); }
.consentimiento input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ladrillo); }
.formulario__error { font-size: 15px; font-weight: 700; color: var(--error); min-height: 0; }
.formulario__error:empty { display: none; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario--centrado { max-width: 620px; margin: 0 auto; text-align: left; }

/* Pasos */
.rejilla-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.paso { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.paso img { width: 240px; height: 240px; }
.paso h3 { font-size: 26px; }
.paso p { font-size: 17px; color: var(--tinta-suave); max-width: 300px; }

/* Libro */
.libro { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; margin-bottom: 64px; }
.libro__mockup { flex: 0 1 340px; min-width: 240px; display: flex; justify-content: center; perspective: 1400px; padding: 12px 0; }
.libro__tapa { position: relative; width: 290px; max-width: 100%; transform: rotateY(-18deg) rotateX(3deg); border-radius: 3px 10px 10px 3px; overflow: hidden; box-shadow: 18px 22px 36px rgba(58, 42, 28, .28), 4px 4px 0 var(--borde); }
.libro__tapa::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; background: linear-gradient(90deg, rgba(58, 42, 28, .35), rgba(255, 255, 255, .18) 55%, rgba(58, 42, 28, 0)); }
.libro__texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.libro__texto ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 17px; line-height: 1.45; }

.rejilla-partes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 24px; }
.parte { background: var(--papel); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 0 var(--borde); }
.parte h4 { margin: 0; font: 800 19px var(--texto); }
.parte ol { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; color: var(--tinta-suave); }

/* Elenco */
.rejilla-elenco { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
.personaje { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.personaje__foto { width: 200px; height: 200px; border-radius: 50%; background: #f3e6c8; display: grid; place-items: center; }
.personaje__foto img { width: 180px; height: 180px; }
.personaje h3 { font-size: 21px; }
.personaje p { font-size: 15px; line-height: 1.45; color: var(--tinta-suave); max-width: 240px; }

/* Episodio */
.episodio { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.episodio__texto { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.episodio__video { flex: 0 1 280px; min-width: 220px; margin: 0 auto; position: relative; display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 var(--borde); }
.episodio__play { position: absolute; right: 16px; bottom: 16px; width: 68px; height: 68px; border-radius: 50%; background: var(--ladrillo); display: grid; place-items: center; box-shadow: 0 4px 0 var(--ladrillo-sombra); }

/* Plataforma */
.plataforma { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 48px; }
.plataforma__imagen { flex: 1 1 520px; min-width: 0; }
.plataforma__texto { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.plataforma__texto p { color: #4d3b29; }

/* Cierre */
.cierre { max-width: 880px; margin: 0 auto; padding: 96px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cierre .subtitulo { line-height: 1.6; }

/* Pie */
.pie { border-top: 2px solid var(--borde); padding: 32px 0; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--tinta-tenue); }
.pie nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Páginas simples (gracias, confirmado, 404) */
.simple { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.simple__caja { max-width: 1000px; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.simple__caja--invertida { flex-wrap: wrap-reverse; }
.simple__imagen { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.simple__imagen img { width: 100%; max-width: 440px; }
.simple__texto { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.simple__texto h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; }
.simple__texto ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 6px; }

/* Texto largo (privacidad) */
.documento { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.documento h1 { font-size: clamp(34px, 4.4vw, 44px); margin-bottom: 12px; }
.documento h2 { font-size: 24px; margin: 36px 0 10px; }
.documento p, .documento li { font-size: 17px; color: var(--tinta-suave); }
.documento p + p { margin-top: 12px; }
.documento ul { padding-left: 22px; display: grid; gap: 6px; }

.lista-limpia { list-style: none; margin: 0; padding: 0; }
.alinear-inicio { align-self: flex-start; }
.titulo-partes { font-size: 30px; }
.nota { font-size: 15px; color: var(--tinta-tenue); }
