body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #222;
}

.titulo {
  background: #FDD835;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Director destacado */
.director-destacado {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.director-card {
  max-width: 300px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #FDD835;
  box-shadow: 0 8px 25px rgba(253, 216, 53, 0.3);
}

.director-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(253, 216, 53, 0.4);
}

.director-card .nombre {
  font-size: 18px;
  color: #2C5530;
  font-weight: bold;
}

.director-card h3 {
  font-size: 15px;
  color: #555;
  font-weight: 600;
}

.grid-docentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.docente-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.docente-card:hover {
  transform: translateY(-5px);
}

.docente-card img {
  width: 100%;
  max-width: 130px;
  height: 130px; /* Altura fija para uniformidad */
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover; /* Asegura que las imágenes mantengan proporción */
  border: 4px solid #2C5530; /* Marco color verde académico */
  box-shadow: 0 4px 8px rgba(44, 85, 48, 0.2); /* Sombra sutil que combina */
  transition: all 0.3s ease; /* Transición suave para hover */
}

.docente-card:hover img {
  border-color: #4A7C59; /* Color más claro al hacer hover */
  box-shadow: 0 6px 12px rgba(44, 85, 48, 0.3); /* Sombra más pronunciada en hover */
  transform: scale(1.02); /* Efecto de zoom sutil */
}

.docente-card h3 {
  font-size: 14px;
  font-weight: bold;
  color: #555;
  margin: 5px 0;
}

.docente-card .nombre {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

/* Nuevos estilos para Títulos y Grados */
.titulos-grados {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.enlace-titulos {
  display: inline-block;
  padding: 6px 12px;
  background: #2C5530;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #2C5530;
}

.enlace-titulos:hover {
  background: white;
  color: #2C5530;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(44, 85, 48, 0.3);
}

.btn {
  display: inline-block;
  margin: 5px 3px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  background: #f8b400;
  transition: background 0.3s;
}

.btn:hover {
  background: #d99a00;
}

.btn-secundario {
  background: #0a1739;
}

.btn-secundario:hover {
  background: #142a61;
}

/* --- Responsive --- */

.grid-docentes {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Siempre 4 columnas */
  gap: 20px;
  padding: 20px;
}

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
  .grid-docentes {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }
  
  .director-destacado {
    margin-bottom: 30px;
  }
}

/* Celulares (pantallas pequeñas) */
@media (max-width: 600px) {
  .grid-docentes {
    grid-template-columns: 1fr; /* 1 columna en celular */
  }
  
  .enlace-titulos {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .director-destacado {
    margin-bottom: 25px;
    padding: 0 15px;
  }
  
  .director-card {
    max-width: 100%;
  }
}