/* ==========================================================
   Nosotros
   ========================================================== */

.nosotros {
    /* Profundidad de la curva blanca en el centro de la sección */
    --nosotros-curve-depth: clamp(40px, 9vw, 170px);

    position: relative;
    padding-block: 3rem 5.5rem;
    overflow: hidden;
    background-color: var(--color-background);
}

/* Curva blanca que sube desde abajo (un tercio de círculo) */
.nosotros::before {
    content: "";
    position: absolute;
    top: calc(100% - var(--nosotros-curve-depth));
    left: -25%;
    z-index: 0;
    width: 150%;
    height: calc(var(--nosotros-curve-depth) * 6.3);
    border-radius: 50%;
    background-color: var(--color-white);
    pointer-events: none;
}

/* El contenido queda por encima de la curva */
.nosotros > .container {
    position: relative;
    z-index: 1;
}

/* Imagen */
.nosotros__media {
    overflow: hidden;
    isolation: isolate;          /* recorta bien el zoom con el borde redondeado en Safari */
    border-radius: var(--radius-md);
    aspect-ratio: 620 / 508;
}

.nosotros__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    transition: transform 0.6s ease;
}

/* Zoom sutil al pasar el mouse (solo en dispositivos con mouse) */
@media (hover: hover) {
    .nosotros__media:hover .nosotros__img {
        transform: scale(1.05);
    }
}

/* Texto */
.nosotros__title {
    margin-bottom: 1.75rem;
    color: var(--color-dark-text);
}

.nosotros__text {
    margin-bottom: 1.5rem;
    color: var(--color-dark-text);
}

.nosotros__text:last-child {
    margin-bottom: 0;
}

.nosotros__text strong {
    font-weight: 700;
}

/* ==========================================================
   Tablet y mobile: imagen arriba, texto abajo
   ========================================================== */
@media (max-width: 991.98px) {

    .nosotros {
        padding-block: 3rem 4.5rem;
    }

    .nosotros__media {
        aspect-ratio: 16 / 10;
    }

    .nosotros__title {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 575.98px) {

    .nosotros {
        padding-block: 2.5rem 3.5rem;
    }

    .nosotros__media {
        aspect-ratio: 4 / 3;
    }

    .nosotros__text {
        margin-bottom: 1.25rem;
        font-size: 1rem;          /* 16px */
        line-height: 1.375rem;    /* 22px */
    }
}

@media (prefers-reduced-motion: reduce) {
    .nosotros__img {
        transition: none;
    }
}
