 /* =========================================
   RESET Y CONFIGURACIÓN GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amarillo: #f5c400;
    --amarillo-claro: #ffd83d;
    --rojo: #d62828;
    --rojo-oscuro: #9f1d1d;

    --negro: #111111;
    --negro-2: #181818;
    --gris-oscuro: #242424;
    --gris: #666666;
    --gris-claro: #d8d8d8;

    --blanco: #f5f5f5;
    --blanco-puro: #ffffff;

    --borde: #353535;

    --radio: 10px;
    --transicion: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--negro);
    color: var(--blanco);
    line-height: 1.6;
}


/* =========================================
   ENCABEZADO
========================================= */

header {
    background:
        linear-gradient(
            135deg,
            rgba(245, 196, 0, 0.08),
            transparent 40%
        ),
        var(--negro-2);

    border-bottom: 4px solid var(--amarillo);
    padding: 30px 7% 25px;

    position: relative;
}

/* Detalle rojo tipo "franja técnica" */

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: var(--rojo);
}


/* =========================================
   TÍTULOS DEL HEADER
========================================= */

header h1 {
    color: var(--amarillo);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

header h2 {
    color: var(--blanco);
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header > p {
    margin-top: 8px;
    color: #aaa;
    font-size: 0.9rem;
}


/* =========================================
   TÍTULOS DE NAVEGACIÓN
========================================= */

header h3 {
    color: var(--amarillo);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;

    margin-top: 28px;
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    gap: 10px;
}

header h3::before {
    content: "";
    width: 25px;
    height: 3px;
    background: var(--rojo);
}


/* =========================================
   MENÚS
========================================= */

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    display: block;

    color: var(--blanco);
    background-color: var(--gris-oscuro);

    text-decoration: none;

    padding: 8px 15px;
    border: 1px solid var(--borde);
    border-radius: 5px;

    font-size: 0.85rem;
    font-weight: bold;

    transition: var(--transicion);
}

nav a:hover {
    background-color: var(--amarillo);
    color: var(--negro);

    border-color: var(--amarillo);

    transform: translateY(-2px);
}


/* =========================================
   CONTENIDO PRINCIPAL
========================================= */

main {
    width: min(1100px, 90%);
    margin: 55px auto;
}


/* Título principal */

main > h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 30px;

    position: relative;

    padding-left: 18px;
}

main > h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 5px;

    width: 5px;
    height: 80%;

    background: var(--amarillo);
}


/* =========================================
   FICHAS DE INTEGRANTES
========================================= */

section {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            transparent
        ),
        var(--negro-2);

    border: 1px solid var(--borde);
    border-left: 5px solid var(--amarillo);

    border-radius: var(--radio);

    padding: 25px;

    min-height: 170px;

    display: grid;

    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto auto;

    column-gap: 25px;

    align-items: center;

    transition: var(--transicion);

    position: relative;
    overflow: hidden;
}


/* Detalle rojo */

section::after {
    content: "";

    position: absolute;

    right: -30px;
    top: -30px;

    width: 90px;
    height: 90px;

    background: var(--rojo);

    transform: rotate(45deg);

    opacity: 0.12;
}


section:hover {
    transform: translateX(5px);

    border-left-color: var(--rojo);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.35);
}


/* =========================================
   AVATARES
========================================= */

section img {
    width: 120px;
    height: 120px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid var(--amarillo);

    grid-column: 1;
    grid-row: 1 / 4;

    filter: grayscale(100%);

    transition: var(--transicion);
}


section:hover img {
    filter: grayscale(0%);

    border-color: var(--rojo);

    transform: scale(1.04);
}


/* =========================================
   NOMBRE
========================================= */

section h4 {
    grid-column: 2;

    font-size: 1.35rem;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--blanco);

    align-self: end;
}


/* =========================================
   CARRERA
========================================= */

section p {
    grid-column: 2;

    color: #999;

    font-size: 0.9rem;
}


/* =========================================
   LINK AL PERFIL
========================================= */

section p:last-child {
    align-self: start;

    margin-top: 5px;
}

section p:last-child a {
    color: var(--amarillo);

    text-decoration: none;

    font-weight: bold;

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    transition: var(--transicion);
}

section p:last-child a::after {
    content: " →";
}

section p:last-child a:hover {
    color: var(--rojo);
}


/* =========================================
   SEPARADORES
========================================= */

hr {
    border: 0;

    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        var(--borde),
        transparent
    );

    margin: 15px 0;
}


/* =========================================
   FOOTER
========================================= */

footer {
    margin-top: 70px;

    padding: 30px 7%;

    background-color: #0b0b0b;

    border-top: 3px solid var(--rojo);

    color: #777;

    font-size: 0.75rem;

    text-align: center;
}

footer p:first-child {
    color: var(--amarillo);

    font-weight: bold;

    margin-bottom: 5px;
}


/* =========================================
   RESPONSIVE — TABLETS
========================================= */

@media (max-width: 700px) {

    header {
        padding: 25px 5%;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 0.9rem;
    }

    main {
        width: 90%;
        margin: 40px auto;
    }

    main > h2 {
        font-size: 1.5rem;
    }

    section {
        grid-template-columns: 90px 1fr;

        padding: 20px;

        column-gap: 18px;
    }

    section img {
        width: 90px;
        height: 90px;
    }

    section h4 {
        font-size: 1.1rem;
    }
}


/* =========================================
   RESPONSIVE — CELULARES
========================================= */

@media (max-width: 500px) {

    nav ul {
        flex-direction: column;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    section {
        display: flex;

        flex-direction: column;

        align-items: center;

        text-align: center;

        padding: 30px 20px;
    }

    section img {
        margin-bottom: 15px;
    }

    section h4 {
        margin-bottom: 5px;
    }

    section p {
        margin: 2px 0;
    }

    section:hover {
        transform: none;
    }

    footer {
        padding: 25px 5%;
    }
}