/* ============================================================
   PUNTO CÓDIGO — Software Development Studio
   High-Craft Visual System · Interactive Engineering Showcase
   ============================================================ */

:root {
  --bg: #05070e;
  --bg-2: #0a0e1a;
  --surface: rgba(15, 21, 38, 0.72);
  --surface-solid: #0f1526;
  --surface-hover: rgba(22, 31, 56, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(56, 189, 248, 0.35);
  --ink: #f8fafc;
  --ink-dim: #cbd5e1;
  --muted: #8b9bb4;
  --blue: #2563eb;
  --cyan: #38bdf8;
  --orange: #f97316;
  --amber: #fbbf24;
  --green: #10b981;
  --display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(18px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
  z-index: 9999;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transition: width 0.06s linear;
}

/* Global cursor glow */
.cursor-glow {
  position: fixed;
  width: 560px; height: 560px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, rgba(249, 115, 22, 0.05) 38%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* Background grid + aurora */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.bg-orb--1 {
  width: 520px; height: 520px;
  top: -140px; left: -100px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
}
.bg-orb--2 {
  width: 460px; height: 460px;
  top: 22%; right: -120px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  animation-delay: -6s;
}
.bg-orb--3 {
  width: 500px; height: 500px;
  bottom: -160px; left: 25%;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  animation-delay: -11s;
}
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -35px) scale(1.12); }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 var(--pad);
  margin-top: 14px;
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1.15rem;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.nav__brand img {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}
.nav__brand span b {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.nav__status .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.82rem 1.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 50%, var(--orange) 100%);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 10px 28px -6px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 36px -6px rgba(249, 115, 22, 0.55), 0 0 24px rgba(56, 189, 248, 0.35);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 0.58rem 1.05rem;
  font-size: 0.85rem;
  border-radius: 10px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   HERO — SPLIT ENGINEERING STAGE
   ============================================================ */
.hero {
  padding: clamp(36px, 6vw, 76px) 0 clamp(56px, 8vw, 96px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem 0.38rem 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--cyan);
  margin-bottom: 1.35rem;
}
.hero__badge-tag {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #fff;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.45rem, 4.9vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hero__title .grad {
  background: linear-gradient(95deg, #ffffff 0%, var(--cyan) 48%, var(--orange) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__typewriter {
  display: inline-block;
  border-right: 3px solid var(--orange);
  padding-right: 4px;
  color: var(--amber);
  animation: caretBlink 0.9s step-end infinite;
}
@keyframes caretBlink { 50% { border-color: transparent; } }

.hero__sub {
  margin: 0 0 1.9rem;
  font-size: clamp(1.02rem, 1.15vw, 1.18rem);
  color: var(--ink-dim);
  max-width: 54ch;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.3rem;
}

/* Metrics row inside hero */
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.metric__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric__label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Right column: 3D Interactive Showcase Stack */
.hero__stage {
  position: relative;
  perspective: 1200px;
}
.stage-window {
  background: linear-gradient(165deg, rgba(19, 27, 49, 0.92), rgba(9, 13, 25, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  box-shadow:
    0 30px 80px -15px rgba(0, 0, 0, 0.75),
    0 0 50px -10px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.stage-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(5, 8, 17, 0.75);
  border-bottom: 1px solid var(--border);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.stage-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 9px;
}
.stage-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.stage-tab.is-active {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.stage-body {
  padding: 1.25rem;
  min-height: 365px;
  position: relative;
}
.stage-pane {
  display: none;
  animation: paneFade 0.32s var(--ease);
}
.stage-pane.is-active { display: block; }
@keyframes paneFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Pane 1: Interactive Live POS Simulator */
.pos-sim__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.pos-sim__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pos-sim__badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}
.pos-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.pos-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: var(--ink);
  transition: all 0.18s;
}
.pos-item:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.09);
  transform: translateY(-1px);
}
.pos-item:active { transform: scale(0.97); }
.pos-item__name {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
}
.pos-item__cat {
  font-size: 0.68rem;
  color: var(--muted);
}
.pos-item__price {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
}
.pos-ticket {
  background: rgba(5, 8, 17, 0.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.pos-ticket__rows {
  max-height: 92px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.pos-ticket__row {
  display: flex;
  justify-content: space-between;
}
.pos-ticket__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}
.pos-total-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pos-total-val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #34d399;
}
.pos-charge-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s;
}
.pos-charge-btn:hover { transform: translateY(-1px); }

/* Pane 2: Android App Mockup */
.app-mock {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 1rem;
  align-items: center;
}
.phone-frame {
  background: #060913;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.phone-notch {
  width: 54px; height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  margin: 0 auto 0.6rem;
}
.phone-card {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 12px;
  padding: 0.65rem;
  margin-bottom: 0.55rem;
}
.phone-card small { font-size: 0.62rem; opacity: 0.85; display: block; }
.phone-card strong { font-family: var(--display); font-size: 1.05rem; }
.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.phone-list div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-size: 0.68rem;
  display: flex;
  justify-content: space-between;
}
.app-specs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.app-spec {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.app-spec strong {
  display: block;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 0.15rem;
}
.app-spec span {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Pane 3: Live Code / Architecture */
.code-view {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
  background: rgba(4, 7, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: #e2e8f0;
  overflow-x: auto;
}
.code-view .k { color: #38bdf8; }
.code-view .fn { color: #fbbf24; }
.code-view .s { color: #34d399; }
.code-view .c { color: #64748b; }

/* Floating Brand Chip over Hero Stage */
.stage-float-brand {
  position: absolute;
  bottom: -18px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
.stage-float-brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.stage-float-brand div strong {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
}
.stage-float-brand div span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
}

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 24, 0.65);
  padding: 1.05rem 0;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}
.sec-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.sec-kicker::before {
  content: '//';
  color: var(--orange);
  font-weight: 700;
}
.sec-title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.sec-sub {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

/* ============================================================
   BENTO SERVICES GRID (Spotlight Hover Cards)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.bento-card {
  grid-column: span 4;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.bento-card--wide { grid-column: span 6; }

/* Spotlight radial gradient following cursor */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, 0.15),
    rgba(249, 115, 22, 0.05) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.65), 0 0 30px -8px rgba(37, 99, 235, 0.3);
}

.bento-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bento-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(249, 115, 22, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

.bento-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.bento-card__desc {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.bento-features {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.bento-features li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}
.bento-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-top: 0.3rem;
  transition: gap 0.2s, color 0.2s;
}
.bento-card:hover .bento-card__cta {
  color: var(--orange);
  gap: 0.7rem;
}

/* ============================================================
   INTERACTIVE PROJECT ESTIMATOR (Live Thing)
   ============================================================ */
.estimator-wrap {
  background: linear-gradient(160deg, rgba(16, 23, 42, 0.9), rgba(9, 13, 24, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}
.est-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.est-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s var(--ease);
}
.est-chip:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
}
.est-chip.is-selected {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(249, 115, 22, 0.14));
  box-shadow: 0 8px 24px -6px rgba(249, 115, 22, 0.35);
}
.est-check {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.18s;
}
.est-chip.is-selected .est-check {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.est-chip strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.est-chip span {
  font-size: 0.78rem;
  color: var(--muted);
}

.est-custom {
  margin-top: 1.15rem;
  background: rgba(5, 8, 17, 0.65);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}
.est-custom__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.est-custom__head strong {
  font-family: var(--display);
  font-size: 0.92rem;
  color: #fff;
}
.est-custom__badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.est-custom p {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.est-custom__input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.est-custom__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.est-summary {
  background: rgba(5, 8, 17, 0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
}
.est-summary__head {
  font-family: var(--mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.est-summary__list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-dim);
}
.est-summary__list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.est-summary__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
}
.est-summary__meta span {
  font-size: 0.8rem;
  color: var(--muted);
}
.est-summary__meta strong {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--amber);
}

/* ============================================================
   CUSTOM ARCHITECTURE & DIAGNOSTIC ENGINE
   ============================================================ */
.arch-stage {
  background: linear-gradient(155deg, rgba(14, 21, 40, 0.94), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.arch-stage::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 70%);
  pointer-events: none;
}
.arch-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.arch-node {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.arch-node:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.arch-node__code {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.2rem;
}
.arch-node strong {
  font-family: var(--display);
  font-size: 0.92rem;
  display: block;
  color: #fff;
}
.arch-node span {
  font-size: 0.76rem;
  color: var(--muted);
}

.diag-console {
  background: rgba(4, 7, 15, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  padding: 1.4rem;
  position: relative;
  z-index: 2;
}
.diag-console__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
}
.diag-field {
  margin-bottom: 0.9rem;
}
.diag-field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}
.diag-select,
.diag-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.diag-select:focus,
.diag-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.diag-textarea {
  min-height: 92px;
  resize: vertical;
}
.diag-SpecOut {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: #a7f3d0;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ============================================================
   SCALABILITY & EVOLVING SECURITY BANNER
   ============================================================ */
.shield-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.shield-card {
  background: linear-gradient(155deg, rgba(16, 24, 48, 0.88), rgba(8, 12, 24, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 38px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.shield-card--sec {
  border-color: rgba(16, 185, 129, 0.32);
}
.shield-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.7), 0 0 28px -8px rgba(56, 189, 248, 0.28);
}
.shield-card--sec:hover {
  border-color: #10b981;
  box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.7), 0 0 28px -8px rgba(16, 185, 129, 0.3);
}
.shield-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan);
}
.shield-badge--sec {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.shield-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.shield-card p {
  margin: 0 0 1.25rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}
.shield-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.shield-list li {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shield-list li strong {
  color: var(--cyan);
  font-family: var(--mono);
}
.shield-card--sec .shield-list li strong {
  color: #34d399;
}

/* ============================================================
   PORTFOLIO / CLIENTES QUE CONFÍAN EN NOSOTROS
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.port-card {
  position: relative;
  background: linear-gradient(160deg, rgba(16, 23, 44, 0.88), rgba(8, 12, 24, 0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.port-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.78), 0 0 32px -8px rgba(37, 99, 235, 0.35);
}
.port-browser {
  background: rgba(5, 8, 17, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.port-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 0.24rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.port-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.port-body {
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.port-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.port-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.port-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  padding: 5px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.port-logo--wide {
  width: 96px;
  height: 56px;
  padding: 6px 8px;
}
.port-logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 15, 30, 0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.port-logos-strip__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 0.5rem;
}
.port-logos-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.port-logos-strip__item:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.port-logos-strip__item img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}
.port-sector {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.25rem;
}
.port-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.port-desc {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-dim);
  line-height: 1.6;
}
.port-desc__thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px;
  object-fit: contain;
  float: left;
  margin: 0.15rem 0.65rem 0.2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.port-desc__thumb--wide {
  width: 54px;
  height: 32px;
}
.port-stack {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.port-stack li {
  font-family: var(--mono);
  font-size: 0.71rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
}
.port-foot {
  padding: 0.95rem clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 17, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.port-metric {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--muted);
}
.port-metric strong {
  color: var(--amber);
}
.port-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cyan);
  transition: color 0.2s, transform 0.2s;
}
.port-card:hover .port-link {
  color: var(--orange);
  transform: translateX(3px);
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.proc-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.65rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.proc-step:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.proc-step__num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.proc-step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.22rem;
}
.proc-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

/* ============================================================
   CONTACT + CTA
   ============================================================ */
.contact-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(15, 21, 38, 0.92) 55%, rgba(249, 115, 22, 0.14) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.contact-cards {
  display: grid;
  gap: 0.85rem;
}
.contact-item {
  background: rgba(5, 8, 17, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
}
.contact-item small {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item strong {
  font-family: var(--display);
  font-size: 1.18rem;
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 700;
}
.foot__brand img {
  width: 42px; height: 42px;
  border-radius: 10px;
}
.foot__copy {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Floating WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.03); }
.wa-fab svg { width: 20px; height: 20px; }

/* Reveal animations */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid,
  .estimator-wrap,
  .arch-stage,
  .shield-grid,
  .portfolio-grid,
  .contact-box { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card--wide { grid-column: span 6; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-float-brand { position: static; margin-top: 1rem; width: fit-content; }
}

@media (max-width: 680px) {
  .nav__links, .nav__status { display: none; }
  .bento-card,
  .bento-card--wide { grid-column: span 12; }
  .est-chips,
  .arch-matrix,
  .shield-list,
  .process-grid,
  .pos-products,
  .app-mock { grid-template-columns: 1fr; }
  .hero__metrics { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
