/* ============================================================
   neural tech — hoja de estilos v4
   Dirección: clara, minimalista, redondeada y amable.
   Sin secciones oscuras, sin motivos de "red neuronal", sin
   rejillas de puntos, sin grano y sin glows. Todo desde tokens.
   Azules tomados del logo real: #1D57D6 y #88A5E9.
   ============================================================ */

:root {
  /* --- marca (los azules exactos del logo) --- */
  --primary:        #1D57D6;   /* "neural" */
  --primary-dark:   #164AB8;   /* hover / texto sobre claro */
  --primary-rgb:    29, 87, 214;
  --accent-soft:    #88A5E9;   /* "tech" — solo decorativo, nunca texto */

  /* --- tintes de apoyo --- */
  --primary-tint:   #EAF0FC;   /* fondos de icono, chips, cajas suaves */
  --primary-tint-2: #DCE7FA;   /* bordes y estados hover de esos tintes */

  /* --- superficies --- */
  --bg:             #F7F9FD;   /* base: casi blanco, con un punto de azul */
  --surface:        #FFFFFF;   /* tarjetas */
  --surface-alt:    #EEF3FB;   /* secciones alternas y franja de acento */
  --hero-bg:        #EEF3FF;   /* azul muy claro: luminoso y deja resaltar el azul sólido */

  /* --- texto --- */
  --text:           #0F172A;
  --text-muted:     #4B5565;

  /* --- líneas y sombras (suaves) --- */
  --border:         rgba(15, 23, 42, 0.09);
  --border-strong:  rgba(15, 23, 42, 0.13);
  --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow:         0 2px 6px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-lg:      0 2px 8px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(15, 23, 42, 0.08);

  --success:        #16A34A;
  --danger:         #B42318;

  /* --- geometría y tipos --- */
  --radius:         22px;
  --radius-sm:      14px;
  --font-head:      "Fredoka", "Inter", system-ui, sans-serif;
  --font-body:      "Inter", system-ui, -apple-system, sans-serif;
  --container:      1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; line-height: 1.32; }

p { text-wrap: pretty; }
a { color: var(--primary-dark); }
::selection { background: var(--primary-tint); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.container-narrow { max-width: 800px; }

/* ---------- accesibilidad ---------- */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 300;
}
.skip-link:focus { left: 0; }

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

/* ---------- botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; border-radius: 999px;
  padding: 0.72rem 1.5rem; min-height: 46px; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .icon { width: 1.25em; height: 1.25em; flex: none; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.26); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.32); }

.btn-ghost { background: var(--primary-tint); color: var(--primary-dark); border-color: var(--primary-tint-2); }
.btn-ghost:hover { background: var(--primary-tint-2); }

.btn-outline { background: var(--surface); color: var(--primary-dark); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-tint); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1.06rem; min-height: 54px; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.92rem; min-height: 44px; }

/* ---------- header: barra clara siempre legible ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled, .site-header.nav-open {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }

/* logo real, sin icono añadido */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 150px; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.7vw, 1.5rem); }
.site-nav > a:not(.btn) {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav > a:not(.btn):hover { color: var(--primary-dark); border-bottom-color: var(--primary); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px; background: none; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.1rem;
    background: var(--surface); padding: 0.8rem clamp(1.25rem, 4vw, 2rem) 1.3rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    border-radius: 0 0 var(--radius) var(--radius); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 0.85rem 0.2rem; min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 0.9rem; }
}

/* ---------- hero: azul muy claro, aire, sin decoración ----------
   Tinte luminoso en vez de azul saturado: así el azul sólido de la
   marca (botón principal, burbuja del chatbot) resalta sobre él en
   lugar de fundirse. */

.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--hero-bg);
}
.hero-inner { max-width: 880px; text-align: center; margin-inline: auto; }

/* Píldora en blanco: sobre el tinte del hero se recorta con claridad */
.eyebrow {
  display: inline-block; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--primary-dark); background: var(--surface);
  border: 1px solid var(--primary-tint-2); border-radius: 999px;
  padding: 0.45rem 1.1rem; margin-bottom: 1.7rem;
}

.hero h1 { color: var(--text); }
.hero h1 .accent { color: var(--primary); }

.lead {
  font-size: clamp(1.06rem, 1.9vw, 1.25rem);
  color: var(--text-muted);
  max-width: 46rem; margin: 1.6rem auto 2.4rem;
}

.hero-sector { margin: -1.4rem auto 2rem; font-size: 0.98rem; color: var(--text-muted); }
.hero-sector a { color: var(--primary-dark); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero-note { margin-top: 1.6rem; font-size: 0.9rem; color: var(--text-muted); }

/* Secundario en blanco con borde azul: el tinte del hero y el relleno
   normal del botón fantasma son casi el mismo color, y se perdería */
.hero .btn-ghost {
  background: var(--surface); color: var(--primary-dark);
  border-color: var(--primary-tint-2);
}
.hero .btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary); }

/* ---------- secciones ---------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-white { background: var(--surface); }

.section-head { max-width: 740px; margin: 0 auto clamp(2.5rem, 5vw, 3.6rem); text-align: center; }
.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 1.08rem; margin-top: 0.9rem; }

/* ---------- tarjetas ---------- */

.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-tint-2); }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

.card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1.2rem;
  transition: background 0.22s ease;
}
.card:hover .card-icon { background: var(--primary-tint-2); }
.card-icon svg { width: 26px; height: 26px; }

.card-featured {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1.6rem;
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.22);
}
.card-featured .card-icon { background: rgba(255, 255, 255, 0.18); color: #fff; margin-bottom: 0; flex: none; }
.card-featured:hover .card-icon { background: rgba(255, 255, 255, 0.26); }
.card-featured h3 { color: #fff; }
.card-featured p { color: rgba(255, 255, 255, 0.92); }
.card-featured:hover { border-color: var(--primary); }
@media (max-width: 580px) { .card-featured { flex-direction: column; align-items: flex-start; gap: 1.1rem; } }

.callout {
  margin-top: 2.4rem; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.6rem 2rem; text-align: center;
  font-size: 1.06rem; box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--primary-dark); }

/* ---------- chips ---------- */

.chip {
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  border-radius: 999px; min-height: 44px; padding: 0.5rem 1.1rem; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: var(--primary-tint); border-color: var(--primary-tint-2); color: var(--primary-dark); transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(0.97); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.sector-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.55rem; margin: -1.2rem auto 2.4rem; max-width: 940px; }
.sector-bar-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-right: 0.3rem; }

/* ---------- servicios interactivos ---------- */

.svc-card { display: flex; flex-direction: column; }
.svc-card > p { flex: 1; }

.svc-toggle {
  margin-top: 1rem; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: none; background: none; padding: 0.4rem 0; min-height: 44px;
  color: var(--primary-dark); font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.svc-toggle:hover { color: var(--primary); }
.svc-toggle .chev {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.25s ease;
}
.svc-toggle[aria-expanded="true"] .chev { transform: rotate(225deg) translateY(-2px); }

/* min-height:0 es necesario: como flex item, el mínimo automático
   de flexbox ignoraría la altura 0 que fija el JS */
.svc-more { overflow: hidden; min-height: 0; transition: height 0.32s ease; }
.svc-example {
  margin-top: 0.6rem; padding: 0.9rem 1.05rem;
  background: var(--primary-tint); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem !important; color: var(--text) !important;
}
.svc-link { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.svc-link:hover { text-decoration: underline; }

/* ---------- diagnóstico exprés ---------- */

.diag-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.3rem; align-items: start; }
@media (max-width: 900px) { .diag-grid { grid-template-columns: 1fr; } }

.diag-card, .calc-card { padding: 2rem 1.8rem; }
.diag-card:hover, .calc-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }

.diag-progress { display: flex; gap: 6px; margin-bottom: 1.6rem; }
.diag-progress span { height: 6px; flex: 1; border-radius: 3px; background: var(--primary-tint-2); transition: background 0.3s ease; }
.diag-progress span.on { background: var(--primary); }

.diag-step h3 { margin-bottom: 1.2rem; font-size: 1.22rem; }
.diag-step, .diag-result { animation: fade-up 0.35s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.diag-result .badge { margin-bottom: 0.9rem; }
.diag-text { white-space: pre-line; color: var(--text); font-size: 1rem; margin-bottom: 1.3rem; }

.diag-impact { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.3rem; }
.diag-impact-item {
  flex: 1 1 45%; background: var(--primary-tint);
  border: 1px solid var(--primary-tint-2); border-radius: var(--radius-sm); padding: 0.9rem 1.05rem;
}
.diag-impact-item strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--primary-dark); }
.diag-impact-item span { font-size: 0.8rem; color: var(--text-muted); }

.diag-plan { display: grid; gap: 0.7rem; margin-bottom: 1.4rem; }
.diag-plan li {
  list-style: none; display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1rem;
}
.diag-plan .plan-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-top: 0.1rem;
}
.diag-plan strong { display: block; font-size: 0.98rem; }
.diag-plan small { color: var(--text-muted); font-size: 0.84rem; }

.diag-cta { justify-content: flex-start; margin-bottom: 0.9rem; }

.diag-share {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
  border-top: 1px solid var(--border); padding-top: 0.8rem; margin-bottom: 0.6rem;
}
.diag-share-label { font-size: 0.85rem; color: var(--text-muted); }
.diag-share button, .diag-share a {
  border: none; background: none; color: var(--primary-dark);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; padding: 0.35rem 0; min-height: 44px;
}
.diag-share button:hover, .diag-share a:hover { color: var(--primary); }

.diag-restart {
  border: none; background: none; color: var(--text-muted);
  font-family: var(--font-body); font-size: 0.88rem; cursor: pointer;
  padding: 0.35rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px;
}
.diag-restart:hover { color: var(--primary-dark); }

@keyframes spin { to { transform: rotate(360deg); } }



/* ---------- calculadora ---------- */

.calc-card h3 { margin-bottom: 0.3rem; }
.calc-intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.3rem; }

.calc-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 0.95rem 0 0.4rem;
}
.calc-val { color: var(--primary-dark); font-family: var(--font-head); font-size: 1rem; white-space: nowrap; }
.calc-card input[type="range"] { width: 100%; accent-color: var(--primary); height: 6px; cursor: pointer; }

.calc-breakdown { list-style: none; margin: 1.3rem 0 1rem; display: grid; gap: 0.45rem; }
.calc-breakdown li {
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem;
  color: var(--text-muted); border-bottom: 1px dashed var(--border-strong); padding-bottom: 0.4rem;
}
.calc-breakdown li strong { color: var(--text); font-weight: 600; white-space: nowrap; }

.calc-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  background: var(--primary-tint); border: 1px solid var(--primary-tint-2);
  border-radius: var(--radius-sm); padding: 1.2rem 0.9rem; text-align: center;
}
.calc-metric strong {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--primary); white-space: nowrap;
}
.calc-metric span { font-size: 0.78rem; color: var(--text-muted); }

.calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.calc-actions .btn { font-size: 0.9rem; padding: 0.6rem 1.15rem; min-height: 46px; }
.calc-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-muted); }

/* ---------- método ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 45px; left: 10%; right: 10%; height: 2px;
  background: var(--primary-tint-2);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-tint-2); }
.step h3 { font-size: 1.08rem; margin: 0.95rem 0 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

.step-num {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.18rem;
  box-shadow: 0 0 0 6px var(--surface);
}

/* ---------- casos ---------- */

.case-card {
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
}
.case-type { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--text); margin-bottom: 0.3rem; }
.case-sector { font-size: 0.9rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.9rem; }
.case-desc { color: var(--text-muted); font-size: 0.95rem; }
.case-foot { margin-top: 1.3rem; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--primary-dark); background: var(--primary-tint);
  border: 1px solid var(--primary-tint-2); border-radius: 999px; padding: 0.32rem 0.85rem;
}
.badge-muted { color: var(--text-muted); background: transparent; border-color: var(--border-strong); text-transform: none; letter-spacing: 0; font-weight: 600; }

.cases-note { text-align: center; margin-top: 2.2rem; color: var(--text-muted); }

/* ---------- CTA intermedio (sobrio, sin franja) ---------- */

.cta-mid { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-mid-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-mid-inner h2 { margin-bottom: 0.8rem; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.cta-mid-inner p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.9rem; }

/* ---------- antes / después ---------- */

.ba-processes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin-bottom: 1.7rem; }

.ba-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow-sm); }

.ba-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px; margin-bottom: 1.7rem;
}
.ba-tab {
  position: relative; z-index: 1; border: none; background: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; color: var(--text-muted);
  padding: 0.68rem 1rem; min-height: 46px; border-radius: 999px; cursor: pointer; transition: color 0.25s ease;
}
.ba-tab[aria-selected="true"] { color: #fff; }
.ba-slider {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--primary);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ba-toggle.ba-right .ba-slider { transform: translateX(100%); }

.ba-panel { animation: fade-up 0.32s ease both; }
.ba-list { list-style: none; display: grid; gap: 0.8rem; margin-bottom: 1.5rem; }
.ba-list li { position: relative; padding-left: 2.3rem; color: var(--text); }
.ba-list li::before {
  position: absolute; left: 0; top: 0.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}
.ba-bad li::before { content: "✕"; background: #FEE4E2; color: var(--danger); }
.ba-good li::before { content: "✓"; background: #DCFAE6; color: #067647; }

.ba-badge { display: inline-block; font-size: 0.88rem; font-weight: 700; border-radius: 999px; padding: 0.5rem 1.15rem; }
.ba-badge-bad { background: #FEF3F2; color: var(--danger); border: 1px solid #FDA29B; }
.ba-badge-good { background: #ECFDF3; color: #067647; border: 1px solid #A9EFC5; }

/* ---------- quiénes somos ---------- */

.about { margin-top: 3.4rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.about-photo {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.about-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.about-photo img { width: 100%; object-fit: cover; }

.about-text h3 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.about-text p:not(.kicker) { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: var(--primary-tint-2); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; font-weight: 600; font-size: 1.02rem; padding: 1.15rem 1.4rem; min-height: 46px;
  transition: color 0.2s ease;
}
.faq-item[open] summary { color: var(--primary-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body { overflow: hidden; min-height: 0; transition: height 0.3s ease; }
.faq-body p { padding: 0 1.4rem 1.25rem; color: var(--text-muted); }
.faq-chevron {
  flex: none; width: 11px; height: 11px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg); transition: transform 0.25s ease; margin-top: -4px;
}
.faq-item[open] .faq-chevron { transform: rotate(225deg); margin-top: 4px; }

/* ---------- cierre: la única franja de acento, suave ---------- */

.closing { background: var(--surface-alt); padding: clamp(4.5rem, 9vw, 6.5rem) 0; }
.closing-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.closing h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 1.1rem; }
.closing h2 .accent { color: var(--primary); }
.closing p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.2rem; }

/* ---------- footer claro ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.8rem 0 1.8rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr auto; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { width: 140px; height: auto; }
.footer-brand p { color: var(--text-muted); font-size: 0.94rem; margin-top: 1rem; }

.footer-title { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); margin-bottom: 0.7rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-col a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--text-muted); text-decoration: none; font-size: 0.97rem; transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--primary-dark); }
.footer-wa { gap: 0.45rem; font-weight: 600; color: var(--text) !important; }
.footer-wa svg { width: 18px; height: 18px; color: #25D366; flex: none; }

.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- animaciones de scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .chip, .ba-slider, .ba-panel, .card-icon, .step,
  .diag-step, .diag-result, .svc-more, .faq-body, .site-header,
  .fab-wa, .nt-chat-launcher { transition: none; animation: none; }
  }

/* ============================================================
   FLOTANTES: WhatsApp (verde) + chatbot (azul de marca)
   ============================================================ */

.fab-wa {
  position: fixed; right: 20px; bottom: 92px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.fab-wa:hover { transform: scale(1.07); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

.fab-wa .fab-label {
  position: absolute; right: calc(100% + 10px); white-space: nowrap;
  background: var(--text); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  opacity: 0; transform: translateX(6px); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
}
@media (hover: hover) { .fab-wa:hover .fab-label { opacity: 1; transform: none; } }
@media (hover: none) { .fab-wa .fab-label { display: none; } }

.nt-chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 60px; height: 60px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nt-chat-launcher:hover { transform: scale(1.06); background: var(--primary-dark); box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.42); }
.nt-chat-launcher svg { width: 29px; height: 29px; }
.nt-chat-launcher .close-ic { display: none; }
.nt-chat-launcher[aria-expanded="true"] .chat-ic { display: none; }
.nt-chat-launcher[aria-expanded="true"] .close-ic { display: block; }

.nt-chat-teaser {
  position: fixed; right: 20px; bottom: 162px; z-index: 149; max-width: 290px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.05rem; font-size: 0.95rem; color: var(--text); cursor: pointer;
  animation: teaser-in 0.4s ease both;
}
@keyframes teaser-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nt-chat-teaser button.teaser-close {
  position: absolute; top: -11px; left: -11px; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: var(--text); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
}

.nt-chat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 152;
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 130px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: none; flex-direction: column; overflow: hidden;
}
.nt-chat-panel.open { display: flex; animation: teaser-in 0.3s ease both; }

@media (max-width: 480px) {
  .nt-chat-panel { right: 12px; left: 12px; width: auto; bottom: 86px; height: min(560px, calc(100dvh - 110px)); }
  .nt-chat-launcher { right: 14px; bottom: 14px; }
  .fab-wa { right: 16px; bottom: 84px; }
  .nt-chat-teaser { right: 14px; bottom: 150px; }
}

.nt-chat-header { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; background: var(--primary); color: #fff; }
.nt-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; flex: none; }
.nt-chat-avatar svg { width: 22px; height: 22px; }
.nt-chat-header-info { line-height: 1.3; }
.nt-chat-header-info strong { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.nt-chat-header-info span { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; opacity: 0.92; }
.nt-chat-header-info .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }

.nt-chat-messages { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.65rem; background: var(--bg); }

.nt-msg { max-width: 85%; padding: 0.68rem 0.95rem; border-radius: 16px; font-size: 0.94rem; line-height: 1.5; white-space: pre-line; overflow-wrap: break-word; }
.nt-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; color: var(--text); }
.nt-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }

.nt-note {
  align-self: center; font-size: 0.78rem; color: var(--text-muted);
  padding: 0.2rem 0.6rem; text-align: center;
}

.nt-msg-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 90%; }
.nt-msg-actions .btn { font-size: 0.88rem; padding: 0.5rem 1.05rem; min-height: 44px; }

.nt-typing { align-self: flex-start; display: inline-flex; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; border-bottom-left-radius: 6px; padding: 0.85rem 1rem; }
.nt-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: bounce 1.2s infinite; }
.nt-typing i:nth-child(2) { animation-delay: 0.15s; }
.nt-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.nt-quick { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.6rem 1.1rem 0.2rem; background: var(--bg); }
.nt-quick button {
  border: 1.5px solid var(--primary-tint-2); background: var(--surface); color: var(--primary-dark);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  border-radius: 999px; padding: 0.42rem 0.9rem; cursor: pointer; transition: background 0.15s ease;
}
.nt-quick button:hover { background: var(--primary-tint); }

.nt-chat-input { display: flex; gap: 0.6rem; padding: 0.85rem 1.1rem; background: var(--bg); border-top: 1px solid var(--border); }
.nt-chat-input input {
  flex: 1; border: 1.5px solid var(--border-strong); border-radius: 999px;
  padding: 0.65rem 1.1rem; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--surface);
}
.nt-chat-input input:focus { outline: none; border-color: var(--primary); }
.nt-chat-input button {
  flex: none; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nt-chat-input button:hover { transform: scale(1.05); background: var(--primary-dark); }
.nt-chat-input button:disabled { opacity: 0.5; cursor: default; transform: none; }
.nt-chat-input svg { width: 20px; height: 20px; }

.nt-chat-foot { text-align: center; font-size: 0.72rem; color: var(--text-muted); padding: 0 1rem 0.7rem; background: var(--bg); }
