/* =====================================================
   125 LUCES DEL RCD ESPANYOL — EL ADN DEL PIONERO
   Diseño editorial cinematográfico premium · blanquiazul
   ===================================================== */

/* ---------- TOKENS ---------- */
:root {
  --azul-tinta: #06132E;       /* azul Espanyol llevado a tinta editorial */
  --azul-profundo: #0A1A3F;
  --azul-medio: #133066;
  --azul-vivo: #1E5BB5;        /* blanquiazul vivo */
  --azul-claro: #6FA9E8;
  --marfil: #F4EFE6;           /* blanco roto editorial */
  --marfil-suave: #ECE5D7;
  --crema: #DCC9A4;
  --oro: #C9A36A;              /* acento dorado patinado */
  --oro-claro: #E2C28A;
  --negro: #050913;
  --gris: #8A95AB;

  --bg: var(--azul-tinta);
  --fg: var(--marfil);
  --fg-muted: rgba(244, 239, 230, 0.62);
  --line: rgba(244, 239, 230, 0.12);

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern', 'liga', 'calt';
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
ul { list-style: none; }
::selection { background: var(--oro); color: var(--negro); }

/* ---------- TIPOGRAFÍA ---------- */
.h-display, .hero__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--marfil);
}
.h-display {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  font-weight: 500;
}
.italic { font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oro);
  display: inline-block;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--oro);
}
.eyebrow--center { padding-left: 0; }
.eyebrow--center::before { display: none; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(244, 239, 230, 0.85);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section__head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__head .eyebrow { margin-bottom: 20px; }
.section__sub {
  margin-top: 24px;
  color: var(--fg-muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  max-width: 600px;
}
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/* ---------- FILM GRAIN ---------- */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.45s var(--easing);
  background: linear-gradient(to bottom, rgba(6, 19, 46, 0.85), rgba(6, 19, 46, 0));
}
.nav.is-scrolled {
  padding: 14px 0;
  background: rgba(6, 19, 46, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #F4EFE6;
  color: #06132E !important;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  position: relative;
  flex-shrink: 0;
}
.nav__brand-mark::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--oro);
  border-radius: 50%;
  opacity: 0.6;
}
.nav__brand-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--marfil);
}
.nav__menu {
  display: flex;
  gap: 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.nav__menu a {
  position: relative;
  color: rgba(244, 239, 230, 0.72);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--oro);
  transition: width 0.4s var(--easing);
}
.nav__menu a:hover { color: var(--marfil); }
.nav__menu a:hover::after { width: 100%; }

.nav__cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--oro);
  color: var(--oro);
  border-radius: 999px;
  transition: all 0.35s var(--easing);
}
.nav__cta:hover {
  background: var(--oro);
  color: var(--azul-tinta);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  width: 22px;
  height: 1.4px;
  background: var(--marfil);
  transition: all 0.3s var(--easing);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, var(--azul-tinta) 0%, var(--azul-profundo) 100%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: calc(92px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--easing), transform 0.45s var(--easing), visibility 0.45s var(--easing);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__mobile nav {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.nav__mobile nav a {
  display: block;
  padding: 16px 8px;
  font-size: clamp(18px, 5vw, 22px);
  color: var(--marfil);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
  transition: color 0.3s var(--easing), background 0.3s var(--easing), padding-left 0.3s var(--easing);
}
.nav__mobile nav a:first-child {
  border-top: 1px solid rgba(244, 239, 230, 0.08);
}
.nav__mobile nav a:active,
.nav__mobile nav a:hover {
  color: var(--oro);
  background: rgba(201, 163, 106, 0.05);
}
.nav__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 8px;
  padding: 16px 32px;
  border: 1px solid var(--oro);
  background: linear-gradient(135deg, var(--oro) 0%, var(--oro-claro) 50%, var(--oro) 100%);
  color: var(--azul-tinta);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  box-shadow: 0 14px 32px -12px rgba(201, 163, 106, 0.55);
}

/* Móviles muy pequeños (≤ 360px): items más compactos */
@media (max-width: 360px) {
  .nav__mobile { padding-top: 84px; }
  .nav__mobile nav a { padding: 13px 6px; font-size: 17px; }
  .nav__mobile-cta { padding: 14px 26px; font-size: 11px; letter-spacing: 0.14em; }
}

/* Si el alto es muy bajo (móvil en horizontal), reducir aún más */
@media (max-height: 600px) and (max-width: 880px) {
  .nav__mobile { padding-top: 76px; padding-bottom: 24px; }
  .nav__mobile nav a { padding: 11px 6px; font-size: 16px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s var(--easing);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--oro) 0%, var(--oro-claro) 50%, var(--oro) 100%);
  background-size: 200% 200%;
  color: var(--azul-tinta);
  box-shadow: 0 14px 40px -14px rgba(201, 163, 106, 0.7);
}
.btn--gold:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgba(201, 163, 106, 0.9);
}
.btn--gold svg { transition: transform 0.4s var(--easing); }
.btn--gold:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--marfil);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--marfil);
  background: rgba(244, 239, 230, 0.04);
}
.btn--text {
  padding: 12px 0;
  color: var(--oro);
  font-size: 12px;
}
.btn--text:hover { color: var(--oro-claro); }
.btn--block { width: 100%; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-image {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(30, 91, 181, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 163, 106, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--azul-tinta) 0%, var(--azul-profundo) 50%, #050913 100%);
  /* Cuando guardes assets/img/hero-fondo.jpg, descomenta:
     background-image: url('../img/hero-fondo.jpg');
     background-size: cover;
     background-position: center;
     filter: brightness(0.55) saturate(1.05);
  */
}
.hero__bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(5, 9, 19, 0.85) 100%),
    linear-gradient(to top, var(--azul-tinta) 0%, transparent 25%);
}
.hero__bg-light {
  position: absolute;
  top: -10%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at center, rgba(201, 163, 106, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  animation: floatLight 18s ease-in-out infinite alternate;
}
@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-40px, 60px) scale(1.1); opacity: 1; }
}
.hero__bg-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 18px,
    rgba(244, 239, 230, 0.018) 18px,
    rgba(244, 239, 230, 0.018) 19px
  );
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
.hero__copy { max-width: 640px; }
.hero__copy .eyebrow { margin-bottom: 26px; }

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  font-weight: 500;
  margin-bottom: 28px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.78);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__sub strong { color: var(--marfil); font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero__meta > div:not(.sep) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__meta .num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  color: var(--marfil);
  font-weight: 400;
  line-height: 1;
}
.hero__meta .lbl {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero__meta .sep {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--oro), transparent);
  animation: scrollLine 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ BOOK 3D ============ */
.hero__book {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1600px;
}
.book3d {
  position: relative;
  width: clamp(220px, 26vw, 340px);
  aspect-ratio: 2/3;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform 0.8s var(--easing);
  animation: bookFloat 6s ease-in-out infinite alternate;
}
@keyframes bookFloat {
  0% { transform: rotateY(-22deg) rotateX(4deg) translateY(0); }
  100% { transform: rotateY(-18deg) rotateX(2deg) translateY(-12px); }
}
.book3d:hover {
  transform: rotateY(-12deg) rotateX(2deg);
}
.book3d__cover {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(135deg, var(--azul-vivo) 0%, var(--azul-medio) 50%, #0d2350 100%);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  z-index: 3;
}
.book3d__cover-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Cuando guardes assets/img/portada-125-luces-rcd-espanyol.jpg:
     background-image: url('../img/portada-125-luces-rcd-espanyol.jpg');
     Esto sobreescribe el fallback automáticamente.
  */
}
.book3d__cover-fallback {
  position: absolute;
  inset: 0;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  color: var(--marfil);
  background: linear-gradient(160deg, var(--azul-vivo) 0%, #0c2557 100%);
}
.book3d__cover-edition {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.book3d__cover-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.book3d__cover-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: auto;
}
.book3d__cover-helix {
  position: absolute;
  right: -10%;
  bottom: 0;
  width: 80%;
  height: 60%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.22) 0,
      rgba(255,255,255,0.22) 3px,
      transparent 3px,
      transparent 12px
    );
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  opacity: 0.55;
  filter: blur(0.4px);
}
.book3d__cover-author {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.92;
}
.book3d__cover-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 4;
}
.book3d__pages {
  position: absolute;
  top: 6px; bottom: 6px;
  right: -1px;
  width: 22px;
  background: repeating-linear-gradient(
    90deg,
    #ece4cf 0,
    #ece4cf 1px,
    #d6cdb3 1px,
    #d6cdb3 2px
  );
  transform: translateZ(-12px);
  border-radius: 0 4px 4px 0;
  z-index: 1;
}
.book3d__spine {
  position: absolute;
  left: -1px;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to right, #061535, #0e2655);
  border-radius: 4px 0 0 4px;
  z-index: 2;
}
.book3d__shadow {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -28px;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

/* ============ STRIP ============ */
.strip {
  background: var(--marfil);
  color: var(--azul-tinta);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.strip__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: strip 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
}

@keyframes strip {
  to { transform: translateX(-50%); }
}

/* ============ BOOK SECTION ============ */
.book {
  background: linear-gradient(180deg, var(--azul-tinta) 0%, var(--azul-profundo) 100%);
}
.book__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.book__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}
.book__frame {
  position: relative;
  width: clamp(260px, 32vw, 440px);
  aspect-ratio: 2/3;
  transform: rotate(-2deg);
  transition: transform 0.8s var(--easing);
}
.book__frame:hover { transform: rotate(0); }
.book__cover-large {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--azul-vivo);
  border-radius: 4px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
  /* Cuando guardes la portada:
     background-image: url('../img/portada-125-luces-rcd-espanyol.jpg');
  */
}
.book__cover-fallback {
  position: absolute;
  inset: 0;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--azul-vivo) 0%, #0c2557 100%);
  color: var(--marfil);
}
.book__cover-fallback h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0 18px;
}
.book__cover-line {
  width: 56px;
  height: 1px;
  background: var(--marfil);
  opacity: 0.6;
  margin: 8px auto 22px;
}
.book__cover-title {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.book__cover-title span {
  display: block;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 4px;
  opacity: 0.95;
}
.book__cover-helix--big {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 24px 0 auto;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.18), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.24) 0,
      rgba(255,255,255,0.24) 4px,
      transparent 4px,
      transparent 14px
    );
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  opacity: 0.55;
}
.book__cover-foot {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.92;
}
.book__floor {
  position: absolute;
  bottom: -5%;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.book__copy .eyebrow { margin-bottom: 22px; }
.book__copy .h-display { margin-bottom: 28px; }
.book__copy .lead { margin-bottom: 32px; }

.book__bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(244, 239, 230, 0.85);
}
.book__bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.5;
}
.book__bullets span {
  color: var(--oro);
  font-size: 1.4rem;
  line-height: 1;
}
.book__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============ AUTHOR ============ */
.author {
  background: var(--azul-profundo);
  position: relative;
}
.author::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--oro), transparent);
  opacity: 0.4;
}
.author__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.author__copy .eyebrow { margin-bottom: 22px; }
.author__copy .h-display { margin-bottom: 36px; }
.author__bio {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.82);
  margin-bottom: 36px;
}
.author__bio strong { color: var(--marfil); font-weight: 500; }
.author__sign {
  margin-top: 8px;
  color: var(--oro);
  font-style: italic;
}
.author__quote {
  position: relative;
  padding: 28px 32px 28px 60px;
  background: rgba(244, 239, 230, 0.03);
  border-left: 2px solid var(--oro);
  border-radius: 0 6px 6px 0;
}
.author__quote .quotemark {
  position: absolute;
  top: -8px;
  left: 14px;
  font-family: var(--serif);
  font-size: 90px;
  line-height: 1;
  color: var(--oro);
  opacity: 0.6;
}
.author__quote blockquote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--marfil);
}

.author__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.author__portrait {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
}
.author__portrait-image {
  position: absolute;
  inset: 0;
  background-color: var(--azul-medio);
  background-size: cover;
  background-position: center 20%;
  filter: contrast(1.05) saturate(0.92);
  border-radius: 2px;
  overflow: hidden;
  /* Cuando guardes el retrato:
     background-image: url('../img/autor-josep-sanchez.jpg');
  */
}
.author__portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: rgba(244, 239, 230, 0.55);
  font-family: var(--sans);
  background:
    linear-gradient(135deg, #1a3470 0%, #0a1a3f 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 16px);
}
.author__portrait-fallback span {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.author__portrait-fallback small {
  font-size: 11px;
  opacity: 0.7;
  font-family: 'Courier New', monospace;
}
.author__portrait-frame {
  position: absolute;
  inset: -16px;
  border: 1px solid var(--oro);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.45;
}
.author__caption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--fg-muted);
}
.author__caption .line {
  width: 40px;
  height: 1px;
  background: var(--oro);
}
.author__caption p { line-height: 1.4; }
.author__caption em { color: var(--oro); font-style: italic; }

/* ============ LIGHTS ============ */
.lights {
  background: linear-gradient(180deg, var(--azul-profundo) 0%, var(--azul-tinta) 100%);
}
.lights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.light {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--easing);
}
.light::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--easing);
}
.light:hover {
  background: rgba(244, 239, 230, 0.025);
}
.light:hover::before {
  transform: scaleX(1);
}
.light__year {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--oro);
  margin-bottom: 14px;
}
.light__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--marfil);
  margin-bottom: 12px;
}
.light p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.lights__more {
  text-align: center;
  margin-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ============ QUOTES ============ */
.quotes {
  background: var(--azul-tinta);
  position: relative;
  overflow: hidden;
}
.quotes::before {
  content: '"';
  position: absolute;
  top: -120px;
  right: -40px;
  font-family: var(--serif);
  font-size: 600px;
  line-height: 1;
  color: var(--oro);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.quotes .container { position: relative; z-index: 1; }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.quote-card {
  position: relative;
  padding: 48px 40px 40px;
  background: linear-gradient(160deg, rgba(244, 239, 230, 0.04), rgba(244, 239, 230, 0.01));
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.5s var(--easing);
}
.quote-card:hover {
  border-color: var(--oro);
  transform: translateY(-6px);
}
.quote-card__mark {
  position: absolute;
  top: -8px;
  left: 24px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--oro);
  opacity: 0.5;
}
.quote-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--marfil);
  margin-bottom: 24px;
}
.quote-card footer {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
}

/* ============ SYNOPSIS ============ */
.synopsis {
  background: var(--azul-profundo);
}
.synopsis__inner {
  max-width: 820px;
}
.synopsis__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.85);
}
.synopsis__lead {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--marfil);
  font-weight: 400;
  line-height: 1.5;
}
.synopsis__close {
  margin-top: 16px;
  font-size: 1.3rem;
  color: var(--oro);
  font-style: italic;
}

/* ============ WHY ============ */
.why {
  background: linear-gradient(180deg, var(--azul-profundo) 0%, var(--azul-tinta) 100%);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.why-card {
  position: relative;
  padding: 40px 32px 36px;
  background: rgba(244, 239, 230, 0.025);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.5s var(--easing);
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 163, 106, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--easing);
  pointer-events: none;
}
.why-card:hover {
  border-color: var(--oro);
  transform: translateY(-4px);
}
.why-card:hover::after { opacity: 1; }
.why-card__num {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--oro);
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--marfil);
  margin-bottom: 12px;
  line-height: 1.2;
}
.why-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ============ REVIEWS ============ */
.reviews {
  background: var(--azul-tinta);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.review {
  padding: 32px 28px;
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s var(--easing);
}
.review:hover { border-color: var(--oro); }
.review__stars {
  color: var(--oro);
  font-size: 16px;
  letter-spacing: 0.1em;
}
.review blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--marfil);
  flex: 1;
}
.review footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.review footer strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--marfil);
}
.review footer span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============ GALLERY ============ */
.gallery {
  background: var(--azul-profundo);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.6s var(--easing);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #1a3470 0%, #0a1a3f 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 16px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 239, 230, 0.4);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: transform 0.8s var(--easing), filter 0.6s;
}
.gallery__img[style] span { display: none; }
.gallery__item:hover .gallery__img {
  transform: scale(1.06);
  filter: brightness(1.1);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 19, 46, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

/* ============ BUY ============ */
.buy {
  background: linear-gradient(180deg, var(--azul-profundo) 0%, #050913 100%);
  position: relative;
  overflow: hidden;
}
.buy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  width: 60%;
  height: 80%;
  transform: translateY(-50%);
  background: radial-gradient(circle at center, rgba(201, 163, 106, 0.1), transparent 60%);
  pointer-events: none;
}
.buy__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
}
.buy__visual {
  display: flex;
  justify-content: center;
}
.buy__book {
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 2/3;
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.6s var(--easing);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7);
}
.buy__book:hover { transform: rotate(0); }
.buy__book-cover {
  position: absolute;
  inset: 0;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--azul-vivo) 0%, #0c2557 100%);
  color: var(--marfil);
  border-radius: 4px;
  background-size: cover;
  /* background-image: url('../img/portada-125-luces-rcd-espanyol.jpg'); */
}
.buy__book-cover h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 4px 0 12px;
}

.buy__copy .eyebrow { margin-bottom: 22px; }
.buy__copy .h-display { margin-bottom: 24px; }
.buy__copy .lead { margin-bottom: 32px; max-width: 560px; }

.buy__price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.buy__price-old {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--fg-muted);
  text-decoration: line-through;
}
.buy__price-now {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--oro);
  font-weight: 500;
  line-height: 1;
}
.buy__price-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.buy__channels { max-width: 540px; }
.buy__channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.35s var(--easing);
}
.channel:hover {
  border-color: var(--oro);
  background: rgba(244, 239, 230, 0.06);
  transform: translateX(2px);
}
.channel__name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--marfil);
}
.channel__action {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
}

/* ============ CONTACT ============ */
.contact {
  background: var(--azul-tinta);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__copy .eyebrow { margin-bottom: 22px; }
.contact__copy .h-display { margin-bottom: 22px; }
.contact__copy .lead { margin-bottom: 36px; max-width: 460px; }
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact__list-lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
}
.contact__list a {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--marfil);
  transition: color 0.3s;
}
.contact__list a:hover { color: var(--oro); }

.contact__social {
  display: flex;
  gap: 22px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact__social a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.contact__social a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--oro);
  transition: width 0.4s var(--easing);
}
.contact__social a:hover { color: var(--marfil); }
.contact__social a:hover::after { width: 100%; }

/* ============ FORM ============ */
.form {
  padding: 40px;
  background: rgba(244, 239, 230, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__row label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.form__row .opt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-muted);
}
.form__row input,
.form__row select,
.form__row textarea {
  padding: 14px 16px;
  background: rgba(6, 19, 46, 0.5);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--marfil);
  font-family: var(--serif);
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--oro);
  background: rgba(6, 19, 46, 0.75);
}
.form__row textarea { resize: vertical; min-height: 120px; font-family: var(--sans); font-size: 0.95rem; }
.form__row select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23C9A36A' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form__check input {
  margin-top: 3px;
  accent-color: var(--oro);
  width: 16px; height: 16px;
}
.form__check a { color: var(--oro); text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: #050913;
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F4EFE6;
  color: #06132E !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 2px rgba(201, 163, 106, 0.55);
}
.footer__brand-mark::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(201, 163, 106, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.footer__brand div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__brand strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--marfil);
  line-height: 1.1;
}
.footer__brand span {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 230, 0.7);
  line-height: 1.4;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__nav h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__nav a {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(244, 239, 230, 0.72);
  padding: 4px 0;
  transition: color 0.3s, padding-left 0.3s;
}
.footer__nav a:hover {
  color: var(--marfil);
  padding-left: 6px;
}

.footer__quote {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--oro);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ PAGE HEADER (subpages) ============ */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  background: linear-gradient(180deg, var(--azul-tinta) 0%, var(--azul-profundo) 100%);
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  width: 80vw; height: 80vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 163, 106, 0.08), transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  color: var(--marfil);
  margin: 22px 0 22px;
}
.page-hero h1 .italic { font-style: italic; }
.page-hero__lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.82);
  max-width: 640px;
  margin: 0 auto 32px;
}
.page-hero__actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--oro); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--oro-claro); }
.breadcrumbs span { opacity: 0.5; }

/* ============ ARTICLE / EDITORIAL BODY ============ */
.article {
  background: var(--azul-profundo);
  padding: clamp(60px, 8vw, 110px) 0;
}
.article__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--marfil);
  margin: 56px 0 18px;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--marfil);
  margin: 36px 0 14px;
}
.article p {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.82);
  margin-bottom: 20px;
}
.article p strong { color: var(--marfil); font-weight: 500; }
.article p em { color: var(--oro); font-style: italic; }
.article ul, .article ol {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.82);
  margin: 0 0 24px 22px;
}
.article ul { list-style: none; padding-left: 0; }
.article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.article ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: -4px;
  color: var(--oro);
  font-size: 1.6rem;
}
.article ol { list-style: decimal; padding-left: 22px; }
.article ol li { margin-bottom: 10px; }
.article a { color: var(--oro); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.3s; }
.article a:hover { color: var(--oro-claro); }
.article blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  background: rgba(244, 239, 230, 0.04);
  border-left: 2px solid var(--oro);
  border-radius: 0 6px 6px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--marfil);
}

/* CTA card inside article */
.article__cta {
  margin: 48px 0;
  padding: 36px 36px;
  background: linear-gradient(135deg, rgba(30, 91, 181, 0.18), rgba(201, 163, 106, 0.08));
  border: 1px solid rgba(201, 163, 106, 0.35);
  border-radius: 6px;
  text-align: center;
}
.article__cta h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--marfil);
  margin: 0 0 12px;
}
.article__cta p {
  font-size: 1.05rem;
  margin: 0 auto 20px;
  max-width: 520px;
  color: rgba(244, 239, 230, 0.85);
}

/* ============ FAQ ============ */
.faq {
  background: var(--azul-tinta);
  padding: clamp(70px, 9vw, 120px) 0;
}
.faq__inner { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.faq__list { margin-top: 40px; }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--marfil);
  font-weight: 500;
  line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  color: var(--oro);
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--easing);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.78);
}

/* ============ RELATED PAGES ============ */
.related {
  background: linear-gradient(180deg, var(--azul-profundo) 0%, var(--azul-tinta) 100%);
  padding: clamp(70px, 9vw, 120px) 0;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.related-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: rgba(244, 239, 230, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.4s var(--easing);
  text-decoration: none;
}
.related-card:hover {
  border-color: var(--oro);
  transform: translateY(-4px);
}
.related-card .eyebrow { margin-bottom: 14px; }
.related-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--marfil);
  margin-bottom: 10px;
  line-height: 1.2;
}
.related-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  flex: 1;
  line-height: 1.5;
}
.related-card__more {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
}

/* ============ BLOG INDEX ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.4s var(--easing);
}
.blog-card:hover { border-color: var(--oro); transform: translateY(-4px); }
.blog-card__cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 14px;
}
.blog-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--marfil);
  margin-bottom: 12px;
}
.blog-card p {
  font-size: 0.98rem;
  color: var(--fg-muted);
  flex: 1;
  line-height: 1.5;
}
.blog-card__more {
  margin-top: 20px;
  color: var(--oro);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ CONTACT PAGE STANDALONE ============ */
.contact-only .contact { background: var(--azul-tinta); padding-top: 60px; }

/* ============ BOTTOM BREADCRUMBS ============ */
.bottom-crumbs {
  background: #050913;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.bottom-crumbs .breadcrumbs {
  justify-content: center;
  text-align: center;
}

/* ============ WHATSAPP FLOAT — píldora editorial centrada ============ */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 15px;
  background: rgba(6, 19, 46, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  color: var(--marfil);
  border: 1px solid rgba(201, 163, 106, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 90;
  box-shadow:
    0 14px 38px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(244, 239, 230, 0.04) inset;
  transition: all 0.45s var(--easing);
}
.wa-float:hover {
  border-color: var(--oro);
  background: rgba(6, 19, 46, 0.92);
  color: var(--oro-claro);
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    0 22px 56px -16px rgba(201, 163, 106, 0.45),
    0 0 0 1px rgba(201, 163, 106, 0.25) inset;
}
.wa-float__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.28);
  animation: waLive 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes waLive {
  0%, 100% { box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.28); }
  50%      { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
}
.wa-float__icon { width: 14px; height: 14px; }
.wa-float__icon {
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s var(--easing);
}
.wa-float:hover .wa-float__icon {
  opacity: 1;
  transform: rotate(-6deg) scale(1.05);
}
.wa-float__label { line-height: 1; }

@media (max-width: 640px) {
  .wa-float {
    bottom: 14px;
    padding: 8px 14px 8px 12px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
    max-width: calc(100% - 24px);
  }
  .wa-float__icon { width: 13px; height: 13px; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title .line {
  opacity: 0;
  transform: translateY(60%);
  transition: opacity 0.9s var(--easing), transform 1s var(--easing);
}
.hero__title.is-visible .line:nth-child(1) { transition-delay: 0.1s; }
.hero__title.is-visible .line:nth-child(2) { transition-delay: 0.25s; }
.hero__title.is-visible .line:nth-child(3) { transition-delay: 0.4s; }
.hero__title.is-visible .line {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; padding-top: 60px; }
  .hero__book { order: -1; transform: scale(0.9); }
  .lights__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .related__grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .book__grid,
  .author__grid,
  .buy__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .author__grid { gap: 60px; }
  .author__visual { order: -1; }
  .buy__visual { order: -1; }
  .quotes__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero__title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { flex-wrap: wrap; gap: 16px; }
  .hero__meta .sep { display: none; }
  .hero__book { transform: scale(0.85); }
  .lights__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery__item--wide,
  .gallery__item--tall { grid-column: span 1; grid-row: span 1; }
  .form { padding: 28px 22px; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .book__cta .btn--gold { width: 100%; }
  .buy__channels-grid { grid-template-columns: 1fr; }
  .strip__track { font-size: 16px; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line { opacity: 1; transform: none; }
}
