main {
    padding-top: 130px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.person-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.person {
    width: 200px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
}

.person img {
    width: 150px;
    height: 150px;
    border-radius: 20%;
    object-position: 0px 10%;
    object-fit: cover;
}

.profile {
    display: none;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
}

.profile img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    align-items: flex-start;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    .person {
        font-size: 2px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 10px;
    }
    top: 0;
    background-color: #fefefe;
    width: 75%;
    height: 50%;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    position: relative;
    display: flex;
    overflow-y: auto;
    max-height: 80vh;
    border-radius: 10px;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-content img {
    width: 200px;
    height: 200px;
    object-position: 0px 10%;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

#modal-content div {
    flex-grow: 1;
}
.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Espacio entre el encabezado y la descripción */
}

.modal-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px; /* Espacio entre la imagen y el nombre */
}

.modal-header h2 {
    font-size: 24px;
    margin: 0;
}

/* Estilos para pantallas grandes */
@media (min-width: 769px) {
    .modal-header {
        align-items: center; /* Alinea los elementos en la parte superior */
    }

    .modal-header img {
        width: 200px; /* Aumenta el tamaño de la imagen */
        height: 200px; /* Aumenta el tamaño de la imagen */
        margin-right: 30px; /* Aumenta el espacio entre la imagen y el nombre */
    }

    .modal-header h1 {
        font-size: 30px; /* Aumenta el tamaño del nombre */
    }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    header.nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    div.titulo {
        font-size: 12px;
    }
    header nav.botones a {
        color: white;
        text-decoration: none;
        margin-left: 4px;
        padding: 2px 6px;
        border-radius: 5px;
        font-size: 10px;
        border: 1px solid transparent;
        transition: border-color 0.3s ease;
    }
    nav.main-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    .modal-content {
        background-color: #fefefe;
        width: 75%;
        height: 70%;
        margin: 15% auto;
        padding: 50px;
        border: 1px solid #888;
        position: relative;
        display: flex;
        overflow-y: auto;
        max-height: 80vh;
        align-items: center;
    }

    #modal-content img {
        width: 120px;
        height: 120px;
        padding: 5px;
        object-position: 0px 10%;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 2px;
    }
    .modal-header {
        display: flex; /* Alinea los elementos en el mismo renglón */
        align-items: center; /* Centra verticalmente los elementos */
    }

    .modal-header img {
        width: 100px; /* Ajusta el ancho de la imagen */
        height: 100px; /* Ajusta la altura de la imagen */
        margin-right: 10px; /* Espacio entre la imagen y el nombre */
    }

    .modal-header h1 {
        font-size: 18px; /* Ajusta el tamaño del nombre */
    }


    /* Ajuste para mostrar 2 o 3 imágenes por renglón */
    .person {
        width: calc(33% - 20px); /* 2 imágenes por renglón */
        /* width: calc(33.33% - 20px); /* 3 imágenes por renglón */
    }
}