/* Generales y Reseteo Básico */
:root {
    --primary-color: #1C396B ; /* #007bff Azul de ciencia/tecnología */
    --secondary-color: #6c757d; /* Gris para elementos secundarios */
    --accent-color: #9E2340; /* Verde para puntos destacados/éxito */
    --light-bg: #f8f9fa; /* Fondo claro para secciones alternas */
    --blue-bg: #1C396B; /* Fondo oscuro para header/footer */
    --white-bg:#ffffff;
    --text-color: #333333; /* Color de texto principal */
    --white-text: #ffffff;
    --border-color: #e0e0e0; /* Color para bordes y líneas */
    --font-family: 'Roboto', sans-serif;
    --heading-font-family: 'Roboto', sans-serif; /* Puedes usar otra si quieres */
    --box-shadow: 0 4px 15px rgb(245, 241, 241);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-text);
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en enlaces de ancla */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0; /* Espaciado uniforme para todas las secciones */
    text-align: center; /* Alineación por defecto al centro */
}

.bg-light {
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

h1 { font-size: 3.8em; }
h2 { font-size: 2.8em; margin-bottom: 40px; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* Botones más redondeados */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Eliminar borde por defecto */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-text);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #1C396B /*#0056b3*/;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-text);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
}

/* --- Header / Barra de Navegación --- */
.main-header {
    background-color: var(--white-bg);
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white-text);
    font-size: 1.5em;
    font-weight: bold;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue-bg);
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after { /* Animación de subrayado */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del icono de hamburguesa a cruz */
.nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }


/* --- Sección Principal del Evento (Hero Section) --- */
.hero-section {
    position: relative;
    height: 90vh; /* Mayor altura para impacto */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blue-bg);
    overflow: hidden;
   background-color:#e9f0f6; /* Fondo de respaldo */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    filter: brightness(0.6); /* Más oscuro para mejor contraste */
    z-index: 1;
    animation: zoomOut 20s infinite alternate; /* Animación de zoom sutil */
}

@keyframes zoomOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.3); /* Fondo semitransparente para el texto */
    border-radius: var(--border-radius);
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    color: inherit;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.6em;
    margin-bottom: 40px;
    font-weight: 300;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px; /* Mayor espacio entre elementos */
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    min-width: 120px; /* Ancho mínimo para mantener la forma */
}

.countdown-item span {
    font-size: 1.8em; /* Números más grandes */
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}

/* --- Sección de Descripción del Evento --- */
.about-section .container {
    text-align: left;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px; /* Mayor espacio entre columnas */
    align-items: flex-start;
}

.about-description {
    flex: 2;
    min-width: 350px;
}

.about-description p {
    font-size: 1.1em;
    line-height: 1.8;
}

.about-video {
    flex: 1;
    min-width: 320px;
    position: relative;
    padding-bottom: 28%; /* Relación de aspecto para video 16:9 con ancho de 50% */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Acordeón */
.accordion-group {
    margin-top: 30px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: var(--light-bg);
    padding: 18px 25px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e9f0f6;
    color: #0056b3;
}

.accordion-header .icon {
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.accordion-header.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--white-text);
}

.accordion-content p, .accordion-content ul {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
}
.accordion-content ul {
    list-style: disc;
    margin-left: 20px;
}

/* --- Sección de Galería de Imágenes --- */
.gallery-section h2 {
    color: var(--dark-bg);
}

.gallery-filters {
    margin-bottom: 40px;
}

.gallery-filters .filter-btn {
    background-color: var(--primary-color);
    color: var(--white-text);
    border: none;
    padding: 10px 25px;
    margin: 5px 8px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1em;
}

.gallery-filters .filter-btn:hover {
    background-color: #1C396B /* #0056b3*/;
    transform: translateY(-2px);
}

.gallery-filters .filter-btn.active {
    background-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.8);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.7);
    color: var(--white-text);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000; /* Alto z-index para estar sobre todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--white-text);
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
}

.close-btn, .prev-btn, .next-btn {
    position: absolute;
    color: var(--white-text);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    user-select: none; /* Evita que el texto sea seleccionable */
}

.close-btn {
    top: 20px;
    right: 35px;
}

.prev-btn {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
}

.next-btn {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
}

.close-btn:hover,
.prev-btn:hover,
.next-btn:hover {
    color: var(--primary-color);
}

/* --- Sección de Pronóstico del Tiempo --- */
.weather-section {
    padding-bottom: 0; /* Para que el widget se vea mejor */
}

.weather-widget {
    background-color: var(--white-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto 40px auto; /* Más margen abajo */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.current-weather .weather-icon {
    font-size: 6em; /* Ícono más grande */
    margin-bottom: 10px;
    line-height: 1;
}

.current-weather .temperature {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.current-weather .description {
    font-size: 1.4em;
    margin-bottom: 15px;
    text-transform: capitalize; /* Capitaliza la primera letra */
}

.current-weather .location {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.forecast-days {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    gap: 15px;
}

.forecast-item {
    flex: 1;
    min-width: 100px; /* Ancho mínimo para cada día */
    text-align: center;
    padding: 10px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.forecast-item p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.forecast-item .icon {
    font-size: 2.5em;
    display: block;
    margin: 5px 0;
}

.forecast-item .temp {
    font-weight: bold;
    color: var(--primary-color);
}

.weather-source-link {
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    display: block;
}

.weather-source-link:hover {
    text-decoration: underline;
}

/* --- Sección de Calendario de Presentaciones --- */
.schedule-section h2 {
    color: var(--dark-bg);
}

.schedule-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.schedule-controls input,
.schedule-controls select {
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Más redondeados */
    font-size: 1em;
    flex: 1;
    min-width: 220px;
    background-color: var(--white-text);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.schedule-controls input:focus,
.schedule-controls select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.schedule-table {
    overflow-x: auto;
    background-color: var(--white-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px; /* Padding interno para la tabla */
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ancho mínimo para evitar colapsar demasiado */
}

.schedule-table th,
.schedule-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white-text);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95em;
    position: sticky; /* Fija los encabezados al hacer scroll */
    top: 0;
    z-index: 1;
}
/* Estilo para los bordes redondeados en los theads */
.schedule-table thead tr:first-child th:first-child { border-top-left-radius: var(--border-radius); }
.schedule-table thead tr:first-child th:last-child { border-top-right-radius: var(--border-radius); }


.schedule-table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

.schedule-table tbody tr:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

.schedule-table tbody tr.hidden {
    display: none; /* Usado por JS para filtrar */
}

.schedule-item-details-btn {
    background-color: var(--accent-color);
    color: var(--white-text);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.schedule-item-details-btn:hover {
    background-color: #1C396B /*#218838*/;
}

/* Modal para detalles de presentación (similar al Lightbox) */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--white-text);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 2em;
}

.modal-content p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.modal-content p strong {
    color: var(--dark-bg);
}

.modal-content .add-to-calendar-btn {
    margin-top: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* --- Sección de Patrocinadores --- */
.sponsors-section h2 {
    color: var(--dark-bg);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: center;
    padding: 20px;
}

.sponsor-logo {
    display: block;
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    /*filter: grayscale(100%) opacity(0.7);  Grises y semitransparente */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sponsor-logo:hover img {
    filter: grayscale(0%) opacity(1); /* Color al pasar el ratón */
    transform: scale(1.08);
}

.sponsor-logo::before { /* Tooltip al pasar el ratón */
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-bg);
    color: var(--white-text);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none; /* Permite hacer clic en el logo a través del tooltip */
}

.sponsor-logo:hover::before {
    opacity: 1;
    bottom: -40px; /* Subir un poco el tooltip */
}

/* seccion cartas de menu  */

.card-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .card {
      position: relative;
      height: 150px;
      padding: 20px;
      border-radius: 12px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: white;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .card::before {
      content: \"\";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4); /* transparencia oscura para legibilidad */
      border-radius: 12px;
    }

    .card h3 {
      position: relative;
      z-index: 1;
      font-size: 1rem;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 12px rgba(0,0,0,0.3);
    }

    /* Ejemplo de imágenes de fondo transparentes */
    .programa      { background-image: url('https://via.placeholder.com/300x150/004080/ffffff?text=Programa'); }
    .hospedaje     { background-image: url('https://via.placeholder.com/300x150/005f73/ffffff?text=Hospedaje'); }
    .alimentos     { background-image: url('https://via.placeholder.com/300x150/0a9396/ffffff?text=Alimentos'); }
    .organigrama   { background-image: url('https://via.placeholder.com/300x150/94d2bd/ffffff?text=Organigrama'); }
    .plano         { background-image: url('https://via.placeholder.com/300x150/ee9b00/ffffff?text=Plano'); }
    .medicos       { background-image: url('https://via.placeholder.com/300x150/ca6702/ffffff?text=M%C3%A9dicos'); }
    .coordinador   { background-image: url('https://via.placeholder.com/300x150/bf0603/ffffff?text=Coordinador'); }
    .evaluacion    { background-image: url('https://via.placeholder.com/300x150/9b2226/ffffff?text=Evaluaci%C3%B3n'); }
    .formatos      { background-image: url('https://via.placeholder.com/300x150/6a4c93/ffffff?text=Formatos'); }
    .hackatec      { background-image: url('https://via.placeholder.com/300x150/3a0ca3/ffffff?text=Hackatec'); }
    .certamen      { background-image: url('https://via.placeholder.com/300x150/4361ee/ffffff?text=Certamen'); }


/* --- Sección de Hoteles --- */




.hotels-section h2 {
    color: var(--dark-bg);
}

.hotel-map-container {
    margin-bottom: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

#map {
    height: 450px; /* Mayor altura para el mapa */
    width: 100%;
    border: none;
}

.hotel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.hotel-item {
    background-color: var(--white-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: left; /* Alineado a la izquierda */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hotel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.hotel-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.8em;
    text-align: left;
}

.hotel-item p {
    margin-bottom: 8px;
    font-size: 1em;
}

.hotel-item p strong {
    color: var(--dark-bg);
}

.hotel-item .btn {
    margin-top: 20px;
    width: fit-content;
    display: block; /* Para centrar con margin auto */
    margin-left: 0; /* Asegurar que no se centre automáticamente si no es el deseo */
}
.hotel-item .btn-secondary {
    background-color: var(--primary-color); /* Usar color primario para el botón de hotel */
    border: none;
}
.hotel-item .btn-secondary:hover {
    background-color: #0056b3;
}


/* --- Sección de Contacto --- */
.contact-section {
    padding-bottom: 80px;
}

.contact-section p {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-text);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left; /* Alinear el formulario a la izquierda */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-bg);
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    background-color: var(--white-text);
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2em;
    border-radius: var(--border-radius); /* Botón más rectangular en formulario */
}


/* --- Footer --- */
.main-footer {
    background-color: var(--dark-bg); 
    color: var(--dark-bg);
    padding: 40px 0;
    text-align: center;
    font-size: 0.95em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a img {
    height: 28px;
   /* filter: invert(1);  Para que los íconos se vean blancos */
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: translateY(-5px) scale(1.1);
}

.main-footer p span {
    color: #e25555;  
    font-size: 1.2em;
}

/* --- Media Queries para Responsividad --- */

/* Tablets y pantallas medianas (992px y abajo) */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 75px; /* Ajusta según la altura de tu header */
        left: 0;
        background-color: var(--dark-bg);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        margin: 15px 0;
    }
    .nav-links a::after {
        display: none; /* Oculta el subrayado en el menú móvil */
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    .countdown {
        gap: 20px;
        font-size: 1.8em;
    }
    .countdown-item span {
        font-size: 1.5em;
    }

    .about-grid {
        flex-direction: column;
        gap: 40px;
    }
    .about-description,
    .about-video {
        width: 100%;
        min-width: unset;
    }
    .about-video {
        padding-bottom: 56.25%; /* 16:9 completo */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .schedule-controls {
        flex-direction: column;
        align-items: center;
    }
    .schedule-controls input,
    .schedule-controls select {
        width: 90%;
        max-width: 400px;
    }

    .schedule-table {
        padding: 10px;
    }

    .sponsor-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 25px;
    }

    .hotel-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-form {
        padding: 30px;
    }
}

/* Móviles pequeños (576px y abajo) */
@media (max-width: 576px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }

    .hero-section {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .countdown {
        flex-wrap: wrap; /* Permite que los ítems del contador se envuelvan */
        gap: 15px;
        font-size: 1.2em;
    }
    .countdown-item {
        min-width: unset;
        flex: 1 1 45%; /* Dos columnas para ítems */
        padding: 10px 15px;
    }
    .countdown-item span {
        font-size: 1.3em;
    }

    .content-section {
        padding: 60px 0;
    }
    .container {
        padding: 0 15px;
    }

    .accordion-header {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Una columna en móviles muy pequeños */
    }

    .weather-widget {
        padding: 25px;
    }
    .current-weather .temperature {
        font-size: 3em;
    }
    .forecast-days {
        flex-direction: column;
        gap: 10px;
    }

    .schedule-table {
        min-width: unset; /* Deja que la tabla se ajuste */
    }
    .schedule-table th,
    .schedule-table td {
        padding: 12px 10px; /* Menor padding en celdas */
        font-size: 0.9em;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en móviles */
        gap: 15px;
    }
    .sponsor-logo img {
        max-height: 70px;
    }

    .hotel-list {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .main-footer .container {
        gap: 10px;
    }
    .social-links {
        gap: 15px;
    }
}