/* 
 * BOS UI System - The Cinematic Standard
 * Version: 1.0 (2026-01-17)
 * Context: erpbsg Legado
 * 
 * Este archivo centraliza los componentes visuales de "Alta Fidelidad"
 * definidos en IDENTITY_SPECS.md.
 */

:root {
    --bos-pink: #E91E63;
    --bos-pink-dark: #C2185B;
    --bos-slate-night: #020617;
    --bos-white-10: rgba(255, 255, 255, 0.1);
    --bos-white-05: rgba(255, 255, 255, 0.05);
}

/* --- 1. TYPOGRAPHY --- */

.font-brand {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.06em;
    text-transform: lowercase;
    font-weight: 900;
}

.font-authority {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* H1 Formula: Montserrat 900 + Tight Line Height */
.h1-authority {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.text-accent {
    color: var(--bos-pink);
}

/* --- 2. GLASSMORPHISM CONTAINERS --- */

/* High Fidelity Card (Login, Errors) */
.glass-card {
    background: rgba(15, 23, 42, 0.4); /* Slate 900 / 40% */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    border-radius: 56px;
}

/* Operational Panel (Dashboard, Tables) */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

/* --- 3. INPUTS & FORMS --- */

.bos-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem; /* 16px */
    padding: 1rem 1.25rem; /* py-4 px-5 */
    color: white;
    transition: all 0.3s ease-in-out;
}

.bos-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.bos-input:focus {
    outline: none;
    border-color: var(--bos-pink);
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

/* Estados de Validación */
.bos-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    color: #fca5a5;
}

.bos-input.valid {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    color: #6ee7b7;
}

/* --- 4. BUTTONS --- */

/* The "Wow" Button (Gradient + Elevation) */
.btn-wow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bos-pink) 0%, var(--bos-pink-dark) 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 11px;
    border-radius: 1rem; /* 16px */
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.2);
    cursor: pointer;
    border: none;
}

.btn-wow:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}

.btn-wow:active {
    transform: scale(0.98);
}

.btn-wow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* --- 5. LED INDICATORS --- */

.bos-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.bos-led.active {
    background-color: #34d399; /* Emerald 400 */
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.2);
}

.bos-led-yellow {
    background-color: #fbbf24; /* Amber 400 */
    box-shadow: 0 0 10px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.2);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bos-led.inactive {
    background-color: #334155; /* Slate 700 */
    box-shadow: none;
}

/* --- 6. ANIMATIONS --- */

@keyframes bos-breathe {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes bos-orbit {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -4%) scale(1.05); }
    66% { transform: translate(-1%, 2%) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-breathe {
    animation: bos-breathe 6s infinite ease-in-out;
}

.animate-orbit {
    animation: bos-orbit 20s ease-in-out infinite;
}

.animate-orbit-delayed {
    animation: bos-orbit 25s ease-in-out infinite reverse;
}
