@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --azul: #98C2FC;
    --azul-oscuro: #4176c1;
    --azul-claro: #DDEBFF;
    --naranja: #FF7043;
    --naranja-claro: #F9CAA1;
    --violeta: #AF64E3;
    --violeta-claro: #E7CFFF;
    --negro: #252A30;
    --gris: #62676D;
    --crema: #FFF8EF;
    --blanco: #FFFFFF;
    --radio: 24px;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--negro);
    background: var(--crema);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, picture, svg, figure {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: var(--negro);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid var(--naranja);
}


header img {
    width: 70px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    transition: background 0.25s ease, color 0.25s ease;
}

nav a:hover,
nav li:first-child a {
    background: var(--naranja);
    color: var(--negro);
}

main {
    flex: 1;
    width: min(1180px, 90%);
    margin: 0 auto;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 7vw, 90px);
    line-height: 0.95;
    margin: 60px 0 30px;
    letter-spacing: -2px;
    text-shadow: 0.02em 0.02em #252A30;
}

h1::first-line {
    color: var(--azul);
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    margin: 15px 0 10px;
}

p {
    font-size: 16px;
    color: var(--gris);
}

main > img.img-hero, main > img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
    border-radius: var(--radio);
    border: 2px solid var(--negro);
    box-shadow: 10px 10px 0 var(--negro);
    margin-bottom: 60px;
}

article {
    background: var(--blanco);
    padding: 30px;
    border-radius: var(--radio);
    border: 2px solid var(--negro);
    box-shadow: 6px 6px 0 var(--negro);
    margin-bottom: 25px;
}

.hero-card {
    margin-top: 6em;
    background: var(--azul);
    position: relative;
}

.hero-card > p {
    color: var(--negro);
    font-weight: 500;
}

.integrantes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.integrantes article {
    background: var(--blanco);
    padding: 15px;
    text-align: center;
    box-shadow: none;
    margin: 0;
}
span{
    color: var(--azul-oscuro);
    text-shadow: 0.03em 0.03em #252A30;
}
.integrantes figure {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.integrantes img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.integrantes img:hover {
    transform: scale(1.05);
}

.integrantes a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 700;
    display: inline-block;
    transition: color 0.2s ease;
}

.integrantes a:hover {
    color: var(--naranja);
}

.boton{
    background-color: #ffebe5;
    border-radius: 0.75em;
    border: 0.1em solid #eab4a4;
    padding: 0.25em 0.75em;
}

.academica {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    margin-top: 10em;
}

.academica article {
    margin: 0;
}

.academica ul {
    padding-left: 20px;
    margin-top: 10px;
}

footer {
    margin-top: 5em;
    width: 100%;
    padding: 10px 5%;
    background: var(--negro);
    color: var(--blanco);
}

footer p {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 13px;
    color: #D5D8DC;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 4%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 13px;
        padding: 6px 14px;
    }

    .academica {
        grid-template-columns: 1fr;
    }

    .integrantes {
        grid-template-columns: 1fr;
    }
}