.navbar-light .navbar-nav .nav-link {
    color:#1e2022
}

/* Featured case hero card */
.featured-case {
    border-left: 4px solid #377dff;
}

.grecaptcha-badge {
    visibility: hidden;
}

.navbar-brand-logo {
    width: 100%;
    min-width: 8.5rem;
    max-width: 8.5rem;
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.125rem;
        align-items: center;
    }
    .navbar-nav .nav-item .nav-link {
        padding: 0.5rem 0.65rem;
    }
    .navbar-nav .nav-item .btn {
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .navbar-brand-logo {
        min-width: 7.5rem;
        max-width: 7.5rem;
    }
    .navbar-nav .nav-item .nav-link {
        padding: 0.5rem 0.45rem;
        font-size: 0.8125rem;
    }
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: transform 0.3s;
}

.float:hover {
    animation: pulse 1s infinite; /* Pulse effect on hover */
}

.float:hover svg {
    fill: #FFFFFF;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.my-float{
    margin-top:16px;
}

/* Carousel Customization */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 1; /* Make arrows fully visible */
}

.carousel-control-prev {
    left: -5%; /* Move arrow outside to the left */
}

.carousel-control-next {
    right: -5%; /* Move arrow outside to the right */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%; /* Circular background */
    padding: 1.5rem; /* Increase clickable area */
    background-size: 50%; /* Adjust icon size within the circle */
}

/* Ensure carousel content doesn't overflow when arrows are outside */
#clientsCarousel {
    padding: 0 2rem; /* Add padding to container to accommodate arrows */
    overflow: visible; /* Allow arrows to be seen outside */
}

/* Client Logo Customization - Engineering Boutique Style */
.client-logo-container {
    height: 130px; /* Increased height for larger logos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    /* Ensure the container background is transparent or white to avoid filter issues */
    background-color: transparent;
}

/* Estilo para los logos en el carrusel */
.client-logo-container img {
    /* Estado Inicial: Slate Gray Técnico */
    /* Use mix-blend-mode to help with white backgrounds if possible,
       but primarily rely on brightness/contrast to avoid graying the white bg */
    filter: grayscale(100%) opacity(0.9);
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    max-height: 90px; /* Increased size */
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensure the image itself doesn't have a background that gets tinted */
    background-color: transparent;
}

/* Efecto al pasar el Mouse: ¡POP! */
.client-logo-container:hover img {
    filter: grayscale(0%) opacity(1); /* Recupera color original */
    opacity: 1;
    transform: scale(1.15) translateY(-5px); /* Crece y sube sutilmente */
}

/* Caption Styling - Small Caps & Slate Gray */
.client-caption {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #455a64;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    opacity: 0.8;
    border-top: 1px solid rgba(69, 90, 100, 0.2); /* Subtle separator */
    padding-top: 1rem;
    display: inline-block;
}

/* Custom 5-column grid for large screens */
@media (min-width: 992px) {
    .col-lg-custom-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Case studies filter: soft active state instead of solid primary */
#industryFilter .list-group-item.active {
    background-color: rgba(55, 125, 255, 0.08);
    border-color: rgba(55, 125, 255, 0.15);
    color: #377dff;
    font-weight: 600;
}
#industryFilter .list-group-item:not(.active):hover {
    background-color: rgba(55, 125, 255, 0.04);
    color: #377dff;
}

/* Nosotros dropdown: open on hover on desktop (matches HS Mega Menu behavior) */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Contact page: office location cards */
.location-card {
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}
.location-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Navy CTA button */
.btn-navy {
    color: #fff;
    background-color: #0E1B2C;
    border-color: #0E1B2C;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-navy:hover,
.btn-navy:focus {
    color: #fff;
    background-color: #1a2d45;
    border-color: #1a2d45;
}
.btn-navy:active {
    color: #fff;
    background-color: #0b1623;
    border-color: #0b1623;
}

/* btn-outline-white: keep transparent bg on hover so white content stays visible */
.btn-outline-white {
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: #fff;
    transition: transform 0.2s ease-in-out;
}
.btn-outline-white:hover,
.btn-outline-white:focus {
    transform: translateY(-2px);
}
