/* ==========================================================================
   SETI — Sistema de diseño para el rediseño (referencia estructural: henkia.com)
   Paleta: azul marino SETI + azul acento + verde "crecimiento" (tagline real
   de SETI: "Crecer para nuestros clientes"). Tipografía limpia: Manrope
   (titulares) + Inter (cuerpo), cargadas desde Google Fonts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta SETI — provisional: no fue posible leer el CSS real del sitio
     (solo el contenido), así que se derivó del uso visible del logo
     (variante blanca sobre fondos oscuros/de color) y del tono de marca.
     Son variables centralizadas: reemplázalas aquí si tienes los hex reales. */
  --seti-navy: #0a2a5e;
  --seti-navy-dark: #071a3d;
  --seti-blue: #2e6bff;
  --seti-blue-light: #eaf0ff;
  --seti-growth: #10b981;
  --seti-growth-light: #e5f9f2;
  --seti-ink: #10141f;
  --seti-slate: #5b6472;
  --seti-bg: #f5f7fb;
  --seti-surface: #ffffff;
  --seti-border: #e3e7ef;

  /* Color de texto para titulares/etiquetas sobre fondos claros — separado de
     --seti-navy (que también se usa como FONDO en tarjetas oscuras) para que
     el modo oscuro pueda reemplazar solo el uso como texto. */
  --seti-heading: var(--seti-navy);
  --seti-header-bg: rgba(255, 255, 255, 0.9);
  --seti-nav-mobile-bg: #ffffff;

  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(10, 20, 40, 0.04), 0 12px 32px -16px rgba(10, 20, 40, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Modo oscuro ----------
   Se activa con [data-theme="dark"] en <html> (ver script.js). Solo se
   redefinen las variables de superficie/texto: los bloques ya oscuros
   (navy) como .cta-band, .case-card o el footer se mantienen iguales en
   ambos modos porque ya usan texto blanco explícito. */
[data-theme='dark'] {
  --seti-bg: #0a1122;
  --seti-surface: #111a2e;
  --seti-border: #253154;
  --seti-ink: #e7ecf6;
  --seti-slate: #93a1bf;
  --seti-heading: #eaf0ff;
  --seti-blue-light: rgba(46, 107, 255, 0.16);
  --seti-growth-light: rgba(16, 185, 129, 0.14);
  --seti-header-bg: rgba(10, 17, 34, 0.85);
  --seti-nav-mobile-bg: #0a1122;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
}
[data-theme='dark'] .logo-strip img { filter: grayscale(1) opacity(0.85) invert(1); }
[data-theme='dark'] .logo-tile { background: var(--seti-surface); }
[data-theme='dark'] .logo-tile img { filter: brightness(0) invert(1) opacity(0.85); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { transition: background 0.25s var(--ease), color 0.25s var(--ease); }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--seti-ink);
  background: var(--seti-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--seti-heading);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seti-growth);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--seti-growth);
  border-radius: 2px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--seti-navy); color: #fff; }
.btn-primary:hover { background: var(--seti-blue); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(46,107,255,0.55); }
.btn-ghost { background: transparent; color: var(--seti-heading); border-color: var(--seti-border); }
.btn-ghost:hover { border-color: var(--seti-blue); }
.btn-link { padding: 0; border-radius: 0; font-weight: 700; color: var(--seti-heading); gap: 6px; }
.btn-link .arrow { transition: transform 0.2s var(--ease); }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-on-dark.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-on-dark.btn-ghost:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--seti-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--seti-border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--seti-heading); }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--seti-slate); letter-spacing: 0.01em; }

.nav-main { display: flex; align-items: center; gap: 36px; }
.nav-main a {
  font-weight: 600; font-size: 15px; color: var(--seti-ink);
  padding: 8px 2px; position: relative;
}
.nav-main a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--seti-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--seti-heading); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Interruptor de modo oscuro */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid var(--seti-border); background: var(--seti-surface);
  color: var(--seti-heading); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--seti-blue); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; }
.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--seti-heading);
  border-radius: 2px; position: relative; transition: 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Barra de progreso de lectura (inyectada por script.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--seti-blue), var(--seti-growth));
  z-index: 70; transition: width 0.1s linear;
}

/* Botón "Hablemos" flotante en móvil (inyectado por script.js) */
.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 65;
  justify-content: center; text-align: center; display: none;
  box-shadow: 0 16px 32px -12px rgba(10, 20, 40, 0.45);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.mobile-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 64px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); }
.hero-lead { font-size: 18px; color: var(--seti-slate); max-width: 46ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .card {
  background: var(--seti-navy); border-radius: var(--radius-lg); padding: 34px;
  color: #fff; position: relative; overflow: hidden;
}
.hero-visual .card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(46,107,255,0.5), transparent 60%);
}
.hero-visual .card-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); position: relative; }
.hero-visual .card-line { margin: 18px 0 4px; position: relative; }
.hero-visual .card-caption { font-size: 14px; color: rgba(255,255,255,0.75); position: relative; }

/* Línea de crecimiento — elemento distintivo reutilizable */
.growth-line { display: block; width: 100%; height: auto; }
.growth-line path { stroke: var(--seti-growth); }
.growth-line circle { fill: var(--seti-growth); }

/* ---------- Franja de estadísticas ---------- */
.stat-strip {
  background: var(--seti-surface);
  border-top: 1px solid var(--seti-border);
  border-bottom: 1px solid var(--seti-border);
  padding: 40px 0;
}
.stat-strip .eyebrow-row { text-align: center; color: var(--seti-slate); font-weight: 600; font-size: 14px; margin-bottom: 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-grid .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); color: var(--seti-heading); font-variant-numeric: tabular-nums; }
.stat-grid .label { font-size: 14px; color: var(--seti-slate); margin-top: 6px; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { color: var(--seti-slate); font-size: 17px; margin-top: 16px; }
.section-alt { background: var(--seti-surface); border-top: 1px solid var(--seti-border); border-bottom: 1px solid var(--seti-border); }

/* ---------- Acordeón (por qué SETI) ---------- */
.accordion { border-top: 1px solid var(--seti-border); }
.accordion-item { border-bottom: 1px solid var(--seti-border); }
.accordion-trigger {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--seti-heading);
}
.accordion-trigger .icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--seti-border); display: grid; place-items: center; font-size: 16px; color: var(--seti-heading); transition: 0.2s var(--ease); }
.accordion-item[data-open="true"] .accordion-trigger .icon { background: var(--seti-navy); color: #fff; transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.accordion-item[data-open="true"] .accordion-panel { max-height: 240px; }
.accordion-panel p { padding: 0 4px 28px; margin: 0; color: var(--seti-slate); font-size: 16px; max-width: 62ch; }

/* ---------- Cuadrícula de tarjetas (servicios / soluciones) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.solution-card {
  background: var(--seti-surface); border: 1px solid var(--seti-border); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; height: 100%;
  transform-style: preserve-3d; will-change: transform;
}
.solution-card:hover { border-color: var(--seti-blue); }
/* Fallback sin JS / dispositivos táctiles: sigue habiendo una elevación simple */
.solution-card:not(.tilt-ready):hover { transform: translateY(-4px); }
.solution-card.is-tilting { transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); box-shadow: 0 24px 44px -20px rgba(10, 20, 40, 0.35); }
.solution-card .icon-badge { transform: translateZ(24px); }
.solution-card h3, .solution-card p, .solution-card .btn-link { transform: translateZ(14px); }
.solution-card .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--seti-blue-light);
  color: var(--seti-blue); display: grid; place-items: center; margin-bottom: 20px; font-size: 20px;
}
.solution-card h3 { font-size: 19px; margin-bottom: 10px; }
.solution-card p { color: var(--seti-slate); font-size: 15px; flex: 1; }
.solution-card .btn-link { margin-top: 18px; font-size: 14px; }

/* ---------- Casos de éxito ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--seti-navy); border-radius: var(--radius-md); padding: 30px; color: #fff;
  display: flex; flex-direction: column; gap: 16px; min-height: 280px; position: relative; overflow: hidden;
}
.case-card .sector { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--seti-growth); }
.case-card .metric { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.case-card .metric-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: -10px; }
.case-card h3 { color: #fff; font-size: 18px; margin-top: auto; }
.case-note { margin-top: 28px; font-size: 14px; color: var(--seti-slate); background: var(--seti-blue-light); border-radius: var(--radius-sm); padding: 14px 18px; }

/* ---------- Logos de aliados ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; }
.logo-strip img { height: 34px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.7); transition: filter 0.2s var(--ease); }
.logo-strip img:hover { filter: grayscale(0) opacity(1); }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: center; }
.logo-tile {
  background: var(--seti-surface); border: 1px solid var(--seti-border); border-radius: var(--radius-md);
  padding: 28px; display: grid; place-items: center; height: 110px;
}
.logo-tile img { max-height: 42px; }

/* ---------- CTA de cierre ---------- */
.cta-band {
  background: var(--seti-navy); border-radius: var(--radius-lg); padding: 64px; margin: 0 auto;
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(46,107,255,0.45), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: var(--seti-growth); justify-content: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 18px auto 32px; max-width: 50ch; }

/* ---------- Franja "Únete a SETI" ---------- */
.join-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--seti-growth-light); border-radius: var(--radius-md); padding: 36px 44px;
}
.join-band h3 { font-size: 20px; }
.join-band p { color: var(--seti-slate); margin: 6px 0 0; font-size: 15px; }

/* ---------- Formulario de contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-card { background: var(--seti-surface); border: 1px solid var(--seti-border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--seti-heading); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--seti-border);
  font-family: var(--font-body); font-size: 15px; background: var(--seti-bg); color: var(--seti-ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--seti-blue); background: var(--seti-surface); }
.form-card .btn-primary { margin-top: 24px; width: 100%; justify-content: center; }

.offices { display: flex; flex-direction: column; gap: 20px; }
.office-card { background: var(--seti-surface); border: 1px solid var(--seti-border); border-radius: var(--radius-md); padding: 26px; }
.office-card .city { font-family: var(--font-display); font-weight: 800; color: var(--seti-heading); font-size: 17px; margin-bottom: 8px; }
.office-card p { margin: 0; color: var(--seti-slate); font-size: 14.5px; line-height: 1.6; }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--seti-border); display: grid; place-items: center; }
.social-row img { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--seti-navy-dark); color: rgba(255,255,255,0.8); padding: 64px 0 28px; margin-top: 96px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top img.footer-logo { height: 30px; margin-bottom: 16px; }
.footer-top p { color: rgba(255,255,255,0.6); font-size: 14.5px; max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col p { margin: 0 0 4px; font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-col a { display: block; padding: 4px 0; font-size: 14.5px; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,0.5); }
.footer-bottom .social-row a { border-color: rgba(255,255,255,0.2); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilidades de página interior ---------- */
.page-hero { padding: 64px 0 48px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); }
.page-hero p { color: var(--seti-slate); font-size: 17px; max-width: 60ch; margin-top: 18px; }
.breadcrumb { font-size: 13px; color: var(--seti-slate); margin-bottom: 18px; font-weight: 600; }
.breadcrumb a { color: var(--seti-blue); }

.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-pill { background: var(--seti-surface); border: 1px solid var(--seti-border); border-radius: var(--radius-md); padding: 22px 18px; text-align: center; }
.value-pill .n { font-family: var(--font-display); font-weight: 800; color: var(--seti-growth); font-size: 14px; }
.value-pill p { margin: 8px 0 0; font-weight: 700; color: var(--seti-heading); font-size: 15px; }

.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.culture-card { border-left: 3px solid var(--seti-growth); padding: 4px 0 4px 20px; }
.culture-card h3 { font-size: 17px; }
.culture-card p { color: var(--seti-slate); font-size: 14.5px; margin-top: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col img { border-radius: var(--radius-lg); }

.partner-detail { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--seti-border); }
.partner-detail img { width: 84px; height: 84px; object-fit: contain; background: #fff; border: 1px solid var(--seti-border); border-radius: var(--radius-sm); padding: 12px; flex: none; }
.partner-detail h3 { font-size: 18px; margin-bottom: 6px; }
.partner-detail p { color: var(--seti-slate); font-size: 15px; margin: 0; }

.disclaimer-note {
  background: var(--seti-blue-light); border: 1px dashed var(--seti-blue);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13.5px; color: var(--seti-heading);
  margin-bottom: 40px;
}

/* ---------- Selector de interés tipo chips (contacto) ---------- */
.chip-field { margin-top: 6px; }
.chip-field > p.hint { margin: 4px 0 0; font-size: 13px; color: var(--seti-slate); }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip {
  padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--seti-border);
  background: var(--seti-bg); font-size: 14px; font-weight: 600; color: var(--seti-heading);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--seti-blue); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--seti-navy); border-color: var(--seti-navy); color: #fff; }

/* ---------- Filtro por sector (casos de éxito) ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-pill {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--seti-border);
  background: var(--seti-surface); font-size: 13.5px; font-weight: 700; color: var(--seti-slate);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-pill:hover { border-color: var(--seti-blue); color: var(--seti-heading); }
.filter-pill[aria-pressed="true"] { background: var(--seti-growth); border-color: var(--seti-growth); color: #fff; }
.case-card.is-hidden { display: none; }
.case-card { animation: card-in 0.4s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.filter-empty {
  display: none; padding: 40px; text-align: center; color: var(--seti-navy);
  background: var(--seti-blue-light); border-radius: var(--radius-md); font-weight: 600;
}
.filter-empty.is-visible { display: block; }

/* ---------- Widget terminal (hero) ---------- */
.terminal-card {
  background: var(--seti-navy-dark); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); margin-top: 22px; position: relative;
}
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, 0.04); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title { margin-left: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.5); font-family: 'SFMono-Regular', Consolas, Menlo, monospace; }
.terminal-body {
  padding: 18px 20px 26px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px; line-height: 1.95; min-height: 168px;
}
.terminal-line { color: rgba(255, 255, 255, 0.85); white-space: pre-wrap; word-break: break-word; }
.terminal-line .t-prompt { color: var(--seti-growth); }
.terminal-line .t-ok { color: var(--seti-growth); font-weight: 700; }
.terminal-line .t-dim { color: rgba(255, 255, 255, 0.4); }
.terminal-cursor {
  display: inline-block; width: 7px; height: 13px; background: var(--seti-growth);
  vertical-align: middle; margin-left: 2px; animation: term-blink 1s step-end infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* ---------- Diagrama de flujo de servicios (SVG animado) ---------- */
.flow-diagram { position: relative; padding: 46px 0 8px; }
.flow-line { position: absolute; top: 46px; left: 0; width: 100%; height: 36px; overflow: visible; }
.flow-line-base { stroke: var(--seti-border); stroke-width: 2; fill: none; }
.flow-line-animated { stroke: var(--seti-growth); stroke-width: 3; stroke-dasharray: 9 9; fill: none; animation: flow-dash 1.1s linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -36; } }
.flow-nodes { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; }
.flow-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; width: 25%; }
.flow-node .flow-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--seti-navy); color: #fff;
  display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow-card); flex: none;
}
.flow-node h4 { font-size: 14.5px; color: var(--seti-heading); font-family: var(--font-display); }
.flow-node p { font-size: 12.5px; color: var(--seti-slate); margin: 0; max-width: 22ch; }

/* ---------- Mapa de cobertura interactivo ---------- */
.coverage-map-frame {
  position: relative; width: 100%; padding-bottom: 46%; border-radius: var(--radius-lg);
  background: var(--seti-navy); overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
}
.coverage-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.coverage-route path { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.5; stroke-dasharray: 2 2; }
.coverage-route .route-animated { stroke: var(--seti-growth); stroke-width: 0.6; stroke-dasharray: 2 2; animation: route-dash 2.4s linear infinite; }
@keyframes route-dash { to { stroke-dashoffset: -8; } }
.map-pin {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px;
  background: rgba(10, 20, 40, 0.55); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill); padding: 7px 14px 7px 9px; color: #fff; font-size: 13px; font-weight: 700;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.map-pin:hover, .map-pin:focus-visible { background: rgba(46, 107, 255, 0.55); border-color: #fff; }
.pin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--seti-growth); flex: none; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25); }
.pin-tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 200px; background: #fff; color: var(--seti-ink); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12.5px; font-weight: 500; line-height: 1.4; box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); z-index: 2;
}
.map-pin:hover .pin-tooltip, .map-pin:focus-visible .pin-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Diagnóstico rápido (calculadora de servicios) ---------- */
.diagnostic { background: var(--seti-surface); border: 1px solid var(--seti-border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.diagnostic-progress { display: flex; gap: 6px; margin: 22px 0 28px; }
.diagnostic-progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--seti-border); transition: background 0.2s var(--ease); }
.diagnostic-progress span.is-active { background: var(--seti-blue); }
.diagnostic-step[hidden] { display: none; }
.diagnostic-step p.q { font-weight: 700; color: var(--seti-heading); font-size: 17px; margin-bottom: 4px; }
.diagnostic-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.diagnostic-option {
  text-align: left; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--seti-border);
  background: var(--seti-bg); font-weight: 600; font-size: 14.5px; color: var(--seti-heading);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.diagnostic-option:hover { border-color: var(--seti-blue); transform: translateY(-2px); }
.diagnostic-result { background: var(--seti-navy); color: #fff; border-radius: var(--radius-md); padding: 30px; margin-top: 6px; position: relative; overflow: hidden; }
.diagnostic-result::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 0% 0%, rgba(46,107,255,0.45), transparent 60%); }
.diagnostic-result > * { position: relative; }
.diagnostic-result .eyebrow { color: var(--seti-growth); }
.diagnostic-result h3 { color: #fff; font-size: 24px; }
.diagnostic-result p { color: rgba(255, 255, 255, 0.78); margin: 12px 0 22px; max-width: 46ch; }
.diagnostic-restart { margin-top: 20px; font-size: 13px; color: var(--seti-slate); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .card-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-map-frame { padding-bottom: 62%; }
}

@media (max-width: 720px) {
  .nav-main { position: fixed; inset: 84px 0 0 0; background: var(--seti-nav-mobile-bg); flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 4px; transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto; }
  .nav-main.is-open { transform: translateX(0); }
  .nav-main a { width: 100%; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--seti-border); }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .card-grid, .case-grid, .value-grid, .culture-grid, .logo-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .join-band { flex-direction: column; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .section { padding: 64px 0; }

  .flow-diagram { padding-top: 8px; }
  .flow-line { display: none; }
  .flow-nodes { flex-direction: column; gap: 24px; }
  .flow-node { width: 100%; flex-direction: row; text-align: left; gap: 16px; }
  .flow-node p { max-width: none; }

  .coverage-map-frame { padding-bottom: 100%; }
  .diagnostic { padding: 26px; }
  .diagnostic-options { grid-template-columns: 1fr; }
}
