/* huella.css — inicio de sesión con huella.
   Se carga DESPUÉS de LoginRegister.css y facial.css, no las reemplaza. */

.oculto { display: none !important; }

/* ---------- Bloque del botón en login.php ---------- */
#bloque-huella {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-huella {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1.5px solid var(--brote, #6ba84f);
    background: rgba(107, 168, 79, 0.08);
    color: var(--campo-hondo, #234d2c);
    font-family: var(--font-body, "Space Grotesk", sans-serif);
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn-huella:hover:not(:disabled) {
    background: rgba(107, 168, 79, 0.16);
    border-color: var(--campo, #2f6e3c);
}
.btn-huella:disabled { opacity: .6; cursor: progress; }
.btn-huella svg { width: 22px; height: 22px; flex-shrink: 0; }

.huella-estado {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #666;
    text-align: center;
}
.huella-estado-error { color: var(--rojo, #b3462c); font-weight: 600; }

/* ---------- Página registrar_huella.php ---------- */
.huella-card {
    max-width: 500px;
    margin: 0 auto;
}

.huella-icono {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(107, 168, 79, 0.14);
    color: var(--campo, #2f6e3c);
}
.huella-icono svg { width: 34px; height: 34px; }

.alerta-exito {
    background: rgba(107, 168, 79, 0.12);
    border: 1px solid rgba(107, 168, 79, 0.3);
    color: var(--campo-hondo, #234d2c);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.huella-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.btn-omitir {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-body, "Space Grotesk", sans-serif);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px;
}
.btn-omitir:hover { color: var(--campo-hondo, #234d2c); }

/* ---------- Ayuda sobre sensores compatibles ---------- */
.huella-ayuda {
    margin-top: 20px;
    border: 1px solid var(--linea, #d8dfca);
    border-radius: 12px;
    background: var(--crema, #f7f5ec);
    padding: 0;
    overflow: hidden;
}
.huella-ayuda summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--campo-hondo, #234d2c);
    list-style: none;
}
.huella-ayuda summary::-webkit-details-marker { display: none; }
.huella-ayuda summary::before { content: "▸ "; }
.huella-ayuda[open] summary::before { content: "▾ "; }

.huella-ayuda-cuerpo {
    padding: 0 16px 14px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4a4a4a;
}
.huella-ayuda-cuerpo strong { color: var(--campo-hondo, #234d2c); }
.huella-ayuda-cuerpo ul { margin: 6px 0 12px 18px; }
.huella-ayuda-cuerpo li { margin-bottom: 5px; }
.huella-ayuda-cuerpo ol { margin: 6px 0 12px 20px; }

/* ---------- Lista de dispositivos (mi_perfil.php) ---------- */
.huella-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 4px;
}

.huella-dispositivo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--linea, #d8dfca);
    border-radius: 12px;
    background: #fff;
}
.huella-dispositivo-icono {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(107, 168, 79, 0.12);
    color: var(--campo, #2f6e3c);
}
.huella-dispositivo-icono svg { width: 20px; height: 20px; }

.huella-dispositivo-datos { flex: 1; min-width: 0; }
.huella-dispositivo-nombre {
    font-weight: 600;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.huella-dispositivo-detalle {
    font-size: 0.78rem;
    color: #777;
    margin-top: 2px;
}

.huella-dispositivo-acciones {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.huella-boton-icono {
    background: none;
    border: 1px solid var(--linea, #d8dfca);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    color: #555;
    font-family: var(--font-body, "Space Grotesk", sans-serif);
}
.huella-boton-icono:hover { border-color: #a8a8a8; background: #fafafa; }
.huella-boton-icono.peligro:hover {
    border-color: var(--rojo, #b3462c);
    color: var(--rojo, #b3462c);
    background: var(--rojo-claro, #f5e3de);
}

.huella-vacio {
    font-size: 0.88rem;
    color: #777;
    padding: 14px;
    border: 1px dashed var(--linea, #d8dfca);
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    .huella-dispositivo { flex-wrap: wrap; }
    .huella-dispositivo-acciones { width: 100%; justify-content: flex-end; }
}
