/* Contact Card Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-card-animate {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.contact-card-animate.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Sobre Nosotros Section with Background */
#nosotros {
    position: relative;
    background: url('../../img/imgi_30_main-slider-one.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
    padding: 40px 0;
    width: 100%;
}

#nosotros .container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 95%;
}

/* Responsive adjustments */
@media (min-width: 576px) {
    #nosotros .container {
        padding: 30px;
        max-width: 90%;
    }
}

@media (min-width: 768px) {
    #nosotros {
        padding: 60px 0;
    }
    #nosotros .container {
        padding: 40px;
        max-width: 90%;
    }
}

@media (min-width: 992px) {
    #nosotros {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 80px 0;
    }
    #nosotros .container {
        max-width: 1140px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    #nosotros {
        background-attachment: scroll;
    }
    #nosotros .container {
        padding: 20px 15px;
        margin: 10px auto;
    }
    #nosotros .row > [class*='col-'] {
        padding: 10px 15px;
    }
}


/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Image */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Brand Carousel Images */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    height: 120px;
}

.brand-item img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Content Images */
.content-image {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero {
        min-height: 500px;
    }
    
    .brand-item {
        height: 100px;
    }
    
    .brand-item img {
        max-height: 50px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
}

/* WebP Fallback */
.no-webp .hero-bg {
    background: url('../img/hero-fallback.jpg') no-repeat center center;
    background-size: cover;
}

.no-js img[data-src] {
    display: none;
}
