/* ============================================================
   SOBRE NOSOTROS — styles.css
   Extiende los tokens del sistema (ver ../home/styles.css).
   ============================================================ */

/* ---- ITALIC ACCENT ---- */
.dg-italic-accent {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   S1 — HERO MANIFIESTO CORTO
   ============================================================ */
.dg-about-hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0 96px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.dg-about-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.dg-about-hero__inner .dg-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.dg-about-hero__h1 {
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto 32px;
}

.dg-about-hero__h1 em {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.dg-about-hero__lead {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 640px;
  margin: 0 auto;
}

/* Hero marquee — pausa en hover de la sección (el track es pointer-events:none
   así que la pausa se gestiona desde el contenedor exterior) */
.dg-about-hero:hover .dg-hero__marquee-track,
.dg-about-hero:focus-within .dg-hero__marquee-track {
  animation-play-state: paused;
}

/* ============================================================
   S2 — MANIFIESTO LARGO
   ============================================================ */
.dg-about-manifesto {
  padding: 96px 0;
  background: var(--bg);
}

.dg-about-manifesto__h2 {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 24px 0 56px;
  text-align: center;
}

.dg-about-manifesto__h2 em {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.dg-about-manifesto__body p {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.6;
  color: var(--ink-80);
  margin-bottom: 28px;
}

.dg-about-manifesto__inline-cta {
  margin-top: 40px;
  text-align: center;
}

.dg-about-manifesto__inline-link {
  /* Mismo tamaño que el párrafo (antes 17px fijo se veía más pequeño). */
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lima);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms var(--ease-out);
}

.dg-about-manifesto__inline-link:hover {
  text-decoration-color: var(--ink);
}

/* ============================================================
   S3 — EQUIPO
   ============================================================ */
.dg-team {
  padding: 96px 0;
  background: #F3F5F8;
}

.dg-team__header {
  text-align: center;
  margin-bottom: 64px;
}

.dg-team__header .dg-eyebrow {
  font-family: var(--font-mono);
  display: inline-block;
  margin-bottom: 20px;
}

.dg-team__h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.dg-team__h2 em {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.dg-team__sub {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-80);
  max-width: 560px;
  margin: 0 auto;
}

/* Layout 2-3-3: filas centradas, fotos grandes */
.dg-team__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dg-team__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .dg-team__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-team__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  /* Filas 2-3-3 acotadas al ancho de 3 cards para que la fila de 2 quede centrada */
  .dg-team__row {
    max-width: 900px;
    margin-inline: auto;
    width: 100%;
  }
  .dg-team__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
  .dg-team__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.dg-team-card {
  background: var(--bg);
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  border: 1px solid var(--line);
}

.dg-team-card__avatar {
  /* Cuadrada y más contenida (antes 4/5 se veía gigante). */
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: var(--lav);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.dg-team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Retratos de cuerpo: la cabeza queda alta en el origen 2:3, así que
     encuadramos cerca del borde superior para no cortar pelo y bajar la cara
     hacia el centro del cuadrado. */
  object-position: center 10%;
  display: block;
  transform: scale(1);
  transition: transform 420ms var(--ease-out);
  will-change: transform;
}

/* Hover: zoom suave hacia la cara (en vez de levantar la tarjeta) */
.dg-team-card:hover .dg-team-card__avatar img,
.dg-team-card:focus-within .dg-team-card__avatar img {
  transform: scale(1.08);
}

.dg-team-card__name,
.dg-team-card__role,
.dg-team-card__linkedin {
  margin-inline: 24px;
  text-align: center;
}

.dg-team-card__name {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.dg-team-card__role {
  font-size: 14px;
  color: var(--ink-80);
  margin: 0;
}

.dg-team-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Área táctil mínima WCAG 2.5.5: 44×44px */
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  margin-top: auto;
  align-self: center;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.dg-team-card__linkedin:hover {
  background: var(--ink);
  color: var(--bg);
}

.dg-team-card__linkedin:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 2px;
}

/* ============================================================
   S6 — LOGOS CLIENTES
   ============================================================ */
.dg-clients {
  padding: 64px 0;
  background: var(--surface);
  overflow: hidden;
}

.dg-clients__header {
  text-align: center;
  margin-bottom: 48px;
}

.dg-clients__header .dg-eyebrow {
  font-family: var(--font-mono);
  display: inline-block;
  margin-bottom: 16px;
}

.dg-clients__h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dg-clients__h2 em {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.dg-clients__track-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.dg-clients__track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: dg-marquee-logos 60s linear infinite;
}

.dg-clients__track:hover { animation-play-state: paused; }

.dg-clients__logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
}
.dg-clients__logo img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  /* Muro de logos uniforme: gris como en la home, color al hover */
  filter: grayscale(1) brightness(0.4);
  transition: filter 200ms var(--ease-out);
}
.dg-clients__logo:hover img { filter: grayscale(0) brightness(1); }

@keyframes dg-marquee-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.dg-clients__legal {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-50);
}

/* ============================================================
   S7 — SEDE
   ============================================================ */
.dg-location {
  padding: 96px 0;
  background: var(--bg);
}

.dg-location__header {
  margin-bottom: 56px;
  text-align: center;
}

.dg-location__header .dg-eyebrow {
  font-family: var(--font-mono);
  display: inline-block;
  margin-bottom: 20px;
}

.dg-location__h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dg-location__h2 em {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.dg-location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .dg-location__grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: center;
  }
}

.dg-location__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.dg-location__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.dg-location__row:last-child { border-bottom: 0; }

.dg-location__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  align-self: center;
}

.dg-location__row dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}

.dg-location__row dd a {
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}

.dg-location__row dd a:hover {
  border-bottom-color: var(--ink);
}

/* ============================================================
   S8 — CTA DUAL
   ============================================================ */
.dg-about-cta {
  padding: 96px 0;
  background: var(--bg);
}

.dg-about-cta__inner {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-3xl);
  padding: 80px 24px;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .dg-about-cta__inner { padding: 96px 40px; }
}

.dg-about-cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .dg-about-cta__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.dg-about-cta__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.dg-about-cta__block .dg-eyebrow {
  font-family: var(--font-mono);
  color: var(--bg-40);
}

.dg-about-cta__h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bg);
}

.dg-about-cta__h3 em {
  font-style: italic;
  color: var(--lima);
  font-weight: 500;
}

.dg-about-cta__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--bg-70);
}

.dg-btn--outline-dark {
  background: transparent;
  color: var(--bg);
  border: 1px solid var(--bg-15);
}

.dg-btn--outline-dark:hover { border-color: var(--bg); }

.dg-btn--outline-dark .dg-btn__circle {
  background: var(--bg);
  color: var(--ink);
}

/* ---- PIXEL FIELD (lateral) ---- */
.dg-pixel-field {
  position: absolute;
  inset-block: 0;
  width: 96px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
@media (min-width: 768px) {
  .dg-pixel-field { width: 140px; }
}
.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);
}

@keyframes dg-pixel-flicker {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  35%, 65% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   FONDO DE PÁGINA
   ============================================================ */
.dg-about-body {
  background: #F3F5F8;
}

/* ============================================================
   S5 — SEDE: IFRAME + SOCIALES
   ============================================================ */
.dg-location__map-iframe {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  display: block;
}

.dg-location__map-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-50);
  text-align: center;
}

.dg-location__map-note a {
  color: var(--ink-65);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}

.dg-location__map-note a:hover {
  border-bottom-color: var(--ink-65);
}

.dg-location__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.dg-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: background 200ms var(--ease-out);
}

.dg-social-link:hover {
  background: var(--ink);
}

.dg-social-link:hover img {
  filter: brightness(0) invert(1);
}

.dg-social-link:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 2px;
}

.dg-social-link img {
  width: 20px;
  height: 20px;
  transition: filter 200ms var(--ease-out);
}

/* LinkedIn va como SVG inline (no está en simpleicons): hereda color via currentColor. */
.dg-social-link svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
  transition: color 200ms var(--ease-out);
}
.dg-social-link:hover svg { color: #fff; }

/* ============================================================
   S6 — SOMOS PARTE DE
   ============================================================ */
.dg-parte {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.dg-parte .dg-eyebrow {
  margin-bottom: 32px;
}

.dg-parte__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
}

.dg-parte__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  opacity: 0.65;
  transition: opacity 200ms var(--ease-out);
}

.dg-parte__item img {
  height: 100%;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.5);
  transition: filter 200ms var(--ease-out);
}

.dg-parte__item:hover { opacity: 1; }
.dg-parte__item:hover img { filter: grayscale(0) brightness(1); }

@media (min-width: 768px) {
  .dg-parte__item { height: 96px; }
  .dg-parte__item img { max-width: 320px; }
  .dg-parte__logos { gap: 48px 88px; }
}

/* ============================================================
   S7 — TALENTO / HUBSPOT
   ============================================================ */
.dg-talent {
  padding: 96px 0;
  background: #F3F5F8;
}

.dg-talent__header {
  text-align: center;
  margin-bottom: 56px;
}

.dg-talent__header .dg-eyebrow {
  font-family: var(--font-mono);
  display: inline-block;
  margin-bottom: 20px;
}

.dg-talent__h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0;
}

.dg-talent__h2 em {
  font-style: italic;
  color: var(--ink-80);
  font-weight: 500;
}

.dg-talent__form {
  max-width: 680px;
  margin: 0 auto;
}

.dg-talent__fallback {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-80);
}

.dg-talent__fallback a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: opacity 200ms var(--ease-out);
}

.dg-talent__fallback a:hover {
  opacity: 0.7;
}

.dg-hs-loading {
  font-size: 14px;
  color: var(--ink-80);
  text-align: center;
  padding: 24px 0;
  font-style: italic;
}

/* ============================================================
   S8 — CTA GRID SINGLE (solo Para empresas)
   ============================================================ */
.dg-about-cta__grid--single {
  grid-template-columns: 1fr;
  max-width: 560px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dg-hero__marquee-track,
  .dg-clients__track,
  .dg-pixel { animation: none !important; }
  .dg-pixel { opacity: 1; }
  .dg-reveal-inner { transform: translateY(0); }
  [data-reveal] { opacity: 1; transform: none; }
  /* Sin zoom de foto en hover/focus */
  .dg-team-card__avatar img { transition: none !important; }
  .dg-team-card:hover .dg-team-card__avatar img,
  .dg-team-card:focus-within .dg-team-card__avatar img { transform: none !important; }
  .dg-about-manifesto__inline-link:hover { gap: 10px; }
}

@media (hover: none) {
  .dg-magnetic-cta { transform: none !important; }
  /* En táctil no hay hover: la foto no hace zoom */
  .dg-team-card:hover .dg-team-card__avatar img { transform: none !important; }
}
