/* ==========================================================================
   Archivos del Festival - Stylesheet
   ========================================================================== */

/* Main section holding the cards with the signature light/cream-cyan program background */
.archives-section {
  position: relative;
  min-height: 70vh;
  padding: 80px 0 110px;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #edf6f7 65%, #e1eff2 100%);
  overflow: hidden;
}

.archives-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/textura%20fondo.png') center/cover;
  mix-blend-mode: multiply;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.archives-container {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

/* 5-Column Grid Layout for Edition Cards */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
}

@media (max-width: 1200px) {
  .editions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .editions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .archives-section {
    padding: 60px 0 80px;
  }
}

@media (max-width: 600px) {
  .editions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

/* Brand-aligned edition cards using the festival's signature blue gradient (#103443 to #1a789e) */
.edition-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #103443 0%, #1a789e 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(26, 120, 158, 0.22);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  user-select: none;
}

.edition-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(135deg, #144054 0%, #218cb7 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 36px rgba(26, 120, 158, 0.32);
}

.edition-card img {
  max-width: 88%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.edition-card:hover img {
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.4));
  transform: scale(1.03);
}


/* =====================================================
   GLOBAL FIX: Language Dropdown & Constant Contact Newsletter
   ===================================================== */
.site-header {
  z-index: 9999 !important;
}

.lang-selector {
  position: relative !important;
  z-index: 10000 !important;
}

.lang-dropdown {
  z-index: 10001 !important;
}

.lang-selector.open .lang-dropdown {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Constant Contact Newsletter Embed Layout Fix */
.ctct-inline-form,
.ctct-embed-signup {
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
}

.ctct-inline-form form,
.ctct-embed-signup form {
  width: 100% !important;
  display: block !important;
}

.ctct-inline-form div[class*="ctct-form"]:not([style*="display: none"]):not([hidden]),
.ctct-embed-signup div[class*="ctct-form"]:not([style*="display: none"]):not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 10px !important;
}

.ctct-inline-form [style*="display: none"],
.ctct-embed-signup [style*="display: none"],
.ctct-inline-form [hidden],
.ctct-embed-signup [hidden] {
  display: none !important;
}

.ctct-inline-form label,
.ctct-inline-form input,
.ctct-inline-form p,
.ctct-inline-form button,
.ctct-embed-signup label,
.ctct-embed-signup input,
.ctct-embed-signup p,
.ctct-embed-signup button {
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.ctct-inline-form input[type="email"],
.ctct-embed-signup input[type="email"] {
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
}

.ctct-inline-form button[type="submit"],
.ctct-embed-signup button[type="submit"],
.ctct-button {
  width: auto !important;
  min-width: 180px !important;
  max-width: 280px !important;
  margin: 14px auto 0 !important;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  background-color: #1a789e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
