:root {
  --bg: #0B1622;
  --surface: #111F2F;
  --surface-2: #16283B;
  --border: rgba(148, 190, 230, .14);
  --border-strong: rgba(148, 190, 230, .28);
  --text: #E6EEF5;
  --muted: #9FB3C8;
  --accent: #2DD4BF;
  --accent-ink: #062A26;
  --accent-soft: rgba(45, 212, 191, .12);
  --warm: #FBBF24;
  --warm-soft: rgba(251, 191, 36, .14);
  --danger: #FF5F57; --yellow: #FEBC2E; --green: #28C840;

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --shadow-glow: 0 0 0 1px rgba(45, 212, 191, .35), 0 12px 40px rgba(45, 212, 191, .12);
  --nav-h: 68px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 var(--s-4); letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
section { padding-block: var(--s-8); }
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.accent { color: var(--accent); }
.warm { color: var(--warm); }

.skip { position: absolute; left: var(--s-4); top: -60px; background: var(--accent); color: var(--accent-ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 200; font-weight: 700; }
.skip:focus { top: var(--s-4); text-decoration: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); padding: .8rem 1.4rem; border-radius: var(--r-pill); font: inherit; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(45, 212, 191, .3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow); }
.icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--s-4); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Fondo interactivo */
#bg-grid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
#cursor-square { display: none; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; width: 28px; height: 28px; border: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 0 18px rgba(45, 212, 191, .45), inset 0 0 12px rgba(45, 212, 191, .15); opacity: 0; transition: opacity .25s, background .2s, border-color .2s, border-radius .2s; will-change: transform, width, height; }
#cursor-square::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: var(--warm); border-radius: 1px; }
#cursor-square.is-visible { opacity: 1; }
#cursor-square.is-hover { background: var(--accent-soft); border-radius: var(--r-md); border-color: var(--warm); }
#cursor-square.is-click { border-color: var(--warm); background: var(--warm-soft); }
@media (pointer: fine) { #cursor-square { display: block; } }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(11, 22, 34, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.brand strong { display: block; font-size: .95rem; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: .75rem; font-family: var(--mono); line-height: 1.2; }
.nav-menu { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--s-5) 1.25rem var(--s-6); display: none; flex-direction: column; gap: var(--s-2); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.nav-menu.open { display: flex; }
.nav-links { display: flex; flex-direction: column; gap: var(--s-1); }
.nav-links a { display: block; padding: .6rem .25rem; color: var(--muted); font-weight: 600; font-size: .95rem; border-radius: var(--r-sm); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-decoration: none; }
.nav-cta { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }
.burger { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, background .25s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding-top: calc(var(--nav-h) + var(--s-8)); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -150px; background: radial-gradient(circle, rgba(45, 212, 191, .14), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; position: relative; }
.tag { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--mono); font-size: .8rem; padding: .4rem .9rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(45, 212, 191, .3); margin-bottom: var(--s-5); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 540px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-6); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); color: var(--muted); font-size: .9rem; }
.badges li { display: flex; align-items: center; gap: var(--s-2); }
.badges svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-card { position: relative; justify-self: center; width: min(100%, 380px); border-radius: 24px; padding: var(--s-3); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 80px rgba(45, 212, 191, .12); }
.hero-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%); background-size: 250% 100%; animation: shine 6s infinite; pointer-events: none; }
.hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.float-chip { position: absolute; padding: .45rem .8rem; font-family: var(--mono); font-size: .75rem; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-pill); box-shadow: var(--shadow); }
.float-chip.a { left: -10px; bottom: 28px; color: var(--accent); }
.float-chip.b { right: -8px; top: 24px; color: var(--warm); }

/* Cifras */
.stats { padding-block: var(--s-7); background: var(--surface); border-block: 1px solid var(--border); }
.about { max-width: 760px; margin: 0 auto var(--s-7); text-align: center; }
.about p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); text-align: center; }
.stat b { display: block; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Cómo trabajo */
.steps3 { display: grid; gap: var(--s-5); }
.step-card { position: relative; }
.step-num { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; color: var(--accent); opacity: .85; line-height: 1; margin-bottom: var(--s-4); }
.step-card p { color: var(--muted); margin: 0; }

/* Valores */
.values { background: linear-gradient(180deg, transparent, rgba(17, 31, 47, .6), transparent); }
.values-grid { display: grid; gap: var(--s-7); align-items: center; }
.value-list { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.value-list li { display: flex; gap: var(--s-4); }
.value-list .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.value-list .tick svg { width: 16px; height: 16px; }
.value-list strong { display: block; }
.value-list span { color: var(--muted); font-size: .95rem; }
.secure { position: relative; border-radius: 20px; padding: var(--s-6); background: var(--surface); border: 1px solid rgba(45, 212, 191, .5); box-shadow: var(--shadow-glow); animation: glow 4s ease-in-out infinite; }
.secure-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.secure-big { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.secure-label { color: var(--muted); margin-bottom: var(--s-5); }
.bar { height: 10px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #5eead4); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.secure.in .bar i { width: var(--w, 90%); }
.secure-foot { display: flex; justify-content: space-between; margin-top: var(--s-3); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.secure-badge { margin-top: var(--s-5); display: inline-block; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--warm-soft); color: var(--warm); font-size: .8rem; font-weight: 700; }

/* Terminal */
.terminal-grid { display: grid; gap: var(--s-7); align-items: start; }
.terminal { background: #08111B; border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: .8rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: var(--danger); } .term-bar i:nth-child(2) { background: var(--yellow); } .term-bar i:nth-child(3) { background: var(--green); }
.term-bar span { margin-left: var(--s-3); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.term-body { padding: var(--s-5); font-family: var(--mono); font-size: .85rem; line-height: 1.8; min-height: 340px; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: var(--text); } .term-body .prompt { color: var(--accent); }
.term-body .out { color: var(--muted); display: block; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.proc-list { display: grid; gap: var(--s-5); counter-reset: p; }
.proc-list li { display: flex; gap: var(--s-4); }
.proc-list .n { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .9rem; background: var(--accent-soft); }
.proc-list h3 { font-size: 1.05rem; margin-bottom: var(--s-1); }
.proc-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Habilidades */
.grid-skills { display: grid; gap: var(--s-4); }
.skill { padding: var(--s-5); transition: transform .25s, border-color .25s, box-shadow .25s; }
.skill:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow), 0 0 30px rgba(45, 212, 191, .1); }
.skill h3 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.skill p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: var(--s-6); padding-left: var(--s-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--border)); }
.job { position: relative; }
.job::before { content: ""; position: absolute; left: calc(-1 * var(--s-6) + 1px); top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.job.current::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.job-date { font-family: var(--mono); font-size: .8rem; color: var(--warm); margin-bottom: var(--s-2); }
.job h3 { margin-bottom: var(--s-1); }
.job .company { color: var(--muted); margin-bottom: var(--s-4); font-weight: 600; }
.job ul { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.job li { position: relative; padding-left: var(--s-5); color: var(--muted); font-size: .95rem; }
.job li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.job li b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips li { padding: .25rem .7rem; font-family: var(--mono); font-size: .75rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(45, 212, 191, .2); }
.chips li::before { display: none; }

/* Perfiles */
.fit-grid, .edu-grid, .why-grid { display: grid; gap: var(--s-5); }
.fit { display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.fit:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.fit ul { display: grid; gap: var(--s-3); margin-block: var(--s-4) var(--s-6); flex: 1; }
.fit li, .edu li { position: relative; padding-left: var(--s-5); color: var(--muted); font-size: .95rem; }
.fit li::before, .edu li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.link-arrow { font-weight: 700; }

/* Formación */
.edu { position: relative; }
.edu.featured { border-color: rgba(251, 191, 36, .55); box-shadow: var(--shadow), 0 0 40px rgba(251, 191, 36, .08); }
.ribbon { position: absolute; top: -13px; right: var(--s-5); background: var(--warm); color: #3a2900; font-weight: 800; font-size: .78rem; padding: .3rem .8rem; border-radius: var(--r-pill); }
.edu .meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: var(--s-4); }
.edu .year { color: var(--warm); font-family: var(--mono); font-size: .85rem; font-weight: 700; }
.edu ul { display: grid; gap: var(--s-3); }
.guarantee { margin-top: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent-soft), var(--warm-soft)); border: 1px solid rgba(45, 212, 191, .35); display: flex; gap: var(--s-4); align-items: flex-start; }
.guarantee svg { flex: none; width: 32px; height: 32px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guarantee p { margin: 0; font-size: 1.1rem; font-weight: 600; }

/* Por qué yo */
.why p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .2s; }
.faq-item:has(button[aria-expanded="true"]) { border-color: rgba(45, 212, 191, .45); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5); background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; font-size: 1.02rem; text-align: left; cursor: pointer; border-radius: var(--r-md); }
.faq-q .plus { flex: none; width: 24px; height: 24px; position: relative; color: var(--accent); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.faq-q .plus::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 var(--s-5) var(--s-5); margin: 0; color: var(--muted); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* CTA */
.cta { text-align: center; }
.cta-box { padding: var(--s-8) var(--s-5); border-radius: 24px; background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, .16), transparent 60%), var(--surface); border: 1px solid var(--border-strong); }
.cta h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); max-width: 800px; margin-inline: auto; }
.cta p { color: var(--muted); font-size: 1.1rem; }
.cta .btn-row { justify-content: center; margin-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: var(--s-8) var(--s-6); background: var(--surface); }
.foot-grid { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
.footer h3 { font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer li { margin-bottom: var(--s-2); }
.footer li a { color: var(--text); }
.footer li a:hover { color: var(--accent); }
.footer p { color: var(--muted); font-size: .95rem; }
.copy { border-top: 1px solid var(--border); padding-top: var(--s-5); color: var(--muted); font-size: .85rem; margin: 0; }

/* Burbuja */
.bubble { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); }
.bubble[hidden] { display: none; }
.bubble-avatar { width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); cursor: pointer; box-shadow: var(--shadow), 0 0 0 6px var(--accent-soft); overflow: hidden; }
.bubble-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bubble-hello { position: relative; background: var(--text); color: var(--bg); padding: .55rem 2rem .55rem .9rem; border-radius: var(--r-md) var(--r-md) 4px var(--r-md); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px) scale(.95); pointer-events: none; transition: opacity .3s, transform .3s; }
.bubble-hello.show { opacity: 1; transform: none; pointer-events: auto; }
.bubble-hello .x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; background: none; font-size: 1rem; color: var(--bg); cursor: pointer; border-radius: 50%; }
.bubble-panel { width: min(320px, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow); display: none; }
.bubble-panel.open { display: block; animation: rise .3s both; }
.bubble-panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-3); }
.bubble-panel header strong { font-size: 1.05rem; }
.bubble-panel header button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: var(--r-sm); }
.bubble-panel p { color: var(--muted); font-size: .9rem; margin-bottom: var(--s-4); }
.bubble-panel .btn { width: 100%; margin-bottom: var(--s-2); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shine { 0% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(45, 212, 191, .6), 0 12px 60px rgba(45, 212, 191, .22); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  #cursor-square { display: none !important; }
  .bar i { width: var(--w, 90%); }
}

/* Tablet */
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps3, .fit-grid, .edu-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-skills { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .timeline { padding-left: var(--s-7); }
  .job::before { left: calc(-1 * var(--s-7) + 1px); }
  .job-head { display: flex; justify-content: space-between; gap: var(--s-4); }
  .bubble { right: var(--s-6); bottom: var(--s-6); }
}

/* Escritorio */
@media (min-width: 980px) {
  section { padding-block: var(--s-9); }
  .burger { display: none; }
  .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: var(--s-5); padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .nav-links { flex-direction: row; gap: var(--s-1); }
  .nav-links a { padding: .5rem .6rem; font-size: .85rem; }
  .nav-cta { flex-direction: row; margin: 0; gap: var(--s-2); }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .values-grid { grid-template-columns: 1.1fr 1fr; }
  .terminal-grid { grid-template-columns: 1.1fr 1fr; }
  .grid-skills { grid-template-columns: repeat(4, 1fr); }
}

/* Impresión */
@media print {
  @page { margin: 1.5cm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #222; --accent: #000; --warm: #000; --border: #bbb; --border-strong: #888; --accent-soft: transparent; --warm-soft: transparent; --shadow: none; --shadow-glow: none; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  #bg-grid, #cursor-square, .header, .bubble, .skip, .hero-card, .hero::before, .btn-row, .cta, .terminal-grid, .burger, .float-chip, .secure, .nav-menu, .ribbon { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  section { padding-block: 14pt; break-inside: avoid-page; }
  .hero { padding-top: 0; }
  .card, .faq-item, .guarantee, .stats { background: #fff; border: 1px solid #bbb; box-shadow: none; }
  .faq-a { grid-template-rows: 1fr; }
  .faq-q .plus { display: none; }
  .grid-skills { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: none; }
  .icon { display: none; }
  .chips li { border: 1px solid #888; color: #000; }
  h1 { font-size: 26pt; } h2 { font-size: 16pt; }
  .job, .edu, .skill, .fit, .why, .card { break-inside: avoid; }
}
