/* ==========================================================================
   NOSOTROS DETALLE: Estilos finales simplificados
   ========================================================================== */

.nosotros-body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Sora', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* SECTION: NOSOTROS HERO BLACK */
.nosotros-hero-black {
    width: 100%;
    height: 935px;
    background: #000000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 90px;
}

.nosotros-hero-black .hero-bottom-nav {
    animation: nosotros-nav-enter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.nosotros-hero-content {
    width: 1440px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 140px;
    z-index: 10;
}

.hero-logo-top {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nosotros-hero-logo {
    width: 110px;
    height: 120px;
    object-fit: contain;
    flex: none;
    transform-origin: 50% 10%;
    animation: nosotros-logo-enter 1.25s cubic-bezier(0.2, 1.25, 0.35, 1) 0.45s both;
}

@media (max-width: 991px) {
    .nosotros-hero-logo {
        width: 120px;
        height: auto;
    }
}

@media (max-width: 575px) {
    .nosotros-hero-logo {
        width: 110px;
        height: auto;
    }
}

.nosotros-hero-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 140px;
    /* Igual que en servicios para compactar el diseño */
}

.nosotros-hero-label {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: #FCE700;
    text-transform: uppercase;
    width: 150px;
    /* Ajustado igual que en servicios */
}

.nosotros-hero-label.left {
    text-align: left;
    animation: nosotros-label-left-enter 1.1s cubic-bezier(0.2, 1.15, 0.35, 1) 0.8s both;
}

.nosotros-hero-label.right {
    text-align: right;
    animation: nosotros-label-right-enter 1.1s cubic-bezier(0.2, 1.15, 0.35, 1) 0.8s both;
}

.nosotros-hero-main-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 112px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    transform-origin: center;
    animation: nosotros-title-enter 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

@keyframes nosotros-nav-enter {
    0% {
        opacity: 0;
        transform: translateY(-18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nosotros-logo-enter {
    0% {
        opacity: 0;
        transform: translateY(-34px) rotate(-4deg) scale(0.9);
    }

    68% {
        opacity: 1;
        transform: translateY(4px) rotate(1deg) scale(1.035);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes nosotros-title-enter {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }

    72% {
        opacity: 1;
        transform: translateY(-3px) scale(1.018);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nosotros-label-left-enter {
    0% {
        opacity: 0;
        transform: translateX(-58px);
    }

    72% {
        opacity: 1;
        transform: translateX(6px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes nosotros-label-right-enter {
    0% {
        opacity: 0;
        transform: translateX(58px);
    }

    72% {
        opacity: 1;
        transform: translateX(-6px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SECTION VISIÓN BLACK */
@media (prefers-reduced-motion: reduce) {
    .nosotros-hero-black .hero-bottom-nav,
    .nosotros-hero-logo,
    .nosotros-hero-label.left,
    .nosotros-hero-label.right,
    .nosotros-hero-main-title {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.seccion-vision-black {
    width: 100%;
    height: 1356px;
    background: #000000;
    position: relative;
    z-index: 10;
}

.vision-images-layer {
    position: absolute;
    top: -213px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 1438.88px;
    height: 1345.67px;
    z-index: 0;
    will-change: transform;
}

.vision-img-1 {
    position: absolute;
    width: 762.07px;
    height: 551.77px;
    left: calc(50% - 762.07px/2 + 338.4px);
    top: 0px;
    object-fit: cover;
    filter: brightness(0.6);
}

.vision-img-2 {
    position: absolute;
    width: 579.6px;
    height: 394.38px;
    left: calc(50% - 579.6px/2 - 429.64px);
    top: 260.37px;
    object-fit: cover;
    filter: brightness(0.5);
}

.vision-img-3 {
    position: absolute;
    width: 412.34px;
    height: 572.46px;
    left: calc(50% - 412.34px/2 - 237.66px);
    top: 773.21px;
    object-fit: cover;
    filter: brightness(0.5);
}

.vision-img-4 {
    position: absolute;
    width: 512.04px;
    height: 348.41px;
    left: calc(50% - 512.04px/2 + 336px);
    top: 659.83px;
    object-fit: cover;
}

.vision-images-layer img {
    opacity: 1; /* Garantizamos visibilidad */
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.vision-images-layer.is-visible img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vision-images-layer.is-visible .vision-img-1 {
    transition-delay: 0.05s;
}

.vision-images-layer.is-visible .vision-img-2 {
    transition-delay: 0.18s;
}

.vision-images-layer.is-visible .vision-img-3 {
    transition-delay: 0.31s;
}

.vision-images-layer.is-visible .vision-img-4 {
    transition-delay: 0.44s;
}

@media (prefers-reduced-motion: reduce) {
    .vision-images-layer img {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .vision-text-layer {
        transition: none;
    }

    .vision-text-layer .vision-label,
    .vision-main-title .vision-title-line {
        animation: none;
        clip-path: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.vision-text-layer {
    position: absolute;
    top: 460px;
    /* Centrado visual con el bloque de imágenes */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 1440px;
    padding: 66px 0px;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    pointer-events: none;
}

.vision-label {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    letter-spacing: -0.02em;
    color: #FCE700;
    text-transform: uppercase;
}

.vision-main-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 112px;
    line-height: 0.95;
    text-align: center;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
    max-width: 900px;
}

.vision-text-layer .vision-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vision-text-layer.is-visible .vision-label {
    opacity: 1;
    transform: translateY(0);
}

.vision-main-title .vision-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    white-space: normal;
    will-change: clip-path, transform, opacity;
    opacity: 1; /* Garantizamos visibilidad */
    clip-path: none;
    transform: none;
}

.vision-main-title .vision-title-line:nth-child(even) {
    clip-path: none;
    transform: none;
}

.vision-text-layer.is-visible .vision-label {
    opacity: 1;
}

/* Animaciones eliminadas por petición del usuario */

.highlight-yellow {
    color: #FCE700;
}

.yellow-text {
    color: #FCE700;
}

/* ── RESPONSIVE: HERO EN MÓVIL/TABLET ── */
@media (max-width: 1200px) {

    /* Asegurar que la primera sección jamás se deje pintar por encima por la capa de imágenes de abajo */
    .nosotros-hero-black {
        height: auto;
        min-height: clamp(580px, 78svh, 720px);
        padding-bottom: 0;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center !important;
        overflow-x: hidden;
        position: relative;
        z-index: 100 !important;
    }

    .hero-logo-top {
        margin-top: 0 !important;
        margin-bottom: 0px;
    }

    .seccion-vision-black {
        height: clamp(1120px, 145vh, 1320px);
        min-height: 0;
        display: block;
        overflow: hidden;
        position: relative;
        z-index: 10;
        padding-bottom: 0;
    }

    .vision-sticky-wrapper {
        position: relative;
        height: auto;
        padding: 120px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }

    .nosotros-hero-content {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: clamp(56px, 9vh, 88px);
        width: 100%;
        align-items: center !important;
        margin-top: 0 !important;
        margin-bottom: auto;
        gap: 30px !important;
        /* FULMINA LA DISTANCIA DE 246px QUE HEREDABA DEL ESTILO DE ORDENADOR */
    }

    .nosotros-hero-main-title,
    .vision-main-title {
        font-size: clamp(40px, 12vw, 140px);
        line-height: 0.9 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
        max-width: 100%;
        text-align: center !important;
        letter-spacing: -0.05em;
    }

    .nosotros-hero-title-wrapper {
        flex-direction: column;
        gap: 20px !important;
        align-items: center !important;
        width: 100%;
    }

    .nosotros-hero-label.left,
    .nosotros-hero-label.right,
    .vision-label {
        text-align: center !important;
        /* Centro perfecto */
        width: 100%;
        margin-bottom: 8px;
    }

    /* Escalar limpiamente el collage entero y centrarlo, sin tocar max-width nativa de 1438px */
    .vision-images-layer {
        display: block;
        position: absolute;
        width: 1438.88px;
        height: 1345.67px;
        transform: translate(-50%, 0) scale(0.65) !important;
        transform-origin: top center;
        top: 10px !important;
    }

    .vision-text-layer {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 var(--page-gutter);
        background: transparent;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 992px) {
    .vision-images-layer {
        transform: translate(-50%, 0) scale(0.55) !important;
        top: 50px !important;
    }
}

@media (max-width: 768px) {
    .nosotros-hero-black {
        min-height: clamp(520px, 68svh, 620px);
    }

    .nosotros-hero-content {
        padding-top: clamp(44px, 8vh, 72px);
    }

    .seccion-vision-black {
        height: clamp(940px, 128vh, 1080px);
    }

    .vision-images-layer {
        transform: translate(-50%, 0) scale(0.4) !important;
        top: 110px !important;
    }

    .sticky-menu-wrapper {
        display: none;
    }
}

@media (max-width: 480px) {
    .nosotros-hero-black {
        min-height: clamp(470px, 64svh, 560px);
    }

    .nosotros-hero-content {
        padding-top: clamp(36px, 7vh, 58px);
    }

    .nosotros-hero-logo {
        width: 96px;
        height: auto;
    }

    .seccion-vision-black {
        height: clamp(820px, 118vh, 900px);
    }

    .vision-images-layer {
        transform: translate(-50%, 0) scale(0.3) !important;
        top: 180px !important;
    }
}

/* SECTION: DOSSIER (ESPECIFICACIONES FIGMA REFACTOR) */
.seccion-dossier {
    width: 100%;
    min-height: auto;
    background: #FFFFFF;
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
    /* Volvemos a los 120px de arriba para ese 'aire' premium de la línea roja superior */
}

.dossier-inner-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 3rem;
    /* Título alineado de nuevo con el Logotipo (3rem) */
    gap: 72px;
    width: 1440px;
    height: 586px;
    box-sizing: border-box;
}

.dossier-header-frame {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 1440px;
    height: 144px;
}

.dossier-main-heading {
    width: 924.42px;
    height: 144px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 48px;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0 !important;
}

.dossier-content-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    gap: 137px;
    width: 1300px;
    height: 370px;
    margin-top: 20px;
    /* Pequeño ajuste para la línea roja de abajo si fuera necesario */
}

.dossier-text-cta-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 48px;
    width: 335.19px;
    height: 370px;
    margin-left: 140px;
    /* Sangrado preciso para que empiece debajo de la 'i' de precisión */
}

.dossier-body-text {
    width: 335.19px;
    height: 300px;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dossier-copy-block {
    display: block;
}

.dossier-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alineado a la izquierda */
    padding: 0;
    gap: 4px;
    width: auto;
}

.dossier-cta-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: #000000 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 6px;
}

.dossier-cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.dossier-cta-link:hover {
    color: #000000 !important;
    text-decoration: none !important;
}

.dossier-cta-link:hover::after {
    width: 100%;
}

.download-icon {
    width: 18px;
    height: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.dossier-cta-link:hover .download-icon {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dossier-right-image {
    width: 705px;
    height: 370px;
    background: url('../assets/img/image_nosotros5.png'), #3D3D3D;
    background-size: cover;
    background-position: center;
}

.dossier-reveal-ready .seccion-dossier .dossier-reveal-step {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate3d(0, 30px, 0);
    transition:
        clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1),
        opacity 0.55s ease,
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: clip-path, opacity, transform;
}

.dossier-reveal-ready .seccion-dossier .dossier-cta-wrapper.dossier-reveal-step {
    transform: translate3d(0, 18px, 0);
}

.dossier-reveal-ready .seccion-dossier .dossier-right-image.dossier-reveal-step {
    clip-path: inset(0 0 0 100%);
    transform: translate3d(34px, 0, 0) scale(1.02);
}

.dossier-reveal-ready .seccion-dossier .dossier-reveal-step.is-open {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .dossier-reveal-ready .seccion-dossier .dossier-reveal-step {
        opacity: 1;
        clip-path: none;
        transform: none;
        transition: none;
    }
}


/* SECTION: CLIENTES (ESPECIFICACIONES FIGMA) */
.seccion-clientes-yellow {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 120px 0;
    gap: 96px;
    width: 100%;
    min-height: auto;
    background: #FCE700;
    position: relative;
    z-index: 10;
}

.clientes-inner-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 var(--page-gutter);
    width: 1440px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
}

.clientes-massive-title {
    width: 100%;
    max-width: 1143.79px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 112px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.clientes-massive-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.clientes-carousel-container {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 48px;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    box-sizing: border-box;
}

.clientes-carousel-row {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.clientes-logos-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    gap: 40px;
    padding: 0;
    animation: carousel-scroll-left 40s linear infinite;
}

.clientes-carousel-row.reverse .clientes-logos-wrapper {
    animation-name: carousel-scroll-right;
}

.clientes-logos-wrapper:hover {
    animation-play-state: paused;
}

@keyframes carousel-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes carousel-scroll-right {
    0% { transform: translateX(-33.333%); }
    100% { transform: translateX(0); }
}

.cliente-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    margin: 0;
    padding: 22px 18px;
    box-sizing: border-box;
    flex: 0 0 240px;
}

.cliente-logo-img {
    width: 100%;
    max-width: 180px;
    max-height: 68px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%);
}

.clientes-divider {
    display: none;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    max-width: 1440px;
    margin: 8px auto 0;
    padding: 0 3rem;
    gap: 28px;
    box-sizing: border-box;
}

.clientes-divider-block {
    display: block;
    width: 100%;
    height: 48px;
    background: #3D3D3D;
}

@media (max-width: 1200px) {
    .clientes-inner-frame,
    .dossier-inner-frame,
    .dossier-header-frame {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .seccion-dossier {
        padding: 112px 0 72px;
    }

    .dossier-inner-frame {
        width: 100%;
        height: auto;
        padding: 0 20px;
        gap: 40px;
    }

    .dossier-header-frame {
        width: 100%;
        height: auto;
    }

    .dossier-main-heading {
        width: 100%;
        height: auto;
        max-width: 420px;
        font-size: clamp(28px, 7.2vw, 38px);
        line-height: 1.08;
        letter-spacing: -0.03em;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
        box-sizing: border-box;
    }

    .dossier-content-row {
        width: 100%;
        height: auto;
        margin-top: 0;
        gap: 32px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .dossier-text-cta-frame {
        width: 100%;
        height: auto;
        margin-left: 0;
        gap: 24px;
    }

    .dossier-body-text {
        width: 100%;
        height: auto;
        font-size: 15px;
        line-height: 1.42;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
        box-sizing: border-box;
    }

    .dossier-cta-wrapper {
        width: 100%;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
        box-sizing: border-box;
    }

    .dossier-right-image {
        width: 100%;
        height: auto;
        min-height: 320px;
        aspect-ratio: 16 / 11;
        background-position: center;
    }

    .seccion-clientes-yellow {
        padding: 112px 0 72px;
        gap: 72px;
    }

    .clientes-inner-frame {
        width: 100%;
        padding: 0 var(--page-gutter);
    }

    .clientes-massive-title {
        max-width: none;
        font-size: clamp(40px, 12vw, 140px);
        line-height: 0.9;
        letter-spacing: -0.05em;
        overflow-wrap: anywhere;
    }

    .clientes-logos-wrapper {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        gap: 32px;
        animation: carousel-scroll-left 25s linear infinite; /* Un poco más rápido en pantallas pequeñas */
    }

    .cliente-logo-card {
        flex: 0 0 180px;
        padding: 16px 12px;
        min-height: 100px;
    }

    .cliente-logo-img {
        max-width: 140px;
        max-height: 54px;
    }

    .clientes-divider {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0 20px;
        gap: 20px;
        display: none;
    }
}

@media (max-width: 480px) {
    .seccion-dossier {
        padding-top: 96px;
    }

    .seccion-clientes-yellow {
        padding-top: 96px;
    }

    .dossier-main-heading {
        max-width: 360px;
        font-size: clamp(26px, 8.6vw, 34px);
        line-height: 1.08;
    }

    .dossier-body-text {
        font-size: 14px;
        line-height: 1.45;
    }

    .dossier-right-image {
        min-height: 260px;
    }

    .clientes-inner-frame {
        padding: 0 var(--page-gutter);
    }

    .clientes-massive-title {
        font-size: clamp(34px, 12vw, 52px);
        line-height: 0.94;
    }

    .clientes-logos-wrapper {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        gap: 24px;
        animation: carousel-scroll-left 20s linear infinite;
    }

    .cliente-logo-card {
        flex: 0 0 140px;
        padding: 12px 8px;
        min-height: 80px;
        min-width: unset;
    }

    .cliente-logo-img {
        max-width: 110px;
        max-height: 40px;
    }

    .clientes-divider {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 var(--page-gutter);
        gap: 16px;
        display: none;
    }

    .clientes-divider-block {
        height: 32px;
    }
}
