/* ====== FRANJA DE SECCIÓN ====== */
.section-banner {
  position: relative;
  background: url("../imagenes/frontis.jpg") no-repeat center center/cover;
  padding: 3rem 1rem;
  border-radius: 12px;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
}

/* Degradado superpuesto */
.section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( rgba(128,0,0,0.8));
  border-radius: 12px;
}

.section-banner h1 {
  position: relative;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.section-banner h1 i {
  font-size: 1.8rem;
}

/** contenido **/

.jerarquica {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* espacio entre niveles */
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Fondo intercalado por nivel */
.nivel:nth-child(odd) {
  background: #f9f9f9; /* gris claro */
  padding: 30px 20px;
  border-radius: 12px;
}

.nivel:nth-child(even) {
  background: #ffffff; /* blanco */
  padding: 30px 20px;
  border-radius: 12px;
}

.nivel {
  text-align: center;
}

.nivel h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: #800000; /* guinda institucional */
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem; /* más separación entre tarjetas */
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  padding: 25px 20px;
  width: 260px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px auto; /* centrada */
  display: block;
  border: 4px solid #800000; /* borde guinda */
}

.card h3 {
  font-size: 1.2rem;
  margin: 10px 0 6px;
  font-weight: 600;
  color: #333;
}

.card p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .card {
    width: 220px;
  }
  .card img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .card {
    width: 100%;
    max-width: 350px;
  }
}

