/* ============================================================
   MATHMIND — HOJA DE ESTILOS PRINCIPAL
   Archivo: css/styles.css
   Descripción: Estilos personalizados para la landing page del
   libro MathMind. Incluye variables de tema, layout, componentes,
   animaciones y utilidades.
============================================================ */

/* ============================================================
   VARIABLES CSS — TEMAS CLARO Y OSCURO
============================================================ */
:root {
  --bg-primary:       #f8f7ff;
  --bg-secondary:     #eef0fb;
  --bg-card:          rgba(255, 255, 255, 0.75);
  --bg-glass:         rgba(255, 255, 255, 0.6);
  --text-primary:     #0d0d2b;
  --text-secondary:   #4a4a7a;
  --text-muted:       #7b7ba8;
  --accent-1:         #5b4cff;   /* violeta índigo */
  --accent-2:         #ff6b35;   /* naranja energético */
  --accent-3:         #00c9a7;   /* verde teal */
  --accent-gold:      #f5c518;   /* dorado */
  --border:           rgba(91, 76, 255, 0.15);
  --shadow-sm:        0 4px 20px rgba(91, 76, 255, 0.08);
  --shadow-md:        0 8px 40px rgba(91, 76, 255, 0.14);
  --shadow-lg:        0 20px 60px rgba(91, 76, 255, 0.18);
  --navbar-bg:        rgba(248, 247, 255, 0.85);
  --gradient-hero:    linear-gradient(135deg, #5b4cff 0%, #a855f7 50%, #ec4899 100%);
  --gradient-card:    linear-gradient(135deg, rgba(91,76,255,0.06) 0%, rgba(168,85,247,0.06) 100%);
  --math-opacity:     0.06;
}

[data-theme="dark"] {
  --bg-primary:       #080818;
  --bg-secondary:     #0f0f2a;
  --bg-card:          rgba(20, 20, 50, 0.8);
  --bg-glass:         rgba(20, 20, 60, 0.6);
  --text-primary:     #e8e8ff;
  --text-secondary:   #a0a0d0;
  --text-muted:       #6060a0;
  --accent-1:         #7c6fff;
  --accent-2:         #ff8c60;
  --accent-3:         #00e4bc;
  --accent-gold:      #ffd700;
  --border:           rgba(124, 111, 255, 0.2);
  --shadow-sm:        0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-md:        0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg:        0 20px 60px rgba(0, 0, 0, 0.6);
  --navbar-bg:        rgba(8, 8, 24, 0.9);
  --gradient-hero:    linear-gradient(135deg, #3d2bff 0%, #7c3aed 50%, #c026d3 100%);
  --gradient-card:    linear-gradient(135deg, rgba(60,40,200,0.15) 0%, rgba(120,50,200,0.15) 100%);
  --math-opacity:     0.04;
}

/* ============================================================
   RESET Y BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ============================================================
   FONDO MATEMÁTICO DINÁMICO (canvas + símbolos flotantes)
============================================================ */
#math-bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--math-opacity);
}

/* ============================================================
   PRELOADER
============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-equation {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--accent-1);
  min-height: 2.5em;
  text-align: center;
  letter-spacing: 0.05em;
}

.preloader-progress {
  width: 220px;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-hero);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.preloader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar-custom {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.3s ease;
  padding: 0.8rem 0;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 2px;
  background: var(--accent-1);
  border-radius: 99px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link-custom:hover { color: var(--accent-1) !important; }
.nav-link-custom:hover::after { transform: scaleX(1); }

/* Botón toggle tema */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: rotate(20deg) scale(1.1);
}

.btn-navbar-cta {
  background: var(--gradient-hero);
  color: #fff !important;
  border: none;
  border-radius: 99px;
  padding: 0.45rem 1.2rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(91,76,255,0.35);
}

.btn-navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91,76,255,0.45);
  color: #fff !important;
}

/* ============================================================
   SECCIÓN HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(91,76,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(168,85,247,0.1) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .hero-bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(91,76,255,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(168,85,247,0.15) 0%, transparent 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-1);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s ease both;
  animation-delay: 0.3s;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.5s;
}

.hero-title .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.2rem;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.7s;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 0.9s;
}

.btn-hero-primary {
  background: var(--gradient-hero);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(91,76,255,0.4);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(91,76,255,0.5);
  color: #fff;
}

.btn-hero-primary:hover::before { opacity: 1; }

.btn-hero-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

.btn-preview-outline {
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 99px;
  padding: 0.9rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-preview-outline:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.78);
  transform: translateY(-2px);
}

/* Mockup del libro */
.book-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatBook 4s ease-in-out infinite, fadeZoomIn 1s ease both;
  animation-delay: 0s, 0.4s;
}

.book-mockup {
  width: clamp(240px, 38vw, 360px);
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.book-mockup:hover {
  transform: perspective(800px) rotateY(-8deg) rotateX(3deg) scale(1.04);
}

/* Libro SVG inline */
.book-svg-cover {
  width: clamp(240px, 38vw, 360px);
  border-radius: 16px;
  box-shadow:
    -8px 8px 30px rgba(0,0,0,0.3),
    -15px 15px 60px rgba(91,76,255,0.2);
  display: block;
}

/* Orbs decorativos alrededor del libro */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 200px; height: 200px;
  background: rgba(91,76,255,0.25);
  top: -40px; right: 20px;
  animation: orbPulse 5s ease-in-out infinite;
}

.hero-orb-2 {
  width: 150px; height: 150px;
  background: rgba(168,85,247,0.2);
  bottom: 20px; left: 30px;
  animation: orbPulse 6s ease-in-out infinite reverse;
}

/* Chips de estadísticas hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.5rem;
  animation: fadeSlideUp 0.9s ease both;
  animation-delay: 1.1s;
}

.hero-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
}

.hero-stat-chip .stat-num {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-1);
}

.hero-stat-chip .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   SECCIÓN SOBRE EL LIBRO
============================================================ */
#sobre {
  padding: 7rem 0;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.benefit-item:last-child { border-bottom: none; }

.benefit-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-1);
}

.benefit-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.benefit-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Tarjeta glassmorphism */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   SECCIÓN CONTENIDO MATEMÁTICO
============================================================ */
#contenido {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#contenido::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,201,167,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.math-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.math-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.math-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-1);
}

.math-card:hover::before { opacity: 1; }

.math-card-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

.math-card h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}

.math-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent-1);
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin-top: 0.7rem;
  border: 1px solid var(--border);
  position: relative; z-index: 1;
}

/* ============================================================
   SECCIÓN CARACTERÍSTICAS
============================================================ */
#caracteristicas {
  padding: 7rem 0;
  position: relative;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  height: 100%;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91,76,255,0.3);
}

.feature-card:hover::after { transform: scaleX(1); }

.feature-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 1.2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 6px 20px rgba(91,76,255,0.3);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(91,76,255,0.45);
}

.feature-card h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   SECCIÓN TESTIMONIOS
============================================================ */
#testimonios {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 40%, rgba(91,76,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(255,107,53,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91,76,255,0.3);
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-1);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.4rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stars { color: var(--accent-gold); font-size: 0.85rem; margin-bottom: 0.8rem; }

/* ============================================================
   SECCIÓN AUTOR
============================================================ */
.author-portrait-shell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}

.author-portrait-card {
  position: relative;
  width: min(100%, 520px);
  padding: 0;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.author-portrait-aura {
  position: absolute;
  inset: 10% 14% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.30), rgba(91,76,255,0.16) 45%, rgba(255,107,53,0.08) 62%, transparent 76%);
  filter: blur(28px);
  transform: translateZ(10px);
  pointer-events: none;
}

.author-portrait-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 18px rgba(255,255,255,0.20))
    drop-shadow(0 18px 28px rgba(91,76,255,0.20))
    drop-shadow(0 30px 34px rgba(10, 14, 35, 0.34));
  transform: translateZ(34px) scale(1.03);
}

.author-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
}

.author-orb-1 {
  width: 180px;
  height: 180px;
  top: 12%;
  left: 4%;
  background: rgba(91,76,255,0.22);
  animation: orbPulse 5.8s ease-in-out infinite;
}

.author-orb-2 {
  width: 140px;
  height: 140px;
  right: 6%;
  bottom: 10%;
  background: rgba(255,107,53,0.18);
  animation: orbPulse 6.2s ease-in-out infinite reverse;
}

.author-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.author-timeline-card {
  padding: 2.2rem;
}

.author-bio-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.author-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.author-inline-name {
  color: var(--text-primary);
}

.author-timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.author-timeline::before {
  content: "";
  position: absolute;
  left: 84px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(91,76,255,0.9), rgba(168,85,247,0.35));
}

.author-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 1.15rem;
  align-items: start;
  transition: transform 0.28s ease;
}

.author-timeline-item::after {
  content: "";
  position: absolute;
  left: 78px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 6px rgba(91,76,255,0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.author-timeline-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(91,76,255,0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.author-timeline-content {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem 1.15rem;
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.author-timeline-content h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.author-timeline-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

.author-timeline-item:hover {
  transform: translateX(6px);
}

.author-timeline-item:hover::after {
  transform: scale(1.18);
  background: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(255,107,53,0.16);
}

.author-timeline-item:hover .author-timeline-year {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 30px rgba(91,76,255,0.28);
  filter: saturate(1.08);
}

.author-timeline-item:hover .author-timeline-content {
  transform: translateY(-4px);
  border-color: rgba(91,76,255,0.28);
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(91,76,255,0.05));
  box-shadow: 0 18px 34px rgba(10,14,35,0.12);
}

.author-bio-note {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.97rem;
}

/* ============================================================
   MODAL VISTA PREVIA LIBRO
============================================================ */
.book-preview-modal {
  background: rgba(7, 10, 24, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.book-preview-content {
  border: none;
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(91,76,255,0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255,107,53,0.16), transparent 28%),
    linear-gradient(160deg, #07101d 0%, #111a2c 42%, #0b1220 100%);
  color: #fff;
  min-height: 100vh;
}

.book-preview-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.book-preview-close:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

.book-preview-stage {
  perspective: 2200px;
}

.book-preview-slider {
  position: relative;
  perspective: 1800px;
  perspective-origin: center center;
}

.book-preview-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  min-height: min(82vh, 860px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.45);
  transform: rotateX(2deg);
}

/* Ocultar spreads inactivos a menos que estén en animación */
.book-preview-spread:not(.is-active):not(.flip-layer) {
  display: none;
}

/* ================================================================
   FLIPBOOK — VOLTEO DE HOJA REAL
   Solo la mitad giratoria (la hoja) rota 180° en su bisagra (el lomo).
   Las dobles páginas permanecen estáticas; un .book-flip-leaf creado
   via JS simula la hoja que se voltea sobre el lomo.
================================================================ */

/* Spreads apilados durante la animación */
.book-preview-spread.flip-layer {
  position: absolute;
  top: 0; left: 0; width: 100%;
  display: grid; /* anula el display:none */
  transform: none; /* evita conflictos 3D con el leaf */
}
.book-preview-spread.flip-layer-top    { z-index: 2; }
.book-preview-spread.flip-layer-bottom { z-index: 1; }

/* ---- Fundido por página: el contenido viaja con el flip ---- */
/* Página que "se voltea": desaparece rápido (el leaf la cubre) */
@keyframes flipFadeFast {
  0%   { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Página que "se queda": permanece hasta que el leaf la cubre al final */
@keyframes flipFadeSlow {
  0%   { opacity: 1; }
  48%  { opacity: 1; }
  88%  { opacity: 0; }
  100% { opacity: 0; }
}
.flip-page-fast { animation: flipFadeFast 750ms ease forwards; }
.flip-page-slow { animation: flipFadeSlow 750ms ease forwards; }

/* ---- La hoja giratoria ---- */
.book-flip-leaf {
  position: absolute;
  top: 0;
  width: 50%;
  transform-style: preserve-3d;
  z-index: 10;
  pointer-events: none;
}

/* Avanzar: la hoja derecha gira sobre el lomo (borde izquierdo de la hoja) */
.book-flip-leaf.leaf-next {
  left: 50%;
  transform-origin: left center;
  animation: leafFlipNext 750ms cubic-bezier(0.645, 0.045, 0.355, 1.000) forwards;
}

/* Retroceder: la hoja izquierda gira sobre el lomo (borde derecho de la hoja) */
.book-flip-leaf.leaf-prev {
  left: 0;
  transform-origin: right center;
  animation: leafFlipPrev 750ms cubic-bezier(0.645, 0.045, 0.355, 1.000) forwards;
}

/* Caras de la hoja */
.leaf-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Cara delantera: igual al papel de la página derecha que se voltea */
.leaf-face-front {
  background:
    linear-gradient(180deg, rgba(255,252,245,0.96), rgba(246,239,226,0.98)),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(20,20,20,0.035) 29px 30px);
  border-radius: 0 12px 12px 0;
}
/* Sombra de pliegue en la bisagra (borde izquierdo de la cara delantera) */
.leaf-face-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.07) 14%, transparent 36%);
  border-radius: inherit;
}

/* Cara trasera: el reverso del papel (ligeramente más oscuro) */
.leaf-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #ede4ce, #e6dbc5);
  border-radius: 12px 0 0 12px;
}
.leaf-face-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.05) 14%, transparent 36%);
  border-radius: inherit;
}

/* Espejo de radios para dirección previa */
.leaf-prev .leaf-face-front { border-radius: 12px 0 0 12px; }
.leaf-prev .leaf-face-front::after {
  background: linear-gradient(to left, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.07) 14%, transparent 36%);
}
.leaf-prev .leaf-face-back  { border-radius: 0 12px 12px 0; }
.leaf-prev .leaf-face-back::after {
  background: linear-gradient(to right, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.05) 14%, transparent 36%);
}

@keyframes leafFlipNext {
  0%   { transform: rotateY(0deg);    opacity: 1; }
  82%  { transform: rotateY(-180deg); opacity: 1; }
  100% { transform: rotateY(-180deg); opacity: 0; }
}

@keyframes leafFlipPrev {
  0%   { transform: rotateY(0deg);   opacity: 1; }
  82%  { transform: rotateY(180deg); opacity: 1; }
  100% { transform: rotateY(180deg); opacity: 0; }
}

.book-preview-page {
  position: relative;
  padding: 2rem 2.2rem 2.1rem;
  display: flex;
  flex-direction: column;
}

.book-preview-page-left {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,239,228,0.96)),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(20,20,20,0.03) 29px 30px);
  color: #251d15;
}

.book-preview-page-right {
  background:
    linear-gradient(180deg, rgba(255,252,245,0.96), rgba(246,239,226,0.98)),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(20,20,20,0.035) 29px 30px);
  color: #221b14;
}

.book-preview-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 35px rgba(0,0,0,0.08);
}

.book-preview-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.book-preview-kicker {
  color: #7b4cff;
  font-weight: 800;
}

.book-preview-page-no {
  color: rgba(35,27,20,0.55);
  font-weight: 700;
}

.book-preview-cover-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.5rem 0.5rem 1rem;
}

.book-preview-cover-mark {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(91,76,255,0.1);
  color: #5b4cff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-preview-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #18110c;
}

.book-preview-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(37,29,21,0.82);
  margin-bottom: 1.4rem;
}

.book-preview-quote {
  border-left: 3px solid rgba(91,76,255,0.35);
  padding-left: 1rem;
  font-size: 0.98rem;
  font-style: italic;
  color: rgba(37,29,21,0.76);
  margin-bottom: 1.8rem;
}

.book-preview-author-line {
  margin-top: auto;
  font-weight: 800;
  color: #5b4cff;
  letter-spacing: 0.03em;
}

.book-preview-spine {
  background:
    linear-gradient(180deg, #6b5740 0%, #4d3925 18%, #2a1d12 50%, #4d3925 82%, #6b5740 100%);
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.12),
    inset 0 0 18px rgba(0,0,0,0.25);
}

.book-preview-page-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-preview-page-body-long {
  overflow-y: auto;
  padding-right: 0.35rem;
}

.book-preview-page-body-long::-webkit-scrollbar {
  width: 6px;
}

.book-preview-page-body-long::-webkit-scrollbar-thumb {
  background: rgba(91,76,255,0.32);
  border-radius: 999px;
}

.book-preview-page-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.8rem;
  color: #17110b;
}

.book-preview-subheading {
  font-size: 1rem;
  margin-bottom: 0.85rem;
  color: rgba(34,27,20,0.78);
  font-weight: 800;
}

.book-preview-intro {
  color: rgba(34,27,20,0.74);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.book-preview-chapters {
  display: grid;
  gap: 0.72rem;
}

.book-preview-chapter-item {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(83,62,43,0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(34,27,20,0.88);
}

.book-preview-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(83,62,43,0.22);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(34,27,20,0.74);
}

.book-preview-page-cta {
  background:
    linear-gradient(180deg, rgba(247,241,230,0.98), rgba(239,231,216,0.98)),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(20,20,20,0.03) 29px 30px);
}

.book-preview-page-body-center {
  justify-content: center;
}

.book-preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.book-preview-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.book-preview-nav:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
}

.book-preview-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.book-preview-status {
  min-width: 120px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
}

/* ============================================================
   SECCIÓN PRECIOS / CTA
============================================================ */
#precios {
  padding: 7rem 0;
  position: relative;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  background: var(--gradient-hero);
  border: none;
}

.pricing-card.featured * { color: #fff !important; }
.pricing-card.featured .price-badge { background: rgba(255,255,255,0.2); color: #fff !important; }
.pricing-card.featured .pricing-feature-item { border-color: rgba(255,255,255,0.2); }

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  box-shadow: 0 20px 60px rgba(91,76,255,0.5);
}

.price-badge {
  display: inline-block;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.pricing-price sup {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-feature-item:last-of-type { border-bottom: none; }
.pricing-feature-item i { color: var(--accent-3); font-size: 1rem; }

.btn-pricing {
  width: 100%;
  padding: 0.9rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.btn-pricing-outline {
  background: transparent;
  border: 2px solid var(--accent-1);
  color: var(--accent-1);
}

.btn-pricing-outline:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-pricing-solid {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-pricing-solid:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

/* Cinta "Más popular" */
.popular-ribbon {
  position: absolute;
  top: 16px; right: -28px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 2.5rem;
  transform: rotate(45deg);
  letter-spacing: 0.06em;
}

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  background: var(--gradient-hero);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 { color: #fff !important; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

.btn-cta-white {
  background: #fff;
  color: var(--accent-1);
  border: none;
  border-radius: 99px;
  padding: 0.9rem 2.4rem;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  color: var(--accent-1);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.7rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-link {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent-1); }

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 0.4rem;
}

.social-btn:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: var(--border);
  margin: 2.5rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   ANIMACIONES KEYFRAMES
============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeZoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.2); opacity: 1; }
}

/* ============================================================
   SCROLL REVEAL — clases aplicadas por JS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-left  { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }
.reveal.reveal-zoom  { transform: scale(0.88); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Retrasos escalonados para tarjetas */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   DIVIDERS / SEPARADORES
============================================================ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ============================================================
   COUNTER ANIMADO
============================================================ */
.counter-wrap {
  text-align: center;
  padding: 1.5rem;
}

.counter-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   PARALLAX SECTION
============================================================ */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -60px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   UTILIDADES
============================================================ */
.content-z { position: relative; z-index: 1; }

.text-accent   { color: var(--accent-1); }
.text-accent-2 { color: var(--accent-2); }
.text-accent-3 { color: var(--accent-3); }

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar estilizado */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 99px; }

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 768px) {
  .book-mockup-wrapper { margin-top: 3rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .glass-card { padding: 1.5rem; }
  .author-portrait-shell {
    min-height: 420px;
  }
  .author-portrait-card {
    width: min(100%, 360px);
  }
  .author-portrait-img {
    max-width: 340px;
  }
  .author-timeline::before {
    left: 22px;
  }
  .author-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 2.9rem;
  }
  .author-timeline-item::after {
    left: 15px;
    top: 17px;
  }
  .author-timeline-year {
    width: fit-content;
  }
  .author-bio-card {
    padding: 1.5rem;
  }
  .book-preview-spread {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 20px;
  }
  .book-preview-spine {
    display: none;
  }
  .book-preview-page {
    padding: 1.35rem 1.15rem;
  }
  .book-preview-controls {
    gap: 0.75rem;
    margin-top: 0.9rem;
  }
  .book-preview-status {
    min-width: 92px;
    font-size: 0.82rem;
  }
  .book-preview-close {
    top: 0.85rem;
    right: 0.85rem;
    width: 46px;
    height: 46px;
  }
}
