/* =============================================
   ANIMACIÓN DE BIENVENIDA
   ============================================= */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a472a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    animation: welcome-zoom 1.2s ease-out forwards;
    opacity: 0;
}

.welcome-text {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    animation: welcome-slide-up 0.8s ease-out 0.8s forwards;
}

.welcome-user {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    font-weight: 500;
    opacity: 0;
    animation: welcome-fade-in 0.8s ease-out 1.4s forwards;
}

@keyframes welcome-zoom {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes welcome-slide-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes welcome-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body.tema-claro .welcome-overlay {
    background-color: #ffffff;
}

body.tema-claro {
    --bg-primary: #f8f4f1;
    --bg-secondary: #f4f4f4;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f1f5;
    --bg-input: #f0f1f5;
    --border-color: #e1e4e8;
    --border-focus: #93ff0b;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #a4b0be;
    --accent-primary: #93ff0b;
    --accent-secondary: #7add00;
    --accent-gradient: linear-gradient(135deg, #93ff0b, #7add00);
    --success: #00b894;
    --success-bg: rgba(0, 184, 148, 0.12);
    --warning: #f39c12;
    --warning-bg: rgba(243, 156, 18, 0.12);
    --danger: #e74c3c;
    --danger-bg: rgba(231, 76, 60, 0.12);
    --info: #3498db;
    --info-bg: rgba(52, 152, 219, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(147, 255, 11, 0.1);
}

body.tema-claro .sidebar {
    background: #ffffff;
    border-right: 1px solid #e1e4e8;
}

body.tema-claro .sidebar-header,
body.tema-claro .sidebar-footer {
    border-color: #e1e4e8;
}

body.tema-claro .nav-item:hover {
    background: #f0f1f5;
}

body.tema-claro .card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.tema-claro .action-card:hover {
    box-shadow: 0 8px 30px rgba(147, 255, 11, 0.15);
}

body.tema-claro .page-header h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.tema-claro .logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.tema-claro .topbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(147, 255, 11, 0.1);
}

body.tema-claro .flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e1e4e8 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

body.tema-claro .flatpickr-months {
    background: #f5f6fa !important;
}

body.tema-claro .flatpickr-day {
    color: #636e72 !important;
}

body.tema-claro .flatpickr-day:hover {
    background: rgba(147, 255, 11, 0.1) !important;
    color: #2d3436 !important;
}

body.tema-claro .data-table thead {
    background: #f5f6fa;
}

body.tema-claro .data-table tbody tr:hover {
    background: #f5f6fa;
}

/* =============================================
   BOTÓN CAMBIAR TEMA
   ============================================= */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-toggle i {
    font-size: 1rem;
}

.theme-toggle span {
    font-size: 0.8rem;
    font-weight: 500;
}

:root {
    --bg-primary: #545454;
    --bg-secondary: #404040;
    --bg-card: #484848;
    --bg-card-hover: #525252;
    --bg-input: #3d3d3d;
    --border-color: #5a5a5a;
    --border-focus: #93ff0b;
    --text-primary: #e8e8f0;
    --text-secondary: #c8c8c8;
    --text-muted: #909090;
    --accent-primary: #93ff0b;
    --accent-secondary: #93ff0b;
    --accent-gradient: linear-gradient(135deg, #93ff0b, #93ff0b);
    --success: #00cec9;
    --success-bg: rgba(0, 206, 201, 0.12);
    --warning: #fdcb6e;
    --warning-bg: rgba(253, 203, 110, 0.12);
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.12);
    --info: #74b9ff;
    --info-bg: rgba(116, 185, 255, 0.12);
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 65px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --glass: rgba(68, 68, 68, 0.85);
    --glass-border: rgba(147, 255, 11, 0.15);
    --transition: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
    position: relative;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 2px;
}

.logo i {
    font-size: 1.4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: none;
}

.sidebar-toggle:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.nav-section {
    padding: 16px 12px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 255, 11, 0.3);
}

.nav-item.active:hover {
    transform: translateX(0);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user img,
.sidebar-user .user-avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.logout-btn {
    color: var(--danger) !important;
}

.logout-btn:hover {
    background: var(--danger-bg) !important;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.top-bar {
    height: var(--topbar-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.welcome-text strong {
    color: var(--accent-secondary);
}

.content-wrapper {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* =============================================
   PAGE HEADERS
   ============================================= */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--glass-border);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--accent-primary);
}

/* =============================================
   ACTION BUTTONS (Dashboard)
   ============================================= */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.action-card:hover::before {
    opacity: 1;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.action-icon.primary {
    background: rgba(147, 255, 11, 0.15);
    color: var(--accent-primary);
}

.action-icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.action-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.action-icon.info {
    background: var(--info-bg);
    color: var(--info);
}

.action-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.action-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.action-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* =============================================
   STAT CARDS
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.purple .stat-value {
    color: var(--accent-primary);
}

.stat-card.green .stat-value {
    color: var(--success);
}

.stat-card.yellow .stat-value {
    color: var(--warning);
}

.stat-card.blue .stat-value {
    color: var(--info);
}

/* =============================================
   FORMS
   ============================================= */
.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
}

.form-section-title i {
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    text-transform: none;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(147, 255, 11, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Product radio buttons */
.product-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.product-option {
    position: relative;
}

.product-option input[type="radio"],
.product-option input[type="checkbox"] {
    display: none;
}

.product-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    font-size: 0.88rem;
    letter-spacing: 0;
}

.product-option input[type="radio"]:checked+label,
.product-option input[type="checkbox"]:checked+label {
    border-color: var(--accent-primary);
    background: rgba(147, 255, 11, 0.1);
    color: var(--accent-secondary);
}

.product-option label:hover {
    border-color: var(--accent-primary);
}

.product-option label i {
    color: var(--accent-primary);
    width: 18px;
    text-align: center;
}

/* File upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.file-upload-label:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.file-upload-label i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-preview {
    margin-top: 8px;
    max-width: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: none;
}

.file-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 255, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 255, 11, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #fdcb6e);
    color: #1a1d27;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================
   TABLES
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 14px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

/* Badge secundario para rol pasante */
.badge-secondary {
    background: rgba(149, 161, 172, 0.15);
    color: #95a1ac;
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-primary {
    background: rgba(147, 255, 11, 0.15);
    color: var(--accent-secondary);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions .btn-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.table-actions .btn-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(147, 255, 11, 0.1);
}

/* =============================================
   SEARCH
   ============================================= */
.search-box {
    position: relative;
    margin-bottom: 20px;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(147, 255, 11, 0.15);
}

/* =============================================
   ALERTS / MESSAGES
   ============================================= */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(116, 185, 255, 0.2);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 255, 11, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(162, 155, 254, 0.1) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: block;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form .form-control {
    text-transform: none;
}

.login-form .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    margin-top: 8px;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

/* =============================================
   ANALYTICS
   ============================================= */
.analytics-chart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 0 10px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    max-width: 60px;
    background: var(--accent-gradient);
    border-radius: 6px 6px 0 0;
    min-height: 10px;
    transition: var(--transition);
    position: relative;
}

.bar:hover {
    opacity: 0.8;
}

.bar-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.bar-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.88rem;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.status-badge-product {
    background: rgba(147, 255, 11, 0.15);
    color: #8ecb10;
    border: 1px solid rgba(147, 255, 11, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    display: inline-block;
}

.text-info {
    color: var(--info);
}

.text-muted {
    color: var(--text-muted);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* =============================================
   FILTERS
   ============================================= */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.filters-bar .form-control {
    max-width: 200px;
}

/* =============================================
   IMAGE VIEWER
   ============================================= */
.img-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.img-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 999;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .content-wrapper {
        padding: 20px 15px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 22px;
    }

    .product-options {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   RECENT SALES TABLE (Dashboard)
   ============================================= */
.recent-sales {
    margin-top: 10px;
}

/* =============================================
   PRINT
   ============================================= */
@media print {

    .sidebar,
    .top-bar,
    .mobile-toggle,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* =============================================
   FLATPICKR DARK THEME OVERRIDES
   ============================================= */
.flatpickr-calendar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Inter', sans-serif !important;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
    border-bottom-color: var(--bg-card) !important;
}

.flatpickr-months {
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg-secondary) !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--text-secondary) !important;
    fill: var(--text-secondary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--accent-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.flatpickr-current-month input.cur-year {
    color: var(--text-primary) !important;
}

span.flatpickr-weekday {
    color: var(--accent-primary) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

.flatpickr-day {
    color: var(--text-secondary) !important;
    border-radius: 8px !important;
}

.flatpickr-day:hover {
    background: rgba(147, 255, 11, 0.15) !important;
    border-color: transparent !important;
    color: var(--text-primary) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    color: white !important;
}

.flatpickr-day.today {
    border-color: var(--accent-primary) !important;
}

.flatpickr-day.today:hover {
    background: var(--accent-primary) !important;
    color: white !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-muted) !important;
}

.flatpickr-day.flatpickr-disabled {
    color: var(--text-muted) !important;
    opacity: 0.3 !important;
}

.flatpickr-time {
    border-top: 1px solid var(--border-color) !important;
}

.flatpickr-time input {
    color: var(--text-primary) !important;
    background: transparent !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.flatpickr-time .flatpickr-am-pm {
    color: var(--text-primary) !important;
    background: transparent !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
    background: rgba(147, 255, 11, 0.1) !important;
}

.flatpickr-time .numInputWrapper span.arrowUp::after {
    border-bottom-color: var(--text-secondary) !important;
}

.flatpickr-time .numInputWrapper span.arrowDown::after {
    border-top-color: var(--text-secondary) !important;
}

.flatpickr-input.flatpickr-input {
    cursor: pointer !important;
}

input.flatpickr-input+.form-control,
input[readonly].form-control.flatpickr-input {
    cursor: pointer;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.topbar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
}

/* Sidebar Collapsed State */
.app-container.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

.app-container.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed);
}

.app-container.sidebar-collapsed .sidebar .sidebar-header {
    padding: 15px 0 !important;
    justify-content: center !important;
}

.app-container.sidebar-collapsed .sidebar-logo {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
}

.app-container.sidebar-collapsed .sidebar-logo img {
    width: 45px !important;
    height: 45px !important;
    margin: 0 !important;
}

.app-container.sidebar-collapsed .sidebar-logo span,
.app-container.sidebar-collapsed .sidebar-user,
.app-container.sidebar-collapsed .nav-item span,
.app-container.sidebar-collapsed .nav-divider,
.app-container.sidebar-collapsed .nav-section-title,
.app-container.sidebar-collapsed .sidebar-close {
    display: none !important;
}

.app-container.sidebar-collapsed .nav-item {
    justify-content: center !important;
    padding: 12px 0 !important;
    margin: 4px 8px !important;
}

.app-container.sidebar-collapsed .nav-item i {
    font-size: 1.25rem !important;
    margin: 0 !important;
    width: auto !important;
}

.sidebar-close {
    position: absolute;
    right: 15px;
    top: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 10;
}

@media (max-width: 992px) {
    .app-container.sidebar-collapsed .main-content {
        margin-left: 0;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar-close {
        display: block;
    }
}

/* Nav section */
.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 12px;
}

.nav-section-title {
    padding: 12px 16px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Filters bar */
.filters-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Analytics chart bar */
.analytics-chart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    height: 200px;
    padding-top: 20px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 80px;
}

.bar-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.bar {
    width: 100%;
    min-height: 4px;
    background: var(--accent-gradient);
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;
}

/* =============================================
   NOTIFICACIONES DE VUELOS PROXIMOS (campana)
   ============================================= */
.notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.notif-bell {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.notif-bell:hover {
    background: var(--bg-hover, rgba(147, 255, 11, 0.1));
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary, #0f1419);
    line-height: 1;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}

.notif-badge.pulse {
    animation: notifPulse 1.5s ease-in-out infinite;
}

.notif-panel {
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
}

.notif-panel.active {
    display: block;
}

.notif-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.notif-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.notif-header strong i {
    color: var(--accent-primary);
    margin-right: 6px;
}

.notif-header small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.notif-permission {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notif-permission small {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.notif-list {
    padding: 0;
}

.notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notif-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
    border-left: 3px solid transparent;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: var(--bg-hover, rgba(147, 255, 11, 0.06));
}

.notif-item.critico {
    border-left-color: var(--danger);
}

.notif-item.proximo {
    border-left-color: var(--warning);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item.critico .notif-item-icon {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
}

.notif-item.proximo .notif-item-icon {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item .cliente {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item .destino {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item .meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item .hora {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.notif-item.critico .hora {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.12);
}

.notif-item.proximo .hora {
    color: var(--warning);
    background: rgba(253, 203, 110, 0.12);
}

/* Tema claro */
body.tema-claro .notif-panel {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

body.tema-claro .notif-badge {
    border-color: #fff;
}

/* Responsive: en movil el panel ocupa casi todo el ancho */
@media (max-width: 600px) {
    .notif-panel {
        position: fixed;
        top: 64px;
        left: 5vw;
        right: 5vw;
        width: auto;
        max-height: 70vh;
    }
}

/* ==== Reloj del topbar (hora Venezuela) ==== */
.topbar-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.topbar-clock:hover {
    border-color: var(--accent-primary);
}
.topbar-clock > i {
    color: var(--accent-primary);
    font-size: 1rem;
}
.topbar-clock .clock-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.topbar-clock .clock-time {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}
.topbar-clock .clock-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-top: 1px;
}
body.tema-claro .topbar-clock {
    background: rgba(0, 0, 0, 0.04);
}
@media (max-width: 900px) {
    .topbar-clock .clock-date {
        display: none;
    }
    .topbar-clock {
        padding: 6px 10px;
    }
}
@media (max-width: 500px) {
    .topbar-clock {
        display: none;
    }
}

/* ==== Banner "Vuelos Proximos" (index.php) ==== */
.vuelos-proximos-alert {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid var(--info);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
.vuelos-proximos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.vuelos-proximos-title h3 {
    color: var(--info);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    flex-wrap: wrap;
}
.vuelos-proximos-title p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}
.vuelos-proximos-minimize {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.vuelos-proximos-minimize:hover {
    background: var(--info);
    color: #fff;
    border-color: var(--info);
    transform: scale(1.08);
}
.vuelos-proximos-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}
.vuelos-proximos-item {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--info);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    flex: 1 1 260px;
    min-width: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vuelos-proximos-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.vuelos-proximos-item.critico {
    border-left-color: var(--danger);
}
.vuelos-proximos-item .vp-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.vuelos-proximos-item .vp-item-head strong {
    font-size: 1rem;
    color: var(--text-primary);
    word-break: break-word;
}
.vuelos-proximos-item .vp-fecha {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
}
.vuelos-proximos-item.critico .vp-fecha {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
    font-weight: 600;
}
.vuelos-proximos-item .vp-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.vuelos-proximos-item .vp-item-body i {
    width: 14px;
    color: var(--text-muted);
    margin-right: 2px;
}
.vuelos-proximos-item .vp-action {
    margin-top: 6px;
    background: var(--info);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: filter 0.15s ease;
}
.vuelos-proximos-item .vp-action:hover {
    filter: brightness(1.1);
}
.vuelos-proximos-item.critico .vp-action {
    background: var(--danger);
}

/* ==== Pulso de la campana cuando se minimiza el banner ==== */
@keyframes notifBellPulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(147, 255, 11, 0.6); }
    40%  { transform: scale(1.25); box-shadow: 0 0 0 12px rgba(147, 255, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(147, 255, 11, 0); }
}
.notif-bell.notif-bell-pulse {
    animation: notifBellPulse 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FREELANCER (texto libre en ventas + analiticas + ver_venta)
   ============================================================ */

/* Checkbox principal para marcar venta como de freelancer */
.freelancer-checkbox-row {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}
.freelancer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
    user-select: none;
}
.freelancer-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}
.freelancer-toggle:hover span {
    color: var(--accent-primary);
}

/* Card de freelancer en ver_venta.php */
.freelancer-card {
    border-left: 4px solid var(--accent-primary);
}

/* =========================================
   Recordatorios (recordatorios.php + campana)
   ========================================= */
.recordatorios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recordatorio-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--info);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}
.recordatorio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.recordatorio-card.critico {
    border-left-color: var(--warning);
}
.recordatorio-card.vencido {
    border-left-color: var(--danger);
    background: rgba(255, 107, 107, 0.08);
}
.recordatorio-card.completado {
    opacity: 0.65;
    border-left-color: var(--success);
}
.recordatorio-card.completado .recordatorio-titulo {
    text-decoration: line-through;
}
.recordatorio-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(116, 185, 255, 0.15);
    color: var(--info);
    border-radius: 50%;
    font-size: 1.1rem;
}
.recordatorio-card.critico .recordatorio-icon {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}
.recordatorio-card.vencido .recordatorio-icon {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
}
.recordatorio-card.completado .recordatorio-icon {
    background: rgba(0, 206, 201, 0.15);
    color: var(--success);
}
.recordatorio-body {
    flex: 1;
    min-width: 0;
}
.recordatorio-titulo {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
    word-wrap: break-word;
}
.recordatorio-nota {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.recordatorio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.recordatorio-meta i { margin-right: 4px; }
.recordatorio-fecha {
    color: var(--text-secondary);
    font-weight: 500;
}
.recordatorio-badge-global {
    background: rgba(147, 255, 11, 0.15);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.recordatorio-badge-personal {
    background: rgba(116, 185, 255, 0.15);
    color: var(--info);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.recordatorio-tag-vencido {
    background: rgba(255, 107, 107, 0.18);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.recordatorio-tag-critico {
    background: rgba(253, 203, 110, 0.18);
    color: var(--warning);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.recordatorio-autor {
    color: var(--text-muted);
    font-style: italic;
}
.recordatorio-acciones {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.recordatorio-acciones .btn { white-space: nowrap; }

@media (max-width: 640px) {
    .recordatorio-card {
        flex-direction: column;
    }
    .recordatorio-acciones {
        flex-direction: row;
        align-self: stretch;
        justify-content: flex-end;
    }
}

/* Diferenciacion de items en la campana del topbar segun tipo */
.notif-item[data-tipo="recordatorio"] .notif-item-icon i,
.notif-item[data-tipo="cumpleanos"] .notif-item-icon i {
    /* color se inyecta inline desde el JS para tener un control fino */
}

/* ====== PAGO MIXTO UNIFICADO POR BLOQUE ======
   Radio de moneda (BS/USD/EUR) con highlight; bloque de tasa expandible. */
.radio-moneda-pago {
    transition: all .15s ease;
}
.radio-moneda-pago:hover {
    border-color: var(--accent-primary) !important;
    color: var(--accent-secondary) !important;
}
.pago-tasa-block {
    background: rgba(147, 255, 11, 0.04);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.pago-equivalente strong {
    letter-spacing: .3px;
}

/* ====== ADAPTACION PARA LAPTOP Y RESOLUCIONES 1366 x 768 ====== */
@media screen and (max-width: 1400px) {
    .content-wrapper {
        padding: 16px 14px;
    }
    .resumen-financiero-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .resumen-financiero-grid > div {
        padding-left: 6px !important;
        word-break: break-word;
    }
    .resumen-financiero-grid div[id^="resumen"] {
        font-size: 1.1rem !important;
    }
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    .modal-content {
        max-height: 88vh;
        overflow-y: auto;
    }
}

@media screen and (max-width: 1024px) {
    .resumen-financiero-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 640px) {
    .resumen-financiero-grid {
        grid-template-columns: 1fr !important;
    }
}

