/* ═══════════════════════════════════════════════════════════════
   GOMECO S.A.S. — Bodegas industriales clase A
   Design: Architectural editorial / Cinematic scroll
   ═══════════════════════════════════════════════════════════════ */

/* ── FONTS (self-hosted, latin subset) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/instrument-serif-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/instrument-serif-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/bebas-neue-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/playfair-display-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS ── */
:root {
    --twilight: #5B6B7F;
    --slate-deep: #485A6E;
    --steel-dark: #3A4D5F;
    --lime: #BFDB38;
    --forest: #1B5E3B;
    --cream: #F5F0E6;
    --charcoal: #2C3A4A;
    --mist: #6B7A8D;
    --warm-white: #FAFAF7;

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-stat: 'Bebas Neue', Impact, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--charcoal);
    background: var(--warm-white);
    overflow-x: hidden;
    line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    position: relative;
}
.btn--lime {
    background: var(--lime);
    color: var(--charcoal);
}
.btn--lime:hover {
    background: #d4ef5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(191, 219, 56, 0.25);
}
.btn--ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 240, 230, 0.25);
}
.btn--ghost:hover {
    border-color: var(--cream);
    background: rgba(245, 240, 230, 0.06);
}
.btn--large {
    padding: 18px 44px;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    transition: all 0.45s var(--ease-out);
}
.nav.is-scrolled {
    padding: 16px 48px;
    background: rgba(44, 58, 74, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav__logo img {
    height: 110px;
    width: auto;
    transition: all 0.3s var(--ease-out);
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav__links a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.65);
    transition: color 0.3s;
}
.nav__links a:hover {
    color: var(--cream);
}
.nav__cta {
    padding: 10px 24px;
    background: rgba(191, 219, 56, 0.12);
    border: 1px solid rgba(191, 219, 56, 0.3);
    color: var(--lime) !important;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out) !important;
}
.nav__cta:hover {
    background: var(--lime) !important;
    color: var(--charcoal) !important;
}
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
}
.nav__burger span {
    display: block;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}
.nav__burger.is-open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
.nav__burger.is-open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(44, 58, 74, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}
.nav-mobile.is-open {
    opacity: 1;
    pointer-events: all;
}
.nav-mobile a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--cream);
    transition: color 0.3s;
}
.nav-mobile a:hover {
    color: var(--lime);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--charcoal);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(191, 219, 56, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(91, 107, 127, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 48px 80px 80px;
    position: relative;
    z-index: 2;
}
.hero__location {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s var(--ease-out) 0.3s forwards;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 7.5rem);
    font-weight: 400;
    line-height: 0.92;
    color: var(--cream);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero__title em {
    font-style: italic;
    color: var(--lime);
}
.hero__actions {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s var(--ease-out) 0.9s forwards;
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero visual (3D placeholder) */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}
.hero__placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__wireframe {
    width: 180%;
    max-width: 1500px;
    height: auto;
    margin-left: -25%;
    object-fit: contain;
    opacity: 0;
    animation: wireframeIn 1.5s var(--ease-out) 0.6s forwards;
}
@keyframes wireframeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero__scanline {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--lime) 50%, transparent 100%);
    opacity: 0.3;
    animation: scanDown 4s ease-in-out infinite;
}
@keyframes scanDown {
    0%, 100% { top: 20%; opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    50% { top: 75%; }
}

/* ═══════════════════════════════════════════════════════════════
   SPECS — Architectural sketch grid
   ═══════════════════════════════════════════════════════════════ */
.specs {
    background: var(--charcoal);
    padding: 0;
    position: relative;
}
.specs__header {
    padding: 40px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.specs__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.08;
    color: var(--cream);
}
/* Toggle button */
.specs__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    border: 1px solid rgba(191, 219, 56, 0.35);
    background: rgba(191, 219, 56, 0.06);
    color: var(--lime);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    flex-shrink: 0;
}
@media (hover: hover) {
    .specs__toggle:hover {
        background: var(--lime);
        color: var(--charcoal);
        border-color: var(--lime);
    }
}
.specs__toggle-icon {
    transition: transform 0.4s var(--ease-out);
}
.specs__toggle.is-open .specs__toggle-icon {
    transform: rotate(45deg);
}
.specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2px;
    row-gap: 0;
    margin: 0 80px;
    background: rgba(107, 122, 141, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s var(--ease-out), opacity 0.6s var(--ease-out), overflow 0s 0.8s;
}
.specs__grid.is-open {
    max-height: 3000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.8s var(--ease-out), opacity 0.6s var(--ease-out), overflow 0s 0s;
}

/* Individual spec card */
.spec {
    background: var(--charcoal);
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    transition: transform 0.5s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
    position: relative;
    transform-origin: center center;
}
.spec:hover {
    background: var(--steel-dark);
    z-index: 10;
    transform: scale(1.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* SVG sketch area */
.spec__sketch {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    overflow: visible;
}
.spec__sketch svg {
    width: 100%;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transform-origin: center center;
}
.spec:hover .spec__sketch svg {
    opacity: 1;
}

/* Data block */
.spec__data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.spec__stat {
    font-family: var(--font-stat);
    font-size: clamp(2.8rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}
.spec__unit {
    font-size: 14px;
    letter-spacing: 1.5px;
    color: var(--lime);
    margin-left: 4px;
    vertical-align: baseline;
}
.spec__copy {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 280px;
}
/* Row divider — second row (items 4-6 in 3-col grid) */
.spec:nth-child(n+4) {
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════════════════════════ */
.proof {
    background: var(--cream);
    padding: 140px 80px;
    position: relative;
}
.proof__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    color: var(--charcoal);
    margin-bottom: 80px;
}

/* ── MARQUEE LOGOS ── */
.marquee {
    overflow: hidden;
    margin-bottom: 32px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee__track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}
.marquee--reverse .marquee__track {
    animation: marqueeScrollReverse 40s linear infinite;
}
.marquee__track img {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.marquee__track img.logo--xl {
    height: 80px;
}
.marquee--reverse .marquee__track img {
    height: 30px;
}
.marquee--reverse .marquee__track img.logo--xl {
    height: 50px;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ── BAVARIA CASE — Trailer / Review Quote style ── */
.proof__case {
    margin-top: 80px;
}
.proof__case-img {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.proof__case-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.7s var(--ease-out);
}
.proof__case:hover .proof__case-img > img {
    transform: scale(1.03);
}
.proof__case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44, 58, 74, 0.3) 0%, rgba(44, 58, 74, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 80px 60px;
}
.proof__case-quote {
    text-align: center;
    max-width: 700px;
}
.proof__case-line {
    width: 60px;
    height: 1px;
    background: var(--lime);
    margin: 0 auto 24px;
    opacity: 0.6;
}
.proof__case-quote .proof__case-line:last-of-type {
    margin: 24px auto;
}
.proof__case-stat {
    font-family: var(--font-stat);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    color: var(--lime);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.proof__case-desc {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.3;
    color: var(--cream);
}
.proof__case-source {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(245, 240, 230, 0.75);
    line-height: 1.4;
}
.proof__case-attribution {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
    margin-top: 8px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */
.stats {
    background: var(--steel-dark);
    padding: 120px 80px 100px;
    text-align: center;
}
/* Big hero stat */
.stats__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}
.stats__big-number {
    font-family: var(--font-stat);
    font-size: clamp(7rem, 14vw, 12rem);
    line-height: 0.85;
    color: var(--lime);
    letter-spacing: 0.02em;
}
.stats__big-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--cream);
    text-align: left;
}
/* Row of secondary stats */
.stats__row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.stat__number {
    font-family: var(--font-stat);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--cream);
    letter-spacing: 0.02em;
}
.stat__unit {
    font-family: var(--font-stat);
    font-size: 1.25rem;
    color: var(--lime);
    letter-spacing: 0.05em;
    margin-top: 2px;
    min-height: 1.5em;
}
.stat__label {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(191, 203, 216, 0.85);
    margin-top: 8px;
    line-height: 1.4;
}
.stat__divider {
    width: 1px;
    height: 80px;
    background: rgba(107, 122, 141, 0.25);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════════ */
.projects {
    background: var(--cream);
}
.project {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    position: relative;
    background: var(--charcoal);
}
.project__media {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}
.project__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.project__info {
    padding: 80px;
    position: relative;
    z-index: 2;
    background: var(--cream);
}
.project__meta {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}
.project__meta span {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-deep);
}
.project__hero-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.project__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}
.project__divider {
    width: 1.5px;
    align-self: stretch;
    background: var(--charcoal);
    opacity: 0.25;
    flex-shrink: 0;
}
.project__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project__stat-num {
    font-family: var(--font-stat);
    font-size: 2.5rem;
    color: var(--charcoal);
    line-height: 1;
}
.project__stat-unit {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-deep);
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.project__top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
}
.project__side-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.project__side-img:hover {
    transform: scale(1.02);
}
.project__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.project__gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.project__gallery img:hover {
    transform: scale(1.02);
}
/* Project "Conoce más" toggle — mirrors .specs__toggle */
.project__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    min-height: 44px;
    margin-top: 32px;
    border: none;
    background: var(--steel-dark);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    margin-top: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
@media (hover: hover) {
    .project__toggle:hover {
        background: var(--lime);
        color: var(--charcoal);
        box-shadow: 0 6px 24px rgba(191, 219, 56, 0.3);
    }
}
.project__toggle-arrow {
    transition: transform 0.4s var(--ease-out);
    display: inline-block;
}
.project__toggle.is-open .project__toggle-arrow {
    transform: rotate(90deg);
}

/* Services grid — mirrors .specs__grid expand */
.project__services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    row-gap: 0;
    background: transparent;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s var(--ease-out), opacity 0.6s var(--ease-out), overflow 0s 0.8s;
    margin-top: 0;
}
.project__services.is-open {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.8s var(--ease-out), opacity 0.6s var(--ease-out), overflow 0s 0s;
    margin-top: 32px;
}

/* Dividers between service cards */
.service + .service {
    border-left: 0.5px solid rgba(255, 255, 255, 0.05);
}
.service:nth-child(3n + 1) {
    border-left: none;
}
.service:nth-child(n+4) {
    border-top: 0.5px solid rgba(255, 255, 255, 0.05);
    border-left: none;
}
/* Lone card on last row — centered in middle column */
.service:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* Service card — mirrors .spec hover-expand */
.service {
    background: var(--charcoal);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: transform 0.5s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
    position: relative;
    transform-origin: center center;
}
.service:hover {
    background: var(--steel-dark);
    z-index: 10;
    transform: scale(1.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.service__sketch {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    overflow: visible;
}
.service__sketch svg {
    width: 100%;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transform-origin: center center;
}
.service:hover .service__sketch svg {
    opacity: 1;
}
.service__label {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.service__desc {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--mist);
    text-align: center;
    line-height: 1.45;
    max-width: 240px;
}

.project--pin {
    border-top: 1px solid rgba(107, 122, 141, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   CORRIDOR — Posicionamiento estratégico
   ═══════════════════════════════════════════════════════════════ */
.corridor {
    background: var(--steel-dark);
    padding: 160px 80px;
    position: relative;
}
.corridor__eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 24px;
}
.corridor__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--cream);
    margin-bottom: 80px;
}
.corridor__title em {
    font-style: italic;
}

/* ── SVG MAP ── */
.corridor__map {
    max-width: 500px;
    margin: 0 auto 100px;
}
.corridor__svg {
    width: 100%;
    height: auto;
}
/* Colombia silhouette — draw animation */
.corridor__colombia {
    stroke-dasharray: 6000;
    stroke-dashoffset: 6000;
    transition: stroke-dashoffset 1.5s var(--ease-out);
}
.corridor__map.is-visible .corridor__colombia {
    stroke-dashoffset: 0;
}
/* Route lines — hidden until triggered */
.corridor__route {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    opacity: 0.7;
    transition: stroke-dashoffset 1.2s var(--ease-out);
}
.corridor__route--1 { transition-delay: 0.4s; }
.corridor__route--2 { transition-delay: 0.6s; }
.corridor__route--3 { transition-delay: 0.8s; }
.corridor__route--4 { transition-delay: 1.0s; }
.corridor__map.is-visible .corridor__route {
    stroke-dashoffset: 0;
}
/* Destination labels — hidden until triggered */
.corridor__label {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}
.corridor__label--1 { transition-delay: 1.0s; }
.corridor__label--2 { transition-delay: 1.2s; }
.corridor__label--3 { transition-delay: 1.4s; }
.corridor__label--4 { transition-delay: 1.6s; }
.corridor__map.is-visible .corridor__label {
    opacity: 1;
}
/* CLIN pulse */
.corridor__pulse {
    opacity: 0;
    transform-origin: center;
    will-change: transform, opacity;
}
.corridor__map.is-visible .corridor__pulse {
    animation: clinPulse 2s ease-in-out infinite;
}
@keyframes clinPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* ── ANTIOQUIA INSET (inside Colombia SVG) ── */
.corridor__antioquia-img {
    filter: invert(1);
    opacity: 0.4;
}
.corridor__antioquia-inset {
    transform-origin: 160px 160px;
    transition: transform 0.5s var(--ease-out);
    cursor: pointer;
}
.corridor__antioquia-inset:hover {
    transform: translate(50px, 850px) scale(1.4);
}

/* ── DATA CARDS GRID ── */
.corridor__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto 100px;
}
.corridor__card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.corridor__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.corridor__card:nth-child(1) { transition-delay: 0s; }
.corridor__card:nth-child(2) { transition-delay: 0.15s; }
.corridor__card:nth-child(3) { transition-delay: 0.3s; }
.corridor__card:nth-child(4) { transition-delay: 0.45s; }
.corridor__card-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 16px;
}
.corridor__card p {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--cream);
    line-height: 1.7;
}

/* ── TIMELINE ── */
.corridor__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0 60px;
}
/* Horizontal line */
.corridor__tl-line {
    position: absolute;
    top: calc(50% + 16px);
    left: 0;
    right: 0;
    height: 1px;
    background: var(--lime);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s var(--ease-out);
}
.corridor__timeline.is-visible .corridor__tl-line {
    transform: scaleX(1);
}
/* CLIN marker (center, above everything) */
.corridor__tl-clin {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out) 0.8s;
}
.corridor__timeline.is-visible .corridor__tl-clin {
    opacity: 1;
}
.corridor__tl-clin-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--lime);
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
    margin-bottom: 6px;
}
.corridor__tl-clin-line {
    display: block;
    width: 1px;
    height: 32px;
    background: var(--lime);
    opacity: 0.4;
}
/* Points container */
.corridor__tl-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 120px;
    margin-top: 48px;
}
/* Individual point */
.corridor__tl-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.corridor__tl-point:nth-child(1) { transition-delay: 0.5s; }
.corridor__tl-point:nth-child(2) { transition-delay: 0.65s; }
.corridor__tl-point:nth-child(3) { transition-delay: 0.8s; }
.corridor__tl-point:nth-child(4) { transition-delay: 0.95s; }
.corridor__tl-point:nth-child(5) { transition-delay: 1.1s; }
.corridor__timeline.is-visible .corridor__tl-point {
    opacity: 1;
    transform: translateY(0);
}
.corridor__tl-year {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 12px;
}
.corridor__tl-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--lime);
    background: transparent;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.corridor__tl-desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--mist);
    line-height: 1.5;
}
/* Active point (Puerto Antioquia) */
.corridor__tl-point--active .corridor__tl-year {
    color: var(--lime);
    font-weight: 600;
}
.corridor__tl-point--active .corridor__tl-dot {
    width: 12px;
    height: 12px;
    background: var(--lime);
    border-color: var(--lime);
}
.corridor__tl-point--active .corridor__tl-desc {
    color: var(--cream);
    font-weight: 500;
}

/* ── SOURCES ── */
.corridor__sources {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--mist);
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: 80px;
}

/* ═══════════════════════════════════════════════════════════════
   SOLAR
   ═══════════════════════════════════════════════════════════════ */
.solar {
    background: var(--steel-dark);
    padding: 160px 80px;
}
.solar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.solar__kicker {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mist);
    margin-bottom: 24px;
}
.solar__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--cream);
    margin-bottom: 40px;
}
.solar__title em {
    font-style: italic;
    color: var(--lime);
}
.solar__proof {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--mist);
    letter-spacing: 1px;
}

/* Photo container */
.solar__photo-container {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}
.solar__layer {
    position: absolute;
    inset: 0;
}
.solar__layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.solar__layer--sketch {
    background: var(--steel-dark);
}
.solar__layer--sketch img {
    filter: grayscale(1) invert(1) contrast(3) brightness(0.2);
    mix-blend-mode: screen;
    opacity: 0.5;
}
.solar__layer--sketch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lime);
    mix-blend-mode: color;
    pointer-events: none;
}
.solar__layer--real {
    clip-path: inset(0 100% 0 0);
}

/* Scan line */
.solar__scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--lime) 20%, var(--lime) 80%, transparent);
    box-shadow: 0 0 12px rgba(191, 219, 56, 0.4);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* Animation keyframes */
@keyframes solarScanSweep {
    0% {
        left: 0;
        opacity: 0.7;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes solarRevealReal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 0);
    }
}

/* Revealed state — triggered by JS */
.solar__photo-container.revealed .solar__scanline {
    animation: solarScanSweep 2.5s var(--ease-in-out) forwards;
}
.solar__photo-container.revealed .solar__layer--real {
    animation: solarRevealReal 2.5s var(--ease-in-out) forwards;
}

/* ═══════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════ */
.cta {
    background: var(--cream);
    padding: 160px 80px;
    text-align: center;
}
.cta__hairline {
    width: 60px;
    height: 1px;
    background: var(--lime);
    margin: 0 auto 48px;
}
.cta__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 56px;
}
.cta__actions {
    display: flex;
    justify-content: center;
}
.cta .btn--lime {
    padding: 20px 52px;
    font-size: 1rem;
    border-radius: 3px;
}
.cta .btn--lime:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(191, 219, 56, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--charcoal);
    padding: 60px 80px 40px;
    border-top: 1px solid rgba(107, 122, 141, 0.12);
}
.footer__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 48px;
}
.footer__brand img {
    opacity: 0.6;
    margin-bottom: 16px;
}
.footer__brand p {
    font-size: 0.8125rem;
    color: var(--cream);
    line-height: 1.6;
}
.footer__link {
    font-size: 0.8125rem;
    color: var(--cream);
    letter-spacing: 0.04em;
    transition: color 0.3s;
}
.footer__link:hover {
    color: var(--lime);
}
.footer__bottom {
    border-top: 1px solid rgba(107, 122, 141, 0.1);
    padding-top: 24px;
}
.footer__bottom p {
    font-size: 0.6875rem;
    color: rgba(245, 240, 230, 0.75);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    .hero__content {
        padding: 120px 40px 60px;
    }
    .hero__visual {
        height: 40vh;
    }
    .hero__wireframe {
        width: 95%;
        max-width: 650px;
        margin-left: 0;
    }
    .specs__header { padding: 80px 40px 40px; flex-wrap: wrap; }
    .specs__grid { margin: 0 40px; grid-template-columns: repeat(2, 1fr); }
    .spec:nth-child(n+4) { border-top: none; }
    .spec:nth-child(n+3) { border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
    .proof { padding: 100px 40px; }
    .stats { padding: 80px 40px; }
    .stats__hero { gap: 20px; }
    .stats__row { gap: 40px; }
    .project__info { padding: 60px 40px; }
    .project__services { grid-template-columns: repeat(2, 1fr); }
    .service:last-child:nth-child(3n + 1) { grid-column: auto; }
    .corridor { padding: 120px 40px; }
    .corridor__grid { gap: 48px; }
    .corridor__timeline { padding: 50px 0; }
    .cta { padding: 120px 40px; }
    .cta__title { margin-bottom: 48px; }
    .footer { padding: 48px 40px 32px; }
    .proof__case-img {
        min-height: 400px;
    }
    .proof__case-overlay {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .nav { padding: 6px 24px; }
    .nav.is-scrolled { padding: 4px 24px; }
    .nav__links { display: none; }
    .nav__burger { display: flex; }

    .hero__content {
        padding: 100px 24px 48px;
        justify-content: flex-end;
    }
    .hero__title {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }
    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }
    .hero__actions .btn {
        text-align: center;
        justify-content: center;
    }
    .hero__visual {
        height: 35vh;
    }

    .specs__header { padding: 60px 24px 32px; }
    .specs__grid { margin: 0 24px; grid-template-columns: 1fr; }
    .specs { padding-bottom: 80px; }
    .spec { padding: 36px 28px; gap: 24px; }
    .spec:nth-child(n+3),
    .spec:nth-child(n+4) { border-top: none; }
    .spec + .spec { border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
    .spec__sketch { max-width: 240px; }

    .proof { padding: 80px 24px; }
    .proof__title { margin-bottom: 48px; }
    .marquee__track img { height: 40px; }
    .marquee--reverse .marquee__track img { height: 28px; }
    .proof__case-img { min-height: 360px; }
    .proof__case-overlay { padding: 40px 24px; }

    .stats { padding: 64px 24px; }
    .stats__hero {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 56px;
    }
    .stats__big-text { text-align: center; }
    .stats__row {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .stat__divider {
        width: 60px;
        height: 1px;
    }

    .project__info { padding: 48px 24px; }
    .project__services { grid-template-columns: 1fr; }
    .service { padding: 36px 28px; gap: 18px; }
    .service__sketch { max-width: 240px; }

    /* Stack vertical: metadata, title, stats, map */
    .project__top-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
    .project__hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 32px;
    }
    .project__divider { display: none; }
    .project__stats {
        flex-direction: row;
        gap: 40px;
    }
    .project__stat-num { font-size: 2rem; }
    .project__side-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .project__gallery {
        grid-template-columns: 1fr;
    }
    .project__gallery img {
        height: 220px;
    }

    /* Solar mobile */
    .solar { padding: 80px 24px; }
    .solar__grid { grid-template-columns: 1fr; gap: 48px; }
    .solar__title { margin-bottom: 24px; }

    /* Corridor mobile */
    .corridor { padding: 100px 24px; }
    .corridor__title { margin-bottom: 56px; }
    .corridor__map { margin-bottom: 64px; }
    .corridor__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 64px;
    }
    .corridor__card p { font-size: 1rem; }
    /* Timeline vertical on mobile */
    .corridor__timeline {
        padding: 40px 0 40px 40px;
    }
    .corridor__tl-line {
        top: 0;
        bottom: 0;
        left: 16px;
        right: auto;
        width: 1px;
        height: auto;
        transform-origin: top;
        transform: scaleY(0);
    }
    .corridor__timeline.is-visible .corridor__tl-line {
        transform: scaleY(1);
    }
    .corridor__tl-clin {
        top: auto;
        bottom: -56px;
        left: 0;
        transform: none;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        max-width: 100%;
    }
    .corridor__tl-clin-line {
        width: 16px;
        height: 1px;
        margin-top: 8px;
        flex-shrink: 0;
    }
    .corridor__tl-clin-label {
        max-width: calc(100vw - 96px);
        text-align: left;
    }
    .corridor__tl-points {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 36px;
    }
    .corridor__tl-point {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        align-items: flex-start;
    }
    .corridor__tl-year {
        min-width: 64px;
        margin-bottom: 0;
        text-align: right;
    }
    .corridor__tl-dot {
        margin-bottom: 0;
        margin-top: 2px;
    }
    .corridor__tl-desc br { display: none; }
    .corridor__sources { margin-top: 56px; }

    .cta { padding: 100px 24px; }
    .cta__title { font-size: clamp(1.75rem, 8vw, 2.5rem); margin-bottom: 40px; }
    .cta__hairline { margin-bottom: 36px; }

    .footer { padding: 40px 24px 24px; }
    .footer__main {
        flex-direction: column;
        gap: 32px;
    }
    .footer__brand p { font-size: 0.875rem; }
    .footer__link {
        font-size: 0.875rem;
        padding: 12px 0;
    }
    .footer__bottom p { font-size: 0.75rem; }

    /* Nav logo smaller on mobile */
    .nav__logo img { height: 40px; }

    /* Timeline text legible */
    .corridor__tl-year { font-size: 0.875rem; }
    .corridor__tl-desc { font-size: 0.875rem; }
    .corridor__tl-clin-label { font-size: 0.875rem; }
    .corridor__sources { font-size: 0.75rem; }

    /* Stats labels mobile contrast */
    .stat__label { font-size: 0.875rem; }

    /* Project gallery aspect ratio */
    .project__gallery img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee__track {
        animation: none !important;
    }
    .corridor__pulse {
        animation: none !important;
        opacity: 0.4 !important;
    }
    .solar__photo-container.revealed .solar__scanline,
    .solar__photo-container.revealed .solar__layer--real {
        animation: none !important;
    }
    .solar__photo-container.revealed .solar__layer--real {
        clip-path: inset(0) !important;
    }
    .solar__scanline {
        display: none !important;
    }
}