/* Sistema de Alimentación Escolar - Estilos CSS */
/* Versión 1.0 - PHP 8 - XAMPP */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #4a69bd;
    --secondary-color: #6c5ce7;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --info-color: #74b9ff;
    --light-color: #dfe6e9;
    --dark-color: #2d3436;
    --white-color: #ffffff;
    --gray-color: #1E90FF;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --gradient-warning: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    --gradient-danger: linear-gradient(135deg, #d63031 0%, #74b9ff 100%);
    --gradient-info: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #FFD700;
    color: var(--dark-color);
    line-height: 1.6;
    background: url('../../views/uploads/logos/fondo.jpeg') center/cover no-repeat fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    background: linear-gradient(135deg, rgba(74, 105, 189, 0.95), rgba(108, 92, 231, 0.95));
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    position: relative;
}

.navbar-brand {
    color: var(--white-color) !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: var(--light-color) !important;
}

.navbar-nav .nav-link {
    color: var(--white-color) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color) !important;
}

/* Menú Hamburguesa */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggler:hover {
    color: var(--light-color);
}

/* Menú Dropdown Móvil */
.navbar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

.navbar-dropdown.show {
    display: block;
}

.navbar-dropdown .nav-link {
    color: var(--dark-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e8ed;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-dropdown .nav-link:hover,
.navbar-dropdown .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white-color);
}

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

/* ===== SIDEBAR ===== */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 70px);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 70px;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.sidebar .nav-link span {
    font-size: 1.2rem;
}

.sidebar .nav-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-left-color: var(--secondary-color);
    transform: translateX(3px);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 70px);
    overflow-y: auto;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ===== TARJETAS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-weight: bold;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* ===== BOTONES ===== */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: var(--white-color);
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white-color);
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white-color);
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.btn-info {
    background: var(--info-color);
    color: var(--white-color);
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ===== FORMULARIOS ===== */
.form-control {
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ===== TABLAS ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e1e8ed;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.close {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* ===== PAGINACIÓN ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 2rem 0;
}

.page-link {
    color: var(--secondary-color);
    background: var(--white-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.page-item.active .page-link {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===== ESTADÍSTICAS ===== */
.stats-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-card.success::before {
    background: var(--gradient-success);
}

.stats-card.warning::before {
    background: var(--gradient-warning);
}

.stats-card.danger::before {
    background: var(--gradient-danger);
}

.stats-card.info::before {
    background: var(--gradient-info);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.success .stats-icon {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.warning .stats-icon {
    background: var(--gradient-warning);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.danger .stats-icon {
    background: var(--gradient-danger);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.info .stats-icon {
    background: var(--gradient-info);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-label {
    color: var(--gray-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) and (max-width: 992px) {
    .col-md-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-10 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .sidebar {
        display: block;
        position: sticky;
        top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .sidebar-mobile {
        display: none;
    }
    
    .navbar-toggler {
        display: none;
    }
    
    .sidebar .nav-text {
        display: none;
    }
    
    .sidebar .nav-link {
        padding: 0.75rem 0.5rem;
        justify-content: center;
    }
    
    .main-content {
        padding: 0;
    }
    
    .content-wrapper {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .container-fluid {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .row {
        margin: 0;
        width: 100%;
    }
    
    .container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .reloj-digital {
        min-width: 280px;
        padding: 20px 25px;
    }
    
    .reloj-hora {
        font-size: 2.8rem;
    }
    
    .reloj-fecha {
        font-size: 1rem;
    }
    
    .reloj-mensaje {
        font-size: 1.1rem;
        padding: 8px 15px;
    }
    
    .stats-card-ingresos {
        padding: 20px 25px;
    }
    
    .ingresos-icon {
        font-size: 3.5rem;
    }
    
    .ingresos-number {
        font-size: 3.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .form-control {
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .modal-content {
        max-width: 90%;
        margin: 1rem auto;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

@media (max-width: 992px) {
    .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar {
        display: none;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-dropdown {
        display: block;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .reloj-digital {
        min-width: 300px;
        padding: 20px 30px;
    }
    
    .reloj-hora {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    html, body {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        margin: 0 !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        font-size: 1.3rem;
        padding: 0.3rem 0.6rem;
    }

    .dropdown-menu {
        font-size: 0.95rem;
        width: 100%;
        left: 0;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }

    .sidebar {
        position: static;
        min-height: auto;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
        display: none !important;
    }

    .sidebar .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .sidebar .nav-text {
        display: inline;
    }

    .main-content {
        padding: 0 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .content-wrapper {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        width: calc(100% - 1rem) !important;
        box-sizing: border-box !important;
        border-radius: 15px !important;
        max-width: calc(100% - 1rem) !important;
    }

    .container-fluid {
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .row {
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 0 0.5rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .row > * {
        flex-grow: 1 !important;
        padding: 0.25rem !important;
    }

    .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .col-md-2 {
        display: none !important;
    }
    
    .col-md-10 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        box-sizing: border-box !important;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
        width: 100%;
        overflow-x: auto;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        white-space: normal;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .btn-sm {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-height: 38px;
        white-space: normal;
    }
    
    .form-control {
        padding: 0.75rem 0.75rem !important;
        font-size: 1rem !important;
        min-height: 50px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        margin: 0 0 0.75rem 0 !important;
        border: 2px solid #e1e8ed !important;
        border-radius: 12px !important;
        background: white !important;
    }

    .form-control:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        outline: none;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word !important;
        white-space: normal !important;
        font-weight: 600;
        color: #333;
    }

    .form-select {
        padding: 0.75rem 0.75rem !important;
        font-size: 1rem !important;
        min-height: 50px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 0.75rem 0 !important;
        border: 2px solid #e1e8ed !important;
        border-radius: 12px !important;
        background: white !important;
    }

    .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        outline: none;
    }

    textarea.form-control {
        min-height: 100px !important;
        resize: vertical;
    }

    .btn-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .btn-group .btn {
        width: 100% !important;
        text-align: center !important;
    }

    .d-flex {
        flex-wrap: wrap !important;
    }

    .d-flex .btn {
        flex: 1 !important;
        min-width: 120px !important;
    }

    .form-group {
        margin-bottom: 1rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .col-md-6, .col-md-3, .col-md-12, .col-md-4, .col-md-8 {
        width: 100% !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }

    .card {
        margin-bottom: 1rem;
        border-radius: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }

    .card-body {
        padding: 1.25rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .card-header {
        padding: 1rem 1.25rem;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 15px 15px 0 0 !important;
    }

    .card-title {
        font-size: 1.15rem;
        word-wrap: break-word !important;
        white-space: normal !important;
        font-weight: 700;
    }

    .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .d-flex.gap-2 .btn {
        flex: 1 1 auto;
        min-width: 120px;
        white-space: normal;
        padding: 0.75rem 1rem;
    }

    .d-flex.gap-2 .form-control {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }

    .d-flex.gap-3 .btn {
        flex: 1 1 auto;
        min-width: 120px;
        white-space: normal;
        padding: 0.75rem 1rem;
    }

    .h3, .h4, .h5, .h6 {
        font-size: 1.25rem;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .table-responsive {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between .btn {
        flex: 1 1 auto;
        min-width: 140px;
        white-space: normal;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .table .btn-sm {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
        min-height: 32px;
        white-space: normal;
    }
    
    .table .btn {
        margin: 0.25rem;
        white-space: normal;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1 1 auto;
        min-width: 120px;
        white-space: normal;
    }
    
    .btn span {
        display: inline-block;
        vertical-align: middle;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .reloj-digital {
        min-width: 280px;
        padding: 20px 25px;
    }
    
    .reloj-hora {
        font-size: 2.5rem;
    }
    
    .reloj-fecha {
        font-size: 1rem;
    }
    
    .stats-card-ingresos {
        padding: 20px 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .ingresos-icon {
        font-size: 3rem;
    }
    
    .ingresos-number {
        font-size: 3rem;
    }
    
    .ingresos-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        font-size: 1.2rem;
        padding: 0.25rem 0.5rem;
    }
    
    .dropdown-menu {
        font-size: 0.9rem;
        width: 100%;
        left: 0;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
    }
    
    .sidebar .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 0;
        width: 100%;
    }
    
    .content-wrapper {
        padding: 0.75rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
        max-width: 100%;
    }
    
    .container-fluid {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .row {
        margin: 0;
        width: 100%;
    }
    
    .container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-height: 40px;
        white-space: normal;
    }
    
    .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        min-height: 46px;
        white-space: normal;
    }
    
    .btn-sm {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        min-height: 36px;
        white-space: normal;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
        min-height: 40px;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        width: 98%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        white-space: normal;
    }
    
    .d-flex.gap-2 .form-control {
        width: 100%;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        white-space: normal;
    }
    
    .d-flex.justify-content-between h1 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
        width: 100%;
        overflow-x: auto;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.4rem;
    }
    
    .table .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-height: 30px;
        width: 100%;
        margin: 0.15rem 0;
        white-space: normal;
    }
    
    .table .btn {
        width: 100%;
        margin: 0.15rem 0;
        white-space: normal;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1 1 auto;
        min-width: 100px;
        white-space: normal;
    }
    
    .btn span {
        display: inline-block;
        vertical-align: middle;
    }
    
    .table .d-flex {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .card {
        border-radius: 0;
    }
    
    .reloj-digital {
        min-width: 250px;
        min-width: 100%;
        padding: 15px 20px;
        margin-bottom: 1rem;
    }
    
    .reloj-hora {
        font-size: 2rem;
    }
    
    .reloj-fecha {
        font-size: 0.9rem;
    }
    
    .reloj-mensaje {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .stats-card-ingresos {
        padding: 15px 20px;
    }
    
    .ingresos-icon {
        font-size: 2.5rem;
    }
    
    .ingresos-number {
        font-size: 2.5rem;
    }
    
    .ingresos-label {
        font-size: 1rem;
    }
    
    .ingresos-sublabel {
        font-size: 0.9rem;
    }
    
    /* Ocultar elementos no esenciales en móviles */
    .d-none-mobile {
        display: none !important;
    }
    
    /* Ajustar contenedores de formulario */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Ajustar badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Botón flotante de WhatsApp */
    a[href^="https://wa.me"] {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== CLASES BOOTSTRAP FALTANTES ===== */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-10, .col-md-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.ms-auto {
    margin-left: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #1E90FF;
}

.text-end {
    text-align: right;
}

.text-start {
    text-align: left;
}

/* Reloj Digital */
.reloj-digital {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(238, 90, 36, 0.6);
    min-width: 350px;
    animation: pulso 2s ease-in-out infinite;
    border: 4px solid #ffffff;
}

@keyframes pulso {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(238, 90, 36, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(238, 90, 36, 0.8);
    }
}

.reloj-fecha {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.reloj-hora {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.reloj-mensaje {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 3px solid #ffffff;
    animation: destello 1.5s ease-in-out infinite;
}

@keyframes destello {
    0%, 100% {
        background: rgba(0, 0, 0, 0.4);
    }
    50% {
        background: rgba(255, 255, 255, 0.3);
        color: #ee5a24;
    }
}

/* Contador de Ingresos Destacado */
.stats-card-ingresos {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    animation: pulsoIngresos 3s ease-in-out infinite;
    border: 4px solid #ffffff;
}

@keyframes pulsoIngresos {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 50px rgba(102, 126, 234, 0.7);
    }
}

.ingresos-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ingresos-content {
    flex: 1;
}

.ingresos-label {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.ingresos-number {
    color: #ffffff;
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    animation: contadorAnim 2s ease-out;
}

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

.ingresos-sublabel {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Modal de correo */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.modal-header h5 {
    margin: 0;
    color: #1E90FF;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #00BFFF;
}

.btn-close:hover {
    color: #1E90FF;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== CLASES DE FORMULARIOS ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1E90FF;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #00BFFF;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ===== CLASES DE BOTONES ===== */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-outline-secondary {
    color: #1E90FF;
    background-color: transparent;
    border-color: #1E90FF;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #1E90FF;
    border-color: #1E90FF;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-warning {
    color: #0069d9;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* ===== DISEÑO PROFESIONAL DEL REPORTE DE INICIO ===== */

/* Hero Section con imagen de fondo */
.hero-section {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: heroEntrance 1s ease-out;
    min-height: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Efecto de partículas animadas en el fondo */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 107, 107, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: particlesMove 10s ease-in-out infinite;
}

@keyframes particlesMove {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(102, 126, 234, 0.05) 50%, rgba(118, 75, 162, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.4), 0 0 80px rgba(255, 255, 255, 0.6);
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #39FF14 0%, #00FF00 50%, #39FF14 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.4), 0 0 80px rgba(255, 255, 255, 0.6);
        transform: scale(1);
    }
    50% {
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.6), 0 0 100px rgba(255, 255, 255, 0.8);
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    animation: subtitlePulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, #39FF14 0%, #00FF00 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-3px);
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 15px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFloat 4s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-stat-card:nth-child(1) { animation-delay: 0s; }
.hero-stat-card:nth-child(2) { animation-delay: 0.5s; }
.hero-stat-card:nth-child(3) { animation-delay: 1s; }
.hero-stat-card:nth-child(4) { animation-delay: 1.5s; }

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

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-20px) scale(1.15) rotateX(8deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-8deg);
    }
    75% {
        transform: scale(1.2) rotate(8deg);
    }
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.hero-stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Tarjetas de estadísticas mejoradas */
.stats-card-modern {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
}

.stats-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-card-modern:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stats-card-modern .stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card-modern .stats-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 10px;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.stats-card-modern .stats-label {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sección de acciones rápidas */
.quick-actions {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.quick-actions-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
    color: white;
}

/* Tabla de ingresos mejorada */
.ingresos-table-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
    overflow: hidden;
}

.ingresos-table-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingresos-table-container .table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.ingresos-table-container .table thead th {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    border: none;
    padding: 15px;
}

.ingresos-table-container .table tbody td {
    color: white;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ingresos-table-container .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Animaciones de entrada */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive para el hero section */
@media (max-width: 768px) {
    body {
        background-size: cover !important;
        background-attachment: scroll !important;
        background-position: center !important;
    }

    .hero-section {
        padding: 25px 20px;
        border-radius: 15px;
        min-height: auto;
        margin: 10px;
    }

    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-stat-card {
        padding: 18px 12px;
    }

    .hero-stat-icon {
        font-size: 2.2rem;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    .stats-card-modern {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .stats-card-modern .stats-icon {
        font-size: 2.3rem;
    }

    .stats-card-modern .stats-number {
        font-size: 2rem;
    }

    /* Mejoras para móviles - navbar */
    .navbar {
        padding: 12px 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.4rem;
    }

    /* Mejoras para móviles - botones */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Mejoras para móviles - contenido */
    .content-wrapper {
        padding: 18px 15px;
        margin: 12px;
        border-radius: 15px;
    }

    /* Mejoras para móviles - tablas */
    .table {
        font-size: 0.85rem;
    }

    .table thead th {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    /* Mejoras específicas para index.php en móvil */
    .stats-card-ingresos {
        padding: 20px 15px;
        height: auto !important;
    }

    .ingresos-table-container {
        height: auto !important;
        padding: 15px;
    }

    .quick-actions {
        padding: 20px 15px;
    }

    .quick-action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 150px;
    }

    .reloj-digital {
        width: 100px;
        height: 100px;
    }

    .reloj-fecha {
        font-size: 0.65em;
    }

    .reloj-hora {
        font-size: 1.2em;
    }

    .table tbody td {
        padding: 0.5rem;
    }

    .quick-actions {
        padding: 20px;
    }

    .quick-action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .ingresos-table-container {
        padding: 20px;
    }

    .content-wrapper {
        background: rgba(255, 255, 255, 0.98);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body {
        background-size: cover !important;
        background-attachment: scroll !important;
        background-position: center !important;
    }

    .hero-section {
        padding: 35px 25px;
        min-height: 400px;
        margin: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.8px;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hero-stat-card {
        padding: 20px 15px;
    }

    .hero-stat-icon {
        font-size: 2.5rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    /* Mejoras para tablets - navbar */
    .navbar {
        padding: 12px 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.4rem;
    }

    /* Mejoras para tablets - botones */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Mejoras para tablets - contenido */
    .content-wrapper {
        padding: 20px;
        margin: 15px;
        border-radius: 12px;
    }

    /* Mejoras para tablets - tablas */
    .table {
        font-size: 0.9rem;
    }

    .table thead th {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .table tbody td {
        padding: 0.6rem;
    }
}
