/* ============================================================
VARIABLES PRINCIPALES — COLORES + SOMBRAS + ESTADOS
============================================================ */
:root {
--primary-color: #6410ff;
--secondary-color: #00c6ff;
--accent-color: rgba(68, 64, 59, 0.4);
--accent-color-verde: rgba(5, 223, 114);

--bg-color: #0a0220;

--card-bg: rgba(255, 255, 255, 0.05);
--card-shadow: rgba(123, 31, 255, 0.6);
--fondoSweetalert2: rgba(89, 22, 139);
--text-color: #ffffff;

--presente-color: #00ff88;
--tarde-color: #ffcc00;
--fuga-color: #ff4444;
--ausente-color: #888888;
}

/* RESET */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

background: black;
color: var(--text-color);
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 10px;
font-size: 18px;
line-height: 1.6;
}

.nota {
padding: 4px 12px 4px 8px;
position: absolute;
top: 10px;
right: 20px;
font-size: 17px;
font-weight: bold;
color: white;
margin-top: -8px;

border-radius: 8px;
border: none;

/* Sombras para efecto 3D */
box-shadow:
0 3px 6px rgba(0, 0, 0, 0.3),
0 2px 4px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.4),
inset 0 -1px 0 rgba(0, 0, 0, 0.3);

text-shadow:
0 1px 2px rgba(0, 0, 0, 0.5),
0 -1px 1px rgba(255, 255, 255, 0.1);

/* Borde 3D */
border-top: 1px solid rgba(255, 255, 255, 0.2);
border-left: 1px solid rgba(255, 255, 255, 0.15);
border-right: 1px solid rgba(0, 0, 0, 0.15);
border-bottom: 1px solid rgba(0, 0, 0, 0.2);

/* Transformación para inclinar ligeramente */
transform: perspective(500px) rotateX(5deg) rotateY(-2deg);

transition: all 0.2s ease;
z-index: 10;
}

.avatares-asistencia {

display: flex;
justify-content: space-around;
}


.avatarCotidiano {
    font-size: 11px;
    width: 30px;
    height: 25px;
    border-radius: 8px;
    color: var(--text-color);
    border: 1px solid #7CCF35;
    /* background-color: #5EA529; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* font-weight: bold; */
    cursor: pointer;
    /* margin-top: -20px; */
    position: relative;
    overflow: hidden;

   
}
.limpiarCache{
  background-color: #44403B !important;
}
.avatarProyecto, .avatarExamen, .avatarTareas, .avatarAistencia {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background: #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    margin-top: -20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 20px -8px rgba(124, 207, 53, 0.3),
        0 20px 25px -10px rgba(0, 0, 0, 0.8),
        inset 0 -4px 8px rgba(124, 207, 53, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatarProyecto::before, .avatarExamen::before, .avatarTareas::before, .avatarAistencia::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7CCF35, #4a8f1f, #7CCF35);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
    transition: all 0.3s ease;
}

.avatarProyecto, .avatarExamen, .avatarTareas, .avatarAistencia {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: #fff;
    background: #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    margin-top: -20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 20px -8px rgba(124, 207, 53, 0.3),
        0 20px 25px -10px rgba(0, 0, 0, 0.8),
        inset 0 -4px 8px rgba(124, 207, 53, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatarProyecto::before, .avatarExamen::before, .avatarTareas::before, .avatarAistencia::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7CCF35, #4a8f1f, #7CCF35);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
    transition: all 0.3s ease;
}

.avatarProyecto:hover, .avatarExamen:hover, .avatarTareas:hover, .avatarAistencia:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 25px -8px rgba(124, 207, 53, 0.5),
        0 25px 30px -12px rgba(0, 0, 0, 0.9),
        inset 0 -5px 10px rgba(124, 207, 53, 0.5),
        inset 0 5px 10px rgba(255, 255, 255, 0.15);
}

.avatarProyecto:hover::before, .avatarExamen:hover::before, .avatarTareas:hover::before, .avatarAistencia:hover::before {
    opacity: 0.5;
    filter: blur(6px);
}



.avisoAsistencia{
background-color: var(--accent-color-verde);
border-radius: 8px;
padding-left: 10px;
padding-right: 10px;
}

.centrarContenido {
display: flex;
align-items: center; /* centra verticalmente */

}
.infoAsistencia,
.infoCotidiano,.infoProyectos,
.infoTareas,
.infoExamenes {
padding: 16px;
margin-bottom: 16px;
border-radius: 14px;
border: 2px solid transparent;
transition: background 0.6s ease, box-shadow 0.6s ease, transform 0.3s ease;

position: relative;
overflow: hidden;

}


@keyframes shadowFlow {
  0% {
    box-shadow:
      rgba(0, 120, 180, 0.22) 0px 6px 12px -2px,
      rgba(0, 0, 0, 0.25) 0px 3px 7px -3px;
  }
  50% {
    box-shadow:
      rgba(40, 160, 80, 0.22) 0px 6px 12px -2px,
      rgba(0, 0, 0, 0.25) 0px 3px 7px -3px;
  }
  100% {
    box-shadow:
      rgba(120, 90, 180, 0.22) 0px 6px 12px -2px,
      rgba(0, 0, 0, 0.25) 0px 3px 7px -3px;
  }
}

.tituloAsistencia,
.tituloExamenes,
.tituloProyectos,
.tituloTareas,
.tituloCotidiano {

  padding-bottom: 10px;
}




.tituloAsistencia02, .tituloProyectos02, .tituloTareas02, .tituloExamenes02, .tituloCotidiano02 {
   font-size: 13px; 
    /* background-color: #57534D; */
    /* border-radius: 6px; */
    color: #31C950;
 
}
.avatar {
width: 42px;
height: 42px;
border-radius: 50%;
background: green;
color: white;
display: inline-flex;
justify-content: center;
align-items: center;
font-weight: bold;
}
.headerSeccion {
position: fixed;
left: 0;
top: 0;
width: 100%;

color: white;
text-align: center;



}
.fondoRojo{
  background-color: red;
}

.formAgregar {
       padding-top: 33px;
    padding-right: 20px;
      position: relative;
    margin-left: -21px;
}
span#fecha {
font-size: 12px;
background: linear-gradient(
135deg,
#0B3D0B, /* bosque profundo */
#0F4D2E, /* verde pino */
#124F2B, /* verde selva */
#145A32, /* emerald dark */
#1B5E20, /* material dark */
#1E6F3D, /* green deep */
#225E3B, /* musgo */
#0A2F1B /* casi negro verdoso */
);
padding: 2px 4px;
border-radius: 3px;
color: #E8FFE8;
}

.estadoActualEstudiante{
font-size: 12px;
font-style: italic;
color: white;
background: linear-gradient(135deg,
#7B1E3C, /* vino oscuro */
#5E2A6E, /* morado apagado */
#3F3D56, /* gris violáceo */
#2E4A3D, /* verde oscuro */
#1B5E20, /* verde profundo */
#0D3B1E /* verde muy oscuro */
);

border-radius: 6px;
padding-left: 10px;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
}



/* Animación para mover el degradado */
@keyframes gradientMove {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

/* Animación para el degradado */
@keyframes gradientMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

.opcionesCard{
position: absolute;
top: 20px;
right: 20px;
z-index: 20;
}

/* CONTENEDORES */
.container {
width: 100%;

}
.fechaSeccion {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    font-size: 12px;
    background-color: #FF2056;
    border-radius: 8px;
    width: 100px;
    justify-content: center;
    text-align: center;
    color: white;
}


/* TARJETA PRINCIPAL */
.card-container {
  width: 100%;
  border-radius: 20px;
  position: relative;
  overflow-y: auto;
  margin-top: 50px;

  /* Scroll invisible */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge viejo */

}

.card-container::-webkit-scrollbar {
  width: 0;
  height: 0;
}


.card-container::before,
.card-container::after {
display: none !important;
}

/* ENCABEZADOS */
.header {
text-align: center;
margin-bottom: 10px;
}

.header h2 {
font-size: 28px;
font-weight: 600;
letter-spacing: 2px;
text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.header p {
font-size: 14px;
color: rgba(255,255,255,0.7);
}

.estados {
font-size: 12px;
}

/* SELECT */
.select-container {
width: 100%;
margin: 10px 0;
position: relative;
}

.select-container::before {
content: "▼";
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: rgba(255,255,255,0.6);
font-size: 12px;
pointer-events: none;
}

#selectSecciones {
width: 100%;
padding: 12px 20px;
border-radius: 8px;
border: none;
background: white;
color: black;
font-size: 16px;
box-shadow: 0 0 10px rgba(123,31,255,0.3);
appearance: none;
transition: 0.3s ease;
}

#selectSecciones option {
background: white !important;
color: black;
}

.info {
flex: 1;
justify-content: center;
text-align: center;
}

.nombre {
font-size: 22px;
font-weight: 600;
}

.cedula {
font-size: 10px !important;
opacity: 0.8;
}

.ultimoRegistro {
font-size: 11px !important;
position: absolute;
top: 2px;
right: 10px;
color: white;
border-radius: 4px;
border-radius: 8px;
padding-left: 10px;
padding-right: 10px;
}




.avatar[data-estado="presente"] { background: var(--presente-color); }
.avatar[data-estado="tarde"] { background: var(--tarde-color); }
.avatar[data-estado="fuga"] { background: var(--fuga-color); }
.avatar[data-estado="ausente"] { background: var(--ausente-color); }

/* BOTONES DE ASISTENCIA */
.btn_asistencia_presente,
.btn_asistencia_tarde,
.btn_asistencia_fuga,
.btn_asistencia_ausente {
margin: 10px;
padding: 14px 18px;
border-radius: 8px;
border: 2px solid transparent;
font-size: 16px;
cursor: pointer;
transition: 0.2s ease;
flex: 1;
max-width: 140px;
font-weight: 600;
}

.btn_asistencia_presente { background: rgba(0,255,136,0.25); border-color:#00ff88; color:#00ff88; }
.btn_asistencia_tarde { background: rgba(255,204,0,0.25); border-color:#ffcc00; color:#ffcc00; }
.btn_asistencia_fuga { background: rgba(255,68,68,0.25); border-color:#ff4444; color:#ff4444; }
.btn_asistencia_ausente { background: rgba(136,136,136,0.25); border-color:#888; color:#888; }

.botones-asistencia {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
margin-top: 12px;
width: 100%;
}

/* EFECTOS */
.ultimo {
color: #9AE630 !important;
font-weight: bold;
animation: zoomEfecto 0.3s ease-out;
}
.fotoUsuario{
  width: 40px;
  padding-top: 3px;
}


.contenedorBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* alto completo del celular */
}



/* Fieldset redondeado */
.swal-fieldset {
    border-radius: 15px;
    padding: 12px 16px;
    border: 1px solid #ccc;

}

/* Radio buttons estilo tarjeta */
.swal-radio {
    margin: 8px 0;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}



.swal-radio input[type="radio"] {
    margin-right: 8px;
    accent-color: #6a1b9a; /* color morado */
}

.swal-fieldset legend {
    font-weight: bold;
    font-size: 16px;
}


.btnSeleccionarSeccion{
  background-color: #E7180B;
border: solid 2px #B50E07;
  border-radius: 8px;
  color: white;
  padding: 20px 25px;
}
/* Animación más opaca y elegante */
@keyframes pulsoColor {
    0% {
        background-color: #5FAF2E;
        box-shadow: 0 0 0 0 rgba(95, 175, 46, 0.45);
    }
    50% {
        background-color: #3F7F1E;
        box-shadow: 0 0 0 10px rgba(95, 175, 46, 0);
    }
    100% {
        background-color: #5FAF2E;
        box-shadow: 0 0 0 0 rgba(95, 175, 46, 0);
    }
}



.xxxx {
    font-size: 32px;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    color: white;
    border: none;
    background: linear-gradient(145deg, #9AE630, #1e5f2e);
    box-shadow: 
        0 5px 0 #0f3b1a,
        0 12px 18px rgba(0, 0, 0, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.5),
        inset 0 4px 8px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    position: relative;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}









.text-center {
text-align: center;
}


.btn-flotante-derecha {
right: 10px;
}

/* Clase para que se mueva fuera de pantalla */
.slide-left {
transform: translateX(-100%);
opacity: 0;
}

.slide-right {
transform: translateX(100%);
opacity: 0;
}

.active-slide {
transform: translateX(0);
opacity: 1;
position: relative; /* Para que el activo quede en su lugar */
}

#avisoIcono {
    display: none; /* 🔥 Siempre oculto por defecto */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C62828;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    z-index: 1000;
    width: 90%;
    max-width: 350px;
}




#avisoIcono h2 {
    margin-top: 0;
}

.iconoApp {
    width: 60px;
    height: 60px;
    border-radius: 15px; /* redondeado */
    margin: 10px 0;
}

#avisoIcono button {
    background-color: white;
    color: #C62828;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

#avisoIcono button:hover {
    background-color: #f5f5f5;
}
.typewriter {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}