/* ==========================================
   1. FUENTES Y CUERPO BASE
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #f8fafc; 
    color: #0f172a; 
    overflow-x: hidden; 
    -webkit-tap-highlight-color: transparent; 
}

/* Personalización de la barra de desplazamiento (Scrollbar) */
::-webkit-scrollbar { width: 8px; } 
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ==========================================
   2. INPUTS Y FORMULARIOS
   ========================================== */
.light-input { 
    background-color: #f8fafc; /* Color de fondo base */
    border: 1px solid #e2e8f0; 
    color: #0f172a; 
    outline: none; 
    transition: all 0.3s; 
}

.light-input:focus { 
    border-color: #264893; 
    box-shadow: 0 0 0 3px rgba(38, 72, 147, 0.1); 
}

/* Interruptor (Toggle) de Nuevo Cliente en Calculadora */
.toggle-checkbox:checked { right: 0; border-color: #1f9b8c; }
.toggle-checkbox:checked + .toggle-label { background-color: #1f9b8c; }

/* ==========================================
   3. MODALES (VENTANAS EMERGENTES)
   ========================================== */
.modal { 
    display: none; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(8px); 
    z-index: 100000; 
}

.modal.active { 
    display: flex; 
    animation: fadeIn 0.3s ease; 
}

/* ==========================================
   4. ANIMACIONES Y EFECTOS
   ========================================== */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Ticker de Noticias (Cinta animada) */
.ticker-wrapper { 
    width: 100%; 
    overflow: hidden; 
    background-color: #264893; 
    color: white; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding: 8px 0; 
}

.ticker-content { 
    display: inline-block; 
    white-space: nowrap; 
    animation: ticker 30s linear infinite; 
    font-weight: 600; 
    font-size: 0.85rem; 
}

@keyframes ticker { 
    0% { transform: translateX(100vw); } 
    100% { transform: translateX(-100%); } 
}

/* Animación Flotante (Robot del inicio) */
@keyframes float { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-15px); } 
    100% { transform: translateY(0px); } 
}

.animate-float { 
    animation: float 6s ease-in-out infinite; 
}

/* Efectos Hover para las Tarjetas de Tienda */
.card-hover { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid #e2e8f0; 
}

.card-hover:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); 
    border-color: #1f9b8c; 
}

/* ==========================================
   5. CLASES DEL PANEL DE ADMINISTRADOR
   ========================================== */
.sidebar-item { 
    transition: all 0.3s ease; 
    cursor: pointer; 
    border-left: 4px solid transparent; 
}
.sidebar-item:hover { 
    background-color: #f1f5f9; 
    color: #264893; 
}
.sidebar-item.active { 
    background-color: #eff6ff; 
    color: #264893; 
    border-left-color: #264893; 
    font-weight: 700; 
}

.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.4s ease; }