/* --- SECCIÓN NOSOTROS --- */

.nosotros{
    position: relative;
    background-image: url('/public/assets/img/back_nosotros_3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-100);
}

.nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 53%, rgba(213, 58, 58, 0.75) 100%);
    z-index: 1;
}

.nosotros-wrapper{
    width: 100%;
    margin: 0 auto;
    padding: 2.8rem var(--spacing-md) 2.5rem var(--spacing-md);
    position: relative;
    z-index: 2;

    @media (min-width:768px) {
        padding: 2.8rem 0 2.5rem 0;
        max-width: 690px;
    }

    @media (min-width:1024px) {
        /* border: 1px solid wheat; */
        max-width: 980px;
        padding: 3.8rem 1rem 4.5rem 1rem;
    }

    @media (min-width:1280px) {
        /* border: 1px solid wheat; */
        max-width: 1140px;
    }



}


/* --- ENCABEZADOS --- */

.nosotros-title{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--light-300);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    justify-content: center;

    @media (min-width: 768px) {
        gap: 2rem; font-size: 1.8rem;
    }

    @media (min-width: 1024px) {
        gap: 2.5rem; font-size: 2.15rem;
    }
}

.nosotros__line {
    flex: 1;
    width: 80px;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, white 50%, transparent 100%);
}

@media (min-width: 768px) { .nosotros__line { max-width: 120px; } }
@media (min-width: 1024px) { .nosotros__line { max-width: 150px; } }


/* --- DESCRIPCIÓN --- */

.nosotros__desc{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--light-300);
    font-size: 0.96rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;

    .nosotros__img{
        width: 225px;
        height: 225px;
        border-radius: 50%;
        padding: 3px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        flex-shrink: 0;
        
        & img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 50%;
        }

        @media (min-width: 768px) {
            width: 245px;
            height: 245px;
            margin-bottom: 0.8rem;
        }

        @media (min-width: 1024px) {
            width: 265px;
            height: 265px;
        }

        @media (min-width: 1280px) {
            width: 280px;
            height: 280px;
            margin-bottom: 0.5rem;
        }

    }

    & p{
        margin-top: 1rem;


    }

    .bold-text { font-weight: 600; }

    @media (min-width: 768px) {
        margin: 0 auto;
        max-width: 500px;
    }

    @media (min-width: 1024px) {
        max-width: 840px;
        flex-direction: row;
        gap: 4rem;
        font-size: 1.04rem;
        line-height: 1.7;
        /* border: 1px solid aqua; */
    }

    @media (min-width: 1280px) {
        max-width: 900px;
        font-size: 1.06rem;
        gap: 6rem;
        
    }

}

/* --- GRID DE TARJETAS --- */

.nosotros__mvv {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem 4.5rem;
    max-width: 1200px;
    margin: 0 auto;
    /* border: 1px solid salmon; */

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }

    @media (min-width: 1024px) {
        /* border: 1px solid salmon; */
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 3.2rem;
    }

    @media (min-width: 1280px) {
        /* border: 1px solid salmon; */
         max-width: 1080px;
        gap: 4rem 2.5rem;
    }

    .mvv-card {
        /* capa base y blur */
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 20px;
        padding: 3.8rem 1.4rem 2.1rem 1.4rem;
        transition: all .35s ease;
        position: relative;
        /* margin-top: 3rem; */
        width: 100%;
        background-image:
            linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.12) 55%, transparent 100%),
            linear-gradient(0deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08));
        background-repeat: no-repeat, no-repeat;
        background-size: 200% 100%, 100% 100%;
        background-position: -100% 0, 0 0;
        background-clip: padding-box;
        margin: 0 auto;
        min-height: 330px;
        max-width: 280px;
        border: 0.3px solid var(--blanco);

        @media (min-width: 768px) {
            max-width: 300px;
            min-height: 350px;
        }

    }

    /* Centrar la ultima card en tablet */
    .mvv-card:last-child {
        @media (min-width: 768px) and (max-width: 1023px) {
        grid-column: 1 / -1; /* Ocupa ambas columnas */
        max-width: 280px; /* Mantiene el ancho de la card */
        margin: 0 auto; /* Centra horizontalmente */
        }
    }

}



/* @media (min-width: 768px) { .nosotros__mvv { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nosotros__mvv { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } } */


/* --- TARJETA MVV --- */



/* suaviza el padding en pantallas grandes */
@media (min-width: 768px) {
    .mvv-card { padding: 4.5rem 2rem 2.5rem 2rem; }
}

/* ANIMACIÓN: al hacer hover desplazamos el background (el brillo) de -100% a 100% */
.mvv-card:hover {
    /* efecto hover base */
    background-position: 100% 0, 0 0; /* el primer background (brillo) se mueve hacia la derecha */
    background-color: rgba(255,255,255,0.12); /* sutil ajuste al pasar hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(239,68,68,0.4);
    cursor: pointer;
}

/* --- ICONO DE LA TARJETA --- */

.mvv-card__icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(239,68,68,0.4);
    transition: transform .3s ease;

    /* lo dejamos fuera visualmente pero sin que el brillo se salga */
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(15,23,42,0.9);

    /* z-index alto para que siempre esté encima del brillo */
    z-index: 5;

    i{
        font-size:2rem;
        color: white;
    }

    @media (min-width: 768px) {
        width: 70px;
        height: 70px;
    }

}

@media (min-width: 768px) {
    /* .mvv-card__icon { width: 100px; height: 100px; top: -50px; } */
    
}

@media (min-width: 768px) {
    .mvv-card__icon i { font-size: 1.9rem; }
}

.mvv-card:hover .mvv-card__icon {
    transform: translateX(-50%) scale(1.08) rotate(3deg);
}

/* --- CONTENIDO DE LA TARJETA --- */

.mvv-card__title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    z-index: 3; /* encima del brillo */
}

@media (min-width: 768px) {
    .mvv-card__title { font-size: 1.6rem; }
}

.mvv-card__text {
    color: var(--light-200);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 300;
    text-align: justify;
    margin: 0;
    position: relative;
    z-index: 3;
}

@media (min-width: 768px) {
    .mvv-card__text { font-size: 1rem; }
}

.mvv-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
}

.mvv-card__list li {
    color: var(--light-200);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: .48rem 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    transition: all .3s ease;
}

@media (min-width: 768px) {
    .mvv-card__list li { font-size: 1rem; }
}

.mvv-card__list li i {
    color: var(--blanco);
    font-size: 1rem;
    flex-shrink: 0;
}

.mvv-card__list li:hover {
    color: white;
    transform: translateX(5px);
}
