/* Estilos globales */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Estilos del menú de navegación */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: #0056b3;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.375rem 1rem;
    margin: 0 0.2rem;
    border-radius: 50rem;
}

.navbar-nav .nav-link:hover:not(.dropdown-toggle) {
    color: white;
    background-color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.15);
}

.navbar-nav .nav-link.active:not(.dropdown-toggle) {
    color: white;
    background-color: #0056b3;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.15);
}

/* Estilos para el menú desplegable */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #0056b3;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #003d7a;
}

/* Estilos para el contenedor del menú */
.navbar .bg-white {
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.navbar .bg-white:hover {
    box-shadow: 0 0.5rem 2rem rgba(0, 86, 179, 0.15) !important;
}

/* Ajustes para el logo */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    /* transform removed */
}

/* Control de visibilidad de logos */
.logo-light {
    display: inline-block !important;
}

.logo-dark {
    display: inline-block;
}

/* Cuando el fondo es blanco */
.bg-white .logo-light,
.bg-transparent .logo-light {
    display: inline-block !important;
}

.bg-white .logo-dark,
.bg-transparent .logo-dark {
    display: none;
}

/* Cuando el fondo es oscuro */
[style*="background-color: rgba(0, 86, 179"] .logo-light {
    display: none;
}

[style*="background-color: rgba(0, 86, 179"] .logo-dark {
    display: inline-block;
}

/* Estilos para el menú móvil */
.mobile-nav {
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-nav {
        display: block;
    }

    /* Service Page Hero Banner */
    .hero-banner {
        position: relative;
        width: 100%;
        height: 50vh;
        background-size: cover;
        background-position: center;
        margin-top: 76px; /* Adjust for fixed header */
    }

    .hero-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .hero-banner h1 {
        position: relative;
        z-index: 1;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .hero-banner .hero-content {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        z-index: 2;
    }

    .hero-banner .hero-content p {
        position: relative;
        z-index: 2;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    /* Service Cards */
    .service-img {
        height: 200px;
        object-fit: cover;
        border-top-left-radius: 0.375rem;
        border-top-right-radius: 0.375rem;
    }

    @media (max-width: 768px) {
        .hero-banner {
            height: 40vh;
            margin-top: 56px; /* Adjust for smaller mobile header */
        }

        .service-img {
            height: 150px;
        }
    }
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    padding: 8px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #0056b3;
}

.mobile-nav-item.active .mobile-nav-icon {
    background-color: #0056b3;
    border-radius: 50%;
    padding: 4px;
    background-image: none;
    transform: scale(1.2);
}

.mobile-nav-item.active .mobile-nav-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.mobile-nav-item.active .about-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.mobile-nav-item.active .services-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E"); }
.mobile-nav-item.active .clients-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }
.mobile-nav-item.active .blog-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z'/%3E%3C/svg%3E"); }
.mobile-nav-item.active .contact-icon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.3s ease;
}

.mobile-nav-icon:hover {
    transform: scale(1.1);
}

.blog-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z'/%3E%3C/svg%3E"); }
.about-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.services-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E"); }
.clients-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }
.contact-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }

.mobile-nav-item span {
    font-size: 12px;
    margin-top: 2px;
}

/* Ajuste de padding para el contenido principal en móvil */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
        overflow-x: hidden;
    }

    .navbar-collapse {
        display: none !important;
    }

    img {
        max-width: 100%;
        height: auto !important;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Estilos de la sección de clientes */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.client-row {
    position: relative;
    width: 100%;
}

.client-track {
    display: flex;
    width: fit-content;
}

.client-logo {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}



.client-img {
    height: 35px;
    width: 100%;
    object-fit: contain;
    padding: 0 10px;
}

@media (max-width: 991.98px) {
    .client-img {
        height: 25px !important;
    }
        
}

.client-logo .card {
    background-color: #f8f9fa !important;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
}

.client-logo:hover .card {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Estilos del Hero */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 1), rgba(0, 64, 133, 1));
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .btn-light:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .hero img {
        max-height: 50vh;
        margin-top: 2rem;
    }
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
}

.grecaptcha-badge {
    z-index: 99999 !important;
}

/* Estilos para banners del blog */
.category-banner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
}

.category-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.category-banner .card-img-overlay {
    border-radius: 15px;
}

.category-banner h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
}

.category-banner .btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .category-banner {
        height: 250px !important;
    }
    
    .category-banner h2 {
        font-size: 1.8rem;
    }
    
    .category-banner .text-start {
        max-width: 70% !important;
    }
    
    .category-banner .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .category-banner {
        height: 200px !important;
    }
    
    .category-banner h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem !important;
    }
    
    .category-banner .text-start {
        max-width: 80% !important;
    }
}

