:root {
    /* Colores principales - Paleta más refinada */
    --black: #0A0A0A;
    --dark-black: #050505;
    --light-black: #151515;
    
    --gold: #D4AF37;
    --light-gold: #FFD700;
    --dark-gold: #B8941F;
    
    --gray: #2A2A2A;
    --light-gray: #4A4A4A;
    --lighter-gray: #6A6A6A;
    --dark-gray: #1A1A1A;
    
    /* Colores semánticos - Más sutiles */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Variables de diseño - Más modernas */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --primary: #f6d58b;
    --primary-dark: #f3c24c;
    --secondary: #2a2d30;
    --secondary-light: #3a3d40;
    --accent: #f6d58b;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Backgrounds */
    --bg: #0b0c0d;
    --bg-light: #15181a;
    --bg-dark: #0f1113;
    --card: #15181a;
    --card-2: #121416;
    --card-strong: #0f1113;
    
    /* Text colors */
    --text: #e9edf1;
    --text-light: #f8fafc;
    --text-muted: #9aa3ab;
    --text-dark: #141516;
    --muted: #9aa3ab;
    
    /* Gold colors */
    --gold: #f6d58b;
    --light-gold: #f6d58b;
    --button: #f3c24c;
    --button-text: #141516;
    
    /* Additional colors */
    --white: #ffffff;
    --placeholder: #dfe3e8;
    --divider: rgba(255,255,255,.08);
    
    /* Border radius */
    --radius: 22px;
    --radius-sm: 16px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Layout */
    --maxw: 1280px;
    --header-height: 80px;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
}

@font-face {
    font-family: 'Boldonse';
    src: url('Manual de Identidad/proyecto bachue/Boldonse-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fuentes Roboto locales según el manual de identidad */
@font-face {
    font-family: 'Roboto';
    src: url('Manual de Identidad/proyecto bachue/static/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('Manual de Identidad/proyecto bachue/static/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('Manual de Identidad/proyecto bachue/static/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('Manual de Identidad/proyecto bachue/static/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Roboto Regular */
    background-color: var(--black);
    color: #E0E0E0;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400; /* Boldonse Regular para títulos */
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Layout general */
.layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar - Diseño minimalista */
.sidebar {
    width: 260px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-collapsed {
    width: 70px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: radial-gradient(circle at top right, rgba(21, 21, 21, 0.8), var(--black));
    min-height: 100vh;
    padding-top: 64px; /* Espacio para el header */
}

.main-content-expanded {
    margin-left: 70px;
}

.container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Elementos de la barra lateral */
.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    background: rgba(5, 5, 5, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #E0E0E0;
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
}

.logo-link:hover {
    color: var(--light-gold);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.2rem;
    transition: var(--transition);
}

.logo-text {
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    color: #E0E0E0;
    font-size: 1.25rem;
}

.sidebar-collapsed .logo-text {
    display: none;
}

/* Botón toggle en el header */
.toggle-sidebar {
    display: none; /* Ocultar el botón flotante */
}

.nav-menu {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--lighter-gray);
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--light-gold);
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.12);
    border-left: 3px solid var(--gold);
    margin-left: -3px;
}

.nav-icon {
    font-size: 1.125rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.nav-text {
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-collapsed .nav-icon {
    margin-right: 0;
    font-size: 1.1rem;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    margin-left: 12px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-collapsed .user-info {
    opacity: 0;
    width: 0;
}

.user-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.user-role {
    color: var(--lighter-gray);
    font-size: 0.8rem;
}

/* Header superior */
.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title h1 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--light-gold);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-toggle-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lighter-gray);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 1rem;
}

.sidebar-toggle-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--light-gold);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.sidebar-toggle-btn.collapsed {
    transform: rotate(180deg);
}

.search-box {
    position: relative;
}

.search-input {
    background-color: var(--dark-gray);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    color: white;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    min-width: 240px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lighter-gray);
    font-size: 0.9rem;
}

.notifications-btn, .settings-btn {
    background: transparent;
    border: none;
    color: var(--lighter-gray);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.notifications-btn:hover, .settings-btn:hover {
    background-color: var(--gray);
    color: var(--light-gold);
}

.notifications-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tarjetas - Diseño minimalista */
.card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(212, 175, 55, 0.2);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.3);
}

.card-title {
    font-size: 1.125rem;
    color: var(--light-gold);
    margin-bottom: 0;
    letter-spacing: 0.025em;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    background: rgba(10, 10, 10, 0.3);
}

/* Widgets estadísticos - Diseño moderno */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-xl);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05));
    border-radius: 0 var(--radius-xl) 0 100px;
}

.stat-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--gold);
    z-index: 1;
    opacity: 0.9;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1;
}

.stat-label {
    color: var(--lighter-gray);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trend-up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.trend-down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.trend-icon {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Botones - Diseño minimalista */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.875rem;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-right-icon {
    margin-left: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--black);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(74, 74, 74, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(74, 74, 74, 0.9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--light-gold);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--light-gold);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, var(--danger) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

/* Badges - Diseño minimalista */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    letter-spacing: 0.025em;
    border: 1px solid transparent;
    transition: var(--transition);
}

.badge-primary {
    background: rgba(212, 175, 55, 0.1);
    color: var(--light-gold);
    border-color: rgba(212, 175, 55, 0.2);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.alert-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: rgba(46, 139, 87, 0.1);
    border-color: rgba(46, 139, 87, 0.3);
    color: var(--success);
}

.alert-warning {
    background-color: rgba(218, 165, 32, 0.1);
    border-color: rgba(218, 165, 32, 0.3);
    color: var(--warning);
}

.alert-danger {
    background-color: rgba(205, 92, 92, 0.1);
    border-color: rgba(205, 92, 92, 0.3);
    color: var(--danger);
}

.alert-info {
    background-color: rgba(70, 130, 180, 0.1);
    border-color: rgba(70, 130, 180, 0.3);
    color: var(--info);
}

/* Formularios - Diseño minimalista */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--lighter-gray);
    font-size: 0.875rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(26, 26, 26, 0.95);
}

.form-control::placeholder {
    color: var(--lighter-gray);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

/* Tablas - Diseño minimalista */
.table-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    background-color: rgba(10, 10, 10, 0.5);
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Datetime selector */
.datetime-selector {
    position: relative;
}

.datetime-input {
    padding-right: 2.5rem;
}

.datetime-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gold);
    pointer-events: none;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background-color: var(--gray);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold);
}

/* Scrollbar específico para el sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: transparent;
    margin: 1rem 0;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    transition: var(--transition);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(212, 175, 55, 0.6);
}

/* Scrollbar para el nav-menu */
.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background-color: transparent;
    margin: 0.5rem 0;
}

.nav-menu::-webkit-scrollbar-thumb {
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(212, 175, 55, 0.4);
}

/* Separadores */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 2rem 0;
    opacity: 0.3;
}

.divider-text {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--lighter-gray);
    font-size: 0.9rem;
}

.divider-text::before, .divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray), var(--gold));
}

.divider-text::before {
    margin-right: 1rem;
}

.divider-text::after {
    margin-left: 1rem;
    background: linear-gradient(90deg, var(--gold), var(--gray), transparent);
}

/* Listas con scrollbar */
.scroll-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

.list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray);
    display: flex;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

/* Estilos para nuevos componentes del dashboard */

/* Estadísticas por región */
.region-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.region-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.region-name {
    font-weight: 600;
    color: #E0E0E0;
}

.region-value {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

.region-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--lighter-gray);
}

/* Widget de clima */
.weather-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.current-weather {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.3));
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon-large {
    font-size: 3rem;
    color: var(--gold);
}

.weather-info {
    flex: 1;
}

.weather-temp-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E0E0E0;
    line-height: 1;
}

.weather-desc {
    color: var(--lighter-gray);
    margin-bottom: 0.25rem;
}

.weather-location {
    font-size: 0.9rem;
    color: var(--gold);
}

.weather-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.weather-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
}

.weather-metric i {
    font-size: 1.2rem;
    color: var(--gold);
}

.metric-value {
    font-weight: 600;
    color: #E0E0E0;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--lighter-gray);
}

.weather-forecast-mini {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
}

.weather-forecast-mini h4 {
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 1rem;
}

.forecast-items {
    display: flex;
    justify-content: space-between;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray);
    min-width: 60px;
}

.forecast-item span:first-child {
    font-size: 0.8rem;
    color: var(--lighter-gray);
}

.forecast-item i {
    color: var(--gold);
    font-size: 1.2rem;
}

.forecast-item span:last-child {
    font-weight: 600;
    color: #E0E0E0;
}

/* Controles de mapa */
.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--lighter-gray);
}

/* Contenido del mapa - agregar padding */
#cropsMap {
    margin: 0;
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
}

/* Asegurar que el card-body del mapa tenga padding */
.map-container {
    padding: 1.5rem !important;
}

/* Estadísticas por región - agregar padding al contenedor */
.region-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.region-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.region-name {
    font-weight: 600;
    color: #E0E0E0;
}

.region-value {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

.region-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--lighter-gray);
}

/* Controles de visualización */
.viz-controls {
    display: flex;
    gap: 0.5rem;
}

.viz-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Inventario */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inventory-stat {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
    text-align: center;
}

.inventory-stat.warning {
    border-color: var(--warning);
    background: rgba(218, 165, 32, 0.1);
}

.inventory-stat.danger {
    border-color: var(--danger);
    background: rgba(205, 92, 92, 0.1);
}

.inventory-stat .stat-label {
    font-size: 0.85rem;
    color: var(--lighter-gray);
    margin-bottom: 0.5rem;
}

.inventory-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E0E0E0;
}

.inventory-alerts {
    margin-top: 1.5rem;
}

.inventory-alerts h4 {
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 1rem;
}

/* Productos más vendidos */
.top-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
}

.product-rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 0.25rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--lighter-gray);
}

.product-stats {
    text-align: right;
}

.product-sales {
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 0.25rem;
}

.product-growth {
    font-size: 0.8rem;
    font-weight: 600;
}

.product-growth.trend-up {
    color: var(--success);
}

.product-growth.trend-down {
    color: var(--danger);
}

/* Gráficos de estadísticas */
.stat-chart {
    margin: 1rem 0;
    height: 80px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 0.9rem;
    color: var(--lighter-gray);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E0E0E0;
}

.stat-footer {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Controles de header */
.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: -260px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .top-header {
        padding: 0.75rem 1rem;
    }
    
    .search-input {
        min-width: 180px;
    }
}

/* ===== NUEVOS COMPONENTES DE HYPER UI ADAPTADOS ===== */

/* Header Principal - Diseño minimalista */
.main-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    top: 0;
    left: 260px;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-content-expanded .main-header {
    left: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 200px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #E0E0E0;
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
}

.logo-link:hover {
    color: var(--light-gold);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.2rem;
    transition: var(--transition);
}

.logo-text {
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    color: #E0E0E0;
    font-size: 1.25rem;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--lighter-gray);
    font-family: 'Boldonse', 'Roboto', sans-serif;
    font-weight: 400;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.75rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.search-box {
    position: relative;
}

.search-input {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: white;
    min-width: 200px;
    font-size: 0.875rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(26, 26, 26, 0.95);
}

.search-input::placeholder {
    color: var(--lighter-gray);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lighter-gray);
    font-size: 0.875rem;
}

.notifications-btn,
.settings-btn,
.mobile-menu-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lighter-gray);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.notifications-btn:hover,
.settings-btn:hover,
.mobile-menu-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--light-gold);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.notifications-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    transition: var(--transition);
    background: radial-gradient(circle at top right, var(--light-black), var(--black));
    min-height: 100vh;
    padding-top: 80px; /* Espacio para el header */
}

.main-content-expanded {
    margin-left: 70px;
}

/* Banner Hero */
.hero-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-bottom: 1px solid var(--gray);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-title .highlight {
    color: var(--light-gold);
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--lighter-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-visual {
    flex-shrink: 0;
}

.banner-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--black);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Progress Section */
.progress-section {
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--light-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.step.completed .step-icon {
    background: var(--success);
    color: white;
}

.step.active .step-icon {
    background: var(--gold);
    color: var(--black);
}

.step:not(.completed):not(.active) .step-icon {
    background: var(--gray);
    color: var(--lighter-gray);
}

.step-text {
    font-size: 0.9rem;
    color: var(--lighter-gray);
    text-align: center;
    font-weight: 500;
}

.step.completed .step-text,
.step.active .step-text {
    color: white;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    border-top: 1px solid var(--gray);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--light-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--lighter-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--lighter-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
}

.footer-info p {
    color: var(--lighter-gray);
    font-size: 0.9rem;
}

.footer-social {
    display: flex !important;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--lighter-gray);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

.social-link img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-section:last-child img[alt="SYS"],
.footer-section img[alt="SYS"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 1rem;
    height: 32px;
    width: auto;
    max-width: 200px;
}

/* Clientes Section */
.clients-section {
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: 700;
    font-size: 14px;
}

.client-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.client-email {
    font-size: 0.85rem;
    color: var(--lighter-gray);
}

/* Herramientas Section */
.tools-section {
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: linear-gradient(145deg, var(--dark-gray), var(--gray));
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-md);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black);
    flex-shrink: 0;
}

.tool-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tool-content p {
    color: var(--lighter-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--lighter-gray);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: var(--success);
}

.status-dot.warning {
    background: var(--warning);
}

/* Charts Section */
.charts-section {
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: linear-gradient(145deg, var(--dark-gray), var(--gray));
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.chart-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-md);
}

.chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h4 {
    color: var(--light-gold);
    margin: 0;
    font-size: 1.1rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-body {
    padding: 1.5rem;
    height: 300px;
}

/* Activity Section */
.activity-section {
    margin-bottom: 2rem;
}

.activity-list {
    padding: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success);
}

.activity-icon.info {
    background: rgba(70, 130, 180, 0.2);
    color: var(--info);
}

.activity-icon.warning {
    background: rgba(218, 165, 32, 0.2);
    color: var(--warning);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.activity-desc {
    color: var(--lighter-gray);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--lighter-gray);
}

/* Responsive para nuevos componentes */
@media (max-width: 1200px) {
    .banner-container {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-actions {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .header-center {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-input {
        min-width: 180px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        gap: 1rem;
    }
}

/* Sidebar móvil */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 80px;
    }
    
    .main-content-expanded {
        margin-left: 0;
    }
    
    .main-header {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Overlay para sidebar móvil */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Ajustes para el logo en sidebar colapsado */
.sidebar-collapsed .logo {
    justify-content: center;
}

.sidebar-collapsed .logo-icon {
    margin-right: 0;
}

/* Ajustes para iconos en sidebar colapsado */
.sidebar-collapsed .nav-icon {
    margin-right: 0;
    font-size: 1.1rem;
}

/* Ajustes para el toggle button en sidebar colapsado */
.sidebar-collapsed .toggle-sidebar {
    transform: rotate(180deg);
}

/* Ajustes para el header cuando el sidebar está colapsado */
.main-content-expanded .header-container {
    padding-left: 1rem;
}

/* Mejorar la transición de los iconos */
.nav-icon {
    transition: all 0.3s ease;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar-collapsed .nav-link:hover,
.sidebar-collapsed .nav-link.active {
    background: rgba(212, 175, 55, 0.15);
}

/* Asegurar que el sidebar funcione correctamente en móviles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 80px;
    }
    
    .main-content-expanded {
        margin-left: 0;
    }
    
    .main-header {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Ajustes para el banner en pantallas pequeñas */
@media (max-width: 480px) {
    .banner-container {
        padding: 0 1rem;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .progress-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Ajustes para las tarjetas de herramientas en pantallas pequeñas */
@media (max-width: 640px) {
    .tool-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-icon {
        align-self: center;
    }
}

/* Ajustes para el footer en pantallas pequeñas */
@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Ajustes para las tablas en pantallas pequeñas */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .client-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Ajustes para los gráficos en pantallas pequeñas */
@media (max-width: 640px) {
    .chart-body {
        height: 250px;
        padding: 1rem;
    }
    
    .chart-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Ajustes para las actividades en pantallas pequeñas */
@media (max-width: 640px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .activity-icon {
        align-self: flex-start;
    }
}

/* Ajustes para el header en pantallas muy pequeñas */
@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .search-input {
        min-width: 150px;
        font-size: 0.85rem;
    }
    
    .notifications-btn,
    .settings-btn,
    .mobile-menu-btn {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Estilos para animaciones y efectos */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.card, .stat-card, .tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.progress-fill {
    transition: width 0.8s ease;
}

/* Efectos hover mejorados */
.nav-link:hover {
    transform: translateY(-2px);
}

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

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon {
    transition: transform 0.3s ease;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card, .tool-card, .chart-card {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Efectos de focus mejorados */
.search-input:focus,
.form-control:focus {
    transform: scale(1.02);
}

/* Transiciones suaves para todos los elementos interactivos */
* {
    transition: all 0.3s ease;
}

/* Efectos especiales para el banner */
.banner-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Efectos para las notificaciones */
.notifications-count {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
} 

/* Widget CRUD Moderno */
.crud-section {
    margin-bottom: 2rem;
}

/* Buscador y Filtros */
.search-filters {
    padding: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--lighter-gray);
    pointer-events: none;
}

/* Formulario CRUD */
.crud-form {
    padding: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--lighter-gray);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.file-label:hover {
    border-color: var(--gold);
    color: var(--light-gold);
}

.file-label i {
    font-size: 1.1rem;
}

/* Tabla de Órdenes */
.order-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-text {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.875rem;
}

.status-btn {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.table-stats {
    color: var(--lighter-gray);
    font-size: 0.875rem;
}

.table-controls {
    display: flex;
    gap: 0.75rem;
}

/* Paginación */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-numbers .btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Widget de Insumos */
.insumos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.insumo-item:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(212, 175, 55, 0.2);
}

.insumo-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insumo-name {
    font-weight: 600;
    color: white;
}

.insumo-dose {
    font-size: 0.875rem;
    color: var(--lighter-gray);
}

/* Responsive para CRUD */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .insumo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .table-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .page-numbers {
        order: -1;
    }
} 

/* Modal de Cambio de Estado */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-modal-overlay.show {
    opacity: 1;
}

.status-modal {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.status-modal-overlay.show .status-modal {
    transform: scale(1);
}

.status-modal h3 {
    color: var(--light-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(20px);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
    box-shadow: var(--shadow-xl);
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification span {
    color: white;
    font-size: 0.875rem;
    line-height: 1.4;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-warning i {
    color: var(--warning);
}

.notification-info {
    border-left: 4px solid var(--info);
}

.notification-info i {
    color: var(--info);
}

.notification-danger {
    border-left: 4px solid var(--danger);
}

.notification-danger i {
    color: var(--danger);
}
