/* =====================================================================
   Home — CSS scoped a .gd-page.home-page
   Modernización V11 sobre la base V10. Conserva la personalidad del
   home (hero parallax 100vh, lista tipográfica de soluciones, contador
   de métricas) pero unifica el lenguaje visual con sectores/soluciones/
   proyectos: section-num + section-title con .muted + contact-wrap.

   Carga junto a:
   - soluciones-gestion-digital.css (vars, fonts, contact-wrap)
   - soluciones-seo-tecnico.css
   - soluciones-analisis-empresarial.css

   Bloques específicos del home:
   - hp-hero (100vh con foto parallax + glass + cta)
   - method-grid (01 · 3 steps de metodología)
   - sectors-mini (02 · 4 cards 2x2)
   - solutions-list (03 · lista tipográfica negra · pieza única)
   - projects-mini (04 · 4 cards 2x2)
   - results-trio (05 · 3 KPIs con counter)
   - contact-wrap (compartido)
   ===================================================================== */


/* ═══ FONDO BASE · página clara ═══════════════════════════════════
   El home NO usa background fixed con foto en toda la página. Solo
   el hero tiene foto. El resto de secciones flotan sobre fondo claro
   #FAFAFA heredado de .gd-page. */
.gd-page.home-page {
  background: var(--bg);
}
.gd-page.home-page .aurora-mesh { display: none; }


/* ═══ HEADER TRANSPARENTE EN EL HOME ═══════════════════════════════
   El home usa header transparente por defecto (vuelve negro con scroll
   por el comportamiento global del sitio). El resto de .gd-page tienen
   header negro forzado por soluciones-gestion-digital.css — aquí se
   revierte ese override solo para .home-page. */
body:has(main.home-page) .header-mega,
body:has(.gd-page.home-page) .header-mega {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body:has(main.home-page) .header-mega__bar,
body:has(.gd-page.home-page) .header-mega__bar {
  border-bottom-color: transparent !important;
}
/* Cuando el header detecta scroll (class .is-scrolled), se restaura
   el fondo oscuro normal del sitio. */
body:has(main.home-page) .header-mega.is-scrolled,
body:has(.gd-page.home-page) .header-mega.is-scrolled {
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
body:has(main.home-page) .header-mega.is-scrolled .header-mega__bar,
body:has(.gd-page.home-page) .header-mega.is-scrolled .header-mega__bar {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}


/* ═══ HERO · V10 RESTAURADO · 100vh + parallax + overlay simple ════ */
.gd-page.home-page .hp-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.gd-page.home-page .hp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  z-index: 0;
}
.gd-page.home-page .hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 1;
}
.gd-page.home-page .hp-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.gd-page.home-page .hp-hero__name {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 1rem;
  color: white;
}
.gd-page.home-page .hp-hero__phrase {
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0 0 2.5rem;
  color: rgba(255, 255, 255, 0.85);
}
.gd-page.home-page .hp-hero__cta {
  display: inline-block;
  padding: 12px 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.gd-page.home-page .hp-hero__cta:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.06);
}

.gd-page.home-page .hp-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.gd-page.home-page .hp-hero__scroll:hover { opacity: 1; }
.gd-page.home-page .hp-hero__scroll > span:first-child {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: white;
  text-transform: uppercase;
}
.gd-page.home-page .hp-hero__scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gd-page.home-page .hp-hero__scroll-arrows svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  animation: hpHeroBounce 2s ease-in-out infinite;
}
.gd-page.home-page .hp-hero__scroll-arrows svg:last-child {
  margin-top: -8px;
  animation-delay: 0.15s;
}
@keyframes hpHeroBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-page.home-page .hp-hero__scroll-arrows svg { animation: none; }
}


/* ═══ MÉTODO · 01 · QUÉ HAGO ═══════════════════════════════════════
   3 cards con número grande + título + descripción. Reemplaza los
   accordions del V10 por un grid limpio más legible. */
.gd-page.home-page .method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gd-page.home-page .method-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
}
.gd-page.home-page .method-cell:last-child { border-right: none; }
.gd-page.home-page .method-cell__num {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.gd-page.home-page .method-cell__title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.gd-page.home-page .method-cell__desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.gd-page.home-page .method-statement {
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}


/* ═══ SECTORES MINI · 02 ═══════════════════════════════════════════
   Grid 4 cards 2x2 con foto + nombre + chip de "Ver sector". */
.gd-page.home-page .sectors-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gd-page.home-page .sec-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  aspect-ratio: 16 / 10;
  transition: transform 250ms ease;
}
.gd-page.home-page .sec-card:hover { transform: translateY(-3px); }
.gd-page.home-page .sec-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.gd-page.home-page .sec-card:hover .sec-card__img {
  transform: scale(1.04);
}
.gd-page.home-page .sec-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.72) 100%);
}
.gd-page.home-page .sec-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.gd-page.home-page .sec-card__name {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: white;
}
.gd-page.home-page .sec-card__arrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: background 200ms ease;
}
.gd-page.home-page .sec-card:hover .sec-card__arrow {
  background: rgba(255, 255, 255, 0.15);
}


/* ═══ SOLUCIONES · 03 · LISTA TIPOGRÁFICA NEGRA ════════════════════
   Pieza única del home — se conserva con tipografía gigante y hover
   con color accent. Fondo negro para destacar. */
.gd-page.home-page .solutions-section {
  background: var(--ink);
  margin: 0;
  padding: 100px 32px;
  max-width: none;
  position: relative;
}
.gd-page.home-page .solutions-section__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.gd-page.home-page .solutions-section .section-num {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.gd-page.home-page .solutions-section .section-title {
  color: white;
  max-width: 780px;
  margin-bottom: 56px;
}
.gd-page.home-page .solutions-section .section-title .muted {
  color: rgba(255, 255, 255, 0.45);
}
.gd-page.home-page .solutions-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.gd-page.home-page .solution-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  transition: color 200ms ease, padding-left 200ms ease;
}
.gd-page.home-page .solution-row:hover {
  color: white;
  padding-left: 16px;
}
.gd-page.home-page .solution-row__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  padding-top: 8px;
}
.gd-page.home-page .solution-row__arrow {
  font-family: var(--mono);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.04em;
  transition: transform 200ms ease, color 200ms ease;
}
.gd-page.home-page .solution-row:hover .solution-row__arrow {
  color: var(--accent);
  transform: translateX(8px);
}


/* ═══ PROYECTOS MINI · 04 ══════════════════════════════════════════
   Grid 4 cards 2x2 compactas con foto + sector + nombre. */
.gd-page.home-page .projects-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gd-page.home-page .pm-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  aspect-ratio: 16 / 10;
  transition: transform 250ms ease;
}
.gd-page.home-page .pm-card:hover { transform: translateY(-3px); }
.gd-page.home-page .pm-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.gd-page.home-page .pm-card:hover .pm-card__img {
  transform: scale(1.04);
}
.gd-page.home-page .pm-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.78) 100%);
}
.gd-page.home-page .pm-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 28px;
}
.gd-page.home-page .pm-card__sector {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gd-page.home-page .pm-card__name {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: white;
  margin-bottom: 6px;
}
.gd-page.home-page .pm-card__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}


/* ═══ MÉTRICAS · 05 · RESULTS TRIO ═════════════════════════════════
   3 KPIs gigantes con contador animado al entrar en viewport.
   Mantiene el counter JS del V10. */
.gd-page.home-page .results-trio {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gd-page.home-page .results-trio__head {
  padding: 24px 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.gd-page.home-page .results-trio__title { color: var(--ink); font-weight: 500; }
.gd-page.home-page .results-trio__source { color: var(--ink-3); }
.gd-page.home-page .rt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 4px solid var(--ink);
}
.gd-page.home-page .rt-cell {
  padding: 44px 22px 36px;
  border-right: 1px solid var(--line-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gd-page.home-page .rt-cell:last-child { border-right: none; }
.gd-page.home-page .rt-cell__value {
  font-family: var(--sans);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
}
.gd-page.home-page .rt-cell__value.is-accent { color: var(--accent); }
.gd-page.home-page .rt-cell__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}
.gd-page.home-page .results-trio__foot {
  padding: 22px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}


/* ═══ RESPONSIVE ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gd-page.home-page .method-grid { grid-template-columns: 1fr; }
  .gd-page.home-page .method-cell { border-right: none; border-bottom: 1px solid var(--line-2); }
  .gd-page.home-page .method-cell:last-child { border-bottom: none; }
  .gd-page.home-page .rt-grid { grid-template-columns: 1fr; }
  .gd-page.home-page .rt-cell { border-right: none; border-bottom: 1px solid var(--line-2); }
  .gd-page.home-page .rt-cell:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
  .gd-page.home-page .hp-hero__content { padding: 120px 24px 60px; }
  .gd-page.home-page .sectors-mini,
  .gd-page.home-page .projects-mini { grid-template-columns: 1fr; }
  .gd-page.home-page .solutions-section { padding: 80px 24px; }
  .gd-page.home-page .solution-row { grid-template-columns: 32px 1fr 24px; gap: 16px; padding: 22px 0; }
  .gd-page.home-page .solution-row:hover { padding-left: 8px; }
  .gd-page.home-page .method-statement { padding: 22px 24px; font-size: 14.5px; }
}

@media (max-width: 640px) {
  .gd-page.home-page .hp-hero__name { font-size: clamp(34px, 8vw, 46px); }
  .gd-page.home-page .hp-hero__phrase { font-size: 16px; }
  .gd-page.home-page .sec-card__name,
  .gd-page.home-page .pm-card__name { font-size: 20px; }
  .gd-page.home-page .sec-card__arrow { font-size: 10px; padding: 6px 10px; }
}
