/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a5276, #1a6c5a, #1a5276);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Barra de navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 50, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 5%;
    background-color: rgba(0, 70, 100, 0.95);
}

/* Estilos para el contenedor del logo */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%; /* Asegura que tome toda la altura de la navbar */
}

/* Estilos específicos para tu logo personalizado */
.logo img {
    max-height: 70px; /* Altura máxima del logo */
    width: auto; /* Mantiene la proporción */
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* Ajuste para cuando se hace scroll */
.navbar.scrolled .logo img {
    max-height: 60px; /* Logo ligeramente más pequeño al hacer scroll */
}

/* Estilos responsivos para el logo */
@media (max-width: 992px) {
    .logo img {
        max-height: 45px;
    }
    
    .logo-text .main-title {
        font-size: 18px;
    }
    
    .logo-text .sub-title {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-height: 35px;
    }
    
    .logo-text .main-title {
        font-size: 16px;
    }
    
    .logo-text .sub-title {
        font-size: 9px;
    }
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #a8e6cf;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #a8e6cf;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 70%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Secciones de contenido */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 5% 50px;
    text-align: center;
}

section h1, section h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #4d9de0, #a8e6cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    max-width: 900px;
}

section h1::after, section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #4d9de0;
    border-radius: 2px;
}

section p {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
}

/* Sección de Inicio */
#inicio {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('./image/img_coovolta1.webp') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.mission-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4d9de0, #a8e6cf);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(77, 157, 224, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #a8e6cf;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.2);
    color: #4d9de0;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #4d9de0;
}

.card p {
    font-size: 1.1rem;
    color: #e0f7fa;
    background: transparent;
    padding: 0;
}

/* Sección de Permanencia */
#permanencia {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://scontent-bog2-2.xx.fbcdn.net/v/t39.30808-6/496008668_122238924416213403_5398799321983152532_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=833d8c&_nc_eui2=AeFETmuSC787msNjV8wYbHDhAhGRAev8joECEZEB6_yOgdLzDHJt2mEqQ521jTQbPIbkrDnQXGmj5J6UBpBZ565C&_nc_ohc=OP7BvjqXcUIQ7kNvwGZLidj&_nc_oc=AdkVEzkCnJHZYrMsvZxOHwmKUMHtUwIrJf_pW_s8vuOscVhnw-U6-ncNCP9XFtXyeEg&_nc_zt=23&_nc_ht=scontent-bog2-2.xx&_nc_gid=tiXKj-WhHwLNpBZOx6DK1g&oh=00_AfMVo8MmM9wvBGJ4Ss8NMaXOBCu0Sp6Qnbs_Rqr9tMwPBw&oe=68660CCE') center center/cover;
    background-attachment: fixed;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.history, .timeline {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.history h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #a8e6cf;
}

.history p {
    margin-bottom: 30px;
    background: transparent;
    padding: 0;
    text-align: left;
}

.stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.stat span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4d9de0;
    display: block;
    margin-bottom: 10px;
}


.event {
    font-size: 1.1rem;
    color: #e0f7fa;
}

 /* Sección de Galería */
        #galeria {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                        url('https://scontent-bog2-2.xx.fbcdn.net/v/t39.30808-6/496929426_122238924362213403_3758010143201130808_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=833d8c&_nc_eui2=AeEdWRM3jecln70DcYmrEgW2oGeEVA5qfJWgZ4RUDmp8lVdb2eU2txM-DJUVPPkVJuVnvRBAVhicZ_ClJrvEOYUD&_nc_ohc=oYOf2S5CmL8Q7kNvwG_0i1z&_nc_oc=Adkm6xyYmgx-qqypgeMeLyU32nU3jwRxNfni4mywg4wxF4c7XS2CKhD5EEWL2Q9lxmc&_nc_zt=23&_nc_ht=scontent-bog2-2.xx&_nc_gid=iWvduqBWs1rmtdLyPSGm9g&oh=00_AfMUdFYYG0OuxrkfQzeFuZytoe1IikqkJRzx0HUNReBbTA&oe=6865DCCF') center center/cover;
            background-attachment: fixed;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 1200px;
            margin-top: 50px;
        }

        .gallery-item {
            height: 250px;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            background-size: cover;
            background-position: center;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .overlay {
            transform: translateY(0);
        }

        .overlay h3 {
            color: #fff;
            font-size: 1.5rem;
            margin: 0;
        }

        /* Lightbox para imágenes ampliadas */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            overflow: hidden;
        }

        .lightbox-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-image {
            max-width: 90%;
            max-height: 90vh;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 2001;
            transition: all 0.3s ease;
        }

        .lightbox-close:hover {
            color: #4d9de0;
            transform: scale(1.1);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 2001;
        }

        .lightbox-prev, .lightbox-next {
            color: #fff;
            font-size: 60px;
            cursor: pointer;
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .lightbox-prev:hover, .lightbox-next:hover {
            background-color: rgba(77, 157, 224, 0.5);
            transform: scale(1.1);
        }

        .lightbox-prev {
            left: 20px;
        }

        .lightbox-next {
            right: 20px;
        }

        .lightbox-caption {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            font-size: 1.2rem;
            text-align: center;
            max-width: 80%;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 10px 20px;
            border-radius: 5px;
        }

        /* Animación de entrada/salida del lightbox */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes zoomIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .lightbox.show {
            display: block;
            animation: fadeIn 0.3s ease forwards;
        }

        .lightbox.show .lightbox-image {
            animation: zoomIn 0.4s ease forwards;
        }

    

/* Sección Conócenos */
#conocenos {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://scontent.feoh2-1.fna.fbcdn.net/v/t39.30808-6/476858325_122215219604213403_1503159332215217184_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=833d8c&_nc_ohc=htkClWMSjG0Q7kNvwGYjqfZ&_nc_oc=AdkdS2L21t_ijo03XfY3ueTdFcjAyzjBXV4W9JERRlJboZSFjWAPAhboB5s1KIavDm31vaXF-A_GMj5qlWWzd65m&_nc_zt=23&_nc_ht=scontent.feoh2-1.fna&_nc_gid=AuB9DmC6jG_KgSIdth1DtA&oh=00_AfNWtGSPTByfPsN08oK23Jm2dzmoZVDzuUd0AFoNP2lwlg&oe=68660493') center center/cover;
    background-attachment: fixed;
}

.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.team-member {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    background: rgba(77, 157, 224, 0.2);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 3px solid #4d9de0;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #a8e6cf;
}

.team-member p {
    font-size: 1rem;
    color: #e0f7fa;
    background: transparent;
    padding: 0;
}

.partners {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: #a8e6cf;
    transition: all 0.3s ease;
}

.partner-logo i {
    font-size: 2rem;
    color: #4d9de0;
}

.partner-logo:hover {
    background: rgba(77, 157, 224, 0.2);
    transform: translateY(-5px);
}

/* Sección Contáctanos */
#contactanos {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('https://scontent.feoh2-1.fna.fbcdn.net/v/t39.30808-6/476365491_122214209534213403_2624475937724458117_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=833d8c&_nc_ohc=i8DS7eJjJIoQ7kNvwFJllIn&_nc_oc=Adn1ZOzz6yqMGjwuKiQQMuPRduO83G40iA4kKubaNmv8BqB-2qpfwE5OUroA3I6D2GqGca4NXfUoWf74ahCnePZ7&_nc_zt=23&_nc_ht=scontent.feoh2-1.fna&_nc_gid=tRV3wNktQdp84X91Ej0rpA&oh=00_AfP4cdabICkIpkY6cCNn2r1V8vamfvwxI48qqxUT16HBVA&oe=6865E44C') center center/cover;
    background-attachment: fixed;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    text-align: left;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: #4d9de0;
    min-width: 30px;
}

.info-item p {
    font-size: 1.1rem;
    color: #e0f7fa;
    background: transparent;
    padding: 0;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4d9de0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #a8e6cf;
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4d9de0;
}

/* Botones */
.btn {
    display: inline-block;
    background: #4d9de0;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid #4d9de0;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: #4d9de0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: rgba(0, 50, 80, 0.9);
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.footer-logo .logo {
    width: 65px;
    height: 65px;
    font-size: 20px;
}

.footer-logo .main-title {
    font-size: 20px;
}

.footer-logo .sub-title {
    font-size: 12px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 1.3rem;
    color: #a8e6cf;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e0f7fa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #4d9de0;
    padding-left: 5px;
}



.footer-newsletter h4 {
    font-size: 1.3rem;
    color: #a8e6cf;
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 17px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
}

.footer-newsletter button {
    padding: 12px 20px;
    background: #4d9de0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background: #a8e6cf;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #a8e6cf;
}

/* Responsive */
        @media (max-width: 992px) {
            .nav-links {
                position: fixed;
                top: 90px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 90px);
                background: rgba(0, 50, 80, 0.95);
                flex-direction: column;
                align-items: center;
                padding-top: 40px;
                transition: all 0.5s ease;
            }
            
            .nav-links.active {
                left: 0;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .nav-links a {
                font-size: 1.5rem;
            }
            
            .menu-toggle {
                display: flex;
            }
            
            section h1, section h2 {
                font-size: 3rem;
            }

            .lightbox-prev, .lightbox-next {
                font-size: 40px;
                width: 50px;
                height: 50px;
            }
        }

        @media (max-width: 768px) {
            section h1, section h2 {
                font-size: 2.5rem;
            }

            .lightbox-caption {
                font-size: 1rem;
                bottom: 15px;
            }
        }

        @media (max-width: 576px) {
            section h1, section h2 {
                font-size: 2rem;
            }
            
            section p {
                font-size: 1rem;
            }

            .lightbox-prev, .lightbox-next {
                font-size: 30px;
                width: 40px;
                height: 40px;
            }
        }