/* =========================================================
   Oscar Salazar · oscarsalazarg.com · v3
   Negro + amarillo señalización · tipografía técnica
   ========================================================= */
:root {
  --black: #070707;
  --ink: #0d0d0d;
  --panel: #121212;
  --panel-2: #171717;
  --line: #262626;
  --line-soft: #1b1b1b;
  --yellow: #FFD600;
  --yellow-2: #FFE34D;
  --yellow-dim: rgba(255, 214, 0, .12);
  --white: #F2F2F2;
  --muted: #a6a6a6;
  --faint: #6a6a6a;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --title: 'Syncopate', 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --side: 64px;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--black); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--black); padding: 10px 16px; z-index: 10000; font-family: var(--mono); }
.skip:focus { left: 10px; top: 10px; }

/* Grano sutil en toda la página */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor (solo mouse) ---------- */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor * { cursor: none !important; }
  .cursor { display: block; position: fixed; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--yellow); border-radius: 50%; pointer-events: none; z-index: 9999; }
  .cursor-ring { display: block; position: fixed; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 214, 0, .55); border-radius: 50%; pointer-events: none; z-index: 9998; transition: width .2s, height .2s, margin .2s, background .2s, border-color .2s; }
  .cursor-ring.hovered { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 214, 0, .08); border-color: var(--yellow); }
}

/* ---------- Barra lateral ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); border-right: 1px solid var(--line);
  background: var(--black); z-index: 90; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 96px 0 26px;
}
.sidebar .vert { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--faint); white-space: nowrap; }
.sidebar .vert b { color: var(--yellow); font-weight: 400; }
.progress { width: 2px; flex: 1; margin: 28px 0; background: var(--line); position: relative; }
.progress i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.socials-side { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.socials-side a { font-family: var(--mono); font-size: 11px; color: var(--muted); text-decoration: none; }
.socials-side a:hover { color: var(--yellow); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: var(--side); right: 0; height: 68px; z-index: 95;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(var(--pad), calc((100vw - var(--side) - var(--max)) / 2 + var(--pad)));
  background: rgba(7, 7, 7, .78); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; background: var(--yellow); color: var(--black); display: grid; place-items: center; font-family: var(--title); font-size: 12px; letter-spacing: 0; }
.brand .txt { font-family: var(--title); font-size: 12px; letter-spacing: 2px; white-space: nowrap; }
.brand .txt span { color: var(--yellow); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-decoration: none; color: var(--muted); text-transform: uppercase; transition: color .2s; position: relative; }
.nav a:not(.lang):not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--yellow); transition: right .25s; }
.nav a:hover, .nav a.active { color: var(--yellow); }
.nav a.active::after, .nav a:hover::after { right: 0; }
.nav .lang { border: 1px solid var(--line); padding: 6px 10px; color: var(--white); }
.nav .lang:hover { border-color: var(--yellow); }
.nav .nav-cta { background: var(--yellow); color: var(--black); padding: 9px 16px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--white); color: var(--black); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--white); font-family: var(--mono); font-size: 12px; padding: 9px 13px; letter-spacing: 1px; }

/* ---------- Layout ---------- */
main { margin-left: var(--side); position: relative; z-index: 2; }
.wrap { padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; width: 100%; box-sizing: border-box; }
section { padding: clamp(84px, 11vw, 150px) 0; border-bottom: 1px dashed var(--line); position: relative; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 60px; }
.sec-head p { max-width: 520px; color: var(--muted); margin: 0; }
.sec-index { position: absolute; right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); top: 24px; font-family: var(--title); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px #1d1d1d; pointer-events: none; user-select: none; }

h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--title); text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.8rem); line-height: 1; color: var(--yellow); }
h2 .out { color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; color: var(--yellow); border: 1px solid var(--yellow); padding: 5px 10px; margin-bottom: 24px; letter-spacing: 1px; }
.tag::before { content: ''; width: 6px; height: 6px; background: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 32px; background: var(--yellow); color: var(--black);
  text-decoration: none; font-weight: 700; font-family: var(--mono); font-size: .92rem; letter-spacing: .5px; border: 2px solid var(--yellow);
  transition: background .25s, color .25s, letter-spacing .25s, box-shadow .25s; position: relative;
}
.btn:hover { background: var(--white); border-color: var(--white); letter-spacing: 1.5px; box-shadow: 6px 6px 0 var(--yellow-dim); }
.btn.ghost { background: transparent; color: var(--yellow); }
.btn.ghost:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn.dark { background: var(--black); color: var(--yellow); border-color: var(--black); }
.btn.dark:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 130px; padding-bottom: 90px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after { content: ''; position: absolute; width: 640px; height: 640px; right: max(-120px, calc((100% - var(--max)) / 2 - 120px)); top: 6%; z-index: -1; background: radial-gradient(circle, rgba(255, 214, 0, .16), transparent 62%); filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%; }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 28px; border: 1px solid var(--line); padding: 8px 14px; background: rgba(13, 13, 13, .7); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 0 0 rgba(46, 230, 107, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 107, 0); } }
.hero .hello { font-family: var(--mono); color: var(--yellow); font-size: .95rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: .9; }
.hero h1 .l2 { display: block; color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero h1 .l3 { display: block; color: var(--yellow); }
.hero .lead { font-size: clamp(1.05rem, 1.45vw, 1.28rem); color: #cfcfcf; max-width: 640px; margin: 32px 0 0; }
.hero .lead strong { color: var(--white); }
.typed-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 24px; font-family: var(--mono); font-size: .95rem; color: var(--muted); }
.typed { color: var(--yellow); min-height: 1.6em; }
.typed::after { content: '▌'; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.photo { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.photo .frame { position: relative; }
.photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(100%) contrast(115%) brightness(.92); transition: filter .5s, transform .5s; position: relative; z-index: 1; }
.photo .frame::after { content: ''; position: absolute; inset: 0; transform: translate(20px, 20px); border: 1px solid var(--yellow); z-index: 0; transition: transform .4s; }
.photo:hover img { filter: none; }
.photo:hover .frame::after { transform: translate(12px, 12px); }
.photo .badge { position: absolute; left: -26px; bottom: 34px; z-index: 2; background: var(--yellow); color: var(--black); font-family: var(--mono); font-size: .78rem; font-weight: 700; padding: 11px 15px; line-height: 1.4; box-shadow: 6px 6px 0 rgba(0, 0, 0, .5); }
.photo .chip { position: absolute; right: -14px; top: 28px; z-index: 2; background: var(--black); border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; padding: 8px 12px; color: var(--muted); }
.photo .chip b { color: var(--yellow); font-weight: 400; }

.scroll-hint { position: absolute; left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); bottom: 28px; font-family: var(--mono); font-size: .72rem; color: var(--faint); letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--yellow), transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Franja amarilla ---------- */
.ticker { background: var(--yellow); color: var(--black); overflow: hidden; border-top: 1px solid var(--yellow); position: relative; z-index: 2; margin-left: var(--side); transform: rotate(-1.2deg); margin-top: -20px; margin-bottom: -10px; }
.ticker .track { display: flex; width: max-content; animation: slide 38s linear infinite; padding: 16px 0; }
.ticker span { font-family: var(--title); font-size: clamp(.95rem, 1.6vw, 1.25rem); white-space: nowrap; padding-right: 44px; }
.ticker span::after { content: '✦'; margin-left: 44px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Ahora mismo (bento) ---------- */
.now { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--ink); border: 1px solid var(--line); padding: 28px 26px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s; }
.tile:hover { border-color: var(--yellow); transform: translateY(-3px); }
.tile .k { font-family: var(--mono); font-size: .72rem; letter-spacing: 1.5px; color: var(--faint); text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.tile .k b { color: #2ee66b; font-weight: 400; }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin: 16px 0 6px; line-height: 1.15; }
.tile .role { font-family: var(--mono); color: var(--yellow); font-size: .85rem; }
.tile p { color: var(--muted); margin: 14px 0 0; font-size: .95rem; }
.tile.big { grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(160deg, #141414, #0b0b0b); }
.tile.big h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.tile.big .glyph { margin-top: auto; padding-top: 30px; font-family: var(--title); font-size: clamp(5rem, 11vw, 9rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--yellow); opacity: .55; }
.tile.mid { grid-column: span 3; }
.tile.third { grid-column: span 2; }
.tile .go { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: .85rem; font-weight: 700; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.tile.yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.tile.yellow .k, .tile.yellow .role, .tile.yellow p { color: #2b2500; }
.tile.yellow .k b { color: #0a6b2b; }
.tile.yellow:hover { border-color: var(--white); }

/* ---------- Perfil ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-text p { font-size: 1.12rem; color: #cfcfcf; margin: 0 0 20px; }
.about-text .big-quote { font-size: clamp(1.35rem, 2.1vw, 1.75rem); color: var(--white); line-height: 1.4; margin-bottom: 28px; }
.about-text mark { background: none; color: var(--yellow); }
.terminal { background: #0a0a0a; border: 1px solid var(--line); font-family: var(--mono); font-size: .86rem; }
.terminal .bar { display: flex; gap: 7px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .72rem; }
.terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.terminal .bar i:first-child { background: var(--yellow); }
.terminal .bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 22px 20px; white-space: pre-wrap; color: #cfcfcf; line-height: 1.75; }
.terminal .c { color: var(--faint); } .terminal .y { color: var(--yellow); } .terminal .g { color: #2ee66b; } .terminal .w { color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 70px; }
.stat { padding: 32px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--title); font-size: clamp(2.2rem, 4.2vw, 3.4rem); color: var(--yellow); line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* ---------- Clientes / marcas ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 24px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; transition: background .25s; position: relative; }
.client:hover { background: var(--panel); }
.client strong { font-family: var(--title); font-size: clamp(.95rem, 1.4vw, 1.2rem); line-height: 1.25; color: #d8d8d8; transition: color .25s; }
.client:hover strong { color: var(--yellow); }
.client small { font-family: var(--mono); font-size: .72rem; color: var(--faint); letter-spacing: .5px; margin-top: 18px; }
.client small b { color: var(--yellow); font-weight: 400; }
.client .now-dot { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: .62rem; color: #2ee66b; letter-spacing: 1px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 28px 30px; transition: background .3s; position: relative; overflow: hidden; }
.service::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--yellow); transition: width .35s; }
.service:hover { background: var(--panel); }
.service:hover::before { width: 100%; }
.service .num { font-family: var(--mono); font-size: .78rem; color: var(--faint); display: flex; justify-content: space-between; }
.service .ico { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; margin: 22px 0 18px; color: var(--yellow); transition: background .3s, color .3s; }
.service:hover .ico { background: var(--yellow); color: var(--black); }
.service .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.service h3 { font-family: var(--mono); font-size: 1.02rem; color: var(--white); margin: 0 0 12px; line-height: 1.35; }
.service p { margin: 0 0 18px; color: #b5b5b5; font-size: .94rem; }
.service ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-family: var(--mono); font-size: .68rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: none; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .76rem; padding: 9px 14px; letter-spacing: .5px; transition: all .2s; }
.filters button:hover { color: var(--white); border-color: var(--white); }
.filters button.on { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.project { grid-column: span 2; border: 1px solid var(--line); background: var(--ink); display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.project.wide { grid-column: span 3; }
.project:hover { border-color: var(--yellow); transform: translateY(-4px); }
.project.hide { display: none; }
.project .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; color: var(--faint); }
.project .bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; flex: none; }
.project .bar i:first-child { background: var(--yellow); }
.project .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project .bar em { margin-left: auto; font-style: normal; color: #2ee66b; white-space: nowrap; }
.project .body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.project .kind { font-family: var(--mono); font-size: .72rem; color: var(--yellow); letter-spacing: 1px; text-transform: uppercase; }
.project h3 { font-size: 1.45rem; margin: 10px 0 6px; line-height: 1.2; }
.project .my-role { font-family: var(--mono); font-size: .8rem; color: var(--white); background: var(--panel-2); border-left: 2px solid var(--yellow); padding: 6px 10px; margin: 8px 0 14px; align-self: flex-start; }
.project p { color: #b5b5b5; margin: 0 0 16px; font-size: .95rem; }
.project ul { margin: 0 0 22px; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.project ul li { margin-bottom: 5px; }
.project ul li::marker { color: var(--yellow); }
.project .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project .stack span { font-family: var(--mono); font-size: .68rem; background: #1a1a1a; border: 1px solid var(--line); padding: 4px 8px; color: #cfcfcf; }
.project .link { margin-top: 20px; font-family: var(--mono); font-size: .84rem; color: var(--yellow); text-decoration: none; align-self: flex-start; border-bottom: 1px solid transparent; }
.project .link:hover { border-bottom-color: var(--yellow); }
.project .link.off { color: var(--faint); }

.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--yellow); background: linear-gradient(135deg, #131100 0%, #0b0b0b 55%); }
.featured .body { padding: clamp(28px, 4vw, 52px); }
.featured h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-family: var(--title); text-transform: uppercase; line-height: 1; margin: 14px 0 6px; }
.featured .slogan { font-family: var(--mono); color: var(--yellow); margin-bottom: 18px; }
.featured .visual { border-left: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); display: flex; align-items: center; justify-content: center; }
.app { width: 100%; max-width: 380px; background: #0a0a0a; border: 1px solid var(--line); padding: 20px; box-shadow: 18px 18px 0 var(--yellow-dim); }
.app .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; color: var(--faint); margin-bottom: 16px; }
.app .logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-family: var(--title); font-size: .8rem; }
.app .logo i { width: 22px; height: 22px; background: var(--yellow); color: var(--black); display: grid; place-items: center; font-style: normal; font-size: .72rem; }
.app .balance { font-family: var(--title); font-size: 1.6rem; margin: 6px 0 2px; }
.app .lbl { font-family: var(--mono); font-size: .68rem; color: var(--faint); letter-spacing: 1px; }
.app .bars { display: flex; align-items: end; gap: 8px; height: 90px; margin: 20px 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.app .bars i { flex: 1; background: #262626; }
.app .bars i.on { background: var(--yellow); }
.app .row { display: flex; justify-content: space-between; font-size: .85rem; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.app .row span:last-child { font-family: var(--mono); color: var(--muted); }
.app .row .ok { color: #2ee66b !important; }
.app .row .due { color: var(--yellow) !important; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 0 0; position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); display: block; font-family: var(--title); font-size: 2.8rem; color: transparent; -webkit-text-stroke: 1px var(--yellow); margin-bottom: 18px; line-height: 1; }
.step::after { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--yellow); }
.step h3 { font-family: var(--mono); font-size: 1.05rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Trayectoria ---------- */
.job { display: grid; grid-template-columns: 260px 1fr; gap: 44px; padding: 40px 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job:hover .role { color: var(--yellow); }
.job .when { font-family: var(--mono); font-size: .84rem; color: var(--faint); letter-spacing: .5px; }
.job .when b { display: block; color: var(--yellow); font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.job .when .live { display: inline-block; margin-top: 10px; color: #2ee66b; border: 1px solid #1d4a2c; padding: 2px 8px; font-size: .7rem; }
.job .role { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.25; transition: color .25s; }
.job p { color: #bdbdbd; margin: 12px 0 14px; }
.job ul { margin: 0; padding-left: 18px; color: var(--muted); }
.job ul li { margin-bottom: 6px; }
.job ul li::marker { content: '→  '; color: var(--yellow); }
.job .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.job .chips span { font-family: var(--mono); font-size: .68rem; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); }

/* ---------- Habilidades ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 64px; }
.skill-group h3 { font-family: var(--title); font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; display: flex; justify-content: space-between; }
.skill-group h3 span { color: var(--yellow); font-family: var(--mono); font-size: .8rem; font-weight: 400; }
.chips-lg { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-lg span { background: #121212; border: 1px solid var(--line); padding: 9px 15px; font-family: var(--mono); font-size: .84rem; transition: all .2s; }
.chips-lg span:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.langs { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.langs div { font-family: var(--mono); }
.langs b { display: block; color: var(--white); font-size: 1.1rem; }
.langs span { color: var(--faint); font-size: .85rem; }
.meter { width: 200px; height: 4px; background: var(--line); margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--yellow); }

/* ---------- Formación ---------- */
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edu-card { background: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--yellow); padding: 26px 24px; transition: background .25s, transform .25s; }
.edu-card:hover { background: var(--panel); transform: translateY(-3px); }
.edu-card .type { font-family: var(--mono); font-size: .7rem; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; }
.edu-card h3 { font-size: 1.1rem; color: var(--yellow); margin: 10px 0 6px; line-height: 1.3; }
.edu-card .where { font-size: .92rem; color: var(--white); }
.edu-card p { margin: 12px 0 0; color: #8f8f8f; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 1.12rem; font-weight: 500; cursor: pointer; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--yellow); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary { color: var(--yellow); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--yellow); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 680px; }

/* ---------- CTA amarilla ---------- */
.cta-band { background: var(--yellow); color: var(--black); border: none; padding: clamp(60px, 8vw, 110px) 0; overflow: hidden; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; }
.cta-band h2 { color: var(--black); font-size: clamp(2rem, 5.5vw, 4.6rem); }
.cta-band h2 .out { -webkit-text-stroke: 1.5px var(--black); }
.cta-band p { margin: 14px 0 0; font-family: var(--mono); font-size: .9rem; color: #3a3200; }

/* ---------- Contacto ---------- */
#contacto { border-bottom: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact-big { font-family: var(--title); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; color: var(--white); text-transform: uppercase; margin-bottom: 28px; }
.contact-big span { color: var(--yellow); }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; text-decoration: none; transition: color .2s, padding .25s; }
.contact-list a:hover { color: var(--yellow); padding-left: 10px; }
.contact-list small { font-family: var(--mono); font-size: .7rem; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; }
.contact-list strong { font-weight: 500; font-size: 1.08rem; word-break: break-word; text-align: right; }
.form { border: 1px solid var(--line); background: var(--ink); padding: clamp(24px, 3vw, 42px); position: relative; }
.form::before { content: ''; position: absolute; top: -1px; left: -1px; width: 60px; height: 60px; border-top: 3px solid var(--yellow); border-left: 3px solid var(--yellow); }
.form h3 { font-family: var(--mono); font-size: 1rem; color: var(--yellow); margin-bottom: 26px; letter-spacing: 1px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; background: var(--black); border: 1px solid var(--line); color: var(--white); font-family: var(--body); font-size: 1rem; padding: 14px; border-radius: 0; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.form .actions .btn { justify-content: center; padding: 16px 12px; font-size: .85rem; }
.form .note { font-family: var(--mono); font-size: .7rem; color: var(--faint); margin: 14px 0 0; text-align: center; }

/* ---------- Footer ---------- */
footer { margin-left: var(--side); border-top: 1px solid var(--line); position: relative; z-index: 2; overflow: hidden; }
.foot-big { max-width: var(--max); margin: 0 auto; text-align: center; font-family: var(--title); font-size: clamp(2.2rem, 7.4vw, 8.4rem); line-height: .85; color: transparent; -webkit-text-stroke: 1px #252525; white-space: nowrap; padding: 40px var(--pad) 10px; user-select: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 26px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); font-family: var(--mono); font-size: .74rem; color: var(--faint); border-top: 1px solid var(--line-soft); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--yellow); }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 96; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.to-top { position: fixed; right: 30px; bottom: 94px; z-index: 96; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--black); color: var(--yellow); font-family: var(--mono); display: grid; place-items: center; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--yellow); }

/* ---------- Animación ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad); }
.notfound h1 { font-size: clamp(4rem, 14vw, 12rem); color: var(--yellow); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .services, .clients { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project, .project.wide { grid-column: span 1; }
  .nav { gap: 18px; }
}
@media (max-width: 1060px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px; transform: translateY(-130%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
  .nav a::after { display: none; }
  .nav .lang, .nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: none; }
  .menu-btn { display: block; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .now { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.big, .tile.mid, .tile.third { grid-column: span 1; grid-row: auto; }
  .tile.big { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .featured { grid-template-columns: 1fr; }
  .featured .visual { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .sidebar { display: none; }
  .topbar { left: 0; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero-grid, .about-grid, .contact-grid, .faq { grid-template-columns: 1fr; }
  .photo { justify-self: start; max-width: 270px; order: -1; margin-bottom: 14px; }
  .photo .frame::after { transform: translate(12px, 12px); }
  .photo .badge { left: -8px; bottom: 20px; }
  .photo .chip { right: -8px; }
  .scroll-hint { display: none; }
  .skills { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 14px; }
  .sec-index { display: none; }
  .ticker { transform: none; margin: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services, .edu, .steps, .clients, .projects, .now { grid-template-columns: 1fr; }
  .tile.big { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .row2, .form .actions { grid-template-columns: 1fr; }
  .btn { padding: 16px 24px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .hero h1 .l2 { -webkit-text-stroke: 1.5px var(--white); }
  .contact-list a, .contact-list div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-list strong { text-align: left; }
  .client { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .sidebar, .topbar, .wa-float, .to-top, .cursor, .cursor-ring, .form, .ticker, body::before { display: none !important; }
  main, footer { margin: 0; }
}

/* ---------- SEO: h1 de texto + titular visual ---------- */
.hero h1.hello { font-family: var(--mono); font-size: .95rem; line-height: 1.5; color: var(--yellow); text-transform: none; font-weight: 400; letter-spacing: 0; margin-bottom: 14px; max-width: 640px; }
.hero .display { font-family: var(--title); text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: .9; margin: 0; }
.hero .display .l2 { display: block; color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero .display .l3 { display: block; color: var(--yellow); }
@media (max-width: 600px) { .hero .display .l2 { -webkit-text-stroke: 1.5px var(--white); } }

/* ---------- Bloque local / enlaces a servicios ---------- */
.local-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.local-text p { color: #cfcfcf; font-size: 1.08rem; margin: 0 0 18px; }
.local-text strong { color: var(--white); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.areas span { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line); padding: 6px 10px; color: var(--muted); }
.svc-links { display: grid; gap: 14px; }
.svc-link { display: block; border: 1px solid var(--line); background: var(--ink); padding: 24px 26px; text-decoration: none; transition: border-color .25s, transform .25s, background .25s; position: relative; }
.svc-link:hover { border-color: var(--yellow); background: var(--panel); transform: translateX(6px); }
.svc-link small { font-family: var(--mono); font-size: .7rem; color: var(--faint); letter-spacing: 1px; text-transform: uppercase; }
.svc-link h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.svc-link p { margin: 0; color: var(--muted); font-size: .94rem; }
.svc-link::after { content: '→'; position: absolute; right: 24px; top: 24px; font-family: var(--mono); color: var(--yellow); font-size: 1.2rem; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas de servicio ---------- */
.crumbs { font-family: var(--mono); font-size: .75rem; color: var(--faint); margin-bottom: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.svc-hero { min-height: auto; padding-top: 150px; padding-bottom: 90px; }
.svc-hero h1 { font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: .95; max-width: 1000px; }
.svc-hero h1 span { color: var(--yellow); }
.svc-hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #cfcfcf; max-width: 760px; margin: 28px 0 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checklist li { border: 1px solid var(--line); background: var(--ink); padding: 20px 22px 20px 52px; position: relative; color: #cfcfcf; }
.checklist li::before { content: '✓'; position: absolute; left: 20px; top: 19px; color: var(--black); background: var(--yellow); width: 20px; height: 20px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.checklist li strong { color: var(--white); display: block; margin-bottom: 4px; }
.prose { max-width: 820px; }
.prose p { color: #cfcfcf; font-size: 1.08rem; margin: 0 0 18px; }
.prose h3 { font-family: var(--mono); color: var(--yellow); font-size: 1.05rem; margin: 34px 0 10px; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 22px; font-family: var(--mono); font-size: .74rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--yellow); }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
