/* ==========================================================
   Quantiqus · IA Generativa
   Colores corporativos:
     Cian    #68c4cf
     Púrpura #706788
   Fuentes corporativas: Nexa
   ========================================================== */

@font-face {
  font-family: nexaFontLight;
  src: url(fonts/Nexa\ Light.otf);
  font-display: swap;
}
@font-face {
  font-family: nexaFontBook;
  src: url(fonts/Nexa-Book.otf);
  font-display: swap;
}
@font-face {
  font-family: nexaFontRegular;
  src: url(fonts/Nexa\ Regular.otf);
  font-display: swap;
}
@font-face {
  font-family: nexaFontBold;
  src: url(fonts/Nexa\ Bold.otf);
  font-display: swap;
}

:root {
  --q-cyan: #68c4cf;
  --q-cyan-ink: #25808d;   /* el cian de marca, más oscuro, para texto pequeño sobre fondo claro (4,6:1 sobre blanco) */
  --q-purple: #706788;
  --q-purple-deep: #4a4360;
  --q-ink: #1a1626;
  --q-ink-soft: #4a4560;
  --q-muted: #6e6a80;      /* antes #7e7a8f: 4,1:1 sobre blanco; ahora 5,2:1 (y 4,9:1 sobre --q-bg-soft) */
  --q-bg: #ffffff;
  --q-bg-soft: #f7f7fb;
  --q-bg-dark: #15121e;
  --q-border: rgba(112, 103, 136, 0.14);
  --q-grad: linear-gradient(120deg, #68c4cf 0%, #706788 100%);
  /* Botones con texto blanco: parte del cian profundo para que el texto llegue a 4,7:1 (sobre --q-grad eran 2,2:1 en el extremo cian) */
  --q-grad-btn: linear-gradient(120deg, var(--q-cyan-ink) 0%, var(--q-purple) 100%);
  --q-grad-soft: linear-gradient(120deg, rgba(104,196,207,0.12), rgba(112,103,136,0.12));
  --q-shadow-sm: 0 4px 18px rgba(74, 67, 96, 0.08);
  --q-shadow-md: 0 12px 36px rgba(74, 67, 96, 0.12);
  --q-shadow-lg: 0 24px 60px rgba(74, 67, 96, 0.18);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: nexaFontLight, "Helvetica Neue", Arial, sans-serif;
  color: var(--q-ink);
  background: var(--q-bg);
  line-height: 1.55;
  overflow-x: hidden;
}

strong { font-family: nexaFontBold, sans-serif; font-weight: 400; }

a { color: var(--q-purple); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--q-cyan); }

/* ============ Tipografía base ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: nexaFontRegular, "Helvetica Neue", Arial, sans-serif;
  color: var(--q-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
p  { color: var(--q-ink-soft); }

.grad-text {
  background: var(--q-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: nexaFontBold, sans-serif;
}
.grad-text-light {
  background: linear-gradient(120deg, #b6e6eb 0%, #d8d2e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: nexaFontBold, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--q-purple);
  padding: 6px 14px;
  background: var(--q-grad-soft);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow-light {
  color: #d8d2e6;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}

.section { padding: 110px 0; position: relative; }
.section-soft { background: var(--q-bg-soft); }
.text-white-70 { color: rgba(255,255,255,0.7) !important; }

.section-title { margin-bottom: 1rem; }
.section-sub  { font-size: 1.1rem; color: var(--q-muted); max-width: 720px; margin: 0 auto; }

/* ============ NAVBAR ============ */
.navbar {
  padding: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--q-border);
  box-shadow: 0 4px 18px rgba(74,67,96,0.06);
}
.navbar .container-fluid { background: transparent; padding: 10px 28px; }
.navbar-brand img { height: auto; transition: transform .3s ease; }
.navbar-brand:hover img { transform: scale(1.02); }

.navbar .nav-link {
  color: var(--q-ink) !important;
  font-family: nexaFontRegular, sans-serif;
  font-size: 0.96rem;
  padding: 8px 14px !important;
  position: relative;
  transition: color .2s ease;
}
.navbar .nav-link:hover { color: var(--q-purple) !important; text-decoration: none; }
.navbar .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--q-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.navbar .nav-link:hover::after { transform: scaleX(1); }
/* Sección en la que estás (la marca script.js al hacer scroll) */
.navbar .nav-link.active { color: var(--q-purple) !important; }
.navbar .nav-link.active::after { transform: scaleX(1); }
@media (max-width: 991px) {
  /* En el menú desplegado el enlace ocupa todo el ancho: la raya se queda corta, bajo el texto */
  .navbar .nav-link.active::after { right: auto; width: 28px; }
}

.btn-cta {
  background: var(--q-grad-btn); color: #fff !important;
  padding: 10px 20px; border-radius: 999px;
  font-family: nexaFontRegular, sans-serif;
  border: none; transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(112,103,136,0.25);
}
.btn-cta:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(112,103,136,0.35); }
.btn-cta::after { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 80px;
  display: flex; align-items: center;
  overflow: hidden;
  background: #fbfaff;
}
.hero-inner { position: relative; z-index: 3; }

.hero-mesh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  filter: blur(80px); opacity: 0.85;
}
.hero-mesh .blob {
  position: absolute; border-radius: 50%;
  animation: blobFloat 18s ease-in-out infinite;
}
.hero-mesh .blob-1 {
  width: 520px; height: 520px; top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(104,196,207,0.85), transparent 60%);
}
.hero-mesh .blob-2 {
  width: 600px; height: 600px; top: 20%; right: -160px;
  background: radial-gradient(circle, rgba(112,103,136,0.75), transparent 60%);
  animation-delay: -6s;
}
.hero-mesh .blob-3 {
  width: 420px; height: 420px; bottom: -120px; left: 30%;
  background: radial-gradient(circle, rgba(180,160,220,0.55), transparent 60%);
  animation-delay: -12s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-30px,40px) scale(0.95); }
}

.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(112,103,136,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112,103,136,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--q-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; color: var(--q-ink-soft);
  margin-bottom: 28px;
  box-shadow: var(--q-shadow-sm);
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--q-cyan);
  box-shadow: 0 0 0 4px rgba(104,196,207,0.25);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(104,196,207,0.25); }
  50%      { box-shadow: 0 0 0 10px rgba(104,196,207,0); }
}

.hero-title {
  font-family: nexaFontRegular, sans-serif;
  color: var(--q-ink);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--q-ink-soft);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-cta-lg {
  background: var(--q-grad-btn); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font-family: nexaFontRegular, sans-serif;
  font-size: 1.02rem;
  border: none;
  box-shadow: 0 10px 28px rgba(112,103,136,0.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-cta-lg:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(112,103,136,0.4); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--q-border);
  color: var(--q-ink); padding: 14px 24px; border-radius: 999px;
  font-family: nexaFontRegular, sans-serif;
  transition: all .25s ease;
}
.btn-ghost:hover { background: #fff; border-color: var(--q-cyan); color: var(--q-purple); }

.hero-rotator {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--q-border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 1.1rem;
}
.rot-label { color: var(--q-muted); }
.profiles-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--q-muted); margin-bottom: 0; }
.hero-talent { margin: 18px 0 0; font-size: .95rem; color: var(--q-muted); }
.hero-talent a { color: var(--q-purple); font-family: nexaFontBold, sans-serif; text-decoration: none; }
.hero-talent a:hover { color: var(--q-cyan); }
.rot-words { position: relative; min-width: 230px; }
.rot-words .toggle {
  display: none; color: var(--q-purple);
  font-family: nexaFontBold, sans-serif;
}
.rot-words .toggle.active { display: inline-block; animation: slideUp .4s ease; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rot-caret {
  color: var(--q-cyan);
  animation: blink 1s steps(1) infinite;
  font-family: monospace;
}
@keyframes blink { 50% { opacity: 0; } }

/* Prompt card (right side of hero) */
.prompt-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--q-shadow-lg);
  border: 1px solid var(--q-border);
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.prompt-card:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.prompt-card::before {
  content: ""; position: absolute; inset: 0;
  padding: 1px; border-radius: 18px;
  background: var(--q-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.prompt-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #fafaff, #f1f0f8);
  border-bottom: 1px solid var(--q-border);
}
.prompt-card-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.d-red { background: #ff5f57; }
.d-yellow { background: #ffbd2e; }
.d-green { background: #28c840; }
.prompt-title {
  margin-left: 12px; font-size: 0.85rem; color: var(--q-muted);
  font-family: monospace;
}
.prompt-note {
  margin-left: auto; font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--q-muted); font-family: nexaFontBook, sans-serif;
}
.prompt-body { padding: 22px; min-height: 260px; }

/* Pestañas bajo la tarjeta: la conversación cambia sola entre ejemplos y también se puede elegir */
.demo-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.demo-tab {
  border: 1px solid var(--q-border); background: rgba(255,255,255,0.7);
  /* Nexa deja más hueco bajo la línea base que sobre las mayúsculas: 2px más arriba para centrar el texto ópticamente */
  color: var(--q-ink-soft); border-radius: 999px; padding: 8px 14px 4px;
  font-family: nexaFontRegular, sans-serif; font-size: 0.82rem; line-height: 1.4;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.demo-tab:hover { border-color: var(--q-cyan); color: var(--q-purple); }
.demo-tab.active, .demo-tab.active:hover { background: var(--q-purple); border-color: var(--q-purple); color: #fff; }
.demo-tab:focus-visible { outline: 2px solid var(--q-cyan-ink); outline-offset: 2px; }

.msg { display: block; margin-bottom: 16px; }
.msg-role {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--q-muted); margin-bottom: 4px;
  font-family: nexaFontBold, sans-serif;
}
.msg-text {
  display: block; font-size: 0.98rem; color: var(--q-ink);
  font-family: nexaFontBook, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}
.msg-assistant .msg-text { color: var(--q-purple-deep); }
.msg-assistant {
  background: var(--q-grad-soft);
  border-left: 3px solid var(--q-cyan);
  padding: 12px 14px; border-radius: 8px;
  transition: opacity .4s ease;
}

.thinking { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.thinking span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--q-purple);
  animation: bounce 1.2s infinite ease-in-out;
}
.thinking span:nth-child(2) { animation-delay: 0.2s; }
.thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-6px); opacity: 1; }
}

.tools-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; transition: opacity .4s ease; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem;
  background: #f4f3fa;
  color: var(--q-purple);
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--q-border);
  font-family: monospace;
}

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; color: var(--q-purple);
  animation: scrollBob 2s ease-in-out infinite;
  z-index: 3;
}
@keyframes scrollBob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%, 8px); } }

/* ============ TRUST STRIPE ============ */
.trust {
  padding: 60px 0;
  background: var(--q-bg-soft);
  border-top: 1px solid var(--q-border);
  border-bottom: 1px solid var(--q-border);
}
.trust-head {
  text-align: center; margin: 0 0 28px;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--q-muted);
}
.clients-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 28px 56px;
  min-height: 40px; /* reserva la altura de los logos mientras cargan */
}
.clients-row img {
  height: auto; width: auto; max-height: 40px; max-width: 150px;
  filter: grayscale(1); opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}
.clients-row img:hover { filter: grayscale(0); opacity: 1; }
/* Wordmarks muy apaisados (MANGO, 6:1): necesitan más ancho para no quedar diminutos */
.clients-row img.logo-wide { max-width: 172px; }
@media (max-width: 575px) {
  .clients-row { gap: 24px 36px; min-height: 32px; }
  .clients-row img { max-height: 32px; max-width: 110px; }
  .clients-row img.logo-wide { max-width: 128px; }
}
/* Tablet: con menos hueco caben los 5 logos en una fila (sin uno suelto debajo) */
@media (min-width: 768px) and (max-width: 991px) {
  .clients-row { gap: 28px 30px; }
}

/* ============ CAPABILITY CARDS ============ */
.cap-card {
  background: #fff;
  border: 1px solid var(--q-border);
  border-radius: 18px;
  padding: 32px 28px;
  height: 100%;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--q-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--q-shadow-md);
  border-color: rgba(104,196,207,0.4);
}
.cap-card:hover::before { transform: scaleX(1); }

.cap-ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--q-grad-soft);
  color: var(--q-purple);
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.cap-card h3 {
  font-size: 1.1rem;
  font-family: nexaFontBold, sans-serif;
  color: var(--q-ink);
  margin-bottom: 10px;
}
.cap-card p { color: var(--q-ink-soft); font-size: 0.96rem; }
.cap-tags {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px;
}
.cap-tags span {
  font-size: 0.72rem;
  background: #f4f3fa; color: var(--q-purple);
  padding: 4px 10px; border-radius: 999px;
  font-family: monospace;
}

/* ============ PARALLAX QUOTES ============ */
.parallax-quote {
  padding: 130px 0;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}
.parallax-quote .pq-text {
  font-size: clamp(1.4rem, 2.9vw, 2.35rem);
  font-family: nexaFontLight, sans-serif;
  color: #fff;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 30px;
}
.parallax-quote .pq-text i { font-size: 2rem; opacity: 0.7; display: block; margin-bottom: 18px; }

/* Variante oscura con fondo en dos capas que se desplazan a distinta velocidad (ver script.js).
   Blanco sobre este fondo: más de 5:1 de contraste en toda la banda (unos 14:1 tras el texto). */
.pq-dark {
  padding: 110px 0;
  background: linear-gradient(135deg, var(--q-purple-deep) 0%, var(--q-bg-dark) 100%);
}
.px-bg { position: absolute; inset: 0; pointer-events: none; }
.px-layer {
  position: absolute; left: 0; right: 0;
  background-repeat: repeat; will-change: transform;
}
/* Luz de fondo (la que más se queda atrás) */
.pq-glow {
  top: -160px; bottom: -160px;
  background:
    radial-gradient(ellipse 55% 50% at 12% 28%, rgba(104,196,207,0.32), transparent 62%),
    radial-gradient(ellipse 50% 50% at 90% 78%, rgba(112,103,136,0.60), transparent 64%);
}
/* Muchos puntos tenues = lo que se ha probado; pocos nodos cyan = lo que funciona */
.pq-far  { top: -260px; bottom: -260px; background-image: url("img/pq-far.svg");  background-size: 760px 760px; }
.pq-near { top: -120px; bottom: -120px; background-image: url("img/pq-near.svg"); background-size: 1100px 1100px; }
.pq-dark .container { position: relative; z-index: 1; }
.pq-dark .pq-text {
  max-width: 1040px; color: #fff; text-shadow: 0 2px 28px rgba(21,18,30,0.6);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}
.pq-dark .pq-text i { color: var(--q-cyan); opacity: 0.9; }
.pq-dark .pq-line { display: block; text-wrap: balance; }
.pq-dark .pq-line + .pq-line { margin-top: 0.2em; }
.pq-dark .pq-punch {
  display: block; margin-top: 0.75em; text-wrap: balance;
  color: var(--q-cyan); font-family: nexaFontBold, sans-serif; text-shadow: none;
}
.pq-dark .pq-hl { color: var(--q-cyan); font-family: nexaFontBold, sans-serif; }

/* Frase de personas: más morado, luces invertidas respecto a la primera cita, y grupos de
   círculos que se solapan (equipos) en lugar de puntos sueltos. */
.pq-people { background: linear-gradient(315deg, var(--q-purple-deep) 0%, var(--q-ink) 70%); }
.pp-glow {
  top: -160px; bottom: -160px;
  background:
    radial-gradient(ellipse 55% 55% at 86% 22%, rgba(112,103,136,0.55), transparent 64%),
    radial-gradient(ellipse 45% 50% at 10% 88%, rgba(104,196,207,0.22), transparent 64%);
}
.pp-far  { top: -260px; bottom: -260px; background-image: url("img/pp-far.svg");  background-size: 900px 900px; }
.pp-near { top: -120px; bottom: -120px; background-image: url("img/pp-near.svg"); background-size: 1300px 1300px; }

/* ============ USE CASES ============ */
.usecases {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.usecase {
  background: #fff;
  border: 1px solid var(--q-border);
  border-radius: 18px;
  padding: 30px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.usecase:hover { transform: translateY(-4px); box-shadow: var(--q-shadow-md); }
.uc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--q-cyan-ink);
  font-family: nexaFontBold, sans-serif;
  margin-bottom: 12px;
}
.usecase h4 { color: var(--q-ink); margin-bottom: 10px; }
.usecase p  { color: var(--q-ink-soft); font-size: 0.96rem; }
.uc-kpis {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.uc-kpis li {
  font-size: 0.85rem;
  background: var(--q-grad-soft);
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--q-ink-soft);
}
.uc-kpis strong {
  background: var(--q-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: nexaFontBold, sans-serif;
  margin-right: 4px;
}

/* ============ STACK ============ */
.stack-grid {
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
/* Versión oscura con parallax, a juego con la frase destacada pero con otro motivo:
   constelación de nodos unidos (las herramientas que se conectan) y luces invertidas. */
.stack-dark {
  overflow: hidden; color: #fff;
  background: linear-gradient(200deg, var(--q-ink) 0%, var(--q-bg-dark) 100%);
}
.stack-dark .container { position: relative; z-index: 1; }
.stack-dark .section-title { color: #fff; }
.stack-dark .section-title, .stack-dark .section-sub { text-shadow: 0 2px 24px rgba(21,18,30,0.7); }
.stack-dark .st-accent { color: var(--q-cyan); }
.stack-dark .stack-grid { align-items: start; gap: 36px 32px; }
.st-glow {
  top: -160px; bottom: -160px;
  background:
    radial-gradient(ellipse 50% 40% at 88% 14%, rgba(112,103,136,0.50), transparent 64%),
    radial-gradient(ellipse 50% 40% at 8% 86%, rgba(104,196,207,0.24), transparent 64%);
}
.st-far  { top: -260px; bottom: -260px; background-image: url("img/st-far.svg");  background-size: 820px 820px; }
.st-near { top: -120px; bottom: -120px; background-image: url("img/st-near.svg"); background-size: 1240px 1240px; }
@media (min-width: 576px) { .stack-dark .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .stack-dark .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .stack-dark .stack-group h3 { font-size: 0.76rem; letter-spacing: 0.08em; }
}
@media (min-width: 1400px) {
  .stack-dark .stack-group h3 { font-size: 0.82rem; letter-spacing: 0.12em; }
}
.stack-group h3 {
  color: var(--q-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-family: nexaFontBold, sans-serif;
  margin-bottom: 14px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-family: nexaFontBook, sans-serif;
  transition: all .25s ease;
}
.chip:hover {
  background: var(--q-grad);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ============ MINI CARDS (complementary capabilities) ============ */
.mini-card {
  background: #fff;
  border: 1px solid var(--q-border);
  border-radius: 14px;
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  height: 100%;
  transition: all .25s ease;
}
.mini-card:hover {
  border-color: var(--q-cyan);
  transform: translateY(-2px);
  box-shadow: var(--q-shadow-sm);
}
.mini-card i {
  font-size: 1.8rem;
  background: var(--q-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mini-card span {
  font-family: nexaFontRegular, sans-serif;
  color: var(--q-ink);
  font-size: 0.96rem;
}

/* ============ MISIÓN CARDS ============ */
.mision-card {
  background: #fff;
  border: 1px solid var(--q-border);
  border-radius: 18px;
  padding: 32px 28px;
  height: 100%;
  transition: all .3s ease;
}
.mision-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112,103,136,0.4);
  box-shadow: var(--q-shadow-md);
}
.mision-card i {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--q-grad-soft);
  color: var(--q-purple);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.mision-card h3 {
  font-size: 1.1rem;
  font-family: nexaFontBold, sans-serif;
  color: var(--q-ink);
  margin-bottom: 8px;
}
.mision-card p { color: var(--q-ink-soft); font-size: 0.95rem; }

/* ============ PARTNERS ============ */
.partners-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 50px;
  padding: 30px 0;
  min-height: 104px; /* 44 px de logo + el relleno, para que no salte al cargar */
}
.partners-row img {
  height: auto; width: auto;
  max-height: 44px; max-width: 200px;
  filter: grayscale(0.4);
  opacity: 0.75;
  transition: all .3s ease;
}
.partners-row img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* ============ CONTACTO ============ */
.contact {
  padding: 130px 0;
  background: radial-gradient(circle at 30% 30%, rgba(104,196,207,0.25), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(112,103,136,0.5), transparent 55%),
              #15121e;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-mesh {
  position: absolute; inset: 0; pointer-events: none;
  filter: blur(80px); opacity: 0.5;
}
.contact-mesh .blob { position: absolute; border-radius: 50%; animation: blobFloat 22s ease-in-out infinite; }
.contact-mesh .blob-1 {
  width: 500px; height: 500px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(104,196,207,0.6), transparent 60%);
}
.contact-mesh .blob-2 {
  width: 600px; height: 600px; bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(112,103,136,0.7), transparent 60%);
  animation-delay: -8s;
}
.contact-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.contact-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.btn-contact {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--q-purple);
  padding: 16px 32px; border-radius: 999px;
  font-family: nexaFontBold, sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all .25s ease;
}
.btn-contact:hover {
  transform: translateY(-2px);
  background: var(--q-cyan); color: #fff;
  box-shadow: 0 14px 40px rgba(104,196,207,0.4);
}
.contact-foot { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.contact-foot a { color: var(--q-cyan); }
.contact-foot a:hover { color: #fff; }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding: 80px 0 28px;
  background: #0d0a14;
  color: rgba(255,255,255,0.65);
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.footer-grad {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(104,196,207,0.18), transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(112,103,136,0.28), transparent 50%);
  opacity: 0.9;
}
.footer-top { padding-bottom: 50px; }

.footer-brand { display: inline-block; }
.footer-brand img { height: auto; opacity: 0.95; transition: opacity .25s ease; }
.footer-brand:hover img { opacity: 1; }

.footer-tag {
  margin-top: 18px;
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  max-width: 320px;
  line-height: 1.55;
}

.footer-socials {
  display: flex; gap: 10px;
  margin-top: 20px;
}
.footer-socials a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.05rem;
  transition: all .25s ease;
}
.footer-socials a:hover {
  background: var(--q-grad);
  border-color: transparent;
  transform: translateY(-2px);
  color: #fff;
}

.footer-title {
  font-family: nexaFontBold, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--q-cyan);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  position: relative;
  display: inline-flex; align-items: center;
  transition: color .2s ease;
}
.footer-links a::before {
  content: "";
  display: inline-block;
  width: 0; height: 1px;
  background: var(--q-cyan);
  margin-right: 0;
  transition: width .25s ease, margin-right .25s ease;
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { width: 14px; margin-right: 8px; }

.footer-contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
  font-family: nexaFontBold, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 14px;
  transition: color .2s ease;
}
.footer-contact-link:hover { color: var(--q-cyan); }
.footer-contact-link i {
  background: var(--q-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.footer-meta {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
}
.footer-meta i { color: var(--q-cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.footer-legal {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color .2s ease;
}
.footer-legal:hover { color: var(--q-cyan); }
.footer-sep { color: rgba(255,255,255,0.25); margin: 0 8px; }

/* ============ CAP CARD HIGHLIGHT (NL → SQL) ============ */
.cap-card-highlight {
  background:
    linear-gradient(180deg, rgba(104,196,207,0.06), rgba(112,103,136,0.05)),
    #fff;
  border-color: rgba(104,196,207,0.5);
}
.cap-card-highlight::before {
  transform: scaleX(1);
  height: 4px;
}
.cap-card-highlight .cap-ico {
  background: var(--q-grad);
  color: #fff;
}

/* ============ ANIMATION HELPERS ============ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding: 130px 0 60px; }
  .hero-title { font-size: 2.3rem; }
  .parallax-quote { padding: 90px 0; margin: 60px 0; }
}

@media (max-width: 575px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-cta-lg, .hero-cta .btn-ghost { width: 100%; text-align: center; }
  .partners-row { gap: 24px 28px; min-height: 94px; }
  .partners-row img { max-height: 34px; max-width: 150px; }
}

/* ============ PERSONAS ============ */
.people-panel {
  height: 100%;
  background: var(--q-grad-soft);
  border: 1px solid var(--q-border);
  border-radius: 18px;
  padding: 32px 28px;
}
.people-panel h3 {
  font-family: nexaFontBold, sans-serif;
  font-size: 1.15rem;
  color: var(--q-ink);
  margin-bottom: 20px;
}
.people-panel { display: flex; flex-direction: column; }
.people-list { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.people-list li { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--q-border); }
.people-list li:first-child { border-top: 0; padding-top: 0; }
.people-list li:last-child { padding-bottom: 0; }
.people-list li > i {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: #fff; border: 1px solid var(--q-border);
  color: var(--q-purple); font-size: 1.15rem;
}
.people-list strong { display: block; font-family: nexaFontBold, sans-serif; font-weight: normal; color: var(--q-ink); font-size: .98rem; margin-bottom: 2px; }
.people-list span { display: block; color: var(--q-ink-soft); font-size: .92rem; line-height: 1.45; }
/* En desktop los dos paneles van lado a lado: filas de igual altura para que los border-top de ambas listas queden alineados */
@media (min-width: 992px) {
  .people-list { display: grid; grid-auto-rows: 1fr; }
  /* Con filas iguales, el primer elemento necesita el mismo padding-top que el resto; el título lo compensa */
  .people-list li:first-child { padding-top: 11px; }
  .people-panel h3 { margin-bottom: 9px; }
}
.people-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.people-cta span { color: var(--q-muted); font-size: .95rem; }
/* El enlace «Trabaja con nosotros» aterriza aquí: sin este margen el título quedaba bajo la barra fija */
#trabaja { scroll-margin-top: 120px; }
@media (max-width: 575px) {
  .people-cta .btn { width: 100%; text-align: center; }
}

/* Navbar: evita que los enlaces se partan en dos líneas en pantallas medianas */
.navbar .nav-link, .navbar .btn-cta { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-brand img { width: 170px; }
  .navbar .nav-link { padding-left: .55rem; padding-right: .55rem; font-size: .9rem; }
  .navbar .btn-cta { padding: .5rem .9rem; font-size: .9rem; }
}
/* Móviles estrechos (375 px y menos, p. ej. 360 de muchos Android): logo y botón del menú caben en una sola fila.
   Sin esto el botón saltaba bajo el logo y la barra, más alta, tapaba el inicio del hero. */
@media (max-width: 389px) {
  .navbar .container-fluid { padding-left: 16px; padding-right: 16px; }
  .navbar-brand { margin-right: 8px; }
  .navbar-brand img { width: 200px; height: auto; }
}

/* Logos blancos sobre fondo claro (p. ej. SSH Team): se pintan en oscuro */
.partners-row img.logo-white,
.partners-row img.logo-white:hover { filter: brightness(0); }

/* ============ PÁGINAS LEGALES ============ */
.legal-head { padding: 22px 0; border-bottom: 1px solid var(--q-border); }
.legal-head .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legal-head img { width: 180px; height: auto; }
.legal-back { color: var(--q-purple); text-decoration: none; font-size: .95rem; }
.legal-back:hover { color: var(--q-cyan); }
.legal-body { padding: 56px 0 80px; }
.legal-body .container { max-width: 820px; }
.legal-body h1 { font-family: nexaFontBold, sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal-body h2 { font-family: nexaFontBold, sans-serif; font-size: 1.25rem; margin: 36px 0 12px; color: var(--q-ink); }
.legal-body h3 { font-family: nexaFontBold, sans-serif; font-size: 1.05rem; margin: 20px 0 8px; color: var(--q-ink); }
.legal-body p, .legal-body li { color: var(--q-ink-soft); line-height: 1.7; }
.legal-body a { color: var(--q-purple); }
.legal-updated { color: var(--q-muted); font-size: .9rem; }
.legal-foot { padding: 24px 0; border-top: 1px solid var(--q-border); color: var(--q-muted); text-align: center; }
.legal-foot a { color: var(--q-muted); }

/* ============ CARRUSEL TÁCTIL EN MÓVIL ============ */
/* Casos de uso y «Qué más hacemos» pasan de una columna larga a tarjetas que se deslizan (scroll-snap, sin librerías).
   script.js añade los puntos y, en móvil, hace el contenedor enfocable para poder moverlo con el teclado. */
.swipe-dots { display: none; }
@media (max-width: 767px) {
  .swipe-row {
    --bs-gutter-x: 0; --bs-gutter-y: 0;            /* anula el gutter de .row.g-4 */
    display: flex; flex-wrap: nowrap; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 12px;
    margin-left: -12px; margin-right: -12px;       /* llega hasta el borde de la pantalla */
    padding: 6px 12px 20px;                         /* aire para la sombra y el hover de las tarjetas */
    scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { flex: 0 0 84%; width: 84%; max-width: 84%; scroll-snap-align: start; }
  .swipe-row:focus-visible { outline: 2px solid var(--q-cyan-ink); outline-offset: -2px; border-radius: 18px; }
  /* Las tarjetas que aún no han entrado en horizontal no pueden estar ocultas por el reveal */
  .swipe-row .reveal { opacity: 1; transform: none; transition: none; }

  .swipe-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .swipe-dots span {
    width: 8px; height: 8px; border-radius: 999px; background: rgba(112, 103, 136, 0.28);
    transition: width .25s ease, background .25s ease;
  }
  .swipe-dots span.on { width: 24px; background: var(--q-purple); }
}

/* ============ BOTÓN DE CONTACTO FLOTANTE (móvil y tablet) ============ */
/* Aparece cuando el botón del hero sale de pantalla y se oculta al llegar a contacto y footer (script.js).
   Reutiliza .btn-cta, así que hereda cualquier cambio del degradado de los botones. */
.sticky-cta {
  position: fixed; z-index: 1020;
  left: 0; right: 0; margin-inline: auto; width: fit-content;
  bottom: calc(18px + env(safe-area-inset-bottom));
  padding: 13px 24px; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(74, 67, 96, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.sticky-cta.show { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.sticky-cta.show:hover { transform: translateY(-1px); }
@media (min-width: 992px) { .sticky-cta { display: none; } }

/* ============ ACTUALIDAD (feed de LinkedIn) Y AVISO DE COOKIES ============ */
.news-feed { min-height: 160px; }
.news-consent {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--q-border); border-radius: 18px;
  padding: 32px 24px;
}
.news-consent > i { font-size: 2rem; color: var(--q-purple); }
.news-consent p { color: var(--q-ink-soft); margin: 12px auto 22px; max-width: 560px; }
.news-consent-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.news-feed.is-loaded .news-consent { display: none; }

.cookie-banner {
  position: fixed; z-index: 1080;
  left: 16px; right: 16px; margin-inline: auto; max-width: 820px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--q-border); border-radius: 18px;
  padding: 18px 22px; box-shadow: 0 14px 40px rgba(46, 41, 64, 0.22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--q-ink-soft); line-height: 1.5; }
.cookie-banner a { color: var(--q-cyan-ink); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
/* Aceptar y Rechazar con el mismo tamaño y peso visual */
.cookie-btn {
  min-width: 112px; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  font-family: nexaFontRegular, sans-serif; font-size: .95rem;
  background: #fff; border: 1.5px solid var(--q-purple); color: var(--q-purple-deep);
  transition: all .2s ease;
}
.cookie-btn:hover { background: var(--q-bg-soft); }
.cookie-btn-yes { background: var(--q-grad-btn); border-color: transparent; color: #fff; }
.cookie-btn-yes:hover { background: var(--q-grad-btn); filter: brightness(1.06); }
/* Con el aviso abierto no compite con el botón flotante */
body.cookie-open .sticky-cta { opacity: 0; visibility: hidden; }
.footer-cookie-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 575px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie-actions .cookie-btn { flex: 1; }
  .news-consent-actions .btn { width: 100%; }
}

/* ============ MOVIMIENTO REDUCIDO ============ */
/* Quien pide menos movimiento en su sistema no ve bucles (blobs, puntos, cursor, flecha), entradas ni transiciones.
   Los efectos que dependen del scroll (parallax) y las entradas se desactivan además en script.js. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
