/* ==========================================================================
   victormora.es — v3 / light · monocromo silencioso
   ========================================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; color: inherit; }

/* ----- Tokens ----- */
:root {
    /* Background layers */
    --bg-0: #FAFAFA;    /* base */
    --bg-1: #FFFFFF;    /* surface */
    --bg-2: #F4F4F5;    /* subtle alt */
    --bg-3: #EFEFF1;

    /* Borders */
    --border-1: #EAEAEC;
    --border-2: #DDDDE0;
    --border-3: #C7C7CB;

    /* Foreground */
    --fg:        #0A0A0B;
    --fg-2:      #1F1F23;
    --fg-muted:  #52525B;
    --fg-soft:   #71717A;
    --fg-dim:    #A1A1AA;

    /* Acento mono — el negro hace de acento. Solo un verde sage tranquilo para "disponible" */
    --accent:        #0A0A0B;
    --accent-soft:   #18181B;
    --on-accent:     #FAFAFA;
    --good:          #16A34A;   /* verde sage tranquilo */

    /* Type */
    --font-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Layout */
    --maxw:  1240px;
    --pad-x: clamp(20px, 4vw, 40px);

    /* Radius */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;
    --r-xl: 26px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: var(--fg); color: var(--bg-0); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--fg); color: var(--bg-0);
    padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 9999;
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ----- Body ----- */
body {
    font-family: var(--font-sans);
    background: var(--bg-0);
    color: var(--fg);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.005em;

    /* grid extremadamente sutil sin color */
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    background-attachment: fixed;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 250, 250, 0.7);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border-1);
    background: rgba(250, 250, 250, 0.92);
}

.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 24px;
}

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.brand__bracket { color: var(--fg-dim); }
.brand__name { color: var(--fg); font-weight: 500; }
.brand__cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--fg);
    margin-left: 4px;
    animation: blink 1.1s steps(2, start) infinite;
    vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex; align-items: center; gap: 4px;
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.nav-links a {
    padding: 8px 12px;
    color: var(--fg-muted);
    border-radius: var(--r-sm);
    transition: color .2s ease, background .2s ease;
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--fg); background: rgba(0,0,0,0.04); }
.nav-links a .num { color: var(--fg-dim); margin-right: 6px; }

.nav-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
    background: var(--bg-1);
}
.nav-status .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 0 rgba(22,163,74,0.4);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    70%  { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* mobile toggle */
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    border: 1px solid var(--border-1);
    background: var(--bg-1);
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border-1);
    background: var(--bg-1);
    padding: 12px var(--pad-x) 22px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.mobile-menu a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    color: var(--fg);
    border-bottom: 1px solid var(--border-1);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a .num { color: var(--fg-dim); font-size: 11px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(50px, 9vw, 110px) 0 clamp(60px, 8vw, 100px);
    overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }

.hero__top {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    margin-bottom: 50px;
    color: var(--fg-soft);
}
.hero__top .chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg-1);
}
.hero__top .chip--accent {
    border-color: var(--border-2);
    color: var(--fg);
    background: var(--bg-1);
}
.hero__top .chip .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--good);
}
.hero__top .arrow { color: var(--fg-dim); font-family: var(--font-mono); }

.hero__title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(44px, 8vw, 108px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    color: var(--fg);
    margin-bottom: 32px;
    max-width: 1100px;
}
.hero__title .line { display: block; }
.hero__title .accent {
    color: var(--fg);
    font-weight: 600;
    position: relative;
}
.hero__title .strike {
    color: var(--fg-soft);
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--fg);
}
/* underline sutil bajo "eCommerce propios" */
.hero__title .underline-accent,
.hero__title .accent {
    position: relative;
    display: inline-block;
}
.hero__title .accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--fg);
    opacity: 0.15;
}

.hero__lead {
    max-width: 680px;
    font-size: clamp(15.5px, 1.4vw, 17px);
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}
.hero__lead strong { color: var(--fg); font-weight: 500; }
.hero__lead .accent-text {
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-2);
    padding: 1px 6px;
    border-radius: 4px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 70px; }

/* hero metrics */
.hero__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-1);
    border-bottom: 1px solid var(--border-1);
}
.metric {
    padding: 26px 24px 26px 0;
    border-right: 1px solid var(--border-1);
    position: relative;
    transition: background .3s ease;
}
.metric:last-child { border-right: 0; padding-right: 0; }
.metric:nth-child(n+2) { padding-left: 24px; }
.metric:hover { background: var(--bg-2); }
.metric__lbl {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.metric__lbl::before {
    content: '';
    width: 4px; height: 4px; background: var(--fg);
    border-radius: 50%;
}
.metric__val {
    font-family: var(--font-sans);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--fg);
    display: flex; align-items: baseline; gap: 4px;
}
.metric__val .unit {
    font-size: 0.55em;
    color: var(--fg-soft);
    font-weight: 500;
}
.metric__sub {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-dim);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* hero background — sin glows. Solo un pattern de puntos muy sutil */
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hero__glow { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: transform .25s var(--ease), background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
    will-change: transform;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    letter-spacing: -0.005em;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
    background: var(--fg);
    color: var(--bg-0);
    box-shadow: 0 4px 14px -6px rgba(0,0,0,0.25);
}
.btn--primary:hover {
    background: var(--accent-soft);
    box-shadow: 0 8px 22px -8px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

.btn--ghost {
    background: var(--bg-1);
    color: var(--fg);
    border-color: var(--border-2);
}
.btn--ghost:hover { background: var(--bg-2); border-color: var(--border-3); }

.btn--block { width: 100%; justify-content: center; padding: 14px 18px; }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section + .section { padding-top: clamp(40px, 6vw, 80px); }

.section-head {
    margin-bottom: clamp(38px, 5vw, 60px);
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 40px;
    align-items: end;
    border-bottom: 1px solid var(--border-1);
    padding-bottom: 26px;
}
.section-head__index {
    font-family: var(--font-mono);
    color: var(--fg-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section-head__index .slash { color: var(--fg-dim); margin: 0 6px; }
.section-head__title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--fg);
}
.section-head__title em {
    font-style: normal;
    color: var(--fg-soft);
}

/* ==========================================================================
   ABOUT / NOW
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}
.about-text p {
    font-size: clamp(15.5px, 1.4vw, 17.5px);
    color: var(--fg-muted);
    line-height: 1.65;
}
.about-text p + p { margin-top: 20px; }
.about-text strong { color: var(--fg); font-weight: 500; }
.about-text em {
    font-style: normal;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-2);
    padding: 1px 6px;
    border-radius: 4px;
}

/* "Now" card */
.now-card {
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 24px;
    position: sticky; top: 90px;
    overflow: hidden;
    transition: border-color .3s ease, transform .3s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -22px rgba(0,0,0,0.18);
}
.now-card:hover { border-color: var(--border-2); }
.now-card__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-1);
}
.now-card__head .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-soft);
    display: inline-flex; align-items: center; gap: 8px;
}
.now-card__head .label::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%; background: var(--good);
    box-shadow: 0 0 0 0 rgba(22,163,74,0.4);
    animation: pulse 2.2s infinite;
}
.now-card__head time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-dim);
}

.now-list { display: flex; flex-direction: column; gap: 14px; }
.now-list li {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--fg-muted);
}
.now-list li::before {
    content: '→';
    color: var(--fg);
    font-family: var(--font-mono);
    line-height: 1.5;
}
.now-list strong { color: var(--fg); font-weight: 500; }

/* ==========================================================================
   STACK / BENTO
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 14px;
}
.bento__cell {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 22px;
    overflow: hidden;
    transition: border-color .3s ease, transform .3s var(--ease), background .3s ease, box-shadow .3s ease;
}
.bento__cell:hover {
    border-color: var(--border-2);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 14px 36px -24px rgba(0,0,0,0.20);
    transform: translateY(-2px);
}
.bento__cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
                rgba(0,0,0,0.025), transparent 40%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.bento__cell:hover::before { opacity: 1; }

.bento__index {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-soft);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.bento__title {
    font-family: var(--font-sans);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fg);
    margin-bottom: 8px;
}
.bento__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* tamaños bento */
.bento__cell--wide  { grid-column: span 4; }
.bento__cell--half  { grid-column: span 3; }
.bento__cell--third { grid-column: span 2; }
.bento__cell--full  { grid-column: span 6; }

/* cell variant — subrayado tinta */
.bento__cell--accent {
    background: var(--fg);
    color: var(--bg-0);
    border-color: var(--fg);
}
.bento__cell--accent .bento__index { color: var(--fg-dim); }
.bento__cell--accent .bento__title { color: var(--bg-0); }
.bento__cell--accent .bento__desc { color: rgba(250, 250, 250, 0.78); }
.bento__cell--accent .bento-tags span {
    border-color: rgba(250, 250, 250, 0.18);
    color: rgba(250, 250, 250, 0.85);
    background: transparent;
}

.bento__big {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(40px, 5vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--fg);
    margin-bottom: 6px;
}
.bento__big .unit { color: var(--fg-soft); font-size: 0.55em; vertical-align: 0.4em; margin-left: 2px; }

.bento-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 14px;
}
.bento-tags span {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 9px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    color: var(--fg-muted);
    letter-spacing: 0.02em;
    background: var(--bg-0);
}

/* ==========================================================================
   TIMELINE — track record
   ========================================================================== */
.track {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
}
.track__item {
    display: contents;
}
.track__year {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--fg-soft);
    padding-top: 22px;
    letter-spacing: 0.04em;
}
.track__row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 22px 0;
    border-top: 1px solid var(--border-1);
    transition: padding-left .3s var(--ease), background .3s ease;
    position: relative;
}
.track__item:hover .track__row {
    padding-left: 16px;
    background: linear-gradient(90deg, var(--bg-2), transparent 60%);
}
.track__row::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    width: 0; height: 1px; background: var(--fg);
    transform: translateY(-50%);
    transition: width .3s var(--ease);
}
.track__item:hover .track__row::before { width: 12px; }

.track__title {
    font-family: var(--font-sans);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--fg);
    margin-bottom: 6px;
}
.track__desc { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; max-width: 720px; }

.track__item:last-child .track__row { border-bottom: 1px solid var(--border-1); }
.track__item--current .track__year { color: var(--good); }
.track__item--current .track__year::after {
    content: ' ●';
    color: var(--good);
    animation: blink 1.6s steps(2, start) infinite;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}
.contact-direct {
    margin-top: 28px;
    border-top: 1px solid var(--border-1);
}
.contact-direct li {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-1);
    font-size: 14.5px;
}
.contact-direct__lbl {
    font-family: var(--font-mono);
    color: var(--fg-soft);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.contact-direct a {
    color: var(--fg);
    border-bottom: 1px solid var(--border-2);
    transition: color .25s ease, border-color .25s ease;
    padding-bottom: 1px;
}
.contact-direct a:hover { border-color: var(--fg); }

/* form */
.contact-form-wrap {
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: clamp(24px, 3vw, 36px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 14px 40px -28px rgba(0,0,0,0.18);
}
.contact-form-wrap__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-1);
}
.contact-form-wrap__head .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-soft);
}
.contact-form-wrap__head .label .accent { color: var(--fg); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-soft);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.field label::before { content: '> '; color: var(--fg-dim); }

.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg-0);
    border: 1px solid var(--border-1);
    border-radius: var(--r-sm);
    font-size: 14.5px;
    color: var(--fg);
    font-family: var(--font-sans);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:hover, .field textarea:hover { border-color: var(--border-2); }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--fg);
    background: var(--bg-1);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }

.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; pointer-events: none; }

.form-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-dim);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    margin-bottom: 18px;
    font-size: 14px;
    display: flex; flex-direction: column; gap: 4px;
    border: 1px solid;
}
.alert--ok  { background: #F0FDF4; color: #14532D; border-color: #BBF7D0; }
.alert--err { background: #FEF2F2; color: #7F1D1D; border-color: #FECACA; }
.alert ul { margin-top: 6px; padding-left: 18px; list-style: none; font-size: 13px; }
.alert li::before { content: '✗ '; color: #B91C1C; }
.alert--ok li::before { content: '✓ '; color: var(--good); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-1);
    color: var(--fg-muted);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-1);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-1);
}
.footer-brand .brand { font-size: 14px; }
.footer-tagline {
    margin-top: 16px;
    color: var(--fg-soft);
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 14px;
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    color: var(--fg-muted);
    font-size: 14px;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--fg); }
.footer-col a .arrow { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); margin-left: 4px; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px;
    color: var(--fg-dim);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
}

/* footer wordmark — gris muy claro */
.footer-mark {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(70px, 16vw, 200px);
    letter-spacing: -0.04em;
    line-height: 0.85;
    color: transparent;
    background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    margin-top: 32px;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
}

/* back to top */
.back-to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--bg-1);
    border: 1px solid var(--border-2);
    color: var(--fg);
    display: grid; place-items: center;
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.25);
    opacity: 0; transform: translateY(8px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s var(--ease), background .25s ease, border-color .25s ease;
    z-index: 40;
}
.back-to-top:hover { background: var(--fg); color: var(--bg-0); border-color: var(--fg); }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ==========================================================================
   404
   ========================================================================== */
.error-wrap {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(60px, 12vw, 140px) 0;
}
.error-code {
    font-family: var(--font-mono);
    font-size: clamp(80px, 14vw, 180px);
    line-height: 1;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.error-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}
.error-sub {
    color: var(--fg-soft);
    font-size: 16px;
    margin-bottom: 30px;
    font-family: var(--font-mono);
}
.error-wrap .hero__cta { justify-content: center; }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; }
    .now-card { position: static; }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__cell--wide,
    .bento__cell--half,
    .bento__cell--third,
    .bento__cell--full { grid-column: span 2; }

    .contact-grid { grid-template-columns: 1fr; gap: 36px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .section-head { grid-template-columns: 1fr; gap: 14px; }

    .hero__metrics { grid-template-columns: repeat(2, 1fr); }
    .metric { border-right: 0; padding: 22px 0; border-bottom: 1px solid var(--border-1); }
    .metric:nth-child(n+2) { padding-left: 0; }
    .metric:nth-last-child(-n+2) { border-bottom: 0; }
    .metric:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--border-1); }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-status { display: none; }
    .nav-toggle { display: inline-flex; }

    .mobile-menu.is-open { display: block; }

    .hero__title { font-size: clamp(40px, 12vw, 64px); }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { justify-content: center; }
    .hero__metrics { grid-template-columns: 1fr; }
    .metric:nth-child(2n) { padding-left: 0; border-left: 0; }

    .bento { grid-template-columns: 1fr; }
    .bento__cell--wide,
    .bento__cell--half,
    .bento__cell--third,
    .bento__cell--full { grid-column: span 1; }

    .contact-direct li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

    .track { grid-template-columns: 70px 1fr; gap: 4px; }
    .track__year { padding-top: 18px; font-size: 12px; }

    .back-to-top { right: 14px; bottom: 14px; }
}
