* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* Header styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #183e91;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #183e91;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.close-menu{
    display: none;
}

/* Hero section */
.hero {
    height: 80vh;
    /* background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('image/pexels-pixabay-256381.jpg'); */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero {
    position: relative;
    /* height: 650px; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}






.btn {
    display: inline-block;
    background-color: #183e91;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0f2a61;
}
/* About Us section */
.about-us {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #183e91;
}

.about-text p {
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    margin-top: 30px;
    text-align: center;
}

.stat-item {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #183e91;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Services section */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #183e91;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #183e91;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #183e91;
}

/* Projects section */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 62, 145, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-title {
    color: white;
    font-size: 22px;
    text-align: center;
    padding: 0 20px;
}

/* Footer */
footer {
    background-color: #183e91;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: white;
    color: #183e91;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive design */
@media (max-width: 992px) {
    .services-grid, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1; /* Move image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .close-menu{
        display: none;
    }
    
    
    nav {
        position: fixed;
        top: 0;
        right:0;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding:80px 20px 20px;

        /*
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s;
        padding: 80px 20px 20px;
        */

    }
    
    nav.active {
        /*right: 0;*/
        transform:translateX(0);
    }

    /* Mostrar el botón de cierre solo cuando el menú esté abierto */
    nav.active .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
    }

    /* Evitar desplazamiento del body cuando el menú está abierto */
    body.menu-open {
        overflow: hidden;
    }




    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

/* Videos section */
.videos {
    padding: 80px 0;
    background-color: #f9f9f9;
    background-image: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
}

.videos-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 100%;
}

.video-upload-area h3,
.videos-gallery h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #183e91;
}

.upload-options {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.upload-option {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.upload-option h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #183e91;
}

.file-input-container {
    margin-bottom: 15px;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.file-label:hover {
    background-color: #e0e0e0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Estilos para videos por URL (más grandes) */
.video-item.url-video {
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.video-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 100%;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.video-info {
    padding: 25px;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #183e91;
}

.video-info p {
    color: #666;
    font-size: 14px;
}

/* Responsive styles for videos section */
@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upload-options {
        flex-direction: column;
    }
    
    /* Hacer que los videos por URL ocupen toda la anchura en tablets */
    .video-item.url-video {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustar el tamaño de los videos en móviles */
    .video-item {
        max-width: 100%;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h4 {
        font-size: 16px;
    }
    
    .video-info p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .services-grid, .projects-grid, .footer-content, .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}
