/* ============================================================
   DATAGROWTH — /servicios/ia
   Hub de servicios IA. Espejo estructural de /servicios/datos:
   misma paleta, tipografía, motion, dg-* class system.
   ============================================================ */

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

:root {
  --ink:        #263b4a;
  --ink-soft:   #1d2e3a;
  --lima:       #b5ff82;
  --lima-hover: #c6ff9c;
  --lav:        #bab8d0;
  --bg:         #ffffff;
  --surface:    #f8fafc;

  --ink-80:  rgba(38,59,74,0.80);
  --ink-70:  rgba(38,59,74,0.70);
  --ink-65:  rgba(38,59,74,0.65);
  --ink-50:  rgba(38,59,74,0.50);
  --ink-40:  rgba(38,59,74,0.40);
  --ink-15:  rgba(38,59,74,0.15);
  --ink-12:  rgba(38,59,74,0.12);
  --ink-06:  rgba(38,59,74,0.06);
  --ink-05:  rgba(38,59,74,0.05);
  --bg-85:   rgba(255,255,255,0.85);
  --bg-70:   rgba(255,255,255,0.70);
  --bg-40:   rgba(255,255,255,0.40);
  --bg-15:   rgba(255,255,255,0.15);
  --bg-10:   rgba(255,255,255,0.10);

  --line:        rgba(38,59,74,0.10);
  --line-strong: rgba(38,59,74,0.20);

  --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  20px;
  --r-3xl:  28px;
  --r-pill: 9999px;

  --ease-out: ease-out;
  --ease-reveal: cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lima); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---- SKIP LINK ---- */
.dg-skip {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14px;
  transition: top 200ms var(--ease-out);
}
.dg-skip:focus { top: 16px; outline: 2px solid var(--lima); outline-offset: 2px; }

/* ---- LAYOUT HELPERS ---- */
.dg-container-wide {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}
.dg-container-prose {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 24px;
}
.dg-text-center { text-align: center; }
.dg-landing { display: block; width: 100%; overflow-x: clip; }

/* ---- EYEBROW ---- */
.dg-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.dg-eyebrow--dark { color: var(--bg-40); }

/* ---- REVEAL LINES ---- */
.dg-reveal-line { display: block; overflow: hidden;
  padding-bottom: 0.12em; margin-bottom: -0.12em; }
.dg-reveal-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-reveal);
  will-change: transform;
}
.dg-reveal-line.is-visible .dg-reveal-inner { transform: translateY(0); }

/* ---- BUTTONS ---- */
.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--r-pill);
  padding: 6px 8px 6px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  height: 56px;
  text-decoration: none;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
  cursor: pointer;
  border: none;
}
.dg-btn:active { transform: scale(0.98); }
.dg-btn__label { padding-left: 4px; }
.dg-btn__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.dg-btn__circle svg { width: 14px; height: 14px; transition: transform 300ms var(--ease-out); }
.dg-btn:hover .dg-btn__circle svg { transform: translate(2px, -2px); }
.dg-btn:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; }

.dg-btn--primary { background: var(--ink); color: #fff; }
.dg-btn--primary:hover { background: var(--ink-soft); }
.dg-btn--primary .dg-btn__circle { background: var(--lima); color: var(--ink); }

.dg-btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.dg-btn--secondary:hover { border-color: var(--ink); }
.dg-btn--secondary .dg-btn__circle { background: var(--ink); color: #fff; }

/* Accent: CTA destacado sobre fondo oscuro (verde marca) */
.dg-btn--accent { background: var(--lima); color: var(--ink); }
.dg-btn--accent:hover { background: var(--lima-hover); }
.dg-btn--accent .dg-btn__circle { background: var(--ink); color: var(--lima); }
/* Tamaño mayor para reforzar jerarquía del CTA final */
.dg-btn--lg { height: 64px; font-size: 16px; padding: 6px 10px 6px 28px; }
.dg-btn--lg .dg-btn__circle { width: 46px; height: 46px; }

/* ---- DATA-REVEAL ---- */
[data-reveal] {
  }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   S1 — HERO (hub variant) — IA flavor: agent-stack panel
   ============================================================ */
.dg-hero {
  position: relative;
  min-height: 92dvh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.dg-hero-sq-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dg-hero-sq {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 3px;
  background: var(--lav);
  opacity: 0.4;
  animation: dg-float 5s ease-in-out infinite;
}
.dg-hero-sq--lima { background: var(--lima); }

@keyframes dg-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.dg-hero__inner { position: relative; z-index: 1; }

.dg-hero__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 32px;
}

.dg-hero__h1 {
  font-size: clamp(48px, 8.4vw, 140px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 32px;
}
.dg-hero__h1 em { font-style: italic; color: var(--ink-80); font-weight: 500; }

.dg-hero__lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 520px;
  margin-bottom: 32px;
}

.dg-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* IA-flavored panel: "Pipeline activo" agente */
.dg-hero__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  padding: 22px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px -40px rgba(38,59,74,0.25);
}
.dg-hero__panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(181,255,130,0.18);
  border: 1px solid rgba(181,255,130,0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  width: max-content;
}
.dg-hero__panel-dot {
  width: 8px; height: 8px;
  background: var(--lima);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lima);
  animation: dg-pulse 1.8s ease-in-out infinite;
}
@keyframes dg-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.dg-hero__panel-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dg-hero__panel-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.dg-hero__panel-rowlabel {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.dg-hero__panel-rowmeta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-65);
  letter-spacing: 0.06em;
}
.dg-hero__panel-rowmeta--ok { color: #2f8a4f; }
.dg-hero__panel-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.dg-hero__panel-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-65);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.dg-hero__panel-tag--accent {
  background: var(--ink);
  color: var(--lima);
  border-color: var(--ink);
}

@media (min-width: 960px) {
  .dg-hero__cols { grid-template-columns: 7fr 5fr; gap: 56px; }
  .dg-hero__h1 { font-size: clamp(60px, 8vw, 140px); }
}

/* ============================================================
   S2 — DIAGNÓSTICO DE SEÑALES
   ============================================================ */
.dg-senales {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.dg-senales__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.dg-senales__header-left .dg-eyebrow { margin-bottom: 16px; }
.dg-senales__header-right { display: flex; flex-direction: column; justify-content: flex-end; }

.dg-senales__h2 {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dg-senales__h2 em { font-style: italic; color: var(--ink-80); font-weight: 500; }
.dg-senales__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-65);
}

.dg-senales__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  overflow: hidden;
}
.dg-senales__card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.dg-senales__h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 32ch;
}
.dg-senales__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-80);
}
.dg-senales__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.dg-senales__link:hover { color: var(--ink-soft); }
.dg-senales__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.dg-senales__link:hover .dg-senales__arrow {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dg-senales__arrow svg { width: 10px; height: 10px; }

@media (min-width: 768px) {
  .dg-senales { padding: 112px 0; }
  .dg-senales__header { grid-template-columns: 7fr 4fr; gap: 40px; align-items: end; margin-bottom: 64px; }
  .dg-senales__grid { grid-template-columns: repeat(2, 1fr); }
  .dg-senales__card { padding: 40px; min-height: 280px; }
}

/* ============================================================
   S3 — GRID 6 SERVICIOS (dark) — pixel-square aplicado aquí
   ============================================================ */
.dg-servicios {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}
.dg-pixel-field {
  position: absolute;
  inset-block: 0;
  width: 72px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.dg-pixel-field--left  { left: 0; }
.dg-pixel-field--right { right: 0; }
.dg-pixel {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--lima);
  opacity: 0;
  animation: dg-pixel-flicker var(--pixel-cycle, 2.4s) ease-in-out infinite;
  animation-delay: var(--pixel-delay, 0s);
}
.dg-pixel.is-sm { width: 8px; height: 8px; }
@keyframes dg-pixel-flicker {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  35%, 65% { opacity: 1; transform: scale(1); }
}
@media (min-width: 768px) {
  .dg-pixel-field { width: 120px; }
}

.dg-servicios > .dg-container-wide { position: relative; z-index: 1; }

.dg-servicios__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.dg-servicios__header-left .dg-eyebrow--dark { margin-bottom: 16px; }
.dg-servicios__header-right { display: flex; flex-direction: column; justify-content: flex-end; }

.dg-servicios__h2 {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 20px;
}
.dg-servicios__h2 em { font-style: italic; color: var(--bg-70); font-weight: 500; }
.dg-servicios__sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bg-70);
}

.dg-servicios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--bg-15);
  border: 1px solid var(--bg-15);
  border-radius: var(--r-3xl);
  overflow: hidden;
}
.dg-servicios__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ink);
  padding: 36px 32px;
  min-height: 320px;
  text-decoration: none;
  color: #fff;
  transition: background 500ms var(--ease-out);
}
.dg-servicios__card:hover { background: var(--ink-soft); }
.dg-servicios__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dg-servicios__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(181,255,130,0.10);
  border: 1px solid rgba(181,255,130,0.25);
  margin-left: auto;
  margin-right: 8px;
}
.dg-servicios__icon img,
.dg-servicios__icon svg { width: 22px; height: 22px; }

.dg-servicios__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--bg-15);
  color: #fff;
  flex-shrink: 0;
  transition: background 300ms var(--ease-out);
}
.dg-servicios__arrow svg { width: 12px; height: 12px; transition: transform 300ms var(--ease-out); }
.dg-servicios__card:hover .dg-servicios__arrow svg { transform: translate(2px, -2px); }

.dg-servicios__h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: #fff;
  margin-top: auto;
}
.dg-servicios__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bg-85);
}
.dg-servicios__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-servicios__tags span {
  border: 1px solid var(--bg-15);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-70);
}

.dg-servicios__footer {
  margin-top: 48px;
  text-align: center;
  font-size: 15px;
  color: var(--bg-70);
}
.dg-servicios__footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .dg-servicios { padding: 112px 0; }
  .dg-servicios__header { grid-template-columns: 7fr 4fr; gap: 40px; align-items: end; margin-bottom: 64px; }
  .dg-servicios__grid { grid-template-columns: repeat(2, 1fr); }
  /* 5 cards: la última ocupa la celda sobrante para que el fondo del gap no asome */
  .dg-servicios__grid .dg-servicios__card:last-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  /* 6 columnas: cada card ocupa 2 → fila 1 = cards 1-3.
     Las 2 cards de la fila 2 se centran desplazándolas una columna.
     El fondo del grid pasa a transparente y cada card lleva su borde,
     para que las celdas vacías de los lados no muestren la línea. */
  .dg-servicios__grid {
    grid-template-columns: repeat(6, 1fr);
    background: transparent;
    border-color: transparent;
    gap: 0;
  }
  .dg-servicios__card {
    grid-column: span 2;
    border: 1px solid var(--bg-15);
    margin: -0.5px;
  }
  .dg-servicios__grid .dg-servicios__card:nth-child(4) { grid-column: 2 / span 2; }
  .dg-servicios__grid .dg-servicios__card:last-child { grid-column: span 2; }
}

/* ============================================================
   S4 — CASO DESTACADO (lavanda accent)
   ============================================================ */
.dg-caso {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(186,184,208,0.18) 100%);
}
.dg-caso__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.dg-caso__body { display: flex; flex-direction: column; gap: 18px; }
.dg-caso__h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 4px;
}
.dg-caso__h2 em { font-style: italic; color: var(--ink-80); font-weight: 500; }
.dg-caso__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-80);
}
.dg-caso__bullets { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.dg-caso__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-80);
}
.dg-caso__dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--lima);
  border-radius: 50%;
  margin-top: 9px;
}
.dg-caso__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 8px 0;
}
.dg-caso__stat {
  background: var(--bg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dg-caso__stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.dg-caso__stat-num {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dg-caso__more { font-size: 14px; color: var(--ink-65); }
.dg-caso__more a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

@media (min-width: 960px) {
  .dg-caso { padding: 112px 0; }
  /* Sin imagen: el cuerpo ocupa todo el ancho con medida de lectura acotada */
  .dg-caso__grid { grid-template-columns: 1fr; gap: 56px; }
  .dg-caso__body { max-width: 760px; margin-inline: auto; }
}

/* ============================================================
   S5 — STACK MARQUEE
   ============================================================ */
.dg-stack-marquee {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.dg-stack-marquee__header { text-align: center; margin-bottom: 40px; }
.dg-stack-marquee__header .dg-eyebrow { margin-bottom: 16px; }
.dg-stack-marquee__h2 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.dg-stack-marquee__h2 em { font-style: italic; color: var(--ink-80); font-weight: 500; }
.dg-stack-marquee__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-65);
  max-width: 640px;
  margin-inline: auto;
}
.dg-stack-marquee__track-wrap { overflow: hidden; margin: 32px 0; }
.dg-stack-marquee__track-wrap:hover .dg-stack-marquee__track,
.dg-stack-marquee__track-wrap:focus-within .dg-stack-marquee__track { animation-play-state: paused; }
.dg-stack-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: dg-marquee 60s linear infinite;
}
.dg-stack-marquee__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 48px;
  opacity: 0.85;
  transition: opacity 200ms var(--ease-out);
}
.dg-stack-marquee__logo img {
  height: 36px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}
/* Logos oficiales a color (wordmarks) → mono como los simpleicons hermanos (/263b4a) */
.dg-stack-marquee__logo img.dg-stack-marquee__logo-svg { filter: brightness(0); }
.dg-stack-marquee__logo:hover { opacity: 1; }
.dg-stack-marquee__logo--text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.dg-stack-marquee__why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
  list-style: none;
  max-width: 980px;
  margin-inline: auto;
}
.dg-stack-marquee__why li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}

@media (min-width: 768px) {
  .dg-stack-marquee { padding: 112px 0; }
  .dg-stack-marquee__track { gap: 80px; }
  .dg-stack-marquee__logo { height: 56px; }
  .dg-stack-marquee__logo img { height: 44px; max-width: 100px; }
  .dg-stack-marquee__why { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   S6 — PASOS / CÓMO TRABAJAMOS
   ============================================================ */
.dg-pasos { padding: 80px 0; background: var(--bg); }
.dg-pasos__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.dg-pasos__header-left .dg-eyebrow { margin-bottom: 16px; }
.dg-pasos__header-right { display: flex; flex-direction: column; justify-content: flex-end; }

.dg-pasos__h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dg-pasos__h2 em { font-style: italic; color: var(--ink-80); font-weight: 500; }
.dg-pasos__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-65);
}

.dg-pasos__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  overflow: hidden;
  list-style: none;
}
.dg-pasos__item {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dg-pasos__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dg-pasos__weeks {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(181,255,130,0.25);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.dg-pasos__h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.dg-pasos__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-80);
}
.dg-pasos__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dg-pasos__bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-80);
}
.dg-pasos__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--lima);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .dg-pasos { padding: 112px 0; }
  .dg-pasos__header { grid-template-columns: 7fr 4fr; gap: 40px; align-items: end; margin-bottom: 64px; }
  .dg-pasos__list { grid-template-columns: repeat(2, 1fr); }
  .dg-pasos__item { padding: 40px; min-height: 320px; }
}
@media (min-width: 1100px) {
  .dg-pasos__list { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   S7 — FAQ
   ============================================================ */
.dg-faq { padding: 80px 0; background: var(--surface); }
.dg-faq .dg-eyebrow { margin-bottom: 16px; }
.dg-faq__h2 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 56px;
}
.dg-faq__h2 em { font-style: italic; color: var(--ink-80); font-weight: 500; }

/* FAQ CENTRADA como la home: lista constreñida y centrada en el eje. */
.dg-faq__list { display: flex; flex-direction: column; max-width: 760px; margin-inline: auto; }
.dg-faq__item { border-bottom: 1px solid var(--line); }
.dg-faq__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.dg-faq__btn:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 2px;
  border-radius: 4px;
}
.dg-faq__q {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.dg-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out);
  color: var(--ink);
}
.dg-faq__icon svg { width: 12px; height: 12px; }
.dg-faq__btn[aria-expanded="true"] .dg-faq__icon { transform: rotate(45deg); }

/* Override UA [hidden]{display:none} para que anime el grid-row al abrir/cerrar */
.dg-faq__answer[hidden] { display: grid; }
.dg-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}
.dg-faq__answer.is-open { grid-template-rows: 1fr; }
.dg-faq__answer-inner { overflow: hidden; }
.dg-faq__answer-inner p {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-70);
}
.dg-faq__answer-inner a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .dg-faq { padding: 112px 0; }
}

/* ============================================================
   S8 — CTA FINAL (mini, magnetic)
   ============================================================ */
.dg-cta-final {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
}
.dg-cta-final--mini { padding: 80px 0; }
.dg-cta-final__inner {
  max-width: 880px;
  margin-inline: auto;
}
.dg-cta-final .dg-eyebrow {
  margin-bottom: 16px;
  color: var(--bg-40);
}
.dg-cta-final__h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}
.dg-cta-final__h2 em {
  font-style: italic;
  color: var(--bg-70);
  font-weight: 500;
}
.dg-cta-final__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--bg-70);
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 40px;
}
.dg-cta-final__center { display: flex; justify-content: center; }
.dg-cta-final__legal {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bg-70);
  text-align: center;
}
.dg-magnetic {
  transition: transform 200ms var(--ease-out), background 300ms var(--ease-out);
  will-change: transform;
}

@media (min-width: 768px) {
  .dg-cta-final--mini { padding: 112px 0; }
}

/* ============================================================
   GLOBAL KEYFRAMES + REDUCED MOTION
   ============================================================ */
@keyframes dg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .dg-hero-sq { animation: none !important; opacity: 0.3; }
  .dg-hero__panel-dot { animation: none !important; }
  .dg-stack-marquee__track { animation: none !important; }
  .dg-pixel { animation: none !important; opacity: 0.6; transform: scale(1); }
  .dg-reveal-inner { transform: translateY(0) !important; }
  [data-reveal] { opacity: 1 !important; transform: translateY(0) !important; }
  .dg-magnetic { transform: none !important; }
  /* Desactiva transforms de hover */
  .dg-btn:hover .dg-btn__circle svg { transform: none !important; }
  .dg-servicios__card:hover .dg-servicios__arrow svg { transform: none !important; }
}

@media (hover: none) {
  .dg-magnetic { transform: none !important; }
}
