/* styles.css */
/* ============================================
 * IG TECH ADVISORY — Design System
 * ============================================ */

:root {
  /* Primary — Navy (brand oficial IG Tech Advisory) */
  --color-primary-50:  #EAEDF2;
  --color-primary-100: #C8D0DC;
  --color-primary-200: #9CABBE;
  --color-primary-300: #7187A0;
  --color-primary-400: #4D6483;
  --color-primary-500: #2E4763;
  --color-primary-600: #0F2A44;  /* Navy brand */
  --color-primary-700: #0B2138;
  --color-primary-800: #07182A;
  --color-primary-900: #040F1C;
  --color-primary-950: #02060F;

  /* Accent — Status Green (brand oficial: significa "online / OK") */
  --color-accent-50:   #E8FAEE;
  --color-accent-100:  #C7F3D5;
  --color-accent-200:  #95E5AE;
  --color-accent-300:  #5CD387;
  --color-accent-400:  #22C55E;  /* Status Green brand */
  --color-accent-500:  #16A34A;
  --color-accent-600:  #15803D;
  --color-accent-700:  #166534;

  /* Ink Soft — texto secundario brand */
  --color-ink-soft: #5C6B7A;

  /* Neutrals · tintados sutilmente hacia navy (no pure black/white) */
  --color-neutral-0:    #FDFDFE;  /* casi blanco, sombra de navy */
  --color-neutral-50:   #F9FAFB;
  --color-neutral-100:  #F3F4F6;
  --color-neutral-200:  #E4E6EB;
  --color-neutral-300:  #D3D6DC;
  --color-neutral-400:  #A0A4AC;
  --color-neutral-500:  #70747C;
  --color-neutral-600:  #51555D;
  --color-neutral-700:  #3E4148;
  --color-neutral-800:  #26282C;
  --color-neutral-900:  #17191D;
  --color-neutral-950:  #0A0C10;  /* tintado hacia navy, no #000 puro */

  /* Semantic */
  --color-success-500: #16A34A;
  --color-warning-500: #F59E0B;
  --color-error-500:   #DC2626;
  --color-info-500:    #0EA5E9;

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

  --font-size-xs:    0.75rem;
  --font-size-sm:    0.875rem;
  --font-size-base:  1rem;
  --font-size-lg:    1.125rem;
  --font-size-xl:    1.25rem;
  --font-size-2xl:   1.5rem;
  --font-size-3xl:   1.875rem;
  --font-size-4xl:   2.25rem;
  --font-size-5xl:   3rem;
  --font-size-6xl:   3.75rem;
  --font-size-7xl:   4.5rem;
  --font-size-8xl:   6rem;

  --tracking-tightest: -0.04em;
  --tracking-tight:    -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-widest:   0.12em;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows · tintadas hacia navy (no #000) */
  --shadow-sm: 0 1px 3px 0 rgb(15 42 68 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(15 42 68 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(15 42 68 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(15 42 68 / 0.10);
  --shadow-2xl: 0 25px 50px -12px rgb(15 42 68 / 0.18);
  /* Glow retirado · era AI slop. Mantenido el token por compatibilidad
     (lo usaban algunos hovers) pero ahora es una sombra normal sutil. */
  --shadow-glow-primary: 0 8px 24px -6px rgb(15 42 68 / 0.18);
  --shadow-glow-accent:  0 8px 24px -6px rgb(22 163 74 / 0.20);

  /* Transitions */
  /* Easing fuerte estilo Emil Kowalski · los built-in CSS son débiles
     y hacen que las animaciones "no peguen". Estas curvas dan punch. */
  --transition-fast: 160ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-base: 200ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow: 260ms cubic-bezier(0.23, 1, 0.32, 1);
  /* Lista de propiedades comunes para evitar `transition: all` (que anima
     layout y mata el rendimiento). OJO: en el atajo `transition` la duracion solo cae en la ultima propiedad de la lista; usar
     transition-property: var(--ui-props) + transition-duration / transition-timing-function por separado. */
  --ui-props: transform, background-color, color, opacity, box-shadow, border-color, filter;

  /* Layout */
  --container-max: 1280px;
  --container-px: clamp(1rem, 4vw, 2.5rem);

  /* Semantic theme */
  --bg:          var(--color-neutral-0);
  --bg-elevated: var(--color-neutral-50);
  --bg-inverted: var(--color-neutral-950);
  --text:        var(--color-neutral-950);
  --text-muted:  var(--color-neutral-600);
  --text-inverted: var(--color-neutral-0);
  --border:      var(--color-neutral-200);
  --brand:       var(--color-primary-600);
  --brand-strong: var(--color-primary-700);
  --accent:      var(--color-accent-400);
}

/* Modo oscuro retirado · solo modo claro */

/* ============================================
 * Reset & Base
 * ============================================ */

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

html {
  text-size-adjust: 100%;
  /* scroll-behavior: smooth retirado el 2026-11-04: animaba tambien los saltos por teclado y el foco.
     El scroll suave de los enlaces #ancla lo hace ahora script.js, solo con clic de puntero. */
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-base), color var(--transition-base);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection {
  background: var(--brand);
  color: var(--color-neutral-0);
}

/* ============================================
 * Typography
 * ============================================ */

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, var(--font-size-8xl));
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-tightest);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, var(--font-size-7xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: var(--tracking-tightest);
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--font-size-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--font-size-4xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, var(--font-size-xl));
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 60ch;
}

.mono { font-family: var(--font-mono); }

/* ============================================
 * Layout primitives
 * ============================================ */

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

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section--tight { padding: var(--space-16) 0; }

.section--inverted {
  background: var(--bg-inverted);
  color: var(--text-inverted);
}
.section--inverted .lead,
.section--inverted .eyebrow { color: var(--color-neutral-400); }

.section--elevated { background: var(--bg-elevated); }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* ============================================
 * Buttons
 * ============================================ */

/* ============================================
 * Botones · principios Emil Kowalski
 *  - transition específica (no `all`, que anima layout y cuesta caro)
 *  - :active con scale(0.97) → el botón "escucha" el press, feedback inmediato
 *  - :hover solo en dispositivos con puntero fino (touch no dispara hover por tap)
 *  - easing fuerte (curva custom) en lugar de los built-in débiles
 *  - duración de press 100ms, release 160ms (asimetría: rápido cuando responde)
 *  - :focus-visible con anillo accesible para navegación de teclado
 * ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid transparent;
  transform-origin: center;
  /* Specific properties · NO `all`. Cubre las habituales en estado y estilo. */
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease;
  will-change: transform;
}

/* Press feedback · scale(0.97) con duración rápida.
   Nada en el mundo real reacciona después de tocarlo; aquí responde a 100ms. */
.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

/* Hover solo en puntero fino · evita el hover-on-tap en móvil */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--brand-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
  }
  .btn--accent:hover {
    background: var(--color-accent-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-accent);
  }
  .btn--secondary:hover {
    border-color: var(--text);
    background: var(--bg-elevated);
  }
  .btn--ghost:hover {
    color: var(--brand-strong);
  }
  .btn:hover .btn-arrow {
    transform: translateX(4px);
  }
}

/* Focus de teclado accesible (no hover) */
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

/* Disabled · no acepta interacciones */
.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Variantes · solo color/borde, el comportamiento lo lleva .btn */
.btn--primary   { background: var(--brand);     color: var(--color-neutral-0); }
.btn--accent    { background: var(--accent);    color: var(--color-neutral-950); }
.btn--secondary { background: transparent;      color: var(--text); border-color: var(--border); }
.btn--ghost     { background: transparent;      color: var(--brand); padding: var(--space-2) var(--space-3); }

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--font-size-lg); }

/* Flecha del botón · transición específica (no all) y misma curva fuerte */
.btn-arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Respeta reduced-motion · sin movimiento, mantiene opacity/color */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
  .btn:active { transform: none; }
  @media (hover: hover) and (pointer: fine) {
.btn--primary:hover,
  .btn--accent:hover { transform: none; }
}
  @media (hover: hover) and (pointer: fine) {
.btn:hover .btn-arrow { transform: none; }
}
}

/* ============================================
 * Header / Navigation
 * ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  font-size: var(--font-size-lg);
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: var(--tracking-widest);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-base);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }

.header-actions { display: flex; gap: var(--space-3); align-items: center; }

.nav-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--brand);
  color: var(--color-neutral-0) !important;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
.nav-access:hover { opacity: 0.88; transform: translateY(-1px); }
}
.nav-access svg { width: 13px; height: 13px; }

.lang-switch {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
}
.lang-switch button {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-transform: uppercase;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}
.lang-switch button.is-active {
  background: var(--brand);
  color: var(--color-neutral-0);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }

.nav-toggle { display: none; }

/* 1250 y no 900 como el resto del sitio, A PROPOSITO. Medido el 2026-08-26:
 * la cabecera necesita 1228px de viewport para que quepan, SIN COMPRIMIRSE,
 * logo + 7 enlaces + CTA + Acceso + selector de idioma (1148px de contenido +
 * 80px de padding del .container). Con el breakpoint en 900 quedaba una
 * franja donde .header-actions se salia por la derecha y "Acceso" y el
 * selector ES/CA/EN quedaban CORTADOS, sin scroll para llegar a ellos. No era
 * nuevo: con 6 enlaces ya se salia 33px a 1000px; "Empresa" lo hizo mas
 * visible (124px).
 * MEDIDO EN LOS TRES IDIOMAS, que es donde estuvo la trampa: el CTA se
 * traduce ("Diagnostico gratuito" / "Diagnostic gratuit" / "Free assessment")
 * y el castellano es el PEOR caso. Viewport minimo por idioma:
 *     es 1228  ·  en 1183  ·  ca 1171
 * Medir solo en castellano habria dado 1200 y se quedaba corto por 28px; al
 * reves (medir solo en catalan) habria sido peor todavia. Si se cambia el
 * texto del CTA o de un enlace del menu EN CUALQUIER IDIOMA, volver a medir.
 * Si algun dia se anade un 8o enlace al menu, volver a medir:
 *   document.querySelector('.header-inner').scrollWidth
 * y subir este numero, o el corte vuelve. Los otros @media de 900px del
 * fichero son de rejillas y no tienen nada que ver con este. */
@media (max-width: 1250px) {
  .nav, .lang-switch { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }
  .mobile-nav-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}

/* ============================================
 * Hero
 * ============================================ */

.hero {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--color-neutral-0) 18%, transparent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-neutral-300);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-tightest);
}
.hero-title .accent-line {
  color: var(--accent); /* 2026-10-13: sin texto degradado (ya lo pisaban reglas posteriores) */
}

.hero-sub {
  margin-top: var(--space-6);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--color-neutral-300);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

.hero-microcopy {
  margin-top: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-500);
  font-family: var(--font-mono);
}

/* Terminal mock — right column */
.terminal {
  background: var(--color-neutral-900);
  border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-2xl), var(--shadow-glow-primary);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-300);
}
.terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-6);
}
.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-neutral-700);
}
.terminal-line {
  margin-bottom: var(--space-2);
  display: flex;
  gap: var(--space-3);
  opacity: 0;
  animation: terminalLine 6s ease-in-out infinite;
}
.terminal-line:nth-child(2) { animation-delay: 0s; }
.terminal-line:nth-child(3) { animation-delay: 1s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }
.terminal-line:nth-child(5) { animation-delay: 3s; }
.terminal-line:nth-child(6) { animation-delay: 4s; }
.terminal-line:nth-child(7) { animation-delay: 5s; }
.terminal-line .ok { color: var(--accent); }
.terminal-line .info { color: var(--color-primary-400); }
.terminal-line .muted { color: var(--color-neutral-500); }

@keyframes terminalLine {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(15 42 68 / 0.15) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgb(34 197 94 / 0.08) 0, transparent 40%);
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 50%, black 0, transparent 70%);
}

/* ============================================
 * Stats / Social proof bar
 * ============================================ */

.stats {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, var(--font-size-4xl));
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.stat-label {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================
 * Three pillars block
 * ============================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 1100px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
}

.pillar-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  background: var(--color-primary-50);
  color: var(--brand);
  margin-bottom: var(--space-6);
}
[data-theme="dark"] .pillar-icon {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}
.pillar-sub {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--font-size-base);
  min-height: 3em;
}
.pillar-list {
  list-style: none;
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}
.pillar-list li {
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-base);
  line-height: 1.4;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background: var(--brand);
}
.pillars-footer {
  text-align: center;
  margin-top: var(--space-12);
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
 * Deep section (per pilar)
 * ============================================ */

.deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
@media (max-width: 900px) { .deep { grid-template-columns: 1fr; } }
.deep-reverse .deep-text { order: 2; }
@media (max-width: 900px) { .deep-reverse .deep-text { order: 1; } }

.deep-title { margin-top: var(--space-3); }
.deep-body {
  margin-top: var(--space-6);
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  line-height: 1.6;
}
.deep-body p + p { margin-top: var(--space-4); }
.deep-cta { margin-top: var(--space-8); }

/* ============================================
 * Calculator
 * ============================================ */

.calculator {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.calc-tabs {
  display: flex;
  gap: var(--space-2);
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.calc-tab {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}
.calc-tab.is-active {
  background: var(--brand);
  color: var(--color-neutral-0);
}

.calc-field { margin-bottom: var(--space-6); }
.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.calc-label .value {
  font-family: var(--font-mono);
  color: var(--accent);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
}
.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}

.calc-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.calc-segmented button {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  background: var(--bg);
  color: var(--text);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}
.calc-segmented button.is-active {
  background: var(--accent);
  color: var(--color-neutral-950);
  border-color: var(--accent);
}

.calc-result {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--border);
}
.calc-result-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.calc-result-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--font-size-5xl));
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-top: var(--space-2);
  letter-spacing: var(--tracking-tight);
}
.calc-result-sub {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
 * Chat demo (Agent)
 * ============================================ */

.chat-frame {
  background: var(--color-neutral-900);
  border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  max-height: 70vh;
  box-shadow: var(--shadow-2xl);
}
.chat-head {
  background: #075E54;
  padding: var(--space-4);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: white;
  font-size: var(--font-size-sm);
}
.chat-name { font-weight: 600; }
.chat-status {
  font-size: var(--font-size-xs);
  opacity: 0.85;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  background-color: #0b141a;
  background-image:
    radial-gradient(circle at 25% 25%, rgb(15 42 68 / 0.06) 0, transparent 50%),
    radial-gradient(circle at 75% 75%, rgb(34 197 94 / 0.04) 0, transparent 50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  word-wrap: break-word;
  animation: bubbleIn 0.3s ease-out;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble--user {
  align-self: flex-end;
  background: #005c4b;
  color: white;
  border-bottom-right-radius: 4px;
}
.bubble--bot {
  align-self: flex-start;
  background: #202c33;
  color: var(--color-neutral-100);
  border-bottom-left-radius: 4px;
}
.bubble--bot.typing {
  display: inline-flex;
  gap: 4px;
  padding: var(--space-4);
}
.bubble--bot.typing span {
  width: 6px;
  height: 6px;
  background: var(--color-neutral-400);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}
.bubble--bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble--bot.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-wrap {
  padding: var(--space-3);
  background: #202c33;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.chat-input {
  flex: 1;
  background: #2a3942;
  border: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  color: white;
  outline: none;
  font-size: var(--font-size-sm);
}
.chat-input::placeholder { color: var(--color-neutral-500); }
.chat-send {
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--transition-fast);
}
.chat-send:hover { background: var(--brand-strong); }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.chat-quick button {
  padding: var(--space-2) var(--space-4);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-neutral-100);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
.chat-quick button:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  margin-bottom: var(--space-4);
}
.demo-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: none;
}

/* ============================================
 * Diagnostic CTA block
 * ============================================ */

.diagnostic-cta {
  background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-900) 100%);
  color: white;
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .diagnostic-cta { grid-template-columns: 1fr; } }
.diagnostic-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgb(34 197 94 / 0.15) 0, transparent 60%);
  pointer-events: none;
}
.diagnostic-cta .eyebrow { color: var(--accent); }
.diagnostic-preview {
  background: var(--color-neutral-950);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
}
.diagnostic-progress {
  height: 4px;
  background: var(--color-neutral-800);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  overflow: hidden;
}
.diagnostic-progress span {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--accent);
}
.diagnostic-question {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.diagnostic-options {
  display: grid;
  gap: var(--space-2);
}
.diagnostic-option {
  background: var(--color-neutral-900);
  border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--font-size-sm);
  text-align: left;
  color: var(--color-neutral-300);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}
.diagnostic-option:hover {
  border-color: var(--accent);
  color: white;
}

/* ============================================
 * Cases grid
 * ============================================ */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--color-neutral-900);
  color: var(--color-neutral-50);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}
}
.case-tag {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
  text-transform: uppercase;
}
.case-metric {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-3xl));
  font-weight: 700;
  margin: var(--space-4) 0;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.case-body {
  color: var(--color-neutral-400);
  font-size: var(--font-size-base);
  line-height: 1.5;
  flex-grow: 1;
}
.case-cta {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================
 * Process / How we work
 * ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  position: relative;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding-top: var(--space-4);
}
.process-step-num {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: var(--tracking-wide);
}
.process-step-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: var(--space-3) 0;
}
.process-step-body {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  line-height: 1.5;
}
.process-step-when {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ============================================
 * FAQ accordion
 * ============================================ */

.faq-list {
  max-width: 880px;
  margin: var(--space-12) auto 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, var(--font-size-xl));
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: color var(--transition-base);
}
.faq-q:hover { color: var(--brand); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  color: var(--text-muted);
  font-size: var(--font-size-base);
  line-height: 1.6;
}
.faq-item.is-open .faq-a {
  max-height: 500px;
  padding-bottom: var(--space-6);
}

/* ============================================
 * Footer
 * ============================================ */

.site-footer {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  padding: var(--space-24) 0 var(--space-12);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-neutral-800);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 500px) { .contact-options { grid-template-columns: 1fr; } }
.contact-option {
  background: color-mix(in srgb, var(--color-neutral-0) 4%, transparent);
  border: 1px solid var(--color-neutral-800);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
.contact-option:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
}
.contact-option-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-neutral-400);
  text-transform: uppercase;
}
.contact-option-value {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-top: var(--space-2);
}
.contact-option-sub {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-400);
  margin-top: var(--space-1);
}

.newsletter h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.newsletter p {
  color: var(--color-neutral-400);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  gap: var(--space-2);
}
.newsletter-input {
  flex: 1;
  background: color-mix(in srgb, var(--color-neutral-0) 6%, transparent);
  border: 1px solid var(--color-neutral-800);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--font-size-sm);
}
.newsletter-input::placeholder { color: var(--color-neutral-500); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-neutral-400);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  color: var(--color-neutral-300);
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-neutral-800);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-500);
  font-family: var(--font-mono);
}

/* ============================================
 * Reveal on scroll
 * ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms cubic-bezier(0.23, 1, 0.32, 1), transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
 * Utility
 * ============================================ */

.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.text-center { text-align: center; }
.max-w-content { max-width: 60ch; }
.max-w-narrow { max-width: 720px; margin-inline: auto; }

/* Diagnostic wizard page */
.wizard {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}
.wizard-progress {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-8);
}
.wizard-progress span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width var(--transition-slow);
}
.wizard-step {
  display: none;
}
.wizard-step.is-active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard-count {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}
.wizard-question {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--font-size-4xl));
  font-weight: 700;
  margin-bottom: var(--space-8);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}
.wizard-options {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.wizard-option {
  padding: var(--space-5) var(--space-6);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: left;
  font-size: var(--font-size-lg);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
.wizard-option:hover {
  border-color: var(--brand);
  transform: translateX(4px);
}
}
.wizard-option.is-selected {
  border-color: var(--brand);
  background: var(--color-primary-50);
}
[data-theme="dark"] .wizard-option.is-selected {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-8);
}
.wizard-result {
  text-align: center;
  padding: var(--space-12) 0;
}
.wizard-result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--color-accent-100);
  color: var(--brand);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}

/* Legal page styling */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-16) 0;
}
.legal-page h1 { margin-bottom: var(--space-2); }
.legal-page .last-updated {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-12);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: var(--space-12) 0 var(--space-4);
  letter-spacing: var(--tracking-tight);
}
.legal-page h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
}
.legal-page p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--text);
}
.legal-page ul {
  margin: var(--space-4) 0 var(--space-4) var(--space-6);
  line-height: 1.7;
}
.legal-page ul li { margin-bottom: var(--space-2); }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--font-size-sm);
}
.legal-page th, .legal-page td {
  padding: var(--space-3);
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal-page th {
  background: var(--bg-elevated);
  font-weight: 600;
}

/* Services page */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-32);
}
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; } }
.service-feature-list {
  list-style: none;
  display: grid;
  gap: var(--space-4);
}
.service-feature-list li {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  padding-left: var(--space-12);
}
.service-feature-list li::before {
  content: '';
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--brand);
}
.service-feature-list li strong { display: block; margin-bottom: 4px; }
.service-feature-list li span { color: var(--text-muted); font-size: var(--font-size-sm); }
/* 2026-10-13 · en secciones oscuras (#ai) las tarjetas eran blancas con título blanco: invisible */
.section--inverted .service-feature-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: var(--space-4); }
.contact-form label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-2);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--brand); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ============================================
 * COLOR BOOST · Más impacto visual
 * Añade segundo acento magenta, gradientes vivos,
 * pilares color-coded, glows y animaciones
 * ============================================ */

:root {
  /* Aliases semánticos — no hay magenta ni cyan reales, son el verde y el navy */
  --color-magenta-400: var(--color-accent-300);   /* = verde acento claro */
  --color-magenta-500: var(--color-accent-400);   /* = verde acento (#22C55E) */
  --color-magenta-600: var(--color-accent-500);   /* = verde acento oscuro */
  --color-magenta-700: var(--color-accent-600);   /* = verde acento más oscuro */

  --color-cyan-400: var(--color-primary-400);     /* = navy medio */
  --color-cyan-500: var(--color-primary-500);     /* = navy */
  --color-cyan-600: var(--color-primary-700);     /* = navy oscuro */

  /* Gradientes oficiales (solo Navy + Verde Status) */
  --gradient-brand: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-600) 50%, var(--color-accent-400) 100%);
  --gradient-fire:  linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-accent-400) 100%);
  --gradient-lime:  linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-accent-400) 100%);
  --gradient-magenta-blue: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-primary-600) 100%);

  --secondary: var(--color-accent-500);
  --secondary-strong: var(--color-accent-600);

  /* Glows oficiales — solo navy y verde */
  --shadow-glow-secondary: 0 0 50px -8px rgb(34 197 94 / 0.55);
  --shadow-glow-cyan: 0 0 50px -8px rgb(46 71 99 / 0.55);
  --shadow-glow-brand-mix: 0 8px 40px -8px rgb(15 42 68 / 0.4), 0 8px 40px -8px rgb(34 197 94 / 0.3);
}

/* ============================================
 * BANDA SUPERIOR ANIMADA · Identidad de marca arriba del todo
 * ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  animation: none;
  z-index: 100;
  pointer-events: none;
}
@keyframes brand-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.site-header { top: 3px; }

/* ============================================
 * HERO · Más impacto, título 3-color gradient
 * ============================================ */
.hero-title .accent-line {
  color: var(--accent);
}

/* Hero background con más capas de color */
.hero-bg {
  background-image:
    radial-gradient(circle at 15% 25%, rgb(15 42 68 / 0.25) 0, transparent 35%),
    radial-gradient(circle at 85% 65%, rgb(34 197 94 / 0.12) 0, transparent 35%),
    radial-gradient(circle at 50% 80%, rgb(34 197 94 / 0.10) 0, transparent 35%);
}

/* Hero eyebrow más vivo */
.hero-eyebrow {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* ============================================
 * STATS · Números en verde acento
 * ============================================ */
.stat-num {
  color: var(--accent);
  background: none;
}

/* ============================================
 * PILARES · Cada uno con su color identificador
 * A = azul, B = magenta, C = lima
 * ============================================ */
/* 2026-10-13 · coherencia: los cuatro pilares con el mismo tratamiento.
   Antes cada pilar tenía "su color" (alias magenta/cian que en realidad eran
   verde y navy medio) y el resultado era 2 iconos grises, 1 verde y 1 navy
   medio, viñetas de dos colores y CTAs de dos colores. La diferencia entre
   pilares ya la dan el icono y la letra [A]-[D]. */
.pillar-card .pillar-icon {
  background: color-mix(in srgb, var(--color-primary-600) 8%, transparent);
  color: var(--color-primary-600);
}
[data-theme="dark"] .pillar-card .pillar-icon { color: var(--accent); }
.pillar-card .pillar-list li::before {
  background: var(--accent);
  box-shadow: none;
}
.pillar-card:hover {
  border-color: var(--color-primary-600);
  box-shadow: var(--shadow-lg);
}
/* CTA de los pilares · 2026-10-13: un solo estilo (navy + flecha verde) en los cuatro.
   Antes: navy en A/D y verde en B/C (verde sobre blanco sin contraste AA), y con
   nowrap + max-width:100% el texto largo ("Pedir diagnóstico gratuito") se montaba
   sobre la flecha en tarjetas estrechas. Ahora puede partir línea. */
.pillar-card .btn--ghost {
  color: var(--brand);
  white-space: normal;
  text-align: left;
  padding-inline: 0;
  align-self: flex-start;
}
.pillar-card .btn--ghost .btn-arrow { color: var(--color-accent-500); }
.pillar-card .btn--ghost:hover { color: var(--brand-strong); }
[data-theme="dark"] .pillar-card .btn--ghost { color: var(--color-neutral-0); }

/* Línea de acento superior decorativa en cada card */
.pillar-card {
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-card::before { background: var(--accent); }

/* ============================================
 * SECCIÓN ELEVATED con tinte sutil
 * ============================================ */
.section--elevated {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, color-mix(in srgb, var(--color-primary-600) 5%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 70%),
    var(--bg-elevated);
}

/* ============================================
 * CTA BOTONES · Glow extra (refuerza presencia)
 * Hover envuelto en media query hover (no se dispara en táctil).
 * ============================================ */
.btn--primary { box-shadow: var(--shadow-glow-primary); }
/* .btn--accent: sombra y hover definidos en "SISTEMA DE BOTONES" (final del fichero) */

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    box-shadow: var(--shadow-glow-primary), 0 8px 30px -8px rgb(15 42 68 / 0.5);
  }
}

/* Pulse-glow del CTA hero retirado · competía con imp-cta-pulse (impact.css).
   Nos quedamos con imp-cta-pulse: tiene propósito (radar de "interactuable"),
   delay al cargar, se pausa en hover y usa box-shadow (más barato que blur). */
.hero-ctas .btn--accent { position: relative; }

/* ============================================
 * CASE CARDS · Tag con color
 * ============================================ */
.case-card {
  position: relative;
  background: linear-gradient(160deg, var(--color-neutral-900) 0%, var(--color-neutral-950) 100%);
  overflow: hidden;
}
.case-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary-600) 25%, transparent) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition-slow);
  opacity: 0.6;
}
.case-card:nth-child(2)::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%);
}
.case-card:nth-child(3)::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%);
}
.case-card:hover::after { opacity: 1; }

/* 2026-10-13 · coherencia de marca: sin texto degradado ni magenta/cian.
   Título sólido; el realce va en el span .accent-line (verde) cuando existe. */
.case-metric {
  color: var(--color-neutral-0);
}
.case-metric .accent-line { color: var(--accent); }

/* Linea de contexto bajo la metrica grande */
.case-metric-sub {
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
  color: var(--color-neutral-300);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.35;
}
/* Chip de resultado secundario */
.case-result {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-1) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-full, 999px);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
}
.case-result::before {
  content: '✓';
  font-weight: 700;
}
/* CTA ahora es un enlace real con hover */
.case-cta {
  text-decoration: none;
  transition: gap var(--transition-base), color var(--transition-base);
}
.case-cta:hover { gap: var(--space-3); }
@media (hover: hover) and (pointer: fine) {
.case-cta:hover .btn-arrow { transform: translateX(3px); }
}
/* 2026-10-13 · los tres enlaces "Leer caso completo" en el mismo verde (antes el 3º
   iba en navy medio sobre fondo oscuro y parecía deshabilitado) */
.case-card .case-cta { color: var(--accent); }

/* ============================================
 * PROCESO · Números en verde acento
 * ============================================ */
.process-step-num {
  font-size: var(--font-size-3xl);
  color: var(--accent);
  background: none;
}

/* ============================================
 * DIAGNOSTIC CTA · Más vivo
 * ============================================ */
.diagnostic-cta {
  background: linear-gradient(135deg,
    var(--color-primary-700) 0%,
    var(--color-primary-900) 50%,
    var(--color-magenta-700) 120%);
}
.diagnostic-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgb(46 71 99 / 0.18) 0, transparent 60%);
  pointer-events: none;
}

/* ============================================
 * FAQ · Hover con color de marca
 * ============================================ */
.faq-q:hover {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 4%, transparent), transparent);
  padding-left: var(--space-3);
}
.faq-q { transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base); }

/* ============================================
 * FOOTER · Glow sutil en CTAs
 * ============================================ */
.contact-option {
  position: relative;
  overflow: hidden;
}
.contact-option::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms ease-out;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
.contact-option:hover::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ============================================
 * TERMINAL · Pulso en líneas activas
 * ============================================ */
.terminal {
  box-shadow:
    var(--shadow-2xl),
    var(--shadow-glow-primary),
    0 0 0 1px color-mix(in srgb, var(--color-primary-600) 20%, transparent);
}

/* ============================================
 * CHAT DEMO · Glow alrededor
 * ============================================ */
.chat-frame {
  box-shadow:
    var(--shadow-2xl),
    0 0 60px -16px rgb(34 197 94 / 0.3),
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ============================================
 * CALCULATOR · Resultado más vivo
 * ============================================ */
/* 2026-10-13 · sin texto degradado animado: el resultado es una cifra, sólida en navy */
.calc-result-value {
  color: var(--brand);
}
@keyframes result-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Tab activo con glow */
.calc-tab.is-active {
  box-shadow: 0 0 20px -4px var(--brand);
}

/* ============================================
 * EYEBROW · Color por contexto
 * ============================================ */
.section--inverted .eyebrow { color: var(--accent); }

/* ============================================
 * REVEAL CON SPRING
 * ============================================ */
.reveal {
  transition: opacity 700ms cubic-bezier(0.34, 1.4, 0.64, 1),
              transform 700ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ============================================
 * MICRO-INTERACCIONES · Iconos pilares con pulse al hover
 * ============================================ */
@media (hover: hover) and (pointer: fine) {
.pillar-card:hover .pillar-icon {
  transform: scale(1.08) rotate(-3deg);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
}
.pillar-icon { transition: transform 250ms ease; }

/* ============================================
 * MOBILE · Mejoras específicas para pantallas pequeñas
 * Audit completo, no rompe el desktop
 * ============================================ */

/* iOS: prevenir zoom automático en focus de inputs */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* === HEADER · más compacto en móvil === */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .logo-text {
    font-size: 0.95rem;
    line-height: 1.05;
  }
  .logo-text small {
    font-size: 0.55rem;
  }
  .lang-switch {
    display: none; /* el switch idioma ocupa mucho, queda en menú móvil */
  }
  .header-actions {
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .logo-text small {
    display: none;
  }
}

/* === HERO · terminal oculto y título ajustado === */
@media (max-width: 900px) {
  .hero {
    padding: var(--space-12) 0 var(--space-12);
  }
  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3.5rem) !important;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-8);
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .terminal {
    margin-top: var(--space-8);
    padding: var(--space-5);
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .terminal {
    display: none; /* en móvil pequeño, terminal estorba; el hero ya es suficiente */
  }
  .hero-eyebrow {
    font-size: 0.65rem;
    padding: 6px 12px;
  }
}

/* === STATS · más respiración === */
@media (max-width: 800px) {
  .stats {
    padding: var(--space-8) 0;
  }
  .stats-grid {
    gap: var(--space-6);
  }
  .stat-label {
    font-size: 0.78rem;
  }
}

/* === PILARES · cards full-width con buen padding === */
@media (max-width: 900px) {
  .pillar-card {
    padding: var(--space-8);
  }
  .pillar-title {
    font-size: 1.35rem;
  }
  .pillar-sub {
    min-height: 0; /* en desktop tienen min-height fija; en móvil no */
  }
  .pillars-footer {
    font-size: 1rem;
    padding: 0 var(--space-4);
  }
}

/* === DEEP SECTIONS · padding lateral === */
@media (max-width: 900px) {
  .deep {
    gap: var(--space-10);
  }
  .deep-title {
    font-size: clamp(1.6rem, 5vw, 2.25rem);
  }
  .deep-body {
    font-size: 1rem;
  }
}

/* === CALCULADORA · más touch-friendly === */
@media (max-width: 900px) {
  .calculator {
    padding: var(--space-6);
  }
  .calc-tabs {
    gap: 4px;
  }
  .calc-tab {
    padding: var(--space-3) var(--space-2);
    font-size: 0.7rem;
  }
  .calc-segmented button {
    padding: var(--space-3) var(--space-4);
    font-size: 0.9rem;
  }
  .calc-result-value {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
  }
}

/* Slider thumb más grande para touch */
@media (pointer: coarse) {
  .calc-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
  .calc-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
  .calc-slider {
    height: 10px;
  }
}

/* === CHAT DEMO · altura razonable en móvil === */
@media (max-width: 900px) {
  .chat-frame {
    height: 480px;
    max-height: 65vh;
  }
}
@media (max-width: 480px) {
  .chat-frame {
    height: 420px;
  }
  .chat-head {
    padding: var(--space-3);
  }
  .chat-name {
    font-size: 0.95rem;
  }
  .chat-status {
    font-size: 0.7rem;
  }
  .bubble {
    max-width: 88%;
    font-size: 0.85rem;
  }
  .chat-quick button {
    font-size: 0.78rem;
    padding: var(--space-2) var(--space-3);
  }
}

/* === DIAGNOSTIC CTA · simplificar en móvil === */
@media (max-width: 800px) {
  .diagnostic-cta {
    padding: var(--space-8);
  }
  .diagnostic-preview {
    padding: var(--space-4);
  }
  .diagnostic-question {
    font-size: 1.05rem;
  }
  .diagnostic-option {
    font-size: 0.85rem;
    padding: var(--space-3);
  }
}

@media (max-width: 480px) {
  .diagnostic-preview {
    display: none; /* en móvil pequeño, el preview ocupa demasiado */
  }
}

/* === CASES · padding y métricas adaptadas === */
@media (max-width: 900px) {
  .case-card {
    padding: var(--space-6);
  }
  .case-metric {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

/* === PROCESS · línea conectora oculta en móvil porque se rompe === */
@media (max-width: 900px) {
  .process-step-title {
    font-size: 1.15rem;
  }
}

/* === FAQ · más legible en móvil === */
@media (max-width: 900px) {
  .faq-q {
    font-size: 1.05rem;
    padding: var(--space-5) 0;
    gap: var(--space-3);
  }
  .faq-icon {
    width: 20px;
    height: 20px;
  }
  .faq-a {
    font-size: 0.95rem;
  }
  .faq-item.is-open .faq-a {
    padding-bottom: var(--space-5);
  }
}

/* ============================================
 * Featured demo (dental clinic AI agent)
 * ============================================ */

.featured-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-16);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  background: linear-gradient(135deg, rgb(17 27 51 / 0.9) 0%, rgb(11 18 35 / 0.9) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}
.featured-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 80% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
.featured-demo:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.4);
}
}
.featured-demo-info {
  position: relative;
  z-index: 2;
}
.featured-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--color-neutral-950);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  transition: gap var(--transition-base);
}
.featured-demo:hover .featured-demo-cta { gap: var(--space-3); }

.integrations {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, white 8%, transparent);
}
.integrations-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-neutral-400);
  margin-bottom: var(--space-3);
}
.integration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.integration-chips span {
  padding: var(--space-2) var(--space-3);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-300);
  font-family: var(--font-mono);
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}
.featured-demo:hover .integration-chips span {
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  color: white;
}

.featured-demo-preview {
  position: relative;
  z-index: 2;
}
.preview-window {
  background: #0b141a;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.08);
  position: relative;
}
.preview-dots {
  background: #202c33;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-dots > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5563;
}
.preview-dots > span:nth-child(1) { background: #ff5f57; }
.preview-dots > span:nth-child(2) { background: #febc2e; }
.preview-dots > span:nth-child(3) { background: #28c840; }
.preview-dots .preview-title {
  width: auto;
  height: auto;
  background: transparent;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
  border-radius: 0;
}
.preview-content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 240px;
  background-image:
    linear-gradient(rgba(11,20,26,.96), rgba(11,20,26,.96)),
    radial-gradient(circle at 20% 30%, rgba(34,197,94,.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34,197,94,.08), transparent 40%);
}
.preview-msg {
  max-width: 80%;
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: #e6edf7;
}
.preview-msg.in {
  background: #202c33;
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.preview-msg.out {
  background: #005c4b;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.featured-demo:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-neutral-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 60%, transparent);
}
.play-text {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: white;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .featured-demo {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .featured-demo-preview { order: -1; }
}

/* ============================================
 * Embedded dental clinic agent demo
 * (scoped under .demo-stage to avoid collisions)
 * ============================================ */

.demo-stage {
  --d-bg: #0b1220;
  --d-ink: #e6edf7;
  --d-mute: #8aa0bf;
  --d-brand: #22C55E;   /* 2026-10-13: cian → verde de marca */
  --d-brand2: #2E4763;  /* 2026-10-13: violeta → navy medio */
  --d-accent: #10b981;
  --d-whats: #0b141a;
  --d-whats-in: #202c33;
  --d-whats-out: #005c4b;
  --d-card: #111c33;
  --d-border: rgba(255,255,255,.08);

  position: relative;
  background: radial-gradient(900px 500px at 20% 10%, #142042 0%, var(--d-bg) 60%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  color: var(--d-ink);
  font-family: var(--font-body);
  min-height: 520px;
  border: 1px solid var(--d-border);
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.4);
}
.demo-stage.is-playing { min-height: 720px; }
.demo-stage:not(.is-playing) .stage-grid { display: none; }
.demo-stage .stage-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: 660px;
}
@media (max-width: 880px) {
  .demo-stage { min-height: 440px; padding: clamp(20px, 5vw, 32px); }
  .demo-stage.is-playing { min-height: auto; }
  .demo-stage .stage-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .demo-stage .phone { height: 540px; width: 300px; }
  .demo-stage .wa-header { padding: 36px 12px 10px; }
  .demo-stage .stats { grid-template-columns: repeat(2, 1fr); }
  .demo-stage .toast { top: 12px; right: 12px; font-size: 11px; padding: 8px 14px; }
  .demo-stage .scene-label { bottom: 12px; font-size: 10px; padding: 6px 14px; max-width: 90%; text-align: center; line-height: 1.3; }
  .demo-stage .demo-controls { top: 12px; left: 12px; }
  .demo-stage .demo-controls button { font-size: 10px; padding: 4px 10px; }
}

.demo-stage .intro {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: radial-gradient(800px 500px at 50% 50%, #1a2747 0%, #070b16 70%);
  z-index: 10; opacity: 1; transition: opacity 1s ease;
  border-radius: inherit;
}
.demo-stage .intro.gone { opacity: 0; pointer-events: none; }
.demo-stage .logo-mark {
  width: 78px; height: 78px; border-radius: 20px;
  background: linear-gradient(135deg, var(--d-brand), var(--d-brand2));
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  box-shadow: 0 30px 80px rgba(34,197,94,.4);
  margin-bottom: 18px;
  animation: dPulse 2.4s infinite;
}
@keyframes dPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.demo-stage .intro h1, .demo-stage .intro .intro-title {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
  color: var(--color-neutral-0); /* 2026-10-13: sin texto degradado blanco→cian */
  font-weight: 800; letter-spacing: -.02em;
  text-align: center; padding: 0 16px;
}
.demo-stage .intro p { color: var(--d-mute); font-size: clamp(15px, 1.6vw, 18px); margin-top: 10px; text-align: center; padding: 0 16px; }
.demo-stage .intro .badge { margin-top: 28px; padding: 8px 18px; border: 1px solid var(--d-border); border-radius: 999px; color: var(--d-brand); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

.demo-stage .demo-play-btn {
  margin-top: 32px;
  background: var(--d-brand);
  color: #04221a;
  border: 0;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 12px 40px rgba(34,197,94,.4);
}
@media (hover: hover) and (pointer: fine) {
.demo-stage .demo-play-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 60px rgba(34,197,94,.55); }
}
.demo-stage .demo-play-btn::before { content: "▶"; font-size: 16px; padding-left: 2px; }

.demo-stage .phone {
  width: 340px; max-width: 100%;
  height: 660px;
  background: #000; border-radius: 42px; padding: 12px;
  box-shadow: 0 50px 120px rgb(0 0 0 / 0.6), inset 0 0 0 2px #1a1a1a;
  position: relative; justify-self: center;
  transform: translateY(40px) scale(.96); opacity: 0;
  animation: dRise 1s .5s forwards;
}
@keyframes dRise { to { transform: translateY(0) scale(1); opacity: 1; } }
.demo-stage .phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #000; border-radius: 0 0 16px 16px; z-index: 5; }
.demo-stage .screen { width: 100%; height: 100%; background: var(--d-whats); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.demo-stage .wa-header { background: #202c33; padding: 42px 14px 12px; display: flex; align-items: center; gap: 10px; }
.demo-stage .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--d-brand), var(--d-brand2)); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.demo-stage .wa-name { font-weight: 600; font-size: 14px; }
.demo-stage .wa-status { font-size: 10px; color: var(--d-mute); }
.demo-stage .chat { flex: 1; padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: var(--d-whats); }
.demo-stage .msg { max-width: 80%; padding: 7px 10px; border-radius: 8px; font-size: 13px; line-height: 1.35; position: relative; animation: dPop .35s ease both; }
.demo-stage .msg.in { background: var(--d-whats-in); align-self: flex-start; border-top-left-radius: 2px; }
.demo-stage .msg.out { background: var(--d-whats-out); align-self: flex-end; border-top-right-radius: 2px; }
.demo-stage .msg .time { font-size: 10px; color: var(--d-mute); float: right; margin: 3px 0 -4px 10px; }
.demo-stage .msg .check { color: #53bdeb; font-size: 11px; margin-left: 3px; }
.demo-stage .msg.opts { padding: 4px; background: transparent; }
.demo-stage .opt { display: block; background: var(--d-whats-in); border-radius: 8px; padding: 8px 11px; margin: 3px 0; border: 1px solid transparent; transition: .25s; font-size: 12.5px; }
.demo-stage .opt.sel { border-color: var(--d-brand); background: #2a3942; }
@keyframes dPop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.demo-stage .typing { display: inline-flex; gap: 4px; padding: 9px 12px; }
.demo-stage .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--d-mute); animation: dBlink 1.2s infinite; }
.demo-stage .typing span:nth-child(2) { animation-delay: .2s; }
.demo-stage .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dBlink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.demo-stage .wa-input { background: #202c33; padding: 9px 12px; display: flex; gap: 8px; align-items: center; }
.demo-stage .wa-input .box { flex: 1; background: #2a3942; border-radius: 18px; padding: 7px 12px; color: var(--d-mute); font-size: 12px; }

.demo-stage .panel-title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--d-brand); margin: 0; }
.demo-stage .panel-title b { color: #fff; display: block; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; margin-top: 4px; text-transform: none; font-weight: 700; }
.demo-stage .panel-stack { display: flex; flex-direction: column; gap: 12px; }
.demo-stage .demo-card { background: linear-gradient(180deg, var(--d-card), #0d162a); border: 1px solid var(--d-border); border-radius: 14px; padding: 14px 16px; transform: translateY(20px); opacity: 0; transition: .7s cubic-bezier(.2,.7,.2,1); }
.demo-stage .demo-card.show { transform: translateY(0); opacity: 1; }
.demo-stage .demo-card h3 { margin: 0 0 10px; font-size: 11px; color: var(--d-mute); text-transform: uppercase; letter-spacing: .15em; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.demo-stage .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-accent); box-shadow: 0 0 10px var(--d-accent); animation: dPulse 1.6s infinite; }
.demo-stage .row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.demo-stage .row:last-child { border: 0; }
.demo-stage .row .meta { color: var(--d-mute); font-size: 11px; }
.demo-stage .pill { padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.demo-stage .pill.ok { background: rgba(16,185,129,.15); color: #34d399; }
.demo-stage .pill.new { background: rgba(34,197,94,.18); color: #86EFAC; animation: dPulse 1.6s infinite; }
.demo-stage .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-stage .stat { background: rgba(255,255,255,.03); border: 1px solid var(--d-border); border-radius: 12px; padding: 10px; }
.demo-stage .stat .n { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.demo-stage .stat .l { font-size: 10px; color: var(--d-mute); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.demo-stage .stat .n .up { color: #34d399; font-size: 12px; margin-left: 5px; }
.demo-stage .calendar { display: grid; grid-template-columns: 50px repeat(5, 1fr); gap: 3px; font-size: 10px; }
.demo-stage .calendar .h { color: var(--d-mute); text-align: center; padding: 5px 0; font-weight: 600; }
.demo-stage .slot { background: rgba(255,255,255,.04); border-radius: 5px; padding: 6px 3px; text-align: center; font-size: 10px; min-height: 28px; }
.demo-stage .slot.busy { background: rgba(113,135,160,.22); color: #C8D0DC; } /* 2026-10-13: violeta ? navy */
.demo-stage .slot.new { background: rgba(34,197,94,.3); color: #BBF7D0; outline: 1.5px solid var(--d-brand); animation: dFlash 1.2s 2; }
@keyframes dFlash { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.3); } }

.demo-stage .toast { position: absolute; top: 22px; right: 22px; background: rgba(16,185,129,.95); color: #04221a; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 20px 60px rgba(16,185,129,.4); transform: translateX(140%); transition: .5s cubic-bezier(.2,.7,.2,1); z-index: 20; display: flex; align-items: center; gap: 8px; }
.demo-stage .toast.show { transform: none; }
.demo-stage .toast .ico { width: 22px; height: 22px; border-radius: 50%; background: #04221a; color: #34d399; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.demo-stage .scene-label { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); border: 1px solid var(--d-border); padding: 8px 18px; border-radius: 99px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--d-mute); backdrop-filter: blur(10px); z-index: 5; }

.demo-stage .outro { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(800px 500px at 50% 50%, #1a2747 0%, #070b16 70%); z-index: 9; opacity: 0; pointer-events: none; transition: opacity 1s ease; padding: 20px; border-radius: inherit; }
.demo-stage .outro.show { opacity: 1; pointer-events: auto; }
.demo-stage .outro h2 { font-size: clamp(26px, 3.4vw, 42px); margin: 0; color: var(--color-neutral-0); font-weight: 800; letter-spacing: -.02em; text-align: center; max-width: 720px; }
.demo-stage .outro p { color: var(--d-mute); font-size: clamp(14px, 1.5vw, 17px); margin-top: 14px; text-align: center; max-width: 560px; }
.demo-stage .outro .features { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 24px; color: var(--d-mute); font-size: 13px; }
.demo-stage .outro .features span { display: flex; align-items: center; gap: 6px; }
.demo-stage .outro .features span::before { content: "✓"; color: var(--d-accent); font-weight: 700; }
.demo-stage .replay-btn { margin-top: 28px; background: var(--d-brand); color: #04221a; border: 0; padding: 11px 22px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; }
.demo-stage .demo-controls { position: absolute; top: 18px; left: 22px; display: flex; gap: 8px; z-index: 6; }
.demo-stage .demo-controls button { background: rgba(255,255,255,.08); border: 1px solid var(--d-border); color: var(--d-ink); padding: 6px 14px; border-radius: 99px; font-size: 11px; cursor: pointer; letter-spacing: .1em; text-transform: uppercase; }
.demo-stage .demo-controls button:hover { background: rgba(255,255,255,.14); }

/* Integration grid (used on dedicated page) */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}
@media (max-width: 900px) { .integration-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .integration-grid { grid-template-columns: 1fr; } }
.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
.integration-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
}
.integration-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--text);
}
.integration-tag {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* === FOOTER · más respiración + CTA destacados === */
@media (max-width: 900px) {
  .site-footer {
    padding: var(--space-16) 0 var(--space-8);
  }
  .contact-option {
    padding: var(--space-5);
  }
  .contact-option-value {
    font-size: 1rem;
  }
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-cols {
    gap: var(--space-6);
  }
  .footer-col h4 {
    font-size: 0.7rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* === SECCIONES GENERALES · padding lateral en mobile === */
@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
  .display-md {
    font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  }
  .display-sm {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  }
  .eyebrow {
    font-size: 0.7rem;
  }
  .lead {
    font-size: 1rem;
  }
}

/* === CTAS · más touch-friendly === */
@media (max-width: 768px) {
  .btn {
    padding: var(--space-3) var(--space-5);
    min-height: 44px; /* Apple HIG mínimo táctil */
  }
  .btn--lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
  }
  .btn--ghost {
    padding: var(--space-3) var(--space-2);
  }
}

/* === FORMULARIOS · más cómodos === */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: var(--space-4);
    min-height: 48px;
  }
  .contact-form textarea {
    min-height: 120px;
  }
  .newsletter-input {
    padding: var(--space-4);
    min-height: 48px;
  }
}

/* === SERVICIOS · ajustes específicos === */
@media (max-width: 900px) {
  .service-block {
    gap: var(--space-8);
    margin-bottom: var(--space-20);
  }
  .service-feature-list li {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
  }
  .service-feature-list li::before {
    left: var(--space-4);
  }
}

/* === WIZARD diagnóstico · más cómodo === */
@media (max-width: 768px) {
  .wizard {
    padding: var(--space-8) 0;
  }
  .wizard-question {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: var(--space-6);
  }
  .wizard-option {
    padding: var(--space-4);
    font-size: 1rem;
    min-height: 56px;
  }
  .wizard-nav {
    flex-direction: column-reverse;
    gap: var(--space-3);
  }
  .wizard-nav .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === MENSAJES DE FEEDBACK DEL FORM === */
[data-form-message] {
  word-wrap: break-word;
}

/* === LANDSCAPE móvil · ajustar altura hero === */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: var(--space-8) 0;
  }
  .hero-title {
    font-size: 2rem !important;
  }
  .terminal {
    display: none;
  }
}

/* === MENÚ MOVIL · cuando se abre === */
.mobile-nav-open .nav .lang-switch-mobile {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
}

/* === SCROLL HORIZONTAL prevención ===
   clip (no hidden): hidden convierte html/body en contenedor de scroll y anula
   position:sticky (el header no se quedaba fijo). hidden queda de respaldo para
   navegadores sin soporte de clip. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
}
/* Con el header ya fijo, los saltos a #ancla no deben quedar tapados por él. */
html { scroll-padding-top: 88px; }
* {
  max-width: 100%;
}

/* Excepciones para elementos que necesitan poder desbordarse */
.terminal, .chat-frame, table, pre, code {
  max-width: none;
}

/* === FONT SMOOTHING en pantallas Retina === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ── Testimonials ─────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 720px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}
.testimonial-stars { color: var(--color-accent-500); font-size: var(--font-size-sm); letter-spacing: 2px; } /* 2026-10-13: ámbar → verde de marca */
.testimonial-quote {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: var(--font-size-sm); color: var(--text); }
.testimonial-role { font-size: var(--font-size-xs); color: var(--text-muted); margin-top: 2px; }


/* ── Footer social links ──────────────────────── */
.footer-social { display: flex; align-items: center; gap: var(--space-4); }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-social-link:hover { color: var(--color-neutral-0); }

/* ============================================================
 * HERO v2 · taste-skill + brand voice IG Tech
 * Sustituye el terminal por una card editorial con cifra real.
 * Eyebrow más limpia. Microcopy migrada a .trustbar (sección aparte).
 * ============================================================ */

/* Eyebrow limpia · sin pill, con icono · gana a las variantes previas */
.hero .hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 32px;
}
.hero .hero-eyebrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hero .hero-eyebrow::before { content: none !important; }

/* Terminal oculto en producción · queda CSS huérfano sin consecuencia */
.hero .terminal { display: none !important; }

/* ──────────────────────────────────────────
 * Case card en el hero (lado derecho)
 * Composición editorial: tag · cifra · datos · atribución · link
 * ────────────────────────────────────────── */
.case-card-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 38px 36px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -16px rgba(10, 26, 45, 0.48);
}

.case-card-hero .case-tag {
  position: absolute;
  top: -1px;
  left: 28px;
  background: var(--brand);
  padding: 0 12px;
  transform: translateY(-50%);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.case-card-hero .case-metric {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--color-neutral-0);
  margin-bottom: 22px;
  text-wrap: balance;
}
.case-card-hero .case-metric .accent-line {
  color: var(--accent);
  display: inline;
}

.case-card-hero .case-detail {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.case-card-hero .case-detail-block { display: flex; flex-direction: column; gap: 4px; }
.case-card-hero .case-detail-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.case-card-hero .case-detail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral-0);
}

.case-card-hero .case-attribution {
  display: flex;
  align-items: center;
  gap: 14px;
}
.case-card-hero .case-attribution-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-image: url('https://picsum.photos/seed/igtech-clinica-sant-cugat/88/88');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.14);
}
.case-card-hero .case-attribution-text { min-width: 0; flex: 1; }
.case-card-hero .case-attribution-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-neutral-0);
  margin-bottom: 2px;
}
.case-card-hero .case-attribution-role {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}

.case-card-hero .case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.10);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  width: 100%;
  text-decoration: none;
}
.case-card-hero .case-link--alt {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 0;
  color: rgba(255,255,255,0.62);
}
@media (hover: hover) and (pointer: fine) {
  .case-card-hero .case-link--alt:hover { color: var(--color-neutral-0); }
}
.case-card-hero .case-link .btn-arrow {
  margin-left: auto;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .case-card-hero .case-link:hover .btn-arrow { transform: translateX(3px); }
}

/* ──────────────────────────────────────────
 * Trustbar · sección que reemplaza la microcopy bajo CTAs
 * "Operativa" con stats reales + promesa con consecuencia.
 * ────────────────────────────────────────── */
.trustbar {
  background: #0A1A2D;
  color: rgba(255,255,255,0.68);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trustbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.trustbar-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.trustbar-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.tb-stat { display: flex; flex-direction: column; gap: 2px; }
.tb-stat-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-neutral-0);
  letter-spacing: -0.01em;
}
.tb-stat-val .unit {
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  font-size: 14px;
}
.tb-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.trustbar-promise {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  max-width: 32ch;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .trustbar-inner { grid-template-columns: 1fr; gap: 16px; }
  .trustbar-promise { text-align: left; max-width: none; }
  .trustbar-stats { gap: 24px; }
}

@media (max-width: 900px) {
  .case-card-hero { padding: 32px 26px 24px; }
  .case-card-hero .case-detail { gap: 18px; }
}

/* ============================================================
 * Accesibilidad · skip link, focus, touch targets
 * ============================================================ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--brand);
  color: var(--color-neutral-0);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: none; /* accion de teclado: instantanea */
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Focus visible coherente en todo el sitio · sin ser invasivo */
:focus-visible {
  outline: 2px solid var(--accent, var(--brand));
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline-offset: 3px;
}

/* Touch targets mínimos 44x44 en táctil · WCAG AAA */
@media (pointer: coarse) {
  .nav-link,
  .btn,
  .footer-link,
  .footer-social-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Reduced motion · respeta preferencia del usuario */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
 * AURORA UPGRADE · 2026-06-18
 * Moderniza CTA + titular hero + fondo aurora.
 * Bloque aditivo: gana por cascada, 100% reversible (borrar bloque).
 * ============================================================ */

/* 1 · CTA primario: feel "C · Oscuro invertido" · navy + flecha verde.
   Base navy-600 (#0F2A44) para contrastar en hero oscuro Y en precios claro. */
/* (05-nov-2026) estilo navy + texto verde retirado: ver "SISTEMA DE BOTONES" al final. */

/* 2 · Titular hero: verde de marca, SIN glow (revertido a petición) */
.hero-title .accent-line {
  color: var(--accent);
  text-shadow: none;
}

/* 3 · Fondo aurora: glows más amplios, con teal y violeta sutiles */
.hero-bg {
  background-image:
    radial-gradient(46% 42% at 14% 12%, rgb(34 197 94 / 0.20) 0, transparent 70%),
    radial-gradient(42% 40% at 88% 4%, rgb(15 42 68 / 0.30) 0, transparent 70%),
    radial-gradient(58% 52% at 72% 64%, rgb(34 197 94 / 0.08) 0, transparent 72%),
    radial-gradient(40% 38% at 30% 88%, rgb(34 197 94 / 0.10) 0, transparent 70%);
  filter: saturate(1.08);
}

/* ============================================================
 * HERO SLIDER · 2026-06-18 · rota la tarjeta derecha del hero
 * Crossfade con grid-stack (sin animar layout). Reversible.
 * ============================================================ */
.hero-slider { position: relative; }
.hero-slides { display: grid; }
.hero-slides .hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1),
              transform .6s cubic-bezier(.2,.8,.2,1),
              visibility 0s linear .6s;
  pointer-events: none;
}
.hero-slides .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s cubic-bezier(.2,.8,.2,1),
              transform .6s cubic-bezier(.2,.8,.2,1),
              visibility 0s;
  pointer-events: auto;
}
.case-card-hero .case-body-hero {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.hs-dots { display: flex; gap: 8px; }
.hs-dot {
  width: 8px; height: 8px;
  padding: 0; border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.hs-dot:hover { background: rgba(255,255,255,0.45); }
.hs-dot.is-active { background: var(--accent); transform: scale(1.3); }
.hs-arrow {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--color-neutral-0);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
@media (hover: hover) and (pointer: fine) {
.hs-arrow:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-slide { transition: opacity .2s linear; transform: none; }
  .hs-dot, .hs-arrow { transition: none; }
}

/* ============================================================
 * HEADER CTA · "Diagnóstico gratuito" en el menú · 2026-06-19
 * Clon EXACTO de .nav-access (Acceso) pero texto + flecha en verde.
 * !important para ganar a los estilos inline del sweep y a .btn--accent.
 * ============================================================ */
.header-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  padding: 8px 18px !important;
  background: var(--brand) !important;
  color: var(--color-accent-300) !important;
  font-size: var(--font-size-sm) !important;
  font-weight: 600 !important;
  border: 0 !important;
  border-radius: var(--radius-full) !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  filter: none !important;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
.header-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px) !important;
  background: var(--brand) !important;
  color: var(--color-accent-300) !important;
}
}
.header-cta .btn-arrow { color: var(--color-accent-300) !important; margin-left: 2px; }
@media (max-width: 1024px) {
  /* En móvil prioriza el CTA: el acceso queda como icono */
  .header-actions .nav-access span:not(.btn-arrow),
  .header-actions .nav-access[data-i18n] { font-size: 0; }
}
@media (max-width: 480px) {
  /* El CTA de texto completo ("Diagnóstico gratuito") no tiene versión icono
     (a diferencia de .nav-access, tratado arriba) y con flex-wrap:nowrap en
     .header-actions empujaba el .nav-toggle fuera del viewport en pantallas
     ~344-360px e inferiores, dejando el botón de menú inalcanzable/intocable.
     Es redundante — el mismo CTA está en el hero (justo debajo) y en el
     footer — así que se oculta aquí. Debe ir DESPUÉS de la declaración base
     de .header-cta (arriba en este fichero): con !important en ambos lados,
     gana el que aparece último en el CSS, no la especificidad del media query. */
  .header-cta {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   Firma de marca del hero · remate del eslogan "Cada paso, dentro de One"
   Vive bajo los CTAs de la portada. Texto plano (data-i18n usa
   textContent), el acento lo pone el ::before, que sobrevive al cambio
   de idioma.
   ══════════════════════════════════════════════════════════════ */
.hero-firma {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 52ch;
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--color-neutral-400);
}
.hero-firma::before {
  content: '';
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-5px);
}
@media (max-width: 640px) {
  .hero-firma { gap: var(--space-2); }
  .hero-firma::before { width: 16px; }
}

/* Pilar D · IG One: mismo tratamiento que A-C (ver "coherencia: los cuatro pilares", 2026-10-13) */

/* ============================================
 * Móvil · home más corta y dianas táctiles (07-oct)
 * La home medía ~21.500 px en 375 px: los 4 pilares y las 4 tarjetas de
 * precios repetían la misma lista. En móvil los pilares quedan como
 * resumen (título + frase + CTA) y las tarjetas de precio enseñan 4 puntos.
 * ============================================ */
@media (max-width: 700px) {
  .pillar-card .pillar-list { display: none; }
  .pillar-card { padding: var(--space-5); }
  .pillar-card .pillar-sub { margin-bottom: var(--space-4); }
  .pricing-card { padding: 24px !important; }
  .pricing-card > ul li:nth-child(n+5) { display: none; }
  .pricing-card > ul { margin-bottom: 20px !important; }

  .nav-access { min-height: 44px; display: inline-flex; align-items: center; }
  .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .case-link, .case-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .hs-arrow { width: 44px; height: 44px; }
  .hs-dot { position: relative; }
  .hs-dot::after { content: ''; position: absolute; inset: -18px -7px; }
  .footer-col a { display: inline-block; padding: 11px 0; }
  .footer-col ul { gap: 0; }
}

/* Móvil · las 4 tarjetas de precio pasan a carrusel horizontal (de ~2.700 px a ~700 px) */
@media (max-width: 700px) {
  .pricing-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    margin-inline: calc(var(--space-4, 16px) * -1) !important;
    padding: 4px var(--space-4, 16px) 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid > .pricing-card { flex: 0 0 84%; scroll-snap-align: center; }
  .pricing-grid > .pricing-card:first-child { scroll-snap-align: start; }
}

/* ============================================================
 * Fuentes alojadas en local (Inter, Inter Tight, JetBrains Mono)
 * Sustituyen a Google Fonts: el navegador ya no contacta con
 * los servidores de Google. Fuentes variables (OFL 1.1),
 * subsets latin + latin-ext. Licencias en /assets/fonts/LICENCIAS.txt.
 * Copia gemela en /assets/fonts/fonts.css (tienda, 500.html, mantenimiento).
 * ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
 * Selector de idioma dentro del menu movil/tablet (script.js lo crea clonando
 * [data-lang-switch] y lo anade al final de .nav). Reutiliza .lang-switch-mobile,
 * que ya existia sin HTML. Visible SOLO con el menu abierto y por debajo de 1250px
 * (mismo corte que .nav-toggle); en escritorio queda oculto aunque body conserve
 * .mobile-nav-open tras redimensionar. Botones >=44px y 16px (iOS no hace zoom).
 * ============================================ */
.nav .lang-switch-mobile { display: none; }
@media (max-width: 1250px) {
  .mobile-nav-open .nav {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-open .nav .lang-switch-mobile {
    display: flex;
    flex: 0 0 auto;
    gap: var(--space-2);
    justify-content: stretch;
    padding: var(--space-4) 0 var(--space-2);
    background: none;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    margin-top: var(--space-2);
  }
  .mobile-nav-open .nav .lang-switch-mobile button {
    flex: 1 1 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--space-3);
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    cursor: pointer;
  }
  .mobile-nav-open .nav .lang-switch-mobile button.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--color-neutral-0);
  }
}
@media (min-width: 1251px) {
  .nav .lang-switch-mobile,
  .mobile-nav-open .nav .lang-switch-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch-mobile button { transition: none; }
}

/* ============================================
 * Selector de idioma en la CABECERA, junto al boton del menu (movil/tablet)
 * script.js construye <div class="lang-menu" data-lang-menu>: un boton con el idioma
 * ACTUAL (ES/CA/EN) y un desplegable (role=menu) anclado a la derecha con las 3 opciones
 * (clon de [data-lang-switch]). Sustituye a la fila de idioma que BA metia dentro de .nav:
 * las reglas .lang-switch-mobile de arriba quedan inertes (ya ningun elemento las usa).
 * Oculto por defecto y en escritorio (>=1251px, ahi solo el .lang-switch de siempre);
 * visible SOLO por debajo de 1250px (mismo corte que .nav-toggle), con el menu cerrado o abierto.
 * Medido: a 360px no caben 3 segmentos de 44x44 (hueco libre 127px, harian falta 140), por eso desplegable.
 * Zonas tactiles >=44px: boton 44px (<=700px) o 36px + ::before de 44px (>=701px, como .nav-toggle);
 * opciones 44px a 16px de fuente. Esc / clic fuera / elegir cierran (script.js).
 * ============================================ */
.lang-menu { display: none; }
@media (max-width: 1250px) {
  .lang-menu { display: block; position: relative; flex: 0 0 auto; }
  .lang-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
  }
  .lang-menu-btn::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition-fast);
  }
  .lang-menu.is-open .lang-menu-btn::after { transform: translateY(1px) rotate(-135deg); }
  .lang-menu-btn:focus-visible,
  .lang-menu-list button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .lang-menu-list {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 184px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: lang-menu-in 0.12s ease-out;
  }
  .lang-menu-list[hidden] { display: none; }
  .lang-menu-list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--text);
    background: none;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
  }
  .lang-menu-list button::after {
    content: attr(data-name);
    font-family: inherit;
    font-weight: 400;
    text-transform: none;
    opacity: 0.75;
  }
  .lang-menu-list button.is-active {
    background: var(--brand);
    color: var(--color-neutral-0);
  }
  .lang-menu-list button.is-active::after { opacity: 0.9; }
  .lang-menu-list button.is-active::before { content: '\2713'; margin-right: -4px; }
}
@media (max-width: 1250px) and (hover: hover) {
  .lang-menu-list button:not(.is-active):hover { background: var(--bg-elevated); }
}
@media (min-width: 701px) and (max-width: 1250px) {
  .lang-menu-list { top: calc(100% + 18px); }
  .lang-menu-btn { min-height: 36px; font-size: 13px; padding: 0 9px; }
  .lang-menu-btn::before { content: ''; position: absolute; inset: -4px; }
}
@media (min-width: 1251px) {
  .lang-menu { display: none !important; }
}
@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-menu-list { animation: none; }
  .lang-menu-btn::after { transition: none; }
}
/* Con el selector en la cabecera, entre 481 y 540px el CTA "Diagnostico gratuito" (193px) ya no cabe junto a
 * logo + Acceso + idioma + menu (a 481px quedaba pegado al logo, hueco 0). Se oculta hasta 540px, igual que
 * ya se hace por debajo de 481px: sigue en el hero y en el footer. Debe ir despues de .header-cta (!important). */
@media (max-width: 540px) {
  .header-cta { display: none !important; }
}

/* 2026-10-13 · precios de servicios sin partir (antes "desde 1.800 / €" en dos líneas) */
#dev table td:not(:first-child),
#ai table td:not(:first-child) { white-space: nowrap; }

/* 2026-10-13 · servicios: las columnas del .service-block no pueden crecer más que la pantalla
 * (el nowrap de los precios ensanchaba #dev a 407px en un móvil de 390). Precios con aire entre columnas. */
.service-block > * { min-width: 0; }
#dev table td:not(:first-child),
#ai table td:not(:first-child),
#ai table th:not(:first-child) { padding-left: var(--space-4) !important; }
/* 2026-10-13 · servicios#precios: los 3 planes (grid inline de 3 columnas) no apilaban en móvil */
@media (max-width: 900px) {
  .svc-plans { grid-template-columns: 1fr !important; max-width: 560px !important; }
}
/* 2026-10-13 · servicios#ai en móvil: 3 columnas no caben sin partir "1.800 / €";
 * cada fila pasa a nombre arriba y setup | mantenimiento debajo. */
@media (max-width: 520px) {
  #ai table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  #ai table tr > :first-child { grid-column: 1 / -1; padding-bottom: 0 !important; }
  #ai table tr > :not(:first-child) { padding-left: 0 !important; text-align: left !important; }
  #ai table thead tr > :first-child { display: none; }
}

/* 2026-10-13 · servicios: índice de anclas bajo el hero, una sola viñeta (check verde, la de la portada)
 * y la sección IT con las columnas invertidas para romper tres bloques idénticos seguidos. */
.svc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-10);
}
.svc-index a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: var(--color-neutral-0);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.svc-index a:hover { border-color: var(--color-accent-400); background: rgba(34, 197, 94, .08); }
.svc-index a:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }
.svc-index-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--color-accent-400);
  font: 600 12px/1 var(--font-mono);
}
.svc-index a.svc-index-price { padding-left: 18px; color: var(--color-accent-400); border-color: rgba(34, 197, 94, .35); }
#consultoria, #it, #dev, #ai, #precios { scroll-margin-top: 80px; }
@media (max-width: 640px) {
  .svc-index { display: grid; grid-template-columns: 1fr 1fr; }
  .svc-index a { font-size: 14px; }
  .svc-index a.svc-index-price { grid-column: 1 / -1; justify-content: center; }
}

.service-feature-list li::before,
.pillar-list li::before,
.pillar-card .pillar-list li::before,
.svc-plans li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: none;
  background: var(--color-accent-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230A0C10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.pillar-list li { padding-left: 28px; }
.pillar-list li::before { top: .2em; }
.svc-plans li { position: relative; padding-left: 26px; }
.svc-plans li::before { position: absolute; left: 0; top: .2em; }

@media (min-width: 901px) {
  #it .service-block > :first-child { order: 2; }
}
/* 2026-10-13 · landings SEO (roi, it-gestionado, interno-vs-outsourcing): el hero tenía un fondo claro
 * en línea con el título blanco del .hero → invisible. Ahora usan el hero oscuro, compacto y sin órbita. */
.seo-hero { min-height: 0; padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 112px); }
.seo-hero .hero-grid { grid-template-columns: 1fr; }
.seo-hero .hero-content { max-width: 820px; }
.seo-hero .hero-sub { max-width: 60ch; margin-bottom: 0; }
.seo-hero-cta { margin-top: var(--space-8); }

/* Maqueta de artículo para las landings SEO de texto largo: medida de lectura, ritmo vertical,
 * viñetas con el check de la marca, tablas legibles y caja final coherente con el resto. */
.seo-article { max-width: 72ch; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--color-neutral-700, #3F4A56); }
.seo-article > h2 {
  margin: 64px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-neutral-900, #0A0C10);
}
.seo-article > h2:first-child { margin-top: 0; }
.seo-article > h3 { margin: 36px 0 10px; font-size: 1.2rem; line-height: 1.3; color: var(--color-neutral-900, #0A0C10); }
.seo-article > p { margin: 0 0 16px; }
.seo-article strong { color: var(--color-neutral-900, #0A0C10); }
.seo-article > ul, .seo-article > ol { margin: 8px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.seo-article > ul > li { position: relative; padding-left: 30px; }
.seo-article > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230A0C10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.seo-article > ol { counter-reset: seo; }
.seo-article > ol > li { counter-increment: seo; position: relative; padding-left: 36px; }
.seo-article > ol > li::before {
  content: counter(seo, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1em;
  font: 600 13px/1.6 var(--font-mono);
  color: var(--color-accent-600, #16A34A);
}
.seo-article table {
  width: 100%;
  margin: 32px 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--border, #E4E4E7);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px !important;
  line-height: 1.45;
}
.seo-article th, .seo-article td { padding: 14px 16px !important; border-bottom: 1px solid var(--border, #E4E4E7) !important; }
.seo-article tr:last-child td { border-bottom: 0 !important; }
.seo-article thead th, .seo-article tr:first-child th { background: var(--color-neutral-50, #F9FAFB) !important; color: var(--color-neutral-900, #0A0C10); }
@media (max-width: 720px) {
  .seo-article { font-size: 16px; }
  .seo-article table { display: block; overflow-x: auto; font-size: 14px !important; }
  .seo-article > h2 { margin-top: 48px; }
}

/* ============================================================
 * 2026-10-13 · Pase de coherencia del resto de páginas
 * (crítica de diseño: contraste, tipografía, escala de H1, radios)
 * Las landings llevan su CSS en un <style> propio: aquí se gana
 * por especificidad (body …), sin tocar cada página.
 * ============================================================ */

/* Contraste: etiquetas verdes de 2,2:1 → verde oscuro (≥4,5:1) */
body .pain .pain-stat { color: var(--color-accent-700, #15803D); font-size: 12px; }
body .blog-tag { color: var(--color-accent-700, #15803D); }

/* Titulares: la misma tipografía de display que la portada */
body .vert-section h2,
body .vert-section .cta-block h2,
body .cta-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* H1 en tres niveles: institucional (.display-lg, 72px), landing (64px), artículo/herramienta (52px) */
body .vert-hero h1,
body .seo-hero .hero-title { font-size: clamp(2.5rem, 5vw, 4rem); }
body h1.h1-tool { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.08; }

/* Una sola escala de radios en tarjetas grandes: 12px, como la portada */
body .contact-option,
body .blog-card,
body .booking-card,
body .support-card,
body .wizard,
body nav.toc,
body main .cta-block,
body main .reveal[style*="radius-xl"] { border-radius: 12px !important; }

/* Blog: icono de línea en lugar de emoji */
.blog-card-img .blog-card-icon { color: var(--color-accent-400); opacity: .9; }

/* contraste: textos pequeños y enlaces verdes sobre fondo claro */
body .blog-tag { color: #166534; }
body .article-body a:not(.btn) { color: var(--color-accent-700, #15803D); }
body main .contact-option[style*="bg-elevated"] .contact-option-sub { color: var(--color-neutral-600); }
body .sla-strip .sla-item span,
body .sla-strip > p,
body .sla-strip .sla-note { color: var(--color-neutral-600) !important; }

/* ============================================================
 * 2026-10-13 · Bento en las landings (sectores + servicios)
 * La misma disposición que el bloque de servicios de la portada:
 * una celda protagonista y el resto alrededor, en vez de tarjetas
 * iguales. Solo CSS: las 14 landings comparten .pain-grid (4) y
 * .cap-list (5). Se gana al <style> de cada página con "body …".
 * ============================================================ */

/* --- "Lo que escuchamos": 1 navy alta + 2 blancas + 1 ancha verde --- */
body .vert-section .pain-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
body .vert-section .pain-grid .pain { display: flex; flex-direction: column; border-radius: 12px; }
body .vert-section .pain-grid .pain .pain-stat { margin-top: auto; padding-top: 14px; }
body .vert-section .pain-grid .pain:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--color-primary-600) 0%, #07182A 100%);
  border-color: transparent;
  color: var(--color-neutral-0);
  padding: 32px;
}
body .vert-section .pain-grid .pain:nth-child(1) h3 { color: var(--color-neutral-0); font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.015em; }
body .vert-section .pain-grid .pain:nth-child(1) p { color: rgba(255, 255, 255, .74); font-size: 15.5px; }
body .vert-section .pain-grid .pain:nth-child(1) .pain-stat { color: var(--color-accent-300, #86EFAC); }
body .vert-section .pain-grid .pain:nth-child(1):hover { border-color: transparent; }
body .vert-section .pain-grid .pain:nth-child(4) {
  grid-column: 2 / span 2;
  background: var(--color-accent-50, #F0FDF4);
  border-color: color-mix(in srgb, var(--color-accent-400) 25%, transparent);
}

/* --- "Cinco cosas operativas": 1 alta verde + 4 en 2x2 --- */
body .vert-section .cap-list {
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
body .vert-section .cap-list .cap {
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border, #E4E4E7);
  border-radius: 12px;
  background: var(--bg-elevated, #fff);
}
body .vert-section .cap-list .cap-num { color: var(--color-accent-700, #15803D); font-size: 13px; }
body .vert-section .cap-list .cap-text strong { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
body .vert-section .cap-list .cap:nth-child(1) {
  grid-row: span 2;
  background: var(--color-accent-50, #F0FDF4);
  border-color: color-mix(in srgb, var(--color-accent-400) 25%, transparent);
  padding: 32px;
}
body .vert-section .cap-list .cap:nth-child(1) .cap-num { font-size: 40px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
body .vert-section .cap-list .cap:nth-child(1) .cap-text strong { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
body .vert-section .cap-list .cap:nth-child(1) .cap-text p { font-size: 15.5px; }

/* --- tabletas: 2 columnas, la protagonista a todo el ancho --- */
@media (max-width: 1000px) {
  body .vert-section .pain-grid,
  body .vert-section .cap-list { grid-template-columns: 1fr 1fr; }
  body .vert-section .pain-grid .pain:nth-child(1),
  body .vert-section .cap-list .cap:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  body .vert-section .pain-grid .pain:nth-child(4) { grid-column: 1 / -1; }
}
/* --- móvil: una columna --- */
@media (max-width: 640px) {
  body .vert-section .pain-grid,
  body .vert-section .cap-list { grid-template-columns: 1fr; gap: 12px; }
  body .vert-section .pain-grid .pain:nth-child(1),
  body .vert-section .cap-list .cap:nth-child(1) { padding: 24px; }
  body .vert-section .cap-list .cap:nth-child(1) .cap-num { font-size: 32px; }
}
/* celda protagonista: título arriba, texto abajo (sin hueco cuando no hay etiqueta) */
body .vert-section .pain-grid .pain:nth-child(1) h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
@media (min-width: 1001px) {
  body .vert-section .pain-grid .pain:nth-child(1) p { margin-top: auto; }
  body .vert-section .pain-grid .pain:nth-child(1) .pain-stat { margin-top: 0; }
}

/* ============================================
 * Revision tecnica 14-oct-2026 (DEPLOY-20261014O) · accesibilidad
 * ============================================ */
/* Contraste: pie de pagina (4.17 -> AA) y titulos de contacto sobre fondo claro (2.39 -> AA) */
.footer-bottom { color: var(--color-neutral-400); }
.contact-grid .contact-option-title { color: var(--text-muted); }

/* Carrusel de la portada: zona tactil de 24 px; el punto visible sigue siendo de 8 px */
.hs-dots { gap: 0; }
.hs-dot {
  width: 24px; height: 24px;
  display: inline-grid; place-items: center;
  background: transparent;
}
.hs-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background .3s ease, transform .3s ease;
}
.hs-dot:hover, .hs-dot.is-active { background: transparent; transform: none; }
.hs-dot:hover::before { background: rgba(255,255,255,0.45); }
.hs-dot.is-active::before { background: var(--accent); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .hs-dot::before { transition: none; }
}

/* TEMPORAL (21-oct-2026): "Quiénes somos" fuera del menú y del pie. La página sigue viva
   (URL, sitemap y llms sin tocar). Para volver a mostrarla: borrar este bloque. */
a[href$="/empresa.html"] { display: none !important; }
li:has(> a[href$="/empresa.html"]) { display: none !important; }

/* ============================================================
 * 2026-11-03 · PROCESO como línea de tiempo (home y /casos.html)
 * Fuera la numeración 01-04 y el plazo en mayúsculas mono: el plazo
 * va encima del título en texto normal y una línea une los pasos.
 * Escritorio: línea horizontal. ≤900px: línea vertical a la izquierda.
 * ============================================================ */
.process-grid--timeline { gap: 0 var(--space-8); }
.process-grid--timeline .process-step { padding-top: 32px; }
.process-grid--timeline .process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.process-grid--timeline .process-step::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 22px;
  right: calc(-1 * var(--space-8) + 10px);
  height: 2px;
  background: color-mix(in srgb, var(--accent) 35%, var(--color-neutral-200));
}
.process-grid--timeline .process-step:last-child::after { display: none; }
.process-grid--timeline .process-step-when {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-accent-700);
}
.process-grid--timeline .process-step-title { margin-top: 0; }
@media (max-width: 900px) {
  .process-grid--timeline { grid-template-columns: 1fr; gap: var(--space-8); }
  .process-grid--timeline .process-step { padding: 0 0 0 34px; }
  .process-grid--timeline .process-step::before { top: 4px; }
  .process-grid--timeline .process-step::after {
    top: 24px;
    left: 5px;
    right: auto;
    width: 2px;
    height: calc(100% + var(--space-8) - 20px);
  }
}

/* ============================================================
 * 2026-11-04 · FEEDBACK DE PULSACION en lo pulsable que no es .btn
 * Revision de movimiento: .btn ya tenia :active, el resto no respondia al toque.
 * Las reglas ya transicionan transform (ver transition: all retirado arriba).
 * Escala sutil (0.97-0.99), solo sin reduced-motion.
 * ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .lang-switch button:active,
  .theme-toggle:active,
  .calc-tab:active,
  .calc-segmented button:active,
  .chat-quick button:active { transform: scale(0.97); }
  .faq-q:active,
  .contact-option:active,
  .diagnostic-option:active,
  .wizard-option:active { transform: scale(0.99); }
}

/* ============================================================
 * 2026-11-04 · PULIDO PREMIUM (global)
 * Detalles que no se notan por separado y suman: titulares equilibrados, parrafos sin viudas,
 * entradas escalonadas en cuadriculas (30-60 ms entre hermanos, nunca bloquea nada).
 * ============================================================ */
h1, h2, h3, .display-lg, .display-md, .display-sm { text-wrap: balance; }
p, li, .lead, figcaption { text-wrap: pretty; }

.reveal.is-visible { transition-delay: var(--reveal-delay, 0ms); }
:is(.svc3d-grid, .process-grid, .testimonials-grid, .v3s-grid, .aud-grid, .home-bento) > .reveal:nth-child(2) { --reveal-delay: 60ms; }
:is(.svc3d-grid, .process-grid, .testimonials-grid, .v3s-grid, .aud-grid, .home-bento) > .reveal:nth-child(3) { --reveal-delay: 120ms; }
:is(.svc3d-grid, .process-grid, .testimonials-grid, .v3s-grid, .aud-grid, .home-bento) > .reveal:nth-child(4) { --reveal-delay: 180ms; }
:is(.svc3d-grid, .process-grid, .testimonials-grid, .v3s-grid, .aud-grid, .home-bento) > .reveal:nth-child(n+5) { --reveal-delay: 220ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { transition-delay: 0ms; transform: none; }
}

/* ============================================================
 * 04-nov-2026 · Fondo oscuro = navy de marca (#0F2A44).
 * Las secciones --inverted (hero de servicios, contacto, soporte, casos, blog, auditorias,
 * diagnostico...) eran casi negras (#0A0C10) mientras sectores y SEO ya usaban navy.
 * Un solo token. 04-nov (tarde): la home tambien (Lluis lo confirmo).
 * ============================================================ */
body { --bg-inverted: var(--color-primary-600); }

/* 04-nov-2026 · "Diagnóstico gratuito" primero en el desplegable móvil (lo inyecta script.js).
   Solo <=540 px: ahí el CTA de la cabecera está oculto (.header-cta). */
.nav-link--cta { display: none; }
@media (max-width: 540px) {
  .mobile-nav-open .nav .nav-link--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: var(--space-3);
    border-radius: 10px;
    background: var(--accent);
    color: var(--color-neutral-950) !important; /* impact.css pinta en verde todo .nav-link[href*="diagnostico"] */
    font-weight: 600;
  }
  /* mas especifico que .site-header .nav-link[href*="diagnostico"] (impact.css, verde !important) */
  .mobile-nav-open .site-header .nav .nav-link--cta[href*="diagnostico"] { color: var(--color-neutral-950) !important; }
  .mobile-nav-open .nav .nav-link--cta::after { display: none; }
}

/* 04-nov-2026 · CTA primario sobre fondo navy (fuera de la home): el estilo "navy + texto verde" del boton
   se confundia con el fondo de las secciones oscuras, que ahora son navy. Verde solido, texto oscuro. */
/* (05-nov-2026) parche sustituido por el "SISTEMA DE BOTONES" del final del fichero. */

/* 04-nov-2026 · h1 de portada de pagina (.display-lg) con tracking -0,025em fuera de la home:
   a 72 px el -0,04em (-2,9 px) hacia que las letras se tocaran. La home conserva el suyo. */
body:not([data-page="home"]) .display-lg { letter-spacing: -0.025em; }

/* 04-nov-2026 · subtitulo del hero: version corta solo en movil (<=640px). Dos <p> hermanos con
   su propia clave i18n (hero.sub / hero.sub.m); aqui solo se alterna cual se ve. */
.hero-sub--m { display: none; }
@media (max-width: 640px) {
  .hero-sub--m { display: block; }
  .hero-sub:not(.hero-sub--m) { display: none; }
}

/* ============================================================
 * SISTEMA DE BOTONES · 05-nov-2026  (fuente unica; va el ultimo de styles.css)
 *
 * Antes el CTA verde estaba definido en 5 hojas a la vez (brillo al hover,
 * capa 3D con brightness .4, pulso, "respiracion", sombra verde, estilo navy
 * en claro y parche verde en oscuro). Resultado: verde apagado, texto con poco
 * contraste y un aspecto distinto segun la pagina. Ahora hay UNA definicion:
 *
 *   .btn--accent    primario · verde solido #22C55E + tinta verde muy oscura (6,5:1)
 *   .btn--secondary secundario · contorno navy en claro / blanco en oscuro
 *   .btn--on-dark   fuerza la variante oscura fuera de .hero/.section--inverted
 *
 * Header CTA (.header-cta), .btn--primary (navy) y .btn--ghost no cambian.
 * ============================================================ */
:root {
  --btn-ink: #052E16;                 /* texto sobre verde · contraste 6,5:1 con #22C55E */
  --btn-focus: var(--brand);
}
.hero,
.section--inverted,
.btn--on-dark {
  --btn-focus: var(--color-neutral-0);
}

.btn--accent {
  background: var(--accent);
  color: var(--btn-ink);
  border: 1px solid transparent;
  box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.28) inset, 0 8px 22px -12px rgb(34 197 94 / 0.55);
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease, box-shadow 200ms ease;
}
.btn--accent .btn-arrow { color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover {
    background: var(--color-accent-300);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.35) inset, 0 12px 28px -12px rgb(34 197 94 / 0.7);
  }
}
.btn--accent:active { transform: scale(0.97); transition-duration: 100ms; }

.btn--secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .btn--secondary:hover {
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    border-color: var(--brand);
  }
}
.hero .btn--secondary,
.section--inverted .btn--secondary,
.btn--secondary.btn--on-dark {
  color: var(--color-neutral-0);
  border-color: rgb(255 255 255 / 0.42);
}
@media (hover: hover) and (pointer: fine) {
  .hero .btn--secondary:hover,
  .section--inverted .btn--secondary:hover,
  .btn--secondary.btn--on-dark:hover {
    background: rgb(255 255 255 / 0.09);
    border-color: rgb(255 255 255 / 0.85);
  }
}

.btn:focus-visible {
  outline: 2px solid var(--btn-focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .btn--accent { transition: background-color 200ms ease, box-shadow 200ms ease; }
  .btn--accent:hover, .btn--accent:active { transform: none; }
}
/* assets/css/cursor.css */
/* cursor.css · RETIRADO el 2026-11-04. El cursor propio (cursor:none + punto que sigue al raton) anadia latencia
 * al puntero y no aportaba nada. El fichero se conserva vacio porque ~19 paginas y el bundle de la home lo enlazan. */
/* assets/css/enhancements.css */
/* ============================================================
   IG TECH · Enhancements layer
   Overlay seguro · no toca tipografía ni layout
   Solo añade: hover smoothness, glow, shine, gradient stats, dividers
   ============================================================ */

/* ============================================================
   1. CARDS · lift + shadow + border accent en hover
   ============================================================ */
.pillar-card,
.case-card,
.sector-card,
.contact-option {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
.pillar-card:hover,
.case-card:hover,
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 3px rgba(15, 42, 68, 0.04),
    0 12px 32px rgba(15, 42, 68, 0.12),
    0 4px 12px rgba(15, 42, 68, 0.08);
  border-color: rgba(15, 42, 68, 0.3);
}
}

@media (hover: hover) and (pointer: fine) {
.contact-option:hover {
  transform: translateY(-2px);
}
}

/* ============================================================
   2. PILLAR ICONS · scale + subtle rotate al hover de la card
   ============================================================ */
.pillar-card .pillar-icon {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(-4deg);
}
}

/* ============================================================
   3. BUTTONS · shine effect (gradient sweep) al hover
   ============================================================ */
/* 05-nov-2026 · barrido de brillo, elevacion y sombra verde del hover retirados:
   se definen una sola vez en el "SISTEMA DE BOTONES" al final de styles.css. */
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
.btn:hover .btn-arrow {
  transform: translateX(4px);
}
}

/* ============================================================
   4. STAT NUMBERS · gradient brand → accent en hover
   ============================================================ */
/* 2026-10-13 · coherencia de marca: fuera el degradado azul #1E5FFF → verde
   (azul ajeno a la paleta navy + verde). Cifra sólida en navy. */
.stat-num {
  color: var(--brand);
  -webkit-text-fill-color: currentColor;
}

/* ============================================================
   5. SECTION DIVIDERS · línea gradient sutil entre secciones
   ============================================================ */
.section + .section::before,
section.section + .section--elevated::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 42, 68, 0.08),
    transparent
  );
  margin-bottom: -1px;
}

/* ============================================================
   6. HERO · subtle shimmer en el gradient pattern
   ============================================================ */
.hero-grid-pattern {
  animation: none;
  background-size: 200% 200%;
}
@keyframes shimmer-grid {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ============================================================
   7. NAV LINKS · underline gradient al hover
   ============================================================ */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #0F2A44, #22C55E);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* ============================================================
   8. FOOTER LINKS · slide right al hover
   ============================================================ */
.footer-col ul a {
  position: relative;
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.footer-col ul a:hover {
  padding-left: 8px;
  color: #22C55E;
}
.footer-col ul a::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: left 0.25s ease, opacity 0.25s ease;
}
.footer-col ul a:hover::before {
  left: -10px;
  opacity: 0.6;
}

/* ============================================================
   9. CALCULATOR · highlight del precio cuando cambia
   ============================================================ */
.calc-result-value,
[data-show] {
  transition: color 0.3s ease, transform 0.3s ease;
}

/* ============================================================
   10. CONTACT OPTIONS · arrow indicator al hover
   ============================================================ */
.contact-option {
  position: relative;
  overflow: hidden;
}
.contact-option::after {
  content: '→';
  position: absolute;
  top: 50%; right: 20px;
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  font-size: 24px;
  font-weight: 300;
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #22C55E;
}
@media (hover: hover) and (pointer: fine) {
.contact-option:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
}

/* ============================================================
   11. LANG SWITCH · pill animation al cambiar
   ============================================================ */
.lang-switch button {
  position: relative;
  transition: color 0.25s ease;
}
.lang-switch button.is-active {
  font-weight: 700;
}

/* ============================================================
   12. NEWSLETTER FORM · focus state premium
   ============================================================ */
.newsletter-input:focus,
input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.22),
    0 0 0 1px #16A34A; /* 2026-10-13: foco en verde de marca (antes azul #1E5FFF) */
  transition: box-shadow 0.2s ease;
}

/* ============================================================
   13. TERMINAL · subtle pulse en el OK
   ============================================================ */
.terminal-line .ok {
  position: relative;
}
.terminal-line .ok::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  animation: terminal-pulse 4s ease-in-out infinite;
}
@keyframes terminal-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.2; }
}

/* ============================================================
   14. REVEAL · smoother animation (sobrescribe si existe)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 400ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.is-visible,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--reveal-delay, 0ms); /* escalonado: ver styles.css (2026-11-04) */
}

/* ============================================================
   15. ACCENT-LINE · subtle highlight color (no rompe título)
   ============================================================ */
.hero-title .accent-line {
  position: relative;
  display: inline-block;
}
.hero-title .accent-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0F2A44 0%, #22C55E 100%);
  opacity: 0.25;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
              opacity 0.4s ease;
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
.hero-title .accent-line:hover::after,
.hero:hover .hero-title .accent-line::after {
  transform: scaleX(1);
}
}

/* Mostrar el accent-line al cargar (delay para que se vea suave) */
body[data-page="home"] .hero-title .accent-line::after {
  animation: accent-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}
@keyframes accent-reveal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================================
   16. CHAT LAUNCHER · subtle pulse para llamar atención
   ============================================================ */
.chat-launcher-button,
.chat-launcher {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
.chat-launcher-button:hover {
  transform: scale(1.05);
}
}

/* ============================================================
   17. RESPONSIVE · efectos más sutiles en móvil
   ============================================================ */
@media (max-width: 768px) {
  @media (hover: hover) and (pointer: fine) {
.pillar-card:hover,
  .case-card:hover {
    transform: none;
  }
}
  @media (hover: hover) and (pointer: fine) {
.btn--accent:hover,
  .btn--primary:hover {
    transform: none;
  }
}
}

/* ============================================================
   19. DIAGNOSTIC CTA · grid de 6 preguntas como tarjetas numeradas
   ============================================================ */
.diag-cta-section {
  background: linear-gradient(180deg, #0F2A44 0%, #07182A 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.diag-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.10), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(15, 42, 68, 0.10), transparent 55%);
  pointer-events: none;
}
.diag-cta-section > .container {
  position: relative;
  z-index: 1;
}

.diag-cta-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}
.diag-cta-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.diag-cta-head h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.diag-cta-head p {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Lista editorial de 6 preguntas ───
   Rediseño: fuera el grid 3×2 idéntico, fuera el meta mono verde y la flecha
   redundante. Cada pregunta es ahora una fila tipo "índice de revista":
   número grande con peso fino + pregunta grande + meta a la derecha en
   neutral discreto. Separadores horizontales finos, hover sutil. */
.diag-questions-grid {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diag-q-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  column-gap: 28px;
  padding: 22px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    padding-left 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    padding-right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.diag-q-card:hover {
  background: rgba(255, 255, 255, 0.025);
  padding-left: 16px;
  padding-right: 16px;
}

.diag-q-num {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.30);
  line-height: 1;
  transition: color 0.28s ease;
}
.diag-q-card:hover .diag-q-num {
  color: #22C55E;
}

.diag-q-text {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.diag-q-meta {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  transition: color 0.28s ease;
}
.diag-q-card:hover .diag-q-meta {
  color: rgba(255, 255, 255, 0.72);
}

/* Móvil: dos columnas (número + texto), meta debajo del texto */
@media (max-width: 720px) {
  .diag-q-card {
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
    row-gap: 4px;
    padding: 18px 4px;
  }
  .diag-q-num { font-size: 28px; align-self: start; padding-top: 2px; }
  .diag-q-text { font-size: 16px; grid-column: 2; }
  .diag-q-meta {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    white-space: normal;
    font-size: 12.5px;
  }
}

/* ─── Bottom actions ─── */
.diag-cta-actions {
  text-align: center;
}
.diag-cta-actions .btn--lg {
  padding: 16px 32px;
  font-size: 15.5px;
  animation: none;
}
@keyframes diag-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 6px 22px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0), 0 6px 22px rgba(34, 197, 94, 0.5); }
}
.diag-cta-actions .btn--lg:hover { animation-play-state: paused; }

/* Microcopy bajo el CTA · indica el compromiso de follow-up con el cliente.
   Restrained: una línea, Inter (no mono), gris medio. Sin punto pulsante. */
.diag-cta-microcopy {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .diag-cta-section { padding: 60px 0 80px; }
  .diag-cta-head h2 { font-size: 28px; }
  /* .diag-q-text y .diag-q-card responsive se manejan en su propia media query */
}

/* ============================================================
   20. REDUCED MOTION · respetar preferencia del usuario
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   21. FAQ de las landings de sector (mismo patron que las landings SEO)
   ============================================================ */
.sv-faq { margin-top: 24px; }
.sv-faq details { border: 1px solid var(--border, #E4E4E7); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; background: var(--bg-elevated, #fff); }
.sv-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; min-height: 44px; list-style-position: outside; }
.sv-faq details[open] summary { color: var(--brand, #0F2A44); }
.sv-faq details p { margin: 0 0 18px; color: var(--text-muted, #5C6B7A); line-height: 1.6; }

/* 04-nov-2026 · foco de luz que sigue al cursor en tarjetas de pilares y casos (skill animaciones-web).
 * Se pinta como capa EXTRA de background-image (esas tarjetas ya ocupan ::before/::after y .case-card trae su degradado oscuro:
 * se repite debajo del foco para no perderlo). Una variable registrada (--spot-a) funde la intensidad.
 * --mx/--my los pone script.js. Solo raton y sin reduced-motion; sin @property el foco aparece sin fundido. */
@property --spot-a { syntax: "<number>"; inherits: false; initial-value: 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body .pillar-card, body .case-card, body .sector-card {
    --spot-max: .10;
    --spot-img: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgb(34 197 94 / calc(var(--spot-a) * var(--spot-max))), transparent 65%);
    background-image: var(--spot-img);
    transition-property: transform, box-shadow, border-color, background-color, --spot-a;
  }
  body .case-card {
    --spot-max: .16;                        /* fondo oscuro: algo mas de intensidad */
    background-image: var(--spot-img), linear-gradient(160deg, var(--color-neutral-900) 0%, var(--color-neutral-950) 100%);
  }
  body .pillar-card.is-spot, body .case-card.is-spot, body .sector-card.is-spot { --spot-a: 1; }
}
/* assets/css/tech-vibe.css */
/* ============================================================
   IG TECH · Tech Vibe Layer
   Esencia: informática + IA + tecnología
   Partículas conectadas · live badges · terminal labels · system status
   ============================================================ */

/* ============================================================
   1. PARTICLES CANVAS · neural network detrás del hero
   ============================================================ */
.tv-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
.hero { position: relative; }
.hero > .container,
.hero > .hero-bg,
.hero > .hero-grid-pattern {
  z-index: 2;
  position: relative;
}

/* ============================================================
   2. LIVE BADGE en el logo · pulsing green dot
   ============================================================ */
.logo {
  position: relative;
}
.logo::after {
  content: '';
  position: absolute;
  top: 8px;
  right: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: none;
}
@keyframes tv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============================================================
   3. TERMINAL LABELS · eyebrow con prefijo "> _"
   ============================================================ */
.eyebrow,
.hero-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before,
.hero-eyebrow::before {
  content: '>';
  color: #22C55E;
  font-weight: 700;
  opacity: 0.85;
  animation: none;
}
@keyframes tv-blink {
  0%, 50% { opacity: 0.85; }
  51%, 100% { opacity: 0.15; }
}

/* ============================================================
   4. SCAN LINE · RETIRADA
   La línea cruzando el hero cada 9s era decoración pura y reforzaba
   el cliché "consultora IT = scan radar". Las partículas y el live badge
   ya cargan ese acento; añadir una tercera capa era ruido.
   ============================================================ */
.hero::before { display: none !important; }
@keyframes tv-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  50% { transform: translateY(100vh); }
}

/* ============================================================
   5. CODE-STYLE BORDERS · pilar cards con esquinas técnicas
   ============================================================ */
.pillar-card {
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-top: 1.5px solid #22C55E;
  border-left: 1.5px solid #22C55E;
  opacity: 0;
  transition: opacity 250ms ease-out, transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 16px; height: 16px;
  border-bottom: 1.5px solid #22C55E;
  border-right: 1.5px solid #22C55E;
  opacity: 0;
  transition: opacity 250ms ease-out, transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
.pillar-card:hover::before {
  opacity: 1;
  transform: translate(-2px, -2px);
}
}
@media (hover: hover) and (pointer: fine) {
.pillar-card:hover::after {
  opacity: 1;
  transform: translate(2px, 2px);
}
}

/* Pillar A/B/C con prefijo de letra en código */
.pillar-card[data-pillar]::before {
  content: '';
}
[data-theme="dark"] .pillar-card .pillar-title::before { color: #22C55E; }
.pillar-card[data-pillar="A"] .pillar-title::before {
  content: '[B] ';
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: #15803D; /* 2026-10-13: verde oscuro, contraste AA sobre blanco */
  font-weight: 500;
  letter-spacing: 0.05em;
}
.pillar-card[data-pillar="B"] .pillar-title::before {
  content: '[C] ';
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: #15803D; /* 2026-10-13: verde oscuro, contraste AA sobre blanco */
  font-weight: 500;
  letter-spacing: 0.05em;
}
.pillar-card[data-pillar="D"] .pillar-title::before {
  content: '[A] ';
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: #15803D; /* 2026-10-13: verde oscuro, contraste AA sobre blanco */
  font-weight: 500;
  letter-spacing: 0.05em;
}
.pillar-card[data-pillar="C"] .pillar-title::before {
  content: '[D] ';
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  color: #15803D; /* 2026-10-13: verde oscuro, contraste AA sobre blanco */
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============================================================
   6. STAT NUMBERS · efecto "data refresh" sutil
   ============================================================ */
.stat-num {
  position: relative;
  font-family: 'Inter Tight', system-ui, sans-serif;
}
.stats .reveal::before {
  content: '◉';
  display: inline-block;
  color: #22C55E;
  font-size: 8px;
  margin-bottom: 8px;
  animation: tv-data-blink 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}
@keyframes tv-data-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   7. SYSTEM STATUS · línea técnica encima del footer
   ============================================================ */
.tv-system-status {
  background: #02060F;
  color: rgba(255, 255, 255, 0.6);
  padding: 14px 0;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.tv-system-status-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tv-status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.tv-status-item .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: tv-data-blink 2.4s ease-in-out infinite;
}
.tv-status-item .label {
  color: rgba(255, 255, 255, 0.5);
}
.tv-status-item .value {
  color: #22C55E;
  font-weight: 600;
}

@media (max-width: 760px) {
  .tv-system-status-inner { font-size: 10.5px; gap: 12px; padding: 0 16px; }
  .tv-status-item:not(:first-child) { display: none; }
  .tv-status-item:nth-child(1),
  .tv-status-item:last-child { display: inline-flex; }
}
@media (max-width: 400px) {
  .tv-system-status { padding: 12px 0; }
  .tv-system-status-inner { font-size: 9.5px; gap: 8px; }
  .tv-status-item:last-child { display: none; }
}

/* ============================================================
   8. GLITCH HOVER · subtle text glitch en hero h1
   ============================================================ */
.hero-title .accent-line {
  position: relative;
  display: inline-block;
}
.hero-title .accent-line:hover {
  animation: tv-glitch 0.4s cubic-bezier(0.36, 0, 0.66, -0.56) 1;
}
@keyframes tv-glitch {
  0% { transform: translate(0); text-shadow: 0 0 0 transparent; }
  20% { transform: translate(-1px, 1px); text-shadow: 2px 0 #22C55E, -2px 0 #7187A0; }
  40% { transform: translate(1px, -1px); text-shadow: -2px 0 #22C55E, 2px 0 #7187A0; }
  60% { transform: translate(-1px, 0); text-shadow: 2px 0 #22C55E, -2px 0 #7187A0; }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); text-shadow: 0 0 0 transparent; }
}

/* ============================================================
   9. SECTION CONNECTOR · línea técnica entre secciones
   ============================================================ */
.section + .section::before,
.stats + .section::before {
  content: '';
  display: block;
  height: 40px;
  background:
    linear-gradient(180deg, transparent 0%, transparent 49%, rgba(34, 197, 94, 0.35) 50%, transparent 51%, transparent 100%);
  width: 1px;
  margin: -20px auto 0;
}

/* ============================================================
   10. CODE-COMMENT eyebrows · puede activarse con .tv-comment
   ============================================================ */
.tv-comment {
  font-family: 'JetBrains Mono', monospace !important;
  color: rgba(34, 197, 94, 0.7) !important;
  font-weight: 400;
}
.tv-comment::before {
  content: '// ';
  opacity: 0.7;
}

/* ============================================================
   11. TERMINAL · enhancement con typing cursor en última línea
   ============================================================ */
.terminal-line.tv-typing::after {
  content: '▊';
  display: inline-block;
  margin-left: 4px;
  color: #22C55E;
  animation: tv-cursor-blink 1s steps(2) infinite;
}
@keyframes tv-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================================
   12. CIRCUIT GLOW · resplandor verde sutil en bordes del hero
   ============================================================ */
.hero {
  box-shadow: inset 0 -1px 0 rgba(34, 197, 94, 0.15);
}

/* ============================================================
   13. RESPONSIVE · particles más sutiles en móvil
   ============================================================ */
@media (max-width: 760px) {
  .tv-particles { opacity: 0.3; }
  .hero::before { display: none; }
  /* Sin esquinas técnicas en móvil · evita overflow */
  .pillar-card::before,
  .pillar-card::after { display: none; }
  /* Eyebrows más compactos en móvil */
  .eyebrow, .hero-eyebrow { font-size: 11px !important; gap: 6px; }
}
@media (max-width: 480px) {
  /* Desactivar particles en móviles pequeños (rendimiento) */
  .tv-particles { display: none; }
}

/* ============================================================
   15. HERO ORBIT · diagrama "web · sistemas · IA · soporte" orbitando
   un núcleo "One", visualiza el eslogan de hero-firma. Primera
   diapositiva del carrusel del hero (las otras 3 son los casos
   reales, que también viven íntegros en #casos más abajo).

   Núcleo en verde de acento (contraste fuerte contra el fondo casi
   negro del hero; navy-sobre-navy no se distinguía). Disposición
   asimétrica a propósito (ángulos/radios distintos por nodo, no
   una cruz perfecta a 90°). Un solo gesto de movimiento: las líneas
   se dibujan una vez al cargar y luego un pulso recorre cada una
   por turnos; el resto queda quieto.
   ============================================================ */
.hero-orbit-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orbit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.hero-orbit-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  color: var(--color-neutral-0);
  overflow: visible;
}
.hero-orbit-ring {
  fill: none;
  stroke: rgba(34, 197, 94, 0.2);
  stroke-width: 1.3;
  stroke-dasharray: 2 8;
}
.hero-orbit-line {
  fill: none;
  stroke: rgba(34, 197, 94, 0.26);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: orbit-draw 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}
.hero-orbit-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 8 90;
  animation: orbit-flow 4.2s linear infinite;
}
.hero-orbit-node-halo {
  display: none;
}
.hero-orbit-node-ring {
  fill: rgba(253, 253, 254, 0.08);
  stroke: rgba(34, 197, 94, 0.55);
  stroke-width: 1.4;
}
.hero-orbit-node-icon {
  fill: none;
  stroke: currentColor;
  color: var(--color-neutral-0);
}
.hero-orbit-node-icon-fill {
  fill: currentColor;
  stroke: none;
  color: var(--color-neutral-0);
}
.hero-orbit-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  fill: rgba(253, 253, 254, 0.65);
}
.hero-orbit-core {
  stroke: rgba(253, 253, 254, 0.2);
  stroke-width: 1.5;
  animation: orbit-core-glow 4s ease-in-out infinite;
}
.hero-orbit-core-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  fill: var(--color-neutral-0);
}
@keyframes orbit-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes orbit-flow {
  to { stroke-dashoffset: -98; }
}
@keyframes orbit-core-glow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.32)); }
  50%      { filter: drop-shadow(0 0 26px rgba(34, 197, 94, 0.52)); }
}
@media (max-width: 900px) {
  .hero-orbit-svg { max-width: 320px; }
}

/* ============================================================
   14. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .logo::after,
  .tv-status-item .dot,
  .stats .reveal::before,
  .eyebrow::before,
  .hero-eyebrow::before,
  .hero-orbit-line,
  .hero-orbit-pulse,
  .hero-orbit-core,
  .terminal-line.tv-typing::after {
    animation: none !important;
  }
  .hero-orbit-line { stroke-dashoffset: 0 !important; }
  .hero-orbit-pulse { opacity: 0; }
  .tv-particles { display: none !important; }
}


/* ============================================================
   16. HERO ORBIT · nodos clicables (cada circulo lleva a su zona)
   ============================================================ */
.hero-orbit-link {
  cursor: pointer;
  outline: none;
}
.hero-orbit-link .hero-orbit-node-ring {
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.hero-orbit-link .hero-orbit-label {
  transition: fill 0.2s ease;
}
.hero-orbit-link:hover .hero-orbit-node-ring,
.hero-orbit-link:focus-visible .hero-orbit-node-ring {
  fill: rgba(34, 197, 94, 0.22);
  stroke: var(--accent);
  stroke-width: 2;
}
.hero-orbit-link:hover .hero-orbit-label,
.hero-orbit-link:focus-visible .hero-orbit-label {
  fill: var(--color-neutral-0);
}
.hero-orbit-link:focus-visible .hero-orbit-node-ring {
  stroke-dasharray: 5 4;
}
/* assets/css/impact.css */
/* ============================================================
   IG TECH · Impact Layer
   Sticky CTA · Live feed flotante · CTA pulse · Urgency
   Diseñado para convertir visita → diagnóstico en <30s
   ============================================================ */

/* ============================================================
   1. STICKY CTA BAR · barra inferior con CTA principal
   Aparece al scrollear >300px · se esconde al subir
   ============================================================ */
.imp-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.imp-sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.imp-sticky-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  /* Sólido · sin glassmorphism. Navy puro lee más confiado. */
  background: #0F2A44;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(15, 42, 68, 0.18);
}
.imp-sticky-cta-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.imp-sticky-cta-text strong {
  color: #fff;
  font-weight: 600;
}
.imp-sticky-cta-text .imp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  margin-right: 10px;
  vertical-align: middle;
}
.imp-sticky-cta-text .imp-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #22C55E;
  border-radius: 50%;
  /* Glow retirado · era AI slop. Punto sólido. */
  animation: none;
}
@keyframes imp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.imp-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #0F2A44;
  color: #5CD387;
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 700;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
  /* Sombra normal · sin glow verde. */
  box-shadow: 0 4px 12px rgba(15, 42, 68, 0.20);
  position: relative;
  overflow: hidden;
}
.imp-sticky-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
.imp-sticky-cta-btn:hover::after { transform: translateX(100%); }
}
@media (hover: hover) and (pointer: fine) {
.imp-sticky-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 42, 68, 0.28);
  border-color: #22C55E;
}
}
.imp-sticky-cta-btn .arr {
  transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
.imp-sticky-cta-btn:hover .arr { transform: translateX(4px); }
}

.imp-sticky-cta-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.imp-sticky-cta-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 760px) {
  .imp-sticky-cta-inner { padding: 10px 12px; gap: 8px; border-radius: 12px 12px 0 0; }
  .imp-sticky-cta-text { font-size: 12px; line-height: 1.3; }
  .imp-sticky-cta-text .imp-tag { display: none; }
  .imp-sticky-cta-btn { padding: 9px 14px; font-size: 12.5px; }
  .imp-sticky-cta-close { width: 24px; height: 24px; font-size: 11px; }
}

/* ============================================================
   COORDINACIÓN con chat-launcher · cuando sticky CTA visible
   se sube el chat launcher para que no se tape
   ============================================================ */
.chat-launcher,
.chat-launcher-button,
[class*="chat-launcher"][class*="button"] {
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s ease;
}
body.has-sticky-cta .chat-launcher,
body.has-sticky-cta .chat-launcher-button,
body.has-sticky-cta [class*="chat-launcher"][class*="button"] {
  bottom: 96px !important;  /* sube por encima de la sticky bar */
}

@media (max-width: 760px) {
  body.has-sticky-cta .chat-launcher,
  body.has-sticky-cta .chat-launcher-button,
  body.has-sticky-cta [class*="chat-launcher"][class*="button"] {
    bottom: 88px !important;
  }
}

/* ============================================================
   2. LIVE FEED · notificaciones flotantes esquina inferior izquierda
   ============================================================ */
.imp-live-feed {
  position: fixed;
  bottom: 92px;
  left: 20px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 320px;
}
.imp-feed-item {
  background: #0F2A44;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px 12px 12px;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.22);
  opacity: 0;
  transform: translateX(-20px) scale(0.95);
  animation: imp-feed-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             imp-feed-out 0.5s cubic-bezier(0.65, 0, 0.35, 1) 7s forwards;
  pointer-events: auto;
}
@keyframes imp-feed-in {
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes imp-feed-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(-30px) scale(0.95); }
}
.imp-feed-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.imp-feed-body { min-width: 0; flex: 1; }
.imp-feed-title {
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
}
.imp-feed-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.imp-feed-meta .live {
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.imp-feed-meta .live::before {
  content: '';
  width: 5px; height: 5px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  /* Glow retirado · punto sólido. */
  animation: none;
}

@media (max-width: 760px) {
  .imp-live-feed { display: none; }
}

/* ============================================================
   3. CTA PULSE · pulso sutil en el botón principal del hero
   ============================================================ */
.hero .btn--accent.btn--lg {
  position: relative;
  animation: none;
  animation-delay: 1.5s;
}
@keyframes imp-cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0),
                0 4px 14px rgba(34, 197, 94, 0.25);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0),
                0 4px 14px rgba(34, 197, 94, 0.45);
  }
}

/* Pausa el pulse al hacer hover (no compite con shine) */
.hero .btn--accent.btn--lg:hover {
  animation-play-state: paused;
}

/* ============================================================
   4. URGENCY BADGE · pequeña insignia en hero
   ============================================================ */
.imp-urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 12px;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .imp-urgency-badge {
    font-size: 10px;
    padding: 5px 10px 5px 8px;
    letter-spacing: 0.03em;
  }
}
.imp-urgency-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: imp-radar 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes imp-radar {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============================================================
   5. PROOF STRIP · franja con stats clave sobre fondo oscuro
   ============================================================ */
.imp-proof-strip {
  background: linear-gradient(180deg, #0F2A44 0%, #07182A 100%);
  color: #fff;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.imp-proof-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(15, 42, 68, 0.10), transparent 60%);
  pointer-events: none;
}
.imp-proof-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) {
  .imp-proof-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.imp-proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.imp-proof-item-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: #4ade80;
  line-height: 1;
}
.imp-proof-item-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.imp-proof-item-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(74, 222, 128, 0.7);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ============================================================
   6. NAV CTA · botón de contacto destacado en el nav
   ============================================================ */
.site-header .nav-link[href*="diagnostico"] {
  color: #22C55E !important;
  font-weight: 600;
  position: relative;
}
.site-header .nav-link[href*="diagnostico"]::after {
  background: #22C55E;
}

/* ============================================================
   7. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero .btn--accent.btn--lg,
  .imp-urgency-badge::before,
  .imp-sticky-cta-text .imp-tag::before,
  .imp-feed-meta .live::before {
    animation: none !important;
  }
  .imp-feed-item {
    animation-duration: 0.1s !important;
  }
}
/* assets/css/depth-3d.css */
/* ============================================================
   IG TECH · Depth 3D Layer
   Perspectiva real + preserve-3d + parallax · WOW factor
   ============================================================ */

/* ============================================================
   1. HERO con PERSPECTIVA 3D
   Activamos el contexto 3D para que todo dentro pueda usar rotateX/Y
   ============================================================ */
.hero {
  perspective: 1800px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.hero-grid {
  transform-style: preserve-3d;
}

/* ============================================================
   2. TERMINAL · sin rotación 3D · solo glow sutil
   (quitado tilt/perspective · el usuario prefiere plano)
   ============================================================ */
.hero .terminal {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   3. CUBO 3D · RETIRADO
   Decoración técnica que reforzaba el cliché "consultora IT".
   Si el JS sigue inyectándolo, queda oculto vía display:none.
   ============================================================ */
.d3-iso-cube,
.d3-iso-face,
.d3-iso-face--front,
.d3-iso-face--back,
.d3-iso-face--right,
.d3-iso-face--left,
.d3-iso-face--top,
.d3-iso-face--bottom { display: none !important; }

/* ============================================================
   4. PILLAR CARDS · 3D tilt RETIRADO
   El mouse-tracking con rotateX/rotateY/translateZ no convencía.
   Vuelve al hover simple de enhancements.css: lift + shadow + border.
   La función `enable3DPillars()` en depth-3d.js también queda noop.
   ============================================================ */

/* ============================================================
   5. PARALLAX SCROLL · capas del hero se mueven a velocidades distintas
   ============================================================ */
.hero-bg {
  transform: translate3d(0, var(--parallax-bg, 0), 0);
  will-change: transform;
}
.hero-grid-pattern {
  transform: translate3d(0, var(--parallax-grid, 0), 0);
  will-change: transform;
}

/* STAT NUMBERS · sin text-shadow 3D (quitado por preferencia del usuario)
   El gradient brand→accent ya viene de enhancements.css */

/* ============================================================
   7. BOTONES · capa 3D retirada (05-nov-2026)
   La sombra "extruida" (::before con brightness .4) oscurecia el verde
   y daba aspecto apagado al CTA. Los botones se definen en un unico
   bloque al final de styles.css ("SISTEMA DE BOTONES").
   ============================================================ */

/* ============================================================
   8. ACCENT-LINE (hero) · gradient-text retirado
   `background-clip: text` con gradiente es decorativo y prohibido.
   La emphasis viene ahora del peso + tamaño, no del color.
   ============================================================ */
.hero-title .accent-line {
  position: relative;
  display: inline-block;
}
.hero-title .accent-line::before { display: none !important; }

/* ============================================================
   9. LOGO 3D · el punto verde sale ligeramente del plano
   ============================================================ */
.logo {
  transform-style: preserve-3d;
}
.logo::after {
  /* Override del live-badge para que se vea en 3D */
  transform: translateZ(8px);
}

/* ============================================================
   10. RESPONSIVE · desactivar 3D en móvil (rendimiento)
   ============================================================ */
@media (max-width: 900px) {
  .hero .terminal {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  .hero .terminal::after { display: none; }
  /* Las pillar-cards ya no usan 3D; el hover móvil se controla en enhancements.css */
}

/* ============================================================
   11. REDUCED MOTION · honor preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero .terminal { transform: none !important; }
}
/* assets/css/polish.css */
/* ============================================================
 * polish.css · Capa de pulido siguiendo la filosofía Emil Kowalski
 *
 * Se carga AL FINAL del head (después de styles.css, enhancements.css,
 * depth-3d.css, tech-vibe.css, impact.css) para sobrescribir
 * antipatrones sin tocar los archivos originales.
 *
 * Principios aplicados:
 *   1. Especificidad en transitions (nunca `all`)
 *   2. Feedback en :active (scale 0.97)
 *   3. Hover SOLO en dispositivos con puntero fino
 *   4. Easing fuerte (no Material Design débil)
 *   5. Duraciones < 250ms en UI
 *   6. transform-origin coherente en popovers
 *   7. Respect prefers-reduced-motion
 *
 * Eliminar este archivo cuando se refactorice styles.css.
 * ============================================================ */

:root {
  /* Easings fuertes (override) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Durations (override) */
  --t-instant: 100ms;
  --t-fast: 160ms;
  --t-base: 200ms;
  --t-slow: 280ms;
  --t-marketing: 500ms;
}

/* ============================================================
 * 1. BOTONES · Feedback responsivo
 * ============================================================ */

.btn,
.btn--primary,
.btn--accent,
.btn--secondary,
.btn--ghost {
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-base) ease,
    border-color var(--t-base) ease,
    color var(--t-base) ease,
    box-shadow var(--t-base) ease;
  will-change: transform;
}

/* Active state → feedback instantáneo de pulsación */
.btn:active,
.btn--primary:active,
.btn--accent:active,
.btn--secondary:active,
button:active:not(:disabled),
[role="button"]:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

/* Hover SOLO cuando hay puntero fino (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-1px);
  }
  .btn--accent:hover {
    transform: translateY(-1px);
  }
  .btn:hover .btn-arrow {
    transform: translateX(4px);
  }
}

/* Arrow icon transition más específico */
.btn-arrow {
  transition: transform var(--t-fast) var(--ease-out);
  display: inline-block;
}

/* ============================================================
 * 2. NAV LINKS · Subraya progresivo elegante
 * ============================================================ */

.nav-link {
  position: relative;
  transition: color var(--t-base) ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link::after {
    content: "";
    position: absolute;
    left: var(--space-3, 12px);
    right: var(--space-3, 12px);
    bottom: 6px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--t-base) var(--ease-out);
    opacity: 0.7;
  }
  .nav-link:hover::after {
    transform: scaleX(1);
  }
  .nav-link.is-active::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ============================================================
 * 3. CARDS · Hover sutil, sin animar `all`
 * ============================================================ */

.feature-card,
.service-card,
.case-card,
.kpi-card,
.testimonial-card,
.pricing-card,
.faq-item,
.team-card,
.integration-card {
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) ease,
    border-color var(--t-base) ease,
    background-color var(--t-base) ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .service-card:hover,
  .case-card:hover,
  .pricing-card:hover {
    transform: translateY(-2px);
  }
}

/* ============================================================
 * 4. INPUTS · Focus ring crisp
 * ============================================================ */

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  transition:
    border-color var(--t-base) ease,
    box-shadow var(--t-base) ease,
    background-color var(--t-base) ease;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--brand, #0F2A44);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #0F2A44) 15%, transparent);
}

/* ============================================================
 * 5. LINKS · Underline animado
 * ============================================================ */

a:not(.btn):not(.nav-link):not(.logo) {
  transition: color var(--t-base) ease;
}

/* ============================================================
 * 6. HEADER · Border progresivo según scroll
 * ============================================================ */

.site-header {
  transition:
    background-color var(--t-base) ease,
    border-bottom-color var(--t-base) ease,
    backdrop-filter var(--t-base) ease;
}

/* ============================================================
 * 7. CHAT LAUNCHER · Animaciones más vivas
 * ============================================================ */

.chat-launcher,
[class*="chat-bubble"] {
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-base) ease;
}

.chat-launcher:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .chat-launcher:hover {
    transform: scale(1.05);
  }
}

/* Chat window: entrada desde el launcher, no desde center */
.chat-window,
.chat-modal {
  transform-origin: bottom right;
  transition:
    transform var(--t-slow) var(--ease-out),
    opacity var(--t-base) ease;
}

/* ============================================================
 * 8. POPOVERS / TOOLTIPS · transform-origin desde trigger
 * ============================================================ */

[role="tooltip"],
.tooltip,
.popover {
  transform-origin: var(--popover-origin, var(--radix-popover-content-transform-origin, center));
  transition:
    transform var(--t-fast) var(--ease-out),
    opacity var(--t-fast) ease;
}

/* ============================================================
 * 9. MODALES · Mantener centrado pero animación crisp
 * ============================================================ */

.modal,
.modal-content,
[role="dialog"]:not([role="tooltip"]) {
  transform-origin: center;
  transition:
    transform var(--t-slow) var(--ease-out),
    opacity var(--t-base) ease;
}

/* Backdrop fade más rápido */
.modal-backdrop,
.dialog-overlay {
  transition: opacity var(--t-base) ease;
}

/* ============================================================
 * 10. STAGGER ENTRANCE · Cards aparecen escalonados
 * ============================================================ */

.feature-grid > *,
.service-grid > *,
.case-grid > * {
  animation: polish-fade-up 400ms var(--ease-out) backwards;
}

.feature-grid > *:nth-child(1),
.service-grid > *:nth-child(1),
.case-grid > *:nth-child(1) { animation-delay: 0ms; }
.feature-grid > *:nth-child(2),
.service-grid > *:nth-child(2),
.case-grid > *:nth-child(2) { animation-delay: 60ms; }
.feature-grid > *:nth-child(3),
.service-grid > *:nth-child(3),
.case-grid > *:nth-child(3) { animation-delay: 120ms; }
.feature-grid > *:nth-child(4),
.service-grid > *:nth-child(4),
.case-grid > *:nth-child(4) { animation-delay: 180ms; }
.feature-grid > *:nth-child(5),
.service-grid > *:nth-child(5),
.case-grid > *:nth-child(5) { animation-delay: 240ms; }
.feature-grid > *:nth-child(6),
.service-grid > *:nth-child(6),
.case-grid > *:nth-child(6) { animation-delay: 300ms; }

@keyframes polish-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
 * 11. CTA HOVER · Press-down más natural
 * ============================================================ */

.cta-band,
.cta-section {
  --cta-shine-x: -150%;
}

@media (hover: hover) and (pointer: fine) {
  .cta-band .btn--accent:hover,
  .cta-section .btn--accent:hover {
    box-shadow: 0 12px 32px color-mix(in srgb, var(--accent, #22C55E) 35%, transparent);
  }
}

/* ============================================================
 * 12. SCROLL · Smooth elegante
 * ============================================================ */

/* 2026-11-04: scroll-behavior: smooth retirado (ver styles.css y script.js): los saltos por teclado van instantaneos. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
 * 13. SELECTION · Color de marca
 * ============================================================ */

::selection {
  background: color-mix(in srgb, var(--accent, #22C55E) 30%, transparent);
  color: var(--brand, #0F2A44);
}

/* ============================================================
 * 14. FOCUS RING UNIVERSAL · Solo con teclado
 * ============================================================ */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent, #22C55E);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Botones tienen su propio focus ring */
.btn:focus-visible {
  outline: 2px solid var(--accent, #22C55E);
  outline-offset: 3px;
}

/* ============================================================
 * 15. IMAGES · transición opacidad sutil
 *
 * NOTA: NO usar `img[loading="lazy"]:not(.loaded) { opacity: 0 }`
 * porque dejaría todas las imágenes lazy invisibles si no hay un
 * JS que añada `.loaded` cuando cargan. Mejor confiar en el
 * browser nativo.
 * ============================================================ */

img,
picture {
  transition: opacity var(--t-base) ease;
}

/* ============================================================
 * REDUCED MOTION · Respetar preferencias del usuario
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Mantener fades de opacidad (no causan motion sickness) */
  .modal,
  .modal-backdrop,
  [role="dialog"] {
    transition: opacity 200ms ease !important;
  }
}
/* assets/css/impeccable.css */
/* ============================================================
 * impeccable.css · Capa de delight sobre polish.css
 *
 * 5 mejoras de impacto alto siguiendo principios Emil Kowalski:
 *   1. View Transitions API · transición nativa entre páginas
 *   2. Hero choreography · entrada coreografiada con stagger
 *   3. Terminal typing · efecto máquina de escribir progresivo
 *   4. Magnetic CTA · botón primario sigue el cursor (decorativo)
 *   5. Page progress bar · barra fina superior durante navegación
 *
 * Filosofía:
 *   - Solo se ven en escritorio (puntero fino)
 *   - Se respetan prefers-reduced-motion
 *   - Cada efecto tiene un propósito claro
 *   - Pueden interrumpirse (transitions, no keyframes)
 * ============================================================ */

/* ============================================================
 * 1. VIEW TRANSITIONS API · transición nativa entre páginas
 *
 * Activado con <meta name="view-transition" ...> y en JS.
 * El navegador hace un fade-cross entre las páginas al navegar.
 * Soporte: Chrome 111+, Edge 111+, Safari 18+, Firefox próximamente.
 * Fallback: silencioso (navegación normal sin animación).
 * ============================================================ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: impeccable-fade-out 180ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

::view-transition-new(root) {
  animation: impeccable-fade-in 280ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes impeccable-fade-out {
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes impeccable-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header se mantiene fijo entre páginas (continuidad visual) */
.site-header {
  view-transition-name: site-header;
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
  mix-blend-mode: normal;
}

/* ============================================================
 * 2. HERO CHOREOGRAPHY · entrada coreografiada
 *
 * Los elementos del hero entran escalonados (eyebrow → title → sub
 * → CTAs → microcopy → terminal). Cada uno con un delay incremental.
 * Solo en escritorio para no quemar batería móvil.
 * ============================================================ */

@media (min-width: 768px) {
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-ctas,
  .hero-microcopy,
  .terminal {
    opacity: 0;
    animation: impeccable-hero-enter 700ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }

  .hero-eyebrow    { animation-delay: 100ms; }
  .hero-title      { animation-delay: 200ms; }
  .hero-sub        { animation-delay: 320ms; }
  .hero-ctas       { animation-delay: 440ms; }
  .hero-microcopy  { animation-delay: 560ms; }
  .terminal        { animation-delay: 700ms; }
}

@keyframes impeccable-hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* La línea verde del título crece desde la izquierda */
.accent-line {
  position: relative;
  display: inline-block;
}

.accent-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--accent, #22C55E);
  transform: scaleX(0);
  transform-origin: left center;
  animation: impeccable-line-grow 600ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 900ms;
  border-radius: 2px;
}

@keyframes impeccable-line-grow {
  to { transform: scaleX(1); }
}

/* ============================================================
 * 3. TERMINAL TYPING · líneas aparecen progresivamente
 *
 * Cada línea de la terminal aparece como si la estuviera tecleando.
 * Crea sensación de "el sistema está vivo".
 * Sincronizado con la entrada del hero.
 * ============================================================ */

@media (min-width: 768px) {
  .terminal .terminal-line {
    opacity: 0;
    transform: translateX(-8px);
    animation: impeccable-terminal-line 380ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }

  .terminal .terminal-line:nth-child(2) { animation-delay: 850ms; }
  .terminal .terminal-line:nth-child(3) { animation-delay: 1000ms; }
  .terminal .terminal-line:nth-child(4) { animation-delay: 1150ms; }
  .terminal .terminal-line:nth-child(5) { animation-delay: 1300ms; }
  .terminal .terminal-line:nth-child(6) { animation-delay: 1450ms; }
  .terminal .terminal-line:nth-child(7) { animation-delay: 1600ms; }
}

@keyframes impeccable-terminal-line {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Cursor parpadeante al final de la última línea */
.terminal .terminal-line:last-child::after {
  content: "▊";
  margin-left: 4px;
  color: var(--accent, #22C55E);
  animation: impeccable-cursor-blink 1.1s steps(2, start) infinite;
  animation-delay: 2s;
  opacity: 0;
}

@keyframes impeccable-cursor-blink {
  0%   { opacity: 1; }
  49%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
 * 4. MAGNETIC CTA · botón sigue ligeramente al cursor
 *
 * Style necesario; el JS aplica --mx/--my según mouse position.
 * Hardware accelerated (solo transform).
 * Solo en escritorio con puntero fino.
 * ============================================================ */

@media (hover: hover) and (pointer: fine) {
  .btn--accent.is-magnetic {
    --mx: 0px;
    --my: 0px;
    transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate3d(var(--mx), var(--my), 0);
  }

  .btn--accent.is-magnetic:active {
    transition: transform 100ms ease-out;
    transform: translate3d(var(--mx), var(--my), 0) scale(0.97);
  }

  /* La flecha también se desplaza pero el doble — parallax sutil */
  .btn--accent.is-magnetic .btn-arrow {
    --arrow-mx: calc(var(--mx) * 1.6);
    transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate3d(var(--arrow-mx), 0, 0);
  }

  .btn--accent.is-magnetic:hover .btn-arrow {
    transform: translate3d(calc(var(--arrow-mx) + 4px), 0, 0);
  }
}

/* ============================================================
 * 5. PAGE PROGRESS BAR · barra fina superior
 *
 * Aparece durante navegación entre páginas (View Transitions trigger).
 * Imita YouTube/GitHub para dar sensación de velocidad.
 * ============================================================ */

.impeccable-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--brand, #0F2A44),
    var(--accent, #22C55E)
  );
  width: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #22C55E) 50%, transparent);
}

.impeccable-progress.is-loading {
  opacity: 1;
  animation: impeccable-progress-grow 8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.impeccable-progress.is-done {
  opacity: 0;
  width: 100% !important;
  transition: width 200ms ease, opacity 300ms ease 200ms;
}

@keyframes impeccable-progress-grow {
  0%   { width: 0; }
  10%  { width: 35%; }
  40%  { width: 70%; }
  70%  { width: 85%; }
  100% { width: 92%; }
}

/* ============================================================
 * 6. CHAT LAUNCHER vs STICKY CTA · evitar solapamiento
 *
 * Cuando aparece la sticky-cta-bar (impact.js añade has-sticky-cta
 * al body), el chat launcher se sube para no chocar.
 * Transición suave para que no salte de golpe.
 * ============================================================ */

.igc-launcher,
.chat-launcher,
[class*="chat-bubble-launcher"],
#chat-launcher,
.chatbot-launcher {
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    bottom 280ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms ease;
}

/* 23-oct-2026: antes subía un fijo (-72 px escritorio, -128 px móvil) que no seguía el alto real
   de la barra y quedaba a otra altura que el botón "Cookies". Ahora impact.js publica el alto en
   --imp-cta-h y el chat y "Cookies" se apoyan los dos 16 px por encima de la barra. */
body.has-sticky-cta .igc-launcher,
body.has-sticky-cta .chat-launcher,
body.has-sticky-cta [class*="chat-bubble-launcher"],
body.has-sticky-cta #chat-launcher,
body.has-sticky-cta .chatbot-launcher {
  bottom: calc(var(--imp-cta-h, 76px) + 16px);
}

/* Móvil + sticky CTA visible: el .igc-launcher se colapsa a círculo de icono.
   La barra ya tiene su propio botón ("Empezar ahora"), un pill de 240px de
   ancho encima es ruido y obliga a subirlo aún más. */
@media (max-width: 540px) {
  body.has-sticky-cta .igc-launcher {
    padding: 0;
    width: 52px;
    justify-content: center;
    gap: 0;
  }
  body.has-sticky-cta .igc-launcher > span:last-child {
    display: none;
  }
}

/* ============================================================
 * 7. STICKY CTA · más sutil para no competir con el launcher
 * ============================================================ */

.imp-sticky-cta {
  /* Hacemos hueco a la derecha para el chat launcher (~70px ancho + 24px margen) */
  padding-right: clamp(0px, 100px, 110px);
}

@media (max-width: 900px) {
  .imp-sticky-cta {
    padding-right: 80px;
  }
}

/* < 640px el launcher ya no va AL LADO de la barra sino ENCIMA (ver bloque 6):
   el hueco reservado a la derecha solo aplastaba el texto en una columna
   estrecha. */
@media (max-width: 640px) {
  .imp-sticky-cta {
    padding-right: 0;
  }
}

/* En móvil, ocultar el texto del launcher cuando el sticky CTA es visible
 * (el sticky CTA ya tiene su propio botón "Diagnóstico", no necesitamos otro) */
@media (max-width: 540px) {
  body.has-sticky-cta .chat-launcher .chat-launcher-text,
  body.has-sticky-cta [class*="chat-bubble-launcher"] span {
    display: none;
  }
}

/* ============================================================
 * 8. STAT NUMBERS · counting tabular para evitar layout shift
 * ============================================================ */

.stat-num,
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
 * 9. DEMO BUTTON · cyan → verde brand (coherencia paleta)
 *
 * El botón "Reproducir demo" usa --d-brand cyan que rompe la paleta.
 * Lo unificamos al verde brand del resto de la web.
 * ============================================================ */

.demo-stage .demo-play-btn {
  background: var(--accent, #22C55E) !important;
  color: #052e16 !important;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent, #22C55E) 35%, transparent),
              0 0 0 0 color-mix(in srgb, var(--accent, #22C55E) 40%, transparent);
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 280ms ease,
    background-color 200ms ease;
  position: relative;
  animation: impeccable-pulse-glow 2.4s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .demo-stage .demo-play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 40px color-mix(in srgb, var(--accent, #22C55E) 50%, transparent),
                0 0 0 8px color-mix(in srgb, var(--accent, #22C55E) 12%, transparent);
    animation: none;
  }
}

.demo-stage .demo-play-btn:active {
  transform: translateY(0) scale(0.97);
}

@keyframes impeccable-pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent, #22C55E) 35%, transparent),
                0 0 0 0 color-mix(in srgb, var(--accent, #22C55E) 40%, transparent);
  }
  50% {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent, #22C55E) 35%, transparent),
                0 0 0 12px color-mix(in srgb, var(--accent, #22C55E) 0%, transparent);
  }
}

/* ============================================================
 * 10. STICKY CTA · más sutil, no compite con el hero
 *
 * El bar actual es muy opaco y aparece de inmediato. Lo hacemos:
 *   - backdrop-blur para integrarse con la página
 *   - bordes redondeados arriba (no full-width agresivo)
 *   - padding interior más cómodo
 *   - el botón CTA con la misma personalidad que el hero
 * ============================================================ */

.imp-sticky-cta {
  /* Barra exterior transparente: solo se ve el pill interior centrado.
     Sin fondo full-width ni blur (evita los bloques oscuros laterales). */
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  box-shadow: none;
}

.imp-sticky-cta-btn {
  background: #0F2A44 !important;
  color: #5CD387 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  font-weight: 700;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms ease,
    background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .imp-sticky-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 42, 68, 0.4);
    border-color: #22C55E !important;
  }
}

.imp-sticky-cta-btn:active {
  transform: scale(0.97);
}

.imp-sticky-cta-close {
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.imp-sticky-cta-close:hover {
  opacity: 1;
}

/* ============================================================
 * 11. TRUST STRIP · barra de credibilidad post-hero
 *
 * Se inyecta automáticamente si no existe ya (ver impeccable.js).
 * Logos/badges de tecnologías + garantías rápidas.
 * Aumenta conversión por trust signal denso.
 * ============================================================ */

.impeccable-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 20px clamp(16px, 4vw, 40px);
  border-top: 1px solid color-mix(in srgb, var(--border, #1f2937) 50%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border, #1f2937) 50%, transparent);
  background: color-mix(in srgb, var(--bg, #000) 80%, transparent);
  flex-wrap: wrap;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted, #94a3b8) 95%, transparent);
}

.impeccable-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: impeccable-trust-in 500ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  white-space: nowrap;
}

.impeccable-trust-item:nth-child(1) { animation-delay: 1.2s; }
.impeccable-trust-item:nth-child(2) { animation-delay: 1.32s; }
.impeccable-trust-item:nth-child(3) { animation-delay: 1.44s; }
.impeccable-trust-item:nth-child(4) { animation-delay: 1.56s; }
.impeccable-trust-item:nth-child(5) { animation-delay: 1.68s; }
.impeccable-trust-item:nth-child(6) { animation-delay: 1.80s; }

@keyframes impeccable-trust-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.impeccable-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent, #22C55E);
  flex-shrink: 0;
}

.impeccable-trust-item strong {
  color: var(--text, #fff);
  font-weight: 600;
}

@media (max-width: 640px) {
  .impeccable-trust-strip {
    font-size: 10.5px;
    padding: 16px 12px;
    gap: 14px;
  }
}

/* ============================================================
 * 12. NAV LINK ACTIVE · subrayado más prominente
 *
 * El link activo (página actual) debe destacar claramente.
 * El polish.css ya añade el underline animado, aquí lo refinamos.
 * ============================================================ */

.nav-link.is-active {
  color: var(--text, #fff);
  font-weight: 600;
}

/* Activo siempre verde (también en táctil, donde no aplica el bloque hover) */
.nav-link.is-active::after {
  background: var(--accent, #22C55E);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link.is-active::after {
    background: var(--accent, #22C55E);
    height: 2px;
    opacity: 1;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #22C55E) 50%, transparent);
  }
}

/* ============================================================
 * 13. HERO CTA · pulso de respiración para guía visual
 *
 * El CTA primario tiene un glow que respira sutilmente para
 * atraer el ojo SIN ser invasivo. Se detiene en hover.
 * Solo en escritorio.
 * ============================================================ */

/* 05-nov-2026 · "respiracion" infinita del CTA retirada: un boton que late
   compite con el titular y con el resto de la pagina. Ver "SISTEMA DE BOTONES" en styles.css. */

/* ============================================================
 * 14. HEADER BAR · estado scrolled con borde más denso
 *
 * Cuando hay scroll, el header se vuelve más sólido para mejor
 * contraste con el contenido. polish.css ya añade transition.
 * Aquí definimos el estado.
 * ============================================================ */

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg, #000) 92%, transparent) !important;
  border-bottom-color: color-mix(in srgb, var(--accent, #22C55E) 12%, transparent) !important;
  box-shadow: 0 4px 24px color-mix(in srgb, #000 25%, transparent);
}

/* ============================================================
 * 15. HERO TITLE · cursor de typing sutil tras la accent-line
 *
 * Añade un cursor parpadeante después de "departamento" — solo
 * después de que el accent-line haya terminado su animación.
 * Personalidad tech sin sobrecargar.
 * ============================================================ */

.accent-line::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 8%;
  bottom: 18%;
  width: 4px;
  background: var(--accent, #22C55E);
  opacity: 0;
  animation:
    impeccable-cursor-appear 200ms ease forwards 1.7s,
    impeccable-cursor-blink-hero 1.1s steps(2, start) infinite 1.9s;
  border-radius: 2px;
}

@keyframes impeccable-cursor-appear {
  to { opacity: 1; }
}

@keyframes impeccable-cursor-blink-hero {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================================
 * 16. SCROLL INDICATOR · mini chevron al final del hero
 *
 * Sutil indicación de "hay más debajo" — sube conversión
 * porque guía al usuario sin pedirlo explícitamente.
 * ============================================================ */

.impeccable-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--text-muted, #94a3b8) 60%, transparent);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation:
    impeccable-scroll-hint-appear 600ms ease forwards 2.4s,
    impeccable-scroll-hint-bounce 1.8s ease-in-out infinite 3s;
}

.impeccable-scroll-hint svg {
  width: 100%;
  height: 100%;
}

@keyframes impeccable-scroll-hint-appear {
  to { opacity: 1; }
}

@keyframes impeccable-scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
  .impeccable-scroll-hint { display: none; }
}

/* ============================================================
 * REDUCED MOTION · todo se simplifica a fades
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-ctas,
  .hero-microcopy,
  .terminal,
  .terminal .terminal-line,
  .accent-line::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }

  .btn--accent.is-magnetic {
    --mx: 0px;
    --my: 0px;
    transform: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: impeccable-fade-only 200ms ease forwards;
  }
}

@keyframes impeccable-fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* assets/css/cookies-banner.css */
/* ============================================================
 * Cookie Consent Banner · IG Tech Advisory
 * RGPD-compliant · Consent Mode v2 integration
 * ============================================================ */

.ck-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10050;
  width: calc(100% - 48px);
  max-width: 760px;
  background: #fff;
  color: #0F2A44;
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 18px 48px rgba(15, 42, 68, 0.18), 0 4px 12px rgba(15, 42, 68, 0.06);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 22px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1),
              opacity 220ms ease,
              visibility 0s linear 360ms;
}

.ck-banner.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1),
              opacity 220ms ease,
              visibility 0s linear 0s;
}

.ck-body {
  min-width: 0;
}

.ck-title {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ck-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
}

.ck-text {
  margin: 0;
  color: #5C6B7A;
  font-size: 13px;
}

.ck-text a {
  color: #0F2A44;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.ck-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.ck-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1),
              background-color 180ms ease,
              border-color 180ms ease;
  white-space: nowrap;
  line-height: 1.2;
}

.ck-btn:active {
  transform: scale(0.96);
}

.ck-btn--ghost {
  background: transparent;
  color: #5C6B7A;
  border-color: #E4E4E7;
}

.ck-btn--ghost:hover {
  background: #FAFAFA;
  border-color: #5C6B7A;
  color: #0F2A44;
}

.ck-btn--accent {
  background: #15803D;
  color: #fff;
}

.ck-btn--accent:hover {
  background: #166534;
}

@media (hover: hover) and (pointer: fine) {
  .ck-btn--accent:hover {
    transform: translateY(-1px);
  }
}

.ck-btn:focus-visible {
  outline: 2px solid #0F2A44;
  outline-offset: 2px;
}

/* ============================================
 * Modal de preferencias detalladas
 * ============================================ */

.ck-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 68, 0.42);
  backdrop-filter: blur(6px);
  z-index: 10040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.ck-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.ck-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  z-index: 10041;
  width: calc(100% - 48px);
  max-width: 540px;
  max-height: 80vh;
  background: #fff;
  color: #0F2A44;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1),
              opacity 220ms ease,
              visibility 0s linear 280ms;
  box-shadow: 0 24px 64px rgba(15, 42, 68, 0.28);
}

.ck-modal.is-open {
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
  transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1),
              opacity 220ms ease,
              visibility 0s linear 0s;
}

.ck-modal-head {
  padding: 22px 28px 14px;
  border-bottom: 1px solid #F3F4F6;
}

.ck-modal-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.ck-modal-head p {
  margin: 0;
  font-size: 13.5px;
  color: #5C6B7A;
  line-height: 1.5;
}

.ck-modal-body {
  padding: 14px 28px;
  overflow-y: auto;
  flex: 1;
}

.ck-cat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
}

.ck-cat:last-child {
  border-bottom: 0;
}

.ck-cat-info {
  flex: 1;
  min-width: 0;
}

.ck-cat-info h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}

.ck-cat-info p {
  margin: 0;
  font-size: 12.5px;
  color: #5C6B7A;
  line-height: 1.45;
}

.ck-cat-required {
  font-size: 11px;
  font-weight: 700;
  color: #22C55E;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Toggle switch */
.ck-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ck-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ck-toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 22px;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.ck-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ck-toggle input:checked + .ck-toggle-slider {
  background: #22C55E;
}

.ck-toggle input:checked + .ck-toggle-slider::before {
  transform: translateX(18px);
}

.ck-toggle input:disabled + .ck-toggle-slider {
  background: #22C55E;
  opacity: 0.7;
  cursor: not-allowed;
}

.ck-modal-foot {
  padding: 18px 28px 22px;
  border-top: 1px solid #F3F4F6;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #FAFAFA;
}

@media (max-width: 640px) {
  .ck-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
    bottom: 16px;
    width: calc(100% - 32px);
  }
  .ck-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .ck-actions .ck-btn {
    flex: 1;
    min-width: 0;
  }
  .ck-modal-foot {
    flex-direction: column-reverse;
  }
  .ck-modal-foot .ck-btn {
    width: 100%;
  }
}

/* Botón flotante "Cookies" para reabrir preferencias después de aceptar */
.ck-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9985;
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 999px;
  padding: 7px 13px 7px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #5C6B7A;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(15, 42, 68, 0.08);
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease, color 180ms ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.ck-reopen.is-visible {
  display: inline-flex;
}

.ck-reopen:hover {
  border-color: #0F2A44;
  color: #0F2A44;
}

.ck-reopen:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-modal, .ck-modal-backdrop, .ck-toggle-slider, .ck-toggle-slider::before {
    transition: opacity 200ms ease, visibility 0s linear 0s !important;
  }
  .ck-banner.is-open { transform: translateX(-50%) translateY(0); }
  .ck-modal.is-open { transform: translate(-50%, -50%); }
}

/* Con la barra fija inferior visible (impact.js pone has-sticky-cta en el body)
   el boton "Cookies" quedaba encima de su texto: 76 px de alto en escritorio,
   68 px en movil. Se sube con bottom (no transform: :active ya usa scale). */
.ck-reopen {
  transition: bottom 280ms cubic-bezier(0.23, 1, 0.32, 1), transform 120ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease, color 180ms ease;
}
/* 23-oct-2026: misma altura que el chat (impeccable.css), con el alto real de la barra */
body.has-sticky-cta .ck-reopen {
  bottom: calc(var(--imp-cta-h, 76px) + 16px);
}

/* Por encima del chat (.igc-launcher z 9999, panel 10000): antes el botón flotante del chat
   tapaba "Aceptar todas" en móvil. Mientras el banner está abierto, el chat y la barra CTA se apartan. */
@media (max-width: 640px) {
  body:has(.ck-banner.is-open) .igc-launcher,
  body:has(.ck-banner.is-open) .imp-sticky-cta {
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }
  /* Tres botones en una fila se cortaban ("Aceptar toda…"): Aceptar arriba a ancho completo,
     Configurar y Solo necesarias debajo, a medias. Todos >= 44px de alto. */
  .ck-actions { gap: 8px; }
  .ck-actions .ck-btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
    white-space: normal;
    line-height: 1.2;
  }
  .ck-actions #ck-accept { flex-basis: 100%; order: -1; }
}

/* Móvil compacto (07-oct): de ~250 px a ~170 px de pantalla */
@media (max-width: 640px) {
  .ck-banner { padding: 14px 16px; }
  .ck-title { font-size: 14px; margin-bottom: 4px; }
  .ck-text { font-size: 12.5px; line-height: 1.4; margin-bottom: 10px; }
  .ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ck-actions .ck-btn--accent { grid-column: 1 / -1; order: -1; }
  .ck-btn { min-height: 44px; }
}

/* ============================================================
 * 04-nov-2026 · Banner mas compacto (auditoria web publica).
 * Antes: 760x149 en escritorio (tapaba las tarjetas del hero) y 246 px de 812 en movil
 * (~30 % de la pantalla, con los CTA de las landings de sector debajo).
 * Titulo y texto en una sola linea de flujo; en movil el titulo queda solo para lectores
 * de pantalla (aria-labelledby lo sigue leyendo) y se quitan los huecos entre bloques.
 * El chat y la barra CTA se apartan mientras el banner esta abierto en TODOS los anchos
 * (antes solo <= 640 px: en escritorio la barra sticky se montaba debajo del banner).
 * ============================================================ */
.ck-banner { max-width: 920px; padding: 14px 20px; gap: 12px 20px; }
.ck-body { display: block; }
.ck-title { display: inline-flex; margin: 0 8px 0 0; vertical-align: baseline; }
.ck-text { display: inline; }

body:has(.ck-banner.is-open) .igc-launcher,
body:has(.ck-banner.is-open) .imp-sticky-cta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

@media (max-width: 640px) {
  .ck-banner { padding: 12px 14px; bottom: 8px; width: calc(100% - 16px); gap: 10px; }
  .ck-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ck-text { display: block; margin: 0; font-size: 12.5px; line-height: 1.4; }
}
/* assets/css/home.css */
/* home.css · estilos SOLO de la portada (index.php). 2026-10-13.
 * - (A) banda #video-promo y (B) enlace del hero con <dialog> del vídeo promo
 * - franja "Calculadora ROI" (#it-deep)
 * - ritmo de fondos: proceso en banda oscura, calculadora en tinte verde
 * - cifras de precio fluidas (antes 48px en línea: "Desde 1.500€/mes" desbordaba)
 * Tokens de styles.css; nada de colores nuevos. */

/* ---------- hero · H1 ajustado a su columna (2026-10-13) ----------
 * Antes: clamp(2.5rem, 6.5vw, 5rem) → 80px fijos desde ~1230px de ancho en una
 * columna de 620px: "Tu departamento IT, / sin el departamento." partía en 4-5
 * líneas y empujaba los CTA bajo el pliegue. Ahora el tamaño sale del ancho de
 * la propia columna (cqi) para que cada verso quepa en UNA línea, y del alto
 * de pantalla (vh) para portátiles bajos. Factores medidos por idioma:
 * línea más larga ES 8,9em · CA 9,7em · EN 10,6em.
 * ≤900px manda la regla móvil de styles.css (no se toca). */
@media (min-width: 901px) {
  .hero-content { container-type: inline-size; }
  .hero-title { font-size: clamp(2.75rem, min(10.8cqi, 8.5vh), 4.5rem); }
  html[lang^="ca"] .hero-title { font-size: clamp(2.5rem, min(9.9cqi, 8.5vh), 4.25rem); }
  html[lang^="en"] .hero-title { font-size: clamp(2.5rem, min(9.1cqi, 8vh), 4rem); }
}

/* ---------- A · banda ---------- */
.pv-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #12304D 0%, var(--color-primary-600) 40%, var(--color-primary-900) 100%);
  color: var(--color-neutral-0);
}
.pv-band::before { /* rejilla 80px al 6 % en verde, como el vídeo y el póster de IG 360 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, .06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.pv-band .container { position: relative; }
.pv-head { text-align: center; max-width: 820px; margin: 0 auto; }
.pv-eyebrow { color: var(--color-accent-400); }
.pv-title { color: var(--color-neutral-0); }
.pv-sub { color: rgba(255, 255, 255, .68); margin-inline: auto; }

.pv-frame {
  position: relative;
  margin: 48px auto 0;
  max-width: 1040px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-primary-900);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 80px -20px rgba(2, 6, 15, .7),
    0 0 120px -30px rgba(34, 197, 94, .35);
}
.pv-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--color-primary-900);
}

/* botón de play sobre el póster; desaparece al empezar */
.pv-play {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 8px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-accent-400);
  color: var(--color-neutral-950);
  font: 700 17px/1 var(--font-display);
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(34, 197, 94, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
.pv-play:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 0 56px rgba(34, 197, 94, .6); }
}
.pv-play:focus-visible { outline: 3px solid var(--color-neutral-0); outline-offset: 3px; }
.pv-play-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-neutral-950);
  color: var(--color-accent-400);
}
.pv-play-dur { font: 500 14px/1 var(--font-mono); opacity: .7; margin-left: 4px; }
.pv-frame.is-playing .pv-play { display: none; }

/* ---------- B · enlace del hero ---------- */
.pv-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--color-neutral-0);
  font: 600 15px/1.2 var(--font-body);
  text-decoration: none;
  opacity: .9;
}
.pv-hero-link:hover { opacity: 1; }
.pv-hero-link:hover span[data-i18n] { text-decoration: underline; text-underline-offset: 4px; }
.pv-hero-link-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent-400);
  color: var(--color-accent-400);
}

/* ---------- modal ---------- */
.pv-dialog {
  width: min(1200px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: visible;
  background: var(--color-primary-900);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.pv-dialog::backdrop { background: rgba(2, 6, 15, .82); backdrop-filter: blur(4px); }
.pv-dialog .pv-video { border-radius: 16px; }
.pv-close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--color-neutral-0);
  cursor: pointer;
}
.pv-close:hover { background: rgba(255, 255, 255, .2); }
.pv-close:focus-visible { outline: 3px solid var(--color-accent-400); outline-offset: 2px; }

/* ---------- móvil ---------- */
@media (max-width: 640px) {
  .pv-frame { margin-top: 32px; border-radius: 12px; }
  /* en móvil solo el círculo de play, abajo a la derecha: no tapa el anillo "One" del póster */
  .pv-play { left: auto; right: 12px; top: 12px; bottom: auto; transform: none; min-height: 48px; padding: 6px; gap: 0; }
  @media (hover: hover) and (pointer: fine) {
.pv-play:hover { transform: none; }
}
  .pv-play-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pv-play-ico { width: 40px; height: 40px; }
  .pv-dialog { width: 100vw; border-radius: 0; }
  .pv-dialog .pv-video { border-radius: 0; }
  .pv-close { top: auto; bottom: calc(100% + 8px); right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-play, .pv-play:hover { transition: none; }
}

/* ---------- precios: cifra fluida ---------- */
.pricing-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-wrap: balance;
}
.pricing-suffix {
  font-size: .5em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-neutral-600);
  white-space: nowrap;
}

/* ============================================================
 * REORGANIZACIÓN taste-skill (2026-10-13)
 * Tres bloques de color: oscuro (hero + confianza + vídeo),
 * claro (servicios+precios, IG One 360, casos, testimonios,
 * proceso, FAQ) y oscuro (diagnóstico + pie).
 * Radios: 12px en tarjetas, píldora en botones.
 * ============================================================ */

/* ---------- franja de confianza (dentro del hero, oscuro) ---------- */
.home-trust {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 18px 24px;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--color-neutral-600);
  font-size: 15px;
}
.home-trust strong { color: var(--color-neutral-900); font-weight: 600; }
/* 2026-11-03: la franja sale del hero y pasa a banda clara propia (el hero solo lleva propuesta + CTA) */
.home-trust-band { background: var(--color-neutral-50); border-bottom: 1px solid var(--color-neutral-200); }
@media (max-width: 760px) {
  .home-trust { justify-content: flex-start; padding-inline: 16px; font-size: 14px; }
  .home-trust li { flex: 1 1 45%; }
}

/* ---------- vídeo: firma de marca bajo el reproductor ---------- */
.pv-firma {
  max-width: 60ch;
  margin: 28px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, .66);
  font-size: 16px;
  line-height: 1.55;
}
.pv-frame { border-radius: 12px; }

/* ---------- anclas antiguas (#pilares, #pricing) ---------- */
.home-anchor { position: relative; top: -80px; display: block; height: 0; }
#it-deep { scroll-margin-top: 96px; }

/* ---------- servicios + precios: bento ---------- */
.home-svc-head { max-width: 760px; }
.home-svc-head .lead { margin-top: 16px; color: var(--color-neutral-600); }
.home-bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 48px;
}
.hb-cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  background: var(--color-neutral-0);
}
.hb-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.hb-sub { margin: 0; color: var(--color-neutral-600); line-height: 1.5; max-width: 52ch; }
.hb-note, .hb-foot { margin: 0; font-size: 14px; color: var(--color-neutral-600); }
.hb-foot { font-size: 13px; font-style: italic; }
.hb-commit { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-accent-700); }
.hb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hb-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.hb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230A0C10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.hb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.hb-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hb-link--cta { margin-top: auto; }
.hb-link .btn-arrow { color: var(--color-accent-600); }

/* IT Gestionado: la celda grande, en navy */
.hb-it {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--color-primary-600) 0%, #07182A 100%);
  border-color: transparent;
  color: var(--color-neutral-0);
  padding: 36px;
  gap: 22px;
}
.hb-it .hb-name { font-size: 1.6rem; color: var(--color-neutral-0); }
.hb-it .hb-sub, .hb-it .hb-note { color: rgba(255, 255, 255, .7); }
.hb-it .hb-note a { color: var(--color-accent-300); }
.hb-it .hb-foot { color: rgba(255, 255, 255, .5); }
.hb-it .pricing-amount { color: var(--color-neutral-0); font-size: clamp(2.5rem, 3.2vw, 3.5rem); }
.hb-it .pricing-suffix { color: rgba(255, 255, 255, .6); }
.hb-it .hb-list li { color: rgba(255, 255, 255, .88); }
.hb-it .hb-link { color: var(--color-neutral-0); }
.hb-it .hb-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Desarrollo: celda ancha con tinte verde */
.hb-dev {
  grid-column: 2 / span 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  background: var(--color-accent-50);
  border-color: color-mix(in srgb, var(--color-accent-400) 25%, transparent);
}
.hb-dev > div { display: flex; flex-direction: column; gap: 14px; }

.home-svc .pricing-amount { font-size: clamp(1.9rem, 2.2vw, 2.4rem); }

@media (max-width: 1000px) {
  .home-bento { grid-template-columns: 1fr 1fr; }
  .hb-it { grid-column: 1 / -1; grid-row: auto; }
  .hb-dev { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .home-bento { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .hb-dev { grid-template-columns: 1fr; }
  .hb-cell, .hb-it { padding: 24px; }
}

/* ---------- IG One 360 compacto ---------- */
.home-ig360 { background: var(--color-neutral-50); border-block: 1px solid var(--color-neutral-100); }
.home-ig360-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.home-ig360-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.home-ig360-copy h2 { margin: 0; max-width: 24ch; }
.home-ig360-plans { margin: 4px 0 0; display: grid; gap: 10px; width: 100%; }
.home-ig360-plans > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 4px 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  background: var(--color-neutral-0);
}
.home-ig360-plans dt { font-weight: 700; align-self: center; }
.home-ig360-plans dd { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--color-neutral-600); }
.home-ig360-plans dd strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); letter-spacing: -0.02em; }
.home-ig360-shot { position: relative; margin: 0; }
.home-ig360-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-neutral-200);
  box-shadow: 0 24px 60px -24px rgba(15, 42, 68, .35);
}
.home-ig360-shot figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FDE68A;
  color: var(--color-primary-600);
  font: 600 12px/1.3 var(--font-mono);
}
@media (max-width: 900px) {
  .home-ig360-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- una sola escala de radios en la portada ---------- */
.case-card, .testimonial-card { border-radius: 12px; }

/* ---------- secciones claras seguidas: sin doble padding ----------
 * casos, testimonios y proceso comparten fondo; 128+128 px entre ellas
 * se leía como un hueco vacío. */
#testimonios, #proceso { padding-top: 0; }
.home-trust a { color: inherit; text-decoration: none; }
.home-trust a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hb-note a { white-space: nowrap; }

/* 2026-10-13 · fix tras subir: con 94vw de ancho el modal no cabía en pantallas de 900 px de alto,
 * tocaba el borde superior y la X (a -52px) quedaba fuera de la pantalla. Ahora el modal deja siempre
 * 64 px libres arriba y abajo, así la X cabe encima del vídeo sin tapar nada y sin salirse. */
.pv-dialog {
  width: min(1200px, 94vw, calc((100dvh - 128px) * 16 / 9));
  margin: auto;
}
.pv-close,
.pv-dialog .pv-close { top: -52px; bottom: auto; right: 0; }

/* 2026-10-13 · todo el póster del vídeo es clicable (home.js): el puntero y el botón lo anuncian */
.pv-frame:not(.is-playing) { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
.pv-frame:not(.is-playing):hover .pv-play { transform: translateX(-50%) translateY(-2px); box-shadow: 0 0 56px rgba(34, 197, 94, .6); }
}
@media (max-width: 640px) {
  @media (hover: hover) and (pointer: fine) {
.pv-frame:not(.is-playing):hover .pv-play { transform: none; }
}
}
/* con el vídeo en pantalla la barra fija baja y no tapa el play (home.js añade .pv-on-screen) */
.pv-on-screen .imp-sticky-cta.is-visible { transform: translateY(100%); pointer-events: none; }

/* ============================================================
   2026-10-30 · MIX 3D · renders de branding/3d-web en la home
   a) diapositiva 1 del carrusel del hero
   b) banda "Dentro de IT gestionado" (.svc3d) bajo el bento
   ============================================================ */
.hero-3d-slide { display: flex; align-items: center; justify-content: center; }
.hero-3d { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 480px; }
.hero-3d::before {
  content: ""; position: absolute; inset: 12% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(34 197 94 / 0.16), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-3d img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 56% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 62% at 56% 50%, #000 58%, transparent 100%);
  animation: hero3dFloat 9s ease-in-out infinite;
}
@keyframes hero3dFloat {
  0%, 100% { transform: translateY(0) scale(1.04); }
  50%      { transform: translateY(-10px) scale(1.06); }
}
@media (max-width: 900px) {
  .hero-3d { aspect-ratio: 16 / 10; max-height: 320px; }
  .hero-3d img { object-position: 60% 50%; }
}
@media (prefers-reduced-motion: reduce) { .hero-3d img { animation: none; } }

.svc3d { background: var(--bg-inverted); color: var(--text-inverted); position: relative; overflow: hidden; }
.svc3d::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 50% 0%, rgb(34 197 94 / 0.10), transparent 70%);
}
.svc3d .container { position: relative; }
.svc3d-head { max-width: 62ch; }
.svc3d-head .eyebrow { color: var(--color-success-500, #22C55E); }
.svc3d-head .display-md { color: var(--text-inverted); margin-top: 12px; }
.svc3d-head .lead { color: rgb(232 239 248 / 0.72); margin-top: 12px; }
.svc3d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.svc3d-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #0B2138 0%, #07182A 100%);
  border: 1px solid rgb(255 255 255 / 0.08); border-radius: 16px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.svc3d-card:hover, .svc3d-card:focus-visible {
  transform: translateY(-6px); border-color: rgb(34 197 94 / 0.45);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(34 197 94 / 0.15);
  outline: none;
}
.svc3d-fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #07182A; }
.svc3d-fig img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) and (pointer: fine) {
.svc3d-card:hover .svc3d-fig img { transform: scale(1.04); }
}
.svc3d-body { padding: 4px 24px 26px; display: flex; flex-direction: column; gap: 10px; margin-top: -24px; position: relative; }
.svc3d-name { font-family: var(--font-display, 'Inter Tight', Inter, sans-serif); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.svc3d-sub { font-size: .95rem; line-height: 1.55; color: rgb(232 239 248 / 0.72); }
.svc3d-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--color-success-500, #22C55E); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.svc3d-foot { margin-top: 28px; color: rgb(232 239 248 / 0.72); font-size: .95rem; }
.svc3d-foot a { color: var(--color-success-500, #22C55E); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .svc3d-grid { grid-template-columns: 1fr; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .svc3d-card, .svc3d-fig img { transition: none; } }

/* ============================================================
   2026-10-30 D · HERO adaptado a la altura de pantalla
   En portátiles/monitores al 125 % (1536x864 efectivos) el hero llenaba todo
   el pliegue: 128 px de padding arriba + diapositiva de 420-480 px + 96 px
   abajo + franja de confianza. Ahora padding y diapositiva escalan con vh
   (solo en la maquetación de 2 columnas; móvil no cambia). Objetivo: que el
   bento de precios asome bajo el pliegue a 864 px de alto.
   ============================================================ */
@media (min-width: 901px) {
  .hero {
    padding-top: clamp(40px, 6vh, 96px);
    padding-bottom: clamp(28px, 4vh, 64px);
  }
  .hero-orbit-svg { max-width: min(420px, 44vh); }
  .hero-3d {
    width: min(100%, calc(min(480px, 44vh) * 4 / 3));
    max-height: none;
    margin-inline: auto;
  }
}

/* ============================================================
   2026-11-03 · HERO VISUAL · render 3D + los 5 servicios conectados a "One"
   Sustituye al carrusel de 5 diapositivas. Las etiquetas son enlaces reales
   (lista <ul>); el movimiento es decoración y se apaga con reduced-motion:
   - entrada: la imagen aparece, "One" salta, las líneas se dibujan hacia él
   - paquetes verdes viajan de cada servicio a One (todo converge en un interlocutor)
   - cada 1,6 s se ilumina un servicio y su línea, por turnos
   - parallax suave con puntero fino (variables --px/--py puestas por index.php)
   ============================================================ */
.hero-visual { margin: 0; position: relative; min-width: 0; }
.hv-box {
  --px: 0;
  --py: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: min(560px, calc(46vh * 4 / 3));
  margin-inline: auto;
  overflow: hidden;
}
/* el escenario es la propia imagen (recortada a 4:3, sin la franja vacía de la izquierda): los pines (en %)
   caen siempre sobre su objeto. Sin escalados en reposo: un scale() re-muestrea la imagen y la ablanda. */
.hv-stage { position: absolute; top: 0; right: 0; height: 100%; width: 100%; max-width: none; /* una regla global pone max-width:100% a los div */ }
.hv-depth { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hv-depth--back  { transform: translate3d(calc(var(--px) * -6px),  calc(var(--py) * -4px) , 0); }
.hv-depth--front { transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -8px), 0); }

.hv-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* difumina los 4 bordes de la caja: el fondo de la imagen es más azulado que el del hero y, con la máscara radial, se veía el rectángulo */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 92%, transparent 100%);
          mask-composite: intersect;
  image-rendering: auto;
  animation: hvIn 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes hvIn    { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }

/* líneas servicio → One */
.hv-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-line {
  stroke: #22C55E;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .38;
  animation-name: hvDraw, hvLineTurn;
  animation-duration: .9s, 8s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1), linear;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
  animation-delay: calc(.7s + var(--i) * .12s), calc(2.4s + var(--i) * 1.6s);
}
@keyframes hvDraw { to { stroke-dashoffset: 0; } }
@keyframes hvLineTurn {
  0%, 2%   { opacity: .38; }
  4%, 18%  { opacity: 1; }
  22%, 100% { opacity: .38; }
}
.hv-packet { fill: #86EFAC; }

/* "One": el nodo común */
.hv-one {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--color-accent-400);
  color: var(--color-neutral-950);
  font: 800 17px/1 var(--font-display);
  letter-spacing: -.01em;
  box-shadow: 0 0 0 5px rgb(34 197 94 / .16), 0 10px 24px -8px rgb(0 0 0 / .6);
  animation: hvPop .7s cubic-bezier(.34, 1.56, .64, 1) .5s both;
}
.hv-one::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgb(34 197 94 / .55);
  animation: hvRing 3.2s ease-out 2s infinite;
}
@keyframes hvPop  { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes hvRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* etiquetas (desktop): punto sobre el objeto + chip enlazado */
.hv-pins { list-style: none; margin: 0; padding: 0; }
.hv-item {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 0;
  height: 0;
  animation: hvItemIn .6s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.9s + var(--i) * .1s);
}
@keyframes hvItemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hv-pin { position: absolute; inset: 0; display: block; color: var(--color-neutral-0); text-decoration: none; }
.hv-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--color-accent-400);
  box-shadow: 0 0 0 4px rgb(34 197 94 / .22);
  animation: hvDotTurn 8s linear infinite;
  animation-delay: calc(2.4s + var(--i) * 1.6s);
}
@keyframes hvDotTurn {
  0%, 2%    { transform: scale(1); }
  4%, 18%   { transform: scale(1.5); }
  22%, 100% { transform: scale(1); }
}
.hv-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16);
  background: rgb(10 12 16 / .78);
  color: var(--color-neutral-0);
  font: 600 14px/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
}
.hv-pin .hv-chip {
  position: absolute;
  max-width: none;   /* la regla global max-width:100% lo dejaba en 0 dentro del ancla de 0 px */
  top: 0;
  transform: translateY(-50%);
  animation: hvChipTurn 8s linear infinite;
  animation-delay: calc(2.4s + var(--i) * 1.6s);
}
.hv-pin--r .hv-chip { left: 18px; }
.hv-pin--l .hv-chip { right: 18px; }
@keyframes hvChipTurn {
  0%, 2%    { background: rgb(10 12 16 / .78); border-color: rgb(255 255 255 / .16); color: #fff; }
  4%, 18%   { background: var(--color-accent-400); border-color: var(--color-accent-400); color: var(--color-neutral-950); }
  22%, 100% { background: rgb(10 12 16 / .78); border-color: rgb(255 255 255 / .16); color: #fff; }
}
/* con el ratón o el foco encima se para el turno y manda la etiqueta señalada */
.hero-visual:hover .hv-pin .hv-chip,
.hero-visual:focus-within .hv-pin .hv-chip,
.hero-visual:hover .hv-dot,
.hero-visual:focus-within .hv-dot { animation: none; }
.hero-visual:hover .hv-line,
.hero-visual:focus-within .hv-line { animation-name: hvDraw; }
.hv-pin:hover .hv-chip,
.hv-pin:focus-visible .hv-chip { background: var(--color-accent-400); border-color: var(--color-accent-400); color: var(--color-neutral-950); }
.hv-pin:focus-visible .hv-chip,
.hv-chip--row:focus-visible { outline: 2px solid var(--color-neutral-0); outline-offset: 3px; }

/* pie: explica qué es "One" */
.hv-cap {
  max-width: min(560px, calc(46vh * 4 / 3));
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-neutral-300);
  text-wrap: balance;
  animation: hvFade .8s ease 1.6s both;
}
@keyframes hvFade { from { opacity: 0; } to { opacity: 1; } }

/* fila de etiquetas: solo en pantallas estrechas, donde los pines no caben sobre la imagen */
.hv-row { display: none; list-style: none; margin: 14px 0 0; padding: 0; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hv-chip--row { min-height: 44px; padding: 0 18px; }
.hv-chip--row:hover { background: var(--color-accent-400); border-color: var(--color-accent-400); color: var(--color-neutral-950); }

@media (max-width: 900px) {
  .hv-box, .hv-cap { max-width: 520px; }
  .hv-pins, .hv-lines { display: none; }
  .hv-row { display: flex; }
  .hv-cap { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-img, .hv-one, .hv-one::after, .hv-item, .hv-dot, .hv-pin .hv-chip, .hv-cap { animation: none; }
  .hv-line { animation: none; stroke-dashoffset: 0; opacity: .5; }
  .hv-packet { display: none; }
  .hv-depth { transition: none; transform: none; }
}
/* chip encima del punto (Consultoría): a la izquierda no cabe dentro de la caja */
.hv-pin--t .hv-chip { left: 0; top: auto; bottom: 16px; transform: translateX(-50%); }
/* chip debajo del punto (Soporte): a la derecha se sale de la caja cuando el hero se encoge por altura */
.hv-pin--b .hv-chip { left: 0; top: 16px; transform: translateX(-50%); }

/* ============================================================
   2026-11-03 · DIAGNÓSTICO · los 3 diagnósticos reales
   Sustituye a la lista numerada 01-06 de un asistente que ya no existe.
   Dos columnas: propuesta + CTA a la izquierda, los tres diagnósticos como
   filas enlazadas a la derecha (nombre, nº de preguntas, una pregunta real).
   Mantiene el fondo navy de .diag-cta-section (enhancements.css).
   ============================================================ */
.dg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.dg-head h2 { color: var(--color-neutral-0); max-width: 18ch; }
.dg-head .lead { margin-top: 18px; color: rgb(255 255 255 / .72); max-width: 46ch; }
.dg-actions { margin-top: 32px; }
.dg-note { margin: 14px 0 0; max-width: 44ch; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / .6); }

.dg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / .1); }
.dg-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "name count arrow" "sample sample sample";
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
  padding: 22px 12px;
  border-bottom: 1px solid rgb(255 255 255 / .1);
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease;
}
.dg-name   { grid-area: name; font: 700 1.2rem/1.25 var(--font-display); letter-spacing: -.01em; color: var(--color-neutral-0); }
.dg-count  {
  grid-area: count;
  padding: 4px 10px;
  border: 1px solid rgb(34 197 94 / .35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #86EFAC;
  white-space: nowrap;
}
.dg-arrow  { grid-area: arrow; color: var(--color-accent-400); font-weight: 700; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.dg-sample { grid-area: sample; font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / .62); }
.dg-track:hover { background-color: rgb(255 255 255 / .04); }
@media (hover: hover) and (pointer: fine) {
.dg-track:hover .dg-arrow { transform: translateX(4px); }
}
.dg-track:focus-visible { outline: 2px solid var(--color-neutral-0); outline-offset: 2px; }

.dg-sector { margin: 20px 0 0; padding-inline: 12px; font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / .72); }
.dg-sector a { color: #86EFAC; text-decoration: underline; text-underline-offset: 3px; }
.dg-sector a:hover { color: var(--color-neutral-0); }

@media (max-width: 900px) {
  .dg-grid { grid-template-columns: 1fr; gap: 36px; }
  .dg-head h2 { max-width: none; }
  .dg-track { padding: 18px 4px; }
  .dg-sector { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-track, .dg-arrow { transition: none; }
  @media (hover: hover) and (pointer: fine) {
.dg-track:hover .dg-arrow { transform: none; }
}
}

/* ============================================================
 * 2026-11-04 · PULSACION en lo nuevo de la portada (hero, diagnostico, bento)
 * Los chips del hero ya llevan translate en reposo: la escala se compone con el.
 * ============================================================ */
.hv-chip--row { transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms, border-color 160ms, color 160ms; }
.hv-pin .hv-chip { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.dg-track { transition: background-color .2s ease, transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.hb-link { transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (prefers-reduced-motion: no-preference) {
  .hv-chip--row:active, .hb-link:active { transform: scale(0.97); }
  .dg-track:active { transform: scale(0.99); }
  .hv-pin--r:active .hv-chip, .hv-pin--l:active .hv-chip { transform: translateY(-50%) scale(0.96); }
  .hv-pin--t:active .hv-chip, .hv-pin--b:active .hv-chip { transform: translateX(-50%) scale(0.96); }
}

/* ============================================================
 * 2026-11-04 · PULIDO PREMIUM (portada)
 * Sombras en capas tintadas con el navy de marca (nada de negro puro) y cifras tabulares.
 * ============================================================ */
.hb-cell:not(.hb-it) { box-shadow: 0 1px 0 rgb(15 42 68 / .04), 0 14px 32px -22px rgb(15 42 68 / .20); }
.hb-it { box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 24px 48px -28px rgb(7 24 42 / .55); }
.home-ig360-plans > div { box-shadow: 0 10px 24px -20px rgb(15 42 68 / .22); }
.testimonial-card { box-shadow: 0 1px 0 rgb(15 42 68 / .04), 0 14px 30px -22px rgb(15 42 68 / .16); }
.dg-list { box-shadow: 0 -1px 0 rgb(255 255 255 / .02) inset; }
.pricing-amount, .hb-price, .dg-count, .home-ig360-plans dd strong, .hv-one, .hv-chip { font-variant-numeric: tabular-nums lining-nums; }

/* 2026-11-04 · tarjetas 3D: una regla global de enlaces (a:not(.btn):not(.nav-link)..., especificidad 0,3,1)
 * les pisaba el transition y ni la entrada ni la elevacion al hover se animaban (se quedaba en "color").
 * Se declara con mas especificidad; el escalonado (--reveal-delay) solo afecta a opacity y transform. */
.svc3d-grid > a.svc3d-card.reveal.is-visible {
  transition-property: opacity, transform, border-color, box-shadow;
  transition-duration: 400ms, 400ms, 350ms, 350ms;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}

/* 04-nov-2026 (tarde) · render del hero mas grande y mas claro.
   - Mas claro: hero-ecosistema-3d-v2-navy.* se regenero con gamma/brillo/saturacion mas altos (fondo navy exacto).
   - Mas grande: la caja pasa de 560 px a 680 px y, en pantallas anchas, sale ~90 px por la derecha del contenedor (el margen del
     viewport estaba vacio); dentro de la caja el escenario (imagen + lineas + pines, todo en el mismo marco) se escala 1,14 desde
     el centro-derecha para recortar los margenes vacios de la imagen. La fuente es de 1440 px: no se re-muestrea hacia arriba. */
.hv-box { max-width: min(680px, calc(58vh * 4 / 3)); }
.hv-stage { transform: scale(1.14); transform-origin: 78% 50%; }
@media (min-width: 1300px) {
  .hero-visual { justify-self: start; width: calc(100% + 6vw); max-width: none; margin-right: -6vw; }
}
@media (max-width: 900px) {
  .hv-box, .hv-cap { max-width: 560px; }
}

/* 04-nov-2026 · microinteraccion (skill animaciones-web): foco de luz verde que sigue al cursor en las tarjetas de servicios.
 * Solo con raton (hover + pointer fine) y sin reduced-motion; en tactil/teclado no se pinta. Capa decorativa: opacity + gradiente,
 * sin tocar layout. --mx/--my los pone home.js; sin JS la capa queda a opacity 0. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .svc3d-card { position: relative; isolation: isolate; }
  .svc3d-card::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(34 197 94 / 0.16), transparent 65%);
    opacity: 0; transition: opacity .3s ease;
  }
  .svc3d-card.is-spot::after { opacity: 1; }
  .svc3d-card .svc3d-body { z-index: 1; }
}

/* 04-nov-2026 · renders 3D de servicios: se destapan con clip-path cuando la tarjeta entra (.reveal -> .is-visible) y, donde el
 * navegador lo soporta, se desplazan un poco mas despacio que el scroll (parallax con animation-timeline: view(), sin JS).
 * Se usan las propiedades individuales scale/translate para no pisar el transform del hover (scale 1.04).
 * Sin reduced-motion: nada de esto aplica y la imagen se ve entera. */
@media (prefers-reduced-motion: no-preference) {
  .svc3d-card .svc3d-fig img {
    transition: transform .6s cubic-bezier(.2,.8,.2,1), clip-path 1s cubic-bezier(.22,1,.36,1) .12s;
  }
  .svc3d-grid > .svc3d-card.reveal:not(.is-visible) .svc3d-fig img { clip-path: inset(0 0 100% 0); }
  .svc3d-grid > .svc3d-card.reveal.is-visible .svc3d-fig img { clip-path: inset(0 0 0 0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .svc3d-card .svc3d-fig img {
      scale: 1.12;
      animation: svc3dPar linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes svc3dPar { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}
