/* ============================================================
   Luna y Misi — hoja de estilos
   Paleta: crema papel + noche estrellada + ámbar + rojo bufanda
   ============================================================ */

:root {
  --crema: #faf3e3;
  --crema-2: #f3e9d2;
  --noche: #241a47;
  --noche-2: #1a1233;
  --ambar: #e8a33d;
  --ambar-claro: #f6c86b;
  --rojo: #b5432e;
  --rojo-2: #94341f;
  --tinta: #3d3128;
  --tinta-suave: #6b5d51;
  --blanco: #fffdf7;
  --radio: 22px;
  --sombra: 0 10px 30px rgba(61, 49, 40, .12);
  --sombra-alta: 0 18px 44px rgba(36, 26, 71, .22);
  --fuente-titulo: 'Baloo 2', system-ui, sans-serif;
  --fuente-texto: 'Nunito', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente-texto);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--rojo); }

h1, h2, h3, h4 { font-family: var(--fuente-titulo); color: var(--noche); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--noche); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--fuente-titulo); font-weight: 700;
  padding: .8rem 1.7rem; border-radius: 999px; text-decoration: none; border: none;
  cursor: pointer; font-size: 1.05rem; transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--rojo); color: #fff; box-shadow: 0 6px 0 var(--rojo-2); }
.btn-primary:hover { background: #c8502f; box-shadow: 0 8px 0 var(--rojo-2), var(--sombra-alta); }
.btn-secondary { background: var(--ambar); color: var(--noche-2); box-shadow: 0 6px 0 #c1802a; }
.btn-secondary:hover { background: var(--ambar-claro); box-shadow: 0 8px 0 #c1802a, var(--sombra); }
.btn-ghost { background: transparent; color: var(--noche); border: 3px solid var(--noche); }
.btn-ghost:hover { background: var(--noche); color: #fff; }
.btn-ghost.on-dark { color: var(--crema); border-color: var(--crema); }
.btn-ghost.on-dark:hover { background: var(--crema); color: var(--noche); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; box-shadow: none; }

/* ── Cabecera ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 243, 227, .92); backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(61, 49, 40, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.logo { display: flex; align-items: center; gap: .45rem; text-decoration: none; }
.logo-moon { font-size: 1.6rem; display: inline-block; animation: bob 4s ease-in-out infinite; }
.logo-text {
  font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.45rem; color: var(--noche);
}
.logo-text em { font-style: normal; color: var(--rojo); font-size: 1rem; }

.main-nav { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--tinta); font-weight: 700; font-size: .95rem;
  padding: .45rem .7rem; border-radius: 999px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--crema-2); color: var(--noche); }
.main-nav a.active { background: var(--noche); color: var(--crema); }
.main-nav .nav-cta {
  background: var(--ambar); color: var(--noche-2); margin-left: .3rem;
  box-shadow: 0 3px 0 #c1802a;
}
.main-nav .nav-cta:hover { background: var(--ambar-claro); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--noche); margin: 5px 0; border-radius: 3px; transition: .25s; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--crema); flex-direction: column; align-items: stretch;
    padding: 1rem 4%; border-bottom: 3px solid var(--ambar); box-shadow: var(--sombra);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ── Flash ───────────────────────────────────────────────── */
.flash { padding: .8rem 0; font-weight: 700; }
.flash-ok { background: #e2f3d8; color: #2f5d1d; }
.flash-error { background: #f9ded7; color: #8c2f1b; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; color: var(--crema);
  background: radial-gradient(ellipse at 70% 20%, #3a2a6b 0%, var(--noche) 45%, var(--noche-2) 100%);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
  padding: 4.5rem 0 5.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 3px 14px rgba(0,0,0,.35); }
.hero h1 .destello { color: var(--ambar-claro); }
.hero p.lead { font-size: 1.15rem; margin-bottom: 1.8rem; color: #efe6ff; max-width: 34rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-block; background: var(--ambar); color: var(--noche-2);
  font-family: var(--fuente-titulo); font-weight: 800; font-size: .85rem;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
  transform: rotate(-2deg);
}
.hero-art { position: relative; text-align: center; }
.hero-art img {
  border-radius: 28px; box-shadow: var(--sombra-alta);
  transform: rotate(2deg); margin: 0 auto;
  border: 6px solid rgba(255, 253, 247, .9);
  animation: float 7s ease-in-out infinite;
}
.hero-globo {
  position: absolute; font-size: 3rem; top: -1.2rem; left: -.6rem;
  animation: float 5s ease-in-out infinite reverse; z-index: 3;
}
.hero-wave { display: block; width: 100%; margin-top: -2px; }

/* Estrellas parpadeantes (JS las coloca) */
.stars-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars-bg .estrella {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

/* ── Secciones ───────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--crema-2); }
.section-dark { background: var(--noche); color: var(--crema); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.6rem; }
.section-head .kicker {
  font-family: var(--fuente-titulo); font-weight: 800; color: var(--rojo);
  text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
}
.section-dark .section-head .kicker { color: var(--ambar-claro); }
.section-head p { color: var(--tinta-suave); margin-top: .6rem; }
.section-dark .section-head p { color: #d8cdf0; }

/* ── Tarjetas de libros ──────────────────────────────────── */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.book-card {
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 3px solid transparent;
}
.book-card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: var(--sombra-alta); border-color: var(--ambar); }
.book-cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--noche-2); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.book-card:hover .book-cover img { transform: scale(1.045); }
.book-ribbon {
  position: absolute; top: 1rem; left: -2.4rem; transform: rotate(-45deg);
  padding: .35rem 3rem; font-family: var(--fuente-titulo); font-weight: 800; font-size: .8rem;
  z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ribbon-disponible { background: #4c9b48; color: #fff; }
.ribbon-preventa { background: #d96a2b; color: #fff; }
.ribbon-proximamente { background: var(--ambar); color: var(--noche-2); }
.ribbon-en_preparacion { background: #7f6bb5; color: #fff; }
.book-cover .misterio {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--crema); font-family: var(--fuente-titulo); text-align: center; padding: 1rem;
  background: linear-gradient(180deg, rgba(26,18,51,.15), rgba(26,18,51,.55));
}
.book-cover .misterio .interrogante { font-size: 4rem; animation: bob 3s ease-in-out infinite; }
.book-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.book-body h3 { font-size: 1.35rem; }
.book-body .book-sub { color: var(--rojo); font-family: var(--fuente-titulo); font-weight: 700; }
.book-body p { color: var(--tinta-suave); font-size: .98rem; flex: 1; }
.book-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }
.book-meta { font-size: .85rem; color: var(--tinta-suave); }

/* Ficha de libro */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.book-detail .book-cover-big img { border-radius: 18px; box-shadow: var(--sombra-alta); border: 6px solid #fff; }
.book-detail .estado { display: inline-block; font-family: var(--fuente-titulo); font-weight: 800; border-radius: 999px; padding: .3rem 1rem; font-size: .85rem; margin-bottom: 1rem; }
.estado-disponible { background: #dff0d5; color: #2f5d1d; }
.estado-preventa { background: #fbe0cd; color: #8f3f0e; }
.estado-proximamente { background: #fdeccb; color: #8a5b13; }
.estado-en_preparacion { background: #e6def5; color: #4b3782; }
.book-detail .descripcion p { margin-bottom: 1rem; }

/* Aviso de preventa en la ficha del libro */
.preventa-box {
  margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 14px;
  background: #fff5ec; border: 2px dashed #e8a877;
}
.preventa-box strong { font-family: var(--fuente-titulo); color: #8f3f0e; display: block; margin-bottom: .3rem; }
.preventa-box p { margin: 0; font-size: .95rem; color: var(--tinta-suave); }

/* Opiniones dentro de la ficha del libro */
.book-reviews { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 2px dashed var(--borde, #e6ddd0); }
.book-reviews h2 { font-size: 1.6rem; margin-bottom: 1.2rem; text-align: center; }
.book-reviews > p { text-align: center; color: var(--tinta-suave); }

/* Filtros de opiniones por libro */
.review-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.review-filters .chip {
  display: inline-block; padding: .45rem 1.1rem; border-radius: 999px; text-decoration: none;
  background: var(--blanco); border: 2px solid #e6ddd0; color: var(--noche);
  font-family: var(--fuente-titulo); font-weight: 700; font-size: .92rem; transition: .18s;
}
.review-filters .chip span { color: var(--tinta-suave); font-weight: 600; }
.review-filters .chip:hover { border-color: var(--ambar); transform: translateY(-2px); }
.review-filters .chip.on { background: var(--noche); border-color: var(--noche); color: #fff; }
.review-filters .chip.on span { color: #d7cdf3; }

/* Etiqueta del libro dentro de cada opinión */
.review-book {
  display: inline-block; margin-top: .5rem; padding: .2rem .7rem; border-radius: 999px;
  background: #f3ede2; color: #6b5b45; font-size: .8rem; font-weight: 700;
  font-family: var(--fuente-titulo); text-decoration: none;
}
a.review-book:hover { background: var(--ambar); color: var(--noche-2); }

/* ── Personajes ──────────────────────────────────────────── */
.chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.8rem; }
.char-card {
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  overflow: hidden; text-align: center; transition: transform .25s ease, box-shadow .25s;
}
.char-card:hover { transform: translateY(-6px) rotate(.6deg); box-shadow: var(--sombra-alta); }
.char-img { aspect-ratio: 1 / 1.1; overflow: hidden; background: #f0e8d4; }
.char-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.char-card:hover .char-img img { transform: scale(1.06); }
.char-body { padding: 1.2rem 1.3rem 1.5rem; }
.char-body .char-role { color: var(--rojo); font-family: var(--fuente-titulo); font-weight: 700; font-size: .92rem; margin: .2rem 0 .6rem; }
.char-body p { font-size: .95rem; color: var(--tinta-suave); text-align: left; }

/* ── Valores ─────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.value-card {
  background: var(--blanco); border-radius: var(--radio); padding: 1.6rem 1.5rem;
  box-shadow: var(--sombra); border-top: 6px solid var(--ambar);
  transition: transform .22s ease;
}
.value-card:nth-child(3n+2) { border-top-color: var(--rojo); }
.value-card:nth-child(3n) { border-top-color: #7f6bb5; }
.value-card:hover { transform: translateY(-5px); }
.value-card .emoji { font-size: 2.3rem; display: inline-block; animation: bob 3.5s ease-in-out infinite; }
.value-card h3 { margin: .5rem 0 .5rem; }
.value-card p { color: var(--tinta-suave); font-size: .96rem; }

/* Paginación de listados */
.paginacion { display: flex; gap: 1.2rem; justify-content: center; align-items: center; margin-top: 2.8rem; flex-wrap: wrap; }
.pag-info { font-family: var(--fuente-titulo); font-weight: 700; color: var(--tinta-suave); }
.pag-off { opacity: .35; pointer-events: none; }

/* Comentarios (noticias, manualidades, recomendados) */
.comments { margin-top: 5rem; padding-top: 3rem; border-top: 3px dashed rgba(36, 26, 71, .15); clear: both; }
.comments h2 { margin-bottom: 1.6rem; }
.comments-empty { color: var(--tinta-suave); margin: 1.6rem 0 2.2rem; }
.comment-card {
  background: var(--blanco); border-radius: 14px; padding: 1.1rem 1.4rem;
  box-shadow: var(--sombra); margin-bottom: 1.1rem; border-left: 5px solid var(--ambar);
}
.comment-card:nth-child(3n) { border-left-color: var(--rojo); }
.comment-card:nth-child(3n+1) { border-left-color: #7f6bb5; }
.comment-meta { font-size: .85rem; color: var(--tinta-suave); margin-bottom: .35rem; }
.comment-text { font-size: .97rem; }
.comment-form { margin-top: 2.4rem; }

/* Fichas individuales (personajes y libros recomendados) */
.ficha-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 2.5rem; align-items: start; }
.ficha-img img { width: 100%; border-radius: var(--radio); box-shadow: var(--sombra-alta); }
.ficha-img-libro { text-align: center; }
.ficha-img-libro img { max-width: 260px; width: auto; }
.ficha-texto h1 { margin-bottom: .4rem; }
.emoji-grande { font-size: 6rem; display: block; text-align: center; }
@media (max-width: 720px) { .ficha-grid { grid-template-columns: 1fr; } .ficha-img { max-width: 300px; margin: 0 auto; } }

/* Portadas de libros recomendados (imagen de Amazon a partir del ISBN) */
.rec-cover {
  display: block; height: 170px; width: auto; max-width: 130px; object-fit: contain;
  margin: 0 auto .8rem; border-radius: 6px;
  box-shadow: 0 6px 16px rgba(36, 26, 71, .18);
  background: var(--crema-2);
}
.value-card:hover .rec-cover { transform: rotate(-2deg) scale(1.04); transition: transform .22s ease; }

/* ── Blog ────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.post-card {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-alta); }
.post-thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 1.3rem 1.4rem 1.5rem; }
.post-date { font-size: .82rem; color: var(--tinta-suave); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-body h3 { margin: .35rem 0 .5rem; }
.post-body p { color: var(--tinta-suave); font-size: .95rem; }
.post-full { max-width: 46rem; margin: 0 auto; }
.post-full .post-hero { border-radius: var(--radio); box-shadow: var(--sombra); margin: 1.5rem 0 2rem; }
.post-full .cuerpo p { margin-bottom: 1.1rem; font-size: 1.05rem; }

/* ── Reseñas ─────────────────────────────────────────────── */
.stars { color: #d8cfc0; font-size: 1.15rem; letter-spacing: .1em; }
.stars .star.on { color: var(--ambar); text-shadow: 0 1px 3px rgba(0,0,0,.15); }
.stars-big { font-size: 1.6rem; }
.reviews-summary { text-align: center; margin-bottom: 2rem; }
.reviews-summary .media { font-family: var(--fuente-titulo); font-size: 2.6rem; font-weight: 800; color: var(--noche); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--blanco); border-radius: var(--radio); padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--sombra); position: relative;
}
.review-card::before {
  content: '“'; position: absolute; top: .2rem; right: 1.1rem; font-family: var(--fuente-titulo);
  font-size: 4rem; color: var(--crema-2); line-height: 1;
}
.review-card .quien { font-weight: 800; margin-top: .8rem; color: var(--noche); }
.review-card p.texto { margin-top: .6rem; color: var(--tinta-suave); }
.review-form {
  background: var(--blanco); border-radius: var(--radio); padding: 2rem; box-shadow: var(--sombra);
  max-width: 40rem; margin: 0 auto;
}
.review-form h3 { margin-bottom: 1rem; }

/* Selector de estrellas */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; font-size: 2rem; }
.star-input input { display: none; }
.star-input label { color: #d8cfc0; cursor: pointer; transition: transform .12s, color .12s; }
.star-input label:hover { transform: scale(1.2); }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--ambar); }

/* ── Formularios ─────────────────────────────────────────── */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: .75rem 1rem; border: 2px solid #e3d8c2; border-radius: 14px;
  font-family: var(--fuente-texto); font-size: 1rem; background: #fff; color: var(--tinta);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ambar); box-shadow: 0 0 0 4px rgba(232, 163, 61, .18); }
label { font-weight: 700; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; margin-bottom: .35rem; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }

/* ── Banda newsletter ────────────────────────────────────── */
.newsletter-band {
  position: relative; background: radial-gradient(ellipse at 30% 0%, #3a2a6b 0%, var(--noche-2) 70%);
  color: var(--crema); padding: 3.5rem 0; overflow: hidden;
}
.newsletter-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.newsletter-copy h2 { color: #fff; margin-bottom: .6rem; }
.newsletter-copy p { color: #d8cdf0; }
.newsletter-form { display: flex; flex-direction: column; gap: .8rem; }
.newsletter-form .consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; font-weight: 400; color: #cfc3ea; }
.newsletter-form .consent a { color: var(--ambar-claro); }
.newsletter-form .consent input { margin-top: .25rem; }

/* ── Descargables ────────────────────────────────────────── */
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.8rem; }
.download-card {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
  text-align: center; transition: transform .22s;
}
.download-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.download-card .thumb { aspect-ratio: 3 / 4; overflow: hidden; background: #fff; border-bottom: 2px dashed var(--crema-2); }
.download-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.download-card .cuerpo { padding: 1.1rem 1.2rem 1.4rem; }
.download-card h3 { font-size: 1.05rem; margin-bottom: .7rem; }

/* ── Autor ───────────────────────────────────────────────── */
.author-layout { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.author-layout .foto img { border-radius: var(--radio); box-shadow: var(--sombra-alta); border: 6px solid #fff; transform: rotate(-1.5deg); }
.author-layout .bio p { margin-bottom: 1.05rem; font-size: 1.05rem; }
.author-banner { margin-top: 3rem; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }

/* ── CTA Amazon band ─────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--ambar) 0%, var(--ambar-claro) 100%);
  border-radius: var(--radio); padding: 2.4rem 2.6rem; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap; box-shadow: var(--sombra);
}
.cta-band h3 { font-size: 1.5rem; color: var(--noche-2); }
.cta-band p { color: #5d420f; }

/* ── Página genérica ─────────────────────────────────────── */
.page-hero {
  background: radial-gradient(ellipse at 60% 0%, #3a2a6b 0%, var(--noche-2) 75%);
  color: var(--crema); padding: 3.2rem 0 3.6rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; position: relative; z-index: 2; }
.page-hero p { color: #d8cdf0; max-width: 40rem; margin: .7rem auto 0; position: relative; z-index: 2; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #14102b; color: #b9aed6; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-logo em { font-style: normal; color: var(--ambar); font-size: 1rem; }
.footer-tag { font-size: .92rem; margin-top: .4rem; }
.footer-social { display: flex; gap: .9rem; margin-top: .9rem; flex-wrap: wrap; }
.footer-social a, .footer-grid nav a { color: #d8cdf0; text-decoration: none; display: block; padding: .18rem 0; }
.footer-social a:hover, .footer-grid nav a:hover { color: var(--ambar-claro); }
.footer-contact a { color: var(--ambar-claro); }
.footer-amazon-note { font-size: .78rem; margin-top: .8rem; opacity: .75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .85rem; }
.admin-link { color: #8678ad; text-decoration: none; }
.admin-link:hover { color: #fff; }

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 3rem 0 4rem; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .books-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .book-detail, .author-layout { grid-template-columns: 1fr; }
  .book-detail .book-cover-big { max-width: 300px; margin: 0 auto; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .section { padding: 2.8rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Manualidades ────────────────────────────────────────── */
.craft-meta { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0 1.2rem; }
.craft-chip {
  background: var(--crema-2); border-radius: 999px; padding: .3rem .95rem;
  font-family: var(--fuente-titulo); font-weight: 700; font-size: .88rem; color: var(--noche);
}
.materials-box {
  background: var(--blanco); border-radius: var(--radio); padding: 1.8rem;
  box-shadow: var(--sombra); border-top: 6px solid var(--ambar); margin-top: 2rem;
}
.materials-box h2 { margin-bottom: 1rem; font-size: 1.35rem; }
.materials-list { list-style: none; }
.materials-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 2px dashed var(--crema-2); font-weight: 600;
}
.materials-list li:last-child { border-bottom: none; }
.materials-note { font-size: .82rem; color: var(--tinta-suave); margin-top: 1rem; }
.craft-steps p { background: var(--blanco); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--sombra); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { background: var(--blanco); border-radius: 16px; box-shadow: var(--sombra); margin-bottom: .9rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.4rem; font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.08rem; color: var(--noche); list-style: none; position: relative; padding-right: 3rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--ambar); font-size: 1.3rem; font-weight: 800; transition: transform .2s; }
.faq-item[open] summary::after { content: '－'; }
.faq-item .faq-answer { padding: 0 1.4rem 1.2rem; color: var(--tinta-suave); }

/* ── Cuenta atrás ────────────────────────────────────────── */
.countdown-band { background: linear-gradient(120deg, var(--ambar) 0%, var(--ambar-claro) 100%); padding: 1rem 0; }
.countdown-inner { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.countdown-text { font-family: var(--fuente-titulo); font-weight: 800; color: var(--noche-2); font-size: 1.1rem; }
.countdown-timer { font-family: var(--fuente-titulo); font-weight: 800; color: var(--rojo-2); font-size: 1.25rem; }
.countdown-timer [data-cd] { background: var(--noche-2); color: var(--ambar-claro); border-radius: 8px; padding: .15rem .55rem; }

/* ── Compartir ───────────────────────────────────────────── */
.home-share .share-row { justify-content: center; margin-top: 2.2rem; }
.share-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.share-label { font-family: var(--fuente-titulo); font-weight: 700; color: var(--tinta-suave); font-size: .92rem; }
.btn-share { font-family: var(--fuente-titulo); font-weight: 700; font-size: .9rem; border: none; cursor: pointer; border-radius: 999px; padding: .45rem 1.1rem; text-decoration: none; transition: transform .15s; }
.btn-share:hover { transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #fff; }
.btn-native { background: var(--crema-2); color: var(--noche); }

/* ── Vídeo (booktrailer) ─────────────────────────────────── */
.video-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Edición en partes ───────────────────────────────────── */
.parts-box { background: var(--blanco); border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra); border-top: 6px solid #7f6bb5; margin-top: 2rem; }
.parts-box h3 { margin-bottom: .6rem; }
.parts-intro { color: var(--tinta-suave); font-size: .95rem; margin-bottom: 1.2rem; }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.part-card { background: var(--crema); border-radius: 14px; overflow: hidden; text-align: center; }
.part-card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.part-body { padding: .8rem .6rem 1rem; display: flex; flex-direction: column; gap: .35rem; align-items: center; }
.part-body small { color: var(--tinta-suave); }
.part-soon { font-family: var(--fuente-titulo); font-weight: 700; font-size: .85rem; color: var(--tinta-suave); }
.parts-badge { display: inline-block; background: #e6def5; color: #4b3782; font-family: var(--fuente-titulo); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: .2rem .8rem; margin-top: .3rem; }

.btn-fb { background: #1877f2; color: #fff; }
.btn-tw { background: #14171a; color: #fff; }
.btn-tg { background: #229ED9; color: #fff; }

/* ── Juego: La nave globo de Ziru ────────────────────────── */
.juego-wrap { max-width: 900px; margin: 0 auto; }
.juego-hud { display: flex; align-items: center; gap: 1rem; background: var(--noche-2); color: var(--crema); border-radius: 16px 16px 0 0; padding: .6rem 1.1rem; font-family: var(--fuente-titulo); font-weight: 700; }
.juego-hud #ui-score { flex: 0 0 auto; }
.juego-rio-bar { flex: 1; height: 10px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.juego-rio-bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--ambar), var(--ambar-claro)); border-radius: 999px; transition: width .2s linear; }
.juego-mute { background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.juego-stage { position: relative; border-radius: 0 0 16px 16px; overflow: hidden; box-shadow: var(--sombra-alta); }
.juego-stage canvas { display: block; width: 100%; touch-action: none; cursor: none; }
.juego-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,18,51,.82); backdrop-filter: blur(3px); }
.juego-panel { text-align: center; color: var(--crema); max-width: 30rem; padding: 2rem; }
.juego-panel h2 { color: #fff; margin-bottom: .8rem; }
.juego-panel p { color: #d8cdf0; margin-bottom: .6rem; }
.juego-controles { font-size: .9rem; }
.juego-resultado { font-size: 1.15rem; }
.juego-cta { margin-top: 1.2rem; font-size: .92rem; }
.juego-cta a { color: var(--ambar-claro); }

/* ── Juego de memoria ────────────────────────────────────── */
.memo-stage { position: relative; background: radial-gradient(ellipse at 50% 0%, #3a2a6b 0%, #1a1233 80%); border-radius: 0 0 16px 16px; padding: 1.2rem; box-shadow: var(--sombra-alta); }
.memo-board { display: grid; gap: .7rem; max-width: 640px; margin: 0 auto; }
.memo-board.memo-6 { grid-template-columns: repeat(4, 1fr); }
.memo-board.memo-8 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 700px) { .memo-board.memo-8 { grid-template-columns: repeat(4, 1fr); max-width: 560px; } }
.memo-card { position: relative; aspect-ratio: 1; border: none; background: none; cursor: pointer; perspective: 600px; padding: 0; }
.memo-inner { position: absolute; inset: 0; transition: transform .45s; transform-style: preserve-3d; }
.memo-card.open .memo-inner, .memo-card.done .memo-inner { transform: rotateY(180deg); }
.memo-back, .memo-front { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.memo-back { background: linear-gradient(145deg, #2e2158, #241a47); border: 2px solid #7f6bb5; font-size: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.memo-card:hover .memo-back { border-color: var(--ambar); }
.memo-front { transform: rotateY(180deg); background: var(--blanco); border: 3px solid var(--ambar); overflow: hidden; flex-direction: column; }
.memo-front img { width: 100%; height: 100%; object-fit: cover; }
.memo-front em { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(26,18,51,.78); color: var(--crema); font-style: normal; font-family: var(--fuente-titulo); font-weight: 700; font-size: clamp(.5rem, 1.6vw, .72rem); padding: .15rem 0; text-align: center; }
.memo-card.done .memo-front { border-color: #4c9b48; }
.memo-card.done { animation: memoPop .4s ease; }
@keyframes memoPop { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ── Diploma de Piloto ───────────────────────────────────── */
.diploma-controls { display: flex; gap: .9rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.diploma-controls input { max-width: 280px; }
.diploma-sheet { max-width: 860px; margin: 0 auto; background: #fffdf4; border-radius: 6px; box-shadow: var(--sombra-alta); padding: 14px; }
.diploma-border { border: 4px double var(--ambar); border-radius: 4px; padding: 2.6rem 2rem; text-align: center; background:
  radial-gradient(circle at 8% 12%, rgba(232,163,61,.12) 0 22px, transparent 23px),
  radial-gradient(circle at 92% 88%, rgba(127,107,181,.12) 0 26px, transparent 27px),
  #fffdf4; }
.diploma-stars { color: var(--ambar); letter-spacing: .8em; margin-bottom: 1rem; }
.diploma-kicker { font-family: var(--fuente-titulo); font-weight: 800; letter-spacing: .18em; font-size: .8rem; color: var(--tinta-suave); }
.diploma-nombre { font-family: var(--fuente-titulo); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--rojo); margin: .6rem 0 .2rem; border-bottom: 2px dotted var(--ambar); display: inline-block; padding: 0 1.2rem .2rem; min-width: 40%; }
.diploma-titulo { font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--noche); margin: .6rem 0 1rem; }
.diploma-texto { color: var(--tinta-suave); font-size: .98rem; }
.diploma-firmas { display: flex; justify-content: space-around; align-items: flex-end; margin: 2.2rem 0 1rem; gap: 1rem; }
.diploma-firma-nombre { font-family: 'Baloo 2', cursive; font-size: 1.4rem; font-weight: 700; color: var(--noche); border-bottom: 1.5px solid var(--tinta-suave); padding: 0 1.4rem .1rem; }
.diploma-firma-cargo { font-size: .72rem; color: var(--tinta-suave); margin-top: .25rem; }
.diploma-sello { font-size: 2.6rem; background: radial-gradient(circle, rgba(232,163,61,.25), transparent 70%); border: 2px dashed var(--ambar); border-radius: 50%; width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; transform: rotate(-8deg); }
.diploma-pie { font-size: .75rem; color: var(--tinta-suave); letter-spacing: .1em; }

@media print {
  .no-print, .site-header, .site-footer, .newsletter-band, .flash { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .container { width: 100%; }
  .diploma-sheet { box-shadow: none; max-width: none; page-break-inside: avoid; }
  @page { size: A4 landscape; margin: 1cm; }
}

/* ── Juego «La vuelta a casa» (cálculo) ──────────────────── */
.vuelta-hud-dist { flex: 0 0 auto; font-size: .9rem; white-space: nowrap; }
.vuelta-hud { flex-wrap: wrap; gap: .6rem 1rem; }
@media (max-width: 620px) {
  .vuelta-hud { font-size: .9rem; gap: .3rem .9rem; padding: .55rem .9rem; }
  .vuelta-hud .juego-rio-bar { order: 4; flex: 1 0 100%; }
  .vuelta-hud .juego-mute { order: 5; }
  .vuelta-hud-dist { margin-left: auto; font-size: .8rem; }
}
.vuelta-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 62vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 55% at 50% 118%, #4a9bd8 0%, #2a5f9e 26%, rgba(36,26,71,0) 62%),
    radial-gradient(ellipse at 50% 0%, #3a2a6b 0%, #1a1233 55%, #0c0820 100%);
  box-shadow: var(--sombra-alta);
}
.vuelta-estrellas {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 78% 12%, #fff5d0, transparent),
    radial-gradient(1.2px 1.2px at 33% 62%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 62% 38%, #ffe9a8, transparent),
    radial-gradient(1.2px 1.2px at 88% 68%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 22% 84%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 52% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 7% 46%, #ffe9a8, transparent),
    radial-gradient(1.2px 1.2px at 94% 30%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 45% 92%, #fff, transparent);
  animation: vueltaTitila 4s ease-in-out infinite alternate;
}
@keyframes vueltaTitila { from { opacity: .55; } to { opacity: 1; } }
.vuelta-stage::after {
  content: ''; position: absolute; left: 50%; top: 16%; bottom: 22%;
  width: 3px; margin-left: -1.5px; z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(246,200,107,.5) 0 7px, transparent 7px 18px);
  opacity: .5;
}

.vuelta-nave {
  position: absolute; left: 50%; top: 8%;
  width: 22%; max-width: 158px; aspect-ratio: 1;
  transform: translateX(-50%) scale(.6);
  transition: top .8s cubic-bezier(.34,1.25,.64,1), transform .8s cubic-bezier(.34,1.25,.64,1);
  z-index: 3;
}
.vuelta-nave img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ambar);
  box-shadow: 0 0 26px rgba(246,200,107,.55), 0 8px 22px rgba(0,0,0,.45);
  animation: vueltaFlota 3.4s ease-in-out infinite alternate;
}
@keyframes vueltaFlota { from { transform: translateY(-4px) rotate(-1.5deg); } to { transform: translateY(4px) rotate(1.5deg); } }
.vuelta-llama {
  position: absolute; left: 50%; bottom: -6%;
  width: 26%; height: 26%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  background: radial-gradient(circle at 50% 0%, #fff6d8 0%, var(--ambar-claro) 35%, var(--rojo) 75%, transparent 78%);
  border-radius: 0 0 60% 60%;
  filter: blur(1px);
  opacity: 0;
}
.nave-baja .vuelta-llama, .nave-impulso .vuelta-llama { animation: vueltaLlama .7s ease-out; }
@keyframes vueltaLlama {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
  35% { opacity: 1; transform: translateX(-50%) scaleY(1.15); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(.2); }
}
.nave-baja img { animation: vueltaFlota 3.4s ease-in-out infinite alternate, vueltaPulso .5s ease; }
.nave-impulso img { animation: vueltaFlota 3.4s ease-in-out infinite alternate, vueltaPulso .5s ease; box-shadow: 0 0 46px rgba(246,200,107,.95), 0 8px 22px rgba(0,0,0,.45); }
.nave-sube img { animation: vueltaFlota 3.4s ease-in-out infinite alternate, vueltaTiembla .45s ease; border-color: #d98a8a; }
@keyframes vueltaPulso { 0% { filter: brightness(1); } 45% { filter: brightness(1.35); } 100% { filter: brightness(1); } }
@keyframes vueltaTiembla {
  0%, 100% { margin-left: 0; }
  20% { margin-left: -7px; } 40% { margin-left: 7px; }
  60% { margin-left: -5px; } 80% { margin-left: 5px; }
}

.vuelta-tierra {
  position: absolute; left: 50%; bottom: -22%;
  width: 46%; aspect-ratio: 1;
  transform: translateX(-50%) scale(.35);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 16% 9% at 26% 20%, rgba(255,255,255,.55) 0 62%, transparent 64%),
    radial-gradient(ellipse 13% 7% at 62% 33%, rgba(255,255,255,.45) 0 62%, transparent 64%),
    radial-gradient(ellipse 15% 8% at 44% 62%, rgba(255,255,255,.4) 0 62%, transparent 64%),
    radial-gradient(ellipse 11% 6% at 74% 72%, rgba(255,255,255,.38) 0 62%, transparent 64%),
    radial-gradient(ellipse 9% 12% at 30% 40%, #5fb073 0 72%, transparent 74%),
    radial-gradient(ellipse 12% 8% at 41% 30%, #6cbf7e 0 72%, transparent 74%),
    radial-gradient(ellipse 7% 9% at 22% 58%, #6cbf7e 0 72%, transparent 74%),
    radial-gradient(ellipse 13% 9% at 66% 52%, #5fb073 0 72%, transparent 74%),
    radial-gradient(ellipse 6% 7% at 55% 74%, #74c586 0 72%, transparent 74%),
    radial-gradient(ellipse 8% 5% at 78% 40%, #6cbf7e 0 72%, transparent 74%),
    radial-gradient(ellipse 5% 6% at 38% 82%, #5fb073 0 72%, transparent 74%),
    radial-gradient(circle at 32% 28%, #86cdf2 0%, #3688cb 45%, #1a5a97 75%, #0f3a68 100%);
  box-shadow: 0 0 42px rgba(110,190,255,.5), inset -14px -12px 34px rgba(0,0,0,.45), inset 6px 6px 22px rgba(255,255,255,.18);
  transition: transform .8s cubic-bezier(.34,1.25,.64,1);
  z-index: 2;
}
.vuelta-casita {
  position: absolute; left: 50%; top: 10%;
  transform: translateX(-50%);
  font-size: clamp(1rem, 3.2vw, 1.8rem);
  opacity: 0; transition: opacity .6s;
  filter: drop-shadow(0 0 8px rgba(255,235,180,.9));
}
.vuelta-stage.cerca .vuelta-casita { opacity: 1; animation: vueltaLate 1.6s ease-in-out infinite; }
@keyframes vueltaLate { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.14); } }

.vuelta-aviso {
  position: absolute; left: 50%; bottom: 6%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26,18,51,.9);
  color: var(--crema);
  font-family: var(--fuente-titulo); font-weight: 700;
  padding: .45rem 1.1rem; border-radius: 999px;
  font-size: clamp(.82rem, 2.4vw, 1rem);
  text-align: center; max-width: 90%;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 4;
}
.vuelta-aviso.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.vuelta-aviso.bien { border: 2px solid #6dc46a; }
.vuelta-aviso.mal { border: 2px solid var(--rojo); }

.vuelta-stage .juego-overlay { z-index: 6; align-items: flex-start; overflow-y: auto; }
.vuelta-stage .juego-panel { padding: 1.2rem 1.2rem 1.6rem; }
.vuelta-final .juego-cta { margin-top: .7rem; }

/* Configuración */
.vuelta-config, .vuelta-panel-juego {
  background: var(--blanco);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--sombra);
  padding: 1.6rem 1.4rem 1.8rem;
  margin-top: -16px;
  position: relative; z-index: 1;
}
.vuelta-config h2 { text-align: center; font-size: clamp(1.2rem, 3.4vw, 1.6rem); }
.vuelta-config-sub { text-align: center; color: var(--tinta-suave); font-size: .95rem; margin-bottom: 1.2rem; }
.vuelta-grupo { margin-bottom: 1.1rem; text-align: center; }
.vuelta-grupo-label {
  display: block; font-family: var(--fuente-titulo); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; font-size: .74rem;
  color: var(--tinta-suave); margin-bottom: .5rem;
}
.vuelta-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.vuelta-chip {
  font-family: var(--fuente-titulo); font-weight: 700; font-size: .95rem;
  background: var(--crema-2); color: var(--tinta);
  border: 2px solid transparent; border-radius: 999px;
  padding: .5rem 1.05rem; cursor: pointer;
  transition: transform .12s, background .18s, border-color .18s, color .18s;
}
.vuelta-chip:hover { transform: translateY(-2px); border-color: var(--ambar); }
.vuelta-chip.activo { background: var(--noche); color: var(--crema); border-color: var(--ambar); }
.vuelta-pista { margin-top: .6rem; color: var(--tinta-suave); font-size: .9rem; }
.vuelta-alerta { margin-top: .6rem; color: var(--rojo); font-size: .9rem; font-weight: 700; }

/* Panel de juego */
.vuelta-pregunta-fila { display: flex; align-items: center; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.vuelta-pregunta {
  font-family: var(--fuente-titulo); font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 3rem); color: var(--noche);
  letter-spacing: .04em; text-align: center;
}
.vuelta-pregunta b { color: var(--rojo); margin: 0 .15em; }
.vuelta-pregunta em { color: var(--ambar); font-style: normal; }
.vuelta-btn-ajustes { flex: 0 0 auto; font-size: .82rem; padding: .35rem .9rem; }
.vuelta-opciones {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .7rem; max-width: 34rem; margin: 1.1rem auto 0;
}
@media (min-width: 620px) { .vuelta-opciones { grid-template-columns: repeat(4, 1fr); } }
.vuelta-opcion {
  font-family: var(--fuente-titulo); font-weight: 800;
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  background: var(--crema-2); color: var(--noche);
  border: 3px solid transparent; border-radius: 16px;
  padding: .75rem .4rem; cursor: pointer; min-height: 62px;
  transition: transform .12s, background .18s, border-color .18s;
}
.vuelta-opcion:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--ambar); background: var(--crema); }
.vuelta-opcion:disabled { cursor: default; }
.vuelta-opcion.ok { background: #e2f5e1; border-color: #4c9b48; color: #2f6b2c; animation: memoPop .4s ease; }
.vuelta-opcion.mal { background: #fbe4de; border-color: var(--rojo); color: var(--rojo-2); }
.vuelta-nivel-pie { text-align: center; color: var(--tinta-suave); font-size: .82rem; margin-top: .9rem; }

.vuelta-final-acciones { text-align: center; }
.vuelta-record { font-family: var(--fuente-titulo); font-weight: 700; color: var(--rojo); margin-bottom: .8rem; }
.vuelta-final-botones { margin-bottom: 1.1rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.vuelta-final-enlaces { border-top: 1px dashed var(--crema-2); padding-top: 1rem; max-width: 34rem; margin: 0 auto; }
.vuelta-final-enlaces p { font-size: .93rem; color: var(--tinta-suave); margin-bottom: .5rem; }
.vuelta-final-enlaces a { font-weight: 700; }
.vuelta-final-img {
  width: 132px; height: 132px; object-fit: cover;
  border-radius: 50%; margin: 0 auto .9rem;
  border: 3px solid var(--ambar);
  box-shadow: 0 0 26px rgba(246,200,107,.5);
}
@media (max-width: 560px) {
  .vuelta-stage { aspect-ratio: 4 / 3; }
  .vuelta-nave { width: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .vuelta-nave, .vuelta-nave img, .vuelta-tierra, .vuelta-estrellas, .vuelta-casita { animation: none !important; transition: none !important; }
}
.badge-nuevo { display: inline-block; vertical-align: middle; background: var(--rojo); color: #fff; font-family: var(--fuente-titulo); font-weight: 800; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .12rem .6rem; margin-left: .4rem; }

/* ── Otros libros del autor ──────────────────────────────── */
.otros-libros { margin: 3.5rem auto 0; max-width: 60rem; }
.otros-libros h2 { text-align: center; }
.otros-libros-sub { text-align: center; color: var(--tinta-suave); max-width: 40rem; margin: .5rem auto 2rem; }
.otros-libros-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.otro-libro {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--blanco); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 1.2rem;
}
.otro-libro-cover { flex: 0 0 108px; }
.otro-libro-cover img { width: 108px; border-radius: 8px; box-shadow: 0 8px 20px rgba(36,26,71,.22); }
.otro-libro-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.otro-libro-body p { font-size: .93rem; color: var(--tinta-suave); margin-bottom: .9rem; }
.otro-libro-body .btn { font-size: .88rem; padding: .5rem 1.1rem; }
@media (max-width: 420px) {
  .otro-libro { flex-direction: column; align-items: center; text-align: center; }
}
