/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f6ff;
  color: #333;
}

/* ENCABEZADO */
.encabezado-autoridades {
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, #004080, #007BFF);
  display: flex;
  justify-content: center;
  align-items: center;
}

.encabezado-autoridades h1 {
  color: white;
  font-size: 42px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* CONTENEDOR PRINCIPAL */
.contenedor-autoridades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

/* TARJETA */
.autoridad {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.autoridad:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* FOTO */
.autoridad img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-bottom: 5px solid #007BFF;
}

/* NOMBRE / TÍTULO */
.autoridad figcaption {
  background: #007BFF;
  color: white;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* INFO */
.info {
  padding: 1.2rem;
  width: 100%;
}

.info h3 {
  font-size: 16px;
  color: #004080;
  margin-top: 1rem;
}

.info p {
  font-size: 14px;
  color: #555;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* DIFERENCIAR AUTORIDADES POR BORDE IZQUIERDO */
.patrocinador {
  border-left: 8px solid #004080;
}

.rectora {
  border-left: 8px solid #2a49f7;
}

.vicerrector {
  border-left: 8px solid #4d5dec;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .contenedor-autoridades {
    flex-direction: column;
    align-items: center;
  }

  .autoridad {
    width: 90%;
    max-width: 400px;
  }
}
