/* ============================================================
   ZOLRYN — Sistema de diseño
   Dark tech premium · Inter · glass sutil · animaciones suaves
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #0F172A;
  --bg-2:      #1E293B;
  --card:      #273449;
  --card-glass: rgba(39, 52, 73, 0.55);
  --text:      #F8FAFC;
  --text-2:    #CBD5E1;
  --text-3:    #8FA3BF;
  --primary:   #3B82F6;
  --secondary: #7C3AED;
  --success:   #22C55E;
  --line:      rgba(248, 250, 252, 0.08);
  --line-2:    rgba(248, 250, 252, 0.14);

  --grad: linear-gradient(120deg, var(--primary), var(--secondary));
  --grad-soft: linear-gradient(120deg, rgba(59,130,246,.14), rgba(124,58,237,.14));

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 12px 40px rgba(2, 6, 23, 0.45);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(59, 130, 246, 0.35); }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- 3. Tipografía utilitaria ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad); flex: none;
}

.h-xl { font-size: clamp(2.4rem, 5.6vw, 4.1rem); text-wrap: balance; }
.h-lg { font-size: clamp(1.9rem, 3.8vw, 2.8rem); text-wrap: balance; }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.h-sm { font-size: 1.12rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.small { font-size: 0.88rem; color: var(--text-3); }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center { text-align: center; }
.center .lead, .center .kicker { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99, 102, 241, 0.45); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(248, 250, 252, 0.03);
}
.btn-ghost:hover { border-color: rgba(248,250,252,0.3); background: rgba(248,250,252,0.06); transform: translateY(-2px); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--primary);
}
.link-arrow .arrow { transition: transform 0.25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 23, 42, 0.82);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(14px)) {
  .site-header.is-scrolled {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
}

.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(248,250,252,0.05); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

.nav-cta { flex: none; display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  position: relative;
  flex: none;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease, top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  @supports (backdrop-filter: blur(18px)) {
    .nav-links { background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  }
  .nav-links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 0.9rem 0.85rem; font-size: 1.05rem; }
  .nav-links .nav-mobile-cta { display: block; margin-top: 0.75rem; }
}
.nav-mobile-cta { display: none; }
@media (max-width: 920px) { .nav-mobile-cta { display: block; } }

/* ---------- 6. Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 3.5rem) 4rem;
  overflow: clip;
}
.hero-aurora {
  position: absolute; inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 18% 18%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(34% 40% at 85% 30%, rgba(124, 58, 237, 0.15), transparent 70%),
    radial-gradient(40% 40% at 60% 95%, rgba(59, 130, 246, 0.08), transparent 70%);
  filter: blur(50px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(248,250,252,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,250,252,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  background: rgba(248,250,252,0.03);
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge .dot { animation: none; }
  .hero-aurora { animation: none; }
}

.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--text-3); font-size: 0.88rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { color: var(--success); flex: none; }

/* Chat mockup */
.chat-device {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
}
.chat-device::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(248,250,252,0.07), transparent 35%);
}
.chat-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(39, 52, 73, 0.5);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.95rem;
  flex: none;
}
.chat-head-info { line-height: 1.25; }
.chat-head-info strong { display: block; font-size: 0.95rem; }
.chat-head-info span { font-size: 0.78rem; color: var(--success); display: inline-flex; align-items: center; gap: 0.35rem; }
.chat-head-info span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.chat-body {
  padding: 1.15rem 1rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  min-height: 380px;
}
.chat-msg {
  max-width: 84%;
  padding: 0.62rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem; line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.chat-msg.is-in { opacity: 1; transform: none; }
.chat-msg.from-user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-bottom-right-radius: 4px;
}
.chat-msg.from-bot {
  align-self: flex-start;
  background: rgba(39, 52, 73, 0.85);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg .chat-time { display: block; margin-top: 0.3rem; font-size: 0.68rem; color: var(--text-3); text-align: right; }
.chat-typing {
  align-self: flex-start;
  display: none;
  gap: 5px;
  padding: 0.75rem 1rem;
  background: rgba(39, 52, 73, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.chat-typing.is-on { display: inline-flex; }
.chat-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: typing 1.1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-note {
  padding: 0.55rem 1.1rem 0.9rem;
  font-size: 0.72rem; color: var(--text-3);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ---------- 7. Cards / glass ---------- */
.card {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@supports (backdrop-filter: blur(12px)) {
  .card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-2); margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--primary);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

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

/* ---------- 8. Sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .sector-grid { grid-template-columns: 1fr; } }

.sector-card {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: rgba(39, 52, 73, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.sector-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(39,52,73,0.6); }
.sector-card .emoji { font-size: 1.5rem; flex: none; }
.sector-card span { font-weight: 550; font-size: 0.97rem; }

.sector-card.sector-open {
  grid-column: 1 / -1;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 0.4rem;
  padding: 1.6rem;
  background: var(--grad-soft);
  border-color: rgba(59, 130, 246, 0.3);
}
.sector-card.sector-open strong { font-size: 1.05rem; }
.sector-card.sector-open p { margin: 0; color: var(--text-2); font-size: 0.93rem; max-width: 56ch; }

/* ---------- 9. Proceso / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 1.7rem 1.5rem;
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 700; font-size: 0.95rem;
  background: var(--grad); color: #fff;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-2); font-size: 0.94rem; margin: 0; }

/* ---------- 10. Beneficios ---------- */
.benefit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; }
@media (max-width: 720px) { .benefit-list { grid-template-columns: 1fr; } }
.benefit-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.55rem 0;
  color: var(--text-2);
}
.benefit-list li strong { color: var(--text); font-weight: 600; }
.check {
  flex: none; margin-top: 0.2rem;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
}
.check svg { width: 12px; height: 12px; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* ---------- 11. Productos destacados ---------- */
.product-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@supports (backdrop-filter: blur(12px)) {
  .product-feature { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.product-feature + .product-feature { margin-top: 2rem; }
@media (max-width: 920px) {
  .product-feature { grid-template-columns: 1fr; }
  .product-feature.media-right .pf-media { order: -1; }
}
.pf-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.3rem 0.75rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.pf-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pf-body > p { color: var(--text-2); }
.pf-list { margin: 1.2rem 0 1.6rem; display: grid; gap: 0.55rem; }
.pf-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; }

.pf-media { position: relative; }
.pf-media .frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-2);
}
.pf-media video, .pf-media img { width: 100%; height: auto; }
.pf-media .frame-phone {
  max-width: 280px; margin-inline: auto;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* browser chrome bar */
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-bar i:first-child { background: rgba(239, 68, 68, 0.6); }
.frame-bar i:nth-child(2) { background: rgba(234, 179, 8, 0.6); }
.frame-bar i:nth-child(3) { background: rgba(34, 197, 94, 0.6); }

/* ---------- 12. Casos de uso chips ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  padding: 1.25rem 1.4rem;
  background: rgba(39, 52, 73, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.usecase:hover { border-color: rgba(124, 58, 237, 0.4); transform: translateY(-3px); }
.usecase strong { display: block; margin-bottom: 0.3rem; font-size: 1rem; }
.usecase p { margin: 0; font-size: 0.9rem; color: var(--text-2); }

/* ---------- 13. FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: rgba(59, 130, 246, 0.35); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600; font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-weight: 500; font-size: 1.1rem; color: var(--text-2);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: rgba(59,130,246,0.15); color: var(--text); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-2); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 14. CTA final ---------- */
.cta-panel {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  border: 1px solid rgba(59, 130, 246, 0.25);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(50% 80% at 80% 100%, rgba(124, 58, 237, 0.14), transparent 70%),
    var(--bg-2);
  overflow: hidden;
}
.cta-panel h2 { margin-bottom: 0.8rem; }
.cta-panel .lead { margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ---------- 15. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  padding: clamp(2.5rem, 5vw, 3.8rem) 0 1.6rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 30px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--text-3); max-width: 34ch; margin: 0; font-size: 0.9rem; }

.footer-col h4 {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: var(--text-2); transition: color 0.2s ease; font-size: 0.93rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.85rem;
}
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.footer-social a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.footer-social a[hidden] { display: none; }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- 16. Page hero (páginas internas) ---------- */
.page-hero {
  padding-block: calc(var(--nav-h) + clamp(3rem, 8vw, 5.5rem)) clamp(2.5rem, 6vw, 4rem);
  overflow: clip;
}
.page-hero .lead { margin-bottom: 0; }

/* ---------- 17. Blog ---------- */
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 2.2rem;
}
.blog-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.blog-search input {
  width: 100%;
  padding: 0.75rem 1.05rem 0.75rem 2.6rem;
  background: rgba(39, 52, 73, 0.5);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.25s ease;
}
.blog-search input::placeholder { color: var(--text-3); }
.blog-search input:focus { outline: none; border-color: var(--primary); }
.blog-search svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3); pointer-events: none;
}
.blog-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-cats button {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s ease;
}
.blog-cats button:hover { color: var(--text); border-color: rgba(248,250,252,0.3); }
.blog-cats button.is-active { background: var(--grad); border-color: transparent; color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(59,130,246,0.35); box-shadow: var(--shadow-md); }
.post-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--grad-soft);
  overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.post-card .thumb-fallback img { width: 54px; height: 54px; object-fit: contain; opacity: 0.85; }
.post-card .post-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card .post-meta { display: flex; gap: 0.8rem; align-items: center; font-size: 0.8rem; color: var(--text-3); }
.post-card .post-cat { color: var(--primary); font-weight: 600; }
.post-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.post-card .excerpt { font-size: 0.92rem; color: var(--text-2); margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-pagination {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  margin-top: 2.8rem;
}
.blog-pagination button {
  min-width: 40px; height: 40px; padding-inline: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  font-weight: 550; color: var(--text-2);
  transition: all 0.25s ease;
}
.blog-pagination button:hover:not(:disabled) { color: var(--text); border-color: rgba(248,250,252,0.35); }
.blog-pagination button.is-current { background: var(--grad); border-color: transparent; color: #fff; }
.blog-pagination button:disabled { opacity: 0.35; cursor: default; }

.blog-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  max-width: 640px; margin-inline: auto;
}
.blog-state img { width: 56px; margin: 0 auto 1.2rem; opacity: 0.9; }
.blog-state h3 { margin-bottom: 0.5rem; }
.blog-state p { color: var(--text-2); margin-bottom: 1.4rem; }

.skeleton { position: relative; overflow: hidden; background: rgba(39,52,73,0.5); border-radius: var(--r-lg); min-height: 320px; border: 1px solid var(--line); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(248,250,252,0.05) 50%, transparent 70%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Artículo */
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--text-3); font-size: 0.88rem; margin-bottom: 1.4rem; }
.article-meta .post-cat { color: var(--primary); font-weight: 600; }
.article-hero-img { border-radius: var(--r-lg); overflow: hidden; margin: 2rem 0; border: 1px solid var(--line); }
.article-hero-img img { width: 100%; }

.article-content { font-size: 1.06rem; color: var(--text-2); }
.article-content h2, .article-content h3 { color: var(--text); margin-top: 2.2em; }
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: var(--r-md); margin-block: 1.5rem; }
.article-content blockquote {
  margin: 1.8rem 0; padding: 1rem 1.5rem;
  border-left: 3px solid var(--primary);
  background: rgba(59, 130, 246, 0.07);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
}
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.4em; }
.article-content pre {
  background: #0B1120; border: 1px solid var(--line);
  padding: 1.2rem; border-radius: var(--r-md);
  overflow-x: auto; font-size: 0.88rem;
}
.article-content code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.92em; }

.article-toc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-glass);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
}
.article-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin: 0 0 0.8rem; }
.article-toc ol { display: grid; gap: 0.45rem; list-style: none; padding: 0; margin: 0; }
.article-toc a { color: var(--text-2); font-size: 0.95rem; transition: color 0.2s ease; }
.article-toc a:hover { color: var(--primary); }
.article-toc .toc-h3 { padding-left: 1rem; font-size: 0.88rem; }

.article-share { display: flex; gap: 0.6rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article-share span { color: var(--text-3); font-size: 0.88rem; margin-right: 0.4rem; }
.article-share a, .article-share button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.85rem; color: var(--text-2);
  transition: all 0.25s ease;
}
.article-share a:hover, .article-share button:hover { color: var(--text); border-color: rgba(248,250,252,0.35); }

.related-grid { margin-top: 3rem; }

/* ---------- 18. Contacto ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 550; margin-bottom: 0.4rem; color: var(--text-2); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CBD5E1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-field textarea { min-height: 130px; resize: vertical; }

.form-status { margin-top: 1rem; font-size: 0.92rem; display: none; }
.form-status.is-ok { display: block; color: var(--success); }
.form-status.is-err { display: block; color: #F87171; }

.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
a.contact-card:hover { border-color: rgba(59,130,246,0.35); transform: translateY(-2px); }
.contact-card .card-icon { margin: 0; width: 42px; height: 42px; flex: none; }
.contact-card strong { display: block; margin-bottom: 0.15rem; }
.contact-card span { color: var(--text-2); font-size: 0.92rem; }

.calendar-embed {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.calendar-embed iframe { width: 100%; height: 640px; border: 0; display: block; }

/* ---------- 19. Casos de éxito ---------- */
.coming-soon {
  max-width: 720px; margin-inline: auto;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(55% 80% at 50% 0%, rgba(124, 58, 237, 0.1), transparent 70%),
    var(--card-glass);
}
.coming-soon .badge-soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ---------- 20. Nosotros ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .values-grid { grid-template-columns: 1fr; } }

.roadmap { position: relative; max-width: 760px; margin-inline: auto; display: grid; gap: 0; }
.roadmap-item { position: relative; padding: 0 0 2.2rem 2.6rem; }
.roadmap-item::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: -8px;
  width: 2px; background: linear-gradient(var(--primary), rgba(124,58,237,0.35));
}
.roadmap-item:last-child::before { display: none; }
.roadmap-item::after {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
}
.roadmap-item h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.roadmap-item p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.roadmap-item .stage { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }

/* ---------- 21. Legales ---------- */
.legal-wrap { max-width: 760px; margin-inline: auto; color: var(--text-2); }
.legal-wrap h2 { color: var(--text); font-size: 1.35rem; margin-top: 2.4em; }
.legal-wrap h3 { color: var(--text); font-size: 1.1rem; margin-top: 1.8em; }
.legal-wrap ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2em; }
.legal-wrap li { margin-bottom: 0.4em; }
.legal-wrap a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: 0.85rem; color: var(--text-3); }

/* ---------- 22. Chatbot flotante ---------- */
.zbot-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 140;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.zbot-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 38px rgba(99, 102, 241, 0.55); }
.zbot-fab svg { width: 26px; height: 26px; transition: opacity 0.2s ease, transform 0.3s var(--ease); position: absolute; }
.zbot-fab .icon-close { opacity: 0; transform: rotate(-45deg); }
.zbot-fab.is-open .icon-chat { opacity: 0; transform: rotate(45deg); }
.zbot-fab.is-open .icon-close { opacity: 1; transform: rotate(0); }

.zbot-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 140;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 130px));
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(15, 23, 42, 0.97);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
@supports (backdrop-filter: blur(18px)) {
  .zbot-panel { background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
.zbot-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

.zbot-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(39, 52, 73, 0.5);
  flex: none;
}
.zbot-head .chat-avatar { width: 40px; height: 40px; }
.zbot-head strong { display: block; font-size: 0.98rem; }
.zbot-head .small { display: block; line-height: 1.3; }

.zbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  scrollbar-width: thin;
}
.zbot-msg {
  max-width: 86%;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem; line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.zbot-msg.from-user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-bottom-right-radius: 4px;
}
.zbot-msg.from-bot {
  align-self: flex-start;
  background: rgba(39, 52, 73, 0.85);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.zbot-msg a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.zbot-suggestions { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-top: 0.3rem; }
.zbot-suggestions button {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--text-2);
  transition: all 0.25s ease;
}
.zbot-suggestions button:hover { background: rgba(59,130,246,0.15); color: var(--text); }

.zbot-input {
  flex: none;
  display: flex; gap: 0.6rem; align-items: flex-end;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
}
.zbot-input textarea {
  flex: 1;
  max-height: 110px;
  padding: 0.65rem 0.9rem;
  background: rgba(39, 52, 73, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--text);
  resize: none;
  font-size: 0.93rem; line-height: 1.4;
}
.zbot-input textarea:focus { outline: none; border-color: var(--primary); }
.zbot-input button {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.zbot-input button:hover { transform: scale(1.06); }
.zbot-input button:disabled { opacity: 0.5; transform: none; cursor: default; }
.zbot-input svg { width: 18px; height: 18px; }

.zbot-disclaimer {
  flex: none;
  padding: 0 1rem 0.8rem;
  font-size: 0.7rem; color: var(--text-3);
  text-align: center;
}

@media (max-width: 540px) {
  .zbot-fab { right: 16px; bottom: 16px; }
  .zbot-panel { right: 16px; bottom: 84px; }
}

/* ---------- 23. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: 0.25s; transform: none; }
}

/* stagger helper: nth children delay */
[data-stagger] > * { --reveal-delay: 0s; }
[data-stagger] > *:nth-child(2) { --reveal-delay: 0.08s; }
[data-stagger] > *:nth-child(3) { --reveal-delay: 0.16s; }
[data-stagger] > *:nth-child(4) { --reveal-delay: 0.24s; }
[data-stagger] > *:nth-child(5) { --reveal-delay: 0.32s; }
[data-stagger] > *:nth-child(6) { --reveal-delay: 0.4s; }
[data-stagger] > *:nth-child(7) { --reveal-delay: 0.48s; }
[data-stagger] > *:nth-child(8) { --reveal-delay: 0.56s; }

/* ---------- 24. Misc ---------- */
.divider-glow {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), rgba(124,58,237,0.4), transparent);
}

.badge-ia {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--secondary);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}

.marquee {
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-size: 0.92rem; font-weight: 550; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 0.7rem;
  white-space: nowrap;
}
.marquee-track span::before { content: "·"; color: var(--primary); font-size: 1.4rem; line-height: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.error-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.error-hero .h-giant { font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }

@media (max-width: 620px) {
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta-actions .btn { flex: 1 1 auto; }
}
