

       /* =========================================
   VARIABLES GLOBALES - DISEÑO SAAS UNIFICADO
========================================= */
:root {
    /* Variables de Layout y Navbar */
    --nav-height: 70px;
    --sidebar-width: 260px;
    --brand-primary: #6f42c1;
    --brand-secondary: #a855f7;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    
    /* Fondos y bordes */
    --bg-body: #f4f6f9;
    --bg-surface: #ffffff;
    --border-soft: #f1f5f9;
    
    /* Textos */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-gray-light: #94a3b8; /* Gris claro para iconos (menú, buscador) */
    --text-light: #f8fafc; /* Blanco humo para tarjetas oscuras */
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    /* Tarjetas de Métricas y Paneles (Bloque 2) */
    --pure-black: #050505;
    --dark-gradient: linear-gradient(145deg, #0f172a 0%, #020617 100%);
    --primary-gradient: linear-gradient(135deg, #6f42c1 0%, #a855f7 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    /* Patrón de fondo técnico */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

/* =========================================
   BARRA SUPERIOR (TOPBAR)
========================================= */
.navbar-ahizer {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--nav-height);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    padding: 0;
    z-index: 1050;
    position: fixed;
    top: 0; left: 0; right: 0;
    transition: all 0.3s ease;
}

.topbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1.5rem;
}

.topbar-left, .topbar-right { flex: 1; display: flex; align-items: center; }
.topbar-left { justify-content: flex-start; }
.topbar-right { justify-content: flex-end; }
.topbar-center { flex: 1; display: flex; justify-content: center; align-items: center; }

.menu-toggle-btn {
    background: transparent; border: none; color: var(--text-main);
    font-size: 1.4rem; padding: 5px; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle-btn:hover { color: var(--brand-primary); }

.main-logo { height: 20px; width: auto; object-fit: contain; }

/* Buscador PC */
.global-search {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    width: 100%; max-width: 400px; padding: 8px 16px;
    display: flex; align-items: center; transition: all 0.2s ease;
}
.global-search:focus-within {
    background: #ffffff; border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.global-search input { background: transparent; border: none; outline: none; width: 100%; margin-left: 10px; font-size: 0.9rem; color: var(--text-main); }
.global-search input::placeholder { color: var(--text-gray-light); }
.search-icon { color: var(--text-gray-light); }
.search-hint { color: var(--text-gray-light); border: 1px solid #e2e8f0; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }

/* Perfil de Usuario Topbar */
.user-profile-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; border-radius: 50px;
    background: #f8fafc; border: 1px solid transparent; transition: 0.2s; cursor: pointer;
}
.user-profile-btn:hover { background: #ffffff; border-color: #e2e8f0; box-shadow: var(--shadow-sm); }
.user-avatar-wrapper { position: relative; width: 36px; height: 36px; transition: all 0.2s; }
.user-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #ffffff; box-shadow: var(--shadow-sm); }
.online-indicator { position: absolute; bottom: 2px; right: 0px; width: 10px; height: 10px; background: #10b981; border: 2px solid #fff; border-radius: 50%; }
.user-meta { line-height: 1.1; }
.u-name { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.u-role { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px;}

/* Dropdown Perfil */
.custom-glass-dropdown {
    min-width: 240px; background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important; border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important; box-shadow: var(--shadow-lg) !important;
    padding: 10px 0; margin-top: 15px !important; transform-origin: top right;
    animation: dropdownFade 0.2s ease;
}
@keyframes dropdownFade { from { opacity: 0; transform: scale(0.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.dropdown-item { padding: 10px 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 10px; transition: 0.2s; }
.dropdown-item:hover { background: #f8fafc; color: var(--brand-primary); padding-left: 24px; }
.logout-link { color: #ef4444 !important; }
.logout-link:hover { background: #fef2f2 !important; color: #dc2626 !important; }

/* =========================================
   BARRA LATERAL (SIDEBAR) Y OVERLAY
========================================= */
.sidebar {
    position: fixed; top: var(--nav-height); left: 0;
    width: var(--sidebar-width); height: calc(100vh - var(--nav-height));
    background-color: var(--bg-surface); border-right: 1px solid var(--border-soft);
    display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

.sidebar-overlay {
    position: fixed; top: var(--nav-height); left: 0;
    width: 100vw; height: calc(100vh - var(--nav-height));
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(2px);
    z-index: 1020; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

.sidebar-menu { flex-grow: 1; overflow-y: auto; padding: 1.5rem 1rem; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu a { display: flex; align-items: center; color: var(--text-muted); padding: 10px 14px; margin-bottom: 4px; text-decoration: none; font-size: 0.8rem; font-weight: 600; border-radius: 12px; transition: all 0.2s ease; }
.sidebar-menu a i { width: 22px; font-size: 1rem; color: var(--text-gray-light); transition: 0.2s ease; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: #f3e8ff; color: var(--brand-primary); }
.sidebar-menu a:hover i, .sidebar-menu a.active i { color: var(--brand-primary); }

.sidebar-footer-ahizer { padding: 1.2rem 1rem; border-top: 1px solid var(--border-soft); background: #ffffff; }
.plan-card-light { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.plan-badge-label { font-size: 0.6rem; font-weight: 800; color: var(--brand-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: block; }
.plan-title { font-size: 0.85rem; font-weight: 800; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; margin: 0; }
.plan-progress-container { height: 5px; background: #f1f5f9; border-radius: 10px; margin: 10px 0 6px 0; overflow: hidden; }
.progress-fill-purple { height: 100%; background: var(--brand-gradient); border-radius: 10px; }
.plan-status-text { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); display: block; }
.btn-qr-action { width: 100%; background: #ffffff; color: var(--text-main); border: 1.5px solid var(--brand-primary); border-radius: 10px; padding: 8px; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: 0.2s ease; cursor: pointer; margin-bottom: 6px; }
.btn-qr-action:hover { background: var(--brand-primary); color: #ffffff; }
.btn-support-action { width: 100%; background: #f8fafc; color: var(--text-muted); border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; text-decoration: none !important; transition: 0.2s; }
.btn-support-action:hover { background: #e2e8f0; color: var(--text-main); }
.social-icons-footer { display: flex; justify-content: center; gap: 15px; margin-top: 12px; }
.social-icons-footer a { color: var(--text-gray-light); font-size: 1.1rem; transition: 0.2s; }
.social-icons-footer a:hover { color: var(--brand-primary); transform: translateY(-2px); }

/* =========================================
   BARRA NAVEGACIÓN MÓVIL (BOTTOM NAV)
========================================= */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    background: rgba(255, 255, 255, 0.90); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05); z-index: 1030; padding: 0 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05); padding-bottom: env(safe-area-inset-bottom);
}
.nav-group { display: flex; justify-content: space-around; width: 40%; height: 100%; }
.nav-item-mobile { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-gray-light); text-decoration: none !important; font-size: 0.55rem; font-weight: 700; transition: all 0.2s ease; height: 100%; width: 100%; }
.nav-item-mobile i { font-size: 1.2rem; margin-bottom: 4px; transition: all 0.2s ease; }
.nav-item-mobile.active { color: var(--brand-primary) !important; }
.nav-item-mobile.active i { transform: scale(1.15); color: var(--brand-primary); }

.fab-center { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 20px); left: 50%; transform: translateX(-50%); width: 58px; height: 58px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 -2px 10px rgba(0,0,0,0.03); z-index: 1031; }
.fab-btn { width: 100%; height: 100%; background: var(--brand-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 1.4rem; box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4); transition: 0.2s; }
.fab-btn:active { transform: scale(0.95); }

/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */
.main-content { margin-left: var(--sidebar-width); padding: 2rem; transition: all 0.3s; margin-top: -45px }

/* =========================================
   HEADER & BIENVENIDA
========================================= */
.welcome-section {
    padding: 10px 0 20px 0;
}
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.welcome-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pure-black);
    letter-spacing: -0.5px;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.welcome-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* =========================================
   CARRUSEL DE TARJETAS (MÓVIL)
========================================= */
.metrics-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    margin-right: -15px;
    padding-right: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.metrics-carousel::-webkit-scrollbar { display: none; }

.carousel-cell {
    min-width: 88%;
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .metrics-carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin: 0;
        padding-right: 0;
        overflow-x: visible;
    }
    .carousel-cell { min-width: 0; }
}

/* =========================================
   TARJETAS DE MÉTRICAS (ALTO IMPACTO)
========================================= */
.card-main {
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Anillos decorativos de fondo */
.card-main::before {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-dark {
    background: var(--dark-gradient);
    color: var(--text-light);
    border: 1px solid #1e293b;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.3);
    cursor: pointer;
}
.card-dark::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}
.card-dark .text-muted { color: #94a3b8 !important; }

/* Contenidos Tarjeta */
.card-header-icon {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.card-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.icon-dark { background: rgba(255,255,255,0.1); color: #fff; }
.icon-light { background: #f3e8ff; color: var(--brand-primary); }

.card-value {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 10px;
}
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Indicadores (Instrucciones) */
.indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
    color: var(--text-muted);
    width: fit-content;
}
.card-dark .indicator-pill {
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
}
.indicator-success { background: #dcfce7 !important; color: #166534 !important; }

/* =========================================
   RENDIMIENTO CANALES & GRÁFICO
========================================= */
.section-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.04);
    height: 100%;
}
.panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.channel-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}
.channel-box:hover {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 5px 15px -3px rgba(0,0,0,0.05);
}
.channel-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 1rem;
}
.channel-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 2px;
    line-height: 1;
}
.channel-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.chart-container { position: relative; height: 250px; width: 100%; }

/* =========================================
   RANKING DE PRODUCTOS
========================================= */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: 0.2s;
}
.ranking-item:hover {
    background: #ffffff;
    border-color: var(--brand-secondary);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08);
    transform: translateX(4px);
}
.rank-number {
    width: 28px; height: 28px;
    background: #ffffff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.8rem; color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-right: 12px;
}
.rank-info { flex-grow: 1; }
.rank-name { font-size: 0.85rem; font-weight: 800; color: var(--text-main); margin: 0 0 2px 0; }
.rank-badge { font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.bg-hot { background: #fee2e2; color: #ef4444; }
.bg-cold { background: #e2e8f0; color: #475569; }

.rank-qty-box { text-align: right; }
.rank-qty { font-size: 1.1rem; font-weight: 900; color: var(--brand-primary); margin: 0; line-height: 1;}
.rank-unit { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); }

/* =========================================
   MODAL TASA (ESTILO IOS/SAAS)
========================================= */
.modal-custom {
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7);
    z-index: 9999; backdrop-filter: blur(8px);
}
.modal-custom.active { display: flex; }
.modal-content.b-square { border-radius: 28px; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); }
.label-luxury { font-size: 0.7rem; font-weight: 800; color: #64748b; letter-spacing: 1px; text-transform: uppercase; }
.input-luxury { 
    width: 100%; border: none; border-bottom: 2px solid #e2e8f0; 
    padding: 15px 0; font-size: 2rem; font-weight: 900; outline: none; 
    transition: 0.3s; color: #0f172a; text-align: center; background: transparent;
}
.input-luxury:focus { border-bottom-color: var(--brand-secondary); }
.btn-luxury-purple { 
    background: var(--dark-gradient); color: #fff; border: none; 
    padding: 16px; border-radius: 16px; font-weight: 800; font-size: 0.95rem; 
    transition: 0.3s; width: 100%; letter-spacing: 0.5px;
}
.btn-luxury-purple:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.4); }

/* =========================================
   DISEÑO MÓVIL (COMPACTO Y MINIMALISTA) & REDUCCIONES
========================================= */
@media (max-width: 992px) {
    
    :root {
        --nav-height: 55px;
    }

    .main-content { margin-left: 0; padding: 1rem 0.5rem 90px 0.5rem;  margin-top: -5px  }
    .topbar-wrapper { padding: 0 10px; } 
    
    .topbar-left { flex: 1; justify-content: flex-start; }
    .topbar-center { flex: 1; justify-content: center; }
    .topbar-right { flex: 1; justify-content: flex-end; }
    
    .navbar-ahizer { box-shadow: none; }
    
    .menu-toggle-btn {
        background: transparent; border: none; color: var(--text-main);
        width: auto; height: auto; padding: 5px; font-size: 1.2rem; box-shadow: none;
    }

    .main-logo { height: 18px; }
    .global-search { display: none; }

    .user-profile-btn {
        background: transparent !important; border: none !important;
        padding: 0 !important; box-shadow: none !important;
    }
    .user-avatar-wrapper { width: 32px; height: 32px; }
    .user-avatar-wrapper img { border: 1px solid #e2e8f0; box-shadow: none; }

    .sidebar {
        top: var(--nav-height); 
        height: calc(100vh - var(--nav-height));
        z-index: 1045; 
        transform: translateX(-100%); 
    }
    .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
    
    .sidebar-overlay { 
        top: var(--nav-height); 
        height: calc(100vh - var(--nav-height));
        z-index: 1040; 
    }
    
    .custom-glass-dropdown {
        margin-top: 10px !important; right: -5px !important; 
        border-radius: 12px !important;
    }
}

@media (min-width: 993px) {
    .menu-toggle-btn { display: none; }
    .topbar-left { flex: 0 0 auto; margin-right: 2rem; }
    .topbar-center { justify-content: flex-start; }
    .mobile-bottom-nav { display: none !important; }
    .sidebar-overlay { display: none !important; }
}

@media (max-width: 576px) {
    #main-content { padding: 12px; }
    
    .welcome-title { font-size: 1.4rem; }
    .welcome-subtitle { font-size: 0.75rem; }
    .date-badge { font-size: 0.65rem; padding: 4px 10px; }

    .card-main { padding: 1.2rem; border-radius: 20px; }
    .card-label { font-size: 0.65rem; }
    .card-value { font-size: 1.8rem; }
    .indicator-pill { font-size: 0.65rem; padding: 3px 8px; }
    
    .section-panel { padding: 1.2rem; border-radius: 20px; }
    .panel-title { font-size: 0.95rem; margin-bottom: 1rem; }
    
    .channel-grid { gap: 8px; }
    .channel-box { padding: 10px 5px; border-radius: 12px; }
    .channel-icon { width: 32px; height: 32px; font-size: 0.85rem; margin-bottom: 5px; }
    .channel-value { font-size: 0.95rem; }
    .channel-label { font-size: 0.6rem; }
    
    .chart-container { height: 180px; }

    .ranking-item { padding: 10px; border-radius: 14px; }
    .rank-number { width: 24px; height: 24px; font-size: 0.75rem; margin-right: 10px; }
    .rank-name { font-size: 0.75rem; }
    .rank-badge { font-size: 0.55rem; }
    .rank-qty { font-size: 0.95rem; }

    /* Modal Ajustes Móvil */
    .modal-dialog-centered { padding: 0 !important; margin: 0 !important; width: 100%; height: 100%; align-items: flex-end !important; }
    .modal-content.b-square { 
        max-width: 100% !important; border-radius: 30px 30px 0 0 !important; 
        padding-bottom: 30px; animation: slideUp 0.3s ease-out;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
 /* =========================================
       DISEÑO ESPECÍFICO - VISTA MESAS
    ========================================= */

    /* Cabecera de la App */
    .app-header {
        margin-bottom: 1.5rem;
    }
    .badge-soft-indigo {
        background-color: #f3e8ff;
        color: var(--brand-primary, #6f42c1);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    .app-title {
        font-weight: 900;
        font-size: 1.8rem;
        margin: 0;
        color: #0f172a;
        letter-spacing: -0.5px;
    }
    .btn-ahizer-fab {
        width: 48px; height: 48px;
        border-radius: 16px;
        background: linear-gradient(135deg, #6f42c1, #a855f7);
        color: #fff !important;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem;
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
        transition: 0.2s; cursor: pointer;
    }
    .btn-ahizer-fab:active { transform: scale(0.95); }

    /* Filtros (Chips) */
    .status-filters {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 5px;
        width: 100%;
    }
    .status-filters::-webkit-scrollbar { display: none; }
    .filter-chip {
        padding: 8px 18px;
        border-radius: 24px;
        background: #ffffff;
        color: #64748b;
        font-size: 0.8rem;
        font-weight: 700;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        transition: 0.2s;
        white-space: nowrap;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .filter-chip.active {
        background: #0f172a;
        color: #ffffff;
        border-color: #0f172a;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    }

    /* =========================================
       TARJETAS DE MESAS
    ========================================= */
    .mesa-anchor { text-decoration: none !important; display: block; height: 100%; }
    
    .card-mesa-premium {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        padding: 18px 12px;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px -2px rgba(0,0,0,0.03);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
    }
    .card-mesa-premium:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
    }

    /* Píldora de Estado (Esquina Superior) */
    .status-pill {
        position: absolute;
        top: 12px; right: 12px;
        font-size: 0.6rem;
        font-weight: 800;
        padding: 4px 8px;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Gráfico Central de la Mesa */
    .mesa-visual {
        width: 75px; height: 75px;
        border-radius: 50%;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        margin: 15px 0 12px 0;
        position: relative;
        transition: 0.3s;
        border: 4px solid;
    }
    .mesa-number {
        font-size: 1.6rem;
        font-weight: 900;
        color: #0f172a;
        line-height: 1;
    }
    .icon-wrapper {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    /* Textos Inferiores */
    .mesa-info { width: 100%; }
    .mesa-label {
        font-size: 0.95rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 4px 0;
    }
    .capacidad-wrapper small {
        font-size: 0.75rem;
        font-weight: 700;
    }

    /* ESTADO: LIBRE (Verde) */
    .available-card { border-color: #e2e8f0; }
    .available-card:hover { border-color: #10b981; }
    .available-card .status-pill { background: #dcfce7; color: #166534; }
    .available-card .mesa-visual { background: #ffffff; border-color: #dcfce7; }
    .available-card .icon-wrapper { color: #10b981; }

    /* ESTADO: OCUPADA (Rosa/Rojo suave) */
    .occupied-card { background: #fff1f2; border-color: #fecdd3; }
    .occupied-card:hover { border-color: #f43f5e; box-shadow: 0 12px 20px -5px rgba(244, 63, 94, 0.2); }
    .occupied-card .status-pill { background: #ffe4e6; color: #be123c; }
    .occupied-card .mesa-visual { background: #ffffff; border-color: #fda4af; }
    .occupied-card .icon-wrapper { color: #f43f5e; }

    /* =========================================
       MODAL DE CREACIÓN
    ========================================= */
    .modal-content.b-square {
        border-radius: 28px;
        border: none;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    .close-minimal {
        background: #f1f5f9;
        border: none;
        width: 32px; height: 32px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; color: #64748b;
        cursor: pointer; transition: 0.2s;
    }
    .close-minimal:hover { background: #e2e8f0; color: #0f172a; }
    .text-purple-soft { color: #8b5cf6; }
    
    .stepper-luxury {
        display: flex; align-items: center;
        background: #f8fafc; border: 1px solid #e2e8f0;
        border-radius: 20px; padding: 6px; width: 100%;
    }
    .step-btn-lux {
        width: 50px; height: 50px;
        border-radius: 16px; border: none;
        background: #ffffff; color: #0f172a;
        font-size: 1.5rem; font-weight: 600; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        cursor: pointer; transition: 0.2s;
        display: flex; align-items: center; justify-content: center;
    }
    .step-btn-lux:active { transform: scale(0.95); background: #f1f5f9; }
    .stepper-luxury input {
        flex-grow: 1; text-align: center; border: none; background: transparent;
        font-size: 1.8rem; font-weight: 900; color: #0f172a; outline: none;
    }

    /* Espaciado del grid */
    .no-gutters { margin-right: -10px; margin-left: -10px; }
    .no-gutters > [class*="col-"] { padding-right: 10px; padding-left: 10px; }
    
    /* Espacio para la barra flotante (si usas ese diseño) */
    @media (max-width: 992px) {
        .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
    }
 /* =========================================
           DISEÑO ESPECÍFICO - CATÁLOGO DE PRODUCTOS
        ========================================= */

        /* Cabecera */
        .app-header { margin-bottom: 1rem; }
        .badge-soft-indigo {
            background-color: #f3e8ff;
            color: var(--brand-primary, #6f42c1);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
        }
        .app-title { font-weight: 900; font-size: 1.8rem; margin: 0; color: #0f172a; letter-spacing: -0.5px; }
        .app-subtitle { color: #64748b; font-size: 0.9rem; margin-top: 5px; font-weight: 500; }

        .btn-action-gradient {
            background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
            color: #ffffff !important;
            border: none;
            border-radius: 14px;
            padding: 10px 20px;
            font-weight: 700;
            font-size: 0.9rem;
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
            transition: all 0.2s ease;
            text-decoration: none !important;
        }
        .btn-action-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(15, 23, 42, 0.3); }

        /* Barra de Herramientas (Filtros/Vistas) */
        .tool-bar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(16px);
            padding: 12px 16px;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 10px -2px rgba(0,0,0,0.03);
        }
        .items-count { font-size: 0.85rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
        
        .view-switcher-glass {
            display: flex;
            background: #f1f5f9;
            border-radius: 12px;
            padding: 4px;
            border: 1px solid #e2e8f0;
        }
        .btn-v {
            background: transparent;
            border: none;
            color: #94a3b8;
            width: 34px; height: 34px;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            transition: 0.2s; cursor: pointer;
            font-size: 1rem;
        }
        .btn-v.active {
            background: #ffffff;
            color: var(--brand-primary, #6f42c1);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        /* Tarjeta de Producto (Premium) */
        .card-product-luxury {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px -5px rgba(0,0,0,0.03);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .card-product-luxury:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px -5px rgba(0,0,0,0.08);
            border-color: var(--brand-secondary, #a855f7);
        }

        /* Contenedor de Imagen */
        .img-container {
            width: 100%;
            aspect-ratio: 1 / 1;
            background-color: #f8fafc;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid #f1f5f9;
        }
        .img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            transition: transform 0.4s ease;
        }
        .card-product-luxury:hover .img-container img { transform: scale(1.05); }

        /* Contenedor de Información */
        .info-container {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .product-name { font-weight: 800; font-size: 1rem; color: #0f172a; margin-bottom: 6px; line-height: 1.2; }
        .product-description-small {
            font-size: 0.75rem; color: #64748b; font-weight: 500;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; margin-bottom: 12px; line-height: 1.4;
        }
        .price-tag { font-weight: 900; color: var(--brand-primary, #6f42c1); font-size: 1.25rem; line-height: 1; }
        
        .edit-icon-circle {
            background: #f8fafc;
            width: 32px; height: 32px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: #94a3b8;
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
        }
        .card-product-luxury:hover .edit-icon-circle {
            background: var(--brand-primary, #6f42c1);
            color: #ffffff;
            border-color: var(--brand-primary, #6f42c1);
        }

        /* =========================================
           VISTA LISTA (List View)
        ========================================= */
        .vista-lista .producto-item { max-width: 100%; flex: 0 0 100%; }
        .vista-lista .card-product-luxury {
            flex-direction: row; align-items: center; padding: 12px;
            border-radius: 16px;
        }
        .vista-lista .img-container {
            width: 90px; height: 90px; min-width: 90px;
            border-radius: 12px; border: none;
        }
        .vista-lista .info-container { padding: 0 16px; justify-content: center; }
        .vista-lista .product-description-small { -webkit-line-clamp: 1; margin-bottom: 8px; }

        @media (max-width: 992px) {
            .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
            .info-container { padding: 12px; }
            .product-name { font-size: 0.9rem; }
            .price-tag { font-size: 1.1rem; }
        }

 /* =========================================
       DISEÑO ESPECÍFICO - REGISTRO DE VENTAS
    ========================================= */

    /* Cabecera */
    .app-header { margin-bottom: 1.5rem; }
    .badge-soft-indigo {
        background-color: #f3e8ff;
        color: var(--brand-primary, #6f42c1);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    .app-title { font-weight: 900; font-size: 1.8rem; margin: 0; color: #0f172a; letter-spacing: -0.5px; }
    .app-subtitle { color: #64748b; font-size: 0.9rem; margin-top: 5px; font-weight: 500; }

    /* Barra de Búsqueda y Filtros */
    .filter-wrapper {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        border-radius: 24px;
        padding: 1.2rem;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
        margin-bottom: 2rem;
    }
    .filter-label {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 6px;
        display: block;
        letter-spacing: 0.5px;
    }
    .input-clean {
        width: 100%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #0f172a;
        outline: none;
        transition: all 0.2s ease;
    }
    .input-clean:focus { border-color: var(--brand-secondary, #a855f7); background: #ffffff; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }
    
    .btn-action-gradient {
        background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
        color: #ffffff !important;
        border: none;
        border-radius: 12px;
        padding: 12px 20px;
        font-weight: 700;
        font-size: 0.9rem;
        display: inline-flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
        transition: all 0.2s ease;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }
    .btn-action-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(15, 23, 42, 0.3); }

    /* Tarjetas de Tickets (Comandas) */
    .ticket-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        box-shadow: 0 4px 15px -3px rgba(0,0,0,0.03);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }
    .ticket-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px -5px rgba(0,0,0,0.08);
        border-color: var(--brand-secondary, #a855f7);
    }

    /* Header del Ticket */
    .ticket-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 16px 20px;
        border-bottom: 1px dashed #e2e8f0;
        background: #f8fafc;
    }
    .order-id { font-weight: 900; color: #0f172a; font-size: 1.1rem; letter-spacing: -0.5px; }
    .order-time { font-size: 0.7rem; font-weight: 600; color: #64748b; display: block; margin-top: 2px; }

    /* Etiquetas de Canal (Unificadas con Reportes) */
    .badge-channel {
        font-size: 0.65rem;
        padding: 4px 10px;
        border-radius: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid transparent;
        display: flex; align-items: center; gap: 4px;
    }
    .bg-table { background: #f3e8ff; color: #6f42c1; border-color: #e9d5ff; }
    .bg-delivery { background: #fff7ed; color: #ea580c; border-color: #ffedd5; }
    .bg-pickup { background: #f0fdf4; color: #16a34a; border-color: #dcfce7; }
    .bg-web { background: #f0f9ff; color: #0284c7; border-color: #e0f2fe; }
    .bg-default { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

    /* Body del Ticket */
    .ticket-body { padding: 16px 20px; flex-grow: 1; }
    .client-name { font-weight: 800; font-size: 0.95rem; margin-bottom: 10px; color: #0f172a; }
    .product-list { font-size: 0.8rem; color: #475569; line-height: 1.5; font-weight: 600; }
    .product-item-row { display: flex; align-items: flex-start; margin-bottom: 4px; }
    .product-item-row i { color: #94a3b8; font-size: 0.6rem; margin-top: 5px; margin-right: 6px; }

    /* Footer del Ticket */
    .ticket-footer {
        padding: 16px 20px;
        background: #ffffff;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .total-label { font-size: 0.65rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; display: block; letter-spacing: 1px; }
    .total-amount { font-size: 1.3rem; font-weight: 900; color: var(--brand-primary, #6f42c1); line-height: 1; }
    
    .btn-print {
        background: #f1f5f9;
        color: #0f172a;
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
        transition: 0.2s;
    }
    .btn-print:hover { background: #e2e8f0; color: var(--brand-primary, #6f42c1); border-color: #cbd5e1; }
    .btn-print:active { transform: scale(0.95); }

    /* Loader */
    .loader-spinner {
        display: none; text-align: center; padding: 2rem; color: #94a3b8; font-weight: 700; font-size: 0.9rem;
    }

    @media (max-width: 992px) {
        .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
        .filter-wrapper { padding: 1rem; }
    }
 /* =========================================
       DISEÑO ESPECÍFICO - EDITAR TIENDA
    ========================================= */

    /* Cabecera */
    .app-header { margin-bottom: 1.5rem; }
    .badge-soft-indigo {
        background-color: #f3e8ff;
        color: var(--brand-primary, #6f42c1);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    .app-title { font-weight: 900; font-size: 1.8rem; margin: 0; color: #0f172a; letter-spacing: -0.5px; }

    /* Tarjetas Minimalistas */
    .card-minimal {
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .section-title {
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 1.2rem;
        letter-spacing: 1px;
        display: flex; align-items: center; gap: 8px;
    }

    /* Branding: Banner y Logo */
    .visual-container {
        position: relative;
        margin-bottom: 4rem; /* Espacio para el logo que sobresale */
    }
    .banner-box {
        width: 100%;
        height: 200px;
        background: #f1f5f9;
        border-radius: 24px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px dashed #cbd5e1;
        display: flex; align-items: center; justify-content: center;
        position: relative;
    }
    .banner-box:hover { border-color: var(--brand-primary); background: #f8fafc; }
    .banner-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
    .banner-placeholder { position: relative; z-index: 2; text-align: center; color: #94a3b8; }
    
    .logo-box {
        width: 120px;
        height: 120px;
        background: #ffffff;
        border-radius: 30px; /* Squircle (Cuadrado muy redondeado) */
        position: absolute;
        bottom: -40px;
        left: 30px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border: 4px solid #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        z-index: 5;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .logo-box:hover { transform: scale(1.05); box-shadow: 0 15px 35px rgba(111, 66, 193, 0.2); }
    .logo-box img { width: 100%; height: 100%; object-fit: contain; position: absolute; z-index: 1; background: #fff;}
    .logo-placeholder { position: relative; z-index: 2; color: var(--brand-primary); font-size: 2rem; }

    /* Inputs y Formularios */
    .input-label {
        font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
        color: #64748b; margin-bottom: 8px; display: block; letter-spacing: 0.5px;
    }
    .input-clean {
        width: 100%; background: #f8fafc; border: 1px solid #e2e8f0;
        border-radius: 14px; padding: 12px 16px; font-size: 0.95rem;
        font-weight: 600; color: #0f172a; outline: none; transition: all 0.2s ease;
    }
    .input-clean:focus { border-color: var(--brand-secondary); background: #ffffff; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }
    textarea.input-clean { resize: none; }

    /* Inputs con Iconos */
    .icon-input-wrapper { position: relative; display: flex; align-items: center; }
    .icon-input-wrapper i { position: absolute; left: 16px; color: #94a3b8; font-size: 1.1rem; transition: 0.2s; }
    .icon-input-wrapper .input-clean { padding-left: 45px; }
    .icon-input-wrapper:focus-within i { color: var(--brand-primary); }

    /* Botones */
    .btn-luxury-purple {
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
        color: #fff; border: none; padding: 16px; border-radius: 16px; 
        font-weight: 800; font-size: 1rem; transition: 0.3s; width: 100%; 
        letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
        cursor: pointer;
    }
    .btn-luxury-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.5); }

    /* Modal Google Maps */
    .modal-content.b-square { border-radius: 28px; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; }
    .close-minimal { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #64748b; cursor: pointer; transition: 0.2s; }
    .close-minimal:hover { background: #e2e8f0; color: #0f172a; }
    
    #pac-input {
        position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
        width: 85%; z-index: 5; border-radius: 12px; border: 2px solid var(--brand-primary);
        padding: 12px 16px; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.15); outline: none;
    }
    .pac-container { z-index: 10000 !important; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); font-family: inherit; margin-top: 5px; border: none; }

    @media (max-width: 992px) {
        .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
        .card-minimal { padding: 1.2rem; border-radius: 20px; }
        .banner-box { height: 160px; }
        .logo-box { width: 100px; height: 100px; bottom: -30px; left: 50%; transform: translateX(-50%); }
        .visual-container { margin-bottom: 3.5rem; }
    }

  /* =========================================
           DISEÑO ESPECÍFICO - CONFIGURACIÓN
        ========================================= */

        /* Cabecera */
        .app-header { margin-bottom: 1.5rem; }
        .badge-soft-indigo {
            background-color: #f3e8ff;
            color: var(--brand-primary, #6f42c1);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
        }
        .app-title { font-weight: 900; font-size: 1.8rem; margin: 0; color: #0f172a; letter-spacing: -0.5px; }

        /* Tarjetas Minimalistas */
        .card-minimal {
            border: 1px solid #e2e8f0;
            border-radius: 24px;
            background: #ffffff;
            box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .section-title {
            font-size: 0.85rem;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--brand-primary, #6f42c1);
            margin-bottom: 1.2rem;
            letter-spacing: 1px;
            display: flex; align-items: center; gap: 8px;
        }

        /* Inputs Generales */
        .input-label {
            font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
            color: #64748b; margin-bottom: 8px; display: block; letter-spacing: 0.5px;
        }
        .input-clean {
            width: 100%; background: #f8fafc; border: 1px solid #e2e8f0;
            border-radius: 14px; padding: 12px 16px; font-size: 0.95rem;
            font-weight: 600; color: #0f172a; outline: none; transition: all 0.2s ease;
        }
        .input-clean:focus { border-color: var(--brand-secondary, #a855f7); background: #ffffff; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }
        textarea.input-clean { resize: none; }

        /* Controles Bootstrap Overrides (Switches y Checkboxes) */
        .custom-switch .custom-control-label::before {
            height: 1.5rem; width: 2.75rem; border-radius: 2rem; background-color: #cbd5e1; border: none; cursor: pointer; transition: 0.2s;
        }
        .custom-switch .custom-control-label::after {
            width: calc(1.5rem - 4px); height: calc(1.5rem - 4px); border-radius: 50%; top: calc(0.25rem + 2px); left: calc(-2.25rem + 2px); cursor: pointer;
        }
        .custom-control-input:checked ~ .custom-control-label::before {
            background-color: var(--brand-primary, #6f42c1); border-color: var(--brand-primary, #6f42c1);
        }

        .option-box {
            background: #f8fafc;
            border-radius: 14px;
            padding: 14px 16px;
            margin-bottom: 10px;
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
        }
        .option-box:hover { border-color: var(--brand-secondary, #a855f7); background: #ffffff; }
        
        .custom-checkbox .custom-control-label::before { border-radius: 6px; width: 1.25rem; height: 1.25rem; top: 0.1rem; border: 2px solid #cbd5e1; }
        .custom-checkbox .custom-control-label::after { width: 1.25rem; height: 1.25rem; top: 0.1rem; }
        .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--brand-primary, #6f42c1); border-color: var(--brand-primary, #6f42c1); }

        /* Botones */
        .btn-luxury-purple {
            background: linear-gradient(135deg, var(--brand-primary, #6f42c1), var(--brand-secondary, #a855f7));
            color: #fff; border: none; padding: 16px; border-radius: 16px; 
            font-weight: 800; font-size: 1rem; transition: 0.3s; width: 100%; 
            letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
            cursor: pointer;
        }
        .btn-luxury-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.5); }
        
        .btn-outline-dashed {
            width: 100%; background: transparent; color: var(--brand-primary, #6f42c1);
            border: 2px dashed #cbd5e1; border-radius: 14px; padding: 14px;
            font-weight: 800; font-size: 0.9rem; transition: 0.2s; cursor: pointer;
        }
        .btn-outline-dashed:hover { border-color: var(--brand-primary, #6f42c1); background: #f3e8ff; }

        /* Tarjetas de Impresoras (Generadas Dinámicamente) */
        .printer-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 15px;
            position: relative;
            box-shadow: 0 4px 10px rgba(0,0,0,0.02);
        }

        /* Modal */
        .modal-content.b-square { border-radius: 28px; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); text-align: center; }
        .btn-modal-ok { background: #f1f5f9; color: var(--brand-primary, #6f42c1); font-weight: 800; border: none; border-radius: 14px; padding: 12px 20px; width: 100%; transition: 0.2s;}
        .btn-modal-ok:hover { background: #e2e8f0; }

        @media (max-width: 992px) {
            .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
            .card-minimal { padding: 1.2rem; border-radius: 20px; }
        }
  /* =========================================
       DISEÑO ESPECÍFICO - EDITAR PRODUCTO
    ========================================= */

    /* Cabecera */
    .app-header { margin-bottom: 1.5rem; }
    .badge-soft-indigo {
        background-color: #f3e8ff;
        color: var(--brand-primary, #6f42c1);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    .app-title { font-weight: 900; font-size: 1.8rem; margin: 0; color: #0f172a; letter-spacing: -0.5px; }

    /* Botón Eliminar (Clean Danger) */
    .btn-delete-luxury {
        background: #fff1f2;
        color: #e11d48;
        border: 1px solid #ffe4e6;
        border-radius: 14px;
        padding: 10px 18px;
        font-weight: 700;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
    }
    .btn-delete-luxury:hover { background: #ffe4e6; border-color: #fecdd3; transform: translateY(-2px); }
    .btn-delete-luxury:active { transform: scale(0.95); }

    /* Tarjeta Principal */
    .card-minimal {
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    /* Inputs y Etiquetas */
    .input-label {
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 8px;
        display: block;
        letter-spacing: 0.5px;
    }
    .input-clean {
        width: 100%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 12px 16px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #0f172a;
        outline: none;
        transition: all 0.2s ease;
    }
    .input-clean:focus { 
        border-color: var(--brand-secondary, #a855f7); 
        background: #ffffff; 
        box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); 
    }
    textarea.input-clean { resize: none; }

    /* Galería de Imágenes */
    .gallery-uploader {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: 100%;
    }
    .main-viewer {
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        border-radius: 20px;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        transition: 0.3s;
    }
    .main-viewer:hover { border-color: var(--brand-primary); background: #f3e8ff; }
    .upload-trigger-btn {
        display: flex; flex-direction: column; align-items: center; gap: 10px;
        color: var(--brand-primary); cursor: pointer; text-align: center;
    }
    .upload-trigger-btn i { font-size: 2.5rem; }
    #activeImage { width: 100%; height: 100%; object-fit: cover; display: none; border-radius: 18px; }

    /* Carrusel de Miniaturas */
    .insta-reel {
        display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .insta-reel::-webkit-scrollbar { display: none; }
    .add-more-reel {
        width: 65px; height: 65px; flex-shrink: 0;
        border-radius: 14px; background: #f1f5f9; border: 1px dashed #cbd5e1;
        display: flex; align-items: center; justify-content: center;
        color: #94a3b8; cursor: pointer; transition: 0.2s; font-size: 1.2rem;
    }
    .add-more-reel:hover { background: #e2e8f0; color: var(--brand-primary); border-color: var(--brand-primary); }
    
    .thumb-item {
        width: 65px; height: 65px; flex-shrink: 0; position: relative;
        border-radius: 14px; cursor: pointer; overflow: hidden;
        border: 2px solid transparent; transition: 0.2s;
    }
    .thumb-item.active { border-color: var(--brand-primary); box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3); }
    .thumb-item img { width: 100%; height: 100%; object-fit: cover; }
    .btn-remove {
        position: absolute; top: 2px; right: 2px;
        background: rgba(15, 23, 42, 0.7); color: #fff;
        width: 18px; height: 18px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.7rem; font-weight: bold; line-height: 1; backdrop-filter: blur(4px);
    }
    .btn-remove:hover { background: #ef4444; }

    /* Campo de Precio */
    .money-input-wrapper {
        position: relative;
        display: flex; align-items: center;
    }
    .money-symbol {
        position: absolute; left: 16px;
        font-size: 1.1rem; font-weight: 800; color: #64748b;
    }
    .money-input {
        padding-left: 35px !important;
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        color: var(--brand-primary) !important;
    }

    /* Adicionales */
    .btn-add-adicional {
        background: #f3e8ff; color: var(--brand-primary);
        border: 1px dashed var(--brand-primary); border-radius: 12px;
        padding: 10px; width: 100%; font-weight: 700; font-size: 0.85rem;
        transition: 0.2s; cursor: pointer;
    }
    .btn-add-adicional:hover { background: #e9d5ff; }
    
    .adicional-item-box {
        display: flex; gap: 10px; align-items: center;
        background: #f8fafc; padding: 10px; border-radius: 14px;
        border: 1px solid #e2e8f0; margin-bottom: 10px;
    }
    .btn-eliminar-adicional {
        background: #fee2e2; color: #ef4444;
        border: none; border-radius: 10px;
        width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: 0.2s; flex-shrink: 0;
    }
    .btn-eliminar-adicional:hover { background: #fecdd3; transform: scale(0.95); }

    /* Botón Actualizar */
    .btn-luxury-purple {
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
        color: #fff; border: none; padding: 16px; border-radius: 16px; 
        font-weight: 800; font-size: 1rem; transition: 0.3s; width: 100%; 
        letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    }
    .btn-luxury-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.5); }
    .btn-luxury-purple:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

    @media (max-width: 992px) {
        .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
        .card-minimal { border-radius: 20px; border-left: none; border-right: none; }
        .border-end { border-right: none !important; border-bottom: 1px solid #e2e8f0; }
        .btn-delete-luxury span { display: none; } /* Ocultar texto en móvil para ahorrar espacio */
    }
 /* =========================================
           DISEÑO ESPECÍFICO - VISTA VENTAS
        ========================================= */

        .app-header { margin-bottom: 1.5rem; }
        .badge-soft-indigo {
            background-color: #f3e8ff;
            color: var(--brand-primary, #6f42c1);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
        }
        .app-title { font-weight: 900; font-size: 1.8rem; margin: 0; color: #0f172a; letter-spacing: -0.5px; }
        
        .btn-action-gradient {
            background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
            color: #ffffff !important;
            border: none;
            border-radius: 14px;
            padding: 10px 20px;
            font-weight: 700;
            font-size: 0.85rem;
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
            transition: all 0.2s ease;
            text-decoration: none !important;
        }
        .btn-action-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(15, 23, 42, 0.3); }

        .web-orders-grid {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            padding: 5px 0 20px 0;
            cursor: grab;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .web-orders-grid:active { cursor: grabbing; }
        .web-orders-grid::-webkit-scrollbar { display: none; }

        .comanda-web-card {
            min-width: 220px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 16px;
            box-shadow: 0 4px 10px -2px rgba(0,0,0,0.03);
            flex-shrink: 0;
            user-select: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .comanda-web-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08);
            border-color: var(--brand-secondary, #a855f7);
        }
        .comanda-status { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 8px; background: #f1f5f9; color: #475569; }
        .comanda-status.pendiente { background: #fef9c3; color: #ca8a04; }
        .comanda-status.confirmado { background: #dcfce7; color: #166534; }
        .comanda-client { font-weight: 800; font-size: 0.95rem; margin: 10px 0 5px 0; display: block; color: #0f172a; }
        .comanda-total { font-weight: 900; color: var(--brand-primary, #6f42c1); font-size: 1.1rem; }

        .card-mesa-ocupada {
            background: #fff1f2;
            border: 1px solid #fecdd3;
            border-radius: 20px;
            padding: 20px 15px;
            text-align: center;
            transition: 0.3s;
            cursor: pointer;
            height: 100%;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
        }
        .card-mesa-ocupada:hover {
            border-color: #f43f5e;
            box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.2);
            transform: translateY(-4px);
        }
        .mesa-num-large { font-size: 2.2rem; font-weight: 900; color: #be123c; line-height: 1; margin-bottom: 5px; }

        /* Estilo elegante para el cronómetro */
        .mesa-timer-badge {
            font-size: 0.75rem;
            font-weight: 800;
            background: #000000;
            color: #d4af37; /* Dorado revista */
            padding: 4px 12px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .modal-content.b-square { border-radius: 28px; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
        .close-minimal { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #64748b; cursor: pointer; transition: 0.2s; }
        .close-minimal:hover { background: #e2e8f0; color: #0f172a; }
        
        .input-clean {
            width: 100%;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #0f172a;
            outline: none;
            transition: all 0.2s ease;
        }
        .input-clean:focus { border-color: var(--brand-secondary, #a855f7); background: #ffffff; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }
        
        .btn-luxury-purple {
            background: linear-gradient(135deg, var(--brand-primary, #6f42c1), var(--brand-secondary, #a855f7));
            color: #fff; border: none; padding: 14px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; 
            transition: 0.3s; width: 100%; letter-spacing: 0.5px;
        }
        .btn-luxury-purple:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.4); }

        .info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; }
        .info-label { color: #64748b; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
        .info-value { color: #0f172a; font-weight: 700; text-align: right; }
        .map-link { color: var(--brand-primary, #6f42c1); text-decoration: none; font-weight: 700; background: #f3e8ff; padding: 4px 10px; border-radius: 10px; }

        .product-list-clean { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; margin-bottom: 15px; }
        .product-item { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
        .product-item:last-child { border-bottom: none; padding-bottom: 0; }

        .total-badge-dark {
            background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
            color: #f8fafc;
            border-radius: 20px;
            padding: 20px;
            margin-top: 15px;
            box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
        }

        @media (max-width: 992px) {
            .main-content-mobile { padding-top: 10px; padding-bottom: 100px; }
        }

        /* =========================================
           ESTILOS DASHBOARD FINANCIERO (REPORTES)
        ========================================= */
        .report-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }
        @media (min-width: 768px) {
            .report-grid { grid-template-columns: repeat(4, 1fr); }
        }

        .stat-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            transition: transform 0.2s;
        }
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        }
        .stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .stat-title {
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .stat-value {
            font-size: 1.25rem;
            font-weight: 800;
            color: #1e293b;
            line-height: 1.2;
        }
        .stat-value.debt { color: #ef4444; } 
        
        /* Colores de Iconos */
        .ic-blue { background: #eff6ff; color: #3b82f6; }
        .ic-purple { background: #f3e8ff; color: #9333ea; }
        .ic-green { background: #dcfce7; color: #166534; }
        .ic-red { background: #fee2e2; color: #ef4444; }

        /* =========================================
           ESTILOS CARD DE DELIVERY
        ========================================= */
        .delivery-card {
            background: #ffffff;
            border-radius: 18px;
            padding: 18px;
            margin-bottom: 15px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
            transition: all 0.3s ease;
        }
        .delivery-card:hover {
            border-color: #e2e8f0;
            box-shadow: 0 10px 20px rgba(0,0,0,0.06);
        }

        .delivery-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px dashed #e2e8f0;
            padding-bottom: 12px;
            margin-bottom: 12px;
        }
        .delivery-profile {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .avatar-delivery {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.1rem;
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
        }
        .delivery-info h6 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
        }
        .delivery-info p {
            margin: 0;
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 500;
        }
        .delivery-time {
            text-align: right;
        }
        .time-badge {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #475569;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        /* Información del Cliente y Ubicación */
        .client-info-box {
            background: #f8fafc;
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 12px;
            border: 1px solid #f1f5f9;
        }
        .client-name {
            font-size: 0.85rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 4px;
        }
        .client-location {
            font-size: 0.8rem;
            color: #3b82f6;
            text-decoration: none;
            display: flex;
            align-items: flex-start;
            gap: 6px;
            line-height: 1.3;
            transition: color 0.2s;
        }
        .client-location:hover {
            color: #2563eb;
            text-decoration: underline;
        }

        /* Cuerpo: Productos */
        .delivery-products {
            background: #ffffff;
            border-radius: 10px;
            padding: 8px 12px;
            margin-bottom: 15px;
            border-left: 3px solid #e2e8f0;
        }
        .product-list-item {
            font-size: 0.85rem;
            color: #334155;
            font-weight: 500;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
        }
        .product-list-item::before {
            content: "•";
            color: #cbd5e1;
            margin-right: 8px;
            font-size: 1.2rem;
            line-height: 0;
        }
        .product-list-item:last-child { margin-bottom: 0; }

        /* Footer: Finanzas */
        .delivery-finances {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 5px;
            border-top: 1px dashed #e2e8f0;
            margin-top: 10px;
        }
        .finance-block {
            display: flex;
            flex-direction: column;
            padding-top: 8px;
        }
        .finance-block.text-right { align-items: flex-end; }
        
        .f-label {
            font-size: 0.7rem;
            font-weight: 800;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .f-value {
            font-size: 1.1rem;
            font-weight: 800;
            color: #1e293b;
        }
        .f-value.highlight { color: #10b981; }

        /* =========================================
           ESTILOS MODAL PAGO (PREMIUM)
        ========================================= */
        .modal-content.b-square { border-radius: 20px; border: none; }
        .label-luxury { font-size: 11px; font-weight: 800; color: #64748b; letter-spacing: 0.5px; }
        .input-luxury { width: 100%; border: none; border-bottom: 2px solid #e2e8f0; padding: 12px 0; font-size: 1.1rem; font-weight: 600; outline: none; background: transparent; transition: 0.3s; color: #1e293b; }
        .input-luxury:focus { border-bottom-color: #4f46e5; }
        .btn-luxury-dark { background: #0f172a; color: white; border: none; width: 100%; padding: 16px; border-radius: 14px; font-weight: 700; transition: 0.3s; font-size: 0.95rem; }
        .btn-luxury-dark:hover { background: #3b82f6; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3); }
        .close-minimal { background: transparent; border: none; font-size: 24px; color: #94a3b8; line-height: 1; }



        /* =========================================
           ESTILOS DASHBOARD FINANCIERO (REPORTES)
        ========================================= */
        .report-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }
        @media (min-width: 768px) {
            .report-grid { grid-template-columns: repeat(3, 1fr); }
        }

        .stat-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            transition: transform 0.2s;
        }
        .stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .stat-title {
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .stat-value {
            font-size: 1.25rem;
            font-weight: 800;
            color: #1e293b;
            line-height: 1.2;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .ic-yellow { background: #fef9c3; color: #eab308; }
        .ic-blue { background: #eff6ff; color: #3b82f6; }
        .ic-green { background: #dcfce7; color: #166534; }

        /* =========================================
           ESTILOS CARD DE RESEÑAS
        ========================================= */
        .review-card {
            background: #ffffff;
            border-radius: 18px;
            padding: 18px;
            margin-bottom: 15px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
            transition: all 0.3s ease;
        }
        .review-card:hover {
            border-color: #e2e8f0;
            box-shadow: 0 10px 20px rgba(0,0,0,0.06);
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        .review-profile {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .avatar-client {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #f1f5f9;
            color: #475569;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.1rem;
            border: 2px solid #e2e8f0;
        }
        .review-info h6 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
        }
        .review-date {
            font-size: 0.7rem;
            color: #94a3b8;
            font-weight: 600;
        }
        
        /* Estrellas */
        .stars-container {
            color: #eab308; /* Amarillo oro */
            font-size: 0.85rem;
            margin-top: 2px;
        }
        .stars-container .fa-regular {
            color: #cbd5e1;
        }

        /* Cuerpo del comentario */
        .review-body {
            background: #f8fafc;
            border-radius: 10px;
            padding: 12px;
            font-size: 0.85rem;
            color: #334155;
            line-height: 1.5;
            margin-bottom: 15px;
            font-style: italic;
            position: relative;
        }
        .review-body::before {
            content: '"';
            font-size: 2rem;
            color: #e2e8f0;
            position: absolute;
            top: -5px;
            left: 5px;
            font-family: serif;
        }

        /* Footer de la tarjeta (Autorización) */
        .review-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px dashed #e2e8f0;
            padding-top: 12px;
        }
        .status-badge {
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: 0.3s;
        }
        .status-publico { background: #dcfce7; color: #166534; }
        .status-oculto { background: #f1f5f9; color: #64748b; }

        /* =========================================
           SWITCH IOS (Botón de Autorizar)
        ========================================= */
        .auth-control {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .auth-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .ios-switch {
            position: relative;
            display: inline-block;
            width: 46px;
            height: 24px;
            flex-shrink: 0;
        }
        .ios-switch input { opacity: 0; width: 0; height: 0; }
        .ios-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #e2e8f0;
            transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 34px;
        }
        .ios-slider:before {
            position: absolute;
            content: "";
            height: 20px; width: 20px;
            left: 2px; bottom: 2px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        input:checked + .ios-slider { background-color: #000; }
        input:checked + .ios-slider.slider-green { background-color: #10b981; }
        input:checked + .ios-slider:before { transform: translateX(22px); }
