/* ====== 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 **/
/* ===== Sección Consultorio Psicológico ===== */
.psicologico {
  text-align: center;
  padding: 50px 20px;
}

.section-title {
  font-size: 2rem;
  color: #800000;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

/* Álbum */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.album-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.album-card:hover {
  transform: translateY(-5px);
}

.album-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.album-info {
  padding: 15px;
}

.album-info h3 {
  font-size: 1.2rem;
  color: #800000;
  margin-bottom: 10px;
}

.album-info p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* ===== Modal ===== */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  position: relative;
  background: #fff;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra el contenido horizontal */
  justify-content: center; /* centra el contenido vertical */
}

.modal img {
  max-width: 100%;
  max-height: 450px;
  margin: 0 auto 15px auto;
  border-radius: 8px;
  display: block;
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cerrar:hover {
  color: #800000;
}

/* Miniaturas */
.miniaturas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.miniaturas img {
  width: 80px; height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.miniaturas img:hover {
  border: 2px solid #800000;
}
