/* ==========================================================================
   CALIFICACIONES 2026 - UNIFIED GLASSMORPHISM 2.0 STYLE
   ========================================================================== */

/* 1. FUENTES PERSONALIZADAS */
@font-face {
  font-family: 'Komika_titulo';
  src: url('../vendor/fonts/KOMIKATITLE-PAINT.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Komika_negrita';
  src: url('../vendor/fonts/KOMTXTB.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Frijole';
  src: url('../vendor/fonts/Frijole-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* 2. BASE Y TIPOGRAFÍA 
body {
  background-color: #b62281;
  /* Negro bosque profundo 
  color: #e9ecef;
  font-family: 'Segoe UI', Roboto, sans-serif;
}*/
body {
  background: #f8faf9;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(62, 173, 84, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 85%, rgba(182, 34, 129, 0.1) 0%, transparent 55%);
  background-attachment: fixed;
  color: #2c3e50;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Komika_titulo', sans-serif;
  text-shadow: 0 0 15px rgba(62, 173, 84, 0.4);
}

p {
  font-size: 1.2rem;
  text-align: justify;
  line-height: 1.6;
}

p.lead {
  font-family: 'Komika_negrita', sans-serif;
}

.text-secundario {
  color: #c60555;
}

/* 3. COMPONENTES GLASSMORPHISM (NAVBAR & CONTAINERS) */
.navbar-glass {
  margin: 1rem auto;
  width: 95%;
  max-width: 1200px;
  border-radius: 50px !important;
  position: sticky;
  top: 1rem;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(62, 173, 84, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  transition: all 0.4s ease;
}

.navbar-glass .navbar-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #3ead54 !important;
  letter-spacing: 0.08em;
  text-shadow: 0 0 15px rgba(62, 173, 84, 0.6);
}

.navbar-glass .nav-link {
  font-size: 0.82rem;
  color: #2c3e50 !important;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s;
}

.navbar-glass .nav-link:hover {
  color: #2c3e50 !important;
  background: rgba(62, 173, 84, 0.2);
}

/* 4. TARJETAS Y CONTENEDORES DE ALUMNOS */
.bg-seccion {
  position: relative;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-radius: 2rem;
  border: 1px solid rgba(62, 173, 84, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bg-tarjeta {
  position: relative;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  width: 18rem;
  border-radius: 2rem;
  border: 1px solid rgba(62, 173, 84, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bg-tarjeta:hover {
  transform: translateY(-8px);
  border-color: rgba(62, 173, 84, 0.6) !important;
  box-shadow: 0 0 20px rgba(62, 173, 84, 0.3);
}

.contenedor {
  width: 140px;
  height: 210px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(62, 173, 84, 0.4);
  border-radius: 1rem;
}

.contenedor img {
  position: absolute;
  width: 200px;
  left: -50px;
}

/* Etiquetas dentro de contenedores */
.contenedor p.a,
.contenedor p.b {
  position: absolute;
  bottom: 0;
  width: 110%;
  text-align: center;
  margin: 0;
  padding: 2px 0;
  font-family: sans-serif;
  font-weight: bold;
  left: -5px;
  backdrop-filter: blur(5px);
}

.contenedor p.a {
  background-color: rgba(62, 173, 84, 0.8);
  color: white;
}

.contenedor p.b {
  background-color: rgba(220, 53, 69, 0.8);
  color: white;
}

.contenedor p.name {
  position: absolute;
  transform: rotate(90deg);
  transform-origin: left top;
  top: 0;
  width: 109%;
  background-color: rgba(255, 255, 255, 0.85);
  color: #2c3e50;
  padding: 5px;
  font-weight: bolder;
  left: 100%;
  font-size: 0.9em;
  z-index: 100;
}

/* 5. SECCIONES DE CONTENIDO Y ACTIVIDADES */
.actividad {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  padding: 3rem 3rem 3rem 12rem;
  margin: 2rem 0;
}

.actividad::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 100%;
  background-image: url('../img/actividades.jpg');
  background-size: cover;
  border-radius: 2.5rem 0 0 2.5rem;
  opacity: 0.8;
}

.actividad a {
  color: #2c3e50;
  background: rgba(62, 173, 84, 0.25);
  border: 1px solid rgba(62, 173, 84, 0.4);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  font-weight: 600;
}

.actividad a:hover {
  background: rgba(62, 173, 84, 0.5);
  box-shadow: 0 0 15px rgba(62, 173, 84, 0.5);
  transform: scale(1.05);
}

.resumen {
  position: relative;
  border-radius: 3rem;
  padding: 3rem 4rem;
  background-image: url(../img/notasCierre.jpg);
  background-size: cover;
  border: 1px solid rgba(62, 173, 84, 0.3);
  overflow: hidden;
}

.resumen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.resumen * {
  position: relative;
  z-index: 1;
}

/* 6. CLASES DE RESALTE (ESTILO 2026) */
.rojo,
.amarillo,
.gris {
  margin: 1.5rem 0;
  padding: 2.2rem;
  border-radius: 2.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rojo {
  background-color: rgba(220, 53, 69, 0.1) !important;
  color: #c92a3a;
}

.amarillo {
  background-color: rgba(255, 193, 7, 0.15) !important;
  color: #b58900;
}

.gris {
  background-color: rgba(108, 117, 125, 0.1) !important;
  color: #495057;
}

.resaltar {
  font-family: "Frijole", cursive;
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* 7. RESPONSIVE */
@media screen and (max-width: 768px) {
  .navbar-glass {
    width: 98%;
    top: 0.5rem;
  }

  .actividad {
    padding: 2rem;
  }

  .actividad::before {
    display: none;
  }

  .ocultar-movil {
    display: none;
  }
}

/* Botones estilo Módulo 2026 */
.btn-glass-sm {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(62, 173, 84, 0.3);
  color: #2c3e50;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-glass-sm:hover {
  background: rgba(62, 173, 84, 0.2);
  border-color: #3ead54;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(62, 173, 84, 0.2);
  color: #3ead54;
}

/* Icono principal de escáner */
.btn-glass-icon {
  background: rgba(62, 173, 84, 0.2);
  border: 1px solid #3ead54;
  border-radius: 50%;
  padding: 5px 10px;
  text-decoration: none;
  margin-right: 8px;
  display: inline-block;
}

.table-glass {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(15px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(62, 173, 84, 0.3);
  color: #2c3e50 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table-glass thead {
  background: rgba(62, 173, 84, 0.3);
  color: #3ead54;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.table-glass td,
.table-glass th {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.table-glass tr:hover {
  background: rgba(62, 173, 84, 0.05);
}

/* Ajuste de la imagen dentro de la tarjeta */
.bg-tarjeta img {
  border-radius: 2rem 2rem 0 0;
  transition: transform 0.5s ease;
}

.bg-tarjeta:hover img {
  transform: scale(1.05);
}

/* Espaciado interno para contenido */
.bg-tarjeta .card-header,
.bg-tarjeta .card-body {
  background: transparent !important;
  border: none !important;
  padding: 1.5rem;
}

/* --- BOTONES ESTILO GLASSMORPHISM 2.0 --- */

/* Estilo Base (Reemplaza a .btn-light o .btn-secondary) */
.btn-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #2c3e50 !important;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-glass:hover {
  background: #fff;
  border-color: rgba(62, 173, 84, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(62, 173, 84, 0.15);
  color: #3ead54 !important;
}

/* Variante Verde (Reemplaza .btn-success o tus botones de control) */
.btn-glass-success {
  background: rgba(62, 173, 84, 0.1);
  border: 1px solid rgba(62, 173, 84, 0.4);
  color: #3ead54 !important;
  text-shadow: 0 0 8px rgba(62, 173, 84, 0.3);
}

.btn-glass-success:hover {
  background: rgba(62, 173, 84, 0.2);
  border-color: #3ead54;
  box-shadow: 0 0 15px rgba(62, 173, 84, 0.2);
  color: #1e7031 !important;
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(163, 168, 164, 0.5);
  color: #495057 !important;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #a9b0aa;
  box-shadow: 0 0 15px rgba(163, 168, 164, 0.3);
  color: #242323 !important;
}

/* Variante Roja (Para acciones de peligro o alertas) */
.btn-glass-danger {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff5f6d !important;
}

.btn-glass-danger:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.2);
  color: #a71d2a !important;
}

/* Botones circulares pequeños (para los iconos de tus tarjetas) */
.btn-glass-sm {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
}

.text-sm {
  font-size: 0.8em !important;
}

/* Botón de búsqueda estilo glass */
.btn-glass-primary {
  background: rgba(62, 173, 84, 0.1);
  border: 1px solid rgba(62, 173, 84, 0.4);
  color: #3ead54 !important;
  text-shadow: 0 0 8px rgba(62, 173, 84, 0.3);
}

.btn-glass-primary:hover {
  background: rgba(62, 173, 84, 0.2);
  border-color: #3ead54;
  box-shadow: 0 0 15px rgba(62, 173, 84, 0.2);
  color: #1e7031 !important;
}