/* ============================================================
   DAMIÁN GUIDONE — Portafolio profesional
   Paleta: navy #131C2A / surface #1B2638 / border #2D3D54
   Texto #F8FAFC / secundario #94A3B8 / acento #38BDF8
   ============================================================ */

:root {
    color-scheme: dark;
    --bg: #131C2A;
    --bg-deep: #0F1724;
    --surface: #1B2638;
    --surface-hover: #1F2C40;
    --border: #2D3D54;
    --border-soft: #24334A;
    --text: #F8FAFC;
    --muted: #94A3B8;
    --accent: #38BDF8;
    --accent-light: #7DD3FC;
    --accent-dim: rgba(56, 189, 248, 0.10);
    --accent-line: rgba(56, 189, 248, 0.38);

    --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    --container: 1180px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-wrap: pretty;
}
h1, h2, h3 { text-wrap: balance; }
html { scrollbar-color: var(--border) var(--bg-deep); }

::selection { background: rgba(56, 189, 248, 0.28); color: #fff; }

img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.mono { font-family: var(--font-mono); }

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--bg-deep);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- Navbar ---------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(19, 28, 42, 0.88);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
    background: rgba(15, 23, 36, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--accent-line);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .015em;
    white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.nav-cv) {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .18s ease;
    white-space: nowrap;
}
.main-nav > a:not(.nav-cv):hover,
.main-nav > a.is-active { color: var(--text); }
.main-nav > a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--accent-line);
    border-radius: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.nav-cv:hover { background: var(--accent-dim); border-color: var(--accent); }
.nav-cv svg { width: 14px; height: 14px; }
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 88px) 0 92px;
    background:
        radial-gradient(900px 520px at 92% 8%, rgba(56, 189, 248, .055), transparent 65%),
        var(--bg);
}
.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.network-bg {
    position: absolute;
    top: 40px;
    right: -100px;
    width: 640px;
    height: 640px;
    pointer-events: none;
    opacity: .9;
}
.network-bg-left {
    top: 60px;
    right: auto;
    left: -200px;
    width: 520px;
    height: 520px;
    opacity: .75;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 72px;
    align-items: center;
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
}
.eyebrow-rule { width: 34px; height: 1px; background: var(--accent); flex: none; }
.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: .045em;
    white-space: nowrap;
    color: var(--text);
}
.hero h1 span { display: inline-block; }
.hero-role {
    margin: 18px 0 0;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: .015em;
}
.hero-lead {
    max-width: 610px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}
.hero-stack {
    margin: 18px 0 0;
    color: #64748B;
    font-size: 10.5px;
    letter-spacing: .075em;
}
.availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .12em;
}
.availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .10);
    flex: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #0B1526; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent-line); color: var(--accent-light); background: var(--accent-dim); }
.btn-full { width: 100%; }

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 42px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.hero-facts > div { min-width: 0; }
.hero-facts dt {
    color: #64748B;
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hero-facts dd {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}
.hero-facts dd span { color: var(--text); font-size: 19px; font-weight: 600; margin-right: 4px; }

.hero-visual { position: relative; width: 100%; max-width: 440px; margin-left: auto; }
.portrait-frame {
    position: relative;
    padding: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
}
.portrait-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 7px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
    pointer-events: none;
}
.portrait-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 3px;
    filter: saturate(.85) contrast(1.03);
}
.corner { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 7px 0 0 0; }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 7px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 0 0 0 7px; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 0 7px 0; }
.portrait-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 2px 0;
    color: var(--muted);
    font-size: 9.5px;
    letter-spacing: .11em;
}
.caption-node { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.caption-loc { margin-left: auto; color: #64748B; }

/* ---------------- Franja de trayectoria ---------------- */
.cred-strip {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 36, .6);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.cred-inner {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding-top: 18px;
    padding-bottom: 18px;
}
.cred-label {
    padding-right: 30px;
    color: #64748B;
    font-size: 9px;
    letter-spacing: .14em;
    white-space: nowrap;
}
.cred-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 24px;
    border-left: 1px solid var(--border);
    min-width: 0;
}
.cred-item strong {
    color: #CBD5E1;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
}
.cred-item span {
    color: #5B6B82;
    font-size: 8px;
    letter-spacing: .06em;
}
.cred-item--since strong { color: var(--accent-light); }

/* ---------------- Secciones ---------------- */
.section { position: relative; padding: 98px 0; overflow: hidden; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { position: relative; z-index: 1; margin-bottom: 44px; }
.section-label {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: .18em;
}
.section-title-line { display: flex; align-items: center; gap: 22px; }
.section-title-line h2 {
    margin: 0;
    flex: none;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.7vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.line-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 60px; }
.line-wrap::before {
    content: "";
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    flex: none;
    margin-right: -1px;
}
.section-alt .line-wrap::before { background: var(--bg-deep); }
.line-wrap .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-line), var(--border) 30%, var(--border));
}
.line-wrap .node {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text);
    flex: none;
}
.section-intro { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.stack-card:hover,
.case-card:hover { border-color: var(--accent-line); background: var(--surface-hover); transform: translateY(-2px); }

/* ---------------- Core stack ---------------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stack-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 26px 24px 22px;
}
.card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    border: 1px solid var(--accent-line);
    border-radius: 5px;
    background: var(--accent-dim);
    color: var(--accent);
}
.card-icon svg { width: 21px; height: 21px; }
.stack-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .005em;
}
.stack-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips span {
    padding: 5px 7px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 3px;
    background: rgba(56, 189, 248, .055);
    color: var(--accent-light);
    font-size: 9.5px;
    letter-spacing: .045em;
    line-height: 1.3;
}
.card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    color: #64748B;
    font-size: 9px;
    letter-spacing: .07em;
}
.foot-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------------- Rango técnico ---------------- */
.range-block {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(27, 38, 56, .55), rgba(15, 23, 36, .38));
    overflow: hidden;
}
.range-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 22px 14px;
    border-bottom: 1px solid var(--border-soft);
}
.range-title {
    margin: 0;
    color: var(--accent);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .14em;
    white-space: nowrap;
}
.range-head p { margin: 0 0 0 auto; color: #64748B; font-size: 11.5px; }
.range-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.range-item {
    min-width: 0;
    padding: 18px 22px 20px;
    border-left: 1px solid var(--border-soft);
}
.range-item:first-child { border-left: 0; }
.range-item h4 {
    margin: 0 0 10px;
    color: #64748B;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .13em;
}
.range-item ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.range-item li {
    position: relative;
    padding-left: 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.range-item li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 4px;
    height: 1px;
    background: var(--accent);
    opacity: .8;
}
.range-note {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
    border: 1px solid rgba(56, 189, 248, .26);
    border-radius: 3px;
    color: var(--accent-light);
    font-size: 7.5px;
    letter-spacing: .08em;
    line-height: 1.15;
    vertical-align: 1px;
}

/* ---------------- Stack completo (details) ---------------- */
.stack-details {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(27, 38, 56, .45);
    overflow: hidden;
}
.stack-details summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .18s ease;
}
.stack-details summary::-webkit-details-marker { display: none; }
.stack-details summary:hover { background: rgba(56, 189, 248, .035); }
.summary-title {
    color: var(--accent);
    font-size: 9.5px;
    letter-spacing: .14em;
    white-space: nowrap;
}
.summary-desc { color: var(--muted); font-size: 12px; }
.summary-icon {
    width: 17px;
    height: 17px;
    margin-left: auto;
    color: var(--accent);
    flex: none;
    transition: transform .2s ease;
}
.stack-details[open] .summary-icon { transform: rotate(45deg); }
.stack-details-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
    padding: 24px 22px 26px;
    border-top: 1px solid var(--border-soft);
    background: rgba(15, 23, 36, .35);
}
.stack-group h3 {
    margin: 0 0 7px;
    color: #64748B;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .13em;
}
.stack-group p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

/* ---------------- Casos de estudio ---------------- */
.case-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-card { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.case-index { color: var(--accent); font-size: 10px; letter-spacing: .12em; }
.case-domain { color: #64748B; font-size: 8.5px; letter-spacing: .06em; text-align: right; }
.case-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}
.case-role {
    margin: 9px 0 0;
    color: #5B6B82;
    font-size: 8.5px;
    letter-spacing: .075em;
}
.case-card .chips { margin-top: 14px; }
.case-block { margin-top: 22px; }
.case-block h4 {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .14em;
}
.case-block h4::before { content: "■ "; color: var(--accent); font-size: 8px; }
.case-block p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.72; }
.case-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 22px;
    padding: 11px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    background: rgba(15, 23, 36, .55);
    color: #7C8DA6;
    font-size: 8px;
    letter-spacing: .04em;
}
.case-flow b { color: var(--accent); font-weight: 500; }
.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}
.metrics > div { padding-top: 16px; border-top: 1px solid var(--border); min-width: 0; }
.metric-value { display: block; color: var(--text); font-size: 19px; font-weight: 600; line-height: 1.2; }
.metric-label { display: block; margin-top: 5px; color: #64748B; font-size: 8px; letter-spacing: .06em; line-height: 1.45; }

/* Caso destacado */
.case-card--featured {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.case-card--featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-line) 35%, transparent 85%);
    z-index: 1;
}
.case-feature-main { padding: 30px 32px 28px; }
.case-feature-main h3 { font-size: 21px; letter-spacing: -.01em; }
.case-feature-aside {
    display: flex;
    flex-direction: column;
    padding: 30px 28px 28px;
    border-left: 1px solid var(--border);
    background: rgba(15, 23, 36, .35);
}
.aside-label {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 9px;
    letter-spacing: .14em;
}
.flow-stack {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.flow-stack::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 4px;
    width: 1px;
    background: var(--border);
}
.flow-stack li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .015em;
    line-height: 1.55;
}
.flow-stack li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 9px;
    height: 9px;
    border: 1px solid var(--accent-line);
    border-radius: 50%;
    background: var(--bg-deep);
}
.flow-stack li:first-child::before { background: var(--accent); border-color: var(--accent); }
.flow-stack li span { margin-right: 8px; color: var(--accent); font-size: 8.5px; }
.case-feature-aside .metrics { margin-top: auto; }
.case-card--featured .metric-value { font-size: 23px; }
.case-card--featured .metric-label { font-size: 8.5px; }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; z-index: 1; max-width: 880px; padding-left: 40px; }
.timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), var(--border) 18%, var(--border) 82%, transparent);
}
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -37px;
    width: 11px;
    height: 11px;
    border: 1px solid var(--accent);
    background: var(--bg);
    transform: rotate(45deg);
    z-index: 2;
}
.timeline-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(56, 189, 248, .10); }
.timeline-content { padding: 22px 26px; }
.period { margin: 0 0 7px; color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.timeline-content h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}
.company { margin: 4px 0 14px; color: var(--muted); font-size: 12.5px; }
.timeline-content ul { margin: 0; padding-left: 16px; }
.timeline-content li { color: var(--muted); font-size: 12.5px; line-height: 1.72; padding-left: 4px; }
.timeline-content li::marker { color: var(--accent); }
.education-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 880px;
    margin: 28px 0 0 40px;
}
.education-strip > div { padding: 18px 20px; border: 1px solid var(--border-soft); border-radius: 5px; background: rgba(27, 38, 56, .55); }
.education-strip span { color: var(--accent); font-size: 9.5px; letter-spacing: .13em; }
.education-strip p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* ---------------- Contacto ---------------- */
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-lead { max-width: 520px; margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 26px;
    color: #5B6B82;
    font-size: 8.5px;
    letter-spacing: .08em;
}
.contact-links { margin-bottom: 32px; border-top: 1px solid var(--border); }
.contact-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: color .18s ease;
}
.contact-links a:hover strong { color: var(--accent-light); }
.contact-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--accent);
    flex: none;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-links a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-links .mono { color: #64748B; font-size: 9px; letter-spacing: .12em; }
.contact-links strong { font-size: 13.5px; font-weight: 500; color: var(--text); transition: color .18s ease; overflow-wrap: anywhere; }
.contact-fit { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.contact-fit > span { color: var(--accent); font-size: 9px; letter-spacing: .14em; }
.contact-fit ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.contact-fit li { position: relative; padding-left: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.contact-fit li::before { content: ""; position: absolute; top: 9px; left: 0; width: 6px; height: 1px; background: var(--accent); }
.contact-form { padding: 30px; }
.form-title { margin: 0 0 22px; color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-deep);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #5B6B82; }
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .10);
}
.contact-form .btn { margin-top: 6px; }
.form-note { margin: 14px 0 0; color: #64748B; font-size: 9.5px; line-height: 1.6; text-align: center; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0C131F; border-top: 1px solid var(--border-soft); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 48px;
}
.footer-brand p { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-label { margin-bottom: 6px; color: #64748B; font-size: 9.5px; letter-spacing: .14em; }
.footer-col a { color: var(--muted); font-size: 12.5px; transition: color .18s ease; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border-soft);
    color: #5B6B82;
    font-size: 9px;
    letter-spacing: .08em;
}
.footer-bottom a { color: var(--muted); transition: color .18s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .hero-grid { gap: 48px; }
    .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stack-details-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-card--featured { grid-template-columns: 1fr; }
    .case-feature-aside { border-left: 0; border-top: 1px solid var(--border); }
    .case-feature-aside .metrics { margin-top: 24px; }
    .main-nav { gap: 20px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: grid; }
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 32px rgba(0, 0, 0, .35);
    }
    .main-nav.is-open { display: flex; }
    .main-nav > a:not(.nav-cv) { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
    .main-nav > a.is-active { box-shadow: none; color: var(--accent); }
    .nav-cv { align-self: flex-start; margin-top: 16px; }
    .hero { padding-top: calc(var(--header-h) + 64px); }
    .hero h1 { white-space: normal; font-size: clamp(2.1rem, 7vw, 3rem); }
    .hero-grid { grid-template-columns: 1fr; gap: 52px; }
    .hero-visual { max-width: 400px; margin-inline: auto; }
    .network-bg { opacity: .5; right: -200px; }
    .cred-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
    .cred-label { grid-column: 1 / -1; padding-right: 0; }
    .cred-item { padding-left: 0; border-left: 0; }
    .range-head { flex-direction: column; align-items: flex-start; gap: 5px; }
    .range-head p { margin-left: 0; }
    .range-grid { grid-template-columns: 1fr; }
    .range-item { padding: 16px 22px; border-left: 0; border-top: 1px solid var(--border-soft); }
    .range-item:first-child { border-top: 0; }
    .case-grid { grid-template-columns: 1fr; }
    .education-strip { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .container { width: calc(100% - 36px); }
    .brand-name { font-size: 13.5px; }
    .section { padding: 72px 0; }
    .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.6rem); letter-spacing: .035em; line-height: 1.16; }
    .hero h1 span { display: block; }
    .hero-lead { font-size: 14px; }
    .hero-actions .btn { width: 100%; }
    .hero-facts { grid-template-columns: 1fr; gap: 14px; }
    .hero-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
    .hero-facts dd { margin: 0; }
    .stack-grid { grid-template-columns: 1fr; }
    .cred-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
    .cred-label { grid-column: 1 / -1; }
    .cred-item { padding-left: 0; border-left: 0; }
    .range-head { padding: 14px 18px 12px; }
    .range-item { padding: 14px 18px 16px; }
    .range-item li { font-size: 11.5px; }
    .summary-desc { display: none; }
    .stack-details-body { grid-template-columns: 1fr; gap: 20px; }
    .case-feature-main { padding: 24px 20px 22px; }
    .case-feature-aside { padding: 22px 20px; }
    .case-card--featured .metric-value { font-size: 21px; }
    .section-title-line { flex-wrap: wrap; gap: 12px; }
    .section-title-line h2 { flex: 1 0 100%; }
    .line-wrap { flex: 1 0 100%; min-width: 100%; }
    .timeline { padding-left: 28px; }
    .timeline::before { left: 5px; }
    .timeline-item::before { left: -28px; }
    .timeline-content { padding: 18px 20px; }
    .education-strip { grid-template-columns: 1fr; margin-left: 28px; }
    .metrics { grid-template-columns: repeat(3, 1fr); }
    .metric-value { font-size: 16px; }
    .contact-form { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------- Ajustes de contenido 2026 ---------------- */
.hero-facts dd { max-width: 30ch; }
.case-card .case-block p { text-wrap: pretty; }
@media (min-width: 1101px) {
    .stack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   AJUSTES 2026-B — Versión Engineering Manager (Hands-On)
   Qué cambia y por qué:
   1. hero-facts dd: los textos de LIDERAZGO/IA son más largos
      que los del perfil developer anterior; 30ch cortaba frases.
   2. stack-card min-height: las cards de People Leadership e IA
      tienen párrafos de 4 líneas; 320px evita desbordes visuales.
   3. case-card--featured: el Caso 01 ahora tiene 4 case-blocks
      (se sumó "IA EN EL DÍA A DÍA"); se ajusta el aside para que
      los 5 pasos del flujo + 3 métricas no queden apretados.
   4. Caso 02 con 5 case-blocks: se permite que las cards del
      grid de 2 columnas se estiren sin recortar contenido.
   No se modifican colores, tipografías ni estructura responsive.
   ============================================================ */

.hero-facts dd { max-width: 34ch; }

.stack-card { min-height: 320px; }

.case-card { min-height: 0; }

.case-feature-aside { padding: 26px 24px 24px; }
.case-feature-aside .flow-stack { gap: 12px; }

/* La métrica "3×1" y "2 AÑOS" son texto, no solo número:
   se reduce el tamaño para que no rompa el layout del grid. */
.metric-value { letter-spacing: -.01em; }
@media (max-width: 620px) {
    .metric-value { font-size: 15px; }
}