/* ============================================================================
 *  FTPro · Future Technology Pro
 *  Hoja de estilos principal
 * ----------------------------------------------------------------------------
 *  0. Variables y reset        5. Servicios (grupos y tarjetas)
 *  1. Base y utilidades        6. IA / increíble
 *  2. Botones y etiquetas      7. Proceso, casos y colaboración
 *  3. Cabecera y navegación    8. Testimonios, FAQ y contacto
 *  4. Hero y métricas          9. Pie, flotantes, animaciones y responsive
 * ========================================================================== */

/* ══ 0. VARIABLES Y RESET ═════════════════════════════════════════════════ */

:root {
  /* Marca — tomadas del logotipo */
  --red:            #E4002B;
  --red-soft:       #FF3D5F;
  --blue:           #2E5F8F;
  --blue-light:     #7FB2E0;
  --blue-lighter:   #A8CDF0;

  /* Fondos */
  --bg:             #070C1C;
  --bg-alt:         #0B1329;
  --bg-elev:        #101B38;
  --bg-card:        rgba(16, 27, 56, 0.72);
  --bg-input:       rgba(7, 12, 28, 0.75);

  /* Texto */
  --text:           #EAF0FB;
  --text-muted:     #93A3C0;
  --text-dim:       #64748B;

  /* Bordes y estados */
  --border:         rgba(127, 178, 224, 0.16);
  --border-strong:  rgba(127, 178, 224, 0.32);
  --focus:          #7FB2E0;
  --danger:         #FF5A6E;
  --success:        #35D07F;

  /* Gradientes */
  --grad-brand:     linear-gradient(110deg, var(--blue-lighter) 0%, var(--blue-light) 35%, var(--red) 100%);
  --grad-red:       linear-gradient(135deg, var(--red) 0%, #FF6B3D 100%);
  --grad-surface:   linear-gradient(160deg, rgba(127,178,224,.10) 0%, rgba(228,0,43,.06) 100%);

  /* Tipografía */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Métrica */
  --container:      1200px;
  --radius:         18px;
  --radius-sm:      12px;
  --radius-lg:      26px;

  --shadow-sm:      0 4px 18px rgba(0, 0, 0, .28);
  --shadow:         0 18px 48px rgba(0, 0, 0, .38);
  --shadow-red:     0 12px 36px rgba(228, 0, 43, .30);

  --ease:           cubic-bezier(.22, .68, .36, 1);
  --header-h:       76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--red); color: #fff; }

/* Barras de desplazamiento */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #24365C; border-radius: 10px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ══ 1. BASE Y UTILIDADES ═════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: 820px; }

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--alt {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(46, 95, 143, .16), transparent 65%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 178, 224, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 224, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

.section--alt > * { position: relative; z-index: 1; }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: .6em;
}

.section__lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-soft);
  padding: 6px 14px;
  border: 1px solid rgba(228, 0, 43, .35);
  border-radius: 100px;
  background: rgba(228, 0, 43, .08);
  margin-bottom: 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-lighter);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--red-soft); }

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: ping 2s var(--ease) infinite;
}

/* ══ 2. BOTONES Y ETIQUETAS ═══════════════════════════════════════════════ */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: 100px;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  --btn-fg: #fff;
  --btn-bd: transparent;
  background: var(--grad-red);
  box-shadow: var(--shadow-red);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(228, 0, 43, .42);
}

.btn--outline {
  background: rgba(127, 178, 224, .05);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  transform: translateY(-2px);
  background: rgba(127, 178, 224, .13);
  border-color: var(--blue-light);
}

.btn--ghost { --btn-bd: transparent; color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); border-color: var(--border); }

.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ══ 3. CABECERA Y NAVEGACIÓN ═════════════════════════════════════════════ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(7, 12, 28, .88);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(228, 0, 43, .6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__logo {
  height: 40px;
  width: auto;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand__text small {
  font-size: .68rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: 9px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 9px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__list a:hover { color: var(--text); background: rgba(127, 178, 224, .09); }
.nav__list a.is-active { color: var(--text); }
.nav__list a.is-active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--grad-red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══ 4. HERO Y MÉTRICAS ══════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: .85;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(127, 178, 224, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 224, .06) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 20%, transparent 78%);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(620px 340px at 22% 18%, rgba(46, 95, 143, .40), transparent 68%),
    radial-gradient(520px 300px at 80% 8%,  rgba(228, 0, 43, .26), transparent 68%);
  pointer-events: none;
}

.hero__inner { text-align: center; max-width: 900px; margin-inline: auto; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: rgba(11, 19, 41, .7);
  border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.04em;
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  list-style: none;
  padding: 0;
  font-size: .875rem;
  color: var(--text-muted);
}
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--red-soft);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(52px, 6vw, 80px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  padding: 28px 20px;
  text-align: center;
  background: rgba(11, 19, 41, .82);
  backdrop-filter: blur(8px);
}

.metric__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.metric__label {
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .01em;
}

/* Marquee */
.marquee-band {
  padding: 26px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee { overflow: hidden; }

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee__track span::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: .6;
}
.marquee-band:hover .marquee__track { animation-play-state: paused; }

/* ══ 5. SERVICIOS ═════════════════════════════════════════════════════════ */

.group { margin-bottom: clamp(52px, 6vw, 84px); }
.group:last-child { margin-bottom: 0; }

.group__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.group__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(228, 0, 43, .12);
  border: 1px solid rgba(228, 0, 43, .3);
  color: var(--red-soft);
}

.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--collab { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-surface);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(46, 95, 143, .2);
  border: 1px solid var(--border-strong);
  color: var(--blue-lighter);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.card__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card__icon {
  background: var(--grad-red);
  border-color: transparent;
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}

.card h4 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: .945rem;
  margin-bottom: 18px;
  flex: 1;
}

.card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.card li {
  position: relative;
  padding-left: 24px;
  font-size: .88rem;
  color: var(--text-muted);
}
.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--red);
  opacity: .75;
  transform: rotate(45deg);
}

/* Tarjetas destacadas (IA) */
.card--hot { border-color: rgba(228, 0, 43, .28); }
.card--hot .card__icon {
  background: rgba(228, 0, 43, .16);
  color: var(--red-soft);
}
.card--hot h4::after {
  content: 'IA';
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  vertical-align: middle;
  color: var(--red-soft);
  background: rgba(228, 0, 43, .14);
  border: 1px solid rgba(228, 0, 43, .35);
  border-radius: 5px;
}

/* ══ 6. IA / DESTACADO ═══════════════════════════════════════════════════ */

.ia {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 26px; margin-top: 40px; }

.feature-list li {
  position: relative;
  padding-left: 38px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--grad-red);
  box-shadow: 0 0 0 4px rgba(228, 0, 43, .14);
  transform: rotate(45deg);
}
.feature-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -.015em;
}
.feature-list p { color: var(--text-muted); font-size: .93rem; }

.ia__console {
  background: #050A18;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4);
}

.ia__console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: rgba(127, 178, 224, .07);
  border-bottom: 1px solid var(--border);
}
.ia__console-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2A3A5E;
}
.ia__console-bar > span:nth-child(1) { background: #FF5F57; }
.ia__console-bar > span:nth-child(2) { background: #FEBC2E; }
.ia__console-bar > span:nth-child(3) { background: #28C840; }
.ia__console-bar p {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}

.ia__console-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(46, 95, 143, .18), transparent 70%);
}

.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.5;
  position: relative;
  animation: msgIn .5s var(--ease) both;
}
.msg p { display: inline; }
.msg time {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .66rem;
  opacity: .55;
}
.msg--in {
  align-self: flex-start;
  background: rgba(127, 178, 224, .12);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.msg--out {
  align-self: flex-end;
  background: var(--grad-red);
  border-bottom-right-radius: 5px;
  color: #fff;
}

.ia__console-status {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--success);
  background: rgba(53, 208, 127, .1);
  border: 1px solid rgba(53, 208, 127, .3);
  border-radius: 100px;
  animation: msgIn .5s var(--ease) .8s both;
}

/* ══ 7. PROCESO, CASOS Y COLABORACIÓN ═════════════════════════════════════ */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 26px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: var(--border-strong); }

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.015em; }
.step p { font-size: .92rem; color: var(--text-muted); }

.case {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.case__head { margin-bottom: 16px; }

.case__sector {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-lighter);
  margin-bottom: 12px;
}

.case h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.28; letter-spacing: -.02em; }
.case p { color: var(--text-muted); font-size: .94rem; margin-bottom: 26px; flex: 1; }

.case__kpis {
  list-style: none;
  padding: 22px 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case__kpis strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--red-soft);
  margin-bottom: 2px;
}
.case__kpis span { font-size: .75rem; color: var(--text-dim); line-height: 1.35; display: block; }

.collab {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.collab:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.collab__badge {
  position: absolute;
  top: -12px;
  left: 30px;
  padding: 5px 13px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-red);
  border-radius: 100px;
  box-shadow: var(--shadow-red);
}

.collab__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: rgba(46, 95, 143, .2);
  border: 1px solid var(--border-strong);
  color: var(--blue-lighter);
}
.collab__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collab h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.collab > p { color: var(--text-muted); font-size: .94rem; margin-bottom: 22px; }

.collab__price {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 18px !important;
}

.collab--featured {
  border-color: rgba(228, 0, 43, .4);
  background: linear-gradient(165deg, rgba(228, 0, 43, .09), rgba(16, 27, 56, .8));
}

.collab__notes {
  list-style: none;
  padding: 40px 0 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 28px;
  font-size: .9rem;
  color: var(--text-muted);
}
.collab__notes li { display: flex; align-items: center; gap: 10px; }
.collab__notes svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--success);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ══ 8. TESTIMONIOS, FAQ Y CONTACTO ═══════════════════════════════════════ */

.slider { position: relative; }

.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }

.slider__track {
  display: flex;
  list-style: none;
  padding: 0;
  transition: transform .55s var(--ease);
}

.quote {
  flex: 0 0 100%;
  min-width: 0;
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.quote__text {
  font-size: clamp(1.12rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

.quote__author { display: flex; align-items: center; gap: 16px; }

.quote__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #06101F;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
}
.quote__author strong { display: block; font-size: .98rem; font-weight: 700; }
.quote__author small { display: block; font-size: .82rem; color: var(--text-muted); }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.slider__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.slider__btn:hover { background: rgba(127, 178, 224, .12); border-color: var(--blue-light); transform: scale(1.06); }
.slider__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__dots { display: flex; gap: 9px; }

.slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2A3A5E;
  cursor: pointer;
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.slider__dot.is-active { width: 28px; border-radius: 100px; background: var(--red); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; }

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq__item[open] { border-color: var(--border-strong); background: rgba(16, 27, 56, .92); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue-lighter); }

.faq__item summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq__answer {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: .95rem;
  animation: fadeIn .35s var(--ease);
}
.faq__answer p { max-width: 72ch; }

/* Contacto */
.section--cta {
  background:
    radial-gradient(900px 480px at 12% 10%, rgba(46, 95, 143, .22), transparent 62%),
    radial-gradient(700px 400px at 92% 90%, rgba(228, 0, 43, .18), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.contact__list {
  list-style: none;
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(127, 178, 224, .1);
  border: 1px solid var(--border);
  color: var(--blue-lighter);
}
.contact__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__list small {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.contact__list a,
.contact__list span,
.contact__address {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.contact__list a { color: var(--text); transition: color .2s var(--ease); }
.contact__list a:hover { color: var(--red-soft); }
.contact__address { font-style: normal; font-weight: 600; }

/* Formulario */
.contact__form-wrap {
  padding: clamp(26px, 4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.form__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-muted);
}
.field label span { color: var(--red-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .94rem;
  color: var(--text);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A3C0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: #0B1329; color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: #4E5F80; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: rgba(7, 12, 28, .92);
  box-shadow: 0 0 0 3px rgba(127, 178, 224, .16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(255, 90, 110, .18); }

.field__error {
  display: none;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field__error,
.checkbox.has-error .field__error { display: block; }

/* Campo trampa antihacks: fuera de pantalla pero no `display:none`,
   porque muchos bots lo ignorarían si lo estuviera. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
  font-size: .86rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
  background: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.checkbox input:checked {
  background: var(--red);
  border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.checkbox a { color: var(--blue-lighter); text-decoration: underline; }
.checkbox .field__error { grid-column: 2; }

.form__status {
  display: none;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}
.form__status.is-ok {
  display: block;
  color: var(--success);
  background: rgba(53, 208, 127, .1);
  border: 1px solid rgba(53, 208, 127, .35);
}
.form__status.is-error {
  display: block;
  color: var(--danger);
  background: rgba(255, 90, 110, .1);
  border: 1px solid rgba(255, 90, 110, .35);
}

.form__note {
  margin-top: 14px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
}

/* ══ 9. PIE, FLOTANTES Y ANIMACIONES ══════════════════════════════════════ */

.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 34px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer__logo { height: 46px; width: auto; margin-bottom: 20px; }

.footer__brand p {
  font-size: .88rem;
  color: var(--text-dim);
  max-width: 34ch;
  line-height: 1.6;
}

.footer__col h3 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }

.footer__col a,
.footer__col address {
  font-size: .89rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.5;
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--red-soft); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-dim);
}

.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--text-dim); transition: color .2s var(--ease); }
.footer__legal a:hover { color: var(--red-soft); }

/* Botones flotantes */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), opacity .25s var(--ease);
}
.fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }

.fab--contact {
  background: var(--grad-red);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-red);
}
.fab--contact::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: ping 2.4s var(--ease) infinite;
}

.fab--top { bottom: 90px; opacity: 0; pointer-events: none; }
.fab--top[hidden] { display: none; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; }

/* Animaciones de entrada */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

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

@keyframes ping {
  0%   { transform: scale(.85); opacity: .9; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ia { grid-template-columns: 1fr; }
  .ia__panel { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: rgba(7, 12, 28, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a { padding: 14px 12px; font-size: 1rem; border-radius: 10px; }
  .nav__list a.is-active::after { display: none; }

  .nav__cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
  .nav__cta .btn { width: 100%; }

  .nav-toggle { display: flex; z-index: 2; }

  .brand__text small { display: none; }

  .metrics { grid-template-columns: repeat(2, 1fr); }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .collab__notes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }

  .section { padding: 64px 0; }

  .brand__logo { height: 32px; }

  .hero__actions .btn { width: 100%; }

  .hero__badges { gap: 10px 20px; font-size: .82rem; }

  .grid--cases { grid-template-columns: 1fr; }

  .card, .case, .collab, .step { padding: 26px 22px; }

  .case__kpis { grid-template-columns: 1fr; gap: 14px; }
  .case__kpis li { display: flex; align-items: baseline; gap: 10px; }
  .case__kpis strong { font-size: 1.15rem; margin-bottom: 0; }

  .footer__top { grid-template-columns: 1fr; gap: 34px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }

  .fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .fab--top { bottom: 78px; }

  .msg { max-width: 92%; }
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}

/* Página 404 */
.error-page {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 40px 24px;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(46, 95, 143, .22), transparent 65%),
    var(--bg);
}
.error-page__logo { height: 44px; width: auto; margin-bottom: 22px; }
.error-page .tag { margin-bottom: 14px; }
.error-page h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.error-page__lead {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 36px;
}
.error-page__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 480px) { .error-page__actions .btn { width: 100%; } }

/* Impresión */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .fab, .hero__canvas, .hero__grid, .hero__glow, .marquee-band, .slider__controls { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ══ 10. FUTURISTA PC — estilo mockup FTPro ═══════════════════════════════ */

.btn--cta {
  border: 1.5px solid var(--red) !important;
  color: #fff !important;
  background: rgba(228,0,43,.08) !important;
  box-shadow: 0 0 18px rgba(228,0,43,.35), inset 0 0 12px rgba(228,0,43,.15);
}
.btn--cta:hover { background: var(--grad-red) !important; transform: translateY(-2px); }
.play {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(127,178,224,.15); border: 1px solid var(--border-strong);
  font-size: .65rem;
}

.hero--futuro {
  padding-bottom: 0;
  background:
    radial-gradient(1000px 500px at 70% 20%, rgba(46,95,143,.25), transparent 65%),
    radial-gradient(700px 400px at 10% 80%, rgba(228,0,43,.12), transparent 60%),
    var(--bg);
}
.hero--futuro .hero__frame {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 8%, rgba(228,0,43,.55) 8.2% 8.4%, transparent 8.6%),
    linear-gradient(115deg, transparent 0 6%, rgba(127,178,224,.5) 6.2% 6.4%, transparent 6.6%);
}
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) 190px;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero__copy .hero__eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: 18px;
}
.hero--futuro .hero__title { text-align: left; font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.hero--futuro .hero__lead { margin: 0 0 30px; text-align: left; }
.hero--futuro .hero__actions { justify-content: flex-start; }
.hero--futuro .hero__badges { justify-content: flex-start; gap: 10px 22px; }

/* Globo */
.hero__visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.hero__globe { width: min(100%, 560px); filter: drop-shadow(0 0 45px rgba(46,95,143,.55)) drop-shadow(0 0 25px rgba(228,0,43,.25)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.015); } }
.orbita { position: absolute; border-radius: 50%; border: 1px dashed rgba(127,178,224,.3); }
.orbita--a { width: 112%; aspect-ratio: 1.6; transform: rotate(-14deg); }
.orbita--b { width: 122%; aspect-ratio: 1.9; transform: rotate(10deg); border-color: rgba(228,0,43,.3); }
.hero__logo-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-58%);
  text-align: center; pointer-events: none;
}
.hero__logo-badge img { width: 190px; margin: 0 auto 4px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.7)); }
.hero__logo-badge span { font-size: .8rem; color: var(--text); opacity: .9; letter-spacing: .02em; }
.hero__chip {
  position: absolute; font-family: var(--font-mono); font-size: .7rem;
  padding: 7px 13px; border-radius: 100px; white-space: nowrap;
  background: rgba(11,19,41,.85); border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
  animation: float 7s ease-in-out infinite;
}
.chip--1 { top: 12%; right: 6%; color: var(--red-soft); border-color: rgba(228,0,43,.4); }
.chip--2 { bottom: 22%; left: 0; color: var(--success); border-color: rgba(53,208,127,.35); animation-delay: -2s; }
.chip--3 { bottom: 8%; right: 10%; color: var(--blue-lighter); animation-delay: -4s; }

/* Rail lateral */
.hero__rail { border-left: 1px solid var(--border); padding-left: 22px; }
.rail__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); line-height: 1.7; margin-bottom: 22px; }
.rail__title span { color: var(--red-soft); }
.hero__rail ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__rail li { position: relative; padding-left: 20px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.hero__rail li::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--red); transform: translateY(-50%); box-shadow: 0 0 8px var(--red); }

/* Métricas futuristas */
.metrics--futuro { margin-bottom: 0; transform: translateY(50%); position: relative; z-index: 2; background: rgba(7,12,28,.9); box-shadow: var(--shadow); }
.metrics--futuro .metric { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'icon num' 'icon label'; column-gap: 14px; align-items: center; text-align: left; padding: 24px 26px; }
.metric__icon { grid-area: icon; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(228,0,43,.12); border: 1px solid rgba(228,0,43,.3); color: var(--red-soft); font-weight: 800; font-size: .8rem; }
.metrics--futuro .metric__num { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.metrics--futuro .metric__label { font-size: .78rem; }

/* Servicios mockup */
.servicios--futuro { padding-top: clamp(90px, 10vw, 140px); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.servicios__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.servicios__title { font-size: .85rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.servicios__title span { border-bottom: 3px solid var(--red); padding-bottom: 16px; }
.servicios__sub { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.servicios--futuro .card { padding: 24px 20px; border-radius: 14px; background: linear-gradient(165deg, rgba(16,27,56,.9), rgba(7,12,28,.9)); }
.servicios--futuro .card h4 { font-size: 1rem; }
.servicios--futuro .card p { font-size: .85rem; }
.servicios--futuro .card ul { display: none; }
.servicios--futuro .group__title { font-size: 1rem; }
@media (min-width: 1025px) {
  .servicios--futuro .grid--cards { grid-template-columns: repeat(4, 1fr); }
}

/* Futuro / ciudad */
.futuro { position: relative; overflow: hidden; margin-top: 40px; border-block: 1px solid var(--border); }
.futuro__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.futuro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,8,20,.88) 20%, rgba(4,8,20,.45) 55%, rgba(4,8,20,.75) 100%); }
.futuro__layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: clamp(60px, 8vw, 110px) 24px; align-items: center; }
.futuro__eyebrow { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; }
.futuro__copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.futuro__copy h2 span { color: var(--blue-light); }
.futuro__copy p { color: var(--text-muted); max-width: 52ch; }
.futuro__form-note { background: rgba(11,19,41,.78); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(12px); }
.futuro__contact-line { margin: 6px 0 20px; color: var(--text-muted); }

/* Responsive: móvil conserva estilo limpio actual */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__rail { display: none; }
  .hero--futuro .hero__title, .hero--futuro .hero__lead { text-align: center; }
  .hero--futuro .hero__actions, .hero--futuro .hero__badges { justify-content: center; }
  .hero__visual { min-height: 340px; order: 3; }
  .hero__globe { width: min(100%, 420px); }
  .metrics--futuro { transform: none; margin-top: 40px; }
  .metrics--futuro .metric { grid-template-columns: 1fr; grid-template-areas: 'icon' 'num' 'label'; text-align: center; justify-items: center; }
  .futuro__layout { grid-template-columns: 1fr; }
  .servicios__top { flex-direction: column; align-items: flex-start; }
}

/* ══ 11. ECOSISTEMA ORBITAL + REFUERZO GLOBO XL ═══════════════════════════ */

.eco-card { overflow: hidden; }
.eco-orbit {
  position: relative; width: 100%; aspect-ratio: 1/1; max-width: 360px;
  margin: 18px auto 8px;
}
.eco-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.eco-ring--a { inset: 8%; border: 1px dashed rgba(127,178,224,.35); animation: spin 40s linear infinite; }
.eco-ring--b { inset: 0; border: 1px dashed rgba(228,0,43,.3); animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.eco-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 34%; aspect-ratio: 1/1; border-radius: 50%;
  display: grid; place-content: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(46,95,143,.5), rgba(7,12,28,.95) 70%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 30px rgba(46,95,143,.45), 0 0 18px rgba(228,0,43,.2);
}
.eco-center img { width: 72%; margin: 0 auto; }
.eco-center span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: var(--text-muted); }
.eco-node {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; white-space: nowrap;
  color: var(--text-muted); background: rgba(11,19,41,.9);
  border: 1px solid var(--border); border-radius: 100px; padding: 6px 10px;
  box-shadow: var(--shadow-sm);
}
.eco-node i { font-style: normal; color: var(--blue-light); font-size: .75rem; }
.eco-n3 i, .eco-n4 i { color: var(--red-soft); }
/* posiciones orbitales (8 nodos) */
.eco-n1 { top: 6%; left: 2%; }
.eco-n2 { top: 0%; right: 8%; }
.eco-n3 { top: 30%; right: -2%; }
.eco-n4 { bottom: 30%; right: -1%; }
.eco-n5 { bottom: 6%; right: 10%; }
.eco-n6 { bottom: 0%; left: 12%; }
.eco-n7 { bottom: 32%; left: -3%; }
.eco-n8 { top: 30%; left: -2%; }
.eco-foot { text-align: center; font-size: .78rem; color: var(--text-dim); margin-top: 10px; }

/* Órbita real: los 8 nodos giran alrededor del planeta FTPro.
   El envoltorio rota (reparte nodos por el círculo) y el nodo
   contrarrota para que el texto siempre se lea recto. */
.eco-spin {
  position: absolute; inset: 8%;
  animation: ecoSpin 48s linear infinite;
  pointer-events: none;
}
.eco-spin > .eco-node {
  position: absolute; top: -13px; left: 0; right: 0;
  margin: 0 auto; width: max-content; max-width: 110%;
  animation: ecoSpinRev 48s linear infinite;
  pointer-events: auto;
}
@keyframes ecoSpin { to { transform: rotate(360deg); } }
@keyframes ecoSpinRev { to { transform: rotate(-360deg); } }
.eco-orbit:hover .eco-spin,
.eco-orbit:hover .eco-spin > .eco-node,
.eco-orbit:hover .eco-ring { animation-play-state: paused; }

/* Más contraste del globo en pantallas grandes */
@media (min-width: 1280px) {
  .hero__visual { min-height: 560px; }
  .hero__globe {
    width: min(100%, 620px);
    filter: drop-shadow(0 0 60px rgba(46,95,143,.75)) drop-shadow(0 0 32px rgba(228,0,43,.35)) contrast(1.12) brightness(1.08);
  }
  .hero__logo-badge img { width: 220px; }
  .hero--futuro .hero__title { font-size: clamp(2.6rem, 3.8vw, 4.2rem); }
}

/* Móvil: ecosistema como lista compacta */
@media (max-width: 640px) {
  .eco-orbit { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: none; }
  .eco-ring, .eco-center { display: none; }
  .eco-spin { position: static; inset: auto; animation: none; }
  .eco-spin > .eco-node { position: static; animation: none; margin: 0; }
  .eco-node { position: static; }
}

/* ══ 12. FONDO GLOBAL TECNOLÓGICO ══════════════════════════════════════════ */

/* Capa base fija: imagen circuito + nebulosas (estilo referencias azules) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(46,95,143,.30), transparent 65%),
    radial-gradient(800px 460px at 88% 8%, rgba(228,0,43,.18), transparent 65%),
    radial-gradient(1000px 600px at 50% 110%, rgba(46,95,143,.20), transparent 65%),
    var(--bg);
}
body {
  background-image: url('../assets/circuit-bg.svg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 50%, transparent 70%, rgba(0,0,0,.35) 100%);
}

/* Rejilla de circuitos global con desplazamiento lento */
main::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background-image:
    linear-gradient(rgba(127,178,224,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,178,224,.055) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 49.7%, rgba(228,0,43,.10) 49.8% 50.2%, transparent 50.3%);
  background-size: 56px 56px, 56px 56px, 220px 220px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
  animation: gridPan 40s linear infinite;
}
@keyframes gridPan { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 56px, 56px 0, 0 0; } }

/* Separadores luminosos entre secciones */
.section { border-top: 1px solid rgba(127,178,224,.10); }
.section::before {
  content: ''; position: absolute; top: -1px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228,0,43,.7) 20%, rgba(127,178,224,.8) 50%, rgba(228,0,43,.7) 80%, transparent);
  box-shadow: 0 0 14px rgba(228,0,43,.45);
  pointer-events: none;
}

/* Hero: suelo en perspectiva + haces */
.hero--futuro::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 180px;
  z-index: -1; pointer-events: none; opacity: .7;
  background:
    linear-gradient(transparent 0%, rgba(7,12,28,.9) 100%),
    repeating-linear-gradient(90deg, rgba(127,178,224,.18) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(127,178,224,.14) 0 1px, transparent 1px 26px);
  transform: perspective(520px) rotateX(58deg);
  transform-origin: bottom;
  mask-image: linear-gradient(#000 40%, transparent 95%);
}

/* Cabecera HUD */
.site-header.is-stuck {
  background: rgba(4,8,20,.82);
  box-shadow: 0 1px 0 rgba(228,0,43,.45), 0 12px 40px rgba(0,0,0,.5);
}

/* Tarjetas con esquinas HUD */
.card, .case, .collab, .step, .quote, .contact__form-wrap, .futuro__form-note {
  position: relative;
  background-image: linear-gradient(160deg, rgba(127,178,224,.07), transparent 40%), var(--bg-card);
}
.servicios--futuro .card::after, .case::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  border-top: 2px solid rgba(228,0,43,.7); border-right: 2px solid rgba(228,0,43,.7);
  box-shadow: 2px -2px 8px rgba(228,0,43,.25); pointer-events: none;
}

/* Marquee y métricas con glow */
.marquee-band { box-shadow: inset 0 1px 0 rgba(127,178,224,.2), inset 0 -1px 0 rgba(228,0,43,.3); }
.metrics--futuro { box-shadow: 0 0 0 1px rgba(127,178,224,.2), 0 18px 48px rgba(0,0,0,.5), 0 0 34px rgba(46,95,143,.25); }

/* Respeto a movimiento reducido y móvil */
@media (prefers-reduced-motion: reduce) {
  main::before { animation: none; }
  .eco-ring--a, .eco-ring--b, .eco-spin, .eco-spin > .eco-node { animation: none; }
  .hero__globe, .hero__chip { animation: none; }
}
@media (max-width: 640px) {
  body::after { opacity: .3; }
  main::before { opacity: .5; background-size: 44px 44px, 44px 44px, 160px 160px; }
  .hero--futuro::after { height: 110px; opacity: .5; }
  body { background-attachment: scroll; }
}

/* ══ 13. TARJETAS 3D + MODAL + IDIOMA + RGPD ══════════════════════════════ */

/* Volumen 3D */
.grid--cards, .grid--cases { perspective: 1400px; }
.card, .case, .collab, .step {
  transform-style: preserve-3d;
  transform: translateZ(0);
  box-shadow: 0 1px 0 rgba(168,205,240,.25) inset, 0 -2px 0 rgba(0,0,0,.5) inset,
    0 18px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(127,178,224,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover, .case:hover, .collab:hover, .step:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) translateZ(12px);
  border-color: rgba(127,178,224,.45);
  box-shadow: 0 1px 0 rgba(168,205,240,.4) inset, 0 30px 60px rgba(0,0,0,.55),
    0 0 34px rgba(46,124,194,.30), 0 0 18px rgba(228,0,43,.18);
}
.card__icon, .collab__icon { transform: translateZ(30px); box-shadow: 0 8px 18px rgba(0,0,0,.4); }

/* Modal Te llamamos */
.modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2,4,12,.72); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; max-width: 460px; margin: 12vh auto 0; padding: 32px 30px;
  background: linear-gradient(165deg, #101B38, #070C1C);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(46,124,194,.25);
  transform: perspective(900px) rotateX(4deg);
}
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--text); cursor: pointer; font-size: 1rem;
}
.modal__close:hover { border-color: var(--red); color: var(--red-soft); }
.modal__lead { color: var(--text-muted); margin-bottom: 22px; }

/* Selector idioma — siempre visible en la cabecera fija */
.lang { display: flex; gap: 8px; align-items: center; flex: none; }
.lang__btn {
  border: 1px solid transparent; background: rgba(11,19,41,.6); cursor: pointer;
  padding: 3px; border-radius: 8px; line-height: 0; opacity: .55;
  transition: opacity .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lang__btn svg { width: 27px; height: 20px; border-radius: 5px; display: block; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.lang__btn:hover { opacity: 1; transform: translateY(-1px); }
.lang__btn.is-active { opacity: 1; border-color: var(--red); box-shadow: 0 0 12px rgba(228,0,43,.55); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

/* RGPD */
.rgpd {
  margin-top: 26px; padding: 18px 20px; font-size: .8rem; color: var(--text-muted);
  background: rgba(127,178,224,.06); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.rgpd h3 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.footer__rgpd { font-size: .75rem; color: var(--text-dim); margin-top: 14px; max-width: 30ch; }

@media (max-width: 880px) {
  .nav__cta { flex-direction: column; align-items: stretch; }
  .header__inner { gap: 12px; }
  .lang { margin-left: auto; }
  .modal__box { margin: 8vh 18px 0; }
}

/* Banner de cookies */
.cookies {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1100;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 16px 22px; border-radius: 16px;
  background: rgba(7,12,28,.94); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 260px; font-size: .85rem; color: var(--text-muted); }
.cookies a { color: var(--blue-lighter); text-decoration: underline; }
.cookies__actions { display: flex; gap: 10px; flex-wrap: wrap; }