/* ----------------- ESTILOS GENERALES ----------------- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6fa;
  color: #333;
}

/* ----------------- BARRA SUPERIOR ----------------- */
.barra-superior {
  background-color: #002855;
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contenedor-barra {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 55px;
  border-radius: 6px;
}

.nav-barra a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-barra a:hover {
  color: #e60000;
}

/* ----------------- CONTENEDOR PRINCIPAL ----------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.container h1 {
  text-align: center;
  color: #002855;
  font-size: 28px;
  margin-bottom: 25px;
}

/* ----------------- FILTROS DE BÚSQUEDA ----------------- */
.filtros-busqueda {
  display: flex;
  flex-direction: column;
  background-color: #f8faff;
  padding: 25px 40px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  max-width: 1000px;
  margin-left: 40px;
  gap: 15px;
}

/* 🔹 Fila superior: Institución + Escuela */
.fila-superior {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Cada grupo label+select */
.fila-superior > div,
.fila-inferior > div {
  display: flex;
  flex-direction: column;
}

/* 🔹 Fila inferior: Programa educativo */
.fila-inferior {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Estilos generales de labels y selects */
.filtros-busqueda label {
  font-weight: 600;
  color: #002855;
  font-size: 15px;
  margin-bottom: 5px;
}

.filtros-busqueda select {
  background-color: #ffffff;
  border: 1.8px solid #ccd6eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
  color: #002855;
  outline: none;
  transition: all 0.3s ease;
  min-width: 220px;
}

.filtros-busqueda select:focus {
  border-color: #0055aa;
  box-shadow: 0 0 5px rgba(0,85,170,0.4);
}

/* ----------------- TARJETAS DE DOCENTES ----------------- */
.grid-maestros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.perfil-card {
  background: linear-gradient(145deg, #ffffff, #f1f4ff);
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.perfil-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contenedor-foto-card {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
}

.foto-perfil-card {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background-image: linear-gradient(white, white),
    linear-gradient(135deg, #002855, #007bff);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.perfil-card:hover .foto-perfil-card {
  transform: scale(1.05);
}

.info-maestro p {
  margin: 6px 0;
  font-size: 15px;
  color: #333;
}

.info-maestro strong {
  font-size: 17px;
  color: #002855;
}

.btn-ver-perfil {
  background-color: #002855;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 12px;
}

.btn-ver-perfil:hover {
  background-color: #004ea2;
  transform: scale(1.05);
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 768px) {
  .fila-superior {
    flex-direction: column;
    align-items: flex-start;
  }

  .filtros-busqueda {
    margin-left: 0;
    padding: 20px;
  }

  .fila-superior > div,
  .fila-inferior > div {
    width: 100%;
  }

  .filtros-busqueda select {
    width: 100%;
  }
}



.intro-coil {
  max-width: 1100px;
  margin: 25px auto;
  padding: 25px 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.intro-coil h2 {
  margin-bottom: 12px;
  font-size: 1.9rem;
  color: #1a1a1a;
}

.intro-coil p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}




/* ===============================
   BANNER CARRUSEL INSTITUCIONAL
   =============================== */

.banner-carousel {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}

/* Track del carrusel */
.carousel-track-rombos {
  display: flex;
  width: 200%;
  height: 100%;
  animation: slideRombos 14s infinite ease-in-out;
}

/* Cada pasada (4 imágenes) */
.slide-rombos {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Romboides */
.rombo {
  flex: 1;
  background-size: cover;
  background-position: center;
  transform: skewX(-15deg);
  margin-left: -40px;
}

/* Corrige el primer rombo de cada pasada */
.slide-rombos .rombo:first-child {
  margin-left: 0;
}

/* Overlay azul institucional */
.banner-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 45, 98, 0.85),
    rgba(0, 45, 98, 0.45)
  );
  z-index: 1;
}

/* Texto encima del banner */
.banner-texto {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  z-index: 2;
}

.banner-texto h1 {
  font-size: 2.6rem;
  margin-bottom: 6px;
}

.banner-texto p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Animación del carrusel */
@keyframes slideRombos {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(0);
  }
  55% {
    transform: translateX(-50%);
  }
  95% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ===============================
   IMÁGENES DEL CARRUSEL (8)
   =============================== */

/* PASADA 1 */
.r1 { background-image: url("imag1.jpeg"); }
.r2 { background-image: url("imag2.jpeg"); }
.r3 { background-image: url("imag3.png"); }
.r4 { background-image: url("imag4.jpg"); }

/* PASADA 2 */
.r5 { background-image: url("imag5.jpg"); }
.r6 { background-image: url("imag6.jpg"); }
.r7 { background-image: url("imag7.jpeg"); }
.r8 { background-image: url("imag8.jpg"); }





/* Contenedor texto + logo */
.banner-texto {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo UAGro */
.logo-uagro {
  width: 95px;
  height: auto;
  filter: brightness(0) invert(1);

}

/* Texto */
.texto-banner h1 {
  font-size: 2.6rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.texto-banner p {
  font-size: 1.1rem;
  opacity: 0.95;
  color: #ffffff;
}
