:root {
    /* Warm parchment palette */
    --bg: #faf9f8;
    --bg-2: #EDE8DF;
    --accent: #0F766E;
    --accent-soft: rgba(15, 118, 110, 0.07);
    --ink: #1C1917;
    --ink-2: #57534E;
    --ink-3: #A8A29E;
    --line: rgba(0, 0, 0, 0.09);
    --line-2: rgba(0, 0, 0, 0.14);
    --glow: 0 4px 28px rgba(15, 118, 110, 0.16);
    --display: "Plus Jakarta Sans", sans-serif;
    --body: "Plus Jakarta Sans", sans-serif;
    --max: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Subtle paper-grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

main {
    overflow-x: hidden;
}

::selection {
    background: rgba(180, 83, 9, 0.14);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

.accent {
    color: var(--accent);
}

/* ── Animation keyframes ── */
@keyframes lineUp {
    from {
        transform: translateY(108%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* ── Hero page-load animations (above-the-fold) ── */
.hero .eyebrow {
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.lw {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
}

.li {
    display: block;
    animation: lineUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-play-state: paused;
}

.hero-ready .li {
    animation-play-state: running;
}

.hero-ready .lw:nth-child(1) .li {
    animation-delay: 0.12s;
}

.hero-ready .lw:nth-child(2) .li {
    animation-delay: 0.26s;
}

.hero-ready .lw:nth-child(3) .li {
    animation-delay: 0.38s;
}

.hero-ready .hero-sub {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-ready .hero-cta {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.hero-sub,
.hero-cta {
    opacity: 0;
}

/* ── Scroll reveal variants ── */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
}

html.js .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

html.js .reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

html.js .reveal-scale {
    opacity: 0;
    transform: scale(0.96);
}

html.js .reveal,
html.js .reveal-left,
html.js .reveal-right,
html.js .reveal-scale {
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal.in,
html.js .reveal-left.in,
html.js .reveal-right.in,
html.js .reveal-scale.in {
    opacity: 1;
    transform: none;
}

/* ── Step number: fades in on reveal ── */
.step .num {
    color: rgba(180, 83, 9, 0);
    transition: color 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.reveal-left.in .num {
    color: rgba(15, 118, 110, 0.10);
}

.step:hover .num {
    color: rgba(15, 118, 109, 0.592) !important;
}

/* ── Project row: amber border grows in ── */
.project {
    position: relative;
}

.project::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project.reveal-right.in::before {
    transform: scaleY(1);
}

/* ── Chip stagger ── */
.chip {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project.reveal-right.in .chip {
    opacity: 1;
    transform: none;
}

.project.reveal-right.in .chip:nth-child(1) {
    transition-delay: 0.25s;
}

.project.reveal-right.in .chip:nth-child(2) {
    transition-delay: 0.35s;
}

.project.reveal-right.in .chip:nth-child(3) {
    transition-delay: 0.45s;
}

/* ── Eyebrow label ── */
.eyebrow {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: .5;
}

/* ── Nav ── */
header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);

    transition: border-color .3s, background .3s;
}

header.scrolled {
    border-bottom-color: var(--line);
}

.nav {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 30px;
    width: auto;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    font-size: 14.5px;
    color: var(--ink-2);
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--ink);
}

.btn {
    font-family: var(--body);
    font-weight: 500;
    font-size: 14.5px;
    cursor: pointer;
    transition: all .22s cubic-bezier(.2, .6, .2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Outline amber button */
.btn-primary {
    background: #0F766E;
    color: #fff;
    border: none;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary:hover {
    color: #0F766E;
}

.btn-primary::after {
    content: "";
    background: #F0FAF9;
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::after {
    transform: skewX(-45deg) scale(1, 1);
}

.btn-primary {
    padding: 10px 20px;
}

.nav .btn-primary {
    margin-left: 1.2em;

}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
}

.lang-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    margin-left: auto;

}

.lt-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    transition: color .3s;
    user-select: none;
    width: 20px;
    text-align: center;
}

.toggle {
    isolation: isolate;
    position: relative;
    height: 20px;
    width: 35px;
    border-radius: 13px;
    overflow: hidden;
    box-shadow:
        -6px -3px 7px 0px #ffffff,
        6px 3px 10px 0px #c8c0b8,
        3px 3px 4px 0px #c8c0b8 inset,
        -3px -3px 4px 0px #ffffff inset;
}

.toggle-state {
    display: none;
}

.indicator {
    height: 100%;
    width: 200%;
    background: var(--bg-2);
    border-radius: 13px;
    transform: translate3d(-75%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
    box-shadow: -6px -3px 7px 0px #ffffff, 6px 3px 10px 0px #c8c0b8;
}

.toggle-state:checked~.indicator {
    transform: translate3d(25%, 0, 0);
}

/* ── Hero ── */
/*
 * Background image: editorial split — background color on left (text area),
 * image dissolves in from the right. Replace the Unsplash URL with your own.
 */
.hero {
    position: relative;
    padding: 60px 0 120px;
    text-align: left;
    overflow: hidden;
    background-image:
        linear-gradient(to right,
            #F4F8FB 30%,
            rgba(249, 247, 243, 0.76) 52%,
            rgba(249, 247, 243, 0.08) 100%),
        url('img/image3.png');
    background-size: cover;
    background-position: center;
}

/* Warm amber atmosphere top-left */
.hero::before {
    content: "";
    position: absolute;
    inset: -10% 0 0 0;
    z-index: 0;
    background: radial-gradient(ellipse 55% 55% at 0% -5%, rgba(180, 83, 9, 0.05), transparent 68%);
    pointer-events: none;
}

/* Dot grid removed — image provides the depth */
.hero::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 0;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(48px, 8vw, 90px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 18ch;
    margin: 28px 0 0;
    text-wrap: balance;
}

.hero p.sub {
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--ink-2);
    max-width: 52ch;
    margin: 32px 0 0;
    line-height: 1.68;
    text-wrap: pretty;
}

.hero-cta {
    margin-top: 46px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.hero-logos img {
    height: 26px;
    filter: grayscale(100%) opacity(0.3);
    transition: opacity .2s;
}

.hero-logos img:hover {
    filter: grayscale(100%) opacity(0.55);
}

.btn-ghost {
    color: var(--ink-2);
    padding: 11px 4px;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
}

.btn-ghost:hover {
    color: var(--ink);
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
    transition: transform .22s;
}

.btn-ghost:hover svg {
    transform: translateX(3px);
}

/* ── Section frame ── */

#proceso {
    padding: 90px 0;
}

#proyectos {
    padding: 90px 0 110px;
}

#nosotros {
    padding: 100px 0;
}

.contact {
    padding: 110px 0;
}

.sec-head {
    max-width: 60ch;
    margin-bottom: 64px;
}

.sec-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 20px;
    text-wrap: balance;
}

/* ── Steps ── */
.steps {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.step {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 0;
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
    transition: background .3s;
}

.step:hover {
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.03), transparent 60%);
}

.step .num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 100px;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(180, 83, 9, 0.10);
    transition: color .4s;
    user-select: none;
}

.step:hover .num {
    color: rgba(180, 83, 9, 0.20);
}

.step-content {
    padding-top: 12px;
}

.step h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--ink-2);
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 58ch;
}

/* ── Projects ── */
.projects {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
}

.project {
    display: grid;
    grid-template-columns: 200px 1fr 260px;
    gap: 40px;
    align-items: center;
    padding: 40px 10px 40px 20px;
    border-bottom: 1px solid var(--line);
    transition: background .3s, padding .3s;
}

.project:hover {
    background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}

.project .pname {
    font-family: var(--display);
    font-weight: 600;
    font-size: 27px;
    letter-spacing: -0.015em;
}

.project .pdesc {
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.6;
}

.project .pmeta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 168px;
}

.project .industry {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.project .stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 400;
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 0;
    padding: 4px 10px;
    background: rgba(180, 83, 9, 0.04);
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 72px;
    align-items: end;
}

.about-grid .lead {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(22px, 2.7vw, 32px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

.about-grid .lead .amber {
    font-weight: 600;
}

.founder {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 30px;
    background: var(--bg-2);
}

.founder .avatar {
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.founder .fname {
    font-family: var(--display);
    font-weight: 600;
    font-size: 18px;
}

.founder .frole {
    color: var(--accent);
    font-size: 13.5px;
    margin-top: 4px;
}

.founder .fnote {
    color: var(--ink-3);
    font-size: 13.5px;
    margin-top: 10px;
}

/* ── Contact ── */
.contact {
    border-top: 1px solid var(--line);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.contact .csub {
    color: var(--ink-2);
    margin-top: 22px;
    font-size: 16.5px;
    line-height: 1.6;
    max-width: 42ch;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 9px;
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--ink);
    font-family: var(--body);
    font-size: 15.5px;
    font-weight: 300;
    transition: border-color .25s, box-shadow .25s;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(180, 83, 9, 0.4);
    box-shadow: var(--glow);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-3);
}

/* Solid amber CTA — white text for contrast */
form .btn-primary {
    align-self: flex-start;
    padding: 14px 30px;
    font-size: 15px;
    background: var(--accent);
    color: #FFF8EE;
    border-color: var(--accent);
    border-radius: 6px;
}

form .btn-primary:hover {
    background: #0D9488;
    border-color: #0D9488;
    box-shadow: var(--glow);
}

.form-ok {
    color: var(--accent);
    font-size: 14.5px;
    display: none;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--line);
    padding: 54px 0;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.foot .loc {
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.6;
}

.foot .dom {
    color: var(--ink-2);
    font-size: 14px;
    transition: color .2s;
}

.foot .dom:hover {
    color: var(--accent);
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.socials a {
    color: var(--ink-3);
    display: inline-flex;
    transition: color .2s;
}

.socials a:hover {
    color: var(--ink);
}

.socials svg {
    width: 19px;
    height: 19px;
}

/* ── Mobile nav panel + backdrop ── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 55;
}



/* ── Responsive ── */
@media (max-width: 900px) {


    .step {
        grid-template-columns: 100px 1fr;
    }

    .step .num {
        font-size: 72px;
    }

    .about-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
        padding: 30px 8px;
    }

    .project .pmeta {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .menu-toggle {
        display: inline-flex;
        z-index: 61;
        margin-left: 10px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100svh;
        width: min(80vw, 320px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-left: 1px solid var(--line);
        padding: 92px 28px 28px;
        z-index: 60;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .34s cubic-bezier(.2, .6, .2, 1),
            visibility 0s linear .34s;
    }

    .nav-links.open {
        transform: none;
        visibility: visible;
        transition: transform .34s cubic-bezier(.2, .6, .2, 1),
            visibility 0s linear 0s;
    }

    .nav-links a {
        font-size: 17px;
        padding: 17px 0;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
    }
}


@media (max-width: 620px) {
    .wrap {
        padding: 0 22px;
    }

    .hero {
        padding: 100px 0 90px;
        background-image:
            linear-gradient(to bottom,
                rgba(249, 247, 243, 0.82) 0%,
                rgba(249, 247, 243, 0.35) 100%),
            url("img/image3.png");
        ;
    }

    #proceso,
    #proyectos,
    #nosotros,
    .contact {
        padding: 74px 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .step .num {
        font-size: 56px;
    }

    .step-content {
        padding-top: 0;
    }

    .nav .btn-primary {
        display: none;
    }
}