.empleados-table {
    table-layout: fixed;  /* Fija anchos para no expandir */
    width: 100%;
}

.empleados-table tr {
    height: auto;
}
/* ======================================
   GLOBAL RESET — REMOVE SCALING
   ====================================== */

html {
  font-size: 16px;
}

body {
  font-size: 14px;
  zoom: 1;
  transform: none;
}

/* Remove scaling from data containers */
#turnos,
#clientes,
#empleados,
#servicios,
#ventas,
#existencias,
#stock,
.section,
.section-content,
.content-area {
  transform: none;
  zoom: 1;
}

/* =========================
   DESIGN SYSTEM — PREMIUM
   ========================= */

:root {
    /* Colores base */
    --bg-main: #F6F7FB;
    --bg-card: #FFFFFF;
    --bg-secondary: #f7fafc;
    --bg-accent: #edf2f7;
    --text-primary: #111214;
    --text-secondary: #6B7280;
    --text-light: #718096;
    --border-soft: #E6E8EF;
    --border-color: #e2e8f0;
    --accent: #C9A24D;
    
    /* Variables legacy para compatibilidad */
    --light-card-bg: #FFFFFF;
    --light-text: #111214;
    --light-border: 1px solid #E6E8EF;
    --dark-card-bg: #16161B;
    --dark-text: #E6E6EB;
    --dark-border: 1px solid rgba(255,255,255,0.06);
    
    /* Radios y sombras */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --border-radius: 14px;
    --shadow-soft: 0 6px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 34px rgba(0,0,0,0.12);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-med: 0.25s ease;
    --transition: all 0.3s ease;
    
    /* Espaciado */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 48px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Botones */
    --btn-primary-bg: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --btn-primary-text: #ffffff;
    --btn-primary-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    --btn-primary-hover-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    --btn-primary-focus-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    --btn-border-radius: 8px;
    --btn-font-weight: 600;
}

/* =========================
   DARK MODE
   ========================= */

body.dark-mode {
    --bg-main: #0F0F12;
    --bg-card: #16161B;
    --text-primary: #E6E6EB;
    --text-secondary: #9A9AA3;
    --border-soft: rgba(255,255,255,0.06);
    --accent: #d4b978;
    --dm-bg-main: #0B0D12;
    --dm-bg-card: #141418;
    --dm-bg-soft: #1A1A1F;
    --dm-border: rgba(255,255,255,0.08);
    --dm-text-primary: #E5E7EB;
    --dm-text-secondary: #9CA3AF;
    background-color: #0F0F12;
    color: #E6E6EB;
}

/* Base Button Classes */
.btn {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
}

.btn:hover {
    background: rgba(0,0,0,0.04);
}

body.dark-mode .btn:hover {
    background: rgba(255,255,255,0.06);
}

.btn-primary {
    background: var(--accent);
    color: #111;
    border: none;
    box-shadow: 0 4px 14px rgba(201,162,77,0.35);
    min-height: 48px;
    min-width: 48px;
    padding: 12px 20px;
    font-size: 1rem;
    touch-action: manipulation;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    min-height: 48px;
    min-width: 48px;
    padding: 12px 20px;
    font-size: 1rem;
    touch-action: manipulation;
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}

.container > * + * {
    margin-top: var(--spacing-lg);
}

.section + .section,
.section + .ventas-section,
.section + .empleados-section,
.section + .clientes-section,
.section + .turnos-section {
    margin-top: var(--spacing-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;       /* importante: empuja izquierda y derecha */
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 10px 16px;                    /* ajustado para mejor proporcion en movil */
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
    min-height: 56px;
    height: auto;
}

.header-left {
    flex: 1;                               /* ocupa todo el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
}

.header-right {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;                             /* espacio entre los dos botones */
    margin-right: 8px;                     /* distancia mínima al borde derecho */
    margin-top: 2px;
}

.sync-status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(201, 162, 77, 0.14);
    color: var(--accent);
    border: 1px solid rgba(201, 162, 77, 0.35);
}

.sync-status-indicator.pending {
    background: rgba(231, 76, 60, 0.14);
    color: #c0392b;
    border-color: rgba(231, 76, 60, 0.45);
}

.sync-status-indicator.offline {
    background: rgba(108, 117, 125, 0.14);
    color: #495057;
    border-color: rgba(108, 117, 125, 0.45);
}

body.dark-mode .sync-status-indicator {
    background: rgba(201, 162, 77, 0.2);
    border-color: rgba(201, 162, 77, 0.5);
}

body.dark-mode .sync-status-indicator.pending {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a80;
    border-color: rgba(231, 76, 60, 0.55);
}

body.dark-mode .sync-status-indicator.offline {
    background: rgba(173, 181, 189, 0.18);
    color: #d7dce1;
    border-color: rgba(173, 181, 189, 0.45);
}

/* Botones más compactos y modernos */
.theme-toggle,
.menu-toggle {
    background: transparent;
    border: none;
    font-size: 1.4rem;                     /* íconos un poco más grandes */
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;                    /* círculo al hover */
    transition: all 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: rgba(201, 162, 77, 0.12);  /* hover dorado sutil */
    color: var(--accent);
    transform: scale(1.15);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Opcional: en pantallas muy anchas, más pegado al borde */
@media (min-width: 1200px) {
    .header-right {
        margin-right: 24px;                /* más espacio en pantallas grandes */
    }
}

/* Welcome Block */
.welcome-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #2c3e50;
}

.welcome-content p {
    margin: 0;
    font-size: 16px;
    color: #7f8c8d;
}

.quick-sale-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quick-sale-btn:hover {
    background-color: #c0392b;
}

.quick-sale-btn.highlighted {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    font-weight: 600;
    transform: scale(1.05);
}

.quick-sale-btn.highlighted:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transform: scale(1.08);
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.side-panel.open {
    right: 0;
}

.panel-header {
    padding: 30px 25px;
    border-bottom: 2px solid #34495e;
    background: rgba(255, 255, 255, 0.05);
}

.panel-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.menu-list li:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.2) 100%);
    transform: translateX(5px);
    border-left: 4px solid #3498db;
}

.menu-list li i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Dashboard Modules */
.dashboard-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Quick Actions */
.quick-actions {
    background: var(--light-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: var(--light-border);
    margin-bottom: var(--spacing-xl);
}

.quick-actions h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-actions .action-btn {
    background: var(--light-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--light-text);
    width: 100%;
    min-height: 110px;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    padding: var(--spacing-lg);
    text-align: center;
    min-width: 48px;
    touch-action: manipulation;
}

.quick-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.quick-actions .action-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 3px solid #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6), 0 0 20px rgba(231, 76, 60, 0.4);
    transform: scale(1.05);
    color: white;
}

.quick-actions .action-btn.active i,
.quick-actions .action-btn.active span {
    color: white;
    font-weight: 700;
}

.quick-actions .action-btn.active span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-actions .action-btn i {
    font-size: 20px;
}

.quick-actions .action-btn span {
    font-size: 14px;
    text-align: center;
    color: #2c3e50;
    opacity: 1;
    visibility: visible;
    display: block;
}

.module-card {
    background: var(--light-card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    cursor: grab;
    position: relative;
}

.module-card::before {
    content: '\f0c9'; /* FontAwesome grip-vertical icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: #cbd5e1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:active {
    cursor: grabbing;
}

/* SortableJS drag states */
.module-card.sortable-ghost {
    opacity: 0.4;
    background: rgba(201, 162, 77, 0.1);
    border: 2px dashed var(--accent);
}

.module-card.sortable-drag {
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    z-index: 1000;
}

/* Animation for card reordering */
.module-card {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-card:hover,
.summary-card:hover,
.quick-actions .action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

body.dark-mode .module-card:hover,
body.dark-mode .summary-card:hover,
body.dark-mode .quick-actions .action-btn:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.module-card i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.module-card h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.module-value {
    font-size: 24px;  /* Era 48px, ahora más chico y legible */
    font-weight: 700;  /* Era 900, bajamos para no ser tan bold */
    color: #e74c3c;
    margin: 10px 0;  /* Menos margen para no ocupar tanto vertical */
    display: block;
    text-shadow: none;  /* Quitamos sombra para limpiar */
    letter-spacing: normal;
    word-break: break-all;  /* Si el número es muy largo, no desborda */
    overflow: hidden;  /* Evita que salga de la card */
}

.module-desc {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    font-weight: 400;
}

/* Turnos Section */
.turnos-section {
    background: var(--light-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: var(--light-border);
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.agenda-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.agenda-info p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.agenda-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.date-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.current-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.day-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.day-selector:focus {
    outline: none;
    border-color: #3498db;
}

.agenda-grid table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.agenda-grid th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.agenda-grid td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.agenda-grid tr:nth-child(even) {
    background-color: #f8f9fa;
}

.agenda-grid tr:hover {
    background-color: #e9ecef;
}

.add-turno-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.add-turno-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Empleados Section */
.empleados-section {
    background: var(--light-card-bg);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.empleados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.empleados-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.empleados-info p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.empleados-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

.sort-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.4);
}

.add-empleado-btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-shadow);
    padding: 16px 28px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--btn-border-radius);
    font-weight: var(--btn-font-weight);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
}

.add-empleado-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-primary-hover-shadow);
}

.add-empleado-btn:focus {
    outline: none;
    box-shadow: var(--btn-primary-focus-shadow);
}

.empleados-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.empleados-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.empleados-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.empleados-table td {
    padding: 20px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
}

.empleados-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.empleados-table tr:hover .action-btn {
    opacity: 1;
    transform: scale(1);
}

.empleados-table .action-btn {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.empleados-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.empleados-table tr:hover {
    background-color: #e9ecef;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.action-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    margin: 0 3px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 32px;
    min-height: 32px;
}

.edit-btn {
    color: #3498db;
}

.edit-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.1);
}

.delete-btn {
    color: #e74c3c;
}

.delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

/* Clientes Section */
.clientes-section {
    background: var(--light-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: var(--light-border);
}

.clientes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.clientes-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.clientes-info p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.clientes-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.add-cliente-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-cliente-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.clientes-content {
    position: relative;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-content i {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.empty-state-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.empty-state-content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #6c757d;
}

.create-first-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.create-first-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.clientes-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.clientes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.clientes-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.clientes-table td {
    padding: 20px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
}

.clientes-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.clientes-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: scale(1.01);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.optional {
    color: #6c757d;
    font-weight: normal;
    font-style: italic;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.password-info {
    margin-bottom: 20px;
}

.password-display {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid #eee;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        min-height: auto;
    }

    .header-left {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 0;
    }

    .header-left h1 {
        font-size: 20px;
    }

    .header-left h1 {
        font-size: 24px;
    }

    .header-center {
        margin-bottom: 15px;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        align-self: auto;
        margin-top: 0;
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .menu-toggle {
        padding: 6px;
        font-size: 24px;
    }

    .greeting-section {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .greeting-title {
        font-size: 28px;
    }

    .greeting-subtitle {
        font-size: 16px;
    }

    .welcome-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .dashboard-modules {
        flex-direction: column;
        align-items: center;
    }

    .module-card {
        min-width: 250px;
        max-width: 100%;
    }

    .agenda-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .agenda-controls {
        justify-content: center;
    }

    .side-panel {
        width: 280px;
        right: -280px;
    }

    .empleados-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .empleados-actions {
        justify-content: center;
    }

    .empleados-table-container {
        overflow-x: auto;
    }

    .empleados-table {
        min-width: 600px;
    }

    .modal {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
}

/* Ventas Section Styles */
.ventas-section {
    background: var(--light-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: var(--light-border);
}

.ventas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ventas-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.ventas-info p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.ventas-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Summary Cards */
.ventas-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.summary-card i {
    font-size: 32px;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.summary-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.summary-value {
    font-size: 18px;  /* Era 24px, bajamos para no ocupar tanto */
    font-weight: 600;  /* Menos bold */
    color: #e74c3c;
    margin: 0;
    word-break: break-all;  /* Para números largos */
}

.summary-period {
    font-size: 12px;
    color: #6c757d;
    margin: 2px 0 0 0;
    font-style: italic;
}

/* Tabs */
.ventas-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-btn:hover:not(.active) {
    color: #2c3e50;
    background-color: rgba(52, 152, 219, 0.05);
}

/* Filters */
.ventas-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
}

/* Table Container */
.ventas-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.table-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.table-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select,
.items-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.sort-select:focus,
.items-select:focus {
    outline: none;
    border-color: #3498db;
}

.table-wrapper {
    overflow-x: auto;
}

.ventas-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.ventas-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #34495e;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.ventas-table th:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.ventas-table th::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #fff;
    opacity: 0.5;
}

.ventas-table th[data-sort="asc"]::after {
    border-bottom: 4px solid #fff;
    border-top: none;
}

.ventas-table th[data-sort="desc"]::after {
    border-top: 4px solid #fff;
    border-bottom: none;
}

.ventas-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.ventas-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.ventas-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.ventas-table .tipo-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ventas-table .tipo-venta {
    background-color: #d4edda;
    color: #155724;
}

.ventas-table .tipo-gasto {
    background-color: #f8d7da;
    color: #721c24;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.page-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.page-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Commission reporting styles */
.commission-reporting {
    margin-top: 30px;
}

.commission-filters-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.commission-filters-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.commission-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.commission-filters select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.commission-filters select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.commission-table-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.commission-table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.commission-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #34495e;
}

.commission-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.commission-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.commission-table tr:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments for ventas section */
@media (max-width: 768px) {
    .ventas-section {
        padding: 20px;
    }

    .ventas-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ventas-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 15px;
    }

    .ventas-filters {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .filter-group {
        margin-bottom: 10px;
    }

    .table-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .table-controls {
        justify-content: center;
    }

    .ventas-table {
        min-width: 600px;
    }

    .pagination {
        padding: 15px;
    }

    .commission-filters {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .commission-filters select {
        width: 100%;
    }

    .commission-table {
        min-width: 600px;
    }
}

/* Venta Rápida Modal Styles */
.venta-rapida-modal {
    max-width: 600px;
}

.tipo-monto-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tipo-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: white;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.tipo-btn.active.ingreso-btn {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.tipo-btn.active.gasto-btn {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.tipo-btn:hover:not(.active) {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

.ingreso-fields {
    transition: all 0.3s ease;
}

.ingreso-fields.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cliente-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cliente-input-group input {
    flex: 1;
}

.nuevo-cliente-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nuevo-cliente-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.origen-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.origen-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.origen-btn.active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.origen-btn:hover:not(.active) {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

.monto-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.monto-symbol {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-weight: 600;
    z-index: 1;
}

.monto-input-group input {
    padding-left: 25px;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    min-height: 16px;
}

/* Additional responsive improvements */
@media (max-width: 1024px) {
    .ventas-filters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .ventas-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .tipo-monto-selector {
        flex-direction: column;
        gap: 8px;
    }

    .origen-buttons {
        flex-direction: column;
        gap: 8px;
    }

    /* Dashboard modules responsive */
    .dashboard-modules {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .module-card {
        padding: 15px;
    }

    .module-card i {
        font-size: 36px;
    }

    .module-card h3 {
        font-size: 16px;
    }

    .module-value {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header {
        padding: 12px 15px;
        height: auto;
        flex-direction: column;
        gap: 10px;
    }

    .header-left {
        order: 1;
    }

    .header-right {
        order: 2;
        justify-content: center;
    }

    .welcome-block {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .quick-sale-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .dashboard-modules {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .module-card {
        padding: 20px;
        min-width: unset;
        max-width: unset;
    }

    .module-card i {
        font-size: 32px;
    }

    .module-card h3 {
        font-size: 18px;
    }

    .module-value {
        font-size: 22px;
    }

    .quick-actions {
        padding: 15px;
    }

    .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .quick-actions .action-btn {
        width: 100%;
        min-height: 90px;
        height: auto;
        font-size: 12px;
    }

    .quick-actions .action-btn i {
        font-size: 16px;
    }

    .quick-actions .action-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 15px;
    }

    .header-left h1 {
        font-size: 24px;
    }

    .welcome-block {
        padding: 20px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .module-card {
        padding: 20px;
        min-width: 200px;
    }

    .module-card i {
        font-size: 28px;
    }

    .module-card h3 {
        font-size: 16px;
    }

    .module-value {
        font-size: 20px;
    }

    .ventas-section,
    .empleados-section,
    .clientes-section,
    .servicios-section,
    .turnos-section {
        padding: 20px;
    }

    .ventas-filters {
        padding: 15px;
        gap: 10px;
    }

    .filter-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .summary-card {
        padding: 12px;
        gap: 10px;
    }

    .summary-card i {
        font-size: 28px;
        padding: 8px;
    }

    .summary-value {
        font-size: 20px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .ventas-table th,
    .ventas-table td {
        padding: 10px;
        font-size: 13px;
    }

    .pagination {
        padding: 15px;
        gap: 10px;
    }

    .page-btn {
        width: 30px;
        height: 30px;
    }

    .venta-rapida-modal {
        width: 95%;
        margin: 10px;
    }

    .tipo-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .cliente-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .nuevo-cliente-btn {
        align-self: flex-start;
        padding: 8px 12px;
    }

    /* Additional mobile optimizations */
    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .modal {
        width: 95%;
        margin: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    .side-panel {
        width: 280px;
    }
}

/* =========================
   DARK MODE
   ========================= */

/* =========================
   BASE
   ========================= */

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

p, span, td {
  color: var(--text-secondary);
}

/* =========================
   CARDS / SECTIONS
   ========================= */

.card,
.section,
.panel,
.dashboard-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.card:hover,
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* =========================
   BUTTONS
   ========================= */

button,
.btn {
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 500;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

button:hover,
.btn:hover {
  background: rgba(0,0,0,0.04);
}

body.dark-mode button:hover {
  background: rgba(255,255,255,0.06);
}

/* Primary button */
.btn-primary,
button.primary {
  background: var(--accent);
  color: #111;
  border: none;
  box-shadow: 0 4px 14px rgba(201,162,77,0.35);
}

.btn-primary:hover,
button.primary:hover {
  transform: translateY(-1px);
}

/* =========================
   TABLES
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  text-align: left;
  font-weight: 600;
  padding: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-soft);
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: rgba(0,0,0,0.03);
}

body.dark-mode tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

/* =========================
   INPUTS / FORMS
   ========================= */

input,
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border var(--transition-fast),
              box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201,162,77,0.25);
}

/* =========================
   SIDE MENU (SAFE)
   ========================= */

.side-panel {
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-med);
  z-index: 1400;
}

/* =========================
   MODALS (SAFE)
   ========================= */

.modal,
.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}

/* =========================
   MICRO DETAILS
   ========================= */

.badge,
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(201,162,77,0.15);
  color: var(--accent);
}

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 20px 0;
}

/* =========================
   FIX MENU — LIGHT MODE
   ========================= */

body:not(.dark-mode) .side-panel {
  background: #FFFFFF;
  border-right: 1px solid #E6E8EF;
  box-shadow: 6px 0 24px rgba(0,0,0,0.08);
}

body:not(.dark-mode) .side-panel a,
body:not(.dark-mode) .side-panel button,
body:not(.dark-mode) .side-panel span,
body:not(.dark-mode) .side-panel li {
  color: #111214;
}

body:not(.dark-mode) .side-panel a:hover,
body:not(.dark-mode) .side-panel button:hover {
  background: rgba(0,0,0,0.05);
}

/* ======================================
   DARK MODE — CONSOLIDATED RULES
   (evita reglas duplicadas/conflictivas)
   ====================================== */

body.dark-mode .card,
body.dark-mode .section,
body.dark-mode .panel,
body.dark-mode .dashboard-card,
body.dark-mode .modal,
body.dark-mode .modal-content,
body.dark-mode .box,
body.dark-mode .container {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-soft);
}

body.dark-mode table,
body.dark-mode thead,
body.dark-mode tbody,
body.dark-mode tr,
body.dark-mode td,
body.dark-mode th {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-soft);
}

body.dark-mode thead th {
  background-color: #1A1A1F;
  border-bottom: 1px solid var(--dm-border);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .select,
body.dark-mode .filter-select {
  background-color: #1C1C22;
  color: var(--text-primary);
  border: 1px solid var(--dm-border);
}

body.dark-mode input::placeholder {
  color: var(--text-secondary);
}

body.dark-mode option {
  background-color: #0F172A;
  color: var(--dm-text-primary);
}

body.dark-mode .kpi-card,
body.dark-mode .stat-box,
body.dark-mode .summary-box,
body.dark-mode .info-box,
body.dark-mode .dashboard-stat,
body.dark-mode .metric-card,
body.dark-mode .commission-card,
body.dark-mode .commission-summary-block .summary-card {
  background-color: var(--dm-bg-card);
  color: var(--dm-text-primary);
  border: 1px solid var(--dm-border);
}

body.dark-mode .text-secondary,
body.dark-mode .module-desc,
body.dark-mode .summary-period,
body.dark-mode .empty-state-content p {
  color: var(--text-secondary);
}

.text-secondary {
  font-size: 0.875rem;
}

body.dark-mode .side-panel {
  background: var(--bg-card);
  border-left: 1px solid var(--border-soft);
  box-shadow: -6px 0 24px rgba(0,0,0,0.2);
  color: var(--text-primary);
}

body.dark-mode .side-panel a,
body.dark-mode .side-panel button,
body.dark-mode .side-panel span,
body.dark-mode .side-panel li {
  color: var(--text-primary);
}

body.dark-mode .side-panel a:hover,
body.dark-mode .side-panel button:hover {
  background: rgba(255,255,255,0.05);
}

body.dark-mode .panel-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-soft);
}

body.dark-mode .menu-list li:hover {
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--accent);
}

.system-name-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block; /* importante para que transform funcione bien */
}

.system-name-link:hover,
.system-name-link:focus {
    color: #d4b978;              /* dorado más brillante y saturado */
    text-shadow: 0 0 12px rgba(201, 162, 77, 0.7);  /* brillo/glow sutil */
    transform: scale(1.04);      /* leve agrandado */
}

.system-name-link:active {
    transform: scale(0.98);      /* efecto de "presionado" al click */
    text-shadow: 0 0 8px rgba(201, 162, 77, 0.5);
}

/* ======================================
   PROGRESS BARS FOR DASHBOARD CARDS
   ====================================== */

/* Progress bar container */
.module-progress {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-soft);
}

.progress-bar-container {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

body.dark-mode .progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Progress bar colors */
.progress-bar-fill.green {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.progress-bar-fill.blue {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.progress-bar-fill.yellow {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.progress-bar-fill.red {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.progress-bar-fill.gold {
    background: linear-gradient(90deg, #C9A24D 0%, #d4b978 100%);
    box-shadow: 0 2px 8px rgba(201, 162, 77, 0.4);
}

/* Progress label */
.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-label .progress-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Mini chart container */
.module-chart {
    margin-top: 12px;
    height: 50px;
    position: relative;
}

.module-chart canvas {
    max-height: 50px;
}

/* Compact progress for small spaces */
.module-progress.compact {
    margin-top: 10px;
    padding-top: 10px;
}

.module-progress.compact .progress-bar-container {
    height: 6px;
}

.module-progress.compact .progress-label {
    font-size: 11px;
}

/* Occupancy indicator specific */
.occupancy-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.occupancy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.occupancy-dot.high {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.occupancy-dot.medium {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.occupancy-dot.low {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Sparkline tooltip */
.sparkline-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    white-space: nowrap;
}

.sparkline-tooltip.visible {
    opacity: 1;
}

/* Progress card hover effect */
.module-card:hover .progress-bar-fill {
    filter: brightness(1.1);
}

/* Legend for mini charts */
.chart-legend {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* ======================================
   CALENDAR + ONBOARDING + ACCENT THEMES
   ====================================== */

.theme-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--bg-card);
}

.theme-color-picker.subtle-strip {
    padding: 0;
    border: none;
    background: transparent;
    gap: 6px;
}

.color-option {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-color-picker.subtle-strip .color-option {
    width: 22px;
    height: 4px;
    border-radius: 999px;
    border: 1px solid transparent;
    opacity: 0.55;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.theme-color-picker.subtle-strip .color-option:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.color-option.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.theme-color-picker.subtle-strip .color-option.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 1px var(--border-soft);
}

#turnos-calendar {
    min-height: 640px;
}

.fc {
    background: var(--bg-card);
    color: var(--dm-text-primary, var(--text-primary));
    border-radius: var(--radius-md);
    padding: 8px;
}

.fc .fc-toolbar-title {
  color: var(--dm-text-primary, var(--text-primary));
    font-size: 1.05rem;
    font-weight: 700;
}

.fc .fc-button {
    background: var(--accent);
    border: none;
    color: #111;
    font-weight: 600;
    box-shadow: none;
}

.fc .fc-button:not(:disabled):hover {
    filter: brightness(1.05);
}

.fc .fc-button-primary:disabled {
    opacity: 0.45;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border-color: var(--border-soft);
}

.fc .fc-timegrid-slot,
.fc .fc-timegrid-axis,
.fc .fc-col-header-cell-cushion,
.fc .fc-timegrid-axis-cushion {
    color: var(--text-secondary);
}

.fc-event {
    border: none;
    border-left: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 2px 4px;
}

.turno-event-content {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.turno-event-client {
    font-weight: 700;
    font-size: 12px;
}

.turno-event-service {
    font-size: 11px;
    opacity: 0.92;
}

.turno-event-meta {
    font-size: 10px;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .theme-color-picker:not(.subtle-strip) {
        display: none;
    }

    #turnos-calendar {
        min-height: 560px;
    }
}

.feature-tip {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(201, 162, 77, 0.08);
    color: var(--text-primary);
    font-size: 13px;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-modal {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.login-modal h2 {
    margin-bottom: 10px;
    color: var(--accent);
}

#barbero-summary {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    grid-column: 1 / -1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.module-card h3,
.module-value,
.module-desc,
#barbero-summary h3,
.summary-card h3,
.summary-card p,
.agenda-info p,
.empleados-info p,
.clientes-info p,
.servicios-info p,
.inventario-info p,
.empleados-table td,
.clientes-table td,
.servicios-table td,
.inventario-table td,
.ventas-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.summary-card {
    background: var(--bg-accent, var(--bg-card));
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.summary-card h3 {
    color: var(--primary-color, var(--accent));
    margin-bottom: 10px;
}

.summary-card p {
    margin: 5px 0;
    color: var(--text-secondary);
}

/* Mejora visual para el campo de contraseña */
.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px; /* espacio para el botón del ojo */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--accent);
}

html, body {
    overflow-y: auto;     /* fuerza scrollbar vertical */
    height: auto;
    min-height: 100vh;
}

body {
    overflow-y: scroll;   /* siempre muestra scrollbar aunque no haga falta */
}

/* Si usás dark mode o variables, ponlo después de :root */

.welcome-message {
    display: none;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(201,162,77,0.08), rgba(201,162,77,0.03));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201,162,77,0.15);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body.dark-mode .welcome-message {
    background: linear-gradient(135deg, rgba(201,162,77,0.12), rgba(201,162,77,0.05));
    border-color: rgba(201,162,77,0.25);
}

.welcome-message h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
}

.welcome-message p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.action-btn.delete-btn {
    background: #e74c3c;          /* rojo */
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.action-btn.delete-btn i {
    margin-right: 0;
}

/* ======================================
   RESPONSIVE OVERRIDES (FINAL LAYER)
   ====================================== */

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 90px 18px 36px !important;
    }

    .dashboard-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .module-card {
        min-width: 0;
        max-width: none;
    }

    .ventas-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 56px;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px;
        padding: 8px 10px !important;
    }

    .header-left {
        min-width: 0;
        gap: 4px;
    }

    .header-left h1,
    h1.system-name {
        font-size: 1.05rem !important;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 56vw;
    }

    .header-right {
        margin: 0 !important;
        gap: 8px !important;
    }

    .header-right .btn-secondary {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
    }

    .theme-color-picker.subtle-strip {
        display: none;
    }

    .container {
        padding: 82px 12px 24px !important;
    }

    .quick-actions {
        padding: 16px !important;
    }

    .actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .quick-actions .action-btn {
        min-height: 84px !important;
        padding: 10px !important;
    }

    .quick-actions .action-btn i {
        font-size: 1rem !important;
    }

    .quick-actions .action-btn span {
        font-size: 0.82rem !important;
    }

    .dashboard-modules {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .turnos-section,
    .empleados-section,
    .clientes-section,
    .servicios-section,
    .ventas-section {
        padding: 16px !important;
    }

    .agenda-header,
    .empleados-header,
    .clientes-header,
    .ventas-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }

    .agenda-controls,
    .empleados-actions,
    .clientes-actions,
    .ventas-actions,
    .table-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .agenda-controls > *,
    .empleados-actions > *,
    .clientes-actions > *,
    .ventas-actions > * {
        flex: 1 1 160px;
    }

    .ventas-summary {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .ventas-table-container,
    .empleados-table-container,
    .clientes-table-container,
    .servicios-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ventas-table,
    .empleados-table,
    .clientes-table,
    .servicios-table {
        min-width: 760px;
    }

    .modal {
        width: calc(100vw - 20px) !important;
        max-width: 560px !important;
        max-height: 90vh;
        margin: 0 auto;
    }

    .modal-body {
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }

    .form-row {
        flex-direction: column !important;
        gap: 10px;
    }

    .form-group.half {
        width: 100% !important;
    }

    .side-panel {
        width: min(88vw, 340px) !important;
        right: -100vw !important;
    }

    .side-panel.open {
        right: 0 !important;
    }

    #turnos-calendar {
        min-height: 500px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 78px 10px 18px !important;
    }

    .header-right .btn-secondary {
        display: none;
    }

    .menu-toggle,
    .theme-toggle {
        font-size: 1.1rem !important;
        padding: 6px !important;
    }

    .actions-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-actions .action-btn {
        min-height: 72px !important;
    }

    .ventas-table,
    .empleados-table,
    .clientes-table,
    .servicios-table {
        min-width: 680px;
    }

    .modal {
        width: calc(100vw - 12px) !important;
    }
}

/* ======================================
   SECTION TUNING (TURNOS / EMPLEADOS / VENTAS / MODALS)
   ====================================== */

@media (max-width: 1024px) {
    /* Turnos */
    #turnos-controls {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #turnos-search,
    #turnos-status-filter {
        width: 100%;
        min-height: 42px;
    }

    #turnos-calendar .fc-header-toolbar {
        gap: 8px;
    }

    #turnos-calendar .fc-toolbar-chunk {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Empleados */
    .empleados-table .action-btn {
        opacity: 1 !important;
        transform: none !important;
    }

    .empleados-table td:last-child {
        min-width: 170px;
        white-space: nowrap;
    }

    .empleados-actions .sort-btn,
    .empleados-actions .add-empleado-btn {
        min-height: 42px;
    }

    /* Ventas */
    .ventas-filters .filter-group {
        min-width: 0;
    }

    .ventas-filters .filter-input,
    .ventas-filters select,
    .ventas-filters button {
        min-height: 42px;
    }

    .table-header {
        gap: 8px;
    }

    .table-info {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* Turnos */
    #turnos-controls {
        grid-template-columns: 1fr !important;
    }

    .agenda-info h2,
    .empleados-info h2,
    .ventas-info h2 {
        font-size: 1.15rem !important;
    }

    .agenda-info p,
    .empleados-info p,
    .ventas-info p {
        font-size: 0.88rem !important;
    }

    #turnos-calendar .fc-toolbar-title {
        font-size: 0.95rem !important;
    }

    #turnos-calendar .fc-button {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.74rem !important;
    }

    #turnos-calendar .fc-timegrid-slot-label-cushion,
    #turnos-calendar .fc-col-header-cell-cushion {
        font-size: 0.72rem;
    }

    /* Empleados + Ventas tables */
    .empleados-table th,
    .empleados-table td,
    .ventas-table th,
    .ventas-table td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }

    .ventas-table td:last-child,
    .empleados-table td:last-child {
        min-width: 130px;
    }

    .ventas-table .action-btn,
    .empleados-table .action-btn {
        min-width: 30px;
        min-height: 30px;
        padding: 5px;
    }

    /* Modals */
    .modal {
        border-radius: 12px !important;
    }

    .modal-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: inherit;
    }

    .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: inherit;
        border-top: 1px solid var(--border-soft);
        padding-top: 10px !important;
    }

    .venta-rapida-modal .ingreso-fields {
        display: grid;
        gap: 8px;
    }
}

@media (max-width: 390px) {
    /* Ultra mobile */
    .turnos-section,
    .empleados-section,
    .ventas-section {
        padding: 12px !important;
    }

    .ventas-tabs .tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .summary-card {
        padding: 12px !important;
        gap: 10px;
    }

    .summary-card i {
        font-size: 1rem !important;
        padding: 8px !important;
    }

    .summary-value {
        font-size: 0.95rem !important;
    }

    .modal-body {
        padding: 12px !important;
    }

    .modal-footer {
        padding: 10px 12px !important;
        gap: 8px;
        flex-wrap: wrap;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        flex: 1 1 calc(50% - 8px);
    }
}

/* ======================================
   PIXEL FIT PRESETS
   360x800 / 390x844 / 768x1024
   ====================================== */

@media (width: 360px) and (height: 800px) {
    .container {
        padding: 76px 8px 16px !important;
    }

    h1.system-name {
        max-width: 52vw;
        font-size: 0.98rem !important;
    }

    .quick-actions .action-btn {
        min-height: 68px !important;
    }

    .turnos-section,
    .empleados-section,
    .ventas-section {
        padding: 10px !important;
    }

    #turnos-calendar {
        min-height: 470px !important;
    }

    .modal {
        width: calc(100vw - 8px) !important;
        max-height: 92vh;
    }
}

@media (width: 390px) and (height: 844px) {
    .container {
        padding: 78px 10px 18px !important;
    }

    h1.system-name {
        max-width: 54vw;
    }

    .quick-actions .action-btn {
        min-height: 72px !important;
    }

    #turnos-calendar {
        min-height: 500px !important;
    }

    .ventas-summary {
        gap: 8px !important;
    }
}

@media (width: 768px) and (height: 1024px) {
    .container {
        padding: 86px 16px 28px !important;
    }

    .header-left h1,
    h1.system-name {
        font-size: 1.2rem !important;
        max-width: none;
    }

    .dashboard-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .quick-actions .action-btn {
        min-height: 92px !important;
    }

    .ventas-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ventas-table,
    .empleados-table {
        min-width: 720px;
    }

    #turnos-calendar {
        min-height: 620px !important;
    }
}

/* =========================
   THEME CONSISTENCY PATCH
   ========================= */

:root {
    --accent-text: #7A5A12;
    --status-active-bg: #0F5132;
    --status-active-fg: #FFFFFF;
    --status-inactive-bg: #842029;
    --status-inactive-fg: #FFFFFF;
}

body.dark-mode {
    --accent-text: #E3C777;
    --status-active-bg: #064E3B;
    --status-active-fg: #D1FAE5;
    --status-inactive-bg: #7F1D1D;
    --status-inactive-fg: #FEE2E2;
}

/* Use stronger contrast for accent-colored text over light surfaces */
.module-value,
.summary-value,
.welcome-message h2,
.commission-summary-value,
.system-name {
    color: var(--accent-text);
}

/* Side panel: enforce clean light mode appearance */
body:not(.dark-mode) .side-panel {
    background: #FFFFFF;
    color: #111214;
    border-left: 1px solid #E6E8EF;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .side-panel .panel-header {
    background: #F8FAFC;
    border-bottom: 1px solid #E6E8EF;
    color: #111214;
}

body:not(.dark-mode) .side-panel .menu-list li {
    color: #111214;
    border-bottom: 1px solid #EEF2F7;
}

body:not(.dark-mode) .side-panel .menu-list li:hover {
    background: #EEF2F7;
    border-left: 4px solid var(--accent-text);
    transform: none;
}

/* Dark mode consistency for main sections/cards that had hardcoded light colors */
body.dark-mode .welcome-block,
body.dark-mode .quick-actions,
body.dark-mode .module-card,
body.dark-mode .turnos-section,
body.dark-mode .empleados-section,
body.dark-mode .clientes-section,
body.dark-mode .servicios-section,
body.dark-mode .ventas-section,
body.dark-mode .inventario-section,
body.dark-mode .agenda-grid table {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-soft);
}

body.dark-mode .welcome-content h2,
body.dark-mode .quick-actions h3,
body.dark-mode .empleados-info h2,
body.dark-mode .clientes-info h2,
body.dark-mode .servicios-info h2,
body.dark-mode .ventas-info h2,
body.dark-mode .inventario-info h2 {
    color: var(--text-primary);
}

body.dark-mode .welcome-content p,
body.dark-mode .empleados-info p,
body.dark-mode .clientes-info p,
body.dark-mode .servicios-info p,
body.dark-mode .ventas-info p,
body.dark-mode .inventario-info p {
    color: var(--text-secondary);
}

/* Status badges with stronger contrast in both themes */
.status-badge {
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.status-badge.active {
    background-color: var(--status-active-bg);
    color: var(--status-active-fg);
    border-color: rgba(0, 0, 0, 0.15);
}

.status-badge.inactive {
    background-color: var(--status-inactive-bg);
    color: var(--status-inactive-fg);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Resumen de comisiones por barbero (filtro ventas) */
.commission-summary-barber {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.1) 0%, rgba(201, 162, 77, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 77, 0.3);
}

.summary-commission-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.summary-commission-card .summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    text-align: center;
}

.summary-commission-card .summary-item.highlight {
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.2) 0%, rgba(201, 162, 77, 0.1) 100%);
    border: 2px solid var(--accent);
}

.summary-commission-card .summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-commission-card .summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-commission-card .summary-item.highlight .summary-value {
    color: var(--accent);
    font-size: 22px;
}

body.dark-mode .commission-summary-barber {
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.15) 0%, rgba(201, 162, 77, 0.05) 100%);
}



/* Animacion para actualizacion de resumen */
#hoy-monto, #hoy-comision, #hoy-cortes,
#semana-monto, #semana-comision, #semana-cortes,
#mes-monto, #mes-comision, #mes-cortes {
    transition: color 0.3s ease, transform 0.2s ease;
}

#hoy-monto.updated, #hoy-comision.updated, #hoy-cortes.updated,
#semana-monto.updated, #semana-comision.updated, #semana-cortes.updated,
#mes-monto.updated, #mes-comision.updated, #mes-cortes.updated {
    color: var(--accent);
    transform: scale(1.05);
}

/* ======================================
   CONSOLIDATED RESPONSIVE RULES
   (migrated from styles-responsive.css)
   ====================================== */

/* Tipografia fluida */
.system-name {
  font-size: clamp(1rem, 2.8vw, 1.35rem) !important;
}

.agenda-info h2,
.empleados-info h2,
.ventas-info h2,
.clientes-info h2,
.servicios-info h2,
.inventario-info h2 {
  font-size: clamp(1.05rem, 3vw, 1.6rem) !important;
}

.module-value {
  font-size: clamp(1.1rem, 3.2vw, 1.85rem) !important;
}

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@keyframes bottomSheetIn {
  from {
    transform: translateY(28px);
    opacity: 0.96;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* < 360px: ultra mobile */
@media (max-width: 359px) {
  .header {
    padding: 10px 12px;
  }

  .header-right {
    gap: 6px;
  }

  .dashboard-modules {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .module-card {
    padding: 12px;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }
}

/* 360px - 576px: mobile */
@media (min-width: 360px) and (max-width: 575px) {
  .dashboard-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-left {
    min-width: 0;
  }

  .header-right #logout-btn {
    display: none;
  }
}

/* <= 768px: mobile portrait */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-right {
    margin-left: auto;
  }

  .table-container {
    overflow-x: auto;
  }

  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-overlay .modal {
    width: 100% !important;
    max-width: none !important;
    max-height: 88vh !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    animation: bottomSheetIn 0.24s ease;
  }

  .modal-overlay .modal-body {
    max-height: calc(88vh - 132px);
    overflow-y: auto;
  }

  .menu-toggle,
  .theme-toggle,
  .action-btn,
  .modal-close,
  .tab-btn,
  .toggle-password {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* 576px - 768px: tablet portrait */
@media (min-width: 576px) and (max-width: 768px) {
  .dashboard-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 768px - 1024px: tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* FullCalendar mobile tuning */
@media (max-width: 900px) {
  #turnos-calendar {
    min-height: 520px !important;
  }

  #turnos-calendar .fc-toolbar {
    gap: 6px !important;
  }

  #turnos-calendar .fc-toolbar-title {
    font-size: 0.95rem !important;
  }

  #turnos-calendar .fc-button {
    min-height: 44px;
    min-width: 44px;
    font-size: 0.75rem !important;
    padding: 0.3rem 0.45rem !important;
  }

  #turnos-calendar .fc-col-header-cell-cushion,
  #turnos-calendar .fc-timegrid-axis-cushion {
    font-size: 0.72rem;
  }
}


/* ======================================
   CASH BUTTONS - INGRESO/RETIRO CAJA
   ====================================== */

.cash-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.cash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    box-shadow: var(--shadow-soft);
}

.cash-btn i {
    font-size: 16px;
}

/* Botón Ingreso Cash - Verde/Dinero */
.cash-btn.cash-in {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.cash-btn.cash-in:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.cash-btn.cash-in:active {
    transform: translateY(0);
}

/* Botón Retiro Cash - Rojo/Alerta */
.cash-btn.cash-out {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.cash-btn.cash-out:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.cash-btn.cash-out:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .cash-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cash-btn {
        flex: 1;
        justify-content: center;
        padding: 14px 16px;
        font-size: 13px;
    }

    .cash-btn span {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .cash-btn {
        padding: 12px 14px;
        font-size: 12px;
    }

    .cash-btn i {
        font-size: 14px;
    }
}


/* HEADER MOBILE DISTRIBUTION + COLOR PICKER FIX */
@media (max-width: 768px) {
  .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .header-right > button,
  .header-right > .theme-toggle,
  .header-right > #logout-btn,
  .header-right > #menu-toggle,
  .header-right > #pwa-install-btn {
    flex: 0 0 auto;
  }

  .header-right #logout-btn,
  .header-right #pwa-install-btn {
    padding: 6px 8px !important;
    font-size: 0.78rem !important;
    min-height: 34px !important;
  }

  .header-right #theme-toggle,
  .header-right #onboarding-btn,
  .header-right #menu-toggle {
    min-height: 34px;
    min-width: 34px;
  }

  .theme-color-picker,
  .theme-color-picker.subtle-strip,
  .header-left .theme-color-picker {
    display: none !important;
    visibility: hidden !important;
  }

  .sync-status-indicator {
    display: none !important;
  }
}

/* ======================================
   MOBILE HEADER FIX
   ====================================== */

@media (max-width: 768px) {
    .header {
        min-height: 56px !important;
        padding: 8px 12px !important;
        flex-wrap: nowrap !important;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    h1.system-name {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }

    .header-right {
        gap: 6px !important;
        margin: 0 !important;
    }

    /* Ocultar elementos no esenciales en móvil */
    .theme-color-picker,
    #logout-btn span,
    #onboarding-btn {
        display: none !important;
    }

    /* Solo mostrar iconos en móvil */
    #logout-btn {
        padding: 8px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    #logout-btn i {
        margin: 0 !important;
    }

    .theme-toggle,
    .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* ======================================
   MOBILE DASHBOARD OPTIMIZATION
   ====================================== */

@media (max-width: 768px) {
    .container {
        padding: 70px 12px 20px !important;
    }

    /* Welcome message más compacto */
    #welcome-message {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }

    #welcome-message h2 {
        font-size: 1.2rem !important;
    }

    #welcome-message p {
        font-size: 0.85rem !important;
    }

    /* Quick actions en grid 2x2 */
    .actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .quick-actions .action-btn {
        min-height: 80px !important;
        padding: 12px 8px !important;
    }

    .quick-actions .action-btn i {
        font-size: 1.25rem !important;
        margin-bottom: 6px !important;
    }

    .quick-actions .action-btn span {
        font-size: 0.8rem !important;
    }

    /* Dashboard modules en 2 columnas */
    .dashboard-modules {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .module-card {
        padding: 15px 10px !important;
        min-width: 0 !important;
    }

    .module-card i {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }

    .module-card h3 {
        font-size: 0.75rem !important;
        margin: 0 0 5px 0 !important;
    }

    .module-value {
        font-size: 1.1rem !important;
        margin: 5px 0 !important;
    }

    .module-desc {
        font-size: 0.7rem !important;
    }

    /* Ocultar gráficos sparkline en móvil para ahorrar espacio */
    .module-chart {
        display: none !important;
    }

    /* Progress bar más compacto */
    .module-progress {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }

    .progress-bar-container {
        height: 4px !important;
    }

    .progress-label {
        font-size: 0.65rem !important;
    }
}

/* Móvil muy pequeño */
@media (max-width: 380px) {
    .actions-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-actions .action-btn {
        min-height: 60px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .quick-actions .action-btn i {
        margin-bottom: 0 !important;
    }

    .dashboard-modules {
        grid-template-columns: 1fr !important;
    }
}

/* ======================================
   PERSONAL SUMMARY WIDGET (BARBERO)
   ====================================== */

.personal-summary-widget {
    background: linear-gradient(135deg, var(--accent) 0%, #b8941f 100%);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.3);
}

.personal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.personal-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.personal-stat .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.personal-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.personal-stat.highlight {
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px;
}

@media (max-width: 768px) {
    .personal-summary-widget {
        padding: 12px;
        margin-bottom: 15px;
    }

    .personal-stats-grid {
        gap: 8px;
    }

    .personal-stat .stat-value {
        font-size: 1.1rem;
    }

    .personal-stat .stat-label {
        font-size: 0.65rem;
    }
}

/* ======================================
   HEADER FIX - SIEMPRE HORIZONTAL
   ====================================== */

.header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 56px !important;
    padding: 8px 12px !important;
    gap: 8px !important;
}

.header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* El nombre del sistema */
.system-name-link {
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

h1.system-name {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Los controles a la derecha */
.header-right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Cada botón del header */
.header-right > * {
    flex-shrink: 0 !important;
}

/* Theme toggle (luna/sol) */
.theme-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 1.1rem !important;
}

/* Botón de salir */
#logout-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    height: 40px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

/* Ocultar texto "Salir" en móviles muy pequeños */
@media (max-width: 380px) {
    #logout-btn span {
        display: none !important;
    }
    
    #logout-btn {
        padding: 8px !important;
        width: 40px !important;
        justify-content: center !important;
    }
}

/* Selector de colores - más compacto */
.theme-color-picker.subtle-strip {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
}

.theme-color-picker.subtle-strip .color-option {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

/* Ocultar selector de colores en móvil */
@media (max-width: 768px) {
    .theme-color-picker {
        display: none !important;
    }
}

/* Botón de menú hamburguesa */
.menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
}
