/* ============================================
   SILAS DAKAR — SITE STYLES
   Paleta papel/tinta · Fraunces + Inter
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Forzar light mode: la paleta editorial crema/tinta no admite dark mode.
   Sin esto, Safari (iOS y macOS) y Chrome invierten fondos cuando el sistema
   está en oscuro, rompiendo completamente la legibilidad. */
:root {
  color-scheme: light only;
}

html {
  color-scheme: light only;
  background: #faf7f2;
}

:root {
  /* Paleta base — papel cálido + tinta */
  --paper: #faf7f2;
  --paper-soft: #f0ebe2;
  --paper-mute: #e6dfd2;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #6e6862;
  --muted-soft: #a09a92;
  --line: #d8d2c8;
  --line-strong: #c0b8aa;
  --accent: #8b3a2f;
  --accent-soft: #c4a888;

  /* Tipografías */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Animaciones */
  --shift: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--shift), color var(--shift);
}

/* Grain texture sutil — atmosférico */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--shift), border-color var(--shift);
}

.site-nav.scrolled {
  border-bottom-color: var(--line);
}

.site-nav.on-dark {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  border-bottom-color: transparent;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-signature {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover .nav-signature {
  opacity: 1;
}

/* Versión inversa de la firma para cuando el navbar esté sobre fondo oscuro.
   Como el PNG ya es negro puro con transparencia, invert(1) lo vuelve blanco
   sin afectar la zona transparente. */
.site-nav.on-dark .nav-signature {
  filter: invert(1);
  opacity: 0.9;
}

.foot-signature {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.nav-logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-nav.on-dark .nav-links a {
  color: rgba(250, 247, 242, 0.85);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-nav.on-dark .lang-toggle {
  border-color: rgba(250, 247, 242, 0.3);
  background: rgba(250, 247, 242, 0.08);
}

.lang-btn {
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--paper);
}

.site-nav.on-dark .lang-btn {
  color: rgba(250, 247, 242, 0.7);
}

.site-nav.on-dark .lang-btn.active {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================
   LAUNCH BANNER (cuenta regresiva)
   ============================================ */
.launch-banner {
  margin-top: 5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.2rem 3rem;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.launch-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent) 18%, transparent) 50%, transparent 100%);
  pointer-events: none;
}

.lb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.lb-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 280px;
}

.lb-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.lb-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--paper);
}

.lb-title strong { font-weight: 600; }
.lb-title em { font-style: italic; color: var(--accent-soft); }

.lb-date {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--paper-soft);
  letter-spacing: 0.05em;
}

.lb-countdown {
  display: flex;
  gap: 1.5rem;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.cd-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent-soft);
  line-height: 1;
}

.cd-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-soft);
  margin-top: 0.3rem;
}

.lb-alert {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lb-alert:hover {
  background: transparent;
  color: var(--accent-soft);
}

.launch-banner.hidden { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 5rem 3rem 4rem;
  position: relative;
  z-index: 5;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

.hero-name em {
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

.hero-subtagline {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

.hero-meta {
  display: flex;
  gap: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  justify-content: center;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.hero-meta-item strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.hero-meta-item span {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   SECTIONS — shared
   ============================================ */
.section {
  padding: 7rem 3rem;
  position: relative;
  z-index: 5;
}

.section-head {
  max-width: 1480px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: end;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
}

/* ============================================
   LAUNCH BLOCK — Inquietud + Las preguntas destacado
   ============================================ */
.launch-block {
  padding: 6rem 3rem 5rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  position: relative;
  z-index: 5;
}

.lb-head {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.lb-head .section-eyebrow {
  justify-content: center;
}

.lb-head .section-eyebrow::before,
.lb-head .section-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.lb-head .section-title {
  text-align: center;
  margin-top: 0.5rem;
}

.lb-pair {
  max-width: 1280px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.lb-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.5s var(--ease);
}

.lb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.lb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
}

.lb-card:hover::before { opacity: 0.4; }

.lb-cover-wrap {
  position: relative;
  aspect-ratio: 2/3;
}

.lb-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.18),
    0 10px 25px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.lb-card:hover .lb-cover {
  transform: scale(1.02) translateY(-4px);
  box-shadow:
    0 35px 70px rgba(0,0,0,0.22),
    0 15px 30px rgba(0,0,0,0.15);
}

.lb-flag {
  position: absolute;
  top: -1rem; left: -1rem;
  width: 52px; height: 52px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.lb-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.lb-meta {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.lb-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lb-desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.lb-actions {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lb-action-primary {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 1rem 2rem;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.lb-action-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lb-action-divider {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
}

.lb-action-date {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================
   LIBRARY — Carrusel horizontal
   ============================================ */
.library {
  background: var(--paper);
  padding-bottom: 4rem;
}

.library .section-head {
  margin-bottom: 2.5rem;
}

.library-carousel {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 4rem;
}

.lc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 1.5rem);
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lc-track::-webkit-scrollbar { display: none; }

.lc-card {
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.5s var(--ease);
}

.lc-card:hover {
  transform: translateY(-6px);
}

.lc-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.5s var(--ease);
}

.lc-card:hover .lc-cover {
  box-shadow:
    0 25px 60px rgba(0,0,0,0.22),
    0 10px 25px rgba(0,0,0,0.10);
}

.lc-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.lc-card:hover .lc-cover img {
  transform: scale(1.04);
}

.lc-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.lc-badge.new {
  background: var(--accent);
}

.lc-info {
  padding: 0 0.2rem;
}

.lc-meta {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.lc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  transition: color 0.4s ease;
}

.lc-card:hover .lc-title {
  color: var(--accent);
}

.lc-desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lc-explore {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.4s var(--ease);
}

.lc-card:hover .lc-explore {
  gap: 0.7rem;
}

.lc-arrow {
  position: absolute;
  top: 30%;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.lc-arrow svg { width: 18px; height: 18px; }

.lc-arrow:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.lc-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lc-arrow:disabled:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.lc-arrow-prev { left: 0; }
.lc-arrow-next { right: 0; }

.library-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.lc-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lc-indicator .lc-bar {
  width: 80px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.lc-indicator .lc-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s var(--ease), transform 0.4s var(--ease);
}

.see-all-link {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.see-all-link:hover {
  color: var(--ink);
}

/* ============================================
   ALL BOOKS PANEL (oculto por defecto, se muestra al click "Ver todos")
   ============================================ */
.all-books {
  display: none;
  padding: 5rem 3rem;
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.all-books.open { display: block; }

.all-books-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.ab-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.5s var(--ease);
}

.ab-card:hover {
  transform: translateY(-4px);
}

.ab-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.ab-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.ab-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 0.5rem;
}

.ab-meta {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   QUOTE BAND
   ============================================ */
.quote-band {
  padding: 8rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  position: relative;
  z-index: 5;
  transition: background var(--shift), border-color var(--shift);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 880px;
  margin: 0 auto 2rem;
}

.quote-attr {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================
   COMING SOON
   ============================================ */
.coming {
  background: var(--paper);
}

.coming-featured {
  max-width: 1480px;
  margin: 0 auto 4rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  padding: 3rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.featured-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--paper-mute);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.7s var(--ease);
}

.featured-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.featured-card:hover .featured-cover {
  transform: translateY(-4px);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.featured-when {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.featured-when .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.featured-genre {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.featured-title em { font-style: italic; color: var(--accent); }

.featured-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  white-space: pre-line;
}

.featured-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-top: 0.5rem;
}

/* Versión link: featured-card que es <a> */
.featured-card-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  cursor: pointer;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.featured-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.featured-card-link:hover .featured-cta {
  color: var(--accent);
  gap: 0.9rem;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1.5rem;
  transition: color 0.3s ease, gap 0.3s var(--ease);
}

.coming-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.coming-card {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.5s ease, transform 0.7s var(--ease);
}

.coming-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.coming-when {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.coming-when .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.coming-genre {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 1.5rem;
}

.coming-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.coming-title em { font-style: italic; color: var(--accent); }

.coming-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--paper-soft);
}

.about-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-text p { margin-bottom: 1.4rem; }

.about-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 0.85;
  float: left;
  margin: 0.4rem 0.6rem 0 0;
  color: var(--accent);
}

.about-text strong {
  color: var(--ink);
  font-weight: 500;
}

.about-platforms {
  display: flex;
  gap: 0.8rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.platform-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* Retrato del autor */
.about-portrait {
  position: sticky;
  top: 6rem;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 1;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.6s ease;
}

.portrait-frame:hover img {
  filter: grayscale(85%) contrast(1.08);
}

/* Placeholder cuando no hay foto */
.portrait-frame.placeholder::before {
  content: '';
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(135deg, transparent 0%, transparent 49%, var(--line) 50%, transparent 51%, transparent 100%),
    linear-gradient(45deg, transparent 0%, transparent 49%, var(--line) 50%, transparent 51%, transparent 100%),
    var(--paper-mute);
  background-size: 100% 100%;
}

.portrait-frame.placeholder::after {
  content: 'retrato pendiente';
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper-mute) 85%, transparent);
}

.portrait-caption {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
  padding: 0 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-foot {
  padding: 4rem 3rem 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.foot-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.foot-brand .nav-logo {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 1rem;
}

.foot-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 320px;
}

.foot-col h5 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.foot-col a {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

.foot-col a:hover { color: var(--accent); }

.foot-rights {
  max-width: 1480px;
  margin: 2rem auto 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted-soft);
  text-align: center;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--paper);
  max-width: 480px;
  width: 100%;
  padding: 3rem 2.5rem 2rem;
  position: relative;
  border-top: 3px solid var(--accent);
  animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover { color: var(--accent); }

.modal-header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.modal-header h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.modal-header h3 em {
  font-style: italic;
  color: var(--accent);
}

.modal-header p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Alert form */
.alert-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.alert-form input {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}

.alert-form input:focus {
  border-color: var(--accent);
}

.alert-form button {
  padding: 1rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.alert-form button:hover {
  background: var(--accent);
}

.alert-success {
  padding: 1.2rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
}

.alert-note {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted-soft);
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* Buy modal */
.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section-title {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.store-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--paper-soft);
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid var(--line);
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.store-link:hover {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--paper-soft));
}

.store-link .arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-meta { gap: 2.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .lb-pair { grid-template-columns: 1fr; }
  .lb-card { grid-template-columns: 0.7fr 1fr; }
  .lc-track { grid-auto-columns: calc(33.333% - 1.5rem); }
  .featured-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-portrait { position: static; max-width: 360px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0.8rem 1.2rem; }
  .nav-links { display: none; }
  .nav-signature { height: 28px; }

  /* BANNER cuenta regresiva: más compacto */
  .launch-banner { padding: 0.8rem 1.2rem; margin-top: 4rem; }
  .lb-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .lb-text { gap: 0.1rem; }
  .lb-eyebrow { font-size: 0.55rem; }
  .lb-title { font-size: 1rem; }
  .lb-date { font-size: 0.7rem; }
  .lb-countdown { gap: 0.8rem; }
  .cd-num { font-size: 1.2rem; }
  .cd-label { font-size: 0.5rem; }
  .cd-unit { min-width: 40px; }
  .lb-alert { padding: 0.6rem 1rem; font-size: 0.65rem; }

  /* HERO: muy compacto en móvil */
  .hero { padding: 2rem 1.2rem 1.5rem; }
  .hero-name { font-size: clamp(2.4rem, 12vw, 3.4rem); margin-bottom: 0.7rem; }
  .hero-eyebrow { margin-bottom: 0.6rem; font-size: 0.55rem; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 24px; }
  .hero-tagline { font-size: 1rem; margin-bottom: 0.5rem; }
  .hero-subtagline { font-size: 0.78rem; margin-bottom: 1.2rem; }
  .hero-meta { gap: 1.2rem; padding-top: 1rem; }
  .hero-meta-item strong { font-size: 1.4rem; }
  .hero-meta-item span { font-size: 0.5rem; letter-spacing: 0.15em; }

  /* SECCIONES generales: padding reducido */
  .section { padding: 2.5rem 1.2rem; }
  .section-head { margin-bottom: 1.5rem; gap: 0.8rem; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section-intro { font-size: 1rem; line-height: 1.4; }
  .section-eyebrow { font-size: 0.6rem; margin-bottom: 0.5rem; }

  /* LANZAMIENTO: portadas más controladas, menos vacío */
  .launch-block { padding: 2.5rem 1.2rem 2rem; }
  .lb-head { margin-bottom: 1.5rem; }
  .lb-head .section-title { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .lb-pair { gap: 1.2rem; margin-bottom: 1.5rem; }
  .lb-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .lb-cover-wrap { max-width: 52%; margin: 0 auto; }
  .lb-flag { width: 38px; height: 38px; font-size: 1rem; top: -0.6rem; left: -0.6rem; }
  .lb-meta { font-size: 0.55rem; }
  .lb-title { font-size: 1.3rem; }
  .lb-desc { font-size: 0.9rem; line-height: 1.4; }
  .lb-actions { flex-direction: column; gap: 0.8rem; }
  .lb-action-divider { display: none; }
  .lb-action-primary { padding: 0.8rem 1.6rem; font-size: 0.7rem; }
  .lb-action-date { font-size: 0.7rem; }

  /* BIBLIOTECA: introducción más breve, ir al carrusel rápido */
  .library { padding-bottom: 2rem; }
  .library .section-head { margin-bottom: 1.2rem; }
  .library .section-intro { display: none; } /* En móvil, el texto largo se omite — basta el título */
  .library-carousel { padding: 0 1.2rem; }
  .lc-track { grid-auto-columns: 85%; padding-right: 15%; gap: 1.2rem; padding-top: 0.5rem; padding-bottom: 1rem; }
  .lc-card { gap: 0.8rem; }
  .lc-arrow { display: none; }
  .lc-title { font-size: 1.15rem; }
  .lc-desc { font-size: 0.82rem; -webkit-line-clamp: 2; }
  .library-footer { padding: 0 1.2rem; flex-direction: row; gap: 1rem; align-items: center; justify-content: space-between; }
  .lc-indicator { font-size: 0.6rem; }
  .lc-indicator .lc-bar { width: 50px; }
  .see-all-link { font-size: 0.65rem; }

  /* CITA: mucho más compacta */
  .quote-band { padding: 2.5rem 1.2rem; }
  .quote-mark { font-size: 3.5rem; margin-bottom: 0.5rem; }
  .quote-text { font-size: 1.1rem; line-height: 1.4; margin-bottom: 1rem; }
  .quote-attr { font-size: 0.6rem; }

  /* PRÓXIMAMENTE / Gotas: presente pero compacto */
  .coming { padding: 2.5rem 1.2rem; }
  .coming-featured { margin-bottom: 1.5rem; }
  .featured-card { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.2rem; }
  .featured-cover { max-width: 60%; margin: 0 auto; }
  .featured-title { font-size: 1.8rem; }
  .featured-text { font-size: 0.92rem; line-height: 1.4; }
  .featured-when, .featured-genre { font-size: 0.6rem; }

  /* AUTOR: foto más pequeña, texto compacto */
  .about { padding: 2.5rem 1.2rem; }
  .about-grid { gap: 2rem; }
  .about-text { font-size: 1rem; line-height: 1.55; }
  .about-text p { margin-bottom: 0.9rem; }
  .about-text p:first-of-type::first-letter { font-size: 3.5rem; margin: 0.3rem 0.4rem 0 0; }
  .about-portrait { max-width: 220px; margin: 0 auto; }
  .portrait-frame { padding: 8px; }
  .portrait-frame::before { inset: 4px; }
  .portrait-caption { font-size: 0.55rem; margin-top: 0.7rem; }
  .about-platforms { gap: 0.5rem; margin-top: 1.5rem; }
  .platform-chip { padding: 0.5rem 0.9rem; font-size: 0.55rem; }

  /* FOOTER compacto */
  .site-foot { padding: 1.8rem 1.2rem 1rem; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.2rem; padding-bottom: 1.2rem; }
  .foot-brand { margin-bottom: 0.3rem; }
  .foot-signature { height: 36px; margin-bottom: 0.5rem; }
  .foot-tagline { font-size: 0.82rem; line-height: 1.4; }
  .foot-col h5 { margin-bottom: 0.5rem; font-size: 0.6rem; }
  .foot-col a { padding: 0.18rem 0; font-size: 0.8rem; }
  .foot-rights { font-size: 0.6rem; margin-top: 0.8rem; }
}
