
            /* Variables para alturas del header */
            :root {
                --header-height-desktop: 70px;
                --header-height-tablet: 60px;
                --header-height-mobile: 50px;
            }

            /* Media queries para variables de altura responsivas */
            @media (max-width: 768px) {
                :root {
                    --header-height-desktop: var(--header-height-tablet);
                }
            }

            @media (max-width: 500px) {
                :root {
                    --header-height-desktop: var(--header-height-mobile);
                }
            }

            body {
                font-family: 'Inter', sans-serif;
                background-color: #f8f9fa;
            }
            
            /* Header para usuarios no autenticados */
            .header {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                height: var(--header-height-desktop);
                display: flex;
                align-items: center;
            }
            
            .navbar {
                display: flex;
                justify-content: space-between;
                align-items: center;
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 2rem;
            }
            
            .nav-brand {
                display: flex;
                align-items: center;
                gap: 1rem;
            }
            
            .logo {
                height: 40px;
                width: auto;
            }
            
            .brand-text {
                font-size: 1.5rem;
                font-weight: 700;
            }
            
            .nav-menu {
                display: flex;
                list-style: none;
                gap: 2rem;
                margin: 0;
                padding: 0;
            }
            
            .nav-menu a {
                color: white;
                text-decoration: none;
                font-weight: 500;
                transition: opacity 0.3s;
            }
            
            .nav-menu a:hover {
                opacity: 0.8;
            }
            
            .nav-toggle {
                display: none;
                flex-direction: column;
                cursor: pointer;
            }
            
            .nav-toggle span {
                width: 25px;
                height: 3px;
                background: white;
                margin: 3px 0;
                transition: 0.3s;
            }
            
            /* Ocultar item QR en desktop */
            .mobile-only {
                display: none;
            }
            
            /* Modal QR Code */
            .qr-modal {
                display: none;
                position: fixed;
                z-index: 99999;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.95);
                backdrop-filter: blur(5px);
            }
            
            .qr-modal.active {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .qr-modal-content {
                position: relative;
                width: 90%;
                max-width: 400px;
                text-align: center;
                animation: qrFadeIn 0.3s ease;
            }
            
            .qr-image {
                width: 100%;
                height: auto;
                border-radius: 15px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
                background: white;
                padding: 20px;
            }
            
            @keyframes qrFadeIn {
                from {
                    opacity: 0;
                    transform: scale(0.8);
                }
                to {
                    opacity: 1;
                    transform: scale(1);
                }
            }
            
            /* Header para usuarios autenticados */
            .dashboard-header {
                background: linear-gradient(180deg, #e7e7e7 0%, #e7e7e7 55%, #c2c2c2 95% ,#7a7a7a 100%);
                color: white;
                padding: 1rem 0;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            }
            
            .header-content {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .header-left {
                display: flex;
                align-items: center;
                gap: 2rem;
            }
            
            .brand-section {
                display: flex;
                align-items: center;
                gap: 1rem;
            }
            
            .welcome-section h1 {
                font-size: 1.5rem;
                margin: 0;
                font-weight: 600;
            }
            
            .user-role {
                margin: 0;
                opacity: 0.8;
                font-size: 0.9rem;
            }
            
            .header-right {
                display: flex;
                align-items: center;
            }
            
            .user-menu {
                position: relative;
            }
            
            .user-menu .btn {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                color: white;
                text-decoration: none;
                padding: 0.5rem 1rem;
                border-radius: 8px;
                transition: background-color 0.3s;
            }
            
            .user-menu .btn:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }
            
            .user-avatar {
                width: 35px;
                height: 35px;
                background: rgba(255,255,255,0.2);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 600;
                font-size: 1.1rem;
            }
            
            .user-name {
                font-weight: 500;
            }
            
            .dropdown-menu {
                border: none;
                box-shadow: 0 4px 20px rgba(0,0,0,0.15);
                border-radius: 8px;
                padding: 0.5rem 0;
            }
            
            .dropdown-item {
                padding: 0.75rem 1rem;
                color: #333;
                transition: background-color 0.3s;
            }
            
            .dropdown-item:hover {
                background-color: #f8f9fa;
                color: #667eea;
            }
            
            /* Top Navigation */
            .top-nav {
                background: white;
                border-bottom: 1px solid #e9ecef;
                padding: 0.5rem 0;
                box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            }
            
            .top-nav .nav-menu {
                display: flex;
                list-style: none;
                margin: 0;
                padding: 0;
                gap: 0;
            }
            
            .top-nav .nav-item {
                margin: 0;
            }
            
            .top-nav .nav-link {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.75rem 1.5rem;
                color: #6c757d;
                text-decoration: none;
                font-weight: 500;
                transition: all 0.3s;
                border-radius: 6px;
                margin: 0 0.25rem;
            }
            
            .top-nav .nav-link:hover {
                color: #667eea;
                background-color: #f8f9fa;
            }
            
            .top-nav .nav-link.active {
                color: #667eea;
                background-color: #ededed;
            }
            
            .top-nav .nav-link i {
                font-size: 1.1rem;
            }
            
            /* Footer */
            .footer {
                background: 
                    linear-gradient(rgba(21, 32, 43, 0.5), rgba(44, 62, 80, 0.5)),
                    url('../images/16406291_rm373batch2-04_.jpg');
                background-size: cover;
                background-position: center;
                background-attachment: fixed;
                color: white;
                padding: 4rem 0 1rem;
                position: relative;
                overflow: hidden;
            }
            
            .footer::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, rgba(21, 32, 43, 0.3) 0%, rgba(44, 62, 80, 0.2) 100%);
                z-index: 1;
            }
            
            .footer-container {
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 2rem;
                position: relative;
                z-index: 2;
            }
            
            .footer-content {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 3rem;
                margin-bottom: 3rem;
            }
            
            .footer-section {
                transition: transform 0.3s ease;
            }
            
            .footer-section:hover {
                transform: translateY(-5px);
            }
            
            .footer-section h4 {
                margin-bottom: 1.5rem;
                color: #ffffff;
                font-size: 1.3rem;
                font-weight: 600;
                display: flex;
                align-items: center;
                gap: 0.75rem;
                border-bottom: 2px solid rgba(255, 255, 255, 0.1);
                padding-bottom: 0.75rem;
            }
            
            .footer-icon {
                color: #3498db;
                stroke-width: 1.5;
                filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.3));
            }
            
            .footer-icon-small {
                color: #3498db;
                stroke-width: 1.5;
                margin-right: 0.5rem;
                flex-shrink: 0;
            }
            
            .footer-section p {
                margin-bottom: 0.75rem;
                color: #ecf0f1;
                display: flex;
                align-items: flex-start;
                gap: 0.5rem;
                line-height: 1.6;
                transition: color 0.3s ease;
            }
            
            .footer-section p:hover {
                color: #ffffff;
            }
            
            .footer-section ul {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            
            .footer-section ul li {
                margin-bottom: 0.75rem;
            }
            
            .footer-section a {
                color: #bdc3c7;
                text-decoration: none;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.5rem;
                border-radius: 25px;
                position: relative;
            }
            
            .footer-section a:hover {
                color: #3498db;
                transform: translateX(5px);
            }
            
            .footer-section a:hover .footer-icon-small {
                color: #3498db;
                transform: scale(1.1);
            }
            
            .social-links {
                display: flex;
                flex-wrap: wrap;
                gap: 1rem;
                margin-top: 1.5rem;
                padding-top: 1rem;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .social-link {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding: 8px 12px !important;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 25px !important;
                color: #bdc3c7 !important;
                text-decoration: none;
                transition: all 0.3s ease;
                backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.1);
                font-size: 0.9rem;
                font-weight: 500;
            }
            
            .social-link:hover {
                background: rgba(52, 152, 219, 0.2);
                color: #3498db !important;
                transform: translateY(-2px) scale(1.05);
                box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
                border-color: rgba(52, 152, 219, 0.3);
            }
            
            .social-link svg {
                transition: all 0.3s ease;
            }
            
            .social-link:hover svg {
                color: #3498db;
                transform: rotate(5deg);
            }
            
            .footer-bottom {
                border-top: 1px solid rgba(255, 255, 255, 0.2);
                padding-top: 2rem;
                text-align: center;
                color: #bdc3c7;
                font-size: 0.95rem;
                background: rgba(0, 0, 0, 0.3);
                margin: 0 -2rem -1rem -2rem;
                padding-left: 2rem;
                padding-right: 2rem;
                padding-bottom: 1rem;
            }
            
            /* Responsive */
            @media (max-width: 768px) {
                .header .nav-menu {
                    position: fixed !important;
                    top: 70px !important;
                    left: -100% !important;
                    width: 100% !important;
                    height: calc(100vh - 70px) !important;
                    background: #2c3e50 !important;
                    flex-direction: column !important;
                    justify-content: flex-start !important;
                    align-items: center !important;
                    padding-top: 2rem !important;
                    transition: left 0.3s ease !important;
                    backdrop-filter: none !important;
                    z-index: 9999 !important;
                    display: flex !important;
                }
                
                .header .nav-menu.active {
                    left: 0 !important;
                }
                
                .header .nav-menu li {
                    margin: 0 !important;
                    width: 90% !important;
                    text-align: center !important;
                    list-style: none !important;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
                }
                
                .header .nav-menu li:last-child {
                    border-bottom: none !important;
                }
                
                .header .nav-menu a {
                    display: block !important;
                    color: #ecf0f1 !important;
                    font-size: 1.2rem !important;
                    padding: 1.2rem 1rem !important;
                    transition: all 0.3s ease !important;
                    text-decoration: none !important;
                    position: relative !important;
                    font-weight: 500 !important;
                }
                
                .header .nav-menu a:hover {
                    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
                    color: white !important;
                    transform: translateX(5px) !important;
                    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
                }
                
                .header .nav-menu a.selected,
                .header .nav-menu a:active {
                    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
                    color: white !important;
                    font-weight: 600 !important;
                }
                
                .header .nav-toggle {
                    display: flex !important;
                    z-index: 10000 !important;
                }
                
                .header .nav-toggle.active span:nth-child(1) {
                    transform: rotate(-45deg) translate(-5px, 6px) !important;
                }
                
                .header .nav-toggle.active span:nth-child(2) {
                    opacity: 0 !important;
                }
                
                .header .nav-toggle.active span:nth-child(3) {
                    transform: rotate(45deg) translate(-5px, -6px) !important;
                }
                
                /* Mostrar item QR solo en mobile */
                .mobile-only {
                    display: block !important;
                }
                
                /* QR Modal responsive */
                .qr-modal-content {
                    width: 95%;
                    max-width: 350px;
                }
                
                .qr-image {
                    padding: 15px;
                }
                
                /* Forzar visibilidad del menú activo */
                body .header .navbar .nav-menu.active {
                    left: 0 !important;
                    display: flex !important;
                    visibility: visible !important;
                    opacity: 1 !important;
                }
                
                /* Ocultar menú por defecto en mobile */
                body .header .navbar .nav-menu {
                    display: flex !important;
                    visibility: visible !important;
                }
                
                .header-content {
                    flex-direction: column;
                    gap: 1rem;
                    text-align: center;
                }
                
                .header-left {
                    flex-direction: column;
                    gap: 1rem;
                }
                
                .top-nav .nav-menu {
                    flex-wrap: wrap;
                    justify-content: center;
                }
                
                .top-nav .nav-link {
                    padding: 0.5rem 1rem;
                    font-size: 0.9rem;
                }
                
                .top-nav .nav-link span {
                    display: none;
                }
            }
            
            @media (max-width: 576px) {
                .welcome-section h1 {
                    font-size: 1.2rem;
                }
                
                .user-name {
                    display: none;
                }
            }
            
            /* Footer Responsive Styles */
            @media (max-width: 768px) {
                .footer {
                    padding: 3rem 0 1rem;
                    background-attachment: scroll;
                }
                
                .footer-content {
                    grid-template-columns: 1fr;
                    gap: 2rem;
                    text-align: center;
                }
                
                .footer-section h4 {
                    justify-content: center;
                    font-size: 1.2rem;
                }
                
                .footer-section p,
                .footer-section a {
                    justify-content: center;
                }
                
                .social-links {
                    justify-content: center;
                }
                
                .footer-section:hover {
                    transform: none;
                }
            }
            
            @media (max-width: 480px) {
                .footer {
                    padding: 2rem 0 1rem;
                }
                
                .footer-container {
                    padding: 0 1rem;
                }
                
                .footer-content {
                    gap: 1.5rem;
                }
                
                .footer-section h4 {
                    font-size: 1.1rem;
                    margin-bottom: 1rem;
                }
                
                .social-links {
                    flex-direction: column;
                    align-items: center;
                    gap: 0.75rem;
                }
                
                .social-link {
                    width: 100%;
                    max-width: 200px;
                    justify-content: center;
                    padding: 0.75rem;
                }
                
                .footer-bottom {
                    font-size: 0.85rem;
                    padding-top: 1.5rem;
                }
                
                /* Responsive para header en móvil */
                .logo {
                    height: 28px;
                }
                
                .brand-text {
                    font-size: 1.1rem;
                }
                
                .logo-sbf {
                    height: 28px !important;
                    margin-left: 8px !important;
                }
            }
            
            @media (max-width: 500px) {
                .logo {
                    height: 24px;
                }
                
                .brand-text {
                    font-size: 1rem;
                }
                
                .logo-sbf {
                    height: 24px !important;
                    margin-left: 5px !important;
                }
            }
        