:root{
    color: #da1829;
    color: #7f0005;
    color: white;
    color:black;

}
body{
    font-family:'Times New Roman', Times, serif;
    line-height: 1.5;
    margin: 0%;

    background-color: #7f0005;
    background-position: center;

}
header{
    background-color: #da1829;
    background-position: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 10px 15px rgb(204, 89, 89);
    border-bottom: 4px solid white
}
.logo{
    display: block;
    width: 200px;
    height: 100px;
    border-radius: 0px;
    margin-bottom: 15px;
}
header nav {
    width: 100%;
    display: flex;
    justify-content: center;
}
header nav ul {
display: flex;
flex-wrap: wrap;
gap: 20px;
list-style: none;
margin: 0px;
padding: 0px;
justify-content: center;
}
header nav a {
    color: #7f0005;
    display: block;
    width: fit-content;
    border-radius: 5px;
    padding: 1px;
    text-align: center;
    text-decoration: none;
    border:solid 1px #7f0005;
    cursor:pointer;
    transition: all 0,3s ease;
}
main{
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    background-color: #7f0005;
}
.sobre-mi{
    background-color: rgb(255, 255, 255);
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #7f0005; 
    justify-items: center;
}
.datos-personales{
 background-color: rgb(255, 255, 255);
    margin: 0px auto;
    margin-top: 35px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #7f0005; 
    justify-items: center;
}
.mockup{
    margin-bottom: 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    justify-items: center;
}
.grip-mockup{
    display: flex;
    justify-content: center;
    justify-items: center;
}
/*MODIFICAR IMG PROTOTIPO*/
.prototipo{
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
}
.me-gusta{
    background-color: rgb(255, 255, 255);
    margin: 0px auto;
    margin-top: 35px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #7f0005; 

    
}
.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
   justify-content: center;
}
.grid-item{
    font-family: 'Times New Roman', Times, serif;
    font-size: large;
    font-weight: bold;
    text-align: center;
}
.grid-item img{
    width: 200px;
    height: 200px;
    border-radius: o;

}
.contacto{
    background-color: rgb(255, 255, 255);
    margin: 0px auto;
    margin-top: 35px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #7f0005;
    justify-items: center;
    
}
.grid-contacto{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    justify-items: center;
  
}
.grid-contacto-item{
    font-family: 'Times New Roman', Times, serif;
    font-size: large;
    font-weight: bold;
    text-align: center;
}
.grid-contacto img{
    width: 200px;
    height: 200px;
    border-radius: 0;
    
}
.materias{
    background-color: rgb(255, 255, 255);
    margin: 0px auto;
    margin-top: 35px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #7f0005;   
}

/* MODIFICACIONES PARA LA SECCIÓN EQUIPO VM14 */
.equipo{
    background-color: rgb(255, 255, 255);
    margin: 0px auto;
    margin-top: 35px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #7f0005; 
    text-align: center;
}

.equipo h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
}

.grid-equipo{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: start;
}

.miembro-equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.miembro-equipo:hover {
    transform: translateY(-5px);
}

.miembro-equipo img{
    width: 180px;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.miembro-equipo h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1em;
    font-weight: bold;
    margin: 10px 0 15px 0;
    color: #7f0005;
    line-height: 1.3;
}

.rotulo-link {
    display: inline-block;
    background-color: #da1829;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 2px solid #da1829;
    margin-top: 5px;
}

.rotulo-link:hover {
    background-color: white;
    color: #da1829;
    transform: scale(1.05);
    box-shadow: 0px 3px 8px rgba(218, 24, 41, 0.3);
}

.perfil{
    text-align: center;
    margin-bottom: 10px;
}
.foto-perfil{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.foto-perfil img{
    width: 400px;
    height: 400px;
}
.datos-academicos{
    background-color: rgb(255, 255, 255);
    margin: 0px auto;
    margin-top: 35px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgb(0, 0, 0);
    color: #000000; 
   justify-items: center;
}
.nombre{
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    justify-items: center;
    text-align: center;
    margin-top: 0%;
}
/* Datos académicos - GRID RESPONSIVE */
.datos-academicos {
    margin-bottom: 30px;
    text-align: center;
}

.datos-academicos h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
    color: #7f0005;
}

.grid-academicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    justify-items: center;
}

.institucion:hover {
    transform: translateY(-3px);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.15);
}

.institucion img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border: 3px solid #da1829;
    border-radius: 8px;
    background-color: white;
    padding: 8px;
}

.institucion h4 {
    color: #7f0005;
    margin: 10px 0 15px 0;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.3;
}

.institucion ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.institucion li {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .grid-academicos {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .institucion {
        max-width: 100%;
        padding: 15px;
    }
    
    .institucion img {
        width: 80px;
        height: 80px;
    }
    
    .institucion h4 {
        font-size: 1em;
    }
    
    .institucion li {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-academicos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .grid-academicos {
        grid-template-columns: repeat(3, 1fr);
    }
}