/* --- CONFIGURACIÓN GLOBAL Y RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;

}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 900; /* Coincide con el grosor del diseño */
}

section {
    padding: 6rem 0;
}


/* --- HEADER (BARRA DE NAVEGACIÓN) --- */
.header {
    background-color: #111;
    color: #ffffff;
    padding: 1.5rem 0;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-weight: 900;
    font-size: 1.5rem;
}

.header nav ul {
    display: flex;
}

.header nav ul li {
    margin-left: 2rem;
    font-weight: 700;
}


/* --- FOOTER (PIE DE PÁGINA) --- */
.footer {
    background-color: #111;
    color: #777;
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer .logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: #eee;
}

.footer-brand p {
    margin-top: 0.5rem;
    max-width: 250px;
}

.footer-links strong {
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ccc;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}


/* --- DISEÑO RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Apilar columnas en móvil */
    .info-grid,
    .team-member {
        grid-template-columns: 1fr;
    }

    /* Asegura que la imagen siempre vaya primero en móvil */
    .team-member.reverse .member-image {
        grid-row: 1;
    }
    .team-member.reverse .member-text {
        grid-row: 2;
    }

    .footer .container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand p {
        margin: 0.5rem auto 0;
    }
}