/* base.css - Variables, Resets y Utilidades Globales */
:root {
    --primary: #1e293b;
    --accent: #e11d48; /* Rojo Nomimi */
    --accent-secondary: #f59e0b; /* Amarillo Nomimi */
    --success: #10b981;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning: #f59e0b;
    --warning-bg: #fef9c3;
    --warning-text: #854d0e;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    
    --bg-app: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 8px 16px rgba(225, 29, 72, 0.2);
    
    /* Breakpoints Estandarizados (Referencia para Media Queries) */
    /* --breakpoint-sm: 480px  (Mobile) */
    /* --breakpoint-md: 768px  (Tablet) */
    /* --breakpoint-lg: 1024px (Laptop) */
    /* --breakpoint-xl: 1200px (Desktop) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--primary);
    color: white;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
/* Override robusto sin !important */
html body *[class~="hidden"], .hidden { display: none; }
.responsive-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 768px) {
    .responsive-stack {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* --- ANIMACIONES GLOBALES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin { animation: spin 1s linear infinite; }

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--primary);
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-info { border-left-color: #3b82f6; }
.toast.toast-warning { border-left-color: var(--warning); }

.toast i { width: 20px; height: 20px; }

/* Utilidades de Rotación */
.rotate-180 { transform: rotate(180deg); }
