/* ======== VARIABLES DE COLOR Y FUENTES ======== */
:root {
    --color-verde-oscuro: #1A3A1A;
    --color-verde-medio: #3D8C40;
    --color-azul-utmb: #002D54;
    --color-texto-claro: #F0F0F0;
    --color-texto-oscuro: #121212;
    --font-principal: 'Outfit', sans-serif;
}

/* ======== ESTILOS GENERALES Y RESET ======== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-principal);
    background-color: var(--color-texto-claro);
    color: var(--color-texto-oscuro);
    line-height: 1.6;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* ======== MENÚ DE NAVEGACIÓN (NAVBAR) ======== */
.navbar { display: flex; justify-content: space-between; align-items: center; background-color: var(--color-verde-oscuro); padding: 0.8rem 2rem; position: sticky; top: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.nav-logo { width: 80px; height: auto; transition: transform 0.3s ease; }
.nav-logo:hover { transform: scale(1.05); }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; }
.nav-menu li a { color: var(--color-texto-claro); text-decoration: none; font-weight: 700; font-size: 0.9rem; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: border-bottom 0.3s ease; }
.nav-menu li a:hover { border-bottom: 2px solid var(--color-verde-medio); }
.nav-cta { background-color: var(--color-verde-medio); color: var(--color-texto-claro); padding: 0.7rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.nav-cta:hover { transform: scale(1.05); background-color: #55a058; }

/* ======== HERO SECTION (PÁGINA DE INICIO) ======== */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100vh; color: var(--color-texto-claro); background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/fondo-monte.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.hero-logo { width: 120px; margin-bottom: 1rem; }
.hero-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.5rem; font-weight: 400; margin-bottom: 2rem; }
.cta-button { display: inline-block; background-color: var(--color-verde-medio); color: var(--color-texto-claro); padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.3s ease; }
.cta-button:hover { transform: scale(1.05); background-color: #55a058; }
.cta-button.secondary { background-color: var(--color-azul-utmb); }
.cta-button.secondary:hover { background-color: #004481; }

/* ======== ESTILO PARA ENCABEZADOS DE PÁGINAS INTERNAS ======== */
.page-header { text-align: center; padding: 4rem 1rem 5rem 1rem; color: var(--color-texto-claro); background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/fondo-monte.jpg'); background-size: cover; background-position: center; }
.page-header h1 { font-size: 3rem; font-weight: 900; }
.page-header p { font-size: 1.2rem; max-width: 600px; margin: 0.5rem auto 0 auto; opacity: 0.9; }

/* ======== SECCIONES DE CONTENIDO Y ESTILOS ESPECÍFICOS ======== */
.content-section { padding: 5rem 0; }
.content-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 900; text-align: center; }
.dark-bg { background-color: var(--color-verde-oscuro); color: var(--color-texto-claro); }
.intro-text { text-align: center; max-width: 800px; margin: 0 auto 4rem auto; font-size: 1.1rem; }
.section-subtitle { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 2.5rem; margin-top: 3rem; }
.about-section { padding: 4rem 0; border-bottom: 1px solid #e0e0e0; }
.about-section:last-child { border-bottom: none; }
.about-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-section p { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; text-align: left; }
.about-grid p { text-align: left; margin: 0; }
.about-image { width: 100%; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pilar-card { text-align: center; padding: 2rem; }
.pilar-card i { font-size: 3rem; color: var(--color-verde-medio); margin-bottom: 1rem; }
.pilar-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.about-section.dark-bg { padding: 4rem 2rem; margin-left: -2rem; margin-right: -2rem; border-radius: 15px; }
.distancia-wrapper { background-color: #ffffff; padding: 2.5rem; border-radius: 15px; margin-bottom: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.07); border: 1px solid #eee; }
.distancia-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 2px solid var(--color-verde-medio); padding-bottom: 1rem; margin-bottom: 1rem; }
.distancia-header h2 { font-size: 2.5rem; margin-bottom: 0; }
.distancia-subtitle { font-size: 1.5rem; font-weight: 400; color: #555; }
.utmb-badge, .novedad-badge { padding: 0.5rem 1rem; border-radius: 50px; font-weight: 700; color: var(--color-texto-claro); font-size: 0.9rem; }
.utmb-badge { background-color: var(--color-azul-utmb); }
.novedad-badge { background-color: #e67e22; }
.distancia-descripcion { font-size: 1.1rem; margin-bottom: 1.5rem; text-align: left; }
.datos-tecnicos { list-style: none; padding: 0; font-size: 1.1rem; text-align: left; }
.datos-tecnicos li { padding-left: 25px; position: relative; margin-bottom: 0.5rem; }
.datos-tecnicos li::before { content: '›'; position: absolute; left: 0; color: var(--color-verde-medio); font-weight: 900; font-size: 1.5rem; line-height: 1; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.info-card { background: #fff; padding: 2rem; border-radius: 15px; text-align: center; border: 1px solid #eee; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.info-card i { font-size: 2.5rem; color: var(--color-verde-medio); margin-bottom: 1rem; }
.info-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.dark-bg-section { background-color: var(--color-verde-oscuro); color: var(--color-texto-claro); padding: 4rem 2rem; margin: 4rem -2rem; border-radius: 15px; }
.dark-bg-section .info-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); }
.dark-bg-section .info-card i { color: var(--color-texto-claro); }
.map-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; margin-top: 2rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.certification-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.certification-card { background: #fff; border: 1px solid #eee; border-radius: 15px; padding: 2.5rem 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; text-align: center; }
.certification-logo { max-height: 60px; width: auto; margin: 0 auto 1.5rem auto; object-fit: contain; }
.certification-card h2 { font-size: 2rem; margin-bottom: 0.25rem; }
.certification-card h3 { font-size: 1.1rem; font-weight: 400; color: #555; margin-bottom: 1rem; }
.certification-list { list-style: none; padding: 0; margin: 1rem 0; text-align: center; }
.certification-list li { font-weight: 700; margin-bottom: 0.5rem; }
.certification-card .cta-button { margin-top: auto; }
.document-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.document-card { background: #f9f9f9; border: 1px solid #eee; padding: 2rem; border-radius: 15px; text-align: center; }
.document-card i { font-size: 2.5rem; color: var(--color-verde-medio); margin-bottom: 1rem; }
.document-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.status-badge { display: inline-block; margin-top: 1rem; padding: 0.4rem 1rem; background-color: #e0e0e0; color: #555; border-radius: 50px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 58, 26, 0.7); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.distancias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.distancia-card { background: rgba(255, 255, 255, 0.05); padding: 2rem; border-radius: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 4rem; }
.contact-card { background-color: #ffffff; padding: 2.5rem 2rem; border-radius: 15px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid #eee; }
.contact-icon { font-size: 3rem; color: var(--color-verde-medio); margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.contact-card p { margin-bottom: 1.5rem; min-height: 80px; }
.social-links { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e0e0e0; }
.social-links h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.social-links a { font-size: 2.5rem; color: var(--color-texto-oscuro); margin: 0 1rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--color-verde-medio); }
.countdown { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2.5rem; text-align: center; }
.time-unit { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.25); border-radius: 15px; width: 100px; height: 100px; backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); }
.time-unit span { font-size: 3rem; font-weight: 700; line-height: 1; }
.time-unit label { font-size: 0.8rem; text-transform: uppercase; font-weight: 400; margin-top: 5px; }

/* ======== ANIMACIONES ======== */
@keyframes logoEntrance { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-logo { animation: logoEntrance 0.8s ease-out forwards; }
.hero-title, .hero-subtitle, .countdown, .hero .cta-button { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.hero-title { animation-delay: 0.5s; }
.hero-subtitle { animation-delay: 0.8s; }
.countdown { animation-delay: 1.1s; }
.hero .cta-button { animation-delay: 1.4s; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ======== FOOTER ======== */
footer { text-align: center; padding: 2rem; background: var(--color-texto-oscuro); color: var(--color-texto-claro); }

/* ======== RESPONSIVE Y MENÚ HAMBURGUESA ======== */
.hamburger-menu { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger-menu .bar { display: block; width: 25px; height: 3px; background-color: var(--color-texto-claro); transition: all 0.3s ease-in-out; }


/* ======== ESTILO PARA LA SECCIÓN UTMB (PÁGINA DE INICIO) ======== */
.utmb-section {
    text-align: center; /* ¡La clave! Centra todo el contenido */
}

.utmb-section p {
    max-width: 600px; /* Limita el ancho del párrafo para que no se extienda demasiado */
    margin: 0 auto 2rem auto; /* Centra el párrafo y le da espacio inferior */
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ======== ESTILOS PARA AVISOS Y PÁGINA DE GRACIAS ======== */

.aviso-importante {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fffbe6; /* Amarillo pálido de advertencia */
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}
.aviso-importante i {
    color: #fadb14;
    font-size: 1.5rem;
}
.aviso-importante p {
    margin: 0;
    font-size: 0.95rem;
    color: #594300;
}

.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.thank-you-card {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
}
.success-icon {
    font-size: 4rem;
    color: var(--color-verde-medio);
    margin-bottom: 1rem;
}
.thank-you-card h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.final-step-box {
    background-color: #f9f9f9;
    border: 2px dashed var(--color-verde-medio);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}
.final-step-box h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--color-verde-oscuro);
    margin-bottom: 0.5rem;
}
.final-step-box .cta-button i {
    margin-right: 8px;
}
.back-to-home {
    margin-top: 1rem;
    display: inline-block;
    color: #555;
    font-weight: 700;
}

/* ======== SECCIÓN DE SPONSORS (HOMEPAGE) ======== */

/* ======== SECCIÓN DE SPONSORS (HOMEPAGE) ======== */

.sponsors-section {
    background-color: #f9f9f9;
    padding: 4rem 0; /* Ajustamos el padding para que lo controle el container */
    border-top: 1px solid #eee;
    text-align: center; /* ¡La clave! Centra el título h2 */
}

.sponsors-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2.5rem; /* Aumentamos el espacio bajo el título */
}

.sponsors-grid {
    display: grid;
    /* Mantenemos la grilla de 6 columnas para escritorio */
    grid-template-columns: repeat(67, 1fr); 
    gap: 2.5rem; /* Espacio entre logos */
    align-items: center;
}

.sponsor-logo img {
    max-width: 120px; 
    max-height: 50px;
    width: auto;
    margin: auto; /* Centra la imagen dentro de su celda */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsor-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.sponsor-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* === RESPONSIVE PARA SPONSORS === */
/* Hacemos que la grilla se adapte en pantallas más chicas */
/* ======== RESPONSIVE Y MENÚ HAMBURGUESA (UNIFICADO Y CORREGIDO) ======== */

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-texto-claro);
    transition: all 0.3s ease-in-out;
}

/* Para Tablets y pantallas medianas */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 77px; /* Ajusta a la altura de tu navbar */
        flex-direction: column;
        background-color: var(--color-verde-oscuro);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-bottom: 1rem;
        border-top: 1px solid var(--color-verde-medio);
    }

    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Para Celulares y pantallas chicas */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .content-section h2 {
        font-size: 2rem;
    }
    
    /* Hacemos que todas las grillas se apilen en una sola columna */
    .distancias-grid, .contact-grid, .certification-grid, .pilares-grid, .document-list, .info-grid, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .distancia-wrapper {
        padding: 1.5rem;
    }
    
    .distancia-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .distancia-header h2 {
        font-size: 2rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .distancia-subtitle {
        display: none;
    }

    .utmb-badge, .novedad-badge {
        margin-top: 0.5rem;
    }
    
    .contact-card p {
        min-height: auto;
    }

    .countdown {
        gap: 0.5rem;
    }
    .time-unit {
        width: 75px;
        height: 75px;
        border-radius: 10px;
    }
    .time-unit span {
        font-size: 2rem;
    }
    .time-unit label {
        font-size: 0.7rem;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #subscription-form {
        flex-direction: column;
        align-items: stretch;
    }

    .email-input {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 10px auto;
    }

    .subscribe-button {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ======== ESTILOS PARA IFRAME RESPONSIVO ======== */
.iframe-container {
    position: relative;
    width: 100%;
    height: 800px; /* Podés ajustar esta altura según necesites */
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* Para un scroll suave en iOS */
    border: 1px solid #ddd;
    border-radius: 15px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Estilo para el aviso de verificación en la página de Gracias */
.verification-notice {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
}

.verification-notice a {
    color: var(--color-verde-medio);
    font-weight: 700;
    text-decoration: none;
}

.verification-notice a:hover {
    text-decoration: underline;
}

/* ======== ESTILOS PARA PÁGINA HUB DE INSCRIPCIÓN ======== */

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.hub-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--color-texto-oscuro);
    transition: all 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--color-verde-medio);
}

.hub-card i {
    font-size: 3rem;
    color: var(--color-verde-medio);
    margin-bottom: 1rem;
}

.hub-card h2 {
    margin-bottom: 0.5rem;
}

/* Responsivo para el Hub */
@media (max-width: 768px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}