:root {
    --primary: #515173;
    --secondary: #dd9a00;
    --accent: #c67477;
    --bg-light: #ffedb0;
    --bg-dark: #427079;
    --text-dark: #8a626d;
    --text-light: #e2d8a9;
    --highlight: #a5c3c9;
    --black: #000000;
    --darkgray: #69727d;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

html, body {
  overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background: rgba(81, 81, 115, 0.2); /* #515173 con 50% opacidad para mayor transparencia */
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 237, 176, 0.2); /* Mantengo borde sutil */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.language-switcher span {
    cursor: pointer;
    margin: 0 4px;
    color: var(--text-light);
    transition: color 0.3s;
}

.language-switcher span.active,
.language-switcher span:hover {
    color: var(--secondary);
}

/* ============================
   HERO SECTION
============================ */
#hero {
    position: relative;
    height: 100vh;
    margin-top: -70px; /* Ajusta según el alto real del header */
    padding-top: 70px;  /* Para que el contenido no quede oculto tras el nav */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


#hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


#hero h1 {
    font-size: 3em;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero p {
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sliding-text {
    position: absolute;
    bottom: 25%;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.sliding-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  min-width: 200%; /* o 300% si tienes más repeticiones */
}


.sliding-track span {
    display: inline-block;
    padding-right: 2rem;
    font-size: 1.2em;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================
   TABS
============================ */
.main-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: var(--black);
    padding: 15px;
}

.main-tab-button {
    padding: 10px 20px;
    border: none;
    background-color: var(--darkgray);
    color: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-tab-button.active,
.main-tab-button:hover {
    background-color: var(--text-light);
    color: var(--darkgray);
}

/* Subtabs */
.sub-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.sub-tab-button {
    padding: 8px 16px;
    background-color: var(--black);
    color: white;
    border: 1px solid var(--primary);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
}

.sub-tab-button.active,
.sub-tab-button:hover {
    background-color: var(--secondary);
    color: white;
}

/* ============================
   CONTENIDO PRINCIPAL
============================ */
.main-tab-content {
    display: none;
    padding: 20px;
}

.main-tab-content.active {
    display: block;
}

/* ============================
   TABLAS
============================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95em;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
}

th {
    background-color: var(--primary);
    color: white;
    text-align: left;
}

td {
    background-color: #fff;
}

/* ============================
   OTROS COMPONENTES
============================ */

#buy-tickets a {
    background-color: var(--bg-light);
    color: var(--darkgray);
    padding: 10px 25px;
    text-decoration: none;
    transition: background-color 0.3s;
}

#buy-tickets a:hover {
    background-color: var(--darkgray);
    color: var(--text-light);
}

.sliding-text-cat p {
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    font-size: 1.1em;
    color: var(--bg-light);
}

/* ============================
   FOOTER
============================ */
footer {
    padding: 20px;
    text-align: center;
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 0.9em;
}

/* ============================
   UTILIDADES RESPONSIVAS
============================ */
@media (max-width: 768px) {
    #hero h1 { font-size: 2em; }
    #hero p { font-size: 1.2em; }
    .sliding-track span { font-size: 1em; }
    .main-tab-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .sub-tabs {
        flex-direction: column;
    }
    table {
        font-size: 0.85em;
    }
}

.hero-logo {
    max-width: 60%;
    height: auto;
    margin-bottom: 1rem;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ===== INTRO PABELLÓN ===== */
.intro-pabellon {
  padding: 40px 20px;
  background-color: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  
}

.intro-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--black);
  margin: 0;
}

.intro-text p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: .9rem;
  color: var(--black);
  line-height: 1.6;
}

.intro-text p strong {
  color: var(--primary);
}

.registro-btn {
  display: inline-block;
  background-color: var(--black);
  color: var(--text-light);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-top: 8px;
  text-align: center;
}

.registro-btn:hover {
  background-color: darken(var(--primary), 10%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .intro-text {
    align-items: center;
  }
  .intro-text h2 {
    font-size: 1.75rem;
  }
  .intro-text p {
    font-size: 0.95rem;
  }
  .registro-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== PROGRAMACIÓN POR ESPACIO ===== */
#program h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.accordion-header {
  width: 100%;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: white;
  border: 1px solid black;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
}

.accordion-header.active {
  background-color: black;
  color: white;
}

.accordion-content {
  padding: 0 0 20px 0;
  display: none;
}

.accordion-content.open {
  display: block;
}

/* ===== SUB-ACORDEONES POR DÍA ===== */
.sub-accordion-header {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 500;
  background-color: white;
  border: 1px solid #999;
  text-align: left;
  cursor: pointer;
  margin: 10px 0 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.sub-accordion-header.active {
  background-color: var(--secondary);
  color: white;
}

.sub-accordion-content {
  padding: 10px 0 30px;
  display: none;
}

.sub-accordion-content.open {
  display: block;
}

/* TABLAS */
#program table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

#program th, #program td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

#program th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .accordion-header,
  .sub-accordion-header {
    font-size: 0.95rem;
    padding: 14px;
  }

  #program table {
    font-size: 0.85em;
  }
}

/* ===== FONDOS PARA BUY-TICKETS Y CATEGORIES ===== */
.fondo-compartido {
  position: relative;
  background-image: url('img/EDEN-L-53-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  overflow: hidden;
}

.fondo-compartido::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7); /* Overlay oscuro para contraste */
  pointer-events: none;
  z-index: 0;
}

.fondo-compartido > section {
  position: relative;
  z-index: 1;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.fondo-compartido h2 {
  color: #fff;
}

.program-day-table {
  margin: 0 auto 32px auto;
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
  overflow-x: auto;
  padding: 18px 8px;
}

.program-day-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1em;
  min-width: 650px;
  background: transparent;
}

.program-day-table th, .program-day-table td {
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
}

.program-day-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
}

.program-day-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .program-day-table table {
    min-width: 100%;
    font-size: 0.95em;
  }
  .program-day-table th, .program-day-table td {
    padding: 10px 5px;
  }
}

/* ===== TABLAS DE PROGRAMACIÓN ===== */
#program .sub-accordion-content .program-day-table {
  margin: 20px auto;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

#program .sub-accordion-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  min-width: 800px;
}

#program .sub-accordion-content th {
  background-color: var(--primary) !important;
  color: white !important;
  padding: 12px 15px;
  text-align: left;
  position: sticky;
  top: 0;
}

#program .sub-accordion-content td {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

#program .sub-accordion-content tr:last-child td {
  border-bottom: none;
}

#program .sub-accordion-content tr:hover td {
  background-color: rgba(221, 154, 0, 0.05);
}

/* Responsive */
@media (max-width: 992px) {
  #program .sub-accordion-content .program-day-table {
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }
  
  #program .sub-accordion-content table {
    min-width: 100%;
    font-size: 0.85em;
  }
  
  #program .sub-accordion-content th, 
  #program .sub-accordion-content td {
    padding: 8px 12px;
  }
}

/* ===== TABLAS DE PROGRAMACIÓN - COLOMBIAMODA PREMIUM (colores ajustados) ===== */
#program .sub-accordion-content .program-day-table {
  margin: 30px auto 35px auto;
  background: rgba(255,255,255,0.98);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(105,114,125,0.07); /* usar tonalidad de darkgray */
  border: 1.5px solid #ede5d9;
  overflow-x: auto;
  padding: 8px 0 18px 0;
  transition: box-shadow 0.22s;
}

#program .sub-accordion-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  font-size: 1.04em;
  background: transparent;
}

#program .sub-accordion-content th,
#program .sub-accordion-content td {
  font-family: 'Montserrat', 'Gibson', sans-serif;
  font-size: 0.8em;
  letter-spacing: 0.02em;
  color: var(--black);
  border: none;
  padding: 18px 18px;
}

#program .sub-accordion-content th {
  background: linear-gradient(90deg, var(--black) 80%, var(--text-light) 120%);
  color: #fff !important;
  font-size: 1em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(105,114,125,0.05);
  position: sticky;
  top: 0;
  z-index: 1;
  border: none;
}

#program .sub-accordion-content td {
  background: transparent;
}

#program .sub-accordion-content tbody tr:nth-child(odd) td {
  background: rgba(226,216,169,0.04); /* soft beige acorde a text-light */
}

#program .sub-accordion-content td:first-child {
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.11em;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

#program .sub-accordion-content tr:hover td {
  background: rgba(226,216,169,0.11);
  color: var(--darkgray);
  transition: background 0.22s, color 0.15s;
}

#program .sub-accordion-content tr:last-child td {
  border-bottom: none;
}

@media (max-width: 992px) {
  #program .sub-accordion-content .program-day-table {
    border-radius: 0;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    box-shadow: none;
  }
  #program .sub-accordion-content table {
    min-width: 420px;
    font-size: 0.98em;
  }
  #program .sub-accordion-content th,
  #program .sub-accordion-content td {
    padding: 10px 7px;
  }
}

/* ============================
   FOOTER COLOMBIAMODA
============================ */
.site-footer {
  background: #000;
  border-top: 1px solid var(--secondary);
  padding: 24px 0;
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 1) Iconos sociales */
.footer-social a {
  color: #fff;
  margin-right: 16px;
  font-size: 1.2em;
  transition: color 0.3s;
}
.footer-social a:last-child {
  margin-right: 0;
}
.footer-social a:hover {
  color: var(--secondary);
}

/* 2) Crédito */
.footer-credit a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9em;
  transition: color 0.3s;
}
.footer-credit a:hover {
  color: var(--secondary);
}

/* 3) Logo */
.footer-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-social {
    margin-bottom: 12px;
  }
  .footer-credit {
    margin-bottom: 12px;
  }
}
