/* --- 1. VARIABLES & RESET GENERAL --- */
:root {
  --bg-dark: #0d0d0d;
  --bg-paper: #faf8f5;
  --text-light: #f5f5f7;
  --text-dark: #111111;
  --accent: #c6a366;
  --gold-gradient: linear-gradient(135deg, #c6a366 0%, #f3e5ab 50%, #c6a366 100%);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- 2. PRELOADER --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #070707;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content { 
  text-align: center; 
}

.logo-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  letter-spacing: 6px;
  font-weight: 400;
}

.logo-loader .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: logoLetterIn 0.8s forwards cubic-bezier(0.215, 0.61, 0.355, 1);
}

.logo-loader .letter:nth-child(1) { animation-delay: 0.1s; }
.logo-loader .letter:nth-child(2) { animation-delay: 0.2s; }
.logo-loader .letter:nth-child(3) { animation-delay: 0.3s; }
.logo-loader .letter:nth-child(4) { animation-delay: 0.4s; }
.logo-loader .letter:nth-child(5) { animation-delay: 0.5s; }
.logo-loader .letter:nth-child(6) { animation-delay: 0.6s; }

.logo-loader .dot {
  color: var(--accent);
  opacity: 0;
  animation: logoLetterIn 0.8s forwards 0.7s;
}

@keyframes logoLetterIn { 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

.loader-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--accent);
  margin-top: 15px;
  opacity: 0;
  animation: fadeIn 1s forwards 0.9s;
}

.loader-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 20px auto 0;
  animation: lineExpand 1.2s forwards 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes lineExpand { to { width: 180px; } }
@keyframes fadeIn { to { opacity: 1; } }

/* --- 3. TRANSICIÓN FIRMA --- */
.signature-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.signature-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.signature-stage {
  position: relative;
  width: 600px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signature-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(198, 163, 102, 0.4));
}

.long-pen {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform-origin: 20px 240px;
  transform: translate(-20px, -240px) rotate(-35deg);
  filter: drop-shadow(5px 15px 15px rgba(0, 0, 0, 0.7));
  transition: opacity 0.2s ease;
}

.long-pen.visible {
  opacity: 1;
}

/* --- 4. HEADER FLOTANTE & NAVEGACIÓN --- */
.navbar-mega {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.logo-mega {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 4px;
  font-weight: 600;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.logo-mega span { 
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

.mega-nav-links {
  display: flex;
  gap: 35px;
}

.nav-link-mega {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-mega:hover, 
.nav-link-mega.active {
  transform: translateY(-2px);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nav-link-mega::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.nav-link-mega:hover::after, 
.nav-link-mega.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- 5. HERO SHOWCASE --- */
.hero-mega-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.8s ease-out;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.7) 100%);
  z-index: 2;
}

.hero-mega-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  margin-top: 40px;
}

.hero-subtitle-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-mega-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-mega-title .small-title {
  font-size: 3.2rem;
  display: block;
  margin-top: 10px;
  line-height: 1.2;
}

.hero-mega-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.hero-mega-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-action-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn-hero-primary {
  background: var(--text-light);
  color: var(--text-dark);
  border: none;
  padding: 18px 40px;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-hero-primary:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-bottom-bar {
  position: absolute;
  bottom: 40px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 3;
}

.hero-thumbnails {
  display: flex;
  gap: 30px;
}

.thumb-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.4s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 8px;
}

.thumb-item.active, 
.thumb-item:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.thumb-idx {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 1px;
}

/* --- 6. CATÁLOGO & TIENDA --- */
.books-store-section {
  padding: 100px 8%;
  background: var(--bg-paper);
  color: var(--text-dark);
}

.store-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.store-header h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin: 10px 0;
  font-weight: 400;
}

.store-header p {
  color: #666;
  font-size: 0.95rem;
}

.strip-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.strip-track {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0 30px;
  scrollbar-width: none;
}

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

.strip-book-card {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
}

.strip-cover-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.strip-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.strip-book-card:hover .strip-cover-wrapper img {
  transform: scale(1.05);
}

.strip-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(13, 13, 13, 0.8);
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  text-transform: uppercase;
  z-index: 2;
}

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

.strip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 13, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 0 15px;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.strip-book-card:hover .strip-overlay {
  opacity: 1;
}

.btn-strip-synopsis, 
.btn-strip-buy {
  width: 100%;
  padding: 10px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
}

.btn-strip-synopsis {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-strip-synopsis:hover {
  background: #ffffff;
  color: var(--text-dark);
}

.btn-strip-buy {
  background: var(--accent);
  color: #ffffff;
}

.btn-strip-buy:hover {
  background: #ffffff;
  color: var(--text-dark);
}

.strip-book-info {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-author {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.strip-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.strip-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
}

.strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.strip-arrow:hover {
  background: var(--text-dark);
  color: #fff;
}

.strip-arrow.left { left: -20px; }
.strip-arrow.right { right: -20px; }

/* --- 7. MODALES GENERALES & SINOPSIS --- */
.synopsis-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.synopsis-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: #ffffff;
  color: var(--text-dark);
  max-width: 650px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.synopsis-modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  z-index: 10;
}

.modal-close:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  display: flex;
  gap: 25px;
  padding: 30px;
}

.modal-cover {
  width: 180px;
  height: 260px;
  flex-shrink: 0;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

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

.modal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-author {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 5px 0 15px;
  line-height: 1.2;
}

.modal-text {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eeeeee;
}

.modal-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- 8. SECCIONES SECUNDARIAS --- */
.section-block {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-paper);
  color: var(--text-dark);
  padding: 80px 8%;
}

.section-block.alt-bg {
  background-color: #f2ede4;
}

.section-placeholder {
  text-align: center;
  max-width: 600px;
}

.catalog-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

.section-placeholder h2 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  margin: 15px 0 10px;
  font-weight: 400;
}

.section-placeholder p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- 9. SECCIÓN AUTORES SHOWCASE --- */
.authors-showcase-section {
  padding: 120px 8%;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.authors-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 70px;
}

.authors-header h2 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  margin: 10px 0 15px;
  font-weight: 400;
}

.authors-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.authors-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.author-portrait-card {
  position: relative;
  height: 520px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.author-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.7);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.7s ease;
}

.author-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.1) 0%, rgba(13, 13, 13, 0.95) 85%);
  transition: background 0.5s ease;
}

.author-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.author-card-num {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 5px;
}

.author-card-genre {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.author-card-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.author-card-excerpt {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 25px;
  font-weight: 300;
}

.author-card-action {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.author-card-action .arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.author-portrait-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.author-portrait-card:hover .author-card-bg {
  filter: grayscale(20%) brightness(0.85);
  transform: scale(1.06);
}

.author-portrait-card:hover .author-card-action {
  color: #ffffff;
}

.author-portrait-card:hover .author-card-action .arrow {
  transform: translateX(6px);
}

/* Modal Expediente de Autor */
.author-modal-wrapper {
  max-width: 850px;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.author-modal-wrapper .modal-close {
  color: #ffffff;
}

.author-modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 35px;
}

.author-modal-media {
  height: 100%;
  min-height: 400px;
  background: #000;
}

.author-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.author-modal-body {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
}

.modal-header-tag {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.modal-author-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.author-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.author-bio-paragraphs {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.author-works-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.works-tag {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  font-weight: 600;
}

.works-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 20px;
  color: var(--accent);
}

/* --- 10. SECCIÓN RADIO & EVENTOS CON VIDEO --- */
.radio-events-section {
  position: relative;
  padding: 120px 8%;
  background-color: #080808 !important;
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
}

.section-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
  filter: grayscale(30%) contrast(105%);
}

.section-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.65);
  z-index: -1;
  pointer-events: none;
}

.section-content-wrapper {
  position: relative;
  z-index: 1;
}

.radio-events-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 70px;
}

.radio-events-header h2 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  margin: 10px 0 15px;
  font-weight: 400;
}

.radio-events-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.radio-events-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.radio-card-block {
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.radio-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.live-indicator {
  color: #e54b4b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #e54b4b;
  border-radius: 50%;
  box-shadow: 0 0 10px #e54b4b;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

.radio-freq {
  color: rgba(255, 255, 255, 0.4);
}

.radio-display {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-left: 3px solid var(--accent);
  margin-bottom: 25px;
  border-radius: 2px;
}

.program-tag {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.program-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 5px 0;
}

.program-host {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
}

.equalizer-bars .bar {
  width: 3px;
  background: var(--accent);
  height: 10%;
  animation: equalize 1.2s infinite ease-in-out alternate;
}

.equalizer-bars.playing .bar:nth-child(1) { animation-duration: 0.8s; }
.equalizer-bars.playing .bar:nth-child(2) { animation-duration: 1.1s; }
.equalizer-bars.playing .bar:nth-child(3) { animation-duration: 0.6s; }
.equalizer-bars.playing .bar:nth-child(4) { animation-duration: 1.3s; }
.equalizer-bars.playing .bar:nth-child(5) { animation-duration: 0.9s; }

@keyframes equalize {
  0% { height: 15%; }
  100% { height: 100%; }
}

.radio-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 30px;
}

.radio-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-radio-play {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-radio-play:hover {
  background: #ffffff;
  color: #000;
}

.listeners-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.events-list-block {
  display: flex;
  flex-direction: column;
}

.events-block-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.events-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(198, 163, 102, 0.4);
  transform: translateX(6px);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(198, 163, 102, 0.15);
  border: 1px solid rgba(198, 163, 102, 0.3);
  border-radius: 2px;
  flex-shrink: 0;
}

.event-date-badge .day {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.event-type {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 4px 0;
  color: #ffffff;
}

.event-location {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* --- 11. MODAL MANUSCRITO Y FORMULARIOS --- */
#btn-abrir-manuscrito {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.03);
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(4px);
}

#btn-abrir-manuscrito::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

#btn-abrir-manuscrito:hover::before {
  left: 100%;
}

#btn-abrir-manuscrito:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  visibility: hidden;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-container {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 5px;
}

.modal-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.firma-animada {
  width: 180px;
  height: 60px;
  margin: 0 auto 10px auto;
  display: block;
}

.firma-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.modal-overlay.active .firma-path {
  animation: dibujarFirma 2.5s ease-in-out forwards;
}

@keyframes dibujarFirma {
  to { stroke-dashoffset: 0; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: #181818;
  border: 1px solid #333;
  color: #fff;
  padding: 12px;
  border-radius: 2px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ffffff;
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.btn-submit {
  width: 100%;
  margin-top: 25px;
  padding: 16px 24px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-submit:hover::before {
  transform: translateX(100%);
}

.btn-submit:hover {
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* --- 12. SECCIÓN CONTACTO --- */
.contacto-section {
  padding: 120px 8%;
  background-color: #080808;
  color: #e5e5e5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.contacto-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.section-tagline {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.contacto-info .section-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.contacto-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a0a0a0;
  margin-bottom: 40px;
  max-width: 420px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
}

.info-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.info-value {
  font-size: 0.9rem;
  color: #d1d1d1;
  line-height: 1.5;
  margin: 0;
}

.info-value a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.info-value a:hover {
  opacity: 0.7;
}

.contacto-form-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 45px;
  border-radius: 2px;
}

.contacto-form .form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.contacto-form label {
  font-size: 0.75rem;
  margin-bottom: 8px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contacto-form input,
.contacto-form textarea {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 14px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- 13. MEDIA QUERIES (RESPONSIVE DESIGN) --- */
@media (max-width: 900px) {
  .radio-events-grid,
  .contacto-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .radio-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contacto-form-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 850px) {
  .navbar-mega {
    padding: 20px 5%;
  }

  .menu-toggle {
    display: flex;
  }

  .mega-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
  }

  .mega-nav-links.mobile-open {
    right: 0;
  }

  .nav-link-mega {
    font-size: 0.95rem;
  }

  #btn-abrir-manuscrito {
    padding: 10px 16px;
    font-size: 0.7rem;
  }

  /* --- AJUSTE PARA MOSTRAR IMAGEN COMPLETA EN MÓVIL --- */
  .hero-mega-section {
    min-height: 100vh;
    height: 100dvh;
    padding: 100px 6% 40px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-dark);
  }

  .hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
  }

  .hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    /* Llena toda la pantalla para que la imagen se vea grande */
    background-size: cover !important; 
    /* Ajusta este valor (center top, center 20%, etc.) según dónde esté el punto focal de tu imagen */
    background-position: center top !important; 
    background-repeat: no-repeat !important;
  }

  .hero-overlay-dark {
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.8) 100%) !important;
  }

  .hero-mega-content {
    margin-top: 20px;
    width: 100%;
    z-index: 3;
  }

  .hero-mega-title { 
    font-size: 2.5rem; 
    line-height: 1.1;
  }
  
  .hero-mega-title .small-title { 
    font-size: 1.6rem; 
  }

  .hero-mega-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
    background: rgba(13, 13, 13, 0.6);
    padding: 12px;
    border-radius: 4px;
  }

  .hero-thumbnails { 
    display: none; 
  }
  
  .signature-stage { 
    width: 90%; 
  }
  
  .author-modal-grid {
    grid-template-columns: 1fr;
  }
  
  .author-modal-media {
    height: 280px;
    min-height: auto;
  }
  
  .author-modal-body {
    padding: 0 30px 30px;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .modal-cover {
    width: 140px;
    height: 200px;
  }

  .strip-arrow {
    display: none;
  }
}