.notificacion-container {
  position: relative;
  display: inline-block;  
  margin-right: 10px;
}

.icono-campana {
  cursor: pointer;
  font-size: 22px;
  position: relative;
  display: inline-block;
}

.badge {
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}
.badge2 {
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

.vibrando {
  animation: vibrar 0.4s infinite;
}

@keyframes vibrar {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

.dropdown-notificaciones {
  display: none;
  position: absolute;
  top: calc(100% + 15px);  /*Antes era 10px o 12px — ahora 16px */
  right: 0;
  width: 330px;
  max-width: 90vw;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
}

.dropdown-notificaciones h4 {
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  background-color: #f5f5f5;
  text-align: center;
}

.lista-notificaciones {
  max-height: 300px;
  overflow-y: auto;
}

.item-notificacion {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.item-notificacion:hover {
  background-color: #e0f0ff;  /* color más claro al hacer hover */
  transform: translateY(-2px); /* efecto de levantarse un poco */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* sombra más fuerte */
  cursor: pointer;
}

.item-notificacion .icono-item {
  font-size: 18px;
}

.item-notificacion .contenido-item {
  flex: 1;
}

.item-notificacion .contenido-item .texto {
  font-weight: normal;
  color: #333;
}

.item-notificacion .contenido-item .fecha {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.item-notificacion.vacia {
  text-align: center;
  color: #999;
}

.ver-todas {
  display: block;
  text-align: center;
  padding: 10px;
  background-color: #fafafa;
  font-weight: bold;
  text-decoration: none;
  color: #555;
  border-top: 1px solid #eee;
}

/* 📱 Mobile view: más compacto */
@media (max-width: 768px) {
  .dropdown-notificaciones {
    width: 280px;
    max-width: 90vw;
    top: calc(100% + 12px);
    left: 0;
    transform: none; /* 🔧 evitamos centrado en pantalla */
  }

  .item-notificacion {
    font-size: 13px;
  }
}




/* para las notificaciones de la pagina principal*/



.notificacion-box {
  background: linear-gradient(135deg, #ff6f61, #ff9472);
  color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
  animation: aparecer 0.8s ease-in-out;
}

.notificacion-box h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.notificacion-box p {
  margin: 5px 0 10px;
  font-size: 16px;
}

.notificacion-box a {
  background-color: white;
  color: #ff6f61;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.notificacion-box a:hover {
  background-color: #ffe9e6;
}
.notificacion-box {
  position: fixed;
  top: 50px;
  right: 200px;
  z-index: 9999;
  width: 45px;
  background: linear-gradient(135deg, #ff6f61, #ff9472);
  color: white;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: aparecer 0.8s ease-in-out;
  transition: all 0.3s ease;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
  .notificacion-box {
    right: 30%;
    transform: translateX(50%);
    width: 12%;
    top: 95px;
    text-align: center;
    border-radius: 15px;
  }
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* nuevo diseño de la pagina principal
*/



  .dashboard-card {
    border-radius: 10px;
    padding: 5px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
  }

  .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
  }

  .dashboard-number {
    font-size: 2.3rem;
    font-weight: 600;
    margin-bottom: 5px;
  }

  .dashboard-label {
    font-size: 1.30rem;
    font-weight: 400;
    opacity: 0.9;
  }

  .dashboard-link {
    display: block;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-decoration: underline;
  }

/* Reemplazar los gradientes por colores sólidos para igualar los cuadros inferiores */

.bg-docentes       { background-color: #457987; } /* azul celeste */
.bg-representantes { background-color: #3fbfad; } /* verde azulado */
.bg-estudiantes    { background-color: #f4a100; } /* naranja fuerte */
.bg-grupos         { background-color: #368b60; } /* verde oscuro */

.bg-asignaturas    { background-color: #356487; } /* azul-gris */
.bg-inscripciones  { background-color: #d3d5d8; color: #000; } /* gris claro, texto oscuro */
.bg-avisos         { background-color: #d44944; } /* rojo */

.dashboard-number,
.dashboard-label,
.dashboard-link,
.dashboard-icon {
  color: #fff;
}

/* Ajuste especial para el bloque gris claro para que el texto sea legible */
.bg-inscripciones .dashboard-number,
.bg-inscripciones .dashboard-label,
.bg-inscripciones .dashboard-link,
.bg-inscripciones .dashboard-icon {
  color: #000;
}


.periodo-btn {
  background-color: #8B5C49 !important;
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 6px;
  display: inline-block;
  border: none;
  text-decoration: none;
  margin-top: 1px;
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* Evita el parpadeo azul en móviles */
}

.periodo-btn:hover,
.periodo-btn:focus,
.periodo-btn:active,
.periodo-btn:visited {
  background-color: #8B5C49 !important;
  color: #fff !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.periodo-btn i,
.periodo-btn span {
  color: white !important;
}


/* notificaciones de las panatalla principal */

  #calendar {
    max-width: 1100px;
    margin: 0 auto;
    max-height: 800px;
  }

  .card-noti {
  background: #fff;
  border-left: 5px solid #d3d5d8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card-noti h6 {
  margin: 0;
  color: #555;
}

.card-noti p {
  margin: 5px 0;
  color: #666;
}

.card-noti small {
  color: #999;
  font-size: 0.85rem;
}

.icono-noti {
  font-size: 1.5rem;
  color: #356487;
  margin-right: 10px;
}
li {
  list-style: none;
}