/* ═══════════════════════════════════════════
   TOKENS (Awwwards Brutalist Dark)
═══════════════════════════════════════════ */
:root {
  --bg:       #070709; /* Negro puro casi absoluto */
  --bg2:      #0c0d10; /* Ligeramente más elevado */
  --bg3:      #121418;
  --ink:      #f5f5f5; /* Blanco sucio técnico */
  --accent:   #2954FF; /* Azul Klein ultra vibrante (Awwwards staple) */
  --muted:    #888888;
  --line:     rgba(255, 255, 255, 0.06); /* Grid ultra fino */
  --white:    #ffffff;
  --tr:       0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Curva de animación tensa */
  
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* ═══════════════════════════════════════════
   RESET & RUIDO / BACKGROUNDS
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; font-size: 16px; background: var(--bg); }
html.lenis, html.lenis body { height: auto; width: 100vw; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: transparent; /* <--- Permite ver el canvas que está en z-index -2 */
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Capa de ruido analógico para matar lo digital plano */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Fondo Data Stream (Tech Matrix) */
#canvas-matrix {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  opacity: 0.25; /* Transparencia para que sea sutil */
  pointer-events: none;
}

/* Viñeteado oscuro para asegurar legibilidad en los bordes */
.vignette {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, transparent 20%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; cursor: none; }
button { font-family: inherit; border: none; background: none; cursor: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════
   CURSOR (Mix-Blend-Mode)
═══════════════════════════════════════════ */
#cur, #cur-ring { display: none; }

@media (pointer: fine) {
  #cur {
    display: block; position: fixed; width: 10px; height: 10px;
    background: var(--white); pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.3s var(--tr), height 0.3s var(--tr);
    mix-blend-mode: difference; /* Efecto premium al pasar por texto blanco */
  }
  #cur-ring {
    display: block; position: fixed; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2); pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.3s var(--tr), height 0.3s var(--tr), border-color 0.3s;
  }
  body.ch #cur { width: 6px; height: 6px; }
  body.ch #cur-ring { width: 60px; height: 60px; border-color: rgba(255, 255, 255, 0.6); background: rgba(255,255,255,0.03); backdrop-filter: blur(2px); }
}

/* ═══════════════════════════════════════════
   UNIVERSAL DOCK (Mobile safe)
═══════════════════════════════════════════ */
#universal-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  transition: transform 0.4s var(--tr);
  width: calc(100% - 32px); /* Toma ancho en móvil */
  max-width: max-content; /* Se acoge en escritorio */
}

.dock-inner {
  background: rgba(12, 13, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}

.dock-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 4px;
  flex-shrink: 0;
}
.dock-logo b { color: var(--accent); }

/* Solución para móvil: Contenedor scrolleable que no oculta enlaces */
.dock-links-scroll {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.dock-links-scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.dock-links { 
  display: flex; 
  gap: 4px; 
  width: max-content; 
}

.dock-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}

.dock-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

.dock-cta {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-radius: 100px;
  transition: all 0.3s var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}
.dock-cta:hover { background: var(--accent); color: var(--white); transform: scale(1.02); }

@media (min-width: 860px) {
  #universal-dock { bottom: 32px; width: max-content; }
  .dock-inner { padding: 8px 8px 8px 28px; gap: 20px; }
  .dock-link { font-size: 11px; padding: 12px 20px; }
  .dock-cta { font-size: 11px; padding: 14px 24px; }
}

/* ═══════════════════════════════════════════
   HERO (Brutalismo tipográfico)
═══════════════════════════════════════════ */
#hero {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 60px 24px 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}

/* Grid sutil de fondo para textura tech */
.hero-grid-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 8vw 8vw;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
  z-index: 0; pointer-events: none; opacity: 0.5;
}

.hero-corner { position: absolute; width: 14px; height: 14px; border-color: var(--muted); border-style: solid; z-index: 1; opacity: 0.3; }
.hero-corner.tl { top: 88px; left: 24px; border-width: 1px 0 0 1px; }
.hero-corner.tr { top: 88px; right: 24px; border-width: 1px 1px 0 0; }
.hero-corner.bl { bottom: 40px; left: 24px; border-width: 0 0 1px 1px; }
.hero-corner.br { bottom: 40px; right: 24px; border-width: 0 1px 1px 0; }

.hero-side-label { display: none; position: absolute; right: 48px; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; white-space: nowrap; z-index: 1; }

.hero-top { display: flex; align-items: flex-end; z-index: 1; position: relative; }
.hero-tag { overflow: hidden; }
.hero-tag-in { display: flex; align-items: center; gap: 10px; transform: translateY(100%); }
.ht-dash { width: 28px; height: 1px; background: var(--accent); }
.ht-txt { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.hero-mid { display: flex; flex-direction: column; justify-content: center; padding: 32px 0; z-index: 1; position: relative; }
/* Tipografía gigante y apretada */
.hero-title { font-family: var(--font-display); font-size: clamp(60px, 11vw, 200px); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; text-align: left; text-transform: uppercase; }
.hero-title .hl { display: block; overflow: hidden; }
.hero-title .hl span { display: block; transform: translateY(105%); }
.hero-title .t-it { color: var(--muted); }
.hero-title .t-out { color: transparent; -webkit-text-stroke: 1px var(--ink); }

.hero-divider { width: 100%; height: 1px; background: var(--line); margin-bottom: 24px; transform: scaleX(0); transform-origin: left; z-index: 1; position: relative; }
.hero-foot { display: grid; gap: 32px; z-index: 1; position: relative; }
.hero-desc { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 400px; }
.hero-desc b { color: var(--ink); font-weight: 500; }

.hero-stats-wrap { display: flex; flex-direction: column; gap: 12px; }
.hero-stats { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hs-item { background: var(--bg2); padding: 16px; flex: 1; }
.hs-n { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.02em; }
.hs-n em { color: var(--accent); font-style: normal; }
.hs-l { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.hero-loc { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.loc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-p { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 16px 28px; border-radius: 100px; text-decoration: none; transition: all 0.3s var(--tr); }
.btn-p:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn-g { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 16px 28px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; transition: all 0.3s var(--tr); }
.btn-g:hover { border-color: var(--ink); background: rgba(255,255,255,0.03); transform: translateY(-2px); }

@media (min-width: 860px) {
  #hero { padding: 120px 48px 56px; }
  .hero-corner.tl { top: 116px; left: 48px; }
  .hero-corner.tr { top: 116px; right: 48px; }
  .hero-corner.bl { bottom: 56px; left: 48px; }
  .hero-corner.br { bottom: 56px; right: 48px; }
  .hero-side-label { display: block; }
  .hero-mid { align-items: center; }
  .hero-title { text-align: center; }
  .hero-foot { grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 40px; }
  .hero-ctas { justify-content: flex-end; }
}

/* ═══════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════ */
.section { padding: 80px 24px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.section-alt { background: var(--bg2); border-top: none; }
@media (min-width: 860px) { .section { padding: 120px 48px; } }

.sec-bg-n { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: clamp(160px, 22vw, 320px); color: transparent; -webkit-text-stroke: 1px var(--line); right: -20px; top: -40px; line-height: 1; pointer-events: none; user-select: none; z-index: 0; }

.sec-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; position: relative; z-index: 1; }
.st-n { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.st-l { width: 32px; height: 1px; background: var(--line); }
.st-t { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.sec-hl { font-family: var(--font-display); font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: 0.9; letter-spacing: -.03em; margin-bottom: 56px; position: relative; z-index: 1; text-transform: uppercase; }
.sec-hl .t-accent { color: var(--accent); font-style: normal; }

.rv { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--tr), transform 0.8s var(--tr); }
.rv.in { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-hl { font-family: var(--font-display); font-size: clamp(36px, 6vw, 80px); font-weight: 800; line-height: 0.9; letter-spacing: -.03em; text-align: center; margin-bottom: 64px; position: relative; z-index: 1; text-transform: uppercase; }
.about-hl em { color: var(--accent); font-style: normal; }
.about-hl .hl-out { color: transparent; -webkit-text-stroke: 1px var(--ink); }

.about-data-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 48px; position: relative; z-index: 1; }
.adr-item { background: var(--bg); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; transition: background 0.3s; }
.adr-item:hover { background: var(--bg2); }
.adr-n { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.adr-l { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.adr-sub { font-size: 13px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; line-height: 1.5; opacity: 0.8; }

.about-body { display: grid; gap: 48px; margin-bottom: 48px; position: relative; z-index: 1; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.about-text b { color: var(--ink); font-weight: 500; }
.about-quote { border-left: 2px solid var(--accent); padding: 20px 24px; background: linear-gradient(90deg, rgba(41, 84, 255, 0.05) 0%, transparent 100%); }
.aq-mark { font-family: var(--font-display); font-size: 56px; font-weight: 800; color: var(--accent); line-height: .6; display: block; opacity: .3; margin-bottom: 12px; }
.about-quote p { font-size: 18px; color: var(--ink); line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; }

.about-tl { display: flex; flex-direction: column; }
.atl-item { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.atl-item:first-child { border-top: 1px solid var(--line); }
.atl-yr { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: .05em; padding-top: 2px; }
.atl-role { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.atl-co { font-size: 13px; color: var(--muted); }

.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; position: relative; z-index: 1; }
.sk { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: transparent; transition: all 0.3s; }
.sk:hover, .sk.on { border-color: var(--accent); color: var(--white); background: var(--accent); }

@media (min-width: 860px) {
  .about-data-row { grid-template-columns: repeat(4, 1fr); }
  .about-body { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; position: relative; transition: background 0.3s; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--tr); }
.svc-card:hover { background: var(--bg2); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-n { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .05em; }
.svc-ico { font-size: 32px; margin-bottom: 8px; filter: grayscale(100%) brightness(1.5); transition: filter 0.3s; }
.svc-card:hover .svc-ico { filter: grayscale(0%); }
.svc-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; }
.svc-desc { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc-tags span { font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: rgba(255,255,255,0.02); }

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.proj-layout { display: grid; gap: 0; }
@media (min-width: 960px) { .proj-layout { grid-template-columns: 1fr 440px; gap: 40px; } }
.proj-list { border-top: 1px solid var(--line); }

.proj-item { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); cursor: none; position: relative; transition: padding-left 0.4s var(--tr); }
.proj-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width 0.4s var(--tr); }
.proj-item.active::before, .proj-item:hover::before { width: 4px; }
.proj-item.active, .proj-item:hover { padding-left: 20px; background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, transparent 100%); }
.proj-item.active .pi-title, .proj-item:hover .pi-title { color: var(--accent); }

.pi-num { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); padding-top: 6px; }
.pi-center { display: flex; flex-direction: column; gap: 6px; }
.pi-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; transition: color 0.3s; }
.pi-client { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pi-right { display: none; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; }
.pi-type { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: 0.08em; }
.pi-year { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.pi-badge { font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 100px; color: var(--accent); background: rgba(41, 84, 255, 0.1); opacity: 0; transform: translateX(12px); transition: opacity 0.4s var(--tr), transform 0.4s var(--tr); }
.proj-item.active .pi-badge, .proj-item:hover .pi-badge { opacity: 1; transform: translateX(0); }

.proj-expand { overflow: hidden; max-height: 0; transition: max-height 0.6s var(--tr); }
.proj-expand.open { max-height: 800px; }
.pe-inner { padding: 24px 0 32px 46px; display: flex; flex-direction: column; gap: 20px; }
.pe-visual { width: 100%; height: 200px; border-radius: 2px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.pe-desc { font-size: 15px; color: var(--muted); line-height: 1.6; }
.pe-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-tags span { font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); }

.proj-preview { display: none; }
@media (min-width: 960px) {
  .proj-item { grid-template-columns: 30px 1fr auto; }
  .pi-right { display: flex; }
  .proj-expand { display: none !important; }
  .proj-preview { display: block; position: sticky; top: 120px; height: fit-content; }
}

.preview-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; opacity: 0; transform: translateY(20px) scale(0.96); pointer-events: none; position: absolute; width: 100%; transition: opacity 0.4s var(--tr), transform 0.4s var(--tr); box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.preview-card.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; position: relative; }

.pv-visual { width: 100%; height: 260px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.pv-label { position: absolute; bottom: 20px; left: 20px; font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 100px; }
.pv-body { padding: 32px; }
.pv-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 12px; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
.pv-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.pv-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pv-stack span { font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.pv-stack span.hl { border-color: var(--accent); color: var(--ink); background: rgba(41, 84, 255, 0.1); }
.pv-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pv-imp { color: var(--accent); }

/* Fondos SVG oscuros y técnicos */
.vis-aaai { background: radial-gradient(circle at center, #1a1e29 0%, #0c0d10 100%); }
.vis-hub { background: radial-gradient(circle at center, #151515 0%, #050505 100%); }
.vis-cto { background: radial-gradient(circle at center, #22252a 0%, #0c0d10 100%); }
.vis-arte { background: radial-gradient(circle at center, #1f1f1f 0%, #0a0a0a 100%); }
.vis-auto { background: radial-gradient(circle at center, #111 0%, #000 100%); }
.vis-cholla { background: radial-gradient(circle at center, #331500 0%, #0a0400 100%); }
.vis-perros { background: radial-gradient(circle at center, #0f2411 0%, #040a05 100%); }
.vis-ops { background: radial-gradient(circle at center, #090e1f 0%, #03050a 100%); }

/* ═══════════════════════════════════════════
   STACK
═══════════════════════════════════════════ */
.stack-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
@media (min-width: 640px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .stack-grid { grid-template-columns: repeat(4, 1fr); } }

.stack-cat { background: var(--bg); padding: 40px 32px; transition: background 0.3s; }
.stack-cat:hover { background: var(--bg2); }
.scat-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.scat-label.accent { color: var(--accent); }
.stack-cat ul { display: flex; flex-direction: column; gap: 16px; }
.stack-cat li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.sd { width: 6px; height: 6px; background: var(--line); flex-shrink: 0; }
.sd.accent { background: var(--accent); box-shadow: 0 0 10px rgba(41, 84, 255, 0.5); }

/* ═══════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════ */
.exp-list { display: flex; flex-direction: column; }
.exp-item { padding: 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: background 0.3s, padding-left 0.3s; }
.exp-item:first-child { border-top: 1px solid var(--line); }
.exp-item:hover { background: rgba(255,255,255,0.01); padding-left: 16px; }
.exp-period { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.exp-role { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; text-transform: uppercase; }
.exp-co { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.exp-desc { font-size: 15px; color: var(--muted); line-height: 1.6; }
.exp-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); width: fit-content; text-transform: uppercase; letter-spacing: 0.05em; }

@media (min-width: 860px) {
  .exp-item { flex-direction: row; gap: 0; align-items: start; }
  .exp-item:hover { padding-left: 24px; }
  .exp-period { min-width: 200px; padding-top: 6px; }
  .exp-body { flex: 1; }
  .exp-badge { margin-left: 40px; white-space: nowrap; }
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.contact-hl { font-family: var(--font-display); font-size: clamp(48px, 6vw, 96px); font-weight: 800; line-height: 0.85; letter-spacing: -.03em; margin-bottom: 24px; text-transform: uppercase; }
.contact-hl em { color: var(--accent); font-style: normal; }
.contact-sub { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; max-width: 420px; }

.clinks { display: flex; flex-direction: column; gap: 12px; }
.clink { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; transition: all 0.3s; text-decoration: none; color: inherit; }
.clink:hover { border-color: var(--accent); background: var(--bg2); }
.clink.static { cursor: default; }
.clink.static:hover { border-color: var(--line); background: var(--bg); }
.clink-l { display: flex; align-items: center; gap: 16px; }
.clink-ico { width: 40px; height: 40px; background: var(--bg2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink); }
.clink-label { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.clink-val { font-size: 15px; font-weight: 500; color: var(--ink); }
.clink-arr { color: var(--muted); font-size: 18px; transition: transform 0.3s var(--tr), color 0.3s; }
.clink:hover .clink-arr { transform: translateX(6px); color: var(--accent); }

.cform { display: flex; flex-direction: column; gap: 20px; }
.cform-row { display: grid; gap: 20px; }
@media (min-width: 480px) { .cform-row { grid-template-columns: 1fr 1fr; } }
.cfield { display: flex; flex-direction: column; gap: 8px; }
.clabel { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cinput { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-family: var(--font-body); font-size: 16px; padding: 16px 20px; outline: none; transition: border-color 0.3s, background 0.3s; width: 100%; resize: none; }
.cinput:focus { border-color: var(--accent); background: var(--bg2); }
.cinput::placeholder { color: var(--muted); opacity: 0.4; }
.csubmit { background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 20px 24px; border: none; border-radius: 2px; width: 100%; transition: all 0.3s var(--tr); cursor: none; margin-top: 8px; }
.csubmit:hover { background: var(--accent); color: var(--white); transform: translateY(-4px); }

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 40px 24px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); position: relative; z-index: 1; }
@media (min-width: 640px) { footer { flex-direction: row; justify-content: space-between; align-items: center; padding: 40px 48px; } }
.foot-l { display: flex; align-items: center; gap: 20px; }
.foot-logo { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.foot-logo b { color: var(--accent); }
.foot-tag { font-size: 14px; color: var(--muted); }
.foot-r { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }