/* ===================================================
   VARIABLES
=================================================== */

:root {

    --ieee-azul: #00629B;
    --ieee-azul-oscuro: #002A4A;

    --amarillo: #f5b400;

    --texto: #17202a;
    --texto-suave: #667085;

    --gris: #f5f7fa;
    --blanco: #ffffff;

    --borde: #e4e9ee;

    --sombra:
        0 8px 25px rgba(0, 42, 74, 0.10);
}


/* ===================================================
   GENERAL
=================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--texto);

    background: #ffffff;

    overflow-x: hidden;
}


a {
    text-decoration: none;
}


img {
    max-width: 100%;
}


.contenedor {

    width: 90%;

    max-width: 1250px;

    margin: auto;
}



/* ===================================================
   HEADER
=================================================== */

.header-principal {

    background: white;

    position: sticky;

    top: 0;

    z-index: 1000;

    border-bottom:
        1px solid #edf0f3;

    box-shadow:
        0 3px 15px rgba(0,0,0,0.06);
}


.navegacion {

    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;
}



/* LOGO */

.logo-ieee {

    display: flex;

    align-items: center;

    gap: 8px;
}


.logo-simbolo {

    color: var(--ieee-azul);

    font-size: 35px;

    font-weight: 700;
}


.logo-texto {

    display: flex;

    flex-direction: column;

    line-height: 0.95;
}


.logo-texto strong {

    color: var(--ieee-azul);

    font-size: 27px;

    font-weight: 800;
}


.logo-texto span {

    color: var(--amarillo);

    font-size: 16px;

    font-weight: 700;
}



/* ===================================================
   MENÚ
=================================================== */

.menu-principal {

    display: flex;

    align-items: center;

    gap: 5px;
}


.menu-principal > a {

    color: #111827;

    font-size: 14px;

    font-weight: 600;

    padding:
        11px 15px;

    border-radius: 7px;

    transition: 0.25s;
}


.menu-principal > a:hover {

    color:
        var(--ieee-azul);

    background: #eef7fc;
}


.menu-principal > a.activo {

    color: white;

    background:
        var(--ieee-azul);
}


.menu-principal .btn-unete {

    background:
        var(--amarillo);

    color: #17202a;

    margin-left: 12px;

    padding:
        12px 20px;
}


.menu-principal .btn-unete:hover {

    background: #ffc428;

    color: #17202a;
}



/* ===================================================
   HAMBURGUESA
=================================================== */

.menu-toggle {

    display: none;

    border: 0;

    background: transparent;

    width: 42px;

    cursor: pointer;
}


.menu-toggle span {

    display: block;

    width: 28px;

    height: 3px;

    margin: 5px auto;

    border-radius: 5px;

    background:
        var(--ieee-azul-oscuro);
}



/* ===================================================
   HERO
=================================================== */

.hero-inicio {

    min-height: 480px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    color: white;

    /* Solo sirve como respaldo
       si alguna imagen no carga */
    background: #0b4568;
}

/* ===================================================
   SLIDER PORTADA
=================================================== */

.hero-slider {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    overflow: hidden;
}

.hero-slide {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    opacity: 0;

    transition: opacity 1s ease-in-out;
}


.hero-slide.activo {

    opacity: 1;
}
.hero-capa {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 30, 50, 0.40) 0%,
            rgba(0, 30, 50, 0.18) 45%,
            rgba(0, 30, 50, 0.02) 100%
        ); 
}


.hero-grid {

    position: relative;

    z-index: 2;

    width: 100%;
}


.hero-texto {

    max-width: 670px;

    padding:
        65px 0;
}


.hero-etiqueta {

    display: inline-block;

    color: #9bdcff;

    letter-spacing: 2px;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 15px;
}


.hero-texto h1 {

    font-size:
        clamp(
            38px,
            5vw,
            60px
        );

    line-height: 1.03;

    margin-bottom: 8px;
}


.hero-texto h1 span {

    display: block;
}


.hero-texto h2 {

    color: #87d6ff;

    font-size:
        clamp(23px,3vw,32px);

    margin-bottom: 20px;
}


.hero-texto p {

    font-size: 18px;

    line-height: 1.6;

    color:
        rgba(255,255,255,0.9);

    margin-bottom: 30px;
}



/* ===================================================
   BOTONES
=================================================== */

.hero-botones {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.boton {

    min-height: 48px;

    display:
        inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        0 23px;

    border-radius:
        8px;

    font-size:
        14px;

    font-weight:
        700;

    transition:
        0.25s;
}


.boton:hover {

    transform:
        translateY(-3px);
}


.boton-amarillo {

    background:
        var(--amarillo);

    color: #17202a;

    box-shadow:
        0 8px 22px
        rgba(245,180,0,0.25);
}


.boton-borde {

    color: white;

    border:
        1px solid
        rgba(255,255,255,0.75);

    background:
        rgba(255,255,255,0.08);
}


.boton-borde:hover {

    background:
        rgba(255,255,255,0.17);
}



/* ===================================================
   CONTENIDO
=================================================== */

.contenido-inicio {

    padding:
        65px 0 90px;

    background:
        #f8fafc;
}


.inicio-columnas {

    display: grid;

    grid-template-columns:
        1.05fr 1fr;

    gap: 55px;
}


.titulo-bloque {

    margin-bottom: 25px;
}


.titulo-bloque span {

    color:
        var(--ieee-azul);

    font-weight: 700;

    font-size: 11px;

    letter-spacing: 1.7px;
}


.titulo-bloque h2 {

    color:
        var(--ieee-azul-oscuro);

    font-size: 27px;

    margin-top: 5px;
}



/* ===================================================
   EVENTOS
=================================================== */

.eventos-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;
}


.evento-card {

    background: white;

    border-radius:
        12px;

    overflow: hidden;

    border:
        1px solid
        var(--borde);

    box-shadow:
        var(--sombra);

    transition:
        0.3s;
}


.evento-card:hover {

    transform:
        translateY(-6px);
}


.evento-imagen {

    height: 155px;

    background:

        linear-gradient(
            135deg,
            #00629B,
            #002A4A
        );

    display: flex;

    align-items: center;

    justify-content:
        center;

    color: white;
}


.imagen-placeholder {

    opacity: 0.65;

    font-size: 13px;
}


.evento-contenido {

    padding: 17px;
}


.evento-tipo {

    color:
        var(--ieee-azul);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}


.evento-contenido h3 {

    margin:
        7px 0 8px;

    font-size: 16px;
}


.evento-contenido p {

    color:
        var(--texto-suave);

    font-size: 12px;

    margin-bottom: 15px;
}


.evento-contenido a {

    display: inline-block;

    border:
        1px solid
        var(--ieee-azul);

    color:
        var(--ieee-azul);

    padding:
        7px 13px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 600;
}



/* ===================================================
   ACTIVIDADES
=================================================== */

.actividades-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 16px;

    margin-bottom: 50px;
}


.actividad {

    text-align: center;
}


.actividad-icono {

    width: 50px;

    height: 50px;

    margin:
        0 auto 12px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    border-radius: 50%;

    background:
        #eaf6fc;

    font-size: 21px;
}


.actividad h3 {

    color:
        var(--ieee-azul-oscuro);

    font-size: 14px;

    margin-bottom: 6px;
}


.actividad p {

    color:
        var(--texto-suave);

    font-size: 11px;

    line-height: 1.5;
}



/* ===================================================
   QUIÉNES SOMOS
=================================================== */


.foto-grupal img {

    width: 100%;

    height: 520px;

    object-fit: cover;

    object-position: center;

    display: block;
}


/* =========================================
   INFORMACIÓN
========================================= */

.integrante-datos {

    flex: 1;
}


.cargo {

    color: #00629B;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.integrante-datos h3 {

    color: #002A4A;

    font-size: 21px;

    margin:
        6px 0 5px;
}


.integrante-datos p {

    color: #667085;

    font-size: 14px;
}



/* =========================================
   TABLET
========================================= */

@media
(max-width: 850px) {

    .lista-integrantes {

        grid-template-columns:
            1fr;
    }


    .foto-grupal img {

        height: 430px;
    }

}



/* =========================================
   CELULAR
========================================= */

@media
(max-width: 550px) {

    .directiva-portada {

        padding-top: 45px;
    }


    .foto-grupal {

        border-radius: 12px;
    }


    .foto-grupal img {

        height: 280px;
    }


    .integrante-item {

        padding: 20px;

        gap: 16px;
    }


    .integrante-avatar {

        width: 82px;

        height: 82px;

        min-width: 82px;

        font-size: 11px;
    }


    .integrante-datos h3 {

        font-size: 18px;
    }


    .integrante-datos p {

        font-size: 13px;
    }

}



/* TARJETA */

.miembro-card {

    background: white;

    border-radius: 15px;

    overflow: hidden;

    border:
        1px solid #e4e9ee;

    box-shadow:
        0 8px 25px
        rgba(0, 42, 74, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.miembro-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 18px 40px
        rgba(0, 42, 74, 0.16);
}



/* =====================================================
   FOTO
===================================================== */

.miembro-foto {

    width: 100%;

    height: 295px;

    overflow: hidden;

    position: relative;
}


.miembro-foto img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.4s ease;
}


.miembro-card:hover
.miembro-foto img {

    transform:
        scale(1.04);
}



/* TEMPORAL MIENTRAS NO TENGAMOS FOTOS */

.miembro-foto.sin-foto {

    background:
        linear-gradient(
            135deg,
            #00629B,
            #003f65
        );

    display: flex;

    align-items: center;

    justify-content: center;
}


.miembro-foto.sin-foto span {

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 14px;

    letter-spacing: 1px;
}



/* =====================================================
   DATOS DEL INTEGRANTE
===================================================== */

.miembro-info {

    padding:
        22px 20px 25px;

    text-align: center;
}


.miembro-cargo {

    display: inline-block;

    color: #00629B;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}


.miembro-info h3 {

    color: #002A4A;

    font-size: 19px;

    margin-bottom: 7px;
}


.miembro-info p {

    color: #667085;

    font-size: 13px;

    line-height: 1.5;
}



/* =====================================================
   SECCIÓN FINAL
===================================================== */

.directiva-final {

    padding:
        75px 0;

    text-align: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #002A4A,
            #00629B
        );
}


.directiva-final span {

    color: #8bd8ff;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 700;
}


.directiva-final h2 {

    margin:
        10px 0;

    font-size:
        clamp(28px, 4vw, 40px);
}


.directiva-final p {

    margin:
        0 auto 28px;

    max-width: 650px;

    color:
        rgba(255,255,255,0.78);

    line-height: 1.7;
}



/* =====================================================
   TABLET
===================================================== */

@media
(max-width: 1050px) {

    .directiva-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

}



/* =====================================================
   TABLET PEQUEÑA
===================================================== */

@media
(max-width: 800px) {

    .directiva-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .hero-directiva {

        min-height: 380px;

    }

}



/* =====================================================
   CELULAR
===================================================== */

@media
(max-width: 520px) {

    .directiva-grid {

        grid-template-columns:
            1fr;

    }


    .miembro-foto {

        height: 370px;

    }


    .hero-directiva {

        min-height: 400px;

        background-position:
            center;

    }


    .hero-directiva-contenido {

        text-align: center;

    }

}



/* ===================================================
   ÚNETE
=================================================== */

.seccion-unete {

    background:
        linear-gradient(
            135deg,
            #002A4A,
            #00629B
        );

    color: white;

    padding:
        65px 0;
}


.unete-contenido {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 40px;
}


.unete-contenido span {

    color:
        #83d4ff;

    letter-spacing: 1.5px;

    font-size: 11px;

    font-weight: 700;
}


.unete-contenido h2 {

    font-size:
        clamp(26px,4vw,38px);

    margin:
        8px 0;
}


.unete-contenido p {

    color:
        rgba(255,255,255,0.75);

    max-width: 650px;

    line-height: 1.6;
}



/* ===================================================
   TABLET
=================================================== */

@media
(max-width: 1050px) {

    .menu-toggle {
        display: block;
    }


    .menu-principal {

        position: absolute;

        top: 82px;

        left: 0;

        width: 100%;

        background: white;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        padding: 0 5%;

        max-height: 0;

        overflow: hidden;

        box-shadow:
            0 10px 20px
            rgba(0,0,0,0.1);

        transition:
            max-height 0.35s ease;
    }


    .menu-principal.activo {

        max-height: 600px;

        padding-top: 15px;

        padding-bottom: 15px;
    }


    .menu-principal > a {

        padding: 14px;

        margin: 2px 0;
    }


    .menu-principal .btn-unete {

        margin-left: 0;

        text-align: center;
    }


    .inicio-columnas {

        grid-template-columns:
            1fr;
    }


    .eventos-grid {

        grid-template-columns:
            repeat(3,1fr);
    }

}



/* ===================================================
   CELULARES
=================================================== */

@media
(max-width: 700px) {

    .contenedor {
        width: 88%;
    }


    .navegacion {
        min-height: 70px;
    }


    .menu-principal {
        top: 70px;
    }


    .logo-texto strong {
        font-size: 23px;
    }


    .hero-inicio {

        min-height:
            calc(100vh - 70px);

        background-position:
            center;
    }


    .hero-inicio::after {

        content: "";

        position: absolute;

        inset: 0;

        background:
            rgba(0,42,74,0.35);
    }


    .hero-texto {

        text-align: center;

        margin: auto;

        padding:
            70px 0;
    }


    .hero-botones {

        flex-direction:
            column;
    }


    .boton {

        width: 100%;
    }


    .contenido-inicio {

        padding:
            50px 0 65px;
    }


    .eventos-grid {

        grid-template-columns:
            1fr;
    }


    .evento-imagen {

        height: 200px;
    }


    .actividades-grid {

        grid-template-columns:
            repeat(2,1fr);

        gap:
            30px 15px;
    }


    .quienes-somos {

        grid-template-columns:
            1fr;
    }


    .unete-contenido {

        flex-direction:
            column;

        text-align: center;
    }

}


/* ===================================================
   CELULARES PEQUEÑOS
=================================================== */

@media
(max-width: 420px) {

    .actividades-grid {

        grid-template-columns:
            1fr 1fr;
    }


    .hero-texto p {

        font-size: 15px;
    }

}


/* =========================================
   TÍTULO MÁS GRANDE
========================================= */

.directiva-encabezado h1 {

    font-size:
        clamp(
            48px,
            6vw,
            72px
        );

    font-weight: 800;

    color: #002A4A;
}



/* =========================================
   FOTO GRUPAL MÁS COMPACTA
========================================= */

.foto-grupal {

    max-width: 1000px;

    margin:
        30px auto 0;

    border-radius: 18px;

    overflow: hidden;
}


.foto-grupal img {

    width: 100%;

    height: 430px;

    object-fit: cover;

    object-position: center 48%;

    display: block;
}



/* =========================================
   TABLET
========================================= */

@media
(max-width: 1000px) {

    .lista-integrantes {

        grid-template-columns:
            1fr;
    }

}



/* =========================================
   CELULAR
========================================= */

@media
(max-width: 600px) {

    .integrante-card {

        flex-direction: column;

        text-align: center;

        padding: 24px 18px;

    }


    .integrante-foto {

        width: 130px;

        height: 130px;

        min-width: 130px;

    }


    .integrante-info {

        width: 100%;

    }


    .foto-grupal img {

        height: 270px;

    }

}