/* =========================================================
   GIMIX — Hoja de estilos principal
   Identidad: minimalista, tecnológica, humana, profesional.
   Editar variables en :root para cambiar colores y tipografía.
   ========================================================= */

:root {
  /* Paleta — editar aquí para cambiar la identidad de color */
  /* === Paleta oficial Gimix (brand identity) === */
  --bg:            #ffffff;   /* Fondo principal */
  --bg-warm:       #f6f8fc;   /* Fondo secciones (frío, acorde al azul) */
  --bg-soft:       #eef2f9;   /* Gris azulado fondos secundarios */
  --ink:           #0b1d3a;   /* Texto principal — navy Gimix #0B1D3A */
  --ink-soft:      #45556c;   /* Texto secundario */
  --ink-faint:     #8a97ab;   /* Texto terciario / captions */
  --primary:       #2563ff;   /* Azul Gimix #2563FF */
  --primary-strong:#1a4fe0;   /* Hover del principal */
  --primary-soft:  #e8efff;   /* Fondo suave del principal */
  --accent:        #00c2c7;   /* Turquesa Gimix #00C2C7 */
  --success:       #22c55e;   /* Verde Gimix #22C55E */
  --success-soft:  #e7f9ef;
  --border:        #e4e9f2;
  --border-strong: #c7d0de;
  --danger:        #ef4444;

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radios y sombras */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11,29,58,.06), 0 1px 3px rgba(11,29,58,.05);
  --shadow-md: 0 4px 16px rgba(11,29,58,.07), 0 2px 6px rgba(11,29,58,.05);
  --shadow-lg: 0 18px 50px rgba(11,29,58,.12), 0 6px 16px rgba(11,29,58,.07);

  --container: 1160px;
  --gutter: 24px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Accesibilidad: foco visible */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--warm { background: var(--bg-warm); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-strong); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; color: var(--ink); }
.brand-mark { height: 32px; width: auto; display: block; flex: none; }
/* Wordmark en minúscula, estilo brand identity */
.brand-word { font-weight: 800; }
.nav-links { display: flex; gap: 30px; margin: 0 auto; }
.nav-links a {
  position: relative; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  padding: 4px 0; transition: color .18s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 { margin-top: 8px; }
.hero .lead { margin-bottom: 14px; }
.hero-sub { color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.trust-line { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.trust-line svg { width: 18px; height: 18px; stroke: var(--success); }

/* ---------- Chat widget (hero + demo) ---------- */
.chat {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.chat-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-warm);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.chat-avatar img { height: 30px; width: auto; display: block; }
.chat-id { font-weight: 600; font-size: .95rem; }
.chat-status { font-size: .78rem; color: var(--success); display: flex; align-items: center; gap: 5px; }
.chat-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chat-body {
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  min-height: 300px; max-height: 420px; overflow-y: auto; background: var(--bg);
}
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .95rem; line-height: 1.5; animation: pop .25s ease; }
.msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg--bot  { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 5px; }
.msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.msg--typing span:nth-child(2){ animation-delay:.2s } .msg--typing span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.3} 30%{opacity:1} }
@keyframes pop { from { opacity:0; transform: translateY(6px) } to { opacity:1; transform:none } }

.chat-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg-warm); }
.tag-action {
  font-size: .74rem; font-weight: 600; color: var(--success);
  background: var(--success-soft); border: 1px solid #a7f3d0;
  padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.tag-action.show { opacity: 1; transform: none; }
.tag-action::before { content: "✓"; font-weight: 800; }

.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input {
  flex: 1; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 10px 16px; font-size: .92rem; font-family: inherit;
}
.chat-input button {
  background: var(--primary); color: #fff; border: 0; border-radius: 50%;
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
}
.chat-input button svg { width: 20px; height: 20px; stroke: #fff; }
.chat-suggest { display:flex; flex-wrap:wrap; gap:7px; padding: 0 14px 12px; }
.chip {
  font-size: .82rem; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--ink-soft);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color:#fff; border-color: var(--primary); }

/* ---------- Franja de canales ---------- */
.channels-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.channel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.channel-pill .ci { width: 18px; height: 18px; }

/* ---------- Problema vs Solución ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--border); }
.compare-col--bad { background: #fff; }
.compare-col--good { background: linear-gradient(180deg, var(--primary-soft), #fff); border-color: #c7d2fe; }
.compare-col h3 { display: flex; align-items: center; gap: 10px; }
.compare-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: .96rem; }
.compare-list li:first-child { border-top: 0; }
.ic-chip { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.ic-chip svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-chip--bad { background: #fef2f2; color: var(--danger); }
.ic-chip--ok  { background: var(--success-soft); color: var(--success); }
.compare-note { margin-top: 26px; text-align: center; font-weight: 600; font-size: 1.1rem; }

/* ---------- Tarjetas de capacidades ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; }
.card p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 12px; }
.card-example {
  font-size: .86rem; background: var(--bg-warm); border-left: 3px solid var(--accent);
  padding: 8px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-soft); margin-bottom: 10px;
}
.card-done { font-size: .8rem; color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-done::before { content: "✓"; }

/* ---------- Demos por sector (tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink-soft);
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: pop .3s ease; }
.sector-demo { display: grid; grid-template-columns: 1fr .9fr; gap: 24px; align-items: start; }
.actions-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; }
.actions-panel h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 14px; }
.actions-panel li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .95rem; border-top: 1px solid var(--border); }
.actions-panel li:first-child { border-top: 0; }
.actions-panel .num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft);
  color: var(--success); font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Resultados ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); font-weight: 500; font-size: .96rem; box-shadow: var(--shadow-sm); }
.benefit svg {
  flex: none; width: 38px; height: 38px; box-sizing: border-box; padding: 8px;
  color: var(--primary); background: var(--primary-soft); border-radius: 10px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Flow / sistema (una sola línea con conector) ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow::before {
  content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 0;
}
.flow-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.flow-node {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); border: 4px solid var(--bg);
}
.flow-node svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.step-highlight { margin-top: 32px; padding: 20px 24px; background: var(--primary-soft); border-radius: var(--r-md); text-align: center; font-weight: 600; color: var(--primary-strong); }

/* ---------- Path / cómo trabajamos (camino horizontal) ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 34px; }
.path-step {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.path-step .n {
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.path-step h3 { font-size: 1rem; margin-bottom: 4px; }
.path-step p { font-size: .87rem; color: var(--ink-soft); margin: 0; }
/* Flecha conectora entre pasos de la misma fila (4 columnas) */
.path-step:not(:nth-child(4n))::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 12px; height: 12px;
  border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Integraciones ---------- */
.integ-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.integ-cat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); }
.integ-ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 14px;
}
.integ-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.integ-cat h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: 10px; }
.integ-cat li { padding: 6px 0; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.integ-cat li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Niveles / planes ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.tier { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.tier--featured { border-color: var(--primary); box-shadow: var(--shadow-md); position: relative; }
.tier--featured::before { content: "Recomendado"; position: absolute; top: -12px; left: 28px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tier h3 { font-size: 1.25rem; }
.tier .price { color: var(--ink-faint); font-size: .9rem; margin-bottom: 16px; }
.tier ul { flex: 1; margin-bottom: 20px; }
.tier li { padding: 8px 0; font-size: .93rem; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ---------- Seguridad ---------- */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sec-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.sec-item svg {
  flex: none; width: 38px; height: 38px; box-sizing: border-box; padding: 8px;
  color: var(--primary); background: var(--primary-soft); border-radius: 10px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- FAQ (tarjetas contenidas, en columna centrada) ---------- */
.faq { max-width: 100%; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px;
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform .2s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; }
.faq-q .plus::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-q .plus::after  { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform .2s; }
.faq-q[aria-expanded="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-soft); }
.faq-a-inner { padding: 0 20px 20px; font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4fe0 45%, var(--accent) 100%);
  color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.9); max-width: 620px; margin-inline: auto; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Formulario progresivo ---------- */
.form-wrap { max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.form-progress { display: flex; background: var(--bg-warm); border-bottom: 1px solid var(--border); }
.form-progress .fp {
  flex: 1; text-align: center; padding: 14px 6px; font-size: .8rem; font-weight: 600; color: var(--ink-faint);
  border-bottom: 3px solid transparent; position: relative;
}
.form-progress .fp.active { color: var(--primary); border-bottom-color: var(--primary); }
.form-progress .fp.done { color: var(--success); border-bottom-color: var(--success); }
.form-body { padding: 30px; }
.form-step { display: none; }
.form-step.active { display: block; animation: pop .3s ease; }
.form-step h3 { font-size: 1.2rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); font-size: .95rem; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.field .err { color: var(--danger); font-size: .8rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--primary); }
.check input { width: auto; accent-color: var(--primary); }
.check.checked { border-color: var(--primary); background: var(--primary-soft); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--ink-soft); margin: 8px 0 4px; }
.consent input { width: auto; margin-top: 3px; accent-color: var(--primary); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.form-result { display: none; text-align: center; padding: 20px 0; }
.form-result.show { display: block; animation: pop .3s ease; }
.result-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; }
.score-box { background: var(--primary-soft); border-radius: var(--r-md); padding: 18px; margin: 18px 0; }
.score-box .score { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Fila foto + texto (reutilizable para nuevas secciones) ---------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media-row img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }
/* Variante con la imagen a la derecha: añade la clase media-row--reverse */
.media-row--reverse .media-txt { order: 2; }
@media (max-width: 820px) {
  .media-row { grid-template-columns: 1fr; gap: 26px; }
  .media-row--reverse .media-txt { order: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 5px 0; font-size: .92rem; color: #94a3b8; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: .92rem; color: #94a3b8; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #64748b; }

/* ---------- Chat flotante móvil ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  background: #25D366; color: #fff; border: 0; border-radius: 999px;
  padding: 13px 20px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 9px;
}
.fab svg { width: 22px; height: 22px; }

/* ---------- Utilidades ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
[hidden] { display: none !important; }
.notice { font-size: .82rem; color: var(--ink-faint); text-align: center; margin-top: 14px; font-style: italic; }

/* =========================================================
   RESPONSIVE — mobile first refinements
   ========================================================= */
@media (max-width: 1040px) {
  .integ-grid { grid-template-columns: repeat(3, 1fr); }
  .security-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sector-demo { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  /* Flow pasa a vertical: sin línea horizontal */
  .flow { grid-template-columns: 1fr 1fr; gap: 20px; }
  .flow::before { display: none; }
  .path { grid-template-columns: repeat(2, 1fr); }
  .path-step:not(:nth-child(4n))::after { display: none; }
  .path-step:not(:nth-child(2n))::after { display: block; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 16px var(--gutter) 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 10px 0; font-size: 1rem; }
  .grid-2, .check-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .integ-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; }
  .path-step::after { display: none !important; }
  .form-progress .fp span { display: none; }
  .hero-cta .btn, .cta-final .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
