/* ==========================================================================
   views/boveda.css — Estilos exclusivos de Bóveda privada (boveda.html)
   Prefijo de clases: bv-
   ========================================================================== */

/* Pantalla de bloqueo */
.bv-lock-card {
    position: relative;
    overflow: hidden;
    padding: 28px 20px 20px;
    border-radius: 26px;
    text-align: center;
    color: var(--white);
    background: radial-gradient(120% 80% at 50% 0%, #334155 0%, #1E293B 55%, #0F172A 100%);
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .6);
}
.bv-lock-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -120px;
    width: 280px;
    height: 280px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, .28), transparent 70%);
    pointer-events: none;
}
.bv-lock-ico {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
}
.bv-lock-title { font-size: 18px; font-weight: 700; color: var(--white); }
.bv-lock-sub { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-top: 2px; }

.bv-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 22px 0 10px;
}
.bv-dots i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .5);
    transition: background .15s, transform .15s, border-color .15s;
}
.bv-dots i.on { background: var(--white); border-color: var(--white); transform: scale(1.1); }
.bv-dots.is-error { animation: bv-shake .45s; }
.bv-dots.is-error i { border-color: #F87171; background: #F87171; }
.bv-dots.is-ok i { border-color: #4ADE80; background: #4ADE80; }

@keyframes bv-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-7px); }
    80% { transform: translateX(7px); }
}

.bv-error { font-size: 12.5px; font-weight: 600; color: #FCA5A5; min-height: 18px; }
.bv-error[hidden] { display: block; visibility: hidden; }

.bv-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 12px auto 0;
}
.bv-keypad button {
    height: 60px;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .1s;
}
.bv-keypad button:active { background: rgba(255, 255, 255, .22); transform: scale(.94); }
.bv-keypad .bv-key-alt { background: transparent; color: rgba(255, 255, 255, .75); }
.bv-demo { display: block; margin-top: 16px; font-size: 11px; color: rgba(255, 255, 255, .45); }

/* Contenido desbloqueado */
.bv-content { animation: app-slide-up .45s var(--app-ease) both; }
.bv-content[hidden], .bv-lock[hidden] { display: none; }

.bv-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--greyscale-100);
    box-shadow: var(--app-shadow);
}
.bv-banner div { flex: 1; min-width: 0; }
.bv-banner p { font-size: 14px; font-weight: 700; color: var(--primary-base); }
.bv-banner span { font-size: 12px; color: var(--greyscale-500); }
.bv-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-base);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

.bv-secret {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--greyscale-50);
    border: 1px solid var(--greyscale-100);
    color: var(--primary-base);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 12.5px;
    letter-spacing: .06em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bv-secret.is-shown { background: #FEF9C3; border-color: #FDE68A; }

.mod-item-body .bv-warn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--c-red);
    font-weight: 600;
}

.bv-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.bv-actions button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--greyscale-100);
    color: var(--greyscale-700);
}
.bv-actions button:active { transform: scale(.92); }
.bv-actions button.is-on { background: var(--c-indigo-bg); color: var(--c-indigo); }

/* Aviso */
.bv-notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--c-orange-bg);
    color: #9A4A0B;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
}
.bv-notice .ico { flex-shrink: 0; margin-top: 1px; color: var(--c-orange); }

/* Chips de filtro: anula el estilo global de <button> de la plantilla (width:100%, hover) */
.mod-toolbar button.ui-chip { width: auto; padding: 8px 14px; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--greyscale-700); }
.mod-toolbar button.ui-chip:hover { color: var(--greyscale-700); background: var(--white); border-color: var(--greyscale-200); }
.mod-toolbar button.ui-chip.active,
.mod-toolbar button.ui-chip.active:hover { color: var(--white); background: var(--primary-base); border-color: var(--primary-base); }

/* Botones: anula el estilo global de <button> de la plantilla */
.bv-keypad button { width: auto; padding: 0; line-height: 1; }
.bv-keypad button:hover { background: rgba(255, 255, 255, .08); color: var(--white); border: 0; }
.bv-keypad .bv-key-alt:hover { background: transparent; color: rgba(255, 255, 255, .75); }
.bv-actions button { padding: 0; }
.bv-actions button:hover { background: var(--greyscale-100); color: var(--greyscale-700); border: 0; }
.bv-actions button.is-on:hover { background: var(--c-indigo-bg); color: var(--c-indigo); }
.bv-lock-btn { width: auto; line-height: 1.2; flex-shrink: 0; }
.bv-lock-btn:hover { background: var(--primary-base); color: var(--white); border: 0; }
