/* ══════════════════════════════════════════════
   APEX CLOUDWORKS — style.css
   Mobile-first · Inter + Syne + JetBrains Mono
══════════════════════════════════════════════ */

/* ── TOKENS → assets/css/tokens.css ────────────
   :root se carga vía <link> en el HTML antes que este archivo.
   Todos los --custom-properties provienen de tokens.css.
── */

/* ── SKIP LINK ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: #0C0C14;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS VISIBLE ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Evitar outline en elementos que ya tienen estados visuales de hover/active */
.btn:focus-visible, .nav-links a:focus-visible,
.proc-btn:focus-visible, .faq-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── RESET ──────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
img,svg { display:block; max-width:100%; }
a { color:inherit; }

/* ── BASE ───────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(196,149,106,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(122,31,31,0.035) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
::selection { background: rgba(196,149,106,.2); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(196,149,106,.15); }

/* ── LAYOUT ─────────────────────────────────── */
.wrap { max-width:1120px; margin:0 auto; padding:0 20px; position:relative; z-index:1; }
@media (min-width:1600px) { .wrap { max-width:1400px; } }
@media (min-width:2000px) { .wrap { max-width:1720px; } }
@media (min-width:2560px) { .wrap { max-width:2100px; } }
.section { padding:64px 0; }
.section-dark {
  background: rgba(16,19,24,0.88);
  color: var(--text);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(2px);
}
.section-light {
  background: rgba(16,19,24,0.86);
  color: var(--text);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(2px);
}
.section-light .sec-head h2 { color: var(--text); }
.section-light .sec-head p  { color: var(--text2); }
.section-light .mono-gold   { color: var(--gold); }
@media (min-width:768px)  { .wrap { padding:0 40px; } }
@media (min-width:1024px) { .wrap { padding:0 48px; } .section { padding:96px 0; } }

/* ── Acordeón de Proceso ── */
.proc-accordion {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.proc-item {
  border-bottom: 1px solid var(--border);
  transition: background-color .3s, border-color .3s;
}
.proc-item:last-child {
  border-bottom: none;
}
.proc-item:hover {
  background: rgba(255,255,255,.01);
}
.proc-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 24px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 20px;
  -webkit-tap-highlight-color: transparent;
}
.proc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  opacity: .7;
  transition: opacity .3s, -webkit-text-stroke .3s;
  flex-shrink: 0;
  width: 44px;
}
.proc-item:hover .proc-num, .proc-item.open .proc-num {
  opacity: 1;
  -webkit-text-stroke: 1px var(--gold);
}
.proc-info {
  flex-grow: 1;
}
.proc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.proc-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  color: var(--text2);
  margin: 0;
  transition: color .3s;
  letter-spacing: -0.02em;
}
.proc-item.open .proc-title {
  color: var(--text);
}
.proc-ic {
  font-size: 24px;
  color: var(--text3);
  transition: transform .3s, color .3s;
  flex-shrink: 0;
  line-height: 1;
}
.proc-item.open .proc-ic {
  transform: rotate(45deg);
  color: var(--gold);
}

/* Acordeón Body */
.proc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.proc-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 0 20px 32px 84px; /* Alinear con el contenido después del número */
}
@media (max-width: 767px) {
  .proc-content {
    padding: 0 20px 28px 20px; /* En móviles menos padding izquierdo */
  }
}
@media (min-width: 768px) {
  .proc-content {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.proc-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.proc-bullets {
  list-style: none;
  margin-bottom: 24px;
  padding: 0;
}
.proc-bullets li {
  position: relative;
  font-size: 13.5px;
  color: var(--text2);
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.proc-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.proc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proc-tags span {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,.01);
}

/* ── Mockups Visuales del Proceso ── */
.proc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.visual-mock {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.mock-header {
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: .7;
}
.mock-dot.red { background: #ff5f56; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #27c93f; }
.mock-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text2);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.5px;
}

/* 1. WhatsApp Mockup */
.chat-mock .mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(circle at center, rgba(37,211,102,0.03) 0%, transparent 80%), var(--bg);
  min-height: 180px;
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 8px;
  position: relative;
  font-size: 12.5px;
  line-height: 1.45;
}
.chat-bubble.user {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-bubble.apex {
  background: rgba(196,149,106,.07);
  border: 1px solid rgba(196,149,106,.2);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-sender {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.chat-bubble.user .chat-sender {
  color: var(--text2);
}
.chat-text {
  margin: 0;
}
.chat-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--text3);
  display: block;
  text-align: right;
  margin-top: 4px;
}

/* Code Pre */
.mock-code {
  margin: 0;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text2);
  overflow-x: auto;
  background: var(--surface);
}
.code-k { color: var(--gold); } /* keys/keywords */
.code-s { color: var(--green); } /* strings */
.code-a { color: var(--blue); } /* attributes */
.code-c { color: var(--text3); font-style: italic; } /* comments */

/* Terminal Mockup */
.terminal-mock .mock-terminal {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text2);
  background: var(--bg);
}
.term-line {
  margin-bottom: 4px;
}
.term-prompt {
  color: var(--gold);
  margin-right: 6px;
}
.cmd-ok {
  color: var(--green);
}

/* n8n Flow Mockup */
.flow-mock .flow-container {
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  min-height: 180px;
}
.flow-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 90px;
  text-align: center;
  transition: border-color .3s;
}
.flow-node:hover {
  border-color: var(--gold);
}
.node-icon {
  font-size: 18px;
}
.node-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text2);
  letter-spacing: .5px;
}
.flow-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--text3);
}
.flow-nodes-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ── TYPOGRAPHY ─────────────────────────────── */
.d1 { font-family:'Anton',sans-serif; font-weight:400; font-size:clamp(40px,11vw,84px); letter-spacing:-0.01em; line-height:1.02; text-transform:uppercase; }
.d2 { font-family:'Anton',sans-serif; font-weight:400; font-size:clamp(26px,6vw,46px);  letter-spacing:-0.005em; line-height:1.1; text-transform:uppercase; }
.d3 { font-family:'Anton',sans-serif; font-weight:400; font-size:clamp(19px,4.5vw,26px); letter-spacing:0; line-height:1.2; text-transform:uppercase; }
.mono      { font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text2); }
.mono-gold { color:var(--gold); }

/* ── BUTTONS ────────────────────────────────── */
.btn { min-height:var(--tap); padding:0 24px; font-family:'Inter',sans-serif; font-size:15px; font-weight:500; border-radius:10px; }
.btn-sm   { min-height:40px; padding:0 16px; font-size:13px; }
.btn-full { width:100%; }

/* ── CHIP ───────────────────────────────────── */
.chip { display:inline-flex; align-items:center; gap:7px; padding:6px 14px; background:rgba(196,149,106,.06); border:1px solid rgba(196,149,106,.2); border-radius:100px; font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--text2); letter-spacing:.5px; }
.chip-dot { width:7px; height:7px; border-radius:50%; background:var(--gold); box-shadow:0 0 7px var(--gold); animation:tealPulse 2.5s ease-in-out infinite; }

/* ── STATUS PILLS ───────────────────────────── */
.pill { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:100px; font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:1.5px; }
.pill-green { background:rgba(74,222,128,.1); color:var(--green); }
.pill-blue  { background:rgba(96,165,250,.1);  color:var(--blue);  }
.pill-gold  { background:rgba(196,149,106,.1); color:var(--gold);  }
.pill-green::before,.pill-blue::before,.pill-gold::before { content:''; width:5px; height:5px; border-radius:50%; }
.pill-green::before { background:var(--green); box-shadow:0 0 5px var(--green); }
.pill-blue::before  { background:var(--blue); }
.pill-gold::before  { background:var(--gold); }


/* ── SEC HEAD ───────────────────────────────── */
.sec-head { margin-bottom:32px; }
.sec-head .mono {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(196, 149, 106, 0.08);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 149, 106, 0.25);
  border-radius: var(--r-full);
}
.sec-head p { font-size:15px; color:var(--text2); margin-top:10px; max-width:480px; }
@media (min-width:1024px) { .sec-head { margin-bottom:48px; } }

/* ── REVEAL ─────────────────────────────────── */
.reveal    { opacity:0; transform:translateY(24px); transition:opacity .6s, transform .6s; }
.reveal.in { opacity:1; transform:none; }

/* ══════════════════════════════════════════════
   NAV — responsive completo
   Mobile:  logo + hamburger
   Tablet:  logo + cotizar + hamburger
   Desktop: logo | links centro | explorar + admin + portal + cotizar
══════════════════════════════════════════════ */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:999;
  background: rgba(6,5,9,.95);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

/* ─ Estructura base (mobile-first) ─ */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
}
@media (min-width:1600px) { .nav-wrap { max-width:1400px; } }
@media (min-width:2000px) { .nav-wrap { max-width:1720px; } }
@media (min-width:2560px) { .nav-wrap { max-width:2100px; } }

/* ─ Logo ─ */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

/*
  Logo: PNG con fondo crema baked-in (460×280px).
  Se usa mask-image radial para desvanecer el fondo crema en los bordes,
  dejando el ícono (montaña+swirl) visible como si flotara.
  Perspectiva 3D + drop-shadows multicapa dan profundidad real.
*/
.nav-logo-img {
  height: 60px;
  width: 80px;
  object-fit: cover;
  object-position: center 48%;
  flex-shrink: 0;
  display: block;
  opacity: .95;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
  opacity: 1;
}

.nav-logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--text2);
  display: none;
}
.nav-logo-text em { color:var(--gold); font-style:normal; }

/* Texto visible desde 400px (logo imagen siempre visible) */
@media (min-width:400px) { .nav-logo-text { display:block; } }

/* ─ Links (solo desktop) ─ */
.nav-links {
  display: none; /* activado en 1100px+ */
  justify-content: center;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
  flex: 1; /* ocupa espacio central */
}
.nav-links a {
  font-size: 13px; color: var(--text2);
  text-decoration: none;
  padding: 7px 10px; border-radius: 7px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color:var(--text); background:rgba(255,255,255,.05); }
.nav-links li { position: relative; }

/* ── Dropdowns ── */
.has-dd > a { display: flex; align-items: center; gap: 4px; }
.dd-arrow { font-size: 9px; opacity: .5; transition: transform .2s; }
.has-dd:hover .dd-arrow { transform: rotate(180deg); opacity: .9; }

.nav-dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface);
  border: 1px solid rgba(196,149,106,.18);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 0 rgba(196,149,106,.0);
}
.has-dd:hover .nav-dd,
.has-dd:focus-within .nav-dd {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dd a {
  display: block;
  padding: 9px 14px;
  color: var(--text2);
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  background: none;
  transition: background .12s, color .12s;
}
.nav-dd a:hover { background: rgba(196,149,106,.1); color: var(--gold); }

/* ─ Acciones derecha ─ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Botón cotizar: oculto en < 480px, visible desde 480px */
.nav-cta-btn { display: none; }
@media (min-width:480px) { .nav-cta-btn { display:inline-flex; } }

/* Separadores: solo desktop */
.nav-sep {
  display: none;
  width: 1px; height: 18px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* Explorar ▾: solo desktop */
.nav-explore-btn {
  display: none;
  align-items: center; gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 8px;
  cursor: pointer; transition: all .2s;
  white-space: nowrap; line-height: 1;
}
.nav-explore-btn:hover { color:var(--text); border-color:rgba(255,255,255,.15); background:rgba(255,255,255,.04); }
.nav-explore-btn.open  { color:var(--gold); border-color:rgba(196,149,106,.5); background:rgba(196,149,106,.07); }
.ne-arrow { font-size:9px; transition:transform .25s; display:inline-block; opacity:.55; }
.nav-explore-btn.open .ne-arrow { transform:rotate(180deg); opacity:1; }

/* Iconos Admin / Portal: solo desktop */
.nav-icon-btn {
  display: none;
  align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  color: var(--text2); text-decoration: none;
  padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border);
  transition: all .2s; white-space: nowrap; line-height: 1;
}
.nav-icon-btn:hover { color:var(--text); border-color:rgba(255,255,255,.15); background:rgba(255,255,255,.04); }
.nav-icon-btn svg { flex-shrink:0; opacity:.65; transition:opacity .15s; }
.nav-icon-btn:hover svg { opacity:1; }

.nav-icon-portal { color:var(--gold); border-color:rgba(196,149,106,.22); }
.nav-icon-portal:hover { border-color:rgba(196,149,106,.5); background:rgba(196,149,106,.06); color:var(--gold2); }
.nav-icon-portal svg { opacity:.8; }

/* Hamburger: visible < 1100px */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text2);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ─ Desktop: 1100px+ ─ */
@media (min-width:1100px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | links | acciones */
    height: 60px;
    padding: 0 32px;
    gap: 0;
  }
  .nav-logo        { gap: 10px; }
  .nav-logo-img    { height: 88px; width: 88px; }
  .nav-logo-text   { font-size: 12px; }
  .nav-links       { display: flex; }
  .nav-sep         { display: block; }
  .nav-explore-btn { display: flex; }
  .nav-icon-btn    { display: flex; }
  .nav-hamburger   { display: none; }
  .nav-actions     { gap: 6px; }
}

/* 1100-1249px: quitar texto en Admin/Portal */
@media (min-width:1100px) and (max-width:1249px) {
  .nav-icon-btn span { display: none; }
  .nav-icon-btn      { padding: 7px 8px; }
  .nav-links a       { padding: 7px 8px; font-size: 12px; }
}

@media (min-width:1280px) {
  .nav-wrap { padding: 0 48px; }
  .nav-links a { font-size: 14px; padding: 7px 12px; }
  .nav-logo-text { font-size: 12px; }
}

/* ── MEGA DROPDOWN ────────────────────────── */
.nav-dropdown {
  position: absolute; top: 60px; left: 0; right: 0;
  background: rgba(6,5,9,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  display: none; z-index: 998;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.nav-dropdown.open { display: block; }

.nd-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 40px 32px;
}

.nd-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.nd-col-title {
  font-family:'JetBrains Mono',monospace;
  font-size:10px; letter-spacing:.15em;
  text-transform:uppercase; color:var(--gold);
  opacity:.75; margin-bottom:14px;
}

/* Diseños grid */
.nd-designs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.nd-design-card {
  display: flex; flex-direction: column; gap: 7px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s;
}
.nd-design-card:hover { transform: translateY(-3px); }

.ndc-preview {
  height: 70px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  position: relative; padding: 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.ndc-stripe {
  position: absolute; top:0; left:0; right:0; height:3px;
  border-radius: 8px 8px 0 0;
}

.ndc-blocks { display: flex; flex-direction: column; gap: 3px; }

.ndc-meta { padding: 0 2px; }
.ndc-name { font-size:11px; font-weight:600; color:var(--text2); }
.ndc-sub  { font-size:9px; color:var(--text3); margin-top:1px; font-family:'JetBrains Mono',monospace; }

.nd-design-more .ndc-preview {
  font-size: 28px; color: var(--text3);
  align-items: center; justify-content: center;
}

/* Herramientas */
.nd-tools { display:flex; flex-direction:column; gap:4px; margin-bottom:20px; }

.nd-tool {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:8px;
  text-decoration:none; transition:background .15s;
}
.nd-tool:hover { background:rgba(255,255,255,.04); }

.nt-icon { font-size:18px; flex-shrink:0; }
.nt-name { font-size:13px; font-weight:500; color:var(--text2); }
.nt-desc { font-size:11px; color:var(--text3); margin-top:1px; }
.nd-tool:hover .nt-name { color:var(--text); }

/* Divider */
.nd-divider { height:1px; background:var(--border); margin:16px 0; }

/* Accesos del equipo */
.nd-access-btns { display:flex; flex-direction:column; gap:8px; }

.nd-access-btn {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border-radius:10px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  text-decoration:none; transition:all .2s;
}
.nd-access-btn:hover { border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.05); }
.nd-access-btn > span { font-size:22px; flex-shrink:0; }
.nab-name { font-size:13px; font-weight:600; color:var(--text); }
.nab-sub  { font-size:11px; color:var(--text3); margin-top:2px; }

.nd-access-portal { border-color:rgba(196,149,106,.2); background:rgba(196,149,106,.04); }
.nd-access-portal:hover { border-color:rgba(196,149,106,.4); background:rgba(196,149,106,.08); }
.nd-access-portal .nab-name { color:var(--gold); }

/* Overlay para cerrar el dropdown */
.nd-overlay {
  display: none; position:fixed; inset:0; z-index:997;
}
.nd-overlay.active { display:block; }

/* Mobile nav extras */
.nm-divider { height:1px; background:var(--border); margin:8px 0; }
.nm-link-admin  { color:var(--text2); }
.nm-link-portal { color:var(--gold); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 42%, transparent 78%);
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero { padding-bottom: 96px; }
}
/* El simulador full-bleed no usa el scrim/padding del hero cinematográfico viejo.
   Selector compuesto (.hero.hero-ide-full) a propósito: gana por especificidad sobre
   los .hero { padding } sueltos que quedan en varios breakpoints del hero viejo,
   sin importar el orden en que aparezcan en el archivo. */
.hero.hero-ide-full {
  padding: 0;
  align-items: stretch;
}
.hero-ide-full::before {
  content: none;
}
.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── Hero cinematográfico — tipografía gigante, negativo generoso ── */
.hero-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-compact.hero-card { max-width: 640px; }
.hero-compact .hero-h1 { margin-bottom: 20px; }
.hero-compact .hero-btns { max-width: 260px; }

@media (max-width: 767px) {
  .simulator-iframe { height: 380px; }
}
.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold2);
  opacity: .8;
  margin-bottom: 28px;
}

.hero-h1 {
  font-size: clamp(48px, 9vw, 92px);
  margin-bottom: 28px;
  line-height: 0.98;
}
.hero-h1 em {
  color: var(--gold);
  font-style: normal;
  text-shadow: 0 0 60px rgba(196,149,106,.35), 0 0 140px rgba(196,149,106,.15);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
  color: var(--text2);
  line-height: 1.7;
  margin: 0 auto 40px;
  max-width: 480px;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-4);
  margin: -20px auto 32px;
}
.hero-trust-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text2);
  position: relative;
  padding-left: 14px;
}
.hero-trust-item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  align-items: center;
}

/* ── Botones píldora — minimal, sin glow ── */
.btn-pill-gold, .btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .2s;
}
.btn-pill-gold { background: var(--gold); color: #08070c; }
.btn-pill-gold:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-pill-ghost { border: 1px solid rgba(255,255,255,.28); color: var(--text); background: transparent; }
.btn-pill-ghost:hover { border-color: var(--gold); color: var(--gold); }
@media (min-width:640px) {
  .hero-btns {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}
@media (min-width: 1024px) {
  .hero {
    min-height: calc(100vh - 56px); /* Ocupa exactamente toda la pantalla restando el nav */
    padding: 0;
  }
  .hero-card { padding: 64px 56px 48px; }
}


/* scroll-gallery eliminado — componente nunca implementado en HTML */

/* ══════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════ */
.srv-grid {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Separar tarjetas en vez de rejilla monolítica para un look modular */
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.srv-card {
  background: rgba(23,27,34, 0.65);
  backdrop-filter: blur(12px);
  padding: 32px 24px;
  border: 1px solid rgba(196, 149, 106, 0.08);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  overflow: hidden;
}
.srv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(196,149,106,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-spring);
  pointer-events: none;
}
.srv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 149, 106,0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 149, 106,0.05);
  background-color: rgba(23, 23, 31, 0.8);
}
.srv-card:hover::before {
  opacity: 1;
}
.srv-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.srv-name {
  font-family: 'Anton', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.srv-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.srv-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.srv-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.srv-t {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .5px;
  color: var(--text2);
  padding: 4px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .3s;
}
.srv-card:hover .srv-t {
  border-color: rgba(196,149,106,0.15);
}
@media (min-width: 768px) {
  .srv-grid {
    flex-direction: row;
    gap: 20px;
  }
  .srv-card {
    flex: 1;
  }
}
@media (min-width: 1024px) {
  .srv-card {
    padding: 44px 36px;
  }
}


/* ══════════════════════════════════════════════
   WORK / PORTFOLIO
   ══════════════════════════════════════════════ */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* Separar tarjetas en vez de rejilla monolítica para un look modular */
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
/* Con un solo proyecto activo, no estirar la rejilla de 3 columnas — centrar la tarjeta sola */
.pf-grid:has(.pf-card:only-child) { max-width: 420px; margin: 0 auto; }
.pf-card {
  background: rgba(23,27,34, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 149, 106, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}
.pf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 149, 106,0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 149, 106,0.05);
  background-color: rgba(23, 23, 31, 0.8);
}

.pf-cover {
  width: 100%; height: 200px;
  position: relative;
  overflow: hidden;
  transition: transform .5s ease;
}
.pf-cover-art {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(196,149,106,0.14), transparent 60%), var(--raised);
  transition: transform .5s ease;
}
.pf-cover-art svg { width: 72px; height: 72px; opacity: .55; }
.pf-card:hover .pf-cover-art { transform: scale(1.04); }
.pf-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(8,7,12,.92) 100%);
  transition: opacity .3s;
}
.pf-cover-badges {
  position: absolute; bottom: 16px; left: 20px; right: 20px;
  z-index: 1; display: flex; align-items: center; justify-content: space-between;
}
.pf-cover-name {
  font-family: 'Anton', sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: -.02em; color: var(--text);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.pf-body  { padding: 24px; position: relative; z-index: 2; }
.work-top  { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.work-name { font-family:'Anton',sans-serif; font-weight:700; font-size:17px; letter-spacing:-.02em; flex:1; color: var(--text); }
.work-desc { font-size:13px; color:var(--text2); line-height:1.7; margin-bottom:16px; }
.work-tags { display:flex; flex-wrap:wrap; gap:5px; }
.work-tag  { font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:.5px; color:var(--text2); padding:3px 8px; border:1px solid var(--border); border-radius:4px; background: rgba(255,255,255,0.01); }
.pf-card:hover .work-tag { border-color: rgba(196,149,106,0.12); }
.work-client { display:block; margin-bottom:8px; color: var(--gold); opacity: .85; font-size: 11px; }

@media (min-width: 768px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pf-cover { height: 230px; }
}
@media (min-width: 1200px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════
   STACK
   ══════════════════════════════════════════════ */
.stack-cats { display:flex; flex-direction:column; gap:32px; }
.sc-title   { font-family:'Anton',sans-serif; font-weight:700; font-size:17px; letter-spacing:-.015em; margin-bottom:6px; color: var(--text); }
.sc-sub     { font-size:12px; color:var(--text3); margin-bottom:16px; font-family: 'JetBrains Mono', monospace; }
.sc-tags    { display:flex; flex-wrap:wrap; gap:8px; }
.sc-tag     {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  background:rgba(255,255,255,0.015);
  border:1px solid var(--border);
  border-radius:8px;
  font-size:13px;
  color:var(--text2);
  font-family: 'JetBrains Mono', monospace;
  transition: all .25s ease;
}
.sc-tag:hover {
  background: rgba(196,149,106,0.03);
  border-color: rgba(196,149,106,0.22);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── Confianza — badges de clientes reales ── */
.confianza-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}
.confianza-badge {
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text2);
  background: rgba(255,255,255,0.015);
  transition: all .25s ease;
}
.confianza-badge:hover {
  color: var(--gold2);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.sc-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: ledPulse 2s infinite ease-in-out;
}
.sc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.15));
}
@keyframes ledPulse {
  0%, 100% { opacity: .4; box-shadow: 0 0 3px var(--green); }
  50% { opacity: 1; box-shadow: 0 0 8px var(--green); }
}
@media (min-width:640px)  { .stack-cats { display:grid; grid-template-columns:repeat(2,1fr); gap: 24px; } }
@media (min-width:1024px) { .stack-cats { grid-template-columns:repeat(4,1fr); } }

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
.test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.test-grid:has(.test-card:only-child) { max-width: 420px; margin: 0 auto; }
.test-card {
  background: rgba(23,27,34, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 149, 106, 0.08);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.test-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 149, 106,0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 149, 106,0.05);
  background-color: rgba(23, 23, 31, 0.8);
}
.test-stars {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.test-quote {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  flex-grow: 1;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.test-avatar-placeholder {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196, 149, 106,0.15), rgba(196, 149, 106,0.03));
  border: 1.5px solid rgba(196, 149, 106,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--gold); flex-shrink: 0;
  letter-spacing: -.02em;
}
.test-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.test-name {
  font-family: 'Anton', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.test-project {
  font-size: 11px;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
}
.pill-green {
  color: var(--green);
  font-weight: 600;
}
.pill-blue {
  color: var(--blue);
  font-weight: 600;
}
.pill-gray {
  color: var(--text3);
  font-weight: 600;
}

@media (min-width: 768px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1200px) {
  .test-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ══════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════ */
.pricing-list { display:flex; flex-direction:column; gap:20px; }
.pr-card {
  background: rgba(23,27,34, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 149, 106, 0.08);
  border-radius: var(--r-lg);
  padding:32px 24px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.pr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 149, 106,0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 149, 106,0.05);
  background-color: rgba(23, 23, 31, 0.8);
}
.pr-card.feat {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(196,149,106,.1), transparent 40%),
    rgba(23,27,34, 0.85);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(196,149,106,.15), 0 20px 50px rgba(0,0,0,.5), 0 0 40px rgba(196,149,106,.12);
  position: relative;
}
.pr-card.feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px rgba(196,149,106,.22), 0 26px 60px rgba(0,0,0,.55), 0 0 50px rgba(196,149,106,.18);
}
.pr-card.feat .mono { color: var(--gold); }
.pr-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.pr-name      { font-family:'Anton',sans-serif; font-weight:400; text-transform:uppercase; font-size:22px; letter-spacing:0; color: var(--text); }
.pr-price-wrap { text-align:right; }
.pr-price     { font-family:'Anton',sans-serif; font-weight:400; font-size:38px; letter-spacing:-.01em; line-height:1; color: var(--text); }
.pr-price sup { font-size:18px; color: var(--gold); }
.pr-freq      { font-size:9px; color:var(--text3); letter-spacing:1.5px; font-family:'JetBrains Mono',monospace; margin-top:4px; text-transform: uppercase; }
.pr-items     { list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.pr-items li  { display:flex; align-items:flex-start; gap:8px; font-size:14px; color:var(--text2); line-height: 1.5; }
.pr-items li::before { content:'✓'; color:var(--green); font-size:12px; flex-shrink:0; margin-top:2px; }
@media (min-width:640px)  { .pricing-list { flex-direction:row; } .pr-card { flex:1; } }
@media (min-width: 1024px) { .pr-card { padding:40px 32px; } .pr-price { font-size:46px; } }


/* ══════════════════════════════════════════════
   SOLUCIONES RÁPIDAS — paquetes productizados
   ══════════════════════════════════════════════ */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}
.pkg-card {
  background: var(--raised);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.pkg-name { font-family:'Anton',sans-serif; font-weight:400; text-transform:uppercase; font-size:17px; color:var(--text); margin-bottom:12px; }
.pkg-price-row { display:flex; align-items:baseline; gap:10px; margin-bottom:18px; }
.pkg-price { font-family:'Anton',sans-serif; font-weight:400; font-size:30px; color:var(--text); }
.pkg-price sup { font-size:15px; color:var(--gold); }
.pkg-time { font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--text3); }
.pkg-items { list-style:none; display:flex; flex-direction:column; gap:8px; margin-bottom:24px; flex:1; }
.pkg-items li { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--text2); line-height:1.5; }
.pkg-items li::before { content:'✓'; color:var(--green); font-size:11px; flex-shrink:0; margin-top:2px; }
.pkg-btns { display:flex; flex-direction:column; gap:10px; }
.pkg-demo-soon {
  font-family:'JetBrains Mono',monospace; font-size:11px; text-align:center;
  color:var(--text3); border:1px dashed var(--border); border-radius:var(--r-md);
  padding:11px; text-transform:uppercase; letter-spacing:.04em;
}

/* ══════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════ */
.faq { display:flex; flex-direction:column; border-top: 1px solid var(--border); }
.faq-item { border-bottom:1px solid var(--border); transition: background-color .25s ease; }
.faq-item:hover { background: rgba(255,255,255,0.005); }
.faq-btn  { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:var(--tap); padding:20px 10px; gap:16px; background:transparent; border:none; cursor:pointer; text-align:left; -webkit-tap-highlight-color:transparent; }
.faq-q    { font-size:16px; font-weight:500; color:var(--text2); line-height:1.45; transition:color .15s; display: flex; align-items: center; gap: 16px; }
.faq-num  {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  opacity: .5;
  transition: opacity .3s;
  width: 32px;
  flex-shrink: 0;
  display: inline-block;
  letter-spacing: .05em;
}
.faq-item:hover .faq-num, .faq-item.open .faq-num {
  opacity: 1;
  color: var(--gold);
}
.faq-ic   { font-size:22px; color:var(--text3); transition:transform .24s, color .24s; flex-shrink:0; line-height:1; }
.faq-item.open .faq-ic { transform:rotate(45deg); color:var(--gold); }
.faq-item.open .faq-q  { color:var(--text); }
.faq-body   { overflow:hidden; max-height:0; transition:max-height .35s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-body p { font-size:14px; color:var(--text2); line-height:1.75; padding: 0 10px 24px 58px; }

/* ══════════════════════════════════════════════
   CTA
══════════════════════════════════════════════ */
.cta-block { background:var(--surface); border:1px solid var(--border2); border-radius:20px; padding:48px 24px; text-align:center; position:relative; overflow:hidden; }
.cta-block::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:55%; height:1px; background:linear-gradient(90deg,transparent,rgba(196,149,106,.5),transparent); }
.cta-block::after  { content:''; position:absolute; top:-50%; left:50%; transform:translateX(-50%); width:70%; aspect-ratio:1; background:radial-gradient(circle,rgba(196,149,106,.06) 0%,transparent 65%); pointer-events:none; }
.cta-h    { margin-bottom:14px; position:relative; z-index:1; }
.cta-sub  { font-size:16px; color:var(--text2); max-width:400px; margin:0 auto 32px; position:relative; z-index:1; }
.cta-btns { display:flex; flex-direction:column; gap:12px; max-width:320px; margin:0 auto; position:relative; z-index:1; }
@media (min-width:640px) { .cta-block { padding:64px 48px; } .cta-btns { flex-direction:row; max-width:none; justify-content:center; } }

/* ══════════════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════════════ */
.sobre-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .sobre-wrap { grid-template-columns: 1fr 380px; gap: 64px; }
}

.sobre-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 520px;
}

.sobre-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.ss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text2);
  font-family: 'JetBrains Mono', monospace;
}
.ss-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(196,149,106,.5);
}

.sobre-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Card */
.sobre-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(196,149,106,.06);
}
.sc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 20px;
}
.sc-avatar-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(196,149,106,.2), rgba(196,149,106,.05));
  border: 2px solid rgba(196,149,106,.35);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif;
  font-weight: 800; font-size: 18px;
  color: var(--gold); flex-shrink: 0;
  letter-spacing: -.02em;
}
.sc-name { font-family: 'Anton', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.sc-role { font-size: 11px; color: var(--text3); font-family: 'JetBrains Mono', monospace; margin-top: 3px; }
.sc-loc  {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text3);
  font-family: 'JetBrains Mono', monospace; margin-top: 4px;
}
.sc-dot-green {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 5px var(--green);
  animation: tealBlink 2.5s ease-in-out infinite;
}

.sc-divider { height: 1px; background: var(--border); }

.sc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-top: 0; border-bottom: 0;
}
.sc-stat {
  background: var(--surface);
  padding: 16px 12px;
  text-align: center;
}
.sc-sn { font-family: 'Anton', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--gold); display: block; }
.sc-sl { font-size: 10px; color: var(--text3); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; display: block; }

.sc-terminal {
  padding: 16px 20px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.7;
  background: rgba(0,0,0,.25);
}
.sct-line { display: flex; gap: 8px; }
.sct-p { color: var(--gold); }
.sct-t { color: var(--text2); }
.sct-o { color: var(--green); }
.sct-cursor {
  color: var(--gold);
  animation: tealBlink 1s step-end infinite;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer       { border-top:1px solid var(--border); padding:32px 0; }
.footer-inner { display:flex; flex-direction:column; gap:20px; }
.footer-brand { font-family:'Anton',sans-serif; font-weight:800; font-size:15px; letter-spacing:-.02em; }
.footer-brand em { color:var(--gold); font-style:normal; }
.footer-copy  { font-size:12px; color:var(--text2); margin-top:3px; }
.footer-links { display:flex; flex-wrap:wrap; gap:20px; }
.footer-links a { font-size:13px; color:var(--text2); text-decoration:none; min-height:var(--tap); display:flex; align-items:center; }
@media (min-width:640px) { .footer-inner { flex-direction:row; justify-content:space-between; align-items:center; gap:16px; } }

/* ── Keyframes limpios ── */
@keyframes tealPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Separadores de sección: línea fina con glow rojo */
.section-dark + .section-dark { border-top-color: rgba(196,149,106,.08); }

/* ── SCROLL TOAST ───────────────────────────── */
.scroll-toast {
  position: fixed;
  bottom: 28px; left: 20px;
  z-index: 990;
  display: flex; align-items: center; gap: 12px;
  background: rgba(10,9,13,0.97);
  border: 1px solid rgba(196,149,106,.35);
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(196,149,106,.08);
  backdrop-filter: blur(16px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease;
  pointer-events: none;
}
.scroll-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.st-avatar { font-size: 26px; flex-shrink: 0; }
.st-body   { flex: 1; min-width: 0; }
.st-title  { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.st-sub    { font-size: 11px; color: var(--text2); line-height: 1.4; }
.st-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.st-btn {
  font-size: 12px; font-weight: 700;
  color: #08070c; background: var(--gold);
  padding: 7px 13px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.st-btn:hover { background: var(--gold2); }
.st-close {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: var(--text3);
  font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.st-close:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
@media (max-width: 480px) {
  .scroll-toast { left: 12px; right: 12px; max-width: none; bottom: 80px; }
}

/* ── WA FLOAT ───────────────────────────────── */
.wa { position:fixed; bottom:20px; right:20px; z-index:998; width:54px; height:54px; border-radius:50%; background:#25d366; color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; text-decoration:none; box-shadow:0 4px 20px rgba(37,211,102,.35); transition:transform .2s; -webkit-tap-highlight-color:transparent; }
.wa:hover { transform:scale(1.08); }

/* ══════════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════════ */

.nav-mobile {
  display: none;
  position: fixed;
  /* 56px en mobile, 60px en desktop — usa el mayor para seguridad */
  top: 56px; left: 0; right: 0;
  background: rgba(4,3,6,0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 997;
  padding: 8px 20px 20px;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: flex; align-items: center;
  min-height: 48px; padding: 0 4px;
  font-size: 15px; font-weight: 500;
  color: var(--text2); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .nm-cta {
  margin-top: 14px;
  padding: 14px; background: var(--gold);
  color: #08070c; font-weight: 700; font-size: 15px;
  text-align: center; border-radius: 10px;
  border-bottom: none; display: block;
}
.nav-mobile .nm-cta:hover { background: var(--gold2); color: #08070c; }

/* ══════════════════════════════════════════════
   RESULTADOS
══════════════════════════════════════════════ */
.resultados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .resultados-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.resultado-card {
  background: rgba(23,27,34, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 149, 106, 0.08);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}
.resultado-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(196,149,106,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.resultado-card:hover { border-color: rgba(196, 149, 106,0.35); transform: translateY(-3px); background-color: rgba(23, 23, 31, 0.8); }

.rc-icon  { font-size: 26px; margin-bottom: 12px; display: block; }
.rc-num   { font-family:'Anton',sans-serif; font-weight:800; font-size:clamp(30px,5vw,48px); letter-spacing:-0.04em; line-height:1; color:var(--gold); display:block; margin-bottom:8px; }
.rc-label { font-size:13px; color:var(--text2); line-height:1.45; }
.rc-sub   { font-family:'JetBrains Mono',monospace; font-size:9px; color:var(--text3); text-transform:uppercase; letter-spacing:1px; margin-top:4px; display:block; }

/* ══════════════════════════════════════════════
   CALCULADORA
══════════════════════════════════════════════ */
.calc-wrap { display:grid; grid-template-columns:1fr; gap:32px; }
@media (min-width: 900px) { .calc-wrap { grid-template-columns:1fr 300px; gap:48px; align-items:start; } }

.calc-group { margin-bottom:28px; }
.calc-group:last-child { margin-bottom:0; }
.calc-group-label {
  font-family:'JetBrains Mono',monospace; font-size:10px;
  color:var(--gold); letter-spacing:.15em; text-transform:uppercase;
  display:block; margin-bottom:12px; opacity:.8;
}

.calc-types { display:flex; flex-direction:column; gap:8px; }

.calc-type-btn {
  width:100%; display:flex; align-items:center; gap:14px;
  padding:14px 18px; background:var(--surface);
  border:1px solid var(--border); border-radius:10px;
  cursor:pointer; text-align:left; transition:all .2s;
  -webkit-tap-highlight-color:transparent;
}
.calc-type-btn:hover { border-color:rgba(196,149,106,.3); background:rgba(196,149,106,.03); }
.calc-type-btn.active { border-color:var(--gold); background:rgba(196,149,106,.06); }

.ctb-icon { font-size:20px; flex-shrink:0; }
.ctb-info { flex:1; }
.ctb-name  { font-family:'Anton',sans-serif; font-size:14px; font-weight:600; color:var(--text); display:block; margin-bottom:2px; }
.ctb-price { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--gold); }

.calc-addons { display:flex; flex-direction:column; gap:8px; }

.calc-addon {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; background:var(--surface);
  border:1px solid var(--border); border-radius:10px;
  cursor:pointer; transition:all .2s; user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.calc-addon:hover { border-color:rgba(196,149,106,.2); }
.calc-addon.checked { border-color:rgba(196,149,106,.4); background:rgba(196,149,106,.04); }
.calc-addon input[type="checkbox"] { width:16px; height:16px; accent-color:var(--gold); flex-shrink:0; cursor:pointer; }
.addon-name  { font-size:13px; color:var(--text2); flex:1; }
.addon-price { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--gold); flex-shrink:0; }

.calc-result {
  background:var(--surface); border:1px solid var(--border2);
  border-radius:16px; padding:28px 24px;
  position:sticky; top:76px;
}
.cr-label { font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--text3); letter-spacing:2px; text-transform:uppercase; margin-bottom:16px; display:block; }
.cr-servicio { font-family:'Anton',sans-serif; font-size:15px; font-weight:700; color:var(--text); margin-bottom:16px; }
.cr-items { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid var(--border); min-height:60px; }
.cr-item { display:flex; justify-content:space-between; font-size:13px; color:var(--text2); }
.cr-item-price { font-family:'JetBrains Mono',monospace; color:var(--text); }
.cr-total-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.cr-total-label { font-size:14px; color:var(--text); font-weight:600; }
.cr-total { font-family:'Anton',sans-serif; font-weight:800; font-size:34px; letter-spacing:-.04em; color:var(--gold); }
.cr-total sup { font-size:16px; }

.btn-calc-wa {
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:14px; background:#25d366; color:#fff;
  font-family:'Inter',sans-serif; font-size:15px; font-weight:600;
  border:none; border-radius:10px; cursor:pointer;
  text-decoration:none; transition:background .2s;
}
.btn-calc-wa:hover { background:#1da851; }

/* ══════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════ */
.contact-grid { display:grid; grid-template-columns:1fr; gap:48px; align-items:start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns:1fr 1fr; gap:64px; } }

.contact-left .cta-block { text-align:left; }
.contact-left .cta-btns  { flex-direction:column; align-items:flex-start; max-width:none; margin:0; }
.contact-portal-link { margin-top:32px; padding-top:24px; border-top:1px solid var(--border); }

.cf-form { display:flex; flex-direction:column; gap:16px; }
.cf-row  { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width: 640px) { .cf-row { grid-template-columns:1fr 1fr; } }

.cf-field { display:flex; flex-direction:column; gap:7px; }
.cf-label { font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--text3); letter-spacing:.1em; text-transform:uppercase; }

.cf-input, .cf-select, .cf-textarea {
  width:100%; background:var(--surface); border:1px solid var(--border);
  border-radius:10px; padding:12px 16px;
  color:var(--text); font-family:'Inter',sans-serif; font-size:14px;
  outline:none; transition:border-color .2s; -webkit-appearance:none;
}
.cf-input::placeholder, .cf-textarea::placeholder { color:var(--text3); }
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { border-color:var(--gold); }
.cf-textarea { resize:vertical; min-height:96px; line-height:1.55; }
.cf-select {
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239c9590' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:36px;
}
.cf-select option { background:#0a0a0c; color:var(--text); }

.btn-cf-submit {
  width:100%; padding:14px; background:var(--gold); color:#08070c;
  font-family:'Inter',sans-serif; font-size:15px; font-weight:700;
  border:none; border-radius:10px; cursor:pointer;
  transition:background .2s, transform .1s;
}
.btn-cf-submit:hover  { background:var(--gold2); }
.btn-cf-submit:active { transform:scale(0.98); }
.btn-cf-submit:disabled { opacity:.55; cursor:not-allowed; }

.cf-success { display:none; padding:16px; background:rgba(74,222,128,.08); border:1px solid rgba(74,222,128,.2); border-radius:10px; color:var(--green); font-size:14px; text-align:center; }
.cf-success.show { display:block; }
.cf-error { padding:12px 16px; background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.2); border-radius:8px; color:#fca5a5; font-size:13px; display:none; }
.cf-error.show { display:block; }

/* ══════════════════════════════════════════════
   PORTAL WELCOME
══════════════════════════════════════════════ */
.portal-welcome { text-align:center; }
.portal-welcome .d2 { margin-bottom:16px; }
.pw-sub { font-size:16px; color:var(--text2); max-width:520px; margin:0 auto 48px; line-height:1.7; }

.pw-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  max-width:700px;
  margin:0 auto 32px;
}
@media (min-width:640px) { .pw-grid { grid-template-columns:1fr 1fr; } }

.pw-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px 24px;
  text-align:center;
  transition:border-color .25s, transform .25s;
  display:flex; flex-direction:column; gap:12px;
}
.pw-card:hover { border-color:rgba(196,149,106,.3); transform:translateY(-3px); }
.pw-card-client { border-color:rgba(196,149,106,.25); background:linear-gradient(145deg,rgba(196,149,106,.04) 0%,var(--surface) 100%); }

.pw-icon { font-size:36px; }
.pw-title { font-family:'Anton',sans-serif; font-weight:700; font-size:20px; letter-spacing:-.02em; }
.pw-desc { font-size:13px; color:var(--text2); line-height:1.65; flex:1; }
.pw-card .btn { margin-top:8px; }

.pw-note {
  font-family:'JetBrains Mono',monospace;
  font-size:11px; color:var(--text3);
  letter-spacing:.5px; max-width:460px;
  margin:0 auto; line-height:1.7;
}

/* ── RESPONSIVE FIXES GENERALES ── */

/* Hero: evitar que sea muy apretado en 1024-1280px */
@media (min-width:1024px) and (max-width:1199px) {
  .hero { grid-template-columns:1fr 380px; gap:40px; }
}

/* Sección Calculadora: en pantallas medianas forzar 1 col antes de 900 */
@media (max-width:899px) {
  .calc-wrap { grid-template-columns:1fr !important; }
  .calc-result { position:static; }
}

/* Precios: en pantallas 640-900px cambiar a 1-col para evitar overflow */
@media (min-width:640px) and (max-width:899px) {
  .pricing-list { flex-direction:column; }
  .pr-card { flex:none; }
}

/* Stack: 2 col en tablet, 4 col en desktop grande */
@media (min-width:640px) and (max-width:1023px) {
  .stack-cats { grid-template-columns:repeat(2,1fr) !important; }
}

/* Servicios: 1-col en 640-900px */
@media (min-width:640px) and (max-width:899px) {
  .srv-grid { flex-direction:column !important; }
}

/* Portafolio: 1-col en tablet pequeño */
@media (min-width:640px) and (max-width:899px) {
  .pf-grid { grid-template-columns:1fr !important; }
}


/* Calculadora resultado: en mobile quitar sticky */
@media (max-width:639px) {
  .calc-result { position:static; }
  .cr-total { font-size:28px; }
}

/* Portafolio welcome en mobile */
@media (max-width:639px) {
  .pw-card { padding:24px 18px; }
  .pw-sub  { font-size:14px; margin-bottom:32px; }
}

/* ══════════════════════════════════════════════
   SIMULADOR ANTIGRAVITY — ES el fondo/header general de la página, full-bleed
══════════════════════════════════════════════ */
.hero.hero-ide-full {
  width: 100%;
  height: 100vh;
  min-height: 640px;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ide-fullbleed-iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: none;
  background: var(--bg);
}
@media (max-width: 767px) {
  .hero.hero-ide-full { height: 92vh; min-height: 560px; padding: 0; }
}

/* ── COLLABORATIVE CURSORS — Wilson + Garett, recoloreados a la marca ── */
.apex-collab-cursors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}
.collab-cursor {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.4s ease, transform 0.08s cubic-bezier(0.1, 0.8, 0.1, 1);
}
.collab-cursor.visible {
  opacity: 0.85; /* Increased opacity */
}
.collab-cursor-svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.collab-cursor-label {
  margin-top: 14px;
  margin-left: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #07090e;
  white-space: nowrap;
}
.collab-cursor.wilson .collab-cursor-svg path { fill: var(--gold); }
.collab-cursor.wilson .collab-cursor-label {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(196, 149, 106, 0.4);
}
.collab-cursor.garett .collab-cursor-svg path { fill: #f0956e; }
.collab-cursor.garett .collab-cursor-label {
  background: #f0956e;
  box-shadow: 0 0 10px rgba(240, 149, 110, 0.4);
}

.collab-click-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transform: translate(-10px, -10px) scale(0);
  opacity: 0;
  pointer-events: none;
}
.collab-cursor.wilson .collab-click-ring { color: var(--gold); }
.collab-cursor.garett .collab-click-ring { color: #f0956e; }

.collab-click-anim {
  animation: collab-ring-wave 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}
@keyframes collab-ring-wave {
  0% { transform: translate(-7px, -7px) scale(0); opacity: 1; }
  100% { transform: translate(-7px, -7px) scale(1.8); opacity: 0; }
}
@media (max-width: 767px) {
  .apex-collab-cursors { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .walking-avatar, .walking-avatar .leg-left, .walking-avatar .leg-right { animation: none; }
}

/* ══════════════════════════════════════════════
   CLAUDE FLOATING AVATARS
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   WALKING AVATARS (CLAUDE & GEMINI BOTS)
   ══════════════════════════════════════════════ */
.walking-avatar {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  height: 28px;
  width: 28px;
  opacity: 0.6;
}
.walking-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.walking-avatar .leg-left {
  animation: legSwing 0.2s ease-in-out infinite alternate;
  transform-origin: 5px 13px;
}
.walking-avatar .leg-right {
  animation: legSwing 0.2s ease-in-out infinite alternate-reverse;
  transform-origin: 11px 13px;
}

/* Position each avatar at a different height */
.wa-1 { bottom: auto; height: 32px; width: 32px; opacity: 0.7;
        animation: bobbing 0.4s ease-in-out infinite alternate; }
.wa-2 { bottom: auto; height: 28px; width: 28px; opacity: 0.6;
        animation: bobbing 0.44s ease-in-out infinite alternate; }
.wa-3 { bottom: auto; height: 24px; width: 24px; opacity: 0.4;
        animation: bobbing 0.36s ease-in-out infinite alternate; }
.wa-4 { bottom: auto; height: 28px; width: 28px; opacity: 0.6;
        animation: bobbing 0.5s ease-in-out infinite alternate; }
.wa-5 { bottom: auto; height: 22px; width: 22px; opacity: 0.35;
        animation: bobbing 0.42s ease-in-out infinite alternate; }
.wa-6 { bottom: auto; height: 30px; width: 30px; opacity: 0.55;
        animation: bobbing 0.46s ease-in-out infinite alternate; }

@keyframes legSwing {
  0%   { transform: rotate(-28deg); }
  100% { transform: rotate(28deg); }
}
@keyframes bobbing {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
@keyframes walkRight {
  0%   { left: -40px; }
  100% { left: calc(100% + 40px); }
}
@keyframes walkLeft {
  0%   { left: calc(100% + 40px); }
  100% { left: -40px; }
}

/* ── Mobile: performance ── */
@media (max-width: 767px) {
  .walking-avatar { display: none; }
}

/* ══════════════════════════════════════════════
   CLAUDE TOAST — avatar pill + card dropdown
══════════════════════════════════════════════ */
.claude-toast {
  position: fixed;
  bottom: 88px;
  left: 20px;
  z-index: 990;
  font-family: 'JetBrains Mono', monospace;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  pointer-events: none;
}
.claude-toast.show     { transform: translateY(0); opacity: 1; pointer-events: all; }
.claude-toast.dismissed { transform: translateY(30px); opacity: 0; pointer-events: none; }
.claude-toast.suppressed { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* Floating avatar pill */
.clt-pill-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #1A1A2E;
  border: 1.5px solid rgba(196,149,106,.45);
  box-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 24px rgba(196,149,106,.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.clt-pill-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(0,0,0,.65), 0 0 36px rgba(196,149,106,.30);
  border-color: rgba(196,149,106,.7);
}
.clt-pill-avatar { width: 28px; height: 28px; display:flex; align-items:center; justify-content:center; }
.clt-pill-avatar svg { width:100%; height:100%; image-rendering:pixelated; }

/* Online pip */
.clt-pip {
  position: absolute; top: 3px; right: 3px;
  width: 10px; height: 10px;
  background: #4ADE80;
  border-radius: 50%;
  border: 2px solid #1A1A2E;
  animation: pipPulse 2.5s ease-in-out infinite;
}
@keyframes pipPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50%     { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* Expanded card */
.clt-card {
  position: absolute;
  bottom: 60px; left: 0;
  width: 300px;
  background: #1A1A2E;
  border: 1px solid rgba(196,149,106,.3);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.65), 0 0 0 1px rgba(196,149,106,.06), 0 0 30px rgba(196,149,106,.10);
  overflow: hidden;
  transform: translateY(10px) scale(0.94);
  transform-origin: bottom left;
  opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
}
.claude-toast.expanded .clt-card {
  transform: translateY(0) scale(1);
  opacity: 1; pointer-events: all;
}

/* Bar */
.clt-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #0E0E1A;
  border-bottom: 2px solid rgba(196,149,106,.4);
}
.clt-avatar-sm { width:26px; height:26px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.clt-avatar-sm svg { width:100%; height:100%; image-rendering:pixelated; }
.clt-info { flex:1; }
.clt-name   { font-size:11px; font-weight:700; color:var(--gold); letter-spacing:.04em; }
.clt-status { font-size:9px; color:rgba(196,149,106,.5); letter-spacing:.1em; text-transform:uppercase; margin-top:1px; }

.clt-close {
  width:22px; height:22px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  border-radius:5px; color:var(--text3); font-size:10px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .15s; flex-shrink:0; font-family:inherit;
}
.clt-close:hover { color:var(--text); border-color:rgba(255,255,255,.18); }

/* Body */
.clt-body { padding:14px 16px; }
.clt-msg {
  font-size:12px; color:rgba(240,200,160,.85); line-height:1.6; margin-bottom:14px;
  background:rgba(196,149,106,.05); border:1px solid rgba(196,149,106,.12);
  border-radius:6px; padding:10px 12px;
}
.clt-msg::before { content:'◆ '; color:var(--gold); font-weight:700; }
.clt-actions { display:flex; flex-direction:column; gap:8px; }
.clt-btn-primary {
  display:flex; align-items:center; justify-content:center;
  padding:9px 16px; background:var(--gold); color:#0C0C14; border-radius:7px;
  font-family:'JetBrains Mono',monospace; font-size:11.5px; font-weight:700;
  text-decoration:none; transition:background .2s, box-shadow .2s; letter-spacing:.02em;
}
.clt-btn-primary:hover { background:#DBA878; box-shadow:0 4px 20px rgba(196,149,106,.35); }
.clt-btn-secondary {
  display:flex; align-items:center; justify-content:center;
  padding:9px 16px; background:transparent; color:var(--text2);
  border:1px solid rgba(255,255,255,.1); border-radius:7px;
  font-family:'JetBrains Mono',monospace; font-size:11.5px;
  text-decoration:none; transition:all .2s;
}
.clt-btn-secondary:hover { border-color:rgba(196,149,106,.35); color:var(--gold); }

/* ══════════════════════════════════════════════
   CURSOR GLOW
══════════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle,
    rgba(196,149,106,.11) 0%,
    rgba(196,149,106,.04) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  left: -600px; top: -600px;
  transition: left .08s linear, top .08s linear;
  will-change: left, top;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ══════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold2), var(--gold3));
  z-index: 9999;
  box-shadow: 0 0 10px rgba(196,149,106,.6), 0 0 20px rgba(196,149,106,.3);
  pointer-events: none;
  transition: width .08s linear;
}

/* ══════════════════════════════════════════════
   HERO TYPEWRITER — em tag transition
══════════════════════════════════════════════ */
.hero-h1 em {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — PHONES PEQUEÑOS ≤ 380px
══════════════════════════════════════════════ */
@media (max-width:380px) {
  .hero         { padding:72px 0 44px; }
  .hero-sub     { font-size:15px; }
  .hero-btns    { gap:8px; }
  .btn          { padding:12px 18px; font-size:13px; }
  .nav-logo-text{ font-size:11px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLETAS 768–1023px
══════════════════════════════════════════════ */
@media (min-width:768px) and (max-width:1023px) {
  .hero       { padding: 80px 0 40px; }
  .hero-sub   { font-size:16px; max-width:580px; }
  .hero-btns  { flex-direction:row; justify-content:center; gap:12px; }
  .section    { padding:80px 0; }
  .sec-head p { max-width:520px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — LAPTOPS GRANDES 1440px
   (wrap sigue en 1120px — hero se ajusta dentro)
══════════════════════════════════════════════ */
@media (min-width:1440px) {
  .hero-sub { font-size:18px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — DESKTOPS 1600px
   (wrap pasa a 1400px)
══════════════════════════════════════════════ */
@media (min-width:1600px) {
  .hero           { padding: 0; }
  .hero-card      { max-width:680px; }
  .hero-sub       { font-size:18px; }
  .section        { padding:120px 0; }
  .sec-head       { margin-bottom:56px; }
  .sec-head p     { max-width:560px; font-size:16px; }
  .mono           { font-size:12px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — FULL HD 1920px
══════════════════════════════════════════════ */
@media (min-width:1920px) {
  .wrap           { max-width:1600px; }
  .nav-wrap       { max-width:1600px; }
  .hero           { padding: 0; }
  .hero-sub       { font-size:19px; }
  .section        { padding:140px 0; }
  .sec-head       { margin-bottom:64px; }
  .sec-head p     { max-width:620px; font-size:17px; }
  .mono           { font-size:13px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — QHD 2000px
   (wrap pasa a 1720px)
══════════════════════════════════════════════ */
@media (min-width:2000px) {
  .hero           { padding: 0; }
  .hero-sub       { font-size:20px; }
  .section        { padding:160px 0; }
  .sec-head       { margin-bottom:72px; }
  .sec-head p     { max-width:660px; font-size:18px; }
  .mono           { font-size:14px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — 27" QHD 2560px
   (wrap pasa a 2100px)
══════════════════════════════════════════════ */
@media (min-width:2560px) {
  .hero           { padding: 0; }
  .hero-sub       { font-size:22px; }
  .section        { padding:200px 0; }
  .sec-head       { margin-bottom:80px; }
  .sec-head p     { max-width:760px; font-size:20px; }
  .mono           { font-size:15px; }
  .d1             { letter-spacing:-0.05em; }
  .nav-wrap       { height:64px; }
}

/* ══════════════════════════════════════════════
   PROCESO TIMELINE — visual 5 pasos
══════════════════════════════════════════════ */
/* Panel sticky — refleja la etapa activa mientras se scrollea el proceso (solo mobile/tablet) */
.proc-stage {
  position: sticky;
  top: 76px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: rgba(16,19,24,.92);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
}
.proc-stage-seal {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, var(--gold3), var(--gold) 58%, #7A5A38 100%);
  border: 2px solid var(--gold2);
  box-shadow: 0 0 0 2px rgba(196,149,106,.3);
  font-size: 18px;
  transition: transform .3s;
}
.proc-stage-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proc-stage-step { font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:var(--text3); }
.proc-stage-phase { font-family:'Anton',sans-serif; font-size:15px; color:var(--text); }
.proc-stage-bar { width: 64px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; flex-shrink: 0; }
.proc-stage-fill { height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .4s ease; }

@media (min-width: 768px) {
  /* En desktop el timeline es horizontal y las 5 etapas ya se ven juntas — el panel sticky sobra */
  .proc-stage { display: none; }
}

.proc-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Vertical connecting line (mobile) */
.proc-timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: 46px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,149,106,.2) 15%, rgba(196,149,106,.2) 85%, transparent);
  pointer-events: none;
}

.proc-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 20px;
  align-items: start;
  padding-bottom: 40px;
}
.proc-step:last-child { padding-bottom: 0; }

.proc-node {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--gold3), var(--gold) 58%, #7A5A38 100%);
  border: 2.5px solid var(--gold2);
  box-shadow: 0 0 0 2px rgba(196,149,106,.3), 0 4px 12px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; flex-shrink: 0;
  transition: box-shadow .3s, transform .3s;
}
.proc-step:hover .proc-node {
  box-shadow: 0 0 0 2px var(--gold2), 0 0 22px rgba(196,149,106,.4);
  transform: scale(1.05);
}

.proc-node-num {
  font-family: 'Anton', sans-serif;
  font-size: 13px; font-weight: 400;
  color: #2A1A08; letter-spacing: .02em;
}

.proc-step-content { padding-top: 10px; }

.proc-step-icon {
  font-size: 20px; display: block;
  margin-bottom: 8px; line-height: 1;
}

.proc-step-phase {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold); opacity: .75; margin-bottom: 6px;
}

.proc-step-name {
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 700; color: var(--text);
  letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.3;
}

.proc-step-desc {
  font-size: 13.5px; line-height: 1.7;
  color: var(--text2); margin-bottom: 14px;
}

.proc-step-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.proc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  background: rgba(196,149,106,.06);
  border: 1px solid rgba(196,149,106,.16);
  color: var(--gold); letter-spacing: .03em;
}

/* Desktop: horizontal timeline */
@media (min-width: 768px) {
  .proc-timeline {
    flex-direction: row;
    align-items: flex-start;
  }
  /* Horizontal connecting line */
  .proc-timeline::before {
    top: 22px; left: 23px; right: 23px;
    bottom: auto; width: auto; height: 1px;
    background: linear-gradient(to right, transparent, rgba(196,149,106,.22) 10%, rgba(196,149,106,.22) 90%, transparent);
  }
  .proc-step {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0; padding-right: 20px;
  }
  .proc-step:last-child { padding-right: 0; }
  .proc-node { margin-bottom: 20px; }
  .proc-step-content { padding-top: 0; }
}

@media (min-width: 1024px) {
  .proc-step { padding-right: 32px; }
}

/* ══════════════════════════════════════════════
   ACTIVIDAD — proyectos en vivo
══════════════════════════════════════════════ */
.act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .act-grid { grid-template-columns: repeat(3, 1fr); }
}

.act-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .25s, box-shadow .25s;
}
.act-card:hover {
  border-color: rgba(196,149,106,.22);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.act-card-top { margin-bottom: 14px; }

.act-client-info {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; margin-bottom: 6px;
}

.act-client-name {
  font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
}

.act-service {
  font-size: 12px; color: var(--text2); line-height: 1.4;
  display: block;
}

.act-progress-wrap {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}

.act-progress-bar {
  flex: 1; height: 3px; border-radius: 100px;
  background: rgba(255,255,255,.06); overflow: hidden;
}

.act-progress-fill {
  height: 100%; border-radius: 100%;
  transition: width .8s cubic-bezier(0.16,1,0.3,1);
}

.act-fill-live  { background: var(--green); box-shadow: 0 0 8px rgba(74,222,128,.4); }
.act-fill-build { background: var(--gold);  box-shadow: 0 0 8px rgba(196,149,106,.4); }
.act-fill-prep  { background: var(--blue);  box-shadow: 0 0 8px rgba(96,165,250,.4); }

.act-progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text3); flex-shrink: 0; width: 30px;
}

.act-meta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  flex-wrap: wrap;
}

.act-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text3); letter-spacing: .03em;
}

.act-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text3);
}

/* Build log terminal */
.act-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.act-log-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(196,149,106,.04);
  border-bottom: 1px solid var(--border);
}

.act-log-dots {
  display: flex; gap: 5px; flex-shrink: 0;
}

.act-log-title {
  font-size: 11px; color: var(--text3);
  letter-spacing: .08em; flex: 1;
}

.act-log-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: var(--green);
  letter-spacing: .12em;
}
.act-log-live .chip-dot {
  width: 6px; height: 6px;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}

.act-log-body {
  padding: 14px 16px; display: flex;
  flex-direction: column; gap: 8px;
}

.act-log-line {
  font-size: 11.5px; color: var(--text3); line-height: 1.5;
  display: flex; gap: 8px;
}
.act-log-line .term-prompt { color: var(--gold); flex-shrink: 0; }
.act-log-line.cmd-ok { color: rgba(74,222,128,.7); }

.act-log-cursor {
  font-size: 11px; color: var(--gold);
  animation: tealBlink 1.2s ease-in-out infinite;
}
