body {
    font-family: 'Roboto', sans-serif;
    color: #2E2E2E;
    background-color: #F5F7FA;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: #1F3D6D;
}

/* Top Bar Styling */
.top-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .contact-info, .top-bar .social-links {
    display: flex;
    align-items: center;
}

.top-bar .contact-info span {
    display: inline-block;
}

.top-bar .contact-info i, .top-bar .social-links i {
    margin-right: 8px;
    color: #D67D2D;
}

.top-bar .social-links a {
    color: white;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.top-bar .social-links a:hover {
    color: #ffd700;
}

/* Main Navbar */
.navbar {
    background: rgba(30, 60, 114, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 60, 114, 0.98) !important;
    padding: 10px 0;
}

.navbar-brand {
    background-color: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-link {
    color: #A5A5A5 !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffd700 !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffd700;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231F3D6D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border-color: #1F3D6D;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2326497A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Carousel */
#heroCarousel {
    height: 100vh;
    width: 100%;
}

.carousel {
    position: relative;
    width: 100%;
}

#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 400px;
    background: no-repeat center center scroll;
    background-size: cover;
    position: relative;
    transition: transform 0.4s ease;
    filter: sepia(50%);
}

#heroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#heroCarousel .carousel-item.active {
    transform: scale(1.05);
}

.carousel-caption {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 61, 109, 0.75);
    width: 100%;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-caption h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: #D67D2D;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.8rem;
    color: #A5A5A5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(30, 60, 114, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
    cursor: pointer;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(30, 60, 114, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72, #1e3c72) !important;
    border: none !important;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 30px;
    color: #fffcfc !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
    background: linear-gradient(135deg, #1e3c72, #1e3c72) !important;
    border: none !important;
    color: #fffcfc !important;
}

.contact-btn {
    background: linear-gradient(135deg, #1e3c72, #1e3c72) !important;
    border: none !important;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 30px;
    color: #fffcfc !important;
}

.contact-btn:hover,
.contact-btn:focus,
.contact-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
    background: linear-gradient(135deg, #1e3c72, #1e3c72) !important;
    border: none !important;
    color: #fffcfc !important;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* About Us Section */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

#sobre-nosotros {
    margin-top: 50px;
}

#sobre-nosotros img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-tabs .nav-tabs {
    border-bottom: 2px solid #1e3c72;
    margin-bottom: 20px;
}

.about-tabs .nav-link {
    color: #2E2E2E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 10px 10px 0 0;
    background-color: #E6ECF0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-tabs .nav-link:hover {
    background-color: #D67D2D;
    color: #FFFFFF;
}

.about-tabs .nav-link.active {
    background-color: #1e3c72;
    color: #A5A5A5;
}

.about-tabs .tab-content {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.about-tabs .tab-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-tabs .tab-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #2E2E2E;
}

.about-tabs .tab-content ul li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2E2E2E;
}

.about-tabs .tab-content ul li i {
    color: #1e3c72;
}

/* Programa de Integridad Section */
#programa-integridad {
    margin-top: 50px;
}

#programa-integridad .card {
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

#programa-integridad h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

#programa-integridad p {
    font-size: 1.2rem;
    color: #2E2E2E;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}

.pdf-viewer iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 600px;
    border: none;
}

/* Proyectos Section */
#proyectos {
    margin-top: 50px;
}

.project-list {
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.year-header {
    font-size: 1.8rem;
    color: #A5A5A5;
    background-color: #1e3c72;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.project-list ul li {
    font-size: 1.1rem;
    color: #2E2E2E;
    margin-bottom: 10px;
}

.project-list ul li i {
    color: #1e3c72;
}

/* Galería Section */
#galeria {
    margin-top: 50px;
}

#galleryCarousel .carousel-item img {
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#galleryCarousel .carousel-caption {
    background: rgba(30, 60, 114, 0.8);
    border-radius: 10px;
    padding: 15px;
    bottom: 20px;
}

#galleryCarousel .carousel-caption h5 {
    font-size: 1.5rem;
    color: #A5A5A5;
}

#galleryCarousel .carousel-caption p {
    font-size: 1rem;
    color: #FFFFFF;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(30, 60, 114, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
    cursor: pointer;
}

#galleryCarousel .carousel-control-prev {
    left: 10px;
}

#galleryCarousel .carousel-control-next {
    right: 10px;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(30, 60, 114, 1);
    transform: translateY(-50%) scale(1.1);
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#galleryCarousel .carousel-indicators {
    bottom: -50px;
}

/* Clients Section */
#nuestros-clientes {
    background: #F5F7FA;
    padding: 80px 0;
}

.clients-title {
    text-align: center;
    margin-bottom: 60px;
}

.clients-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.clients-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.clients-title p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.clients-carousel .carousel-inner {
    padding: 20px 0;
}

.clients-carousel .carousel-item {
    transition: transform 0.4s ease;
}

.client-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 15px;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.client-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: scale(1.1);
}

.client-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 10px;
}

.client-type {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.clients-carousel .carousel-control-prev,
.clients-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(30, 60, 114, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
    cursor: pointer;
}

.clients-carousel .carousel-control-prev {
    left: 10px;
}

.clients-carousel .carousel-control-next {
    right: 10px;
}

.clients-carousel .carousel-control-prev:hover,
.clients-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(30, 60, 114, 1);
    transform: translateY(-50%) scale(1.1);
}

.clients-carousel .carousel-control-prev-icon,
.clients-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.clients-carousel .carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1e3c72;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #1e3c72;
    transform: scale(1.2);
}

/* Contact Section */
#contacto {
    background: linear-gradient(45deg, #1F3D6D, #D67D2D);
    padding: 80px 0;
    margin-top: 50px;
}

.contact-section h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.contact-card h4 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.contact-card p, .contact-card ul li {
    font-size: 1.1rem;
    color: #2E2E2E;
}

.contact-card ul li i {
    color: #1e3c72;
}

.envelope-icon {
    font-size: 2rem;
    color: #D67D2D;
    animation: pulse 2s infinite;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 300px;
    border: 0;
}

/* Footer */
footer {
    background-color: #1F3D6D;
    color: #A5A5A5;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1F3D6D, #26497A);
    opacity: 0.5;
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer p {
    margin-bottom: 20px;
    font-size: 1rem;
}

footer a {
    color: #D67D2D;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #B34100;
}

footer a i {
    font-size: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-bar .contact-info, .top-bar .social-links {
        justify-content: center;
        margin-bottom: 10px;
    }

    .top-bar .contact-info span.ms-4 {
        margin-left: 0 !important;
        display: block;
        margin-top: 5px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .carousel-item {
        height: 60vh;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    .logo-img {
        max-height: 40px;
    }

    .clients-title h2 {
        font-size: 2rem;
    }

    .client-card {
        margin: 0 10px;
        padding: 20px 15px;
    }

    .client-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .clients-carousel .carousel-control-prev,
    .clients-carousel .carousel-control-next {
        display: none;
    }

    .about-tabs .nav-tabs {
        flex-wrap: wrap;
    }

    .about-tabs .nav-link {
        font-size: 0.9rem;
        padding: 8px 15px;
        margin-bottom: 10px;
    }

    .about-tabs .tab-content {
        min-height: 150px;
    }

    .about-tabs .tab-content h4 {
        font-size: 1.3rem;
    }

    .about-tabs .tab-content p, .about-tabs .tab-content ul li {
        font-size: 0.9rem;
    }

    #sobre-nosotros, #programa-integridad, #proyectos, #galeria, #contacto {
        margin-top: 30px;
    }

    #programa-integridad h2, .contact-section h2, #proyectos h2, #galeria h2 {
        font-size: 2rem;
    }

    #programa-integridad p, .contact-card p, .contact-card ul li, .project-list ul li {
        font-size: 1rem;
    }

    .pdf-viewer iframe {
        height: 400px;
    }

    .contact-card {
        min-height: 250px;
        padding: 20px;
    }

    .contact-card h4 {
        font-size: 1.5rem;
    }

    .envelope-icon {
        font-size: 1.8rem;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .contact-btn i {
        font-size: 1.2rem;
    }

    .map-container iframe {
        height: 250px;
    }

    .project-list {
        padding: 20px;
    }

    .year-header {
        font-size: 1.5rem;
    }

    #galleryCarousel .carousel-item img {
        max-height: 400px;
    }

    #galleryCarousel .carousel-caption h5 {
        font-size: 1.3rem;
    }

    #galleryCarousel .carousel-caption p {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    footer a {
        margin: 0 10px;
    }

    footer a i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .client-card {
        margin: 0 5px;
        padding: 15px;
    }

    .client-logo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .about-tabs .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    #programa-integridad .card {
        padding: 20px;
    }

    .pdf-viewer iframe {
        height: 300px;
    }

    .contact-card {
        padding: 15px;
    }

    .map-container iframe {
        height: 200px;
    }

    .project-list {
        padding: 15px;
    }

    #galleryCarousel .carousel-item img {
        max-height: 300px;
    }
}

 .modal-img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }

        .modal-img, .gallery-img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }