 body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    text-align: center;
    padding: 40px 20px;
}

.container-principal {
    max-width: 1200px;       
    margin: 0 auto;          
    padding: 0 40px;         
    box-sizing: border-box; 
}

/* Card centrada */
.contenedor {
    width: 250px;
    margin: 60px auto;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.grilla {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

/* Imagen circular */
.contenedor img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top; /* probá también center, 30% 20%, etc */
}
/* Nombre */
h2 {
    margin: 5px 0;
    text-align: center;
    font-weight: bold;
    margin: 20px auto 24px auto; 
}

.datos { margin: 5px 0;
    text-align: left;
    font-weight: bold;
    margin: 20px auto 24px auto;  }

.subtitulo{
    text-align: center;
}


/* Texto materias */
p {
    margin: 5px 0 15px;
    color: #555;
}

/* Estilos para la lista de datos académicos */
.lista-academica {
    list-style: none;      
    padding: 0;
    margin: 20px 0 40px 0; 
    text-align: left;     
    max-width: 900px;      
    
    /*  EL SCROLLahora figura eliminado === */
    max-height: none;   
    overflow: visible;  
}

.lista-academica li {
    background-color: transparent; 
    padding: 6px 0;               
    font-size: 15px;              
    color: #333;                  
    border-radius: 0;             
    cursor: default;              
    transition: none;             
}

.lista-academica li:hover {
    background-color: transparent;
    color: #333;
    font-weight: normal; 
    cursor: default;
}


.texto-destacado {
    display: block;         
    max-width: 750px;         
    margin: 0 auto 40px auto; 
    text-align: center;       
    line-height: 1.6;        
    font-size: 16px;         
}

/* Subtítulo */
h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}


/* Lista */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

/* Items */
li {
    background-color: #f8f9fa;
    margin: 5px 0;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover */
li:hover {
    background-color: #00bfff; /* celeste */
    color: white;
    font-weight: bold; /* ← esto agrega el bold */
    cursor: pointer;
}
/* Scroll prolijo */
ul::-webkit-scrollbar {
    width: 6px;
}

ul::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

.botones{
    margin-top: 30px;
    display: flex;
    justify-content: center; /* CENTRA */
    gap: 20px;
}

.btn{
    background: #004c9e;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: bold;
}

.btn:hover{
    background: #444;
    transform: scale(1.05);
}
.contenedor{
    transition: 0.3s ease;
}

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

footer{
    max-width: 900px;
    margin: 140px auto 0 auto;
    padding-top: 25px;
    border-top: 1px solid #ccc;

    font-size: 14px;
    color: #666;
    line-height: 1.6;

    text-align: center;
}