/* =============================================================
   LectorApp · Reseñas — styles.css
   Mismo lenguaje que lectorapp.es (rediseño 2026-11): "colores vivos".
   Inter Black en titulares · portada azul de marca con palabras en amarillo · botones de tienda negros ·
   banda oscura · los colores del logo como lomos de libro.
   La pieza memorable: la ficha de valoración sobre el móvil, en el héroe azul.
   ============================================================= */

/* 1. Fuentes (auto-alojadas, rangos recortados) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-lt.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/assets/fonts/inter-black-lt.woff2") format("woff2"); }

/* 2. Tokens */
:root {
  --blue: #3478f6;
  --blue-deep: #1f5fd8;
  --blue-ink: #163d8f;
  --blue-dark: #2459c9;
  --brand: #2563eb;
  --night: #0b1020;
  --pop: #ffd43b;
  --sky: #eaf1ff;
  --mist: #f5f8ff;

  --white: #ffffff;
  --ink: #1b2236;
  --ink-soft: #414963;
  --mute: #686f86;
  --line: rgba(27, 34, 54, 0.1);
  --line-strong: rgba(27, 34, 54, 0.18);

  --yellow: #fbbf42;
  --red: #e7434b;
  --green: #209d76;
  --purple: #6f4892;
  --star: #f5a623;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1200px;
  --radius: 20px;
  --nav-h: 72px;
  --shadow-soft: 0 24px 50px -34px rgba(27, 34, 54, 0.35);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip; -webkit-tap-highlight-color: rgba(52, 120, 246, 0.14);
}
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
ul { padding: 0; list-style: none; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: 0.6rem 1rem; background: var(--blue); color: var(--white); border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* 4. Tipografía: Inter pesada y apretada */
.display, .h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.042em; line-height: 1; }
.display em, .h2 em { font-style: normal; color: var(--blue-deep); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--blue-deep); }
.kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.55; }

/* 5. Botones */
.btn {
  --b-bg: var(--blue); --b-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  background: var(--b-bg); color: var(--b-fg); white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { box-shadow: 0 12px 28px -12px rgba(52, 120, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); border: 1px solid var(--line-strong); }
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #2a6ae6; transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Botones de tienda (insignia) */
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 58px; padding: 0.5rem 1.3rem 0.5rem 1rem; border-radius: 14px;
  background: #050810; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6); text-align: left; white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store-t { display: flex; flex-direction: column; line-height: 1.08; min-width: 0; }
.store-t small { font-size: 0.7rem; font-weight: 500; opacity: 0.86; letter-spacing: 0.01em; }
.store-t b { font-size: 1.28rem; font-weight: 650; letter-spacing: -0.025em; }
.store:active { transform: scale(0.97); transition-duration: 0.1s; }
@media (hover: hover) and (pointer: fine) {
  .store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.7); box-shadow: 0 22px 36px -16px rgba(0, 0, 0, 0.65); }
}
.store:focus-visible { outline-color: var(--pop); }
.store-row { gap: 0.75rem; }
@media (max-width: 539px) {
  .store-row { flex-wrap: nowrap; }
  .store-row .store { flex: 1 1 0; min-width: 0; padding: 0.5rem 0.7rem 0.5rem 0.75rem; gap: 0.5rem; }
  .store svg { width: 24px; height: 24px; }
  .store-t small { font-size: 0.64rem; }
  .store-t b { font-size: 1.06rem; }
}
@media (max-width: 349px) { .store-t small { display: none; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.logo small { font-weight: 500; opacity: 0.7; font-size: 0.95rem; letter-spacing: 0; }

/* 6. Navegación: transparente sobre la portada azul, sólida al hacer scroll */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); color: var(--ink); transition: background-color 0.3s var(--ease-soft), box-shadow 0.3s; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { display: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-link:hover { color: var(--ink); }
.nav.is-solid { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
}
.is-home .nav:not(.is-solid) { color: #fff; }
.is-home .nav:not(.is-solid) .nav-link { color: rgba(255, 255, 255, 0.86); }
.is-home .nav:not(.is-solid) .nav-link:hover { color: #fff; }
.is-home .nav:not(.is-solid) .btn-primary { --b-bg: #fff; --b-fg: var(--blue-ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
@media (hover: hover) and (pointer: fine) { .is-home .nav:not(.is-solid) .btn-primary:hover { background: var(--pop); } }

/* 7. Portada azul */
.hero {
  position: relative; overflow: clip; isolation: isolate; color: #fff; background: var(--brand);
  display: flex; align-items: center; min-height: min(100svh, 860px);
  padding: calc(var(--nav-h) + clamp(1.5rem, 3vw, 2.5rem)) 0 clamp(3rem, 5vw, 4.5rem);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 70% at 86% 8%, rgba(132, 176, 255, 0.55), transparent 66%),
    radial-gradient(46% 58% at 0% 100%, rgba(10, 26, 110, 0.6), transparent 70%),
    radial-gradient(34% 40% at 58% 108%, rgba(251, 146, 60, 0.4), transparent 70%),
    linear-gradient(162deg, #3b74f2 0%, #2563eb 46%, #1d46c4 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; width: 100%; }
.hero-copy, .hero-visual { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.5rem;
  padding: 0.42rem 0.95rem 0.42rem 0.75rem; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2.4s var(--ease-soft) infinite; }
.hero-title {
  font-family: var(--sans); font-weight: 900; color: #fff; max-width: 11ch;
  font-size: min(10.4vw, 3.3rem); line-height: 0.95; letter-spacing: -0.055em; text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--pop); }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.9); max-width: 48ch; }
.hero-copy .btn-row { margin-top: 2rem; }
.hero-micro { margin-top: 1.1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.hero-micro svg { width: 15px; height: 15px; color: var(--pop); flex: none; }
.hero-micro a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .hero-title { font-size: clamp(3.3rem, 6.4vw, 4.4rem); } }
@media (min-width: 960px) { .hero-title { font-size: clamp(3.9rem, 5.9vw, 6.3rem); max-width: 9.6ch; } .hero-copy .btn-row { margin-top: 2.3rem; } }

/* Escena del héroe: móvil + ficha de valoración */
.hero-visual { position: relative; display: grid; place-items: center; }
.halo { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 120, 0.42), rgba(255, 190, 120, 0) 62%); filter: blur(14px); pointer-events: none; }
.hero-stage { position: relative; width: 100%; max-width: 31rem; }
.phone {
  display: none; position: absolute; right: 0; top: 0; z-index: 1; width: 250px; padding: 9px; border-radius: 52px;
  background: linear-gradient(145deg, #3a3f52, #0e1120 58%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 50px 90px -40px rgba(4, 14, 70, 0.8);
  transform: rotate(4deg);
}
.phone-screen { position: relative; width: 100%; aspect-ratio: 1320 / 2868; border-radius: 43px; overflow: hidden; background: #f4f6fa; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 32%); }

/* Ficha de valoración */
.libcard {
  position: relative; z-index: 2; width: 100%; padding: 2.1rem 1.7rem 1.6rem; border-radius: 22px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -36px rgba(4, 14, 70, 0.7), 0 2px 0 rgba(27, 34, 54, 0.03); overflow: hidden;
}
.libcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: linear-gradient(90deg, var(--blue) 0 52%, var(--yellow) 52% 64%, var(--red) 64% 76%, var(--green) 76% 88%, var(--purple) 88% 100%);
}
.libcard-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.3rem; }
.libcard-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--sky); color: var(--blue-deep); flex: none; }
.libcard-ico svg { width: 22px; height: 22px; }
.libcard-head b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.libcard-head span { font-size: 0.86rem; color: var(--mute); }
.score { display: flex; align-items: flex-end; gap: 1.1rem; }
.score-num { font-weight: 900; font-size: clamp(3.8rem, 9vw, 5.2rem); line-height: 0.9; letter-spacing: -0.07em; }
.score-side { padding-bottom: 0.35rem; }
.score-count { margin-top: 0.35rem; font-size: 0.9rem; color: var(--mute); }
.bars { margin-top: 1.4rem; display: grid; gap: 0.5rem; }
.bar { display: grid; grid-template-columns: 1.1rem 1fr 2rem; align-items: center; gap: 0.7rem; font-size: 0.84rem; color: var(--ink-soft); }
.bar-track { height: 8px; border-radius: 999px; background: var(--sky); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width 0.9s var(--ease-out) 0.15s; }
.bar b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.libcard-foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; line-height: 1.5; color: var(--mute); }
.libcard.is-empty .score-num { color: #c3cadb; }
.libcard.is-empty .bar-fill { width: 0 !important; }
.libcard.is-empty .bars { opacity: 0.55; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .hero-stage { min-height: 560px; display: flex; align-items: flex-end; }
  .phone { display: block; }
  .libcard { width: min(21.5rem, 82%); margin-bottom: 1.2rem; }
}

/* Estrellas */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
.stars .off { color: #d9deea; }
.stars.lg svg { width: 24px; height: 24px; }

/* 8. Cinta oscura */
.marquee { position: relative; overflow: hidden; background: var(--night); color: rgba(255, 255, 255, 0.88); padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track ul { display: flex; align-items: center; }
.marquee-track li { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.marquee-track li::after { content: ""; width: 9px; height: 22px; border-radius: 2px; background: var(--yellow); }
.marquee-track li:nth-child(4n+2)::after { background: var(--red); }
.marquee-track li:nth-child(4n+3)::after { background: var(--green); }
.marquee-track li:nth-child(4n+4)::after { background: var(--purple); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 9. Reseñas */
.section { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); }
.section-head { max-width: 740px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .kicker { margin-bottom: 1.1rem; }
.section-head .lead { margin-top: 1.1rem; }

.wall { display: flex; gap: 1.25rem; align-items: flex-start; }
.wall-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.rev {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  animation: rise 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms);
}
@media (hover: hover) and (pointer: fine) { .rev:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); } }
.rev-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; font-weight: 700; font-size: 1rem; color: var(--white); background: var(--blue); }
.avatar.c1 { background: var(--blue); } .avatar.c2 { background: var(--red); } .avatar.c3 { background: var(--green); } .avatar.c4 { background: var(--purple); } .avatar.c5 { background: #d99a12; }
.rev-who b { display: block; font-size: 0.98rem; line-height: 1.25; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.rev-who time { font-size: 0.82rem; color: var(--mute); }
.rev-title { margin-top: 0.85rem; font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.03em; }
.rev-body { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.99rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.rev-body.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.more { margin-top: 0.5rem; padding: 0.4rem 0; min-height: 40px; font-size: 0.9rem; font-weight: 600; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.rev-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.8rem; color: var(--mute); }
.rev-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.rev-meta svg { width: 14px; height: 14px; }
.store-tag { padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--sky); color: var(--blue-ink); font-weight: 600; letter-spacing: 0.01em; }
.rev-reply { margin-top: 1.1rem; padding: 0.95rem 1.05rem; border-radius: 14px; background: var(--sky); border-left: 3px solid var(--blue); font-size: 0.92rem; color: var(--ink-soft); }
.rev-reply b { display: block; margin-bottom: 0.25rem; font-size: 0.82rem; color: var(--blue-ink); }
.rev-reply p { white-space: pre-line; overflow-wrap: anywhere; }

/* Estado vacío / error */
.empty {
  display: grid; gap: 1.4rem; justify-items: center; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1.5px dashed var(--line-strong); border-radius: 28px; background: var(--mist);
}
.spines { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.spines i { display: block; width: 18px; border-radius: 4px 4px 2px 2px; transform-origin: bottom; animation: spine 3.6s var(--ease-soft) infinite; }
.spines i:nth-child(1) { height: 54px; background: var(--blue); }
.spines i:nth-child(2) { height: 72px; background: var(--yellow); animation-delay: 0.2s; }
.spines i:nth-child(3) { height: 60px; background: var(--red); animation-delay: 0.4s; }
.spines i:nth-child(4) { height: 68px; background: var(--green); animation-delay: 0.6s; }
.spines i:nth-child(5) { height: 50px; background: var(--purple); animation-delay: 0.8s; }
.empty h3 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.035em; }
.empty p { max-width: 46ch; color: var(--ink-soft); }
.skeleton { height: 220px; border-radius: var(--radius); background: linear-gradient(100deg, var(--mist) 30%, #fff 50%, var(--mist) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 1.25rem; }
.skeleton:nth-child(2) { height: 260px; } .skeleton:nth-child(3) { height: 190px; }

/* Preguntas frecuentes */
.faq { background: var(--mist); }
.faq-wrap { display: grid; gap: 2rem; max-width: 860px; margin-inline: auto; }
.faq-list { display: grid; gap: 0.7rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.2rem; transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; letter-spacing: -0.01em; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 0.2rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--blue-deep); border-bottom: 2px solid var(--blue-deep); translate: 0 -70%; rotate: 45deg; transition: rotate 0.25s var(--ease-out); }
.faq-item[open] summary::after { rotate: 225deg; translate: 0 -30%; }
.faq-item p { padding-bottom: 1.15rem; color: var(--ink-soft); font-size: 0.98rem; }

/* Banda final azul */
.band { position: relative; overflow: clip; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4.5rem, 9vw, 7rem); background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); }
.band::before { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; z-index: -1; background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--purple) 75% 100%); }
.band::after { content: ""; position: absolute; z-index: -1; width: 60vw; aspect-ratio: 1; right: -15vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%); }
.band h2 { font-weight: 900; font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -0.05em; line-height: 0.98; max-width: 14ch; margin-inline: auto; }
.band h2 em { font-style: normal; color: var(--pop); }
.band p { margin: 1.3rem auto 0; max-width: 46ch; color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }
.band .btn-row { justify-content: center; margin-top: 2.2rem; }

/* Pie */
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-brand .logo { color: var(--ink); }
.footer-brand p { margin-top: 1rem; max-width: 36ch; color: var(--mute); font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-col h2 { font-size: 0.86rem; font-weight: 650; letter-spacing: 0; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; font-size: 0.95rem; }
.footer-col a, .footer-col .linklike { color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover, .footer-col .linklike:hover { color: var(--blue-deep); }
.footer-bottom { margin-top: clamp(2.2rem, 5vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.84rem; line-height: 1.55; color: var(--mute); max-width: 70ch; }
.linklike { font: inherit; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }

/* Aviso de cookies: discreto, abajo a la izquierda, no tapa la portada (como en lectorapp.es) */
.cookie-bar {
  position: fixed; z-index: 95; left: max(0.75rem, env(safe-area-inset-left, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); width: min(372px, calc(100vw - 1.5rem));
  padding: 0.85rem 0.95rem 0.9rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 16px 40px -14px rgba(10, 20, 60, 0.4); font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.65rem; }
.cookie-btns .btn { width: 100%; min-height: 40px; padding-block: 0.35rem; font-size: 0.86rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.cookie-btns .btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.cookie-btns .btn[data-consent="accept"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cookie-btns .btn[data-consent="accept"]:hover { background: #10152a; color: #fff; border-color: #10152a; }
@media (max-width: 539px) {
  .cookie-bar { left: 0.5rem; right: 0.5rem; width: auto; padding: 0.7rem 0.8rem 0.75rem; font-size: 0.76rem; }
  .cookie-bar p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Páginas de texto (cookies) */
.doc { padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 7vw, 5rem); }
.doc .narrow { max-width: 760px; }
.doc h1 { font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.05em; line-height: 1; }
.doc h2 { margin-top: 2.2rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.doc p, .doc li { margin-top: 0.8rem; color: var(--ink-soft); }
.doc a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.93rem; }
.doc th, .doc td { text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); }
.doc .btn { margin-top: 1.4rem; }

/* 10. Animaciones */
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spine { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.06); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 11. Responsive */
@media (min-width: 900px) { .nav-link { display: inline; } }
@media (max-width: 420px) { .logo small { display: none; } .nav .btn { padding-inline: 0.9rem; } }

/* 12. Movimiento reducido: solo efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill .dot, .spines i, .skeleton { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
