/* hectorob.com · estilos
   Oscuro, sobrio y con un solo acento (lima «señal»). Sin frameworks. */

:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --card: #121215;
  --card-2: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededef;
  --muted: #a1a1aa;
  --dim: #80808a;
  --accent: #c6f432;
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(198, 244, 50, 0.12);
  --accent-line: rgba(198, 244, 50, 0.35);
  --bad: #ff7a6b;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 64px;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
em { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ── Botones ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(198, 244, 50, 0.22); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.26); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }

/* ── Navegación ───────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 11, 0.82); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 14px; font-weight: 500;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-btn { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--dim); transition: color 0.2s, background 0.2s; }
.lang-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.lang-btn:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 9vw, 110px)) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 18% 22%, rgba(198, 244, 50, 0.10), transparent 70%),
    radial-gradient(520px 320px at 88% 30%, rgba(120, 140, 255, 0.07), transparent 70%);
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 40% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 11px; margin-bottom: 28px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }

.hero-title {
  font-size: clamp(44px, 7.2vw, 92px); line-height: 0.98; font-weight: 600;
  letter-spacing: -0.04em; margin-bottom: 26px;
}
.hero-title em, .sec-title em, .contact-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--accent);
}
.hero-lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 620px; line-height: 1.7; margin-bottom: 34px; }
.hero-lead strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.hero-meta li { position: relative; }
.hero-meta li + li::before { content: "/"; position: absolute; left: -14px; color: var(--line-2); }

/* Consola */
.console {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.console-bar b { margin-left: 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); }
.console-body { padding: 20px 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 2; color: var(--text); }
.console-body > p { opacity: 0; animation: line-in 0.35s var(--ease) forwards; }
.console-body > p:nth-child(1) { animation-delay: 0.35s; }
.console-body > p:nth-child(2) { animation-delay: 0.85s; }
.console-body > p:nth-child(3) { animation-delay: 1.05s; }
.console-body > p:nth-child(4) { animation-delay: 1.2s; }
.console-body > p:nth-child(5) { animation-delay: 1.35s; }
.console-body > p:nth-child(6) { animation-delay: 1.5s; }
.console-body > p:nth-child(7) { animation-delay: 1.65s; }
.console-body > p:nth-child(8) { animation-delay: 1.8s; }
.console-body > p:nth-child(9) { animation-delay: 2.05s; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.c-prompt { color: var(--accent); }
.c-ok { color: var(--accent); }
.c-dim { color: var(--dim); }
/* fila «clave ······ valor»: la línea de puntos es el ::before, colocado en medio con order */
.c-row { display: flex; align-items: baseline; gap: 10px; }
.c-row .c-k { order: 1; flex: none; color: var(--muted); }
.c-row .c-v { order: 3; text-align: right; }
.c-row::before {
  content: ""; order: 2; flex: 1; min-width: 12px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.16); transform: translateY(-4px);
}
.c-cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-cap { padding: 11px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* Cifras */
.stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 26px 20px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dd.accent { color: var(--accent); }
.stat dt { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.stats-note { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* ── Secciones ────────────────────────────────────────── */
.section { padding: clamp(84px, 12vw, 144px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow { display: inline-flex; gap: 10px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow span:first-child { color: var(--accent); }
.sec-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.sec-lead { margin-top: 22px; font-size: clamp(16.5px, 1.5vw, 18.5px); color: var(--muted); line-height: 1.7; max-width: 700px; }
.note { margin-top: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

/* ── Diagrama de arquitectura ─────────────────────────── */
.arch { margin-bottom: clamp(48px, 7vw, 80px); }
.arch-net { display: flex; flex-direction: column; align-items: center; }
.arch-node {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; position: relative;
}
.arch-k { font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.arch-v { font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.arch-internet { align-items: center; text-align: center; border-style: dashed; border-color: rgba(255, 122, 107, 0.4); }
.arch-internet .arch-v { color: var(--bad); }
.arch-vpn {
  position: relative; border: 1px dashed var(--accent-line); border-radius: 26px;
  padding: clamp(36px, 5vw, 48px) clamp(16px, 3vw, 32px) clamp(24px, 4vw, 34px);
  background: radial-gradient(120% 90% at 50% 0%, rgba(198, 244, 50, 0.05), transparent 60%);
}
.arch-vpn-label {
  position: absolute; top: -10px; left: 24px; padding: 0 10px; background: var(--bg);
  font-family: var(--mono); font-size: 12px; color: var(--accent); line-height: 20px;
}
.arch-clients { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.arch-sm { min-width: 220px; }
.arch-core { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 230px) minmax(0, 1fr); align-items: center; }
.arch-main { padding: 20px 22px; min-height: 150px; justify-content: flex-end; }
.arch-badge {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--accent-line);
  font-family: var(--mono); font-size: 11px; color: var(--accent);
}
.arch-badge .dot { width: 6px; height: 6px; }
.arch-badge-dim { color: var(--muted); border-color: var(--line-2); }

.arch-wire { position: relative; }
.arch-wire-v { width: 2px; height: 56px; margin: 0 auto; background: linear-gradient(var(--line-2), var(--accent-line)); }
.arch-wire-h { height: 2px; background: linear-gradient(90deg, var(--accent-line), var(--line-2), var(--accent-line)); }
.arch-wire-label {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.arch-blocked { background: linear-gradient(rgba(255, 122, 107, 0.5), rgba(255, 122, 107, 0.1)); height: 50px; }
.arch-x {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: var(--bg); border: 1px solid rgba(255, 122, 107, 0.6); color: var(--bad); font-size: 11px;
}
.pkt {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.arch-wire-v .pkt { left: -3px; animation: pkt-down 2.6s linear infinite; }
.arch-wire-v .pkt-2 { animation-name: pkt-up; animation-delay: -1.3s; }
.arch-wire-h .pkt { top: -3px; animation: pkt-right 2.8s linear infinite; }
.arch-wire-h .pkt-2 { animation-name: pkt-left; animation-delay: -1.4s; }
.pkt-bad { background: var(--bad); box-shadow: 0 0 12px var(--bad); animation: pkt-blocked 2.8s ease-in infinite !important; }
@keyframes pkt-down { 0% { top: -4px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
@keyframes pkt-up { 0% { top: calc(100% - 4px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: -4px; opacity: 0; } }
@keyframes pkt-right { 0% { left: -4px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 4px); opacity: 0; } }
@keyframes pkt-left { 0% { left: calc(100% - 4px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: -4px; opacity: 0; } }
@keyframes pkt-blocked { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 70% { top: calc(100% - 16px); opacity: 1; } 100% { top: calc(100% - 16px); opacity: 0; } }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-bottom: clamp(48px, 7vw, 72px); }
.pillar h3 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pillar li { position: relative; padding: 11px 0 11px 20px; color: var(--muted); font-size: 15px; line-height: 1.6; border-bottom: 1px solid var(--line); }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0.85; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.tile, .proj {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tile::before, .proj::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(198, 244, 50, 0.09), transparent 60%);
}
.tile:hover, .proj:hover { border-color: var(--line-2); }
.tile:hover::before, .proj:hover::before { opacity: 1; }
.t-wide { grid-column: span 2; }
.tile-tag {
  align-self: flex-start; margin-bottom: 18px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.tile h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 560px; }

/* ── Servicios (pestañas) ─────────────────────────────── */
.tablist { display: none; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); margin-bottom: 36px; }
.js .tablist { display: inline-flex; }
.tablist [role="tab"] { padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: background 0.25s, color 0.25s; }
.tablist [role="tab"]:hover { color: var(--text); }
.tablist [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabpanel + .tabpanel { margin-top: 64px; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.tabpanel[hidden] { display: none; }
.js .tabpanel:not([hidden]) { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
/* Rejillas sin huecos: 6 ofertas en 3 columnas (empresas) y 4 en 4 (clientes). */
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; }
#panel-cli .offer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.offer article { border-top: 1px solid var(--line-2); padding-top: 18px; }
.offer h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.offer p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.panel-cta {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  padding: 22px 24px 22px 28px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(198, 244, 50, 0.06), transparent 70%);
}
.panel-cta p { font-size: 17px; font-weight: 500; }

/* ── Método ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step { padding: 6px 26px 8px; border-left: 1px solid var(--line-2); }
.step:first-child { padding-left: 0; border-left: 0; }
.step-n { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 26px; }
.step h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.learning {
  margin-top: clamp(44px, 6vw, 64px); display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  padding: 12px 18px; border: 1px dashed var(--line-2); border-radius: 14px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.learning-k { color: var(--accent); }

/* ── Proyectos ────────────────────────────────────────── */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.proj { padding: 28px 28px 26px; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.proj-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.proj-link { font-family: var(--mono); font-size: 12.5px; color: var(--accent); position: relative; z-index: 1; }
.proj-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.proj h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.proj p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.proj .proj-tags { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ── Stack ────────────────────────────────────────────── */
.stack { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 28px; }
.stack-col h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.stack-col p { font-size: 15px; color: var(--muted); line-height: 1.85; }

/* ── Contacto ─────────────────────────────────────────── */
.contact { position: relative; overflow: hidden; padding: clamp(96px, 14vw, 170px) 0 clamp(80px, 11vw, 130px); border-top: 1px solid var(--line); }
.contact-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 420px at 20% 100%, rgba(198, 244, 50, 0.09), transparent 70%); }
.contact-title { font-size: clamp(64px, 14vw, 184px); line-height: 0.9; font-weight: 600; letter-spacing: -0.055em; margin: 6px 0 28px; }
.contact-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 40px; }
.mail { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 30px; }
.mail-addr {
  font-size: clamp(22px, 3.6vw, 42px); font-weight: 500; letter-spacing: -0.03em;
  text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 8px;
  transition: text-decoration-color 0.2s; overflow-wrap: anywhere;
}
.mail-addr:hover { text-decoration-color: var(--accent); }
.copy-ok { font-family: var(--mono); font-size: 12.5px; color: var(--accent); min-width: 1ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Pie ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.footer-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ── Aparición al hacer scroll ────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .pillars { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer, #panel-cli .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-col:last-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .arch-core { grid-template-columns: 1fr; }
  .arch-wire-h { width: 2px; height: 64px; margin: 0 auto; background: linear-gradient(var(--accent-line), var(--line-2), var(--accent-line)); }
  .arch-wire-h .pkt { top: auto; left: -3px; animation-name: pkt-down; }
  .arch-wire-h .pkt-2 { animation-name: pkt-up; }
  .arch-wire-label { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); white-space: normal; width: 150px; line-height: 1.4; }
  .arch-vpn-label { top: auto; bottom: -10px; }
  .arch-sm { min-width: 0; flex: 1 1 200px; }
  .arch-main { min-height: 0; padding-top: 52px; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:first-child { padding: 20px 14px 18px; border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid var(--line); padding-left: 14px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .offer, #panel-cli .offer { grid-template-columns: 1fr; gap: 24px; }
  .stack { grid-template-columns: 1fr; gap: 26px; }
  .stack-col:last-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step, .step:first-child, .step:nth-child(3) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .step-n { margin-bottom: 10px; }
  .tablist { display: none; }
  .js .tablist { display: flex; width: 100%; }
  .tablist [role="tab"] { flex: 1; padding: 10px 12px; font-size: 14px; }
  .panel-cta { padding: 20px; }
  .panel-cta .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { flex-direction: column; gap: 4px; }
  .hero-meta li + li::before { display: none; }
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .console-body > p { opacity: 1; animation: none; }
  .pkt, .dot-live::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Mientras se traduce al inglés (boot.js), sin destello de español. */
.i18n-pending body { visibility: hidden; }

/* Las dos pestañas ocupan la misma celda: la sección mide lo que la más alta y no salta al cambiar. */
.js .tab-panels { display: grid; }
.js .tab-panels > .tabpanel { grid-area: 1 / 1; }
.js .tab-panels > .tabpanel[hidden] { display: block; visibility: hidden; }
