/* ============================================================
   Datagrowth · components.css
   Estilos del chrome (header pill flotante + footer dark) y
   tokens canonical del sistema (definidos aquí como FALLBACK
   para que cualquier página que cargue este archivo tenga los
   tokens disponibles aunque su styles.css local no los redefina).
   Mobile-first. Breakpoints: <720px, ~860px, >1024px.
   ============================================================ */

/* ============================================================
   TOKENS CANONICAL (fallback global)
   Si la página redefine los mismos en su :root, prevalecen los suyos
   por orden de cascada (su styles.css se carga DESPUÉS de este).
   ============================================================ */
:root {
  --ink:        #263b4a;
  --ink-soft:   #1d2e3a;
  --lima:       #b5ff82;
  --lav:        #bab8d0;
  --bg:         #ffffff;
  --surface:    #f8fafc;
  --paper:      #f5f3ee;

  --ink-85:  rgba(38,59,74,0.85);
  --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;
}

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

/* Anclas + header sticky: descuenta la altura del header al saltar a un
   #id para que el título de la sección no quede tapado por el header fijo. */
html { scroll-padding-top: 88px; }

/* ============================================================
   HEADER STICKY (no fixed) — ocupa su altura en el flujo normal,
   queda pegado arriba al hacer scroll. Sin necesidad de
   padding-top en el main porque el documento fluye normalmente.
   El JS sigue alternando data-sticky="true" al detectar scroll
   para activar el backdrop-blur.
   ============================================================ */

/* ============================================================
   Hero floating squares — patrón compartido (reusa /casos-de-exito).
   Para usar: dentro de un <section class="dg-hero*"> que tenga
   position:relative + overflow:hidden, insertar:
     <div class="dg-hero-sq-bg" aria-hidden="true">
       <span class="dg-hero-sq" style="top:..%;left:..%;animation-delay:..s"></span>
       <span class="dg-hero-sq dg-hero-sq--lima" style="..."></span>
       ...
     </div>
   ============================================================ */
.dg-hero-sq-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.dg-hero-sq {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--lav);
  opacity: 0.35;
  border-radius: 3px;
  animation: dg-hero-float 6s ease-in-out infinite;
}
.dg-hero-sq--lima {
  background: var(--lima);
  opacity: 0.45;
}
@keyframes dg-hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .dg-hero-sq { animation: none !important; opacity: 0.25; }
}

/* ===== Skip-link =====
   Patrón WAI sr-only: invisible salvo cuando recibe foco con teclado.
   Usamos !important en las propiedades de ocultación porque varios
   styles.css locales redefinen .dg-skip de forma inconsistente.
   Garantiza que NUNCA se ve por defecto, sólo al hacer tab.
   Alias .dg-skip-link para compatibilidad con landings que usan ese nombre. */
.dg-skip,
.dg-skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
          clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.dg-skip:focus,
.dg-skip:focus-visible,
.dg-skip-link:focus,
.dg-skip-link:focus-visible {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
  white-space: normal !important;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  outline: 2px solid var(--lima);
  outline-offset: 2px;
}

/* ===== Custom element host ===== */
dg-header,
dg-footer {
  display: block;
}

/* Reserva de espacio sticky (header fixed -> compensar el primer main). */
dg-header {
  position: relative;
  z-index: 50;
}

/* ============================================================
   HEADER (pill flotante)
   ============================================================ */
.dg-chrome-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dg-chrome-header[data-sticky="true"] {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .dg-chrome-header[data-sticky="true"] {
    background: var(--bg);
  }
}

.dg-chrome-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 8px;
}

/* ---- Logo ---- */
.dg-chrome-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  padding: 4px 6px;
  border-radius: 9999px;
}
.dg-chrome-logo:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
}
.dg-chrome-logo__img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  /* El logo PNG nativo es lima sobre transparente. Sobre el header blanco
     translúcido no contrasta: lo convertimos a navy oscuro vía filter.
     HITL: cuando exista un logo navy nativo (PNG o SVG), sustituir el src
     en header.html y eliminar este filter. */
  filter: brightness(0);
}
/* Fallbacks por compatibilidad con HTML antiguo si quedara */
.dg-chrome-logo__star { color: var(--lima); }
.dg-chrome-logo__wordmark { line-height: 1; }

/* ---- Nav desktop ---- */
.dg-chrome-nav { display: none; }

@media (min-width: 860px) {
  .dg-chrome-nav { display: block; }
}

.dg-chrome-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.dg-chrome-nav__item {
  position: relative;
}

.dg-chrome-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dg-chrome-nav__link:hover,
.dg-chrome-nav__link[aria-expanded="true"] {
  background: var(--ink-05);
}

.dg-chrome-nav__link:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
}

.dg-chrome-nav__link[aria-current="page"] {
  background: var(--ink-05);
  color: var(--ink);
}
.dg-chrome-nav__link[aria-current="page"]::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--lima);
  margin-left: 2px;
}

.dg-chrome-nav__chev {
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dg-chrome-nav__link[aria-expanded="true"] .dg-chrome-nav__chev {
  transform: rotate(180deg);
}

/* ---- Mega menu ---- */
.dg-chrome-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 360px;
  padding: 22px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 64px -32px rgba(38, 59, 74, 0.25);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dg-chrome-mega[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Puente invisible sobre el gap de 8px: evita que el mega se cierre al bajar
   el cursor del botón al panel (cruzar el hueco disparaba mouseleave). */
.dg-chrome-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.dg-chrome-mega__eyebrow {
  margin-bottom: 12px;
}

.dg-chrome-mega__hub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  margin-bottom: 14px;
  text-decoration: none;
}
.dg-chrome-mega__hub:hover { background: var(--ink-soft); }
.dg-chrome-mega__hub-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.dg-chrome-mega__hub-desc {
  font-size: 13px;
  color: var(--bg-70);
}

.dg-chrome-mega__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.dg-chrome-mega__grid li { background: var(--bg); }
.dg-chrome-mega__grid a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dg-chrome-mega__grid a:hover { background: var(--surface); }
.dg-chrome-mega__grid a:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: -2px;
}

/* ---- CTA header ---- */
.dg-chrome-cta {
  display: none;
  height: 48px;
  padding: 4px 6px 4px 18px;
  font-size: 14px;
}
.dg-chrome-cta .dg-btn__circle { width: 36px; height: 36px; }

@media (min-width: 860px) {
  .dg-chrome-cta { display: inline-flex; }
}

/* ---- Burger mobile ---- */
.dg-chrome-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
}
.dg-chrome-burger:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 2px;
}
.dg-chrome-burger__bar {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.dg-chrome-burger.is-open .dg-chrome-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.dg-chrome-burger.is-open .dg-chrome-burger__bar:nth-child(2) {
  opacity: 0;
}
.dg-chrome-burger.is-open .dg-chrome-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
  .dg-chrome-burger { display: none; }
}

/* ---- Header on dark sections (conmutar a blanco) ---- */
.dg-chrome-header[data-on-dark="true"] .dg-chrome-logo,
.dg-chrome-header[data-on-dark="true"] .dg-chrome-nav__link {
  color: var(--bg);
}
.dg-chrome-header[data-on-dark="true"] .dg-chrome-burger__bar {
  background: var(--bg);
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.dg-chrome-mobile {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--bg);
  overflow-y: auto;
  padding: 88px 24px 48px;
  transform: translateY(-100%);
  transition: transform 360ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dg-chrome-mobile[data-open="true"] { transform: translateY(0); }
.dg-chrome-mobile[hidden] { display: none; }

.dg-chrome-mobile__inner {
  max-width: 720px;
  margin-inline: auto;
}

.dg-chrome-mobile__eyebrow {
  /* bg-40 sobre --ink daba ≈2.7:1 — FALLA WCAG AA.
     bg-70 sobre --ink da ≈4.6:1 — pasa. */
  color: var(--bg-70);
  margin-top: 24px;
  margin-bottom: 8px;
}
.dg-chrome-mobile__eyebrow:first-child { margin-top: 0; }

.dg-chrome-mobile__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--bg-15);
}
.dg-chrome-mobile__list li {
  border-bottom: 1px solid var(--bg-15);
}
.dg-chrome-mobile__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  color: var(--bg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.dg-chrome-mobile__list a:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 4px;
  border-radius: 4px;
}

.dg-chrome-mobile__cta {
  margin-top: 32px;
  background: var(--bg);
  color: var(--ink);
}
.dg-chrome-mobile__cta:hover { background: var(--surface); }
.dg-chrome-mobile__cta .dg-btn__circle {
  background: var(--lima);
  color: var(--ink);
}

@media (min-width: 860px) {
  .dg-chrome-mobile { display: none !important; }
}

/* ============================================================
   FOOTER (dark) — estilo design/preview.html
   Marquee "datagrowth" gigante + 4 cols (brand + 3 navs) + legal
   ============================================================ */
.dg-chrome-footer {
  background: var(--ink);
  color: #fff;
  padding-top: 0;
  padding-bottom: 16px;
  margin-top: 0;
}

.dg-chrome-footer__container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Marquee gigante "datagrowth" ---- */
.dg-chrome-footer__marquee-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bg-15);
  padding: 20px 0 40px;
}
.dg-chrome-footer__marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  /* gap: 0 — el espaciado va como padding-right en cada item para que
     translateX(-50%) caiga exactamente al inicio del set duplicado. */
  gap: 0;
  /* Track duplicado (10 items = 5 base + 5 dup). Animación va de 0 a -50% = loop perfecto. */
  /* "sentido contrario" (feedback): reverse invierte la dirección del scroll. */
  animation: dg-footer-marquee 120s linear infinite reverse;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: clamp(72px, 12vw, 190px);
  line-height: 1;
}
/* WCAG 2.2.2: pausa por hover, focus-within y botón explícito */
.dg-chrome-footer__marquee-wrap:hover .dg-chrome-footer__marquee-track,
.dg-chrome-footer__marquee-wrap:focus-within .dg-chrome-footer__marquee-track {
  animation-play-state: paused;
}
.dg-chrome-footer__marquee-item {
  /* padding-right reemplaza al gap del track (cada item se lleva su espacio). */
  padding-right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}
.dg-chrome-footer__sq {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--lima);
  border-radius: 4px;
  flex-shrink: 0;
}
.dg-chrome-footer__marquee-logo {
  display: inline-block;
  height: 1.1em;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
@keyframes dg-footer-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- 4 columnas ---- */
.dg-chrome-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--bg-15);
}

@media (min-width: 720px) {
  .dg-chrome-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .dg-chrome-footer__cols {
    grid-template-columns: 3fr 2fr 2fr 2fr 2fr;
    gap: 40px;
  }
}

/* Brand col (1ª) */
.dg-chrome-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dg-chrome-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  width: max-content;
}
.dg-chrome-footer__logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* Invierte el logo navy a blanco para verse sobre fondo dark.
     Funciona si el PNG es monocromo (navy sobre transparente).
     HITL: sustituir por logo blanco nativo cuando esté disponible. */
  filter: brightness(0) invert(1);
}
.dg-chrome-footer__logo-sq {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--lima);
  border-radius: 3px;
}
.dg-chrome-footer__logo:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 4px;
  border-radius: 4px;
}
.dg-chrome-footer__lead {
  margin: 0;
  font-size: 14px;
  color: var(--bg-70);
  line-height: 1.6;
  max-width: 320px;
}

/* Nav cols (2ª-4ª) */
.dg-chrome-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dg-chrome-footer__h4 {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* bg-40 sobre --ink daba ≈2.7:1 — FALLA WCAG AA.
     bg-70 sobre --ink da ≈4.6:1 — pasa AA (el texto uppercase/bold compensa el tamaño). */
  color: var(--bg-70);
  margin: 0 0 16px;
}
.dg-chrome-footer__h4--alt {
  margin-top: 28px;
}
/* Subrayado verde de los encabezados de columna (feedback footer). */
.dg-chrome-footer__h4--underline {
  text-decoration: underline;
  text-decoration-color: var(--lima);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.dg-chrome-footer__col li { margin: 0; }
.dg-chrome-footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--bg-85);
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dg-chrome-footer__col a:hover { color: #fff; }
.dg-chrome-footer__col a:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
  border-radius: 4px;
}
.dg-chrome-footer__sicon { flex-shrink: 0; }

/* ---- Legal bar ---- */
.dg-chrome-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--bg-70);
  letter-spacing: 0.02em;
  gap: 16px;
}
@media (max-width: 768px) {
  .dg-chrome-footer__legal {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---- Franja de financiación (fondo blanco, todo el ancho, al final del todo) ----
   Logos oficiales: NO recolorear. Van sobre blanco para preservar colores/banderas. */
.dg-chrome-funding-bar {
  background: #fff;
  padding: 16px 24px;
  border-top: 3px solid var(--lima);
}
.dg-chrome-funding-bar__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.dg-chrome-funding-bar__img {
  /* El PNG trae mucho espacio en blanco arriba/abajo: lo recortamos con cover
     a una altura fija para que los logos se vean grandes pero la franja quede ajustada. */
  width: 100%;
  max-width: min(1100px, 100%);
  height: 92px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 720px) {
  /* En móvil, cover podría recortar logos por los lados: mostramos la tira completa. */
  .dg-chrome-funding-bar__img { height: auto; max-height: 56px; object-fit: contain; }
}
@media (min-width: 1024px) {
  .dg-chrome-funding-bar__inner { gap: 48px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dg-chrome-footer__marquee-track { animation: none !important; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .dg-chrome-header,
  .dg-chrome-mobile,
  .dg-chrome-mega,
  .dg-chrome-nav__chev,
  .dg-chrome-burger__bar,
  .dg-skip,
  .dg-skip-link {
    transition-duration: 0ms !important;
  }
}

/* ============================================================
   FAQ — cabecera centrada (invariante compartida)
   Todas las landings centran el eyebrow + h2 del bloque "Preguntas
   frecuentes". El `.dg-eyebrow` base es inline-block, así que un
   `text-align:center` sobre sí mismo NO lo centra (la caja encoge al
   contenido y se alinea según el padre). Lo forzamos a block para que
   ocupe el ancho y su texto quede centrado. Se define aquí, en el CSS
   compartido, para que todas las páginas queden idénticas.
   ============================================================ */
.dg-faq .dg-eyebrow {
  display: block;
  text-align: center;
}
.dg-faq__h2 {
  text-align: center;
}

/* ============================================================
   Banner de consentimiento de cookies (auto-inyectado por
   components.js). Card no modal abajo-izquierda, como el CMP de
   datagrowth.es. Botones aceptar/rechazar en igual jerarquía
   (1ª capa). Respeta prefers-reduced-motion.
   ============================================================ */
.dg-cookie {
  position: fixed;
  left: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 1000;
  width: min(380px, calc(100vw - 2 * var(--sp-4)));
  font-family: var(--font);
}
.dg-cookie[hidden] { display: none; }
/* Contenedor enfocado por programa (mover lectura del SR): sin anillo propio;
   los controles internos sí conservan su :focus-visible. */
.dg-cookie:focus { outline: none; }

.dg-cookie__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(38, 59, 74, 0.06), 0 28px 64px -28px rgba(38, 59, 74, 0.45);
  padding: var(--sp-6);
}

.dg-cookie__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}
.dg-cookie__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.dg-cookie__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0 0 var(--sp-5);
}
.dg-cookie__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--lima);
}

.dg-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.dg-cookie__btn {
  flex: 1 1 auto;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.72rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.dg-cookie__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.dg-cookie__btn--ghost {
  flex: 0 1 auto;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dg-cookie__btn--ghost:hover { color: var(--ink-soft); }
.dg-cookie__btn--reject {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.dg-cookie__btn--reject:hover { background: var(--ink-05); }
.dg-cookie__btn--accept {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dg-cookie__btn--accept:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(38, 59, 74, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .dg-cookie__btn { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
  .dg-cookie__btn--accept:hover { transform: none; box-shadow: none; }
}

/* Panel "Personalizar": expansión suave con grid 0fr -> 1fr */
.dg-cookie__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease-reveal);
}
.dg-cookie__panel.is-open { grid-template-rows: 1fr; }
.dg-cookie__panel-inner {
  min-height: 0;
  overflow: hidden;
}
.dg-cookie__panel.is-open .dg-cookie__panel-inner {
  margin-top: var(--sp-4);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}
@media (prefers-reduced-motion: reduce) {
  .dg-cookie__panel { transition: none; }
}

.dg-cookie__option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.dg-cookie__option:last-child { margin-bottom: 0; }
.dg-cookie__opt-text { flex: 1 1 auto; }
.dg-cookie__option label { display: block; font-size: 0.8125rem; color: var(--ink); font-weight: 600; }
.dg-cookie__option p { font-size: 0.75rem; color: var(--ink-65); margin: 2px 0 0; line-height: 1.5; }

/* Interruptor (switch) accesible */
.dg-cookie__switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 23px;
  margin-top: 1px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.dg-cookie__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(38, 59, 74, 0.35);
  transition: transform 160ms var(--ease-reveal);
}
.dg-cookie__switch:checked { background: var(--ink); }
.dg-cookie__switch:checked::after { transform: translateX(17px); }
.dg-cookie__switch:disabled { opacity: 0.5; cursor: not-allowed; }
.dg-cookie__switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .dg-cookie__switch, .dg-cookie__switch::after { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .dg-cookie { animation: dg-cookie-in 360ms var(--ease-reveal) both; }
  @keyframes dg-cookie-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 520px) {
  .dg-cookie {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: var(--sp-3);
    width: auto;
  }
  .dg-cookie__btn { flex: 1 1 100%; }
  .dg-cookie__btn--ghost { order: 3; }
}

/* Enlace "Configurar cookies" del footer: botón con aspecto de enlace. */
.dg-chrome-footer__col button.dg-cookie-reopen {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--bg-85);
  transition: color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dg-chrome-footer__col button.dg-cookie-reopen:hover { color: #fff; }
.dg-chrome-footer__col button.dg-cookie-reopen:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Aviso de consentimiento dentro de un .hs-form-frame
   (formulario HubSpot gateado hasta aceptar marketing).
   ============================================================ */
.dg-hs-consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--bg);
  border: 1px dashed var(--line-strong, var(--line));
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  font-family: var(--font);
}
.dg-hs-consent__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-70);
}
.dg-hs-consent__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--lima);
}
.dg-hs-consent__btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.72rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background-color 150ms ease, transform 150ms ease;
}
.dg-hs-consent__btn:hover { background: var(--ink-soft); }
.dg-hs-consent__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .dg-hs-consent__btn { transition: background-color 150ms ease; }
}
