/* ============================================================
   Los XXI del Quijote — Landing Page
   Diseño: Cinematográfico Épico — "El Telón se Abre"
   Colores: Negro #0A0A0A, Dorado #C8A84E, Crema #F5F0E6
   Tipografía: EB Garamond (títulos), Cormorant Garamond (cuerpo)
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  background: #0A0A0A;
  color: #F5F0E6;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- UTILIDADES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 750px;
}

.gold { color: #C8A84E; }
.gold-dim { color: rgba(200, 168, 78, 0.7); }
.bold { font-weight: 600; }

.golden-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8A84E, transparent);
  margin: 2rem auto;
}

.golden-glow {
  text-shadow: 0 0 40px rgba(200, 168, 78, 0.3), 0 0 80px rgba(200, 168, 78, 0.1);
}

/* --- ANIMACIONES --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in {
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 168, 78, 0.2);
  padding: 0.75rem 0;
  text-align: center;
}

.header-logo {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C8A84E;
  transition: color 0.3s;
}

.header-logo:hover {
  color: #E0C060;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.6), transparent 50%, #0A0A0A);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
  max-width: 800px;
}

.hero-pre {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(200, 168, 78, 0.7);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 700;
  color: #C8A84E;
  line-height: 0.9;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(200, 168, 78, 0.3), 0 0 80px rgba(200, 168, 78, 0.1);
}

.hero-subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  color: rgba(245, 240, 230, 0.8);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(245, 240, 230, 0.7);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInDelay 1s 2.5s both;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(200, 168, 78, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(200, 168, 78, 0.5);
  border-radius: 2px;
  margin-top: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

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

/* --- MESSAGE SECTION --- */
.message-section {
  padding: 8rem 0;
  text-align: center;
}

.quill-icon {
  width: 80px;
  height: auto;
  margin: 0 auto 3rem;
  opacity: 0.6;
}

.message-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: rgba(245, 240, 230, 0.9);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
}

.message-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: rgba(245, 240, 230, 0.5);
  letter-spacing: 0.1em;
}

/* --- COUNTDOWN SECTION --- */
.countdown-section {
  position: relative;
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
}

.countdown-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.countdown-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(245, 240, 230, 0.9);
  margin-bottom: 0.5rem;
}

.countdown-date {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(200, 168, 78, 0.7);
  font-style: italic;
  margin-bottom: 3rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.countdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: #C8A84E;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(200, 168, 78, 0.3), 0 0 80px rgba(200, 168, 78, 0.1);
}

.countdown-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: rgba(200, 168, 78, 0.6);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.countdown-sep {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: rgba(200, 168, 78, 0.4);
  margin-top: -1.5rem;
}

/* --- BOOK SECTION --- */
.book-section {
  padding: 6rem 0;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .book-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.book-image {
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(200, 168, 78, 0.1);
}

.book-image img {
  width: 100%;
}

.book-pre {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(200, 168, 78, 0.6);
  margin-bottom: 0.75rem;
}

.book-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F5F0E6;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.book-subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #C8A84E;
  margin-bottom: 1.25rem;
}

.book-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: rgba(245, 240, 230, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.book-meta {
  font-size: 0.875rem;
  color: rgba(245, 240, 230, 0.5);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* --- BOTONES --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #C8A84E;
  color: #0A0A0A;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(200, 168, 78, 0.2);
}

.btn-gold:hover {
  background: #E0C060;
  box-shadow: 0 4px 30px rgba(200, 168, 78, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: rgba(200, 168, 78, 0.7);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  border: 1px solid rgba(200, 168, 78, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: #C8A84E;
  color: #C8A84E;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- FOOTER --- */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(200, 168, 78, 0.2);
  padding: 2rem 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  color: rgba(200, 168, 78, 0.7);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #C8A84E;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 240, 230, 0.4);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(200, 168, 78, 0.2);
  padding: 1rem;
  display: none;
}

.cookie-banner.show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cookie-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.875rem;
  color: rgba(245, 240, 230, 0.7);
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.cookie-text a {
  color: #C8A84E;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #E0C060;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* --- PÁGINAS LEGALES --- */
.legal-page {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.legal-page h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #C8A84E;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: rgba(200, 168, 78, 0.9);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.legal-page p,
.legal-page li {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: rgba(245, 240, 230, 0.8);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  margin-left: 1.5rem;
  list-style: disc;
}

.legal-page li {
  margin-bottom: 0.25rem;
}

.legal-page li strong {
  color: rgba(245, 240, 230, 0.9);
}

.legal-page a {
  color: #C8A84E;
  text-decoration: underline;
}

.legal-page a:hover {
  color: #E0C060;
}

.legal-page .legal-update {
  font-size: 0.875rem;
  color: rgba(245, 240, 230, 0.4);
  font-style: italic;
  margin-top: 2rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.legal-page th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(200, 168, 78, 0.2);
  color: #C8A84E;
  background: rgba(200, 168, 78, 0.1);
  font-family: 'EB Garamond', Georgia, serif;
}

.legal-page td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(200, 168, 78, 0.1);
  color: rgba(245, 240, 230, 0.7);
}

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
  .countdown {
    gap: 0.5rem;
  }

  .countdown-sep {
    font-size: 1.5rem;
    margin-top: -1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .message-section {
    padding: 5rem 0;
  }

  .book-section {
    padding: 4rem 0;
  }

  .cookie-banner.show {
    flex-direction: column;
    text-align: center;
  }
}
