/* =========================================================================
   1. TIPOGRAFÍA CORPORATIVA (OBLIGATORIA)
   ========================================================================= */
@import url("https://use.typekit.net/etx4aom.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");

/* =========================================================================
   2. SISTEMA DE VARIABLES AESTHETIC & THEME (PLACEHOLDERS)
   ========================================================================= */
:root {
    /* Tipografía Corporativa */
    --font-titulo: "ingra-wide", sans-serif;
    --font-titulo-light: 300;
    --font-titulo-regular: 400;
    --font-titulo-medium: 500;
    --font-titulo-bold: 700;

    --font-cuerpo: "Roboto Flex", sans-serif;
    --font-cuerpo-light: 300;
    --font-cuerpo-regular: 400;
    --font-cuerpo-medium: 500;
    --font-cuerpo-semibold: 600;
    --font-cuerpo-bold: 700;

    /* Nueva Paleta Corporativa */
    --color-blanco: #ffffff;
    --color-naranja-100: #f4d2c1;
    --color-naranja-300: #c45620; /* COLOR PRIMARIO INSTITUCIONAL */
    --color-naranja-500: #9c4419;
    --color-cafe: #6e3d14; /* COLOR SECUNDARIO INSTITUCIONAL */
    --color-gris-100: #f3f3f3;
    --color-gris-300: #d9d9d9;
    --color-gris-500: #343434;
    --color-gris-700: #232323;

    /* Efectos de Material (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --glass-blur: blur(16px);
}

/* =========================================================================
   3. RESET & ESTILOS BASE 
   ========================================================================= */
body {
    background-color: var(--color-blanco);
    color: var(--color-gris-700);
    font-family: var(--font-cuerpo);
    font-weight: var(--font-cuerpo-regular);
    overflow-x: hidden;
    line-height: 1.6;
}

main.main-content {
    background-color: var(--color-blanco);
}

/* Manejo explícito de fuentes importadas */
.font-titulo {
    font-family: var(--font-titulo);
}

.font-cuerpo {
    font-family: var(--font-cuerpo);
}

a {
    color: var(--color-naranja-300);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-cafe);
}

/* =========================================================================
   4. NAVEGACIÓN (GLASSMORPHISM)
   ========================================================================= */
.glass-navbar {
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.4s ease-in-out;
}

.glass-navbar .navbar-brand img {
    transition: transform 0.3s ease;
}

.glass-navbar .nav-link {
    font-family: var(--font-cuerpo);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
}

.glass-navbar .nav-link:hover {
    color: var(--color-blanco) !important;
}

/* Efecto underline en hover */
.glass-navbar .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--color-naranja-300);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.glass-navbar .nav-link:hover::after {
    width: 70%;
}

/* Estado al hacer scroll configurado vía JS nativo */
.glass-navbar.scrolled {
    background: rgba(35, 35, 35, 0.95); /* Negro semi transparente */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   5. HERO SECTION (MASTHEAD)
   ========================================================================= */
.masthead {
    background-color: var(--color-gris-700);
    overflow: hidden;
    color: var(--color-blanco);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    /* filter: contrast(1.5) saturate(0.5); */
}

/* Gradiente para mejorar la legibilidad del texto sobre el video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(100deg, rgba(35, 35, 35, 0.8) 0%, rgba(35, 35, 35, 0.6) 40%, rgba(35, 35, 35, 0.2) 100%);
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero-deadline {
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.hero-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-icon:hover {
    color: var(--color-naranja-300);
    transform: translateY(-4px) scale(1.1);
}

.cta-button {
    display: block;
    color: var(--color-blanco) !important;
    border: 2px solid var(--color-blanco);
    border-radius: 4px;
    transition: all 0.4s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-blanco);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-gris-700) !important;
    border-color: var(--color-blanco);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 0;
}

/* =========================================================================
   6. COMPONENTES & UTILIDADES GLOBALES
   ========================================================================= */
.text-accent {
    color: var(--color-naranja-300);
}

.text-body {
    color: var(--color-gris-700);
}

.bg-tint {
    background-color: var(--color-gris-100);
}

.bg-accent-soft {
    background-color: var(--color-naranja-100);
}

.section-title {
    color: var(--color-naranja-300);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

/* La decoración naranja debajo de los títulos principales */
.section-title.underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 4px;
    background-color: var(--color-naranja-300);
    border-radius: 2px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   7. SECCIÓN ABOUT Y TEXTOS COMPARTIDOS
   ========================================================================= */

.content-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-gris-700);
    margin-bottom: 1.5rem;
}

.cartel-img {
    max-width: 380px;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* =========================================================================
   8. TIMELINE / CONFERENCE TRACKS
   ========================================================================= */
.custom-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Línea conectora base y continua */
.custom-timeline::before {
    content: "";
    position: absolute;
    top: 3.5rem;
    left: -22px; /* Fuera de la tarjeta glass-card */
    bottom: 0rem;
    width: 2px;
    background: var(--color-naranja-300);
    opacity: 0.3;
    z-index: 0;
}

.custom-timeline .timeline-item {
    position: relative;
    z-index: 2;
}

/* El punto conector */
.custom-timeline .timeline-item::before {
    content: "";
    position: absolute;
    top: 3.5rem;
    left: -30px; /* Fuera de la tarjeta glass-card */
    width: 16px;
    height: 16px;
    background-color: var(--color-blanco);
    border: 3px solid var(--color-naranja-300);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Hover effect en el marcador */
.custom-timeline .timeline-item:hover::before {
    background-color: var(--color-naranja-300);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(196, 86, 32, 0.4);
}

.track-topics {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.track-topics li {
    padding: 0.3rem 0;
    font-size: 1.05rem;
    color: var(--color-gris-500);
    transition: color 0.2s ease;
}

.track-topics li:hover {
    color: var(--color-gris-700);
}

/* Responsive timeline para pantallas grandes: diseño intercalado opcional, pero lo mantendremos alineado a la izquierda por estética moderna limpia */

/* =========================================================================
   9. IMPORTANT DATES
   ========================================================================= */
/* Corrección de especificidad para las tarjetas de fechas */
.dates-container .date-row {
    border: 1px solid var(--color-gris-300) !important;
    background: var(--color-blanco) !important;
    transition: all 0.3s ease;
}

.dates-container .date-row.bg-accent-soft {
    background: var(--color-naranja-100) !important;
    border: 1px solid var(--color-naranja-300) !important;
}

.dates-container .date-row:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dates-container .date-row.bg-accent-soft:hover {
    background-color: rgba(196, 86, 32, 0.1);
}

.date-metric {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* =========================================================================
   10. FOOTER
   ========================================================================= */
.custom-footer {
    background-color: var(--color-gris-700);
    color: var(--color-blanco);
}

.footer-logo {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-links a:hover {
    color: var(--color-blanco) !important;
    text-decoration: underline;
}

.social-icon-footer {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-blanco) !important;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-footer:hover {
    background-color: var(--color-naranja-300);
    transform: translateY(-5px);
}

.smaller {
    font-size: 0.85rem;
}

/* =========================================================================
   11. RESPONSIVE QUERIES
   ========================================================================= */
@media (max-width: 991.98px) {
    /* Fondo oscuro para el menú móvil al desplegarse */
    #navbarMobile {
        background-color: rgba(35, 35, 35, 0.98);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .glass-navbar {
        background: rgba(35, 35, 35, 0.95);
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .custom-timeline::before {
        top: 2rem;
    }

    .custom-timeline .timeline-item::before {
        top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .dates-container .date-row {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .dates-container .col-4,
    .dates-container .col-8 {
        width: 100%;
        padding-left: 0 !important;
    }

    .dates-container .col-4 {
        margin-bottom: 0.5rem;
    }
}
