.hero-section {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  min-height: 40vh;
}

.primaria-card {
  background: #f8f9ff;
}

.secundaria-card {
  background: #f1f3f5;
}

.card {
  border-radius: 15px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}


/* ============================
   CALENDARIO
   ============================= */

.calendar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.month h5 {
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.month {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 0.9rem;
}

.day-name {
  font-weight: 600;
  text-align: center;
}

.day {
  text-align: center;
  padding: 8px 0;
  border-radius: 6px;
}

/* =========================
   BIBLIOTECA DIGITAL
========================= */

.biblioteca h2{
  font-weight:700;
}

.recurso-card{
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius:12px;
}

.recurso-card:hover{
  transform: translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.recurso-img{
  height:160px;
  object-fit:contain;
  padding:15px;
  background:#f8f9fa;
}

.recurso-card .btn{
  margin-top:10px;
}
  

/* colores para eventos */

.curso-header {
  background: linear-gradient(135deg, #212529, #495057);
}

.curso-header-primaria {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.feriado { background: #dc3545; color: white; }
.puente { background: #ffc107; }
.institucional { background: #198754; color: white; }
.religioso { background: #0dcaf0; }
.evaluacion { background: #0d6efd; color: white; }
.receso {  background-color: grey;  color: white;}
.bimestre {  background-color: blue;  color: white;}


#eventoInfo {
  font-size: 1.2rem;
  color: #0d6efd;
  min-height: 30px; /* evita saltos */
}

/* ============================
   MODAL CUMPLEAÑOS
============================ */

.modal{
  display:none;                 /* oculto por defecto */
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  background:rgba(0,0,0,0.55);

  justify-content:center;
  align-items:center;

  z-index:9999;
}

/* cuando se activa */
.modal.show{
  display:flex;
}

/* ============================
   CONTENIDO DEL MODAL
============================ */

.modal-content{

  background:white;
  padding:35px 30px;
  border-radius:16px;

  width:90%;
  max-width:420px;

  text-align:center;
  position:relative;

  box-shadow:0 10px 30px rgba(0,0,0,0.25);

  animation:modalEntrada 0.4s ease;
}

/* animación de entrada */

@keyframes modalEntrada{
  from{
    transform:scale(0.8);
    opacity:0;
  }
  to{
    transform:scale(1);
    opacity:1;
  }
}

/* ============================
   TITULO
============================ */

.modal-content h2{
  font-size:26px;
  margin-bottom:15px;
  color:#ff6b6b;
}

/* ============================
   TEXTO CUMPLE
============================ */

#cumpleTexto{
  font-size:20px;
  font-weight:bold;
  color:#333;
}

/* ============================
   BOTON CERRAR
============================ */

.close{

  position:absolute;
  right:15px;
  top:10px;

  font-size:26px;
  font-weight:bold;

  cursor:pointer;

  color:#888;

  transition:0.2s;
}

.close:hover{
  color:#ff4d4d;
  transform:scale(1.2);
}

/* ============================
   CONFETTI
============================ */

#confetti-container{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:hidden;
}

.confetti{

  position:absolute;
  width:8px;
  height:12px;

  opacity:0.9;

  animation:confettiFall linear forwards;
}

@keyframes confettiFall{

  0%{
    transform:translateY(-20px) rotate(0deg);
    opacity:1;
  }

  100%{
    transform:translateY(500px) rotate(360deg);
    opacity:0;
  }

}

/* ============================
   GLOBOS
============================ */

#balloons-container{
  position:absolute;
  bottom:-20px;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.balloon{

  position:absolute;

  width:35px;
  height:45px;

  border-radius:50%;

  animation:balloonUp linear forwards;
}

.balloon::after{

  content:"";

  position:absolute;

  bottom:-12px;
  left:50%;

  width:2px;
  height:14px;

  background:#666;

  transform:translateX(-50%);
}

@keyframes balloonUp{

  0%{
    transform:translateY(100px);
    opacity:0;
  }

  20%{
    opacity:1;
  }

  100%{
    transform:translateY(-400px);
    opacity:0;
  }

}

/* ============================
   RESPONSIVE
============================ */

@media (max-width:600px){

  .modal-content{
    padding:25px;
  }

  #cumpleTexto{
    font-size:18px;
  }

}

/*==========================
TEMAS
==========================*/
.concept-box{
  background:#eef4ff;
  border-left:5px solid #0d6efd;
  padding:15px;
  border-radius:8px;
}

.activity-box{
  background:#eafaf1;
  border-left:5px solid #198754;
  padding:15px;
  border-radius:8px;
}

.contenido-clase{
max-width:900px;
margin:auto;
}