/* --- FUENTES PERSONALIZADAS --- */
@font-face {
    font-family: 'MovilidadIntegrada';
    src: url('../fuente/MOVILIDAD_INTEGRADA_CDMX.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* --- ANIMACION DE CARGA --- */
@keyframes globalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes globalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: globalFadeIn 0.8s ease-out forwards, globalSlideUp 0.8s ease-out forwards;
}

/* --- ESTILOS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f2e9d3;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- COMPONENTE 1: ENCABEZADO --- */
.header {
    background-color: #f2e9d3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid #dcd4c6;
}

.header-divider {
    height: 14px;
    background-color: #103e4d;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* --- COMPONENTE 2: MENÚ --- */
.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(16, 62, 77, 0.08);
    color: #000;
}

.nav-menu a.active {
    background-color: #103e4d;
    color: #ffffff;
}

.nav-menu a.active:hover {
    background-color: #0c2d38;
    color: #ffffff;
}


/* Estilos globales para los botones de redes sociales */
.btn-social-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #8b2b2b;
    /* El color vino de tu imagen */
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    outline: none;
}

/* Efecto al pasar el mouse */
.btn-social-custom:hover {
    transform: translateY(-3px);
    background-color: #552826;
    box-shadow: 0 5px 15px rgba(108, 52, 49, 0.4);
}

/* Efecto al hacer clic */
.btn-social-custom:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(108, 52, 49, 0.4);
}

/* Tamaño y color del icono SVG dentro del botón */
.btn-social-custom svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

/* Estilos para el contacto */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- COMPONENTE 5: PIE DE PÁGINA (FOOTER) --- */
.footer {
    background-color: #0d3b43;
    border-top: none;
    padding: 40px 50px 20px;
    margin-top: auto;
}

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

.footer-col {
    flex: 1;
    min-width: 250px;
    /* Asegura que las columnas no se hagan muy delgadas en tablets */
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
    /* text-transform: uppercase;*/
}

.footer-col p,
.footer-col a {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #1a5965;
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 600;
}

/* --- COMPONENTE 4: RESPONSIVIDAD --- */

/* Tablets */
@media (max-width: 992px) {
    .header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section h2 {
        font-size: 3.8rem;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-section {
        padding: 40px 20px;
        text-align: center;
        /* Centramos en móviles para mejor lectura */
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section h2 {
        font-size: 3rem;
    }

    .hero-section .texto-rojo {
        font-size: 0.9rem;
    }

    /* Ajustes de espaciado en secciones para celular */
    .about-section {
        padding: 40px 20px;
    }

    .knowledge-section {
        padding: 40px 20px 60px;
    }

    .join-section {
        padding: 0 20px 40px;
    }

    /* Ajustes del Footer para celular */
    .footer {
        padding: 30px 20px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-col h3 {
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .footer-col>div[style*="display: flex"] {
        justify-content: center !important;
    }
}