/* -------------------------------------------------------------
   ESTELLE LUCAS — EDITORIAL LÍRICO CONTEMPORÁNEO CSS v8.2
   AIR & BREATHING ROOM SPACING FOR ALL BUTTONS
   ------------------------------------------------------------- */

:root {
  /* Color Palette (Champagne Metal, Burgundy & Cream) */
  --color-burgundy-900: #4A1625;
  --color-burgundy-700: #6B1F33;
  --color-gold-500:     #B8935A;
  --color-cream-50:     #FAF6EF;
  --color-cream-100:    #F3ECE0;
  --color-ink-900:      #221D1A;
  --color-ink-600:      #5C544C;
  --color-line:         #E4D9C8;

  /* Curated Typography (2 Families) */
  --font-heading: 'Cormorant Garamond', serif;
  --font-subtitle: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Vertical Rhythm Spacing */
  --space-section: clamp(3.5rem, 6.5vw, 6.5rem);

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strict Zero-Overflow Global Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream-50);
  color: var(--color-ink-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-burgundy-900);
  letter-spacing: -0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 7vw, 4.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.25; }
h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); line-height: 1.3; }

em, .italic {
  font-family: var(--font-heading);
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1140px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin: 0 auto;
}

.section {
  padding: var(--space-section) 0;
}

.bg-alt {
  background-color: var(--color-cream-100);
}

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

.section-tag {
  font-family: var(--font-subtitle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-500);
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  margin-bottom: 0.5rem;
}

.gold-divider {
  width: 40px;
  height: 1px;
  background: var(--color-gold-500);
  margin: 1rem auto 2.5rem auto;
}

/* SVG Inline Icon Base */
.svg-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Header & Mobile Navigation */
.main-header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.logo-name,
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-burgundy-900);
  line-height: 1.1;
}

.logo-tag,
.brand-title {
  font-family: var(--font-subtitle);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold-500);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.main-nav .nav-link,
.main-nav a {
  font-family: var(--font-subtitle);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-ink-900);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.main-nav .nav-link:hover,
.main-nav a:hover,
.main-nav .nav-link.active,
.main-nav a.active {
  color: var(--color-burgundy-700);
}

.main-nav .nav-link.active::after,
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold-500);
}

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

.lang-toggle-btn,
.lang-switcher {
  background: rgba(184, 147, 90, 0.12);
  border: 1px solid var(--color-gold-500);
  color: var(--color-burgundy-900);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-subtitle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-toggle-btn:hover,
.lang-switcher:hover {
  background: var(--color-burgundy-900);
  color: #FFFFFF;
  border-color: var(--color-burgundy-900);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-weight: 700;
  padding: 0;
}
  color: var(--color-ink-600);
  font-weight: 700;
  padding: 2px 4px;
}

.lang-btn.active, .lang-btn:hover {
  color: var(--color-burgundy-900);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-burgundy-900);
  transition: var(--transition);
}

/* Mobile Drawer Rule */
@media (max-width: 868px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: calc(100vh - 60px);
    background: var(--color-cream-50);
    border-left: 1px solid var(--color-line);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.5rem;
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.4rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 55vh;
  max-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 105px 1.5rem 3rem 1.5rem;
}

.hero-bg,
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%;
  filter: brightness(0.85) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(34,29,26,0.2) 0%, rgba(74,22,37,0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 780px;
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-subtitle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold-500);
  display: block;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

/* Editorial Quote */
.quote-card {
  background: transparent;
  padding: 10px 0;
  margin: 0 auto 2rem auto;
  max-width: 640px;
}

.quote-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  line-height: 1.5;
  color: #FAF6EF;
}

.quote-author {
  display: block;
  margin-top: 8px;
  font-family: var(--font-subtitle);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-gold-500);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Unified 3-Tier Button System (Margen y Respiración Garantizados) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-subtitle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  word-break: break-word;
  margin: 4px 0;
}

.btn-primary {
  background: var(--color-burgundy-700);
  color: var(--color-cream-50);
}

.btn-primary:hover {
  background: var(--color-burgundy-900);
  color: #FFFFFF;
}

.hero-section .btn-primary {
  background: var(--color-gold-500);
  color: var(--color-burgundy-900);
  border-color: var(--color-gold-500);
  font-weight: 700;
}

.hero-section .btn-primary:hover {
  background: #FFFFFF;
  color: var(--color-burgundy-900);
  border-color: #FFFFFF;
}

.btn-secondary, .btn-outline {
  background: transparent;
  border: 1px solid var(--color-ink-900);
  color: var(--color-ink-900);
}

.hero-section .btn-secondary, .hero-section .btn-outline {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-secondary:hover, .btn-outline:hover {
  background: var(--color-ink-900);
  color: var(--color-cream-50);
}

.hero-section .btn-secondary:hover, .hero-section .btn-outline:hover {
  background: #FFFFFF;
  color: var(--color-burgundy-900);
}

.btn-tertiary {
  background: transparent;
  color: var(--color-ink-900);
  padding: 6px 0;
  border-radius: 0;
  position: relative;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.72rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1.5rem;
}

/* Biography Section */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: center;
}

.portrait-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  width: 100%;
}

.portrait-frame img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.bio-body-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-ink-900);
  margin-bottom: 1.8rem;
  white-space: pre-line;
  line-height: 1.8;
}

.bio-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 1.8rem;
}

.highlight-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-burgundy-900);
  margin-bottom: 0.2rem;
}

.highlight-label {
  font-size: 0.75rem;
  color: var(--color-ink-600);
  font-weight: 600;
}

.bio-pdf-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 1.8rem;
  width: 100%;
}

/* Agenda / Concerts Section */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.event-card {
  background: var(--color-cream-50);
  border-bottom: 1px solid var(--color-line);
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
}

.event-date-badge {
  font-family: var(--font-subtitle);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-burgundy-900);
}

.event-opera {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-burgundy-900);
}

.event-title {
  font-size: 0.88rem;
  color: var(--color-ink-900);
}

.event-venue {
  font-size: 0.8rem;
  color: var(--color-ink-600);
}

.event-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Repertoire Section & Table Responsive Wrapper */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--color-line);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-subtitle);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-ink-900);
  margin: 2px;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--color-burgundy-700);
  color: var(--color-cream-50);
  border-color: var(--color-burgundy-700);
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.repertoire-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.repertoire-table th {
  color: var(--color-burgundy-900);
  border-bottom: 2px solid var(--color-gold-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 14px;
  text-align: left;
}

.repertoire-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.88rem;
}

/* Photo Gallery Grid */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-line);
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-ink-900);
  margin: 2px;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-gold-500);
  color: #111;
  border-color: var(--color-gold-500);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.photo-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  border: 1px solid var(--color-line);
}

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

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

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(0deg, rgba(74,22,37,0.9) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

/* AMPLIACIÓN EXPLICITA DE MARGEN PARA EL BOTÓN "CHARGER PLUS" (LOAD MORE) */
#load-more-box {
  margin-top: 3.5rem !important;
  margin-bottom: 2.5rem !important;
  padding: 1.2rem 0;
  text-align: center;
  width: 100%;
  display: block;
}

#load-more-box .btn {
  margin: 0 auto;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.video-card {
  background: var(--color-cream-50);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.video-facade {
  position: relative;
  height: 180px;
  cursor: pointer;
}

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

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--color-burgundy-700);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-info {
  padding: 0.9rem;
}

.video-title {
  font-size: 0.88rem;
  color: var(--color-burgundy-900);
}

/* Voice Banner */
.voice-banner {
  background: var(--color-burgundy-900);
  color: var(--color-cream-50);
  padding: var(--space-section) 1rem;
  text-align: center;
}

.voice-title {
  color: var(--color-gold-500);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.voice-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Contact Section */
.contact-card-wrapper {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.contact-info-card {
  background: var(--color-cream-50);
  padding: 2.2rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  text-align: center;
  width: 100%;
}

.card-title {
  font-size: 1.8rem;
  color: var(--color-burgundy-900);
}

.card-sub {
  color: var(--color-gold-500);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  font-size: 0.75rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-link-item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  word-break: break-all;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-content-box {
  max-width: 90%;
  max-height: 80vh;
  text-align: center;
}

.lightbox-content-box img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  color: #fff;
  font-size: 0.88rem;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: #111;
  color: #777;
  padding: 30px 1rem;
  font-size: 0.8rem;
  border-top: 1px solid #222;
}

.admin-link {
  color: var(--color-gold-500);
  margin-top: 6px;
  display: inline-block;
}

.mt-2 {
  margin-top: 2.5rem !important;
}

/* Exhaustive Mobile Screen Media Queries */

/* Tablet & Smaller Screens (< 992px) */
@media (max-width: 992px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame img {
    height: 380px;
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.2rem;
    background: var(--color-cream-100);
    border-radius: 4px;
    margin-bottom: 0.8rem;
  }

  .event-actions {
    flex-direction: column;
    width: 100%;
  }

  .event-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .bio-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
}

/* Small Phones (< 540px, iPhone SE, 360px Android) */
@media (max-width: 540px) {
  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .bio-pdf-buttons {
    flex-direction: column;
  }

  .bio-pdf-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  #load-more-box {
    margin-top: 2.8rem !important;
    margin-bottom: 2rem !important;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filters, .tabs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn, .tab-btn {
    flex-shrink: 0;
  }
}
