* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: black;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
}

header img {
    width: 300px;
    height: auto;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: black;
    color: white;
}

.equipo {
    background-color: black;
    color: white;
    padding: 50px 40px;
}

.equipo h1 {
    font-size: 38px;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    text-align: center;
    color: white;
}

.intro-equipo {
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;
    color: white;
    max-width: 1000px;
    margin: 0 auto 20px auto;
}

.miembros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.miembro {
    border: 1px solid white;
    padding: 25px;
    background-color: black;
    color: white;
    transition: background-color 0.4s ease, color 0.3s ease;
}

.miembro:hover {
    background-color: white;
    color: black;
}

.miembro img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.miembro h2 {
    margin: 0 0 10px 0;
    text-align: center;
    text-transform: uppercase;
}

.rol {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.miembro h3 {
    margin-top: 20px;
    font-size: 18px;
}

.miembro p {
    line-height: 1.6;
}

.miembro ul {
    padding-left: 20px;
    line-height: 1.6;
}

.miembro a {
    color: inherit;
    text-decoration: underline;
}

.miembro a:hover {
    background-color: black;
    color: white;
    padding: 2px 6px;
}

.footer {
    background-color: black;
    padding: 20px 40px 10px 40px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}