/* ==========================================================================
   NOSOTROS: Sección amarilla "Sobre nosotros" (Specs Figma)
   ========================================================================== */

.seccion-nosotros {
    width: 100%;
    min-height: auto;
    background: #FCE700;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 120px 0;
    isolation: isolate;
}

/* El truco: El bloque se centra (jefa) pero el logo se alinea (tú) */
.seccion-nosotros .container-fluid {
    padding-left: var(--page-gutter) !important;
    /* Padding de Bootstrap para alinear con el logo */
    padding-right: var(--page-gutter) !important;
    margin: 0 auto !important;
    /* Centra el bloque entero en la pantalla */
    max-width: 1440px;
    /* Ancho máximo de Figma */
    width: 100%;
}

/* Contenedor principal de 1200px (Sincronizado con el logo del menú) */
.nosotros-content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 72px;
}

/* Label and Dot styles */
.menu-item-negro {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 18px;
    height: 18px;
    width: fit-content;
    /* Limitamos el área de clic y hover al contenido real */
}

.dot-negro-small {
    width: 4.47px;
    height: 4.47px;
    background: rgba(0, 0, 0, 0.5);
    /* Volvemos al suave por defecto */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.link-negro-soft {
    font-family: 'Sora', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.5);
    /* Volvemos al suave por defecto */
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item-negro:hover .dot-negro-small {
    background: #000000;
    opacity: 1;
}

.menu-item-negro:hover .link-negro-soft {
    color: #000000;
}

/* Frame 40: Contiene Label + Headline */
.nosotros-frame-40 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 48px;
}

/* Main Content Headline (924.42px) */
.nosotros-main-text {
    width: 100%;
    max-width: 924px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
}

.nosotros-frame-23 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* Mantiene la imagen a la derecha y nos deja mover el texto libremente */
    align-items: center;
    padding: 0px;
    gap: 40px;
    /* Margen mínimo de seguridad con la foto */
    width: 100%;
}

.nosotros-frame-22 {
    width: 335.19px;
    /* Restauramos el ancho fijo del texto */
    flex-shrink: 0;
    /* Bloqueamos el texto para que NO se deforme NUNCA */
    margin-left: 120px;
    /* Margen exacto para alinear el bloque bajo la letra 'U' de vanguardia */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    /* Figma spec */
}

.nosotros-description {
    width: 335.19px;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    /* Aumentado a 24px para mejorar la legibilidad del bloque de texto */
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
}

.nosotros-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
}

.cta-frame-10 {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0 8px 0;
    /* Espacio para la línea */
    gap: 12px;
    text-decoration: none;
    position: relative;
    border-bottom: 2px solid transparent;
    /* Línea invisible por defecto */
    transition: all 0.3s ease;
    width: fit-content;
}

.cta-frame-10:hover {
    border-bottom: 2px solid #000000;
    /* Aparece la línea al pasar el ratón */
}

/* El pequeño triángulo/flecha que aparece al hacer hover */
.cta-frame-10::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #000000;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.cta-frame-10:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.conocenos-label {
    font-family: 'Sora', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: #000000;
}

/* Image Rectangle 6 (685px) */
.nosotros-rectangle-6 {
    width: 705px;
    /* Restauramos el ancho fijo de la imagen */
    max-width: 100%;
    height: auto;
    aspect-ratio: 705 / 378;
    /* Mantiene proporciones perfectas */
    background: url('../assets/img/image5.png') center/cover no-repeat;
    border-radius: 0;
    /* Bordes rectos en este spec */
    flex-shrink: 1;
    /* Solo la imagen se hará pequeña si falta espacio */
    min-width: 0;
}

/* ── REVEAL ANIMATIONS (STAGGERED) ── */
.nosotros-reveal-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    overflow: visible;
}

.nosotros-rectangle-6.nosotros-reveal-step {
    transform: translateX(30px);
}

.nosotros-reveal-step.is-open {
    opacity: 1;
    transform: translate(0, 0);
}

.nosotros-rectangle-6.nosotros-reveal-step.is-open {
    transform: translate(0, 0);
}


@media (prefers-reduced-motion: reduce) {
    .nosotros-reveal-step {
        opacity: 1;
        transform: none !important;
        transition: none !important;
    }
}


/* Responsividad */
@media (max-width: 1240px) {
    .nosotros-content-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 1100px) {
    .nosotros-frame-23 {
        flex-direction: column;
        align-items: flex-start;
        /* Centra el bloque de texto y la imagen */
        gap: 48px;
        max-width: 100%;
    }

    .nosotros-main-text {
        text-align: left;
        /* Centra el titular */
    }

    .nosotros-frame-22 {
        align-items: flex-start;
        /* Centra el contenido del bloque de texto (descripción y botón) */
    }

    .nosotros-description {
        text-align: left;
        /* Centra los párrafos de descripción */
    }

    .nosotros-frame-22,
    .nosotros-rectangle-6 {
        max-width: 100%;
        margin-left: 0;
        /* Reseteamos el margen en pantallas más pequeñas */
    }
}

@media (max-width: 768px) {
    .seccion-nosotros .container-fluid {
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    .nosotros-frame-40 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .menu-item-negro {
        margin-left: 0;
    }

    .nosotros-main-text {
        font-size: clamp(24px, 8vw, 30px);
        line-height: 1.14;
        text-align: left;
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 22px;
        padding-right: 2px;
        box-sizing: border-box;
    }

    .seccion-nosotros {
        padding: 80px 0;
    }

    .nosotros-content-wrapper {
        padding: 0;
        gap: 48px;
    }

    .nosotros-frame-22,
    .nosotros-description {
        width: 100%;
    }

    .nosotros-frame-22 {
        max-width: none;
        margin: 0;
        gap: 32px;
        padding-left: 22px;
        padding-right: 2px;
        box-sizing: border-box;
    }

    .nosotros-description {
        width: 100%;
        max-width: none;
        margin: 0;
        font-size: 15px;
        line-height: 1.42;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .nosotros-frame-40,
    .nosotros-frame-23,
    .nosotros-frame-22,
    .nosotros-cta {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .seccion-nosotros {
        padding: 64px 0;
    }

    .nosotros-content-wrapper {
        gap: 36px;
    }

    .nosotros-frame-40 {
        gap: 28px;
    }

    .nosotros-main-text {
        padding-left: 0;
        padding-right: 0;
        font-size: clamp(22px, 8vw, 28px);
    }

    .nosotros-frame-22 {
        padding-left: 0;
        padding-right: 0;
        gap: 24px;
    }

    .nosotros-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .nosotros-frame-23 {
        gap: 32px;
    }
}