/* =====================================
RESET DE ESTILOS NO DESEADOS
===================================== */

.infoAsistencia:focus,
.infoAsistencia:active,
.infoAsistencia:focus-visible {
outline: none !important;
box-shadow: none !important;
border: none !important;
}



/* Eliminar bordes cuando el card está bloqueado */
.infoAsistencia.bloqueado,
.infoAsistencia.bloqueado:focus,
.infoAsistencia.bloqueado:active {
outline: none !important;
border: none !important;
box-shadow: 0 18px 36px rgba(0,0,0,0.6) !important;
}

/* =====================================
CONTENEDOR PRINCIPAL
===================================== */


/* Eliminar cualquier efecto de borde al hacer clic */
.infoAsistencia::after {
display: none;
}

/* =====================================
🔥 CAMBIO TEMPORAL DE TODO EL CARD
cuando el header gira
===================================== */



.nombre {
font-size: 1.25rem;
font-weight: 700;
}

.cedula {
font-size: 0.85rem;
opacity: 0.85;
}


.titulo-ultimo {
margin-top: 6px;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.6px;
opacity: 0.8;
}


/* =====================================
NOTIFICACIÓN
===================================== */
.noti-card {
display: none;
margin-top: 8px;
text-align: center;
padding: 6px 14px;
background: rgba(0,0,0,0.35);
border-radius: 8px;
font-size: 0.85rem;
animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}





/* =====================================
AVATAR BASE
===================================== */




/* =====================================
CONTENIDO AVATAR
===================================== */

.radio-group {
display: grid;
gap: 14px;
}

.radio-card {
position: relative;
background: #1f1f1f;
border: 2px solid #333;
border-radius: 14px;
padding: 18px 14px 14px;
display: flex;
align-items: center;
gap: 12px;
color: white;
cursor: pointer;
transition: all 0.2s ease;
}

.radio-card input {
display: none;
}

.radio-card.is-actual,
.radio-card:has(input:checked) {
border-color: #2ecc71;
background: rgba(46, 204, 113, 0.15);
}

/* 🏷️ Badge Estado actual */
.estado-actual-badge {
position: absolute;
top: -10px;
left: 14px;
background: #2ecc71;
color: #000;
font-size: 11px;
font-weight: 700;
padding: 2px 8px;
border-radius: 999px;
}

/* ✨ Animación al seleccionar */
.radio-card.animando {
animation: pulseSelect 0.35s ease;
}

@keyframes pulseSelect {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

.radio-text {
font-size: 16px;
font-weight: 500;
}





.label {
font-size: 0.7rem;
}

.contador {
position: absolute;
bottom: -16px;
right: 11px;
background: #8B0836;
color: white;
padding: 2px 7px;
border-radius: 12px;
font-size: 0.9rem;
}

/* =====================================
COLORES AVATARES
===================================== */





.avatar-asistencia {
width: 52px;
height: 52px;
}




.info-estudiante {
background: #eef2f7;
border-radius: 10px;
padding: 10px 14px;
margin-bottom: 10px;
font-size: 14px;
text-align: left;
}

.info-estudiante div {
margin-bottom: 4px;
}

.historial-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 12px;
}

.historial-bloque {
background: #f9f9f9;
border-radius: 10px;
padding: 10px;
text-align: left;
}

.historial-bloque h4 {
margin: 0 0 6px;
font-size: 15px;
}

.historial-lista {
max-height: 160px;
overflow-y: auto;
padding-left: 18px;
margin: 0;
font-size: 13px;
}

.historial-lista li {
margin-bottom: 4px;
}


/* =====================
CARD INFORMACIÓN ESTUDIANTE
===================== */
.card-info-estudiante {

border-radius: 12px;
box-shadow: 0 3px 8px rgba(0,0,0,0.12);
padding: 16px;
margin-bottom: 20px;
font-family: sans-serif;
}

.card-info-estudiante div {
margin-bottom: 6px;
}

/* =====================
CARDS DE HISTORIAL
===================== */
.historial-cards {
display: flex;
flex-direction: column;
gap: 12px;
}

.card-historial {

border-radius: 10px;
color: white;
overflow: hidden;
font-family: sans-serif;
}

.card-header {
font-weight: bold;
padding: 12px 16px;
font-size: 16px;
display: flex;
align-items: center;
gap: 6px;
border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-body {
padding: 12px 16px;
font-size: 14px;
display: flex;
flex-direction: column;
gap: 6px;
}

.item-fecha {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 0;
border-bottom: 1px solid #f0f0f0;
}

.item-fecha:last-child {
border-bottom: none;
}

.acciones span {
cursor: pointer;
margin-left: 8px;
padding: 2px 6px;
border-radius: 4px;
transition: background 0.2s;
font-size: 13px;
}

.acciones span:hover {
background: rgba(0,0,0,0.05);
}

/* =====================
SWEETALERT PERSONALIZADO
===================== */
.swal-historial {
font-family: sans-serif;
}

@media screen and (max-width: 768px) {
.historial-cards {
gap: 8px;
}

.card-header {
font-size: 14px;
}

.card-body {
font-size: 13px;
}

.acciones span {
font-size: 12px;
margin-left: 4px;
}
}
.swal-historial {
max-height: 90vh;
overflow-y: auto;
padding: 24px 20px 20px 20px !important;
}

/* Botón "Salir" centrado en pantalla */
.btn-salir-popup {
position: fixed;
top: 50%;
left: 20px; /* a la izquierda, puedes ajustar */
transform: translateY(-50%);
background: #f44336;
color: #fff;
border: none;
border-radius: 6px;
padding: 12px 16px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
z-index: 9999;
transition: background 0.2s, transform 0.1s;
}

.btn-salir-popup:hover {
background: #d32f2f;
transform: translateY(-50%) scale(1.05);
}

/* Cards de historial */
.card-historial {
margin-bottom: 16px;
border-radius: 10px;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
overflow: hidden;
}

.card-header {
font-weight: bold;
padding: 8px 12px;
font-size: 16px;
}

.card-body {
padding: 8px 12px;
}

.item-fecha {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
font-size: 14px;
}

.acciones span {
margin-left: 8px;
cursor: pointer;
color: #555;
font-weight: bold;
transition: color 0.2s;
}

.acciones span:hover {
color: #000;
}


/* INFO ESTUDIANTE */


/* HISTORIAL */
.card-historial {
display: flex;
flex-direction: column;
gap: 12px;
}

.card-historial.vacio {
opacity: .6;
font-style: italic;
}

/* ITEM */
.historial-item {
position: relative;
padding: 14px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.06);

}

/* FECHA */
.historial-item .fecha {
font-size: 17px;
color: white;
margin-bottom: 4px;
}

/* TIPO */
.historial-item .tipo {
font-size: 17px;
font-weight: 600;
}

/* ELIMINAR ARRIBA */
.eliminar-top {
position: absolute;
top: 8px;
right: 8px;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 23px;
transition: 0.2s;
background-color: red;
}





/* EDITAR ABAJO */
.editar-bottom {
margin-top: 10px;
text-align: right;
}

.editar-bottom button {
background: #e3f2fd;
border: none;
color: #1976d2;
padding: 6px 12px;
font-size: 13px;
border-radius: 6px;
cursor: pointer;
transition: 0.2s;
}

.editar-bottom button:hover {
background: #bbdefb;
}



