/* === ESTILO GENERAL === */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #f0f6ff, #ffffff);
    color: #333;
}
    
/* === SECCIÓN HERO === */
.hero {
    background: linear-gradient(135deg, #0074E4, #00a8e8);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
    
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform-origin: center center;
    animation: giroHero 12s infinite linear;
    z-index: 0;
}
    
@keyframes giroHero {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}
    
/* === GRID Y TARJETAS === */
.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}
    
.profesores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
    
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    padding: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}
    
.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === ÚNICO CAMBIO: ANIMACIÓN SUTIL EN HOVER === */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
    
.card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #0074E4;
    margin-bottom: 15px;
}
    
.card h3 { 
    color: #0074E4;
    margin: 10px 0; 
    font-size: 1.2em; 
    font-weight: 600; 
}

.card p {
    color: #555; 
    margin: 5px 0; 
    font-size: 0.95rem; 
    line-height: 1.4; 
}
    
.category-title {
    text-align: center;
    color: #0074E4;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}