/* =====================================================================
   Sectores Index — CSS scoped a .gd-page.sec-index
   Carga junto a:
   - soluciones-gestion-digital.css (vars · fonts · hero · contact-wrap)
   - soluciones-seo-tecnico.css

   Componentes específicos:
   - parallax foto + glass dark
   - sec-cards (01 · 4 cards con foto + desc + CTA)
   - why-grid (02 · 4 razones de especialización sectorial)
   ===================================================================== */


/* ═══ HERO H1 · reducido ═══════════════════════════════════════════ */
.gd-page.sec-index .hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}


/* ═══ FONDO · FOTO + GLASS DARK ════════════════════════════════════ */
.gd-page.sec-index {
  background-image: url('../img/home-hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.gd-page.sec-index .aurora-mesh {
  position: absolute;
  inset: 0;
  background: rgba(28, 32, 36, 0.62);
  backdrop-filter: blur(4px) saturate(95%);
  -webkit-backdrop-filter: blur(4px) saturate(95%);
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
  animation: none;
}
.gd-page.sec-index > section,
.gd-page.sec-index .hero {
  position: relative;
  z-index: 1;
}


/* ═══ TÍTULOS BICOLOR + TEXTOS SUELTOS CLAROS ══════════════════════ */
.gd-page.sec-index .section-title .muted,
.gd-page.sec-index .hero h1 .muted {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.gd-page.sec-index .hero-meta { color: rgba(255, 255, 255, 0.6); }
.gd-page.sec-index .hero h1 { color: rgba(255, 255, 255, 0.97); }
.gd-page.sec-index .hero-summary { color: rgba(255, 255, 255, 0.78); }
.gd-page.sec-index .section-num { color: rgba(255, 255, 255, 0.55); }
.gd-page.sec-index .section-title { color: rgba(255, 255, 255, 0.97); }
.gd-page.sec-index .section-intro { color: rgba(255, 255, 255, 0.78); }


/* ═══ SEC CARDS · 01 · 4 SECTORES CON FOTO ═════════════════════════ */
.gd-page.sec-index .sec-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gd-page.sec-index .sec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  min-height: 360px;
  transition: transform 250ms ease;
}
.gd-page.sec-index .sec-card:hover { transform: translateY(-3px); }
.gd-page.sec-index .sec-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.gd-page.sec-index .sec-card:hover .sec-card__img { transform: scale(1.04); }
.gd-page.sec-index .sec-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 25%, rgba(0,0,0,0.82) 100%);
}
.gd-page.sec-index .sec-card__body {
  position: relative;
  z-index: 1;
  padding: 32px 32px 30px;
}
.gd-page.sec-index .sec-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}
.gd-page.sec-index .sec-card__name {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: white;
  margin-bottom: 10px;
}
.gd-page.sec-index .sec-card__desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 90%;
}
.gd-page.sec-index .sec-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 200ms ease;
}
.gd-page.sec-index .sec-card:hover .sec-card__cta {
  background: rgba(255, 255, 255, 0.16);
}
.gd-page.sec-index .sec-card__cta .arrow {
  transition: transform 200ms ease;
}
.gd-page.sec-index .sec-card:hover .sec-card__cta .arrow {
  transform: translateX(4px);
}


/* ═══ WHY GRID · 02 · POR QUÉ ESPECIALIZACIÓN ══════════════════════ */
.gd-page.sec-index .why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gd-page.sec-index .why-cell {
  padding: 38px 34px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.gd-page.sec-index .why-cell:nth-child(2n) { border-right: none; }
.gd-page.sec-index .why-cell:nth-last-child(-n+2) { border-bottom: none; }
.gd-page.sec-index .why-cell__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.gd-page.sec-index .why-cell__title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.gd-page.sec-index .why-cell__desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.gd-page.sec-index .why-cell__desc strong { color: var(--ink); font-weight: 500; }


/* ═══ RESPONSIVE ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .gd-page.sec-index .sec-cards { grid-template-columns: 1fr; }
  .gd-page.sec-index .sec-card { min-height: 300px; }
  .gd-page.sec-index .why-grid { grid-template-columns: 1fr; }
  .gd-page.sec-index .why-cell { border-right: none; border-bottom: 1px solid var(--line-2); }
  .gd-page.sec-index .why-cell:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .gd-page.sec-index .sec-card__body { padding: 26px 24px; }
  .gd-page.sec-index .sec-card__name { font-size: 23px; }
  .gd-page.sec-index .why-cell { padding: 30px 26px; }
}
