/* NOSOTROS.CSS -- Sith */

/* Hero Nosotros */
.hero-nosotros {
    height: clamp(300px, 40vh, 500px);
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)),
                url('../img/optimized/nosotros/hero-nosotros.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: white;
    max-width: min(800px, 90%);
    margin: 1rem auto;
    animation: fadeInUp 1s ease-out 0.3s;
    line-height: 1.4;
}

/* Solución para imágenes responsivas */
.row.align-items-center {
    align-items: flex-start !important;
}

/* Imágenes secciones - Optimizado */
.img-nosotros-container {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.img-nosotros {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(10%);
}

.img-nosotros:hover {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Tarjetas Misión/Visión - Responsive */
.card-hover {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    height: 100%;
    margin-bottom: 1.5rem;
}

.card-img-top {
    position: relative;
    height: clamp(200px, 30vw, 300px);
    overflow: hidden;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-body {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: white;
}

.card-body h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
    color: #333;
}

.card-body p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

/* Efectos hover */
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-hover:hover .card-img-top img {
    transform: scale(1.1);
}

/* Marcas - Responsive mejorado */
.marca-item {
    padding: clamp(1rem, 3vw, 1.25rem);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: clamp(100px, 20vw, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.marca-item img {
    max-width: 90%;
    max-height: 70%;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.marca-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Slider de clientes - Optimizado */
.clientes-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 1.875rem);
    padding: 1.25rem 0;
}

.cliente-logo {
    width: clamp(120px, 20vw, 180px);
    height: clamp(80px, 15vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 0.9375rem);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cliente-logo img {
    max-width: 90%;
    max-height: 70%;
    width: auto;
    height: auto;
    filter: grayscale(100%) contrast(0.5);
    opacity: 0.8;
    transition: all 0.4s ease;
}

/* Efectos hover clientes */
.cliente-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.cliente-logo:hover img {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.1);
}

/* Responsividad específica */
@media (max-width: 992px) {
    .hero-nosotros {
        height: 35vh;
    }

    .img-nosotros {
        min-height: 250px;
    }

    .card-img-top {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-nosotros {
        height: 30vh;
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .img-nosotros-container {
        margin-bottom: 1.5rem;
    }

    .img-nosotros {
        min-height: 200px;
    }

    .card-img-top {
        height: 180px;
    }

    .marca-item {
        height: 100px;
        padding: 0.75rem;
    }

    .cliente-logo {
        width: 140px;
        height: 85px;
    }
}

@media (max-width: 576px) {
    .hero-nosotros {
        height: 25vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .row.align-items-center {
        align-items: center !important;
    }

    .img-nosotros {
        min-height: 180px;
    }

    .card-hover {
        margin-bottom: 1rem;
    }

    .card-img-top {
        height: 160px;
    }

    .marca-item {
        height: 90px;
    }

    .marca-item img {
        max-height: 50px;
    }

    .cliente-logo {
        width: 120px;
        height: 75px;
        padding: 0.5rem;
    }

    .clientes-slider {
        gap: 0.75rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .card-hover,
    .img-nosotros,
    .marca-item,
    .cliente-logo {
        transition: none !important;
    }

    .card-hover:hover {
        transform: none !important;
    }
}

/* Solución para imágenes que no se ajustan */
.img-fix-responsive {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}
