/* =========================================================
   PATHFINDER AI AGENCY — Hoja de estilo principal
   Paleta y tipografía tomadas de la guía de marca oficial
   (Pathfinder deliverables — brand guidelines, Aug 2026).

   Mystic Cosmos  #3E3085   Cosmos Blue  #051633
   Riders Black   #121212   Heavy Blue   #76A1FF
   White          #FFFFFF
   Tipografía: Manrope (Regular / Medium / SemiBold / Bold)
   ========================================================= */

/* ---------- Fuente de marca (autohospedada, sin CDN) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --cosmos-blue: #051633;
  --mystic-cosmos: #3E3085;
  --riders-black: #121212;
  --heavy-blue: #76A1FF;
  --white: #FFFFFF;

  /* Superficies */
  --surface-dark: #051633;
  --surface-dark-2: #071c40;
  --surface-light: #FFFFFF;
  --surface-muted: #F4F6FB;
  --surface-card: #FFFFFF;

  /* Texto */
  --ink: #0A1B37;
  --ink-soft: #4C5C77;
  --ink-faint: #7A88A0;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, .72);
  --on-dark-faint: rgba(255, 255, 255, .52);

  /* Bordes */
  --line-light: #E3E8F2;
  --line-dark: rgba(255, 255, 255, .12);

  /* Acentos dependientes del tema */
  --eyebrow-color: var(--mystic-cosmos);
  --accent-tint: rgba(62, 48, 133, .07);
  --accent-tint-strong: rgba(62, 48, 133, .12);
  --accent-line: rgba(62, 48, 133, .28);
  --panel-bg: var(--surface-muted);
  --panel-bg-hover: var(--white);
  --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E3085' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(5, 22, 51, .06), 0 4px 12px rgba(5, 22, 51, .05);
  --shadow-md: 0 2px 6px rgba(5, 22, 51, .07), 0 18px 40px rgba(5, 22, 51, .09);
  --shadow-lg: 0 30px 70px rgba(5, 22, 51, .18);

  /* Métrica */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --section-y: clamp(72px, 8vw, 128px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Tema oscuro ----------
   Solo se redefinen los tokens: la maquetacion no cambia.
   Se activa con data-theme="dark" en el elemento <html>. */
:root[data-theme="dark"] {
  --surface-light: #051633;
  --surface-muted: #081B3D;
  --surface-dark: #030E22;
  --surface-card: rgba(255, 255, 255, .045);

  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, .72);
  --ink-faint: rgba(255, 255, 255, .52);

  --line-light: rgba(255, 255, 255, .12);

  --eyebrow-color: var(--heavy-blue);
  --accent-tint: rgba(118, 161, 255, .12);
  --accent-tint-strong: rgba(118, 161, 255, .18);
  --accent-line: rgba(118, 161, 255, .34);
  --panel-bg: rgba(255, 255, 255, .045);
  --panel-bg-hover: rgba(255, 255, 255, .08);
  --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376A1FF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .32), 0 18px 40px rgba(0, 0, 0, .38);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-light);
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Iconografía de trazo: un solo estilo en todo el sitio */
svg[viewBox]:not(.stage-svg) path,
svg[viewBox]:not(.stage-svg) circle,
svg[viewBox]:not(.stage-svg) rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Tipografía (escala de la guía de marca) ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.14;
  color: inherit;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.2vw, 2.75rem); line-height: 1.14; }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0; }

.eyebrow {
  margin: 0 0 18px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}

.lead, .section-lead {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section.light { background: var(--surface-light); }
.section.muted { background: var(--surface-muted); }

.section.dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}
.section.dark .eyebrow { color: var(--heavy-blue); }
.section.dark .section-lead, .section.dark p { color: var(--on-dark-soft); }

.section-head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 18px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--surface-light);
  color: var(--eyebrow-color);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--heavy-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: .875rem; }

.btn-accent {
  background: var(--heavy-blue);
  color: var(--cosmos-blue);
  box-shadow: 0 8px 24px rgba(118, 161, 255, .28);
}
.btn-accent:hover { background: #92B4FF; box-shadow: 0 12px 32px rgba(118, 161, 255, .38); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .22);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }

.btn-outline {
  background: transparent;
  border-color: var(--line-light);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--mystic-cosmos); color: var(--mystic-cosmos); }

.btn-dark {
  background: var(--cosmos-blue);
  color: var(--white);
}
.btn-dark:hover { background: var(--mystic-cosmos); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background-color .3s var(--ease), padding .3s var(--ease),
              box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(5, 22, 51, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}

.nav-wrap { display: flex; align-items: center; gap: 24px; }

.brand { flex: none; display: flex; align-items: center; }
.brand-mark { width: 186px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.site-nav > a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  transition: color .2s var(--ease);
}
.site-nav > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--heavy-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav > a:hover { color: var(--white); }
.site-nav > a:hover::after { transform: scaleX(1); }
.site-nav .mobile-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--on-dark-faint);
  cursor: pointer;
}
.lang-switch span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch .lang-on { background: var(--white); color: var(--cosmos-blue); }

/* Conmutador de tema claro / oscuro */
.theme-switch {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.theme-switch:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
.theme-switch svg { grid-area: 1 / 1; width: 17px; height: 17px; transition: opacity .25s var(--ease), transform .35s var(--ease); }
/* En tema claro se ofrece pasar a oscuro: se muestra la luna. */
.theme-switch .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-switch .ico-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-switch .ico-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-switch .ico-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.8px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(140px, 15vw, 190px) 0 clamp(80px, 8vw, 120px);
  background: var(--cosmos-blue);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(115% 85% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 30%, transparent 78%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
}
.hero-glow-a {
  width: 620px; height: 620px;
  top: -260px; left: -140px;
  background: var(--mystic-cosmos);
}
.hero-glow-b {
  width: 560px; height: 560px;
  right: -180px; bottom: -300px;
  background: var(--heavy-blue);
  opacity: .3;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-copy .eyebrow { color: var(--heavy-blue); }
.hero-copy h1 em {
  font-style: normal;
  color: var(--heavy-blue);
}
.hero-copy .lead {
  margin-top: 24px;
  max-width: 54ch;
  color: var(--on-dark-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.hero-proof li {
  position: relative;
  padding-left: 20px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--on-dark-faint);
}
.hero-proof li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--heavy-blue);
}

/* ---------- Visual del hero: el sistema encontrando el camino ----------
   Composicion en SVG, sin imagenes externas. Los canales de entrada
   convergen en el isotipo de marca y salen convertidos en resultados. */
.stage { position: relative; }
.stage-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Orbitas de fondo */
.ring {
  fill: none;
  stroke: rgba(118, 161, 255, .16);
  stroke-width: 1;
  stroke-dasharray: 3 9;
  transform-box: view-box;
  transform-origin: 285px 220px;
}
.ring-a { animation: ringSpin 46s linear infinite; }
.ring-b { stroke: rgba(255, 255, 255, .1); animation: ringSpin 32s linear infinite reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Trayectos */
.beam {
  fill: none;
  stroke: rgba(118, 161, 255, .28);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.beam-out { stroke: rgba(118, 161, 255, .2); }

/* Senales que recorren los trayectos */
.pulse {
  fill: #A8C4FF;
  filter: drop-shadow(0 0 5px rgba(118, 161, 255, .95));
}
.pulse-out { fill: #7FE6BC; filter: drop-shadow(0 0 5px rgba(127, 230, 188, .9)); }

/* Nodos de entrada y de salida */
.node rect {
  fill: rgba(255, 255, 255, .06);
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1;
}
.node text {
  fill: rgba(255, 255, 255, .82);
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.2px;
}
.node-ico path { fill: none; stroke: #76A1FF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* En pantallas pequenas el SVG se reduce mucho: se usan etiquetas
   cortas para poder subir el cuerpo de letra sin que desborde. */
.t-short { display: none; }

.node-in rect { animation: nodeGlow 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * .42s); }
@keyframes nodeGlow {
  0%, 62%, 100% { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .14); }
  20% { fill: rgba(118, 161, 255, .18); stroke: rgba(118, 161, 255, .5); }
}

.node-out rect {
  fill: rgba(255, 255, 255, .07);
  stroke: rgba(255, 255, 255, .16);
  animation: nodeDone 2.6s ease-in-out infinite;
  animation-delay: calc(1.5s + var(--i) * .5s);
}
@keyframes nodeDone {
  0%, 55%, 100% { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .16); }
  22% { fill: rgba(127, 230, 188, .16); stroke: rgba(127, 230, 188, .48); }
}
.node-dot {
  fill: #7FE6BC;
  animation: dotOn 2.6s ease-in-out infinite;
  animation-delay: calc(1.5s + var(--i) * .5s);
}
@keyframes dotOn {
  0%, 55%, 100% { opacity: .35; }
  22% { opacity: 1; }
}

/* Nucleo de marca */
.hub-halo { animation: haloBreath 5.5s ease-in-out infinite; transform-box: view-box; transform-origin: 285px 220px; }
@keyframes haloBreath {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hub-wave {
  fill: none;
  stroke: rgba(118, 161, 255, .55);
  stroke-width: 1.2;
  transform-box: view-box;
  transform-origin: 285px 220px;
  animation: hubWave 3.4s ease-out infinite;
}
@keyframes hubWave {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
.hub-core { filter: drop-shadow(0 14px 34px rgba(62, 48, 133, .6)); }
.hub-mark path { fill: #FFFFFF; stroke: none; }

/* Metricas bajo el visual */
.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.stage-metrics div { display: flex; flex-direction: column; gap: 2px; }
.stage-metrics b {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
}
.stage-metrics span {
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--on-dark-faint);
}

/* =========================================================
   FRANJA DE VALOR
   ========================================================= */
.strip {
  background: var(--riders-black);
  color: var(--white);
  padding: clamp(32px, 4vw, 44px) 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px clamp(16px, 3vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.strip-grid > div:first-child { padding-left: 0; border-left: none; }
.strip-grid strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.strip-grid span { font-size: .89rem; color: rgba(255, 255, 255, .58); }

/* =========================================================
   TARJETAS
   ========================================================= */
.cards-2, .cards-3, .cards-4 { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  background: var(--surface-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .97rem; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card-ico {
  width: 46px; height: 46px;
  padding: 10px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--eyebrow-color);
}
.card-idx {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-faint);
}

.service.featured {
  background: linear-gradient(168deg, #0A2352 0%, var(--cosmos-blue) 60%, #0B1B44 100%);
  border-color: transparent;
  color: var(--on-dark);
}
.service.featured p { color: var(--on-dark-soft); }
.service.featured .card-ico { background: rgba(118, 161, 255, .15); color: var(--heavy-blue); }
.service.featured .card-idx { color: var(--on-dark-faint); }
.service.featured .ticks li { color: var(--on-dark-soft); }
.service.featured .ticks li::before {
  border-color: rgba(118, 161, 255, .45);
  background-color: rgba(118, 161, 255, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376A1FF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.service.featured:hover { box-shadow: 0 30px 60px rgba(5, 22, 51, .3); }

/* En tema oscuro la tarjeta destacada se confundiria con el fondo:
   se le da un borde y un halo de acento para conservar la jerarquia. */
:root[data-theme="dark"] .service.featured {
  border-color: rgba(118, 161, 255, .38);
  box-shadow: 0 0 0 1px rgba(118, 161, 255, .1), 0 24px 50px rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] .service.featured:hover {
  border-color: rgba(118, 161, 255, .6);
  box-shadow: 0 0 0 1px rgba(118, 161, 255, .18), 0 30px 60px rgba(0, 0, 0, .55);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: .34em;
  width: 17px; height: 17px;
  border: 1.5px solid var(--accent-line);
  border-radius: 50%;
  background-color: var(--accent-tint);
  background-image: var(--tick-icon);
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Tarjetas de modelo */
.model { padding: clamp(30px, 3.4vw, 42px); }
.tag {
  align-self: flex-start;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}
.tag.alt {
  background: rgba(118, 161, 255, .12);
  border-color: rgba(118, 161, 255, .38);
  color: #3E68C4;
}

/* Tarjetas de costo (sección oscura) */
.section.dark .card {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.section.dark .card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(118, 161, 255, .35);
  box-shadow: 0 26px 56px rgba(0, 0, 0, .3);
}
.cost-ico {
  width: 40px; height: 40px;
  margin-bottom: 22px;
  color: var(--heavy-blue);
}

/* Tarjetas de valores */
.card.value { position: relative; overflow: hidden; padding: clamp(26px, 2.8vw, 32px); }
.card.value .value-idx {
  display: block;
  margin-bottom: 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--heavy-blue);
}
.card.value h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card.value p { font-size: .92rem; }

/* =========================================================
   DEMO
   ========================================================= */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 4vw, 60px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px);
  background: linear-gradient(150deg, #0A2352 0%, var(--cosmos-blue) 55%, #17123D 100%);
  border-radius: clamp(20px, 2.5vw, 32px);
  color: var(--on-dark);
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(118, 161, 255, .16);
  border: 1px solid rgba(118, 161, 255, .34);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--heavy-blue);
}
.demo-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); margin-bottom: 16px; }
.demo-copy > p { color: var(--on-dark-soft); }

.pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 30px; }
.pills li {
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  font-size: .82rem;
  font-weight: 500;
  color: var(--on-dark-soft);
}

.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.demo .btn-outline { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.demo .btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }

.demo-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 10px 0;
}

.phone {
  flex: none;
  width: 230px;
  padding: 18px 20px 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .38);
}
.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--on-dark-faint);
}
.phone-bar i {
  width: 26px; height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}
.avatar {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--heavy-blue), var(--mystic-cosmos));
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.call-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.phone h4 { margin: 4px 0 20px; font-size: 1.2rem; font-weight: 600; }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; }
.wave i {
  width: 3px;
  border-radius: 999px;
  background: var(--heavy-blue);
  animation: bounce 1.25s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 20px; animation-delay: .08s; }
.wave i:nth-child(3) { height: 30px; animation-delay: .16s; }
.wave i:nth-child(4) { height: 16px; animation-delay: .24s; }
.wave i:nth-child(5) { height: 26px; animation-delay: .32s; }
.wave i:nth-child(6) { height: 34px; animation-delay: .4s; }
.wave i:nth-child(7) { height: 22px; animation-delay: .48s; }
.wave i:nth-child(8) { height: 30px; animation-delay: .56s; }
.wave i:nth-child(9) { height: 14px; animation-delay: .64s; }
.wave i:nth-child(10) { height: 24px; animation-delay: .72s; }
.wave i:nth-child(11) { height: 11px; animation-delay: .8s; }
@keyframes bounce {
  0%, 100% { transform: scaleY(.4); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.call-state {
  display: block;
  margin-top: 18px;
  font-size: .76rem;
  color: var(--on-dark-faint);
}

.mini-cal {
  position: relative;
  z-index: 2;
  flex: none;
  width: 192px;
  margin: 0 0 30px 16px;
  padding: 16px;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius);
  color: #0A1B37;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .32);
}
.mini-cal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #E3E8F2;
}
.mini-cal-top b { font-size: .84rem; font-weight: 700; }
.mini-cal-top span { font-size: .7rem; color: #7A88A0; }
.mini-cal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .76rem;
}
.mini-cal time { font-weight: 600; color: #4C5C77; }
.s {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.s.busy { background: #F0F2F7; color: #8A94A8; }
.s.open { background: rgba(118, 161, 255, .18); color: #2F58B8; }
.s.booked { background: rgba(62, 48, 133, .12); color: #3E3085; }

/* Recurso destacado */
.resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 26px clamp(24px, 3vw, 34px);
  background: var(--panel-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.resource:hover { transform: translateY(-3px); border-color: var(--accent-line); background: var(--panel-bg-hover); box-shadow: var(--shadow-sm); }
.resource span {
  display: block;
  margin-bottom: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}
.resource strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.resource svg { width: 22px; height: 22px; flex: none; color: var(--eyebrow-color); }

/* =========================================================
   PROCESO
   ========================================================= */
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.section-head.stuck { position: sticky; top: 120px; margin-bottom: 0; }

.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: clamp(18px, 2.4vw, 30px);
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
}
.step:first-child { border-top: none; padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step-idx {
  flex: none;
  padding-top: 3px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--heavy-blue);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* =========================================================
   ENFOQUE / ARQUITECTURA
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.split-copy h2 { margin-bottom: 18px; }

.points { display: flex; flex-direction: column; gap: 2px; margin-top: 36px; }
.points > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}
.points strong { font-size: 1rem; font-weight: 600; letter-spacing: -.012em; }
.points span { font-size: .93rem; color: var(--on-dark-soft); }

.arch {
  padding: clamp(26px, 3vw, 34px);
  background: linear-gradient(165deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.arch-label {
  display: block;
  margin-bottom: 22px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.arch-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.arch-row.accent { background: rgba(118, 161, 255, .13); border-color: rgba(118, 161, 255, .38); }
.arch-row i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .09);
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: var(--heavy-blue);
}
.arch-row b { display: block; font-size: .96rem; font-weight: 600; letter-spacing: -.012em; }
.arch-row span { font-size: .82rem; color: var(--on-dark-faint); }
.arch-arrow {
  width: 1.5px;
  height: 22px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(118, 161, 255, .12), rgba(118, 161, 255, .7));
}
.arch-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: .82rem;
  color: var(--on-dark-faint);
}

/* =========================================================
   CTA
   ========================================================= */
.cta-section { padding: 0 0 clamp(72px, 8vw, 110px); background: var(--surface-light); }
.cta-section .eyebrow { color: var(--heavy-blue); }
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(38px, 4.6vw, 64px);
  border-radius: clamp(20px, 2.5vw, 32px);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(118, 161, 255, .38), transparent 55%),
    linear-gradient(135deg, var(--mystic-cosmos) 0%, #2A2470 45%, var(--cosmos-blue) 100%);
  color: var(--on-dark);
}
.cta .eyebrow { color: var(--heavy-blue); }
.cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta .btn-dark { background: var(--white); color: var(--cosmos-blue); }
.cta .btn-dark:hover { background: var(--heavy-blue); color: var(--cosmos-blue); }
.cta-mail {
  font-size: .88rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cta-mail:hover { color: var(--white); border-color: var(--white); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: clamp(56px, 6vw, 80px) 0 34px;
  background: var(--riders-black);
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(38px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand img { width: 196px; margin-bottom: 20px; }
.footer-brand p {
  max-width: 40ch;
  font-size: .93rem;
  color: rgba(255, 255, 255, .58);
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  margin-bottom: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.footer-col a {
  font-size: .93rem;
  color: rgba(255, 255, 255, .74);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--heavy-blue); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .42);
}

/* =========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .process-layout { grid-template-columns: 1fr; }
  .section-head.stuck { position: static; margin-bottom: 44px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 96px 24px 34px;
    background: var(--cosmos-blue);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-102%);
    transition: transform .38s var(--ease);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav > a {
    padding: 16px 0;
    font-size: 1.05rem;
    color: var(--white);
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav > a::after { display: none; }
  .site-nav .mobile-cta {
    display: block;
    margin-top: 22px;
    padding: 15px 24px;
    text-align: center;
    border: none;
    border-radius: 999px;
    background: var(--heavy-blue);
    color: var(--cosmos-blue);
    font-weight: 600;
    font-size: .98rem;
  }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div { padding: 16px 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, .1); }
  .strip-grid > div:first-child { border-top: none; padding-top: 0; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }
  .brand-mark { width: 140px; }

  /* El visual ocupa todo el ancho y agranda su tipografia interna */
  .stage { margin: 0 calc(var(--gutter) * -1); }
  .t-full { display: none; }
  .t-short { display: block; }
  .node text { font-size: 20px; }
  .node-in rect { width: 142px; }
  .node-out rect { width: 178px; }
  .theme-switch { width: 34px; height: 34px; }
  .lang-switch { font-size: .68rem; }
  .lang-switch span { padding: 3px 7px; }
  .cards-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .demo-actions .btn { width: 100%; }
  .resource { flex-direction: column; align-items: flex-start; gap: 16px; }
  .demo-visual { flex-direction: column; align-items: center; }
  .mini-cal { width: 100%; max-width: 260px; margin: 22px 0 0; }
  .stage-metrics { grid-template-columns: 1fr 1fr; }
}

/* ---------- Accesibilidad: 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; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .nav-toggle, .hero-bg, .cta-section { display: none; }
  body { color: #000; background: #fff; }
  .section.dark, .hero, .strip, .site-footer { background: #fff !important; color: #000 !important; }
}
