/* ══════════════════════════════════════════════════
   IDRA MARKETING — styles.css
   Paleta: negro / gris / blanco
══════════════════════════════════════════════════ */

:root {
  --black: #060607;
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --surface: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --white: #f5f5f6;
  --gray-1: #c7c7cc;
  --gray-2: #8e8e96;
  --gray-3: #55555c;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--white); color: var(--black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Logo oscuro → blanco sobre fondo negro */
.nav-logo img,
.footer-logo,
.preloader-logo {
  filter: brightness(0) invert(1);
}

/* ══════════ PRELOADER ══════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-smooth), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  width: 220px;
  margin: 0 auto 28px;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1); }
}
.preloader-bar {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--white);
  border-radius: 2px;
  animation: preloader-slide 1.1s var(--ease-smooth) infinite;
}
@keyframes preloader-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ══════════ CURSOR ══════════ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--white);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
.cursor-ring.hovering {
  width: 56px; height: 56px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ══════════ SCROLL PROGRESS ══════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gray-2), var(--white));
  z-index: 9000;
}

/* ══════════ NAV ══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  padding: 22px 0;
  transition: transform 0.45s var(--ease-out), padding 0.45s var(--ease-out),
              background 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(8, 8, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav.hidden { transform: translateY(-110%); }
.nav-inner {
  width: min(1300px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; transition: height 0.45s var(--ease-out); }
.nav.scrolled .nav-logo img { height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--gray-1);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.nav-cta .arrow { transition: transform 0.35s var(--ease-out); }
.nav-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.nav-cta:hover .arrow { transform: translateX(4px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 8001;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #1a1a1e 0%, var(--bg) 60%);
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  animation: grid-drift 24s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px; }
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  animation: glow-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -55%) scale(1.15); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 24px 100px;
  max-width: 1000px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gray-1);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  padding: 9px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  animation: pulse-ring 1.8s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; }
.typed-wrap {
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(100deg, #ffffff 20%, #9b9ba3 60%, #5b5b63 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 1.1em;
}
.typed-caret {
  width: 3px;
  height: 0.85em;
  background: var(--white);
  display: inline-block;
  margin-left: 6px;
  align-self: center;
  animation: caret-blink 0.9s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.accent-dot { color: var(--gray-2); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-1);
  max-width: 620px;
  margin: 0 auto 44px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { box-shadow: 0 0 42px rgba(255, 255, 255, 0.25); }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(0,0,0,0.08) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-smooth);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-full { width: 100%; justify-content: center; }

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.meta-item strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.meta-item span { font-size: 0.78rem; color: var(--gray-2); letter-spacing: 0.04em; }
.meta-divider { width: 1px; height: 34px; background: var(--border-strong); }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 52px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.scroll-line span {
  display: block;
  width: 100%; height: 40%;
  background: var(--white);
  animation: scroll-drop 1.8s var(--ease-smooth) infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(280%); }
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-3);
}

/* ══════════ MARQUEE ══════════ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: var(--black);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--black), transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--white); }
.marquee-track i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--gray-3);
}

/* ══════════ SECCIONES ══════════ */
.section { padding: 130px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 70px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: block;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, #b9b9c0, #6d6d75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ══════════ SERVICIOS ══════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px 32px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover .card-glow { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: transform 0.45s var(--ease-out), background 0.45s;
}
.service-icon svg { width: 26px; height: 26px; color: var(--white); }
.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.94rem;
  color: var(--gray-1);
  margin-bottom: 22px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-list li {
  font-size: 0.86rem;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.service-list li::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--gray-3);
  transition: width 0.3s var(--ease-out), background 0.3s;
  flex-shrink: 0;
}
.service-card:hover .service-list li { color: var(--gray-1); }
.service-card:hover .service-list li::before { width: 22px; background: var(--white); }
.card-number {
  position: absolute;
  top: 28px; right: 30px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-3);
  letter-spacing: 0.1em;
}

/* ══════════ PROCESO ══════════ */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.process-line {
  position: absolute;
  top: 27px;
  left: 4%; right: 4%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-line span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gray-2), var(--white));
  transition: width 1.6s var(--ease-smooth);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.process-step { position: relative; z-index: 1; }
.step-marker {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.step-marker span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-1);
}
.process-step:hover .step-marker {
  border-color: var(--white);
  background: var(--surface);
  box-shadow: 0 0 26px rgba(255,255,255,0.14);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.process-step p { font-size: 0.9rem; color: var(--gray-2); }

/* ══════════ STATS ══════════ */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,255,255,0.04), transparent 70%),
    var(--black);
  padding: 90px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  background: linear-gradient(180deg, #ffffff 30%, #6f6f78);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-2);
  letter-spacing: 0.05em;
  margin-top: 6px;
  display: block;
}

/* ══════════ SHOWCASE ══════════ */
.showcase { display: flex; flex-direction: column; gap: 110px; }
.showcase-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
}
.showcase-reverse { grid-template-columns: 1fr 1.15fr; }
.showcase-reverse .dashboard { order: 2; }
.showcase-reverse .showcase-text { order: 1; }
.showcase-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.showcase-text p { color: var(--gray-1); margin-bottom: 26px; font-size: 1rem; }
.link-arrow {
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.link-arrow span { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { border-color: var(--white); }
.link-arrow:hover span { transform: translateX(5px); }

/* Terminal */
.terminal {
  background: #0c0c0e;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.terminal:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 100px rgba(0,0,0,0.65), 0 0 40px rgba(255,255,255,0.04);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.t-dot:first-child { background: rgba(255,255,255,0.32); }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-2);
  margin-left: 10px;
  letter-spacing: 0.04em;
}
.terminal-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  min-height: 300px;
  color: var(--gray-1);
}
.terminal-body .t-line { white-space: pre-wrap; word-break: break-word; }
.terminal-body .t-prompt { color: var(--white); font-weight: 500; }
.terminal-body .t-ok { color: #ffffff; }
.terminal-body .t-dim { color: var(--gray-3); }
.terminal-body .t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--white);
  vertical-align: middle;
  animation: caret-blink 0.85s step-end infinite;
}

/* Dashboard */
.dashboard {
  background: #0c0c0e;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.dashboard:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 100px rgba(0,0,0,0.65), 0 0 40px rgba(255,255,255,0.04);
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dash-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--gray-1);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.dash-kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kpi-label {
  font-size: 0.68rem;
  color: var(--gray-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kpi-trend { font-family: var(--font-mono); font-size: 0.66rem; }
.kpi-trend.up { color: #d8d8de; }
.dash-chart {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
  margin-bottom: 20px;
  overflow: hidden;
}
.dash-chart svg { display: block; width: 100%; height: 120px; }
.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 90px;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}
.bar-col span {
  width: 100%;
  max-width: 34px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.18));
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
  animation: bar-shimmer 3.2s ease-in-out infinite;
}
.dashboard.in-view .bar-col span { transform: scaleY(1); }
.bar-col:nth-child(1) span { transition-delay: 0.05s; }
.bar-col:nth-child(2) span { transition-delay: 0.12s; }
.bar-col:nth-child(3) span { transition-delay: 0.19s; }
.bar-col:nth-child(4) span { transition-delay: 0.26s; }
.bar-col:nth-child(5) span { transition-delay: 0.33s; }
.bar-col:nth-child(6) span { transition-delay: 0.40s; }
.bar-col:nth-child(7) span { transition-delay: 0.47s; }
@keyframes bar-shimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.bar-col i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gray-3);
}

/* ══════════ TECH MARQUEES ══════════ */
.tech-marquees { display: flex; flex-direction: column; gap: 0; }
.tech-marquee { background: transparent; border-color: var(--border); }
.tech-marquee::before { background: linear-gradient(90deg, var(--bg-alt), transparent); }
.tech-marquee::after { background: linear-gradient(-90deg, var(--bg-alt), transparent); }
.tech-marquee .marquee-track { gap: 0; animation-duration: 36s; }
.tech-marquee.reverse .marquee-track { animation-direction: reverse; }
.tech-marquee .marquee-track span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--gray-3);
  padding: 6px 38px;
  border-right: 1px solid var(--border);
  transition: color 0.35s, text-shadow 0.35s;
}
.tech-marquee .marquee-track span:hover {
  color: var(--white);
  text-shadow: 0 0 24px rgba(255,255,255,0.4);
}

/* ══════════ CONTACTO ══════════ */
.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255,255,255,0.05), transparent 70%),
    var(--black);
}
.contact-glow {
  position: absolute;
  width: 800px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 60%);
  bottom: -250px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-sub { color: var(--gray-1); margin: 22px 0 36px; max-width: 440px; }
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.channel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--gray-1);
  transition: color 0.3s, transform 0.3s var(--ease-out);
  width: fit-content;
}
.channel svg { width: 20px; height: 20px; color: var(--gray-2); transition: color 0.3s; }
.channel:hover { color: var(--white); transform: translateX(6px); }
.channel:hover svg { color: var(--white); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-field { position: relative; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.form-field label {
  position: absolute;
  left: 16px; top: 17px;
  font-size: 0.9rem;
  color: var(--gray-2);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  background: transparent;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--gray-1);
  background: var(--surface);
  padding: 0 7px;
  border-radius: 4px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--gray-2);
  text-align: center;
  min-height: 1.2em;
  transition: color 0.3s;
}
.form-note.ok { color: var(--white); }
.form-note.error { color: #ff8a8a; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ══════════ FOOTER ══════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--black);
  padding: 70px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.88rem; color: var(--gray-2); max-width: 340px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--gray-1);
  margin-bottom: 12px;
  width: fit-content;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--white); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray-3);
}
.footer-tag { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ══════════ REVEAL ON SCROLL ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .process-line { display: none; }
  .showcase-item,
  .showcase-reverse { grid-template-columns: 1fr; gap: 36px; }
  .showcase-reverse .dashboard { order: 1; }
  .showcase-reverse .showcase-text { order: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 7, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links .nav-link { font-size: 1.4rem; }
  .nav-links .nav-cta { font-size: 1.05rem; padding: 14px 30px; }
  .hero-meta { gap: 18px; }
  .meta-divider { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .process-track { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpi:last-child { grid-column: span 2; }
}

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