@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 40px;
    background-color: #001233;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.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%;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none; /* Ocultar por defecto */
    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; /* Añadir cursor de puntero */
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none; /* Ocultar por defecto */
    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;
}
/* 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;
    }
}
/* Mostrar menú hamburguesa en pantallas pequeñas */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostrar menú hamburguesa */
    }

    nav ul {
        display: none; /* Ocultar menú normal */
        flex-direction: column;
        align-items: center;
        position: fixed; /* Fijar el menú al viewport */
        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); /* Ocupar toda la pantalla menos el header */
        overflow-y: auto; /* Permitir desplazamiento vertical */
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }

    .menu-close {
        display: block; /* Mostrar botón de cierre */
    }
}

/* Asegurar que el menú normal se muestre en pantallas grandes */
@media (min-width: 769px) {
    nav ul {
        display: flex; /* Mostrar menú normal */
    }
}
  /* Estilos para el menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none; /* Ocultar por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #001233;
    min-width: 200px; /* Ajusta el ancho según sea necesario */
    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; /* Añadir cursor de puntero */
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .dropdown-content {
        width: 100%; /* Ajusta el ancho para que se adapte a la pantalla */
        left: 0;
        right: 0;
    }
}
/* Hero Video Section */
.hero-video {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 100px;
}

.video-overlay h1 {
    color: #ffffff;
    font-size: 60px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.color-blue {
    color: #1e3a8a;
}

.color-green {
    color: #2e8b57;
}

/* Welcome Section */
.welcome {
    background-color: #001233;
    color: white;
    padding: 60px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome::before,
.welcome::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(46, 139, 87, 0.1);
    animation: float 8s infinite ease-in-out;
}

.welcome::before {
    top: -100px;
    right: -100px;
}

.welcome::after {
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 50px;
    background-color: white;
    text-align: center;
}

.gallery-description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 18px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.project-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    height: 250px;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 18px;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay h3 {
    transform: translateY(0);
}

/* Video items in gallery */
.project-item.video-item {
    position: relative;
}

.project-item.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hover effects for videos */
.project-item.video-item:hover video {
    transform: scale(1.1);
}

/* Recognition Sections */
.recognition {
    background-color: #001233;
    color: white;
    padding: 60px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recognition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 139, 87, 0.2) 0%, rgba(0, 18, 51, 0.8) 70%);
    z-index: -1;
}

.recognition-title {
    margin-bottom: 30px;
    font-size: 28px;
}

.recognition-title span {
    font-family: monospace;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.recognition-item {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.recognition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.recognition-item:hover img {
    transform: scale(1.1);
}

.recognition-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Moving Images */
.move-left {
    animation: moveLeft 8s infinite alternate;
}

.move-right {
    animation: moveRight 8s infinite alternate;
}

@keyframes moveLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-30px); }
}

@keyframes moveRight {
    from { transform: translateX(0); }
    to { transform: translateX(30px); }
}

/* Call to action section */
.cta-section {
    display: flex;
    margin: 80px 0;
    gap: 20px;
}

.cta-image {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.cta-image:hover img {
    transform: scale(1.05);
}

.cta-content {
    flex: 2;
    background: linear-gradient(135deg, #001233, #003366);
    color: white;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(46, 139, 87, 0.3);
    animation: float 8s infinite ease-in-out;
}

.cta-content h2 {
    font-size: 32px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Projects Section */
.projects {
    padding: 60px 80px;
    text-align: center;
}

.projects h2 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 32px;
}

.projects p {
    margin-bottom: 40px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-image, .modal-video {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Community Section */
.community {
    padding: 80px;
    text-align: center;
    background-color: #f9f9f9;
}

.community h2 {
    color: #0066cc;
    font-size: 32px;
    margin-bottom: 20px;
}

.community p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: #001233;
    color: white;
    padding: 70px 80px 30px;
}

.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;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-video {
        height: 450px;
    }
    
    .video-overlay h1 {
        font-size: 50px;
        padding-left: 50px;
    }
    
    .welcome, .main-content, .recognition {
        padding: 50px 60px;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .cta-image, .cta-content {
        flex: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .hero-video {
        height: 350px;
    }
    
    .video-overlay h1 {
        font-size: 36px;
        padding-left: 30px;
    }
    
    .welcome, .main-content, .recognition, .projects, .community {
        padding: 40px 30px;
    }
    
    .main-content {
        padding: 60px 30px;
    }
    
    .gallery-section {
        padding: 40px 20px;
    }
    
    .projects-grid, .recognition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-info, .footer-contact {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-video {
        height: 300px;
    }
    
    .video-overlay h1 {
        font-size: 28px;
        padding-left: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
}
.carreras-section {
    padding: 40px 0;
    background: #f5f7fa;
    overflow: hidden;
    position: relative;
}

.carreras-container {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: desplazamiento 40s linear infinite;
    will-change: transform; /* Optimización para animación */
}

.carrera-card {
    width: 200px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    position: relative;
    flex-shrink: 0;
    background: white;
    transition: transform 0.2s ease-out;
}

.carrera-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carrera-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
}

/* Efecto hover suave */
.carrera-card:hover {
    transform: scale(1.03);
}

.carrera-card:hover img {
    transform: scale(1.05);
}

/* Animación infinita fluida */
@keyframes desplazamiento {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6 - 25px * 5)); }
}

/* Pausa al hacer hover (opcional) */
.carreras-container:hover {
    animation-play-state: paused;
}