/* ====================================================================
   GLASS — Dark glassmorphism theme for Gestión 360 IA
   Palette: deep navy #050b15 / #0a1628  ·  gold #e6a532 / #f0c46e  ·  cyan #7ec8e3
   ==================================================================== */

/* ====== TOKENS ====== */
:root {
  /* Core dark backgrounds */
  --bg-deep:    #050b15;
  --bg:         #0a1628;
  --bg-mid:     #0d1e35;
  --bg-elevated:#111f38;

  /* Gold palette */
  --gold:       #e6a532;
  --gold-soft:  #f0c46e;
  --gold-deep:  #b8801e;
  --gold-muted: rgba(230,165,50,0.45);

  /* Cyan accent */
  --cyan:       #7ec8e3;

  /* Text */
  --ink:        rgba(255,255,255,0.92);
  --ink-soft:   rgba(255,255,255,0.68);
  --ink-mute:   rgba(255,255,255,0.40);

  /* Borders / lines */
  --line:        rgba(230,165,50,0.13);
  --line-strong: rgba(230,165,50,0.28);
  --line-subtle: rgba(255,255,255,0.07);

  /* Glass surface */
  --glass-bg:     rgba(10,22,40,0.62);
  --glass-border: rgba(230,165,50,0.17);

  /* Legacy compat — referenced by app.jsx / tweaks */
  --slate-900: #050b15;
  --slate-800: #0a1628;
  --slate-700: #0d1e35;
  --slate-600: #e6a532;
  --slate-500: #f0c46e;
  --slate-400: rgba(255,255,255,0.55);
  --slate-300: rgba(255,255,255,0.35);
  --slate-200: rgba(255,255,255,0.16);
  --slate-100: rgba(255,255,255,0.08);
  --slate-50:  rgba(255,255,255,0.04);
  --warm-accent: #e6a532;
  --warm-deep:   #b8801e;
  --warm-100: rgba(230,165,50,0.07);
  --warm-200: rgba(230,165,50,0.14);
  --warm-300: rgba(230,165,50,0.26);

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w:       1240px;
  --section-pad: 120px;

  /* Radii */
  --radius-s:  8px;
  --radius-m:  14px;
  --radius-l:  22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-card: 0 0 0 1px var(--glass-border), 0 20px 48px -16px rgba(0,0,0,0.6);
  --shadow-lift: 0 0 0 1px rgba(230,165,50,0.28),
                 0 32px 64px -20px rgba(0,0,0,0.80),
                 0 0 32px rgba(230,165,50,0.10);
}

/* ====== BASE ====== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;
}

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

/* ====== LAYOUT ====== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section {
  padding: var(--section-pad, 120px) 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 72px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

/* ====== TYPOGRAPHY ====== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
}
.h-display em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, var(--gold-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1 { font-size: clamp(36px,6vw,80px); }
.h2 { font-size: clamp(28px,4vw,52px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.06; }
.h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }

.lead {
  font-size: clamp(15px,1.4vw,18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ====== REVEAL ====== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ====== TAG ====== */
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(230,165,50,0.10);
  border: 1px solid rgba(230,165,50,0.22);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
  white-space: nowrap;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease,
              color .2s ease, border-color .2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a1628;
  box-shadow: 0 4px 20px rgba(230,165,50,0.28),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  box-shadow: 0 6px 28px rgba(230,165,50,0.42),
              inset 0 1px 0 rgba(255,255,255,0.20);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border-color: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(230,165,50,0.35);
  color: var(--gold-soft);
}

.btn-accent {
  background: var(--gold);
  color: #0a1628;
}
.btn-accent:hover { background: var(--gold-soft); }

.btn-cream {
  background: rgba(230,165,50,0.12);
  color: var(--gold-soft);
  border-color: rgba(230,165,50,0.22);
}
.btn-cream:hover { background: rgba(230,165,50,0.20); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

.btn .arrow {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ====== HEADER ====== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease,
              border-color .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: rgba(5,11,21,0.50);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(230,165,50,0.15);
  box-shadow: 0 1px 0 rgba(230,165,50,0.08);
}

.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-cta  { justify-self: start; display: flex; align-items: center; }
.header-right { justify-self: end; display: flex; align-items: center; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-img {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 12px rgba(230,165,50,0.20);
}
.logo-name {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-name .num { color: var(--gold); }
.logo-name .ia  { color: var(--gold-soft); font-weight: 700; }

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 7px 13px;
  border-radius: 999px;
  transition: color .15s, background .18s;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav a.is-active { color: var(--gold); background: rgba(230,165,50,0.08); }

.header-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 880px) {
  .nav { display: none; }
}

/* Nav dropdown */
.nav-drop-wrap { position: relative; }
.nav-drop-btn {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 7px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: color .15s, background .18s;
}
.nav-drop-btn:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav-drop-btn.is-open,
.nav-drop-btn.is-active { color: var(--gold); background: rgba(230,165,50,0.08); }
.nav-drop-chevron { transition: transform .2s ease; flex-shrink: 0; }
.nav-drop-btn.is-open .nav-drop-chevron { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: rgba(8,18,34,0.97);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  box-shadow: 0 24px 56px rgba(0,0,0,0.55);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .2s;
  z-index: 70;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-drop-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .14s, color .14s;
}
.nav-drop-item:hover { background: rgba(230,165,50,0.09); color: var(--ink); }
.nav-drop-item--page { font-weight: 500; color: var(--ink); }
.nav-drop-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.nav-drop-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(230,165,50,0.09);
  color: var(--gold-muted);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ====================================================================
   HERO  — fullscreen image-based, SVG FX overlay
   ==================================================================== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* ── Background image ── */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  z-index: 1;
  animation: bg-breath 18s ease-in-out infinite alternate;
}
@keyframes bg-breath {
  from { transform: scale(1.02); }
  to   { transform: scale(1.04); }
}

/* ── SVG FX layer (aligned to image via slice) ── */
.hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Network links */
.fx-link {
  stroke: rgba(230,165,50,0.55);
  stroke-width: 0.8;
  fill: none;
  animation: link-fade 3.6s ease-in-out infinite;
}
.fx-link-cy { stroke: rgba(126,200,227,0.45); animation-delay: -1.2s; }
.fx-link-w  { stroke: rgba(255,255,255,0.35); animation-delay: -2.4s; }
@keyframes link-fade {
  0%,100% { opacity: 0.15; }
  50%     { opacity: 0.90; }
}

/* Network nodes */
.fx-node {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(230,165,50,0.75));
  animation: node-pulse 3s ease-in-out infinite;
}
.fx-node-cy { fill: var(--cyan);  filter: drop-shadow(0 0 4px rgba(126,200,227,0.65)); }
.fx-node-w  { fill: rgba(255,255,255,0.95); filter: drop-shadow(0 0 3px rgba(255,255,255,0.5)); }
@keyframes node-pulse {
  0%,100% { transform: scale(0.85); opacity: 0.55; }
  50%     { transform: scale(1.20); opacity: 1; }
}

/* Line charts */
.fx-chart {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: chart-draw 9s ease-in-out infinite;
}
.fx-chart-gold { stroke: var(--gold);      stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(230,165,50,0.85)); }
.fx-chart-cyan { stroke: var(--cyan);      stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(126,200,227,0.7)); animation-delay: -3s; }
.fx-chart-soft { stroke: var(--gold-soft); stroke-width: 1.2; opacity: 0.85; filter: drop-shadow(0 0 3px rgba(240,196,110,0.6)); animation-delay: -5.5s; }
@keyframes chart-draw {
  0%   { stroke-dashoffset: 600; opacity: 0; }
  8%   { opacity: 1; }
  55%  { stroke-dashoffset: 0;    opacity: 1; }
  78%  { stroke-dashoffset: 0;    opacity: 1; }
  100% { stroke-dashoffset: -600; opacity: 0; }
}

/* Chart endpoint dots */
.fx-chart-dot    { fill: var(--gold); filter: drop-shadow(0 0 5px var(--gold)); opacity: 0; animation: dot-blink 9s ease-in-out infinite; }
.fx-chart-dot-cy { fill: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); animation-delay: -3s; }
@keyframes dot-blink {
  0%,70%,100% { opacity: 0; }
  35%         { opacity: 1; }
}

/* Scanline */
.fx-scan { fill: url(#scanGrad); animation: scan 7s ease-in-out infinite; }
@keyframes scan {
  0%   { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { opacity: 0.7; }
  100% { transform: translateY(700px); opacity: 0; }
}

/* KPI glass cards (inside SVG foreignObject) */
.kpi {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(10,22,40,0.62);
  border: 1px solid rgba(230,165,50,0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(230,165,50,0.15), inset 0 0 0 1px rgba(255,255,255,0.04);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  opacity: 0;
  transform: translateY(8px);
  animation: kpi-in 1.2s 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.kpi-2 { animation-delay: 1.7s; }
.kpi-3 { animation-delay: 2.0s; }
@keyframes kpi-in { to { opacity: 1; transform: translateY(0); } }
.kpi-label { font-size: 8px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 2px; white-space: nowrap; }
.kpi-value { font-size: 15px; font-weight: 600; color: var(--gold-soft); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.kpi-value .unit { font-size: 11px; color: rgba(240,196,110,0.7); margin-left: 1px; }
.kpi-trend { font-size: 8px; color: #6dd49d; letter-spacing: 0.08em; margin-top: 2px; }
.kpi-trend.down { color: #e88f5f; }

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-drift linear infinite;
}
@keyframes particle-drift {
  0%   { transform: translate3d(0,30px,0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translate3d(12px,-120px,0) scale(1); opacity: 0; }
}

/* Atmospheric overlays */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 30%, rgba(230,165,50,0.10), transparent 60%),
    radial-gradient(50% 40% at 85% 70%, rgba(10,22,40,0.30), transparent 65%),
    radial-gradient(80% 70% at 50% 110%, rgba(5,11,21,0.85), transparent 60%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5,11,21,0.10) 0%,
    rgba(5,11,21,0.00) 18%,
    rgba(5,11,21,0.00) 56%,
    rgba(5,11,21,0.72) 84%,
    rgba(5,11,21,0.97) 100%);
}

/* Hero grain texture */
.hero-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Hero content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px clamp(32px, 6vw, 80px) clamp(36px, 5vh, 64px);
  text-align: left;
}
/* Only CTAs need pointer events */
.hero-content .hero-ctas,
.hero-content .btn { pointer-events: auto; }
.hero-content,
.hero-content > *:not(.hero-ctas) { pointer-events: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(10px,1vw,12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 14px;
  border: 1px solid rgba(230,165,50,0.32);
  background: rgba(230,165,50,0.06);
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s 0.2s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dot-pulse {
  0%,100% { opacity: 0.55; transform: scale(0.85); }
  50%     { opacity: 1;    transform: scale(1.25); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--ink);
  width: 100%;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 0 60px rgba(10,22,40,0.5);
}
.hero-title span {
  background: linear-gradient(135deg, #fff 0%, var(--gold-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Líneas del título: entran alternando izquierda / derecha */
.hero-title-line {
  display: block;
  opacity: 0;
}
.hero-title-line:nth-child(1) {
  animation: slide-from-left  1s 0.30s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title-line:nth-child(2) {
  animation: slide-from-right 1s 0.60s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes fade-up        { to { opacity: 1; transform: translateY(0); } }
@keyframes slide-from-left  {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-from-right {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-ctas {
  position: absolute;
  bottom: clamp(36px, 5vh, 64px);
  right: clamp(32px, 6vw, 80px);
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fade-up 1s 0.60s cubic-bezier(.2,.7,.2,1) forwards;
}
@media (max-width: 720px) {
  .hero-ctas {
    position: static;
    margin-top: 18px;
    order: 2;
  }
  .hero-title { order: 1; }
}

.trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 1s 1.08s cubic-bezier(.2,.7,.2,1) forwards;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  display: block;
}
.trust-logos {
  display: flex;
  gap: 20px 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.70;
}
.trust-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.50);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Scroll cue */
.hero-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.42);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1s 1.6s ease forwards;
  pointer-events: none;
}
.hero-cue-line {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5));
  animation: cue-line 2.2s ease-in-out infinite;
}
@keyframes cue-line {
  0%,100% { transform: scaleY(0.5); opacity: 0.3; }
  50%     { transform: scaleY(1);   opacity: 1; }
}

/* Hero responsive */
@media (max-width: 720px) {
  .hero-content { padding-bottom: 72px; }
  .hero-title { letter-spacing: -0.01em; font-size: clamp(24px,8vw,36px); }
  .kpi-label { font-size: 7.5px; }
  .kpi-value { font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero-content { justify-content: center; padding-bottom: 24px; }
  .hero-title { font-size: clamp(20px,4vw,32px); }
  .hero-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====================================================================
   FLOAT NAV SIDEBAR (right)
   ==================================================================== */
.floatnav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(5,11,21,0.50);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 10px 6px;
}
.floatnav-link,
.floatnav-drop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 7px;
  transition: color .15s, background .15s;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  white-space: nowrap;
  width: 100%;
  text-decoration: none;
}
.floatnav-link:hover,
.floatnav-drop-btn:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.floatnav-link.is-active,
.floatnav-drop-btn.is-active { color: var(--gold); }
.floatnav-chevron { transition: transform .2s; flex-shrink: 0; margin-left: auto; }
.floatnav-drop-btn.is-open .floatnav-chevron { transform: rotate(180deg); }

.floatnav-drop-wrap { position: relative; }
.floatnav-drop-panel {
  position: absolute;
  right: calc(100% + 8px);
  top: 0;
  width: 210px;
  background: rgba(8,16,30,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity .2s, transform .2s;
}
.floatnav-drop-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.floatnav-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: background .14s, color .14s;
  text-decoration: none;
}
.floatnav-drop-item:hover { background: rgba(230,165,50,0.09); color: var(--ink); }
.floatnav-drop-item--page { font-weight: 500; color: var(--ink); }
.floatnav-drop-sep { height: 1px; background: var(--line); margin: 4px 6px; }
@media (max-width: 880px) { .floatnav { display: none; } }

/* ====================================================================
   SERVICES BENTO METRO
   ==================================================================== */

/* Section: flex column so bento fills remaining height; override section pad */
.svc-bento-section {
  padding-top: 60px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.svc-bento-section .container--svc-head { flex: 0 0 auto; }

/* Outer wrapper — position:relative anchors the photo div */
.svc-bento-outer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 32px 40px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

/* Shared photo background — disabled: each tile has its own bg image */
.svc-bento-photo { display: none; }

/* Grid sits above the photo */
.svc-bento {
  position: relative;
  z-index: 1;
}

/* Metro grid: 4 cols × 3 rows — fills all available flex space */
.svc-bento {
  flex: 1;
  min-height: 320px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  position: relative;     /* anchor for position:absolute expanded tile */
}

/* ── Individual tile ── */
.svc-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  /* semi-transparent glass — lets the grid BG image show through */
  background: linear-gradient(155deg, rgba(10,22,40,0.52), rgba(5,8,15,0.70));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition:
    left   .55s cubic-bezier(.2,.85,.25,1),
    top    .55s cubic-bezier(.2,.85,.25,1),
    width  .55s cubic-bezier(.2,.85,.25,1),
    height .55s cubic-bezier(.2,.85,.25,1),
    box-shadow   .5s ease,
    border-color .4s ease;
}

/* Grid span modifiers */
.svc-tile--feature { grid-column: span 2; grid-row: span 2; }
.svc-tile--tall    { grid-column: span 1; grid-row: span 2; }


/* Icon container */
.svc-tile-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(230,165,50,.10); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; margin-bottom: auto;
}
.svc-tile-ico svg { width: 18px; height: 18px; }

/* Kicker / category label */
.svc-tile-kick {
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--gold); text-transform: uppercase;
  margin: 12px 0 4px;
}

/* Tile title */
.svc-tile-title {
  font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink);
  transition: font-size .55s cubic-bezier(.4,0,.1,1);
}
.svc-tile--feature .svc-tile-title { font-size: 26px; line-height: 1.15; }
.svc-tile.is-expanded .svc-tile-title { font-size: 26px; }

/* ── Detail panel (hidden when collapsed; words stagger in when expanded) ── */
.svc-tile-desc {
  margin-top: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.svc-tile.is-expanded .svc-tile-desc {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .1s ease;
}
.svc-tile-tagline {
  font-size: 12px; color: rgba(230,165,50,.65); font-style: italic; margin: 0 0 8px;
}
.svc-tile-desc > p {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 12px;
}

/* Includes list */
.svc-tile-includes { margin: 0 0 12px; padding: 0; list-style: none; }
.svc-tile-includes li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--ink-soft);
  padding: 5px 0; border-bottom: 1px solid var(--line);
}
.svc-tile-includes li:last-child { border-bottom: none; }

/* Check badge — reused across includes lists */
.check {
  flex-shrink: 0; width: 18px; height: 18px;
  background: rgba(230,165,50,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-top: 1px;
}

/* Action buttons inside expanded tile */
.svc-tile-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.svc-tile-actions .btn { font-size: 13px; padding: 8px 14px; }

/* ── Decorative corner glow ── */
.svc-tile-glow {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,165,50,.22), transparent 70%);
  top: -45px; right: -45px; filter: blur(10px); opacity: .45; pointer-events: none;
}

/* ── Load bar: scaleX 0→1 over 1s on hover ── */
.svc-tile-loadbar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.svc-tile:hover .svc-tile-loadbar { transform: scaleX(1); transition: transform 2s linear; }
.svc-tile.is-expanded .svc-tile-loadbar { display: none; }

/* ── Gold wash on hover ── */
.svc-tile-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(230,165,50,.10), transparent 55%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.svc-tile:hover .svc-tile-wash { opacity: 1; }

/* ── "Ver más →" hint (rises on hover, hidden when expanded) ── */
.svc-tile-cta {
  position: absolute; left: 22px; bottom: 18px;
  font-size: 12.5px; font-weight: 600; color: var(--gold);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease; pointer-events: none;
}
.svc-tile:hover .svc-tile-cta { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.svc-tile.is-expanded .svc-tile-cta { display: none; }

/* ── Hover: gold border ── */
.svc-tile:hover { border-color: rgba(230,165,50,.35); z-index: 5; }

/* ── Expanded overlay (¾-width centered, no scroll) ── */
.svc-tile.is-expanded {
  position: absolute;
  z-index: 20;
  overflow: hidden;
  /* More opaque when expanded so long text is readable over the photo BG */
  background: linear-gradient(155deg, rgba(8,16,32,0.90), rgba(5,8,15,0.94));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -25px rgba(0,0,0,.8), 0 0 0 1px rgba(230,165,50,.35);
  border-color: rgba(230,165,50,.35);
}

/* ── Per-tile background image (glass blurred + sharp lens) ── */
/* has-bg tiles use their own image — override the default glass background */
.svc-tile.has-bg {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.svc-tile .svc-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(3px) saturate(1.1) brightness(.9);
  transform: scale(1.08);
  transition: filter .6s ease, transform .6s ease;
}
.svc-tile.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(7,11,20,.25), rgba(7,11,20,.55));
}
/* Content above the image layers */
.svc-tile.has-bg .svc-tile-ico,
.svc-tile.has-bg .svc-tile-kick,
.svc-tile.has-bg .svc-tile-title,
.svc-tile.has-bg .svc-tile-desc,
.svc-tile.has-bg .svc-tile-cta,
.svc-tile.has-bg .svc-tile-glow { position: relative; z-index: 3; }
/* wash and loadbar stay position:absolute — only need z-index */
.svc-tile.has-bg .svc-tile-wash,
.svc-tile.has-bg .svc-tile-loadbar { z-index: 3; }
/* Expanded: more blur, slightly lighter veil so lens contrast is visible */
.svc-tile.has-bg.is-expanded .svc-bg {
  filter: blur(6px) saturate(1.1) brightness(.75);
  transform: scale(1.05);
}
.svc-tile.has-bg.is-expanded::before {
  background: linear-gradient(160deg, rgba(7,11,20,.35), rgba(7,11,20,.6));
}
.svc-tile.has-bg.is-expanded {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Sharp lens layer — clipped circle follows the mouse */
.svc-tile .svc-bg-sharp {
  position: absolute; inset: 0; z-index: 2;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  opacity: 0; pointer-events: none;
  --mx: -9999px; --my: -9999px;
  -webkit-mask-image: radial-gradient(circle 100px at var(--mx) var(--my),
    #000 0, #000 69px, transparent 100px);
  mask-image: radial-gradient(circle 100px at var(--mx) var(--my),
    #000 0, #000 69px, transparent 100px);
}
.svc-tile.is-expanded.has-bg .svc-bg-sharp { opacity: 1; }

/* ── Word stagger animation ── */
/* Title words: always visible, re-animate on each expand */
.svc-tile .svc-tile-title .w { display: inline-block; }
.svc-tile.is-expanded .svc-tile-title .w {
  animation: svcWordIn .6s cubic-bezier(.2,.85,.25,1) both;
}
/* Desc words: hidden by default, stagger in on expand */
.svc-tile-desc { pointer-events: none; }
.svc-tile.is-expanded .svc-tile-desc { pointer-events: auto; }
.svc-tile .svc-tile-desc .w {
  display: inline-block;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2,.85,.25,1), filter .55s ease;
}
.svc-tile.is-expanded .svc-tile-desc .w { opacity: 1; transform: translateY(0); filter: blur(0); }
@keyframes svcWordIn {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .svc-bento-section { min-height: auto; padding-top: 50px; }
  .svc-bento-outer   { padding: 0 20px 28px; }
  .svc-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    min-height: auto; flex: none;
  }
  .svc-tile--feature { grid-column: span 2; grid-row: span 1; }
  /* On mobile, expanded tile becomes a full-screen fixed overlay */
  .svc-tile.is-expanded {
    position: fixed !important;
    left: 16px !important; top: 16px !important;
    width: calc(100vw - 32px) !important;
    height: calc(100vh - 32px) !important;
  }
}

/* (carousel removed — see SERVICES BENTO METRO above) */
/* ====================================================================
   PLACEHOLDER — deleted in Bento refactor; kept as tombstone
   ==================================================================== */

/* Outer mask: fade edges, no layout padding so loop math is exact */
.svc-carousel-mask {
  overflow: hidden;
  padding: 24px 0 28px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 100px,
    black calc(100% - 100px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 100px,
    black calc(100% - 100px),
    transparent 100%
  );
}

/*
  Seamless loop: 2× the item set.
  gap = 18px → offset = -50% - 9px (half gap) to land exactly on set-2 start.
*/
.svc-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: svc-marquee 42s linear infinite;
  will-change: transform;
}
.svc-carousel-track.is-paused {
  animation-play-state: paused;
}

@keyframes svc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 9px)); }
}

/* Each card slot — RAF applies scale transform directly via JS */
.svc-carousel-item {
  flex-shrink: 0;
  width: 256px;
  /* transform-origin: center bottom so scale grows upward */
  transform-origin: center center;
  /* smooth out the RAF scale steps */
  transition: transform 0.06s linear;
}

/* ====================================================================
   CARD FACE — used by carousel items (Aceternity base card)
   ==================================================================== */

.svc-card-face {
  width: 100%;
  height: 290px;
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  /* transition for border only — scale is handled by RAF on parent */
  transition: border-color 0.28s ease;
  position: relative;
}

.svc-card-face .svc-icon  { margin-bottom: 14px; }
.svc-card-face .tag       { margin-bottom: 9px; }
.svc-card-face h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 7px;
  line-height: 1.2;
}
.svc-card-face p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.52;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================================================================
   GLOW CARD — Aceternity GlowingEffect (proximity border glow)
   proximity=64, spread=80, borderWidth=3, blur=0
   ==================================================================== */

.glow-card {
  /* CSS custom properties for mouse position, set via JS onMouseMove */
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  border-radius: inherit;
}

/*
  The glowing border: radial gradient at mouse position, visible only
  in the 3px border ring via CSS mask composite trick.
*/
.glow-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;                 /* border-width = 3px */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;

  /* Gold gradient radiates 80px from mouse */
  background: radial-gradient(
    80px circle at var(--mouse-x) var(--mouse-y),
    rgba(230, 165, 50, 0.80) 0%,
    rgba(230, 165, 50, 0.18) 55%,
    transparent 100%
  );

  /* Mask trick: show ONLY the 3px padding ring (not the inner content) */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Show glow on hover; also when parent .svc-carousel-item is scaled up */
.glow-card:hover .glow-border {
  opacity: 1;
}

/* ====================================================================
   CARD 3D — Aceternity CardContainer / CardBody / CardItem
   Used inside the detail modal for perspective tilt effect
   ==================================================================== */

.card-3d-container {
  width: 100%;
  user-select: none;
}

.card-3d-inner {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out;
}

.card-item {
  transform-style: preserve-3d;
}

/* ====================================================================
   GLOW OVERLAY + DETAIL MODAL (portal, fixed)
   ==================================================================== */

/* Glass backdrop */
.svc-glass-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(5, 11, 21, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.svc-glass-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal card: scale-in from center */
.svc-detail-modal {
  position: fixed;
  z-index: 300;
  left: 50%;
  top: 50%;
  width: min(540px, calc(100vw - 32px));
  max-height: min(88vh, 680px);
  display: flex;
  flex-direction: column;
  background: rgba(10, 22, 40, 0.97);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(230, 165, 50, 0.08);
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    transform 0.26s cubic-bezier(0.34, 1.18, 0.64, 1);
}
.svc-detail-modal.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Top section: Card3D with image placeholder + title */
.modal-3d-section {
  flex-shrink: 0;
  padding: 0;
  background: linear-gradient(
    145deg,
    rgba(17, 31, 56, 0.92) 0%,
    rgba(10, 22, 40, 0.96) 100%
  );
  border-bottom: 1px solid var(--line);
}

/* Image placeholder slot */
.modal-img-slot {
  padding: 24px 28px 0;
}
.modal-img-placeholder {
  width: 100%;
  height: 136px;
  background: linear-gradient(
    135deg,
    rgba(230, 165, 50, 0.07) 0%,
    rgba(126, 200, 227, 0.04) 100%
  );
  border: 1px dashed rgba(230, 165, 50, 0.28);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* 3D header below image */
.modal-3d-header {
  padding: 16px 28px 22px;
}
.modal-3d-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}

/* Scrollable lower section */
.modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 24px;
  min-height: 0;
}

/* ── Modal close button ── */
.svc-back-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.svc-back-close:hover { background: rgba(230,165,50,0.15); color: var(--gold); }

/* ── Modal body text elements ── */
.svc-back-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.svc-back-tagline {
  font-size: 12px;
  color: var(--gold-muted);
  font-style: italic;
  margin: 3px 0 0;
}
.svc-back-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ── "Qué incluye" list ── */
.svc-back-includes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-back-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.svc-back-includes li:last-child { border-bottom: none; }

/* ── CTA button row ── */
.svc-back-ctas {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 720px) {
  .svc-carousel-item { width: 220px; }
  .svc-card-face     { height: 262px; }
  .svc-detail-modal  {
    width: calc(100vw - 24px);
    max-height: min(88vh, 600px);
  }
  .modal-img-placeholder { height: 100px; }
}

/* ====================================================================
   SERVICE MODAL
   ==================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,11,21,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: rgba(10,22,40,0.96);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.72),
              0 0 0 1px rgba(230,165,50,0.10);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.modal-close:hover { background: rgba(230,165,50,0.15); color: var(--gold); }

.modal-detail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(230,165,50,0.07);
  border: 1px solid rgba(230,165,50,0.22);
  border-radius: var(--radius-m);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 22px;
  transition: background .15s;
}
.modal-detail-link:hover { background: rgba(230,165,50,0.13); }

.modal h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin: 0; }

.modal-list { margin: 0; padding: 0; list-style: none; }
.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.modal-list li:last-child { border-bottom: none; }
.check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: rgba(230,165,50,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-top: 1px;
}

/* ====================================================================
   PROCESS
   ==================================================================== */
.process {
  background: linear-gradient(135deg, rgba(13,30,53,0.95) 0%, rgba(8,18,34,0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  margin-top: 56px;
}
@media (max-width: 900px)  { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: none; }
@media (max-width: 900px) {
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(even)  { border-right: none; }
  .step:nth-child(3),
  .step:nth-child(4)     { border-bottom: none; }
}
@media (max-width: 540px) {
  .step { border-right: none; }
  .step:last-child { border-bottom: none; }
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.10em;
  margin-bottom: 16px;
}
.arrow-r::after {
  content: '→';
  color: rgba(230,165,50,0.35);
  font-size: 14px;
}
.step:last-child .arrow-r::after { content: '✓'; }
.step h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.step p  { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ====================================================================
   CASES
   ==================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 960px)  { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .cases-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.case-metric {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 4px;
}
.case-metric .unit { font-size: 22px; font-weight: 600; color: var(--gold-soft); }
.case-metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.case-quote { font-size: 13.5px; color: var(--ink-soft); line-height: 1.62; font-style: italic; margin-bottom: 20px; }
.case-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #0a1628;
  flex-shrink: 0;
}
.case-author .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.case-author .role { font-size: 11.5px; color: var(--ink-mute); }

.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}

/* ====================================================================
   CONTACT
   ==================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.form-inner { padding: 40px; }
.form-sent {
  display: none;
  padding: 60px 40px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.form.is-sent .form-inner { display: none; }
.form.is-sent .form-sent  { display: flex; }

.check-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #0a1628;
  margin-bottom: 8px;
}
.form-sent h4 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.form-sent p  { font-size: 15px; color: var(--ink-soft); margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.field input,
.field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }
.field input:focus,
.field textarea:focus {
  border-color: rgba(230,165,50,0.45);
  box-shadow: 0 0 0 3px rgba(230,165,50,0.10);
}
.field textarea { resize: vertical; min-height: 96px; }

.services-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
}
.pill:hover { border-color: rgba(230,165,50,0.35); color: var(--ink); }
.pill.is-on {
  background: rgba(230,165,50,0.15);
  border-color: rgba(230,165,50,0.40);
  color: var(--gold-soft);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.form-note { font-size: 12px; color: var(--ink-mute); }

.contact-info {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact-info h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.contact-info .sub { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 28px; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-of-type { border-bottom: none; margin-bottom: 22px; }
.info-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-s);
  background: rgba(230,165,50,0.10);
  border: 1px solid rgba(230,165,50,0.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.info-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.info-item .val { font-size: 13.5px; color: var(--ink-soft); }

.contact-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  transition: color .15s, border-color .15s, background .15s;
}
.social-btn:hover {
  color: var(--gold);
  border-color: rgba(230,165,50,0.30);
  background: rgba(230,165,50,0.08);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-tag {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-top: 14px;
  max-width: 260px;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 13.5px; color: var(--ink-mute); transition: color .15s; }
.footer ul a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--ink-mute); transition: color .15s; }
.footer-bottom a:hover { color: var(--ink); }

/* ====================================================================
   DENSITY OVERRIDES (via app.jsx tweaks)
   ==================================================================== */
.density-compact .section { --section-pad: 72px; }
.density-airy    .section { --section-pad: 152px; }

/* ====================================================================
   SPATIAL NAVIGATION — 2D canvas (desktop ≥ 1024px)
   No ScrollTrigger. Pure GSAP to() + wheel/touch/keyboard snap.

   Viewport: fixed full-screen overlay (#spatial-scroll-outer)
   Canvas:   absolute layer, GSAP animates transform translate(x,y)
   Cells:    100vw × 100vh absolute on the 2D grid
   ==================================================================== */

@media (min-width: 1024px) {

  /* Full-screen fixed viewport — body.overflow is locked to "hidden" in JS */
  #spatial-scroll-outer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1; /* below header (z-60) and floating overlays */
  }

  /* Moving canvas */
  #spatial-canvas {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
  }

  /* One viewport per section */
  .spatial-cell {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* ── Hero: already exactly 100vh ── */
  .spatial-cell .hero {
    flex: none;
    width: 100%;
    height: 100%;
    min-height: unset;
  }

  /* ── Generic section inside a cell ── */
  .spatial-cell .section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 44px 0 28px !important;
  }

  .spatial-cell .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  /* Tighter section headers */
  .spatial-cell .section-head {
    margin-bottom: 16px;
    gap: 20px;
    flex-shrink: 0;
  }
  .spatial-cell .section-head .h2 {
    font-size: clamp(20px, 2.4vw, 36px);
    line-height: 1.08;
  }
  .spatial-cell .section-head .lead {
    font-size: clamp(12.5px, 1vw, 14.5px);
    line-height: 1.5;
  }
  .spatial-cell .eyebrow { margin-bottom: 10px; }

  /* ── SERVICES — bento compact mode ────────────────────────────────────
     Header: flex:0 0 auto; bento outer fills remaining cell height.
  ──────────────────────────────────────────────────────────────────────── */

  /* Remove normal-scroll overrides; the cell itself provides the height.
     Use !important to beat .spatial-cell .section { padding: ... !important } */
  .spatial-cell .svc-bento-section {
    min-height: 0;
    padding: 0 !important;
  }
  .spatial-cell .container--svc-head { flex: 0 0 auto; }
  .spatial-cell .svc-bento-outer     { flex: 1; min-height: 0; padding: 0 12px 10px; border-radius: 12px; overflow: hidden; }
  .spatial-cell .svc-bento           { gap: 7px; min-height: 0; }

  /* Compact tile proportions for the small spatial cell */
  .spatial-cell .svc-tile         { padding: 9px 10px; border-radius: 9px; }
  .spatial-cell .svc-tile-ico     { width: 26px; height: 26px; border-radius: 7px; }
  .spatial-cell .svc-tile-ico svg { width: 12px; height: 12px; }
  .spatial-cell .svc-tile-kick    { font-size: 7.5px; margin: 7px 0 2px; letter-spacing: 1px; }
  .spatial-cell .svc-tile-title   { font-size: 10.5px; }
  .spatial-cell .svc-tile--feature .svc-tile-title { font-size: 13px; }
  /* Disable load-bar animation in compact mode (too subtle at small size) */
  .spatial-cell .svc-tile:hover .svc-tile-loadbar { transition: transform 2s linear; }
  /* Hide "Ver más →" hint in compact mode */
  .spatial-cell .svc-tile-cta    { display: none; }

  /* ── PROCESS — vertically centered, horizontal steps ── */
  .spatial-cell .process {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .spatial-cell .process .container { padding: 0 48px; }
  .spatial-cell .steps { margin-top: 14px; }
  .spatial-cell .step  { padding: 14px 18px; }

  /* ── CASES — 3 cards, vertically centered ── */
  .spatial-cell .cases-grid { flex: 1; align-content: center; }
  .spatial-cell .case-card  { padding: 18px 20px; }
  .spatial-cell .case-metric { font-size: clamp(26px, 3.2vw, 42px); margin-bottom: 2px; }
  .spatial-cell .case-quote  {
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  /* ── CONTACT + FOOTER (final cell) — thin scrollbar for overflow ── */
  .spatial-cell--final {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(230,165,50,0.22) transparent;
  }
  .spatial-cell--final::-webkit-scrollbar { width: 4px; }
  .spatial-cell--final::-webkit-scrollbar-thumb {
    background: rgba(230,165,50,0.22);
    border-radius: 2px;
  }
  .spatial-cell--final .section { flex: none; overflow: visible; }
  .spatial-cell--final .footer  { flex-shrink: 0; }

}



/* ═══════════════════════ PRELOADER ═══════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: #050b15;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.65s ease;
}
#preloader.pre-out {
  opacity: 0;
  pointer-events: none;
}
.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.pre-logo {
  width: 110px;
  height: 110px;
  overflow: visible;
}
.pre-ring {
  transform-origin: 100px 100px;
  animation: pre-spin-ring 3s linear infinite;
}
.pre-dot {
  transform-origin: 100px 100px;
  animation: pre-spin-dot 2s linear infinite;
}
@keyframes pre-spin-ring {
  to { transform: rotate(360deg); }
}
@keyframes pre-spin-dot {
  to { transform: rotate(360deg); }
}
.pre-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  animation: pre-text-in 0.7s ease forwards 0.6s;
}
.pre-brand {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.pre-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@keyframes pre-text-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ═══════════════════════ FIN PRELOADER ═══════════════════════ */
