/* ESTILOS PARA SISTEMA BIOMÉTRICO */
/* Autor: DeepSeek AI */

/* CONTENEDOR PRINCIPAL */
.biometrico-container {
    margin: 20px auto;
    text-align: center;
    max-width: 300px;
}

/* BOTÓN BIOMÉTRICO */
.btn-biometrico {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* ESTADO: DESHABILITADO */
.btn-biometrico[data-estado="deshabilitado"] {
    background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
    color: #777;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ESTADO: VERIFICANDO */
.btn-biometrico[data-estado="verificando"] {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    cursor: wait;
}

.btn-biometrico[data-estado="verificando"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ESTADO: ACTIVO */
.btn-biometrico[data-estado="activo"] {
    background: linear-gradient(135deg, #13EB64, #00a854);
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(19, 235, 100, 0.3);
}

.btn-biometrico[data-estado="activo"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(19, 235, 100, 0.4);
}

.btn-biometrico[data-estado="activo"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(19, 235, 100, 0.3);
}

/* ESTADO: CARGANDO */
.btn-biometrico[data-estado="cargando"] {
    background: linear-gradient(135deg, #0066cc, #004488);
    color: white;
    cursor: wait;
}

/* ESTADO: ERROR */
.btn-biometrico[data-estado="error"] {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    cursor: pointer;
}

.btn-biometrico[data-estado="error"]:hover {
    background: linear-gradient(135deg, #ff5555, #dd1111);
}

/* ANIMACIÓN DE PULSO PARA ACTIVO */
@keyframes pulse-active {
    0% {
        box-shadow: 0 0 0 0 rgba(19, 235, 100, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(19, 235, 100, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(19, 235, 100, 0);
    }
}

.btn-biometrico[data-estado="activo"] {
    animation: pulse-active 2s infinite;
}

/* ÍCONO DENTRO DEL BOTÓN */
.btn-biometrico::before {
    font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .btn-biometrico {
        padding: 16px 32px;
        font-size: 15px;
        min-width: 100%;
        border-radius: 25px;
    }
    
    .biometrico-container {
        margin: 25px auto;
        padding: 0 15px;
    }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    .btn-biometrico[data-estado="deshabilitado"] {
        background: linear-gradient(135deg, #444, #222);
        color: #aaa;
    }
    
    .btn-biometrico[data-estado="verificando"] {
        background: linear-gradient(135deg, #997300, #664400);
        color: #ffd700;
    }
}