.proyectos-hero {

    position: relative;

    overflow: hidden;

    isolation: isolate;

    min-height: calc(100svh - var(--arme-header-height));

    color: var(--arme-text);

    background: var(--arme-background);

}



.proyectos-hero__layout {

    position: relative;

    z-index: 12;

    display: grid;

    grid-template-columns:

        minmax(360px, 0.75fr)

        minmax(560px, 1.25fr);

    align-items: center;

    width: min(var(--page-width), calc(100% - 80px));

    min-height: calc(100svh - var(--arme-header-height));

    margin: 0 auto;

    pointer-events: none;

}



.proyectos-hero__copy {

    position: relative;

    z-index: 14;

    grid-column: 1;

    max-width: 640px;

    padding: clamp(48px, 6vw, 72px) 0 165px;

    pointer-events: auto;

}



.proyectos-hero__eyebrow {

    display: flex;

    align-items: center;

    gap: 14px;

    margin: 0 0 25px;

    color: var(--arme-blue-light);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.24em;

    text-transform: uppercase;

}



.proyectos-hero__eyebrow::before {

    width: 30px;

    height: 1px;

    content: "";

    background: currentColor;

    box-shadow: 0 0 10px var(--arme-blue);

}



.proyectos-hero__title {

    max-width: 100%;

    margin: 0;

    overflow: visible;

    font-family: "Bebas Neue", sans-serif;

    font-size: clamp(3.6rem, 6.4vw, 7.2rem);

    font-weight: 400;

    letter-spacing: 0.012em;

    line-height: 0.94;

    text-transform: uppercase;

    text-wrap: balance;

}



.proyectos-hero__title-line {

    display: block;

    overflow: visible;

}



.proyectos-hero__title-line--accent {

    color: transparent;

    background: var(--arme-title-accent);

    background-clip: text;

    -webkit-background-clip: text;

}



.proyectos-hero__lead {

    margin: 22px 0 0;

    max-width: 500px;

    color: var(--arme-text-soft);

    font-size: clamp(0.98rem, 1.2vw, 1.1rem);

    line-height: 1.7;

}



/* Visual — full-bleed like home hero; framing via camera viewOffset */

.proyectos-hero__visual {

    position: absolute;

    inset: 0;

    z-index: 4;

    pointer-events: none;

}



.proyectos-hero__visual--orbit {

    pointer-events: auto;

}



.proyectos-hero__visual--orbit .proyectos-hero__canvas,

.proyectos-hero__visual--orbit .proyectos-hero__canvas canvas {

    cursor: grab;

}



.proyectos-hero__visual--orbit .proyectos-hero__canvas canvas:active {

    cursor: grabbing;

}



.proyectos-hero__stages {

    position: absolute;

    top: 8%;

    left: calc(50% + 14%);

    z-index: 14;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    gap: 0;

    width: min(46vw, 620px);

    max-width: none;

    padding-top: 1.5rem;

    pointer-events: none;

    transform: translateX(-50%);

}



.proyectos-hero__stage {

    position: relative;

    display: flex;

    flex: 0 0 auto;

    flex-direction: column;

    align-items: center;

    width: 7px;

    opacity: 0.28;

    transition: opacity 0.45s ease;

}



.proyectos-hero__stage.is-active {

    opacity: 1;

}



.proyectos-hero__stage.is-active .proyectos-hero__stage-stem::after {

    background: var(--arme-blue-light);

    box-shadow: 0 0 14px var(--arme-blue);

}



.proyectos-hero__stage.is-done {

    opacity: 0.55;

}



.proyectos-hero__stage.is-done .proyectos-hero__stage-stem::after {

    background: rgba(74, 116, 184, 0.7);

    box-shadow: 0 0 8px rgba(74, 116, 184, 0.35);

}



.proyectos-hero__stage-label {

    position: absolute;

    bottom: calc(100% + 10px);

    left: 50%;

    color: var(--arme-blue-light);

    font-size: 0.64rem;

    font-weight: 700;

    letter-spacing: 0.14em;

    line-height: 1.2;

    text-transform: uppercase;

    white-space: nowrap;

    transform: translateX(-50%);

}



.proyectos-hero__stage-stem {

    position: relative;

    display: block;

    width: 1px;

    height: clamp(36px, 5.5vh, 56px);

    background: linear-gradient(

        180deg,

        rgba(74, 116, 184, 0.85),

        rgba(74, 116, 184, 0.18)

    );

}



.proyectos-hero__stage-stem::after {

    position: absolute;

    bottom: -5px;

    left: 50%;

    width: 7px;

    height: 7px;

    border: 1px solid var(--arme-blue-light);

    border-radius: 50%;

    content: "";

    background: transparent;

    box-shadow: 0 0 12px var(--arme-blue);

    transform: translateX(-50%);

    transition:

        background 0.35s ease,

        box-shadow 0.35s ease;

}



.proyectos-hero__stage-progress {

    position: relative;

    flex: 1 1 0;

    min-width: clamp(36px, 5vw, 72px);

    height: 2px;

    margin: 0 5px;

    margin-bottom: -2px;

    overflow: hidden;

    border-radius: 1px;

    background: rgba(74, 116, 184, 0.22);

}



.proyectos-hero__stage-progress-fill {

    display: block;

    width: 100%;

    height: 100%;

    background: linear-gradient(

        90deg,

        rgba(74, 116, 184, 0.55),

        var(--arme-blue-light)

    );

    box-shadow: 0 0 10px rgba(74, 116, 184, 0.45);

    transform: scaleX(0);

    transform-origin: left center;

}



.proyectos-hero__drag-hint {

    position: absolute;

    bottom: 18%;

    left: calc(50% + 14%);

    z-index: 14;

    display: flex;

    align-items: center;

    gap: 13px;

    color: var(--arme-drag-hint);

    font-size: 0.64rem;

    font-weight: 600;

    letter-spacing: 0.13em;

    text-transform: uppercase;

    pointer-events: none;

    transform: translateX(-50%);

}



.proyectos-hero__drag-hint::before,

.proyectos-hero__drag-hint::after {

    color: var(--arme-blue-light);

    font-size: 1rem;

}



.proyectos-hero__drag-hint::before {

    content: "\2039";

}



.proyectos-hero__drag-hint::after {

    content: "\203A";

}



.proyectos-hero__canvas {

    width: 100%;

    height: 100%;

    overflow: visible;

    cursor: grab;

    touch-action: pan-y;

    pointer-events: auto;

}



.proyectos-hero__canvas canvas {

    display: block;

    width: 100% !important;

    height: 100% !important;

    background: transparent !important;

}



/* Stats — floating bar at bottom, like home hero */

.proyectos-hero .hero__stats.proyectos-hero__stats {
    position: absolute;
    
    right: 40px;
    
    bottom: 24px;
    
    left: 40px;
    
    z-index: 20;
    
    display: grid;
    display: none;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;

    width: min(1200px, calc(100% - 80px));

    margin: 0 auto;

    padding: 14px 16px;

    border: 1px solid var(--arme-stats-border);

    border-radius: 12px;

    background: var(--arme-stats-bg);

    box-shadow: var(--arme-stats-shadow);

    opacity: 0.92;

}



.proyectos-hero .hero__stats.proyectos-hero__stats .stat {

    align-items: flex-start;

    gap: 10px;

    min-width: 0;

    padding: 2px 14px;

}



.proyectos-hero .hero__stats.proyectos-hero__stats .stat__copy {

    min-width: 0;

}



.proyectos-hero .hero__stats.proyectos-hero__stats .stat__label {

    overflow: visible;

    text-overflow: unset;

    white-space: normal;

}



.proyectos-hero .hero__stats.proyectos-hero__stats .stat__value {

    line-height: 1.2;

    white-space: normal;

}



.proyectos-hero .hero__stats.proyectos-hero__stats .stat:last-child .stat__value {

    font-size: clamp(0.82rem, 0.92vw, 0.95rem);

    line-height: 1.25;

}



@media (max-width: 1120px) {

    .proyectos-hero__layout {

        grid-template-columns: 1fr 1fr;

        width: min(var(--page-width), calc(100% - 48px));

    }



    .proyectos-hero__copy {

        max-width: none;

        padding-bottom: 140px;

    }



    .proyectos-hero__title {

        font-size: clamp(3.4rem, 8vw, 5.5rem);

    }



    .proyectos-hero__stages {

        left: calc(50% + 10%);

        width: min(48vw, 520px);

    }



    .proyectos-hero__drag-hint {

        left: calc(50% + 10%);

    }



    .proyectos-hero .hero__stats.proyectos-hero__stats {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        row-gap: 12px;

    }

}



@media (max-width: 720px) {

    .proyectos-hero {

        min-height: 0;

    }



    .proyectos-hero__layout {

        grid-template-columns: 1fr;

        min-height: 0;

    }



    .proyectos-hero__copy {

        padding: clamp(40px, 8vw, 64px) 0 24px;

    }



    .proyectos-hero__visual {

        position: relative;

        min-height: min(52vh, 440px);

        aspect-ratio: 5 / 4;

    }



    .proyectos-hero__stages {

        top: 2%;

        left: 50%;

        width: 92%;

    }



    .proyectos-hero__stage-stem {

        height: 28px;

    }



    .proyectos-hero__drag-hint {

        bottom: 4%;

        left: 50%;

    }



    .proyectos-hero .hero__stats.proyectos-hero__stats {

        position: static;

        right: auto;

        bottom: auto;

        left: auto;

        width: 100%;

        margin-top: 8px;

        grid-template-columns: 1fr 1fr;

        gap: 12px 0;

        opacity: 1;

    }



    .proyectos-hero .hero__stats.proyectos-hero__stats .stat {

        padding: 0 8px 12px;

    }

}



@media (prefers-reduced-motion: reduce) {

    .proyectos-hero .hero__stats.proyectos-hero__stats {

        box-shadow: none;

    }

}

