 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

 /* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
            color: #fff;
            background-color: #021842;
           
        }

        /* Partículas */
        #particles-js {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
        }

        /* Header */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1px 40px;
            background-color: rgb(0, 18, 51);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(5px);
        }

        .logo {
            height: 60px;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            margin-left: 30px;
        }

        nav ul li a {
            text-decoration: none;
            color: #ffffff;
            font-weight: 500;
            font-size: 15px;
            text-transform: uppercase;
            position: relative;
            padding-bottom: 5px;
            transition: color 0.3s ease;
        }

        nav ul li a:hover {
            color: #ffb800;
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: #ffbc00;
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
        }

        /* Menú desplegable */
        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #001233;
            min-width: 200px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
            z-index: 1;
            border-top: 3px solid #ffb800;
        }

        .dropdown-content li {
            margin: 0;
            padding: 0;
        }

        .dropdown-content li a {
            display: block;
            padding: 10px 15px;
            color: white;
            text-decoration: none;
            font-size: 14px;
            text-transform: none;
            transition: background-color 0.3s ease;
        }

        .dropdown-content li a:hover {
            background-color: #ffb800;
            color: #001233;
        }

        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }

        .dropdown-arrow {
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        /* Menú hamburguesa */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            height: 20px;
            width: 25px;
            cursor: pointer;
            margin-left: auto;
        }

        .menu-toggle .bar {
            background-color: white;
            height: 3px;
            width: 100%;
            transition: transform 0.3s ease;
        }

        .menu-close {
            display: none;
            cursor: pointer;
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            color: white;
        }
/* Estilos para el mega menú */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    width: 300px; /* Ancho ajustable */
    background-color: #001233;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.mega-menu > li {
    margin-bottom: 10px;
}

/* Estilos para el submenú de carreras */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 250px;
    background-color: #001233;
    border-left: 3px solid #ffb800;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.sub-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flecha para submenú */
.sub-dropdown .dropdown-arrow {
    font-size: 10px;
    margin-left: 10px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.sub-dropdown:hover .dropdown-arrow {
    transform: rotate(90deg);
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .mega-menu {
        width: 100%;
        position: static;
    }
    
    .sub-dropdown-content {
        position: static;
        width: 100%;
        border-left: none;
        border-top: 3px solid #ffb800;
        padding-left: 20px;
    }
}
        @media (max-width: 768px) {
            .menu-toggle {
                display: flex;
            }

            nav ul {
                display: none;
                flex-direction: column;
                align-items: center;
                position: fixed;
                top: 60px;
                left: 0;
                width: 100%;
                background-color: #001233;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                z-index: 100;
                height: calc(100vh - 60px);
                overflow-y: auto;
            }

            nav ul li {
                margin: 10px 0;
            }

            nav ul li a {
                font-size: 18px;
            }

            .menu-close {
                display: block;
            }

            .dropdown-content {
                width: 100%;
                left: 0;
                right: 0;
            }
        }

        @media (min-width: 769px) {
            nav ul {
                display: flex;
            }
        }

        /* Secciones de galería */
        .gallery-section {
            position: relative;
            padding: 80px 20px;
            text-align: center;
            overflow: hidden;
        }

        .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
            color: #ffb800;
            text-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            width: 50%;
            height: 3px;
            background: #0066cc;
            bottom: -10px;
            left: 25%;
        }

        .section-header p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 40px;
            color: rgba(255, 255, 255, 0.9);
        }

        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .gallery-item {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 250px;
            cursor: zoom-in;
            background-color: transparent;
        }

        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
            background-color: transparent;
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
            display: flex;
            align-items: flex-end;
            padding: 20px;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .overlay-content {
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .overlay-content {
            transform: translateY(0);
        }

        .overlay h3 {
            font-size: 1.3rem;
            margin-bottom: 5px;
            color: #ffb800;
        }

        .overlay p {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.9);
        }

        /* Videos en la galería */
        .gallery-item.video-item {
            position: relative;
        }

        .gallery-item.video-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            background-color: transparent;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-image {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
            transform: scale(1);
            transform-origin: center center;
            transition: transform 0.3s ease;
            cursor: grab;
            display: none;
            background-color: transparent;
        }

        .modal-image.zoomed {
            cursor: grab;
        }

        .modal-image.zoomed:active {
            cursor: grabbing;
        }

        .modal-video {
            max-width: 90%;
            max-height: 90vh;
            outline: none;
            display: none;
        }

        .modal-video-active .zoom-controls {
            display: none !important;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            cursor: pointer;
            z-index: 1001;
            transition: transform 0.3s ease;
        }

        .close-modal:hover {
            transform: rotate(90deg);
        }

        .zoom-controls {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 1001;
            background: rgba(0, 18, 51, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 184, 0, 0.3);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            padding: 10px 20px;
            border-radius: 50px;
        }

        .zoom-btn {
            background: rgba(255, 184, 0, 0.9);
            color: #001233;
            border: 1px solid rgba(0, 0, 0, 0.2);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .zoom-btn:hover {
            background: #ffb800;
            transform: scale(1.15);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        #zoom-reset {
            width: auto;
            padding: 0 15px;
            border-radius: 25px;
            font-size: 16px;
        }

        .nav-btn {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 18, 51, 0.9);
            color: #ffb800;
            border: 2px solid #ffb800;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            transition: all 0.3s ease;
        }

        .nav-btn:hover {
            background: #001233;
            color: #ffd700;
            border-color: #ffd700;
            transform: translateY(-50%) scale(1.1);
        }

        .prev-btn {
            left: 30px;
        }

        .next-btn {
            right: 30px;
        }

        /* Footer */
        footer {
            background-color: rgba(0, 18, 51, 0.9);
            color: white;
            padding: 70px 80px 30px;
            backdrop-filter: blur(5px);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            margin-bottom: 50px;
        }

        .footer-logo {
            flex: 1;
        }

        .footer-logo img {
            height: 200px;
            margin-bottom: 20px;
            transition: transform 0.3s ease;
        }

        .footer-logo img:hover {
            transform: scale(1.05);
        }

        .footer-info, .footer-contact {
            flex: 1;
            padding-left: 30px;
        }

        .footer-contact p {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-contact a {
            color: #4caf50;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-contact a:hover {
            color: white;
            text-decoration: underline;
        }

        .footer-bottom {
            margin-top: 50px;
            display: flex;
            justify-content: space-between;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .footer-bottom p {
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Estilos para el sistema de subida */
        .upload-btn {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 25px;
            background-color: #ffb800;
            color: #001233;
            border: none;
            border-radius: 50px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 16px;
            box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
        }
        
        .upload-btn:hover {
            background-color: #ffcc00;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
        }
        
        .upload-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        
        .upload-content {
            background-color: #001233;
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border: 2px solid #ffb800;
        }
        
        .upload-content h3 {
            color: #ffb800;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .upload-form-group {
            margin-bottom: 20px;
        }
        
        .upload-form-group label {
            display: block;
            color: white;
            margin-bottom: 8px;
        }
        
        .upload-form-group input, 
        .upload-form-group textarea,
        .upload-form-group select {
            width: 100%;
            padding: 12px;
            border-radius: 5px;
            border: 1px solid #555;
            background-color: #f0f0f0;
        }
        
        .upload-form-group textarea {
            height: 100px;
            resize: vertical;
        }
        
        .upload-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        
        .upload-btn-submit, 
        .upload-btn-cancel {
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .upload-btn-submit {
            background-color: #ffb800;
            color: #001233;
        }
        
        .upload-btn-submit:hover {
            background-color: #ffcc00;
        }
        
        .upload-btn-cancel {
            background-color: #555;
            color: white;
        }
        
        .upload-btn-cancel:hover {
            background-color: #777;
        }
        
        .password-section {
            display: none;
        }
        
        
        .gallery-item:hover .delete-btn {
            opacity: 1;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .gallery-section {
                padding: 50px 40px;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 15px;
            }

            .gallery-section {
                padding: 40px 20px;
            }

            .gallery-container {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 15px;
            }

            .gallery-item {
                height: 200px;
            }

            .zoom-controls {
                bottom: 15px;
            }

            .zoom-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .nav-btn {
                width: 45px;
                height: 45px;
                font-size: 20px;
            }

            .footer-content {
                flex-direction: column;
                gap: 30px;
            }

            .footer-info, .footer-contact {
                padding-left: 0;
            }
        }

        @media (max-width: 480px) {
            .zoom-controls {
                gap: 10px;
                padding: 8px 15px;
            }

            #zoom-reset {
                padding: 0 10px;
                font-size: 14px;
            }

            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .prev-btn {
                left: 15px;
            }

            .next-btn {
                right: 15px;
            }
        }