/* ============================================================
   DATAGROWTH · CONSULTORIA EN IA — styles.css
   Tokens del design system. Sin frameworks.
   ============================================================ */

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

:root {
  --ink:        #263b4a;
  --ink-soft:   #1d2e3a;
  --lima:       #b5ff82;
  --lav:        #bab8d0;
  /* lav-text: #8a87aa — ratio 3.40:1 sobre blanco, válido para texto grande (≥3:1 WCAG AA) */
  --lav-text:   #8a87aa;
  --bg:         #ffffff;
  --surface:    #f8fafc;
  --surface-alt: #F3F5F8;

  --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);

  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 32px;  --sp-8: 48px;
}

html { scroll-behavior: smooth; }

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; }

.dg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  z-index: 1000;
}
.dg-skip:focus { left: 16px; 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-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
  display: inline-block;
  margin-bottom: 24px;
}
.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;
  vertical-align: middle;
}
.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; }
/* Secondary sobre fondo navy (card de caso oscuro) */
.dg-btn--on-dark { color: #fff; border-color: var(--bg-40); }
.dg-btn--on-dark:hover { border-color: #fff; }
.dg-btn--on-dark .dg-btn__circle { background: var(--lima); color: var(--ink); }
.dg-btn--full { width: 100%; }
/* Lima — máxima visibilidad sobre fondo navy (CTA final) */
.dg-btn--lima { background: var(--lima); color: var(--ink); font-weight: 600; }
.dg-btn--lima:hover { background: #c6ff9c; }
.dg-btn--lima .dg-btn__circle { background: var(--ink); color: var(--lima); }
.dg-btn--lima:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dg-btn--lg {
  height: 64px;
  font-size: 17px;
  padding: 6px 10px 6px 28px;
  box-shadow: 0 16px 40px -16px rgba(181,255,130,0.55);
}
.dg-btn--lg .dg-btn__circle { width: 48px; height: 48px; }
.dg-btn--lg .dg-btn__circle svg { width: 16px; height: 16px; }

/* ---- DATA REVEAL ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---- SECTION HEAD COMMON ---- */
.dg-section-h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dg-section-h2 em { font-style: italic; color: var(--ink-80); }
.dg-section-head { margin-bottom: 48px; }
.dg-section-head--split { display: grid; gap: 32px; align-items: end; }
@media (min-width: 860px) {
  .dg-section-head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
}
.dg-section-head--dark .dg-section-h2 { color: #fff; }
.dg-section-head--dark .dg-section-h2 em { color: var(--bg-85); }
.dg-section-sub { color: var(--ink-70); font-size: 18px; max-width: 56ch; }
.dg-section-sub--dark { color: var(--bg-85); }

/* ============================================================
   CHROME HEADER
   ============================================================ */
.dg-chrome-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dg-chrome-header__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
}
.dg-chrome-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dg-chrome-logo__star { color: var(--lima); }
.dg-chrome-logo__wordmark { font-size: 18px; }
.dg-chrome-nav__list { display: none; gap: 4px; list-style: none; }
.dg-chrome-nav__link {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-70);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.dg-chrome-nav__link:hover { background: var(--ink-05); color: var(--ink); }
.dg-chrome-cta { height: 44px; padding: 4px 6px 4px 18px; font-size: 14px; }
.dg-chrome-cta .dg-btn__circle { width: 32px; height: 32px; }
@media (min-width: 860px) {
  .dg-chrome-nav__list { display: flex; }
}

/* ============================================================
   CHROME FOOTER
   ============================================================ */
.dg-chrome-footer {
  background: var(--ink);
  color: var(--bg-85);
  margin-top: 0;
}
.dg-chrome-footer__container {
  max-width: 1280px;
  margin-inline: auto;
  padding: 80px 24px 40px;
}
.dg-chrome-footer__claim {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--bg-10);
}
.dg-chrome-footer__h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1;
}
.dg-chrome-footer__h2 em { color: var(--bg-85); font-style: italic; }
.dg-chrome-footer__grid {
  display: grid;
  gap: 40px;
  padding: 56px 0;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .dg-chrome-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dg-chrome-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.dg-chrome-footer__title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-40);
  margin-bottom: 16px;
}
.dg-chrome-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dg-chrome-footer__col a {
  color: var(--bg-85);
  font-size: 14px;
  transition: color 200ms var(--ease-out);
}
.dg-chrome-footer__col a:hover { color: var(--lima); }
.dg-chrome-footer__bottom {
  border-top: 1px solid var(--bg-10);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--bg-40);
}
.dg-chrome-footer__disclaimer a { color: var(--bg-85); border-bottom: 1px dotted var(--bg-40); }

/* ============================================================
   S1 — HERO
   ============================================================ */
.dg-hero {
  position: relative;
  padding: 80px 0 96px;
  background: var(--bg);
  overflow: hidden;
}
.dg-hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .dg-hero__grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}
.dg-hero__h1 {
  font-size: clamp(48px, 8.5vw, 124px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 32px;
}
.dg-hero__h1 em { font-style: italic; color: var(--ink-80); }
.dg-hero__h1-dark { color: var(--ink); }
/* lav-text en vez de lav puro: ratio 3.40:1 sobre blanco (texto grande, pasa WCAG AA ≥3:1) */
.dg-hero__h1-light { color: var(--lav-text); }
.dg-hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 56ch;
  margin-bottom: 32px;
}
.dg-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero mock — Roadmap */
.dg-roadmap-mock {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  padding: 28px;
  box-shadow: 0 24px 60px -32px rgba(38,59,74,0.18);
}
.dg-roadmap-mock__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.dg-roadmap-mock__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.dg-roadmap-mock__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dg-roadmap-mock__list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  transition: background 200ms;
}
.dg-roadmap-mock__list li.is-highlight { background: var(--lima); color: var(--ink); }
.dg-roadmap-mock__pri {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--ink-05);
  color: var(--ink-70);
  text-align: center;
}
.is-highlight .dg-roadmap-mock__pri { background: var(--ink); color: var(--lima); }
.dg-roadmap-mock__pri--p0 { background: var(--ink); color: #fff; }
.is-highlight .dg-roadmap-mock__pri--p0 { background: var(--ink); color: var(--lima); }
.dg-roadmap-mock__pri--p1 { background: var(--ink-15); color: var(--ink); }
.dg-roadmap-mock__pri--p2 { background: var(--ink-05); color: var(--ink-65); }
.dg-roadmap-mock__name { color: var(--ink); font-weight: 500; }
.dg-roadmap-mock__metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-65);
  font-weight: 500;
}
.is-highlight .dg-roadmap-mock__name,
.is-highlight .dg-roadmap-mock__metric { color: var(--ink); }
.dg-roadmap-mock__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  text-align: center;
}

/* ============================================================
   S2 — CUÁNDO NECESITAS
   ============================================================ */
.dg-cuando { padding: 96px 0; background: var(--surface); }
.dg-cuando__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .dg-cuando__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dg-cuando__grid { grid-template-columns: repeat(2, 1fr); } }

.dg-cuando__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 200ms, transform 300ms var(--ease-out);
}
.dg-cuando__card:hover { border-color: var(--ink-15); transform: translateY(-2px); }
.dg-cuando__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--ink-05);
  color: var(--ink);
}
.dg-cuando__icon svg { width: 22px; height: 22px; }
.dg-cuando__h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}
/* ink-65 sobre blanco = 4.02:1 (falla normal text). ink-70 = 4.79:1 — pasa WCAG AA */
.dg-cuando__body { font-size: 14px; color: var(--ink-70); line-height: 1.55; flex: 1; }
.dg-cuando__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-top: auto;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
  align-self: flex-start;
}
.dg-cuando__link:hover { border-bottom-color: var(--ink); }
.dg-cuando__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.dg-cuando__cta-general {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  /* rgba(38,59,74,0.60) = ratio 3.39:1 sobre blanco — pasa WCAG 1.4.11 (≥3:1) */
  border: 1px solid rgba(38,59,74,0.60);
  border-radius: var(--r-md);
  padding: 10px 12px 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 200ms var(--ease-out), transform 300ms var(--ease-out);
}
.dg-cuando__cta-general:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.dg-cuando__cta-general:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; }
.dg-cuando__cta-label { padding-left: 4px; color: var(--ink-80); }
.dg-cuando__cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: var(--r-pill);
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out);
}
.dg-cuando__cta-circle svg { width: 14px; height: 14px; }
.dg-cuando__cta-general:hover .dg-cuando__cta-circle { transform: translate(2px, -2px); }

/* ============================================================
   S3 — ENTREGABLES
   ============================================================ */
.dg-entregables { padding: 96px 0; background: var(--surface-alt); }
.dg-entregables__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .dg-entregables__grid { grid-template-columns: repeat(2, 1fr); } }

.dg-entregables__card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dg-entregables__h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.dg-entregables__meta {
  font-size: 13px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
}
.dg-entregables__body { font-size: 15px; color: var(--ink-70); line-height: 1.55; }
.dg-entregables__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dg-entregables__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  background: var(--ink-06);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}

/* S4 PROCESO — eliminado del HTML, CSS purgado */

/* ============================================================
   S5 — CASOS DE ÉXITO (lavanda)
   ============================================================ */
.dg-caso {
  background: var(--lav);
  padding: 112px 0;
  color: var(--ink);
}
.dg-caso .dg-section-h2 { margin-bottom: 64px; }

/* Cada caso = recuadro propio, colores alternados */
.dg-caso__item {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
.dg-caso__item--box {
  border-radius: var(--r-3xl);
  padding: 32px;
  border: 1px solid var(--ink-15);
}
.dg-caso__item--light { background: var(--bg); }
.dg-caso__item--dark { background: var(--ink); color: #fff; border-color: var(--bg-15); }
.dg-caso__item + .dg-caso__item { margin-top: 24px; }
@media (min-width: 720px) {
  .dg-caso__item--box { padding: 40px; }
}
@media (min-width: 1024px) {
  .dg-caso__item { grid-template-columns: 7fr 5fr; gap: 56px; }
  .dg-caso__item--alt { grid-template-columns: 5fr 7fr; }
  .dg-caso__item--alt .dg-caso__visual-wrap { order: -1; }
}
/* Sticky stacking: cada recuadro se ancla un poco más abajo que el anterior
   y se apila sobre los previos al hacer scroll (efecto pila). CSS puro, sin JS.
   Solo desktop con puntero fino; los recuadros ya tienen fondo sólido y se
   cubren entre sí. nth-of-type cuenta solo los <div> (el <header> es otro tipo). */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .dg-caso__item {
    position: sticky;
    top: calc(96px + var(--stack-i, 0) * 16px);
  }
  .dg-caso__item:nth-of-type(1) { --stack-i: 0; }
  .dg-caso__item:nth-of-type(2) { --stack-i: 1; }
  .dg-caso__item:nth-of-type(3) { --stack-i: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-caso__item { position: static; top: auto; }
}
.dg-caso__client {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-70);
  margin-bottom: 16px;
}
.dg-caso__item--dark .dg-caso__client { color: var(--bg-85); }
.dg-caso__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-15);
}
.dg-caso__item--dark .dg-caso__title { color: #fff; border-bottom-color: var(--bg-15); }
.dg-caso__block { margin-bottom: 20px; }
.dg-caso__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 8px;
  font-weight: 500;
}
.dg-caso__label--ink { color: var(--ink); }
.dg-caso__item--dark .dg-caso__label { color: var(--bg-85); }
.dg-caso__p { font-size: 16px; color: var(--ink-80); line-height: 1.6; }
.dg-caso__item--dark .dg-caso__p { color: var(--bg-85); }
/* Botón "Ver caso completo" debajo del texto */
.dg-caso__text .dg-btn { margin-top: 12px; }
.dg-caso__visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dg-caso__visual {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--ink-15);
}
.dg-caso__item--dark .dg-caso__visual { border-color: var(--bg-15); }
.dg-caso__visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* S6 DIFFS — eliminado del HTML, CSS purgado */

/* ============================================================
   S7 — FAQ
   ============================================================ */
.dg-faq {
  padding: 40px 0 80px;
  background: var(--surface);
}

.dg-faq .dg-eyebrow { margin-bottom: 16px; }

/* FAQ CENTRADA como la home: h2 centrado + lista constreñida y centrada. */
.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__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} so grid-row transition works.
   The panel has height 0 (grid-template-rows: 0fr + inner overflow:hidden)
   so it stays invisible while accessible — JS manages hidden attr lifecycle. */
.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); border-bottom: 1px solid var(--ink-15); }

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

/* ============================================================
   S8 — OTROS SERVICIOS
   ============================================================ */
.dg-otros { padding: 96px 0; background: var(--bg); }
.dg-otros__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 720px) { .dg-otros__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .dg-otros__grid { grid-template-columns: repeat(4, 1fr); } }
.dg-otros__card {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 26px 24px 56px;
  border-radius: var(--r-3xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  border: 1px solid transparent;
  transition: transform 260ms var(--ease-out), background 260ms, border-color 260ms, box-shadow 260ms;
}
.dg-otros__card::after {
  content: "→";
  position: absolute;
  left: 24px;
  bottom: 22px;
  font-size: 20px;
  line-height: 1;
  color: var(--lima);
  transition: transform 260ms var(--ease-out);
}
.dg-otros__card:hover {
  background: var(--ink-soft);
  transform: translateY(-4px);
  border-color: var(--lima);
  box-shadow: 0 20px 44px -26px rgba(38, 59, 74, 0.55);
}
.dg-otros__card:hover::after { transform: translateX(7px); }
.dg-otros__h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.dg-otros__body { font-size: 13.5px; color: var(--bg-85); line-height: 1.55; margin-top: 2px; }
.dg-otros__foot {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-65);
}
.dg-otros__foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-15);
}

/* ============================================================
   S9 — CTA FINAL (DARK)
   ============================================================ */
.dg-cta-final {
  background: var(--ink);
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.dg-cta-final__inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.dg-cta-final__h2 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
}
.dg-cta-final__h2 em { font-style: italic; color: var(--bg-85); }
.dg-cta-final__sub {
  color: var(--bg-85);
  font-size: 17px;
  max-width: 52ch;
}
.dg-btn--magnetic { transition: transform 200ms var(--ease-out), background 300ms; }
.dg-cta-final__cold {
  font-size: 14px;
  color: var(--bg-70);
  margin-top: 8px;
}
.dg-cta-final__cold a {
  color: var(--lima);
  border-bottom: 1px solid var(--bg-15);
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dg-reveal-inner { transition: none; transform: translateY(0); }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .dg-btn--magnetic { transform: none !important; }
  /* transition-duration mínimo (no none): el transitionend debe seguir disparando para restaurar hidden al cerrar. */
  .dg-faq__answer { transition-duration: 0.01ms; }
}

/* Touch: disable magnetic */
@media (pointer: coarse) {
  .dg-btn--magnetic { transform: none !important; }
}
