/* Cierre: mismo ancho y márgenes laterales que el banner Max Level de Inicio. */
.nosotros-cta {
    padding: 0 2rem clamp(2rem, 4vw, 4rem);
    background: #fafbf9;
    font-family: 'Inter', sans-serif;
}

.nosotros-cta,
.nosotros-cta * {
    box-sizing: border-box;
}

.nosotros-cta-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(2rem, 3vw, 3rem) clamp(1.25rem, 9vw, 8rem);
    border-radius: 1.5rem;
    background: #eef3ef;
    text-align: center;
}

.nosotros-cta-inner::before,
.nosotros-cta-inner::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: clamp(8rem, 18vw, 17rem);
    aspect-ratio: 1.3;
    border-radius: 50%;
    background: #dcefe7;
}

.nosotros-cta-inner::before {
    top: -45%;
    right: -5%;
    transform: rotate(30deg);
}

.nosotros-cta-inner::after {
    bottom: -50%;
    left: -6%;
    transform: rotate(30deg);
}

.nosotros-cta-content {
    position: relative;
    container-type: inline-size;
}

.nosotros-cta .nosotros-cta-title {
    /* Ajusta el título al bloque disponible para conservar una línea en escritorio. */
    margin-bottom: 1rem;
    font-size: calc(min(clamp(1.4rem, 3vw, 2.7rem), 5.1cqi) - 2px);
    white-space: nowrap;
}

.nosotros-cta .nosotros-cta-description {
    max-width: 55rem;
    margin-inline: auto;
    font-size: calc(1rem - 2px);
}

.nosotros-cta-button {
    margin-top: 1.5rem;
    border-radius: 999px;
}

.nosotros-cta-paws {
    position: absolute;
    width: clamp(4rem, 8vw, 7rem);
    height: auto;
    color: #76c2af;
    opacity: 0.8;
    pointer-events: none;
}

.nosotros-cta-paws--left {
    top: 1.5rem;
    left: 1.5rem;
}

.nosotros-cta-paws--right {
    right: 1.5rem;
    bottom: 1.25rem;
}

@media (max-width: 767.98px) {
    .nosotros-cta-inner {
        padding: 3.75rem 1.25rem;
    }

    /* Mantiene visibles las curvas aunque el bloque crezca en altura. */
    .nosotros-cta-inner::before,
    .nosotros-cta-inner::after {
        width: 10rem;
    }

    .nosotros-cta-inner::before {
        top: -4rem;
        right: -3rem;
    }

    .nosotros-cta-inner::after {
        bottom: -4rem;
        left: -3rem;
    }

    .nosotros-cta .nosotros-cta-title {
        font-size: calc(clamp(1.4rem, 5vw, 2rem) - 2px);
        white-space: normal;
        overflow-wrap: normal;
    }

    .nosotros-cta-paws {
        width: 3.25rem;
    }

    .nosotros-cta-paws--left {
        top: 0.5rem;
        left: 0.75rem;
    }

    .nosotros-cta-paws--right {
        right: 0.75rem;
        bottom: 0.5rem;
    }
}

@media (max-width: 680px) {
    .nosotros-cta {
        padding-inline: 1.25rem;
    }
}

/* Historia, Carlota y Enfoque. Tipografía y animación compartidas en style.css. */
.nosotros-historia,
.nosotros-carlota,
.nosotros-enfoque {
    padding-block: calc(clamp(1.25rem, 2vw, 2rem) + 6px) clamp(3rem, 6vw, 6rem);
    /* Espacio idéntico en ambos bordes, adaptable al ancho de pantalla. */
    padding-inline: clamp(1.25rem, 6vw, 5rem);
    background: #fafbf9;
    font-family: 'Inter', sans-serif;
}

.nosotros-historia,
.nosotros-historia *,
.nosotros-carlota,
.nosotros-carlota *,
.nosotros-enfoque,
.nosotros-enfoque * {
    box-sizing: border-box;
}

.nosotros-historia-inner,
.nosotros-carlota-inner,
.nosotros-enfoque-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 75rem;
    margin-inline: auto;
}

.nosotros-historia-content,
.nosotros-carlota-content,
.nosotros-enfoque-content {
    min-width: 0;
    text-align: left;
}

.nosotros-carlota-content {
    text-align: right;
}

.nosotros-historia .nosotros-historia-eyebrow,
.nosotros-carlota .nosotros-carlota-eyebrow,
.nosotros-enfoque .nosotros-enfoque-eyebrow {
    /* Centra la línea bajo el ancho de cada etiqueta. */
    width: fit-content;
    margin-bottom: clamp(2rem, 3vw, 3rem);
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.nosotros-carlota .nosotros-carlota-eyebrow {
    margin-left: auto;
}

.nosotros-historia .nosotros-historia-subtitle,
.nosotros-carlota .nosotros-carlota-subtitle {
    margin: 0 0 1.5rem;
    color: #333333;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;
}

.nosotros-historia .nosotros-historia-description + .nosotros-historia-description,
.nosotros-carlota .nosotros-carlota-description + .nosotros-carlota-description {
    margin-top: 1rem;
}

/* Espacio reservado para las imágenes y sus fondos decorativos. */
.nosotros-historia-media,
.nosotros-carlota-media {
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
    background: #dcefe7;
}

.nosotros-historia-media,
.nosotros-carlota-media {
    /* Mantiene el espacio de la imagen y separa su fondo decorativo. */
    position: relative;
    isolation: isolate;
    border-radius: 0;
    background: transparent;
}

.nosotros-historia-media::before {
    content: '';
    position: absolute;
    z-index: -1;
    /* Amplía el fondo al 112% de ancho y 116% de alto, desde su centro. */
    inset: -8% -6%;
    /* Cuatro curvas amplias: hombro superior y base más pronunciados.
       La inclinación descendente contrasta con la silueta de la fotografía. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 450' preserveAspectRatio='none'%3E%3Cpath fill='%23dcefe7' d='M260 22C415 8 590 125 586 270C583 409 416 449 278 414C116 415 8 332 18 192C25 49 110 2 260 22Z'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.nosotros-carlota-media {
    /* La ilustración vertical necesita más altura que la fotografía del estudio. */
    aspect-ratio: 3 / 4;
    /* Sube todo el conjunto decorativo sin cambiar su distribución interna. */
    top: -12px;
}

.nosotros-carlota {
    /* Recorta el fondo en el borde de la página sin generar scroll horizontal. */
    overflow-x: clip;
}

.nosotros-carlota-decoration {
    position: absolute;
    z-index: 0;
    display: block;
    /* Compensa el margen del contenedor centrado para llegar al borde izquierdo. */
    inset: 14% -8% 14% calc(-1 * max(clamp(1.25rem, 6vw, 5rem), (100vw - 75rem) / 2) - 15%);
    /* El SVG ocupa el mismo espacio que el anterior fondo decorativo. */
    width: calc(123% + max(clamp(1.25rem, 6vw, 5rem), (100vw - 75rem) / 2));
    max-width: none;
    height: 72%;
    overflow: visible;
    transform-origin: 75% 50%;
    transform: rotate(-25deg);
    pointer-events: none;
}

/* Marco compartido por las fotografías de la introducción y de Carlota. */
.nosotros-intro .nosotros-intro-image,
.nosotros-carlota .nosotros-carlota-photo {
    box-sizing: border-box;
    border: clamp(4px, 0.6vw, 8px) solid #ffffff;
    border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
    background: #ffffff;
    box-shadow: 0 6px 18px rgb(51 51 51 / 14%);
}

.nosotros-carlota .nosotros-carlota-photo {
    position: absolute;
    z-index: 1;
    display: block;
    width: 62%;
    max-width: 100%;
    height: 49%;
    object-fit: cover;
}

.nosotros-carlota-photo--resting {
    top: 2%;
    right: 3%;
    object-position: 50% 33%;
    transform: rotate(-8deg);
}

.nosotros-carlota .nosotros-carlota-photo--curious {
    top: 49%;
    right: 0;
    width: 60%;
    object-position: 50% 40%;
    transform: rotate(9deg);
}

.nosotros-carlota .nosotros-carlota-image {
    position: absolute;
    z-index: 2;
    top: -2%;
    left: -4%;
    display: block;
    width: 75%;
    max-width: 100%;
    height: 110%;
    object-fit: contain;
    /* Compensa el espacio transparente del archivo sin recortar el personaje. */
    transform: translateY(-4%) scale(1.25);
}

.nosotros-carlota-heart {
    position: absolute;
    z-index: 3;
    right: -4%;
    bottom: -3%;
    width: 18%;
    height: auto;
    color: #65b49f;
    transform: rotate(12deg);
    pointer-events: none;
}

.nosotros-historia {
    /* Deja visible el inicio al navegar desde la flecha bajo el header fijo. */
    scroll-margin-top: calc(6rem + var(--wp-admin--admin-bar--height, 0px));
}

@media (prefers-reduced-motion: no-preference) {
    html:has(#nosotros-historia) {
        scroll-behavior: smooth;
    }
}

.nosotros-historia-media {
    --historia-frame-width: clamp(4px, 0.6vw, 8px);
    /* La foto y su marco comparten exactamente el mismo contorno. */
    --historia-image-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 450' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M300 28C435 10 575 55 580 190C588 310 480 418 338 422C195 434 34 385 22 264C8 132 140 48 300 28Z'/%3E%3C/svg%3E");
}

.nosotros-historia-media::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    background: #ffffff;
    pointer-events: none;
}

.nosotros-historia .nosotros-historia-image {
    /* Deja visible el fondo sin recortar la silueta del contenedor. */
    position: absolute;
    z-index: 1;
    inset: var(--historia-frame-width);
    display: block;
    width: calc(100% - 2 * var(--historia-frame-width));
    max-width: 100%;
    height: calc(100% - 2 * var(--historia-frame-width));
    object-fit: cover;
    object-position: 45% 60%;
    border-radius: 0;
}

.nosotros-historia-media::after,
.nosotros-historia .nosotros-historia-image {
    -webkit-mask-image: var(--historia-image-mask);
    mask-image: var(--historia-image-mask);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

@media (min-width: 960px) {
    .nosotros-historia-inner {
        /* Reparte el espacio disponible: 65% para texto y 35% para imagen. */
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }

    .nosotros-historia-media,
    .nosotros-carlota-media {
        /* Centra solo la imagen; el texto conserva su alineación superior. */
        align-self: center;
        /* Ajuste visual respecto del centro, sin desplazar los textos. */
        transform: translateY(12px);
    }

    .nosotros-carlota-inner {
        /* Invierte las proporciones: imagen 35%, texto 65%. */
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    }

    .nosotros-carlota-content {
        grid-column: 2;
        grid-row: 1;
    }

    .nosotros-carlota-media {
        grid-column: 1;
        grid-row: 1;
    }
}

/* Presentación editorial. La tipografía compartida se define en style.css. */
.nosotros-intro {
    /* Redistribuye el espacio alrededor del texto sin mover la etiqueta ni la flecha. */
    --nosotros-intro-text-shift: clamp(1rem, 2.5vw, 2rem);
    position: relative;
    padding: 2rem clamp(1.25rem, 4vw, 2rem) 2rem;
    background: #fafbf9;
    color: #333333;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.nosotros-intro,
.nosotros-intro * {
    box-sizing: border-box;
}

.nosotros-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    container-type: inline-size;
    max-width: 56rem;
    margin-inline: auto;
}

.nosotros-intro-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajusta el título al ancho real del bloque sin dividir las dos frases. */
.nosotros-intro .nosotros-intro-title {
    width: 100%;
    margin-bottom: 1rem;
    font-size: min(clamp(1.4rem, 3vw, 2.7rem), 6.5cqi);
}

.nosotros-intro-title-line {
    white-space: nowrap;
}

.nosotros-intro .nosotros-intro-eyebrow {
    margin-bottom: calc(clamp(2.25rem, 3vw, 3.25rem) + 6px + var(--nosotros-intro-text-shift));
    text-transform: uppercase;
}

.nosotros-intro-eyebrow.is-pending {
    opacity: 0;
    transform: translateY(12px);
}

.nosotros-intro-eyebrow.is-revealed {
    animation: featured-eyebrow-reveal 0.8s ease both;
}

.nosotros-intro-eyebrow.is-revealed::after {
    transform-origin: center;
    animation: featured-line-reveal 0.8s ease both;
}

.nosotros-intro .nosotros-intro-description {
    width: 100%;
    max-width: 45rem;
    margin-inline: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Curva de grosor creciente, revelada desde la izquierda y repetida en pantalla. */
.nosotros-intro-flourish {
    display: block;
    width: min(62%, 14rem);
    height: auto;
    margin-top: 0.25rem;
    align-self: flex-end;
    margin-right: 2%;
    color: #76c2af;
    transform: rotate(-5deg);
}

.nosotros-intro-flourish path {
    fill: currentColor;
}

.nosotros-intro-flourish.is-pending path {
    clip-path: inset(0 100% 0 0);
}

.nosotros-intro-flourish.is-revealed path {
    animation: nosotros-flourish-draw 10s ease-in-out infinite both;
}

@keyframes nosotros-flourish-draw {
    0%, 4% { clip-path: inset(0 100% 0 0); opacity: 1; }
    20%, 92% { clip-path: inset(0); opacity: 1; }
    97%, 100% { clip-path: inset(0); opacity: 0; }
}

/* Enlace a Nuestra historia, con el mismo trazo del carrusel destacado. */
.nosotros-intro .nosotros-intro-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-top: calc(clamp(5rem, 10vw, 8rem) - var(--nosotros-intro-text-shift) + 24px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #65b49f;
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
}

.nosotros-intro-next:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 4px;
}

/* En móvil, la foto original conserva su lugar en el Grid de la sección. */
.nosotros-intro-gallery {
    display: contents;
}

.nosotros-intro-order,
.nosotros-intro-stickers {
    display: none;
}

/* En pantallas pequeñas, las fotografías ocupan su propio espacio bajo el texto. */
.nosotros-intro-art {
    /* Controles de la forma izquierda. No cambian el tamaño de la fotografía.
       Escala: 1 = 100%, 1.2 = 120%, 1.3 = 130%. Crece desde su centro. */
    --nosotros-art-shape-scale: 1.2312;
    /* Desplazamiento solo de la forma: X positivo = derecha; Y positivo = abajo. */
    --nosotros-art-shape-offset-x: 36px;
    --nosotros-art-shape-offset-y: 2px;
    --nosotros-art-shape-width: 125%;
    --nosotros-art-shape-height: 130%;
    --nosotros-art-shape-top: 50%;
    --nosotros-art-shape-left-mobile: -15%;
    --nosotros-art-shape-left-desktop: -47%;
    --nosotros-art-shape-radius: 27% 73% 46% 54% / 61% 28% 72% 39%;
    position: relative;
    isolation: isolate;
    width: min(64%, 18rem);
    margin: 5rem auto 3rem;
}

.nosotros-intro-art::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: var(--nosotros-art-shape-top);
    left: var(--nosotros-art-shape-left-mobile);
    width: var(--nosotros-art-shape-width);
    height: var(--nosotros-art-shape-height);
    border-radius: var(--nosotros-art-shape-radius);
    background: #dcefe7;
    transform-origin: center;
    transform: translate(var(--nosotros-art-shape-offset-x), calc(-50% + var(--nosotros-art-shape-offset-y))) scale(var(--nosotros-art-shape-scale));
}

.nosotros-intro .nosotros-intro-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: rotate(var(--nosotros-art-rotation, -4deg));
}

.nosotros-intro-art--right {
    /* Controles de la forma derecha; el resto se hereda de la base. */
    --nosotros-art-shape-scale: 1.44;
    --nosotros-art-shape-offset-x: -12px;
    --nosotros-art-shape-offset-y: 0px;
    --nosotros-art-shape-left-mobile: -10%;
    --nosotros-art-shape-left-desktop: 22%;
    --nosotros-art-shape-radius: 72% 28% 58% 42% / 35% 61% 39% 65%;
    --nosotros-art-shape-height: 120%;
    --nosotros-art-rotation: 5deg;
    width: min(62.72%, 16.8rem);
    margin-top: 3rem;
}

/* Texto a todo el ancho y fotografías en paralelo en móvil y tablet. */
@media (max-width: 959.98px) {
    .nosotros-intro {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
        overflow-x: clip;
    }

    .nosotros-intro-inner {
        /* Permite ordenar la flecha después de las fotos sin duplicar el enlace. */
        display: contents;
        container-type: normal;
    }

    .nosotros-intro-header {
        container-type: inline-size;
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }

    .nosotros-intro .nosotros-intro-next {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
        margin-top: 8px;
    }

    .nosotros-intro-art {
        /* Controles móviles independientes: los de escritorio permanecen intactos. */
        --nosotros-art-shape-scale: 1;
        --nosotros-art-shape-width: 118%;
        --nosotros-art-shape-height: 118%;
        --nosotros-art-shape-offset-x: 0px;
        --nosotros-art-shape-offset-y: 0px;
        --nosotros-art-shape-left-mobile: -20%;
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        align-self: start;
        width: min(88%, 12rem);
        margin: 1.25rem 0;
    }

    .nosotros-intro-art--right {
        --nosotros-art-shape-left-mobile: 8%;
        grid-column: 2;
        justify-self: start;
        width: min(78%, 10.5rem);
        margin-top: 0.25rem;
    }
}

/* Reserva laterales iguales para mantener el texto centrado en la sección. */
@media (min-width: 960px) {
    .nosotros-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 42%) minmax(0, 1fr);
        align-items: start;
        /* Recorta las siluetas en ambos bordes sin cortar las fotografías verticalmente. */
        overflow-x: clip;
        padding-top: 50px;
        /* Mantiene una separación breve entre la flecha y la historia. */
        padding-bottom: clamp(1rem, 2vw, 1.5rem);
    }

    .nosotros-intro-inner {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
    }

    .nosotros-intro .nosotros-intro-description {
        /* Solo el párrafo se amplía; el H1 conserva su contenedor y tamaño. */
        width: min(45rem, calc(100cqi + 4rem));
        flex-shrink: 0;
    }

    .nosotros-intro-art {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: clamp(10rem, 18vw, 20rem);
        margin: 0;
        /* Baja el conjunto en el flujo de Grid para separarlo del header. */
        margin-top: clamp(2rem, calc(5.04vw - 18px), 4.5rem);
        /* Ubica todo el conjunto desde una única referencia, separado del texto. */
        margin-left: calc(min(5vw, 6rem) - clamp(1.25rem, 4vw, 2rem));
    }

    .nosotros-intro-art::before {
        left: var(--nosotros-art-shape-left-desktop);
    }

    .nosotros-intro .nosotros-intro-image {
        transform: rotate(var(--nosotros-art-rotation, -7deg));
    }

    .nosotros-intro-art--right {
        grid-column: 3;
        justify-self: end;
        flex-shrink: 0;
        width: clamp(9.5rem, 16.8vw, 18rem);
        margin-top: max(0px, calc(clamp(0.5rem, calc(5.04vw - 42px), 3rem) - 12px));
        margin-left: 0;
        margin-right: calc(min(5vw, 6rem) - clamp(1.25rem, 4vw, 2rem));
    }

    .nosotros-intro-gallery {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding-top: 0.5rem;
    }

    .nosotros-intro-gallery--right {
        grid-column: 3;
        align-items: flex-end;
        padding-top: 0;
    }

    .nosotros-intro-art--left {
        /* Baja solo el fondo para mantenerlo separado del header. */
        --nosotros-art-shape-top: 65%;
        --nosotros-art-shape-offset-y: 24px;
        width: clamp(9rem, 15vw, 17rem);
        flex-shrink: 0;
        margin: 0;
        margin-left: calc(min(3vw, 3.5rem) - clamp(1.25rem, 4vw, 2rem));
    }

    .nosotros-intro-order,
    .nosotros-intro-stickers {
        --nosotros-art-rotation: 5deg;
        display: block;
        position: relative;
        z-index: 1;
        width: clamp(8.1rem, 12.6vw, 14.4rem);
    }

    .nosotros-intro-order {
        /* Monta la foto cuadrada sobre la esquina inferior derecha de la polera. */
        margin-top: calc(-1 * clamp(3rem, 6vw, 6rem));
        /* Reserva espacio para el párrafo ampliado y el borde inclinado. */
        margin-left: max(0px, calc(100% - clamp(8.1rem, 12.6vw, 14.4rem) - 3.5rem - 1vw));
    }

    .nosotros-intro-stickers {
        /* Se monta sobre la esquina inferior derecha del banco, con margen al viewport. */
        margin-top: calc(-1 * clamp(3rem, 6vw, 6rem));
        margin-right: max(1rem, calc(min(5vw, 6rem) - clamp(1.25rem, 4vw, 2rem) - 1.5rem));
    }
}

/* Con más ancho, la foto invade solo el espacio libre inferior del bloque central. */
@media (min-width: 1360px) {
    .nosotros-intro-order {
        align-self: flex-end;
        margin-top: -1rem;
        margin-left: 0;
        margin-right: -1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nosotros-intro-flourish.is-pending path,
    .nosotros-intro-flourish.is-revealed path {
        animation: none;
        clip-path: none;
        opacity: 1;
    }

    .nosotros-intro-eyebrow.is-pending {
        opacity: 1;
        transform: none;
    }

    .nosotros-intro-eyebrow.is-revealed,
    .nosotros-intro-eyebrow.is-revealed::after {
        animation: none;
    }
}

/* Enfoque: texto 35% y desplegables 65% del espacio entre columnas. */
.nosotros-enfoque .nosotros-enfoque-description {
    max-width: 23ch;
}

/* Centra la presentación cuando la sección se distribuye en una columna. */
@media (max-width: 959.98px) {
    .nosotros-historia-content,
    .nosotros-carlota-content,
    .nosotros-enfoque-content {
        text-align: center;
    }

    .nosotros-enfoque-desktop-break {
        display: none;
    }

    .nosotros-enfoque .nosotros-enfoque-description {
        max-width: 38ch;
    }

    .nosotros-historia .nosotros-historia-eyebrow,
    .nosotros-carlota .nosotros-carlota-eyebrow,
    .nosotros-enfoque .nosotros-enfoque-eyebrow,
    .nosotros-enfoque .nosotros-enfoque-description {
        margin-inline: auto;
    }
}

.nosotros-enfoque-accordion {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    align-self: center;
}

.nosotros-enfoque-item {
    border: 1px solid #deded8;
    border-radius: 0.75rem;
    background: #fdfdfb;
    color: #333333;
}

.nosotros-enfoque-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.875rem 1.125rem;
    list-style: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.nosotros-enfoque-summary::-webkit-details-marker {
    display: none;
}

.nosotros-enfoque-summary:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 4px;
    border-radius: 0.75rem;
}

.nosotros-enfoque-icon,
.nosotros-enfoque-arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.nosotros-enfoque-icon {
    color: #76c2af;
}

.nosotros-enfoque-arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.nosotros-enfoque-item[open] .nosotros-enfoque-arrow {
    transform: rotate(180deg);
}

.nosotros-enfoque-panel {
    padding: 0 1.125rem 1rem;
}

.nosotros-enfoque-panel p {
    margin: 0;
    color: #505750;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
}

.nosotros-enfoque-values {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nosotros-enfoque-values li {
    padding-block: 1rem;
}

.nosotros-enfoque-values li + li {
    border-top: 1px solid #e2e2de;
}

.nosotros-enfoque-values li:first-child {
    padding-top: 0;
}

.nosotros-enfoque-values li:last-child {
    padding-bottom: 0;
}

.nosotros-enfoque-values h3,
.nosotros-objetivos-list h3 {
    margin: 0 0 0.375rem;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
}

.nosotros-objetivos {
    /* Redistribuye 16px del espacio superior hacia la separación con el banner. */
    padding-top: calc(clamp(1.25rem, 2vw, 2rem) + 6px - 16px);
    padding-bottom: calc(clamp(3rem, 6vw, 6rem) + 16px);
}

.nosotros-objetivos-inner {
    max-width: 75rem;
    margin-inline: auto;
}

.nosotros-objetivos-header {
    text-align: center;
}

.nosotros-objetivos .nosotros-enfoque-eyebrow {
    margin-inline: auto;
}

.nosotros-objetivos-list {
    display: grid;
    gap: 0 2.5rem;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: objetivo;
}

.nosotros-objetivos-list li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-content: start;
    column-gap: 0.75rem;
    min-width: 0;
    padding-block: 1.5rem;
    border-top: 1px solid #deded8;
    counter-increment: objetivo;
}

.nosotros-objetivos-list li::before {
    content: counter(objetivo, decimal-leading-zero);
    grid-row: span 2;
    color: #76c2af;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.nosotros-objetivos-list p {
    grid-column: 2;
    margin: 0;
    color: #505750;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .nosotros-objetivos-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .nosotros-enfoque-arrow {
        transition: none;
    }
}

@media (min-width: 960px) {
    .nosotros-enfoque-inner {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    }

}
