@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,700;1,400&family=Metal+Mania&family=UnifrakturMaguntia&display=swap');

:root {
  --bg-dark: #050505;
  --accent-blood: #8b0000;
  --accent-gold: #d4af37;
  --text-light: #e0e0e0;
  --shadow-book: 0 30px 60px rgba(0,0,0,0.9);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body {
  font-family: 'EB Garamond', serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Menu */
header.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(5px);
}

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: white; font-family: 'Cinzel', serif; font-size: 0.9rem; }
.nav-links a:hover { color: var(--accent-gold); }

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a.spotify, .footer-social a.spotify { color: #1DB954; }
.social-links a.tiktok, .footer-social a.tiktok { color: #fff; text-shadow: 2px 2px #00f2ea, -2px -2px #ff0050; }
.social-links a.youtube, .footer-social a.youtube { color: #FF0000; }

.social-links a:hover, .footer-social a:hover {
  transform: scale(1.2);
  filter: brightness(1.2) drop-shadow(0 0 10px currentColor);
}

/* Sections */
.full-page-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 82px 24px 74px;
}

#section-intro {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #030303;
}

#section-intro::before {
  content: "";
  position: absolute;
  inset: -8vh 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("../assets/fondovesania.png");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--intro-parallax, 0px), 0) scale(1.04);
  will-change: transform;
}

#section-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.52), rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.82)),
    radial-gradient(circle at center, rgba(139,0,0,0.08), rgba(0,0,0,0.58) 72%);
}

.main-logo-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.25); /* Hacerlo más claro como pediste */
  transition: transform 0.3s ease;
}

.main-logo-img:hover {
  transform: scale(1.02);
}

.intro-content {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px; /* Evita que el texto toque los bordes en móvil */
  text-align: center;
  animation: fadeInIntro 2s ease-out;
  box-sizing: border-box;
}

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

.subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem); /* Tamaño fluido */
  color: var(--accent-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  opacity: 0.8;
}

.intro-divider {
  width: min(150px, 50%); /* Responsivo */
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  margin: 30px auto;
  position: relative;
}

.intro-divider::after {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #030303;
  padding: 0 10px;
  color: var(--accent-gold);
}

.intro-context {
  font-size: clamp(1rem, 3.8vw, 1.3rem); /* Tamaño fluido */
  font-style: italic;
  line-height: 1.6;
  color: #ccc;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.gothic-font {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  /* Efecto Biselado sutil para títulos secundarios */
  text-shadow: 
    1px 1px 0 #000,
    -0.5px -0.5px 0 rgba(255,255,255,0.2),
    0 0 10px rgba(212, 175, 55, 0.2);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 
    2px 2px 0 #000,
    -1px -1px 0 rgba(255,255,255,0.1),
    0 0 30px rgba(139, 0, 0, 0.5);
}

/* BLOQUE SEO */
.seo-content-block {
  background: #050505;
  padding: 80px 20px;
  color: #888;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
  font-family: 'EB Garamond', serif;
}

.seo-content-block .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

@media (max-width: 768px) {
  .seo-content-block .container {
    text-align: left;
  }
}

.seo-content-block h2 {
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-size: 1.8rem;
  opacity: 0.7;
  text-align: left;
}

.seo-content-block p {
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.seo-content-block strong {
  color: #bbb;
  font-weight: 400;
}

.static-seo {
  display: none; /* Oculto para humanos, visible para bots */
}

/* EL GRIMORIO - ESTRUCTURA MAESTRA */
.book-frame {
  width: min(98vw, 1380px);
  max-width: 1380px;
  height: 88vh;
  min-height: 680px;
  position: relative;
  background: #000;
  border: 8px solid #111;
  border-image: linear-gradient(to bottom, #222, #000) 1;
  display: flex;
  perspective: 2500px;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-book);
  margin: 0 auto;
}

.book-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.7), transparent);
  z-index: 5;
  transform: translateX(-50%);
}

.page {
  flex: 1;
  background-color: #0c0c0c;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.5), rgba(0, 0, 0, 0.9)),
    url("https://www.transparenttextures.com/patterns/asfalt-dark.png"); /* Textura de cuero/papel viejo */
  padding: 36px 54px 32px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 
    inset 0 0 150px rgba(0,0,0,1),
    inset 0 0 50px rgba(139, 0, 0, 0.05); /* Sutil resplandor de sangre */
}

.page.active { display: flex; }

/* Contenedor de Vida (Contenido) */
.lyrics-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  height: 100%;
  padding-top: 8px; /* Espacio extra entre el borde dorado y el título */
}

.lyrics-story h2 {
  font-size: clamp(1.55rem, 1.8vw, 2rem);
  line-height: 1.12;
  margin-bottom: 12px !important;
}

#content-left, #content-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 22px 18px; /* Padding recuperado de .scroll-content */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) transparent;
}

#content-left::-webkit-scrollbar { width: 4px; }
#content-left::-webkit-scrollbar-track { background: transparent; }
#content-left::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

/* DISEÑO DE PÁGINA IZQUIERDA: ARTE + CRÉDITOS */
.art-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
}

.full-page-art {
  width: 100%;
  height: auto;
  max-height: 80%; /* Restaurado para dar protagonismo a la imagen */
  object-fit: contain;
  filter: sepia(0.2) contrast(1.1);
  border: none;
  box-shadow: none;
}

.art-info {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

#fixed-audio-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  background: transparent;
  z-index: 100;
  margin-top: 10px;
}

#fixed-audio-container:empty {
  display: none;
  padding: 0;
  border: 0;
}

.audio-relic-static {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* REPRODUCTOR DE AUDIO (RELIQUIA) */
.audio-relic {
  margin: 15px 0 25px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.relic-btn {
  background: none;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 12px 25px;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.relic-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.relic-btn.playing {
  background: var(--accent-gold);
  color: black;
  box-shadow: 0 0 30px var(--accent-gold);
}

/* PERGAMINO CON SCROLL EN PÁGINA DERECHA */
/* Los estilos de scroll se movieron a #content-left y #content-right */
.lyrics-text {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 3.5vw, 1.15rem); /* Tamaño fluido */
  line-height: 1.7;
  color: #e0e0e0;
  letter-spacing: 0.2px;
  padding: 10px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  width: 100%;
}

/* Barra de Scroll Gótica */
.scroll-content::-webkit-scrollbar { width: 4px; }
.scroll-content::-webkit-scrollbar-track { background: transparent; }
.scroll-content::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

.paper-divider {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: 16px auto;
  opacity: 0.5;
  position: relative;
}

.paper-divider::before {
  content: "✧";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #0c0c0c;
  padding: 0 5px;
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.lore-text {
  font-size: 1.05rem;
  color: #bbb;
  font-style: italic;
  line-height: 1.48;
}

.lyrics-text {
  font-size: 1.08rem;
  line-height: 1.56;
  color: #e0e0e0;
  letter-spacing: 0.2px;
}

/* Hoja Volante (Flip) */
.page-flipping {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #0c0c0c;
  z-index: 10;
  transform-origin: left center;
  display: none;
  backface-visibility: visible;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.page-flipping.flipping {
  display: block;
  animation: flipRightToLeft 1.2s forwards;
}

@keyframes flipRightToLeft {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}

/* Adornos */
.page .corner-tr, .page .corner-bl, .page::before, .page::after {
  content: "✦";
  position: absolute;
  color: var(--accent-gold);
  font-size: 1.2rem;
  pointer-events: none;
  opacity: 0.6;
}
.page::before { top: 10px; left: 10px; }
.page::after { bottom: 10px; right: 10px; }
.page .corner-tr { top: 10px; right: 10px; }
.page .corner-bl { bottom: 10px; left: 10px; }

/* Botones */
.nav-controls {
  position: absolute;
  bottom: -60px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 20;
}

.nav-btn {
  background: none;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  min-height: 44px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  transition: 0.3s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--accent-gold);
  color: black;
}

.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Visuales */
.video-wrapper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.2);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.2);
  transition: transform 0.8s ease;
}

.video-wrapper:hover .video-placeholder {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}

.video-wrapper:hover .play-overlay {
  background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.play-icon {
  font-size: 5rem;
  color: white;
  text-shadow: 0 0 20px var(--accent-blood);
  opacity: 0.8;
  transition: all 0.4s ease;
}

.video-wrapper:hover .play-icon {
  transform: scale(1.1);
  opacity: 1;
  color: var(--accent-gold);
}

/* SECCIÓN PLAYLIST */
.playlist-container {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.playlist-controls {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.playlist-frame {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 20px;
  box-shadow: inset 0 0 30px rgba(0,0,0,1);
  border-radius: 4px;
}

.playlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
  cursor: grab;
  background: rgba(15, 15, 15, 0.5);
  margin-bottom: 5px;
}

.playlist-item:last-child { border-bottom: none; }

.playlist-item:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateX(10px);
}

.playlist-item.dragging {
  opacity: 0.5;
  background: var(--accent-blood);
  cursor: grabbing;
}

.track-index {
  font-family: 'Cinzel', serif;
  color: var(--accent-gold);
  width: 40px;
  font-size: 0.9rem;
  opacity: 0.6;
}

.track-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.track-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-light);
}

.track-meta {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.track-actions {
  display: flex;
  gap: 15px;
}

.track-play-btn {
  background: none;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.track-play-btn:hover {
  background: var(--accent-gold);
  color: black;
  box-shadow: 0 0 15px var(--accent-gold);
}

.playlist-hint {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
}

/* Reliquia de Audio (Floating Player) */
.floating-relic {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--accent-gold);
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 0 30px rgba(0,0,0,1), 0 0 15px rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  animation: slideInRelic 0.5s ease-out;
}

@keyframes slideInRelic {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.close-btn:hover { opacity: 1; }

.relic-info {
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 10px;
}

#player-title {
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.relic-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.main-play-btn {
  background: var(--accent-gold);
  color: black;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.main-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.track-nav-btn {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
}

.track-nav-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.track-nav-btn i {
  font-size: 0.8rem;
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Slider Gótico */
.relic-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  outline: none;
}

.relic-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='goldGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23856d21' /%3E%3Cstop offset='50%25' style='stop-color:%23d4af37' /%3E%3Cstop offset='100%25' style='stop-color:%23856d21' /%3E%3C/linearGradient%3E%3ClinearGradient id='bladeGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23333' /%3E%3Cstop offset='50%25' style='stop-color:%23ddd' /%3E%3Cstop offset='100%25' style='stop-color:%23333' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M50 5 L40 12 L40 18 L60 18 L60 12 Z' fill='url(%23goldGrad)' /%3E%3Crect x='45' y='18' width='10' height='15' fill='url(%23goldGrad)' /%3E%3Cpath d='M5 33 L95 33 L95 40 L50 48 L5 40 Z' fill='url(%23goldGrad)' /%3E%3Cpath d='M32 48 L50 95 L50 48 Z' fill='%23666' /%3E%3Cpath d='M50 48 L50 95 L68 48 Z' fill='%23eee' /%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: -18px;
}

.relic-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 0 15px %23d4af37);
}

.relic-slider::-moz-range-thumb {
  width: 28px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='goldGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23856d21' /%3E%3Cstop offset='50%25' style='stop-color:%23d4af37' /%3E%3Cstop offset='100%25' style='stop-color:%23856d21' /%3E%3C/linearGradient%3E%3ClinearGradient id='bladeGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23333' /%3E%3Cstop offset='50%25' style='stop-color:%23ddd' /%3E%3Cstop offset='100%25' style='stop-color:%23333' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M50 5 L40 12 L40 18 L60 18 L60 12 Z' fill='url(%23goldGrad)' /%3E%3Crect x='45' y='18' width='10' height='15' fill='url(%23goldGrad)' /%3E%3Cpath d='M5 33 L95 33 L95 40 L50 48 L5 40 Z' fill='url(%23goldGrad)' /%3E%3Cpath d='M32 48 L50 95 L50 48 Z' fill='%23666' /%3E%3Cpath d='M50 48 L50 95 L68 48 Z' fill='%23eee' /%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  border: none;
}

.time-display {
  font-size: 0.7rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  font-family: 'Cinzel', serif;
}

/* RESPONSIVIDAD (MEDIA QUERIES) */

/* Tablets y Móviles Grandes */
@media (max-width: 1024px) {
  html {
    scroll-snap-type: none;
    scroll-padding-top: 118px;
  }

  .full-page-section {
    min-height: auto;
    scroll-snap-align: none;
    padding: 120px 18px 72px;
  }

  #section-intro {
    min-height: 100svh;
  }

  #section-book {
    justify-content: flex-start;
  }

  #main-content {
    align-items: flex-start !important;
  }

  .book-frame {
    height: auto;
    min-height: auto;
    flex-direction: column;
    width: min(94vw, 720px);
    max-width: 720px;
    overflow: visible;
    margin: 0 auto;
  }

  .page {
    width: 100%;
    min-height: auto;
    padding: 46px 28px 34px;
    overflow: visible;
    flex: none;
  }

  .lyrics-story,
  #content-left,
  #content-right {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .scroll-content {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 16px 0 0;
  }

  .full-page-art {
    max-height: 46vh;
  }

  .nav-controls {
    position: static;
    padding: 22px 18px 24px;
    gap: 14px;
  }

  .nav-btn {
    flex: 1;
    max-width: 220px;
  }

  .book-frame::before {
    display: none; /* Eliminar lomo central en móvil */
  }

  .page-flipping {
    display: none !important; /* Desactivar animación 3D en móvil */
  }
}

/* Móviles */
@media (max-width: 768px) {
  body {
    padding-bottom: 120px; /* Espacio para que el reproductor flotante no tape los botones */
  }

  header.main-nav {
    padding: 12px 14px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo {
    font-size: 1rem;
    text-align: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 9px;
  }

  .title-glow {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
    text-align: center;
    padding: 0 20px;
    margin-bottom: 18px;
  }

  .subtitle {
    font-size: 1rem;
  }

  .book-frame {
    width: 100%;
    border-width: 8px;
  }

  .page {
    padding: 42px 18px 28px;
  }

  #fixed-audio-container {
    padding: 5px 0;
  }

  .lyrics-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: center;
  }

  .floating-relic {
    width: 94%;
    right: 3%;
    bottom: 15px;
    padding: 15px;
  }

  .main-play-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .play-icon {
    font-size: 3.5rem;
  }

  .video-wrapper {
    width: 100%;
  }

  /* Playlist Móvil */
  .playlist-container {
    padding: 0 10px;
  }
  
  .playlist-item {
    padding: 10px;
  }
  
  .track-name {
    font-size: 0.95rem;
  }
}

/* Dispositivos muy pequeños */
@media (max-width: 480px) {
  .full-page-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .book-frame {
    border-width: 5px;
  }

  .page {
    padding: 34px 14px 24px;
  }

  .nav-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-btn {
    max-width: none;
    width: 100%;
  }

  .art-info {
    font-size: 0.6rem;
  }

  .relic-btn {
    padding: 10px 15px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section-intro::before {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.main-footer {
  background: #000;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 60px 20px;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--accent-gold);
  transform: translateY(-5px);
}

.copyright {
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}
