/* Imagen superior */
.banner-superior {
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.banner-superior img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
  border-bottom: 4px solid #003366;
}

/* Título entre imagen y contenido */
.titulo-calendario {
  background: linear-gradient(135deg, #002b5c, #00509d);
  color: white;
  padding: 25px 35px;
  text-align: center;
  border-radius: 12px;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 30px auto 0;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .titulo-calendario {
    font-size: 2rem;
    padding: 20px;
  }
}

/* Contenedor principal */
.calendario-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* Bloques de periodo */
.bloque-periodo {
  display: inline-block;
  width: 22%;
  margin: 1%;
  vertical-align: top;
}

.bloque-periodo h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #444;
}

.bloque-periodo img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.bloque-periodo img:hover {
  transform: scale(1.05);
}

/* Modal PDF */
.modal-pdf {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-contenido {
  position: relative;
  width: 80%;
  height: 90%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  animation: zoomIn 0.4s ease;
}

.modal-contenido iframe {
  width: 100%;
  height: 100%;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

/* Animaciones */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

/* Responsivo */
@media (max-width: 768px) {
  .bloque-periodo {
    width: 46%;
  }

  .modal-contenido {
    width: 95%;
    height: 90%;
  }
}

@media (max-width: 480px) {
  .bloque-periodo {
    width: 100%;
  }
}
