/* ═══════════════════════════════════════════════════════
   RSW Studio — Premium CSS
   Dark tech aesthetic · Glassmorphism · Electric palette
   ═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  --bg:          #07070c;
  --bg-2:        #0d0d18;
  --bg-card:     rgba(255, 255, 255, 0.018);
  --bg-card-h:   rgba(255, 255, 255, 0.036);
  --border:      rgba(255, 255, 255, 0.055);
  --border-h:    rgba(88, 84, 232, 0.38);

  --blue:        #2563eb;
  --blue-l:      #3b82f6;
  --purple:      #7c3aed;
  --purple-l:    #8b5cf6;
  --indigo:      #5854e8;
  --electric:    #4f46e5;

  --text:        #eef2f7;
  --text-2:      #8fa0b8;
  --text-3:      #4a5568;
  --text-muted:  #2d3a4a;

  --grad:        linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-r:      linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-text:   linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 0 40px rgba(88, 84, 232, 0.06);
  --shadow-h:    0 0 60px rgba(88, 84, 232, 0.14);

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --nav-h:       68px;
  --max-w:       1200px;
  --section-py:  128px;
}

/* ─── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  opacity: 0.85;
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.8;
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 84, 232, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88, 84, 232, 0.44);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  transition: gap 0.2s var(--ease);
}

.link-arrow:hover { gap: 10px; }

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(7, 7, 12, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  align-items: center;
}

.logo-fallback-sm {
  font-size: 16px;
}

.logo-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
}

.cta-arrow {
  transition: transform 0.2s var(--ease);
}

.nav-cta:hover .cta-arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  max-height: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0;
  animation: heroFadeIn 2s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Orbe de iluminación */
.hero-orb {
  position: absolute;
  width: 800px; height: 560px;
  background: radial-gradient(ellipse at 50% 60%,
    rgba(88, 84, 232, 0.13) 0%,
    rgba(37, 99, 235, 0.06) 42%,
    transparent 70%
  );
  top: 0; left: 50%;
  transform: translate(-50%, -10%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  animation: orbBreath 8s ease-in-out infinite;
}

@keyframes orbBreath {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -10%) scaleX(1); }
  50%       { opacity: 1;    transform: translate(-50%, -14%) scaleX(1.04); }
}

/* ─── FLOAT CARDS ────────────────────────────────────── */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.fcard {
  position: absolute;
  will-change: transform;
}

.fcard-1 { top: 22%; left: 7%; }
.fcard-2 { top: 30%; right: 7%; }
.fcard-3 { top: 60%; right: 11%; }

.fcard-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  animation: fcardIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 162px;
}

.fcard-1 .fcard-body { animation-delay: 1.2s; }
.fcard-2 .fcard-body { animation-delay: 1.45s; }
.fcard-3 .fcard-body { animation-delay: 1.7s; }

@keyframes fcardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0);   }
}

.fcard-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: dotPulse 2.8s ease-in-out infinite;
}

.fcard-dot-purple {
  background: var(--purple-l);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.55);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.fcard-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fcard-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fcard-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ─── HERO CONTENT ───────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: var(--nav-h);
  will-change: transform, opacity;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo);
  opacity: 0;
  margin-bottom: 28px;
  animation: heroWordIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(2.8rem, 5.8vw, 5.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.042em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-line {
  display: block;
  opacity: 0;
  animation: heroWordIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.52s; }
.hero-line:nth-child(2) { animation-delay: 0.68s; }

.hero-line-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes heroWordIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-tagline {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 44px;
  opacity: 0;
  animation: heroWordIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.84s forwards;
}

.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 13px 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), background 0.3s, transform 0.3s var(--ease);
  opacity: 0;
  animation: heroWordIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

.hero-cta-link svg {
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease);
}

.hero-cta-link:hover {
  border-color: rgba(88, 84, 232, 0.4);
  background: rgba(88, 84, 232, 0.08);
  transform: translateY(-2px);
}

.hero-cta-link:hover svg { transform: translateX(4px); }

/* ─── SCROLL INDICATOR ───────────────────────────────── */
.hero-scroll-ind {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: heroWordIn 1s ease 1.6s forwards;
}

.sci-track {
  width: 2px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.sci-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--indigo));
  border-radius: 2px;
  animation: sciScroll 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes sciScroll {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(280%);  opacity: 0; }
}

/* Mobile: ocultar float cards */
@media (max-width: 900px) {
  .hero-floats { display: none; }
  .hero-content { padding-top: calc(var(--nav-h) + 20px); }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .hero-scroll-ind { display: none; }
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── DECLARACIÓN ───────────────────────────────────── */
.declaracion {
  padding: clamp(100px, 14vw, 180px) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.decl-inner {
  max-width: 820px;
  margin: 0 auto;
}

.decl-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.07;
  margin-bottom: 28px;
}

.decl-body {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.85;
  font-weight: 400;
}

/* ─── PILARES ────────────────────────────────────────── */
.pilares {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}

.pilares-super {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 48px;
}

.pilares-list {
  display: flex;
  flex-direction: column;
}

.pilar {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.pilar:first-child { border-top: 1px solid var(--border); }

.pilar-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pilar-body { flex: 1; }

.pilar-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 8px;
}

.pilar-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 500px;
}

.pilar-chips {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pilar-chips span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s;
}

.pilar:hover .pilar-chips span {
  border-color: rgba(88,84,232,0.22);
  color: var(--text-2);
}

.pilar:hover .pilar-name {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── CASE STUDY ──────────────────────────────────────── */
.casestudy {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cs-header {
  margin-bottom: 56px;
}

/* Full-width browser container */
.cs-visual-wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.cs-browser {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Window chrome */
.cs-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}

.cs-wdots { display: flex; gap: 7px; align-items: center; }

.wdot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.wd-r { background: #ff5f56; }
.wd-y { background: #ffbd2e; }
.wd-g { background: #27c93f; }

.cs-url-bar {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'SF Mono', 'Fira Code', monospace;
  max-width: 300px;
}

.cs-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #27c93f;
  background: rgba(39,201,63,0.08);
  border: 1px solid rgba(39,201,63,0.18);
  padding: 4px 10px;
  border-radius: 100px;
}

.cs-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #27c93f;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Screen content */
.cs-screen {
  display: flex;
  min-height: 440px;
}

/* Sidebar */
.cs-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.18);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-sb-logo {
  width: 32px; height: 32px;
  background: var(--grad);
  border-radius: 8px;
  margin-bottom: 20px;
}

.cs-sb-nav { display: flex; flex-direction: column; gap: 2px; }

.cs-sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-3);
  cursor: default;
  transition: background 0.2s, color 0.2s;
}

.cs-sb-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
}

.cs-sb-active {
  background: rgba(88,84,232,0.14) !important;
  color: var(--text) !important;
  font-weight: 600;
}

.cs-sb-ico {
  width: 16px; height: 16px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.3;
  flex-shrink: 0;
}

/* Main panel */
.cs-main {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.cs-main-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cs-mh-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cs-mh-sub {
  font-size: 11px;
  color: var(--text-3);
}

.cs-mh-btns {
  display: flex;
  gap: 8px;
}

.cs-btn-g, .cs-btn-p {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: default;
}

.cs-btn-g {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.cs-btn-p {
  background: var(--indigo);
  color: #fff;
}

/* KPI row */
.cs-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cs-kpi {
  background: rgba(255,255,255,0.024);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-kpi-l {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
}

.cs-kpi-v {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-kpi-d {
  font-size: 10px;
  color: var(--text-3);
}

.cs-up { color: #27c93f; }

/* Mini bar chart inside KPI */
.cs-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-top: 6px;
}

.cs-mb {
  flex: 1;
  height: var(--h);
  background: rgba(88,84,232,0.2);
  border-radius: 2px;
}

.cs-mb-a { background: var(--indigo); }

/* Spark SVG line */
.cs-spark {
  height: 28px;
  margin-top: 6px;
}

.cs-spark svg {
  width: 100%;
  height: 100%;
}

/* Progress bar */
.cs-prog {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  margin-top: 8px;
  overflow: hidden;
}

.cs-prog-f {
  height: 100%;
  background: var(--indigo);
  border-radius: 100px;
}

/* Chips in KPI */
.cs-kpi-chips {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cs-chip-g, .cs-chip-b {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}

.cs-chip-g {
  background: rgba(39,201,63,0.1);
  color: #27c93f;
}

.cs-chip-b {
  background: rgba(88,84,232,0.12);
  color: var(--purple-l);
}

/* Data table */
.cs-table {
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
}

.cs-tr {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cs-tr:last-child { border-bottom: none; }

.cs-tr-h {
  color: var(--text-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.12);
}

.cs-tr-alt { background: rgba(255,255,255,0.012); }

/* Name cell (skeleton bar) */
.cs-nc {
  display: block;
  height: 10px;
  width: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.cs-nc-s { width: 60px; }

/* Destination cell */
.cs-dc {
  display: block;
  height: 10px;
  width: 64px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

.cs-dc-s { width: 48px; }
.cs-dc-l { width: 80px; }

.cs-date { color: var(--text-3); font-size: 10px; }
.cs-amt { font-weight: 700; color: var(--text); font-size: 11px; }

/* Status badges */
.cs-bg {
  font-size: 9px;
  font-weight: 700;
  background: rgba(39,201,63,0.1);
  color: #27c93f;
  padding: 2px 8px;
  border-radius: 100px;
}

.cs-by {
  font-size: 9px;
  font-weight: 700;
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 100px;
}

/* Footer with metrics + desc */
.cs-footer {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 48px 0 0;
}

.cs-metrics {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.cs-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-metric-v {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.cs-metric-l {
  font-size: 12px;
  color: var(--text-3);
}

.cs-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.cs-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 480px;
}

/* ─── PROCESO NUEVO ───────────────────────────────────── */
.proceso-nuevo {
  padding: clamp(100px, 14vw, 160px) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(10,10,20,0.45) 50%, transparent);
}

.pn-inner {
  max-width: 640px;
  margin: 0 auto;
}

.pn-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}

.pn-title {
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.02;
  margin-bottom: 32px;
}

.pn-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── CONTACTO ───────────────────────────────────────── */
.contacto {
  padding: clamp(100px, 14vw, 160px) 0 calc(clamp(100px, 14vw, 160px) + 40px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contacto-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.contacto-glow-1 {
  width: 700px; height: 400px;
  background: radial-gradient(circle, rgba(88,84,232,0.07) 0%, transparent 70%);
  top: -40px; left: 50%;
  transform: translateX(-50%);
}

.contacto-inner {
  position: relative;
  z-index: 1;
}

.contacto-title {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.0;
  margin-bottom: 28px;
}

.contacto-subtitle {
  font-size: 1.0rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 52px;
  font-weight: 400;
}

.contacto-email-link {
  display: inline-block;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid rgba(88,84,232,0.5);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
  margin-bottom: 20px;
}

.contacto-email-link:hover {
  color: var(--purple-l);
  border-color: var(--purple-l);
}

.contacto-tel {
  font-size: 14px;
  color: var(--text-3);
}

.contacto-tel a {
  color: var(--text-2);
  font-weight: 600;
  transition: color 0.2s;
}

.contacto-tel a:hover { color: var(--text); }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.logo-img-sm { height: 30px; }

.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-links h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-made {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── MOBILE NAV ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,5,8,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open a {
    font-size: 18px;
    padding: 8px 0;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .cs-kpis { grid-template-columns: repeat(2, 1fr); }
  .pilar { grid-template-columns: 44px 1fr; }
  .pilar-chips { display: none; }
}

@media (max-width: 900px) {
  :root { --section-py: 80px; }

  .cs-sidebar { width: 140px; }
  .cs-sidebar .cs-sb-item span { font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cs-screen { flex-direction: column; min-height: auto; }
  .cs-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 12px 16px;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cs-sb-logo { margin-bottom: 0; margin-right: 16px; }
  .cs-sb-nav { flex-direction: row; gap: 4px; }
  .cs-sb-item span { display: none; }
  .cs-kpis { grid-template-columns: repeat(2, 1fr); }
  .cs-footer { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 640px) {
  :root { --section-py: 64px; }

  .pilar { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .pilar-num { font-size: 10px; }
  .cs-kpis { grid-template-columns: 1fr 1fr; }
  .cs-tr { grid-template-columns: 1fr 1fr; }
  .cs-tr > :nth-child(3),
  .cs-tr > :nth-child(4) { display: none; }
  .cs-metrics { gap: 24px; }
  .cs-metric-v { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
