/* ===== que-hacemos-page.css — Página Qué hacemos ===== */

/* Anclas de las capacidades: el navbar fijo (72px) no debe tapar el inicio */
#estrategia,
#implementacion,
#operacion {
  scroll-margin-top: 90px;
}

/* ══════════════════════════════════
   SECCIÓN 1 — HERO
══════════════════════════════════ */
.qh-hero {
  position: relative;
  overflow: hidden;
  /* misma imagen de fondo + capa oscura que el hero del home */
  background:
    linear-gradient(135deg, rgba(5, 12, 22, .82), rgba(8, 28, 48, .8)),
    url('../img/banner-quienesomos.png') center / cover no-repeat;
  /* padding-top mayor: el navbar overlay (fixed) va por encima del hero */
  padding: 140px var(--padding-x) 96px;
}

.qh-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.qh-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5fb0e8;
  margin-bottom: 16px;
  display: block;
}

.qh-hero-title {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.qh-hero-highlight {
  color: #2c8fd6;
}

.qh-hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* Columna derecha: tarjetas glass apiladas (mismo patrón que el hero del home) */
.qh-hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qh-hero-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.qh-hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease;
}

.qh-hero-img-wrap:hover .qh-hero-img {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .qh-hero-inner {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .qh-hero-right {
    display: none;
  }
}

/* ══════════════════════════════════
   SECCIÓN 2 — CÓMO TRABAJAMOS
══════════════════════════════════ */
.qh-como {
  background: #f5f5f3;
  padding: 60px 0 100px;
}

.qh-como-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Parte superior: título izquierda, texto derecha */
.qh-como-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.qh-como-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 16px;
  display: block;
}

.qh-como-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0;
}

.qh-como-top-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qh-como-text {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

/* Timeline de 3 pasos */
.qh-como-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-border);
  padding-top: 40px;
  gap: 0;
}

.qh-como-step {
  padding: 0 32px 0 0;
  position: relative;
}

/* Punto verde en el timeline */
.qh-como-step::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Línea horizontal entre puntos */
.qh-como-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 72px;
  right: 32px;
  height: 1px;
  background: var(--gray-border);
}

.qh-como-step-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
  padding-left: 20px;
  letter-spacing: 0.06em;
}

.qh-como-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.qh-como-step-text {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .qh-como-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .qh-como-timeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .qh-como-step::after {
    display: none;
  }
}

/* ══════════════════════════════════
   SECCIÓN 3 — CAPACIDADES
══════════════════════════════════ */
.qh-cap {
  padding: 100px 0;
}

/* Fondo uniforme gris en todas las capacidades */
#cap-01,
#cap-02,
#cap-03 {
  background: #f5f5f3;
}

/* Separador sutil entre capacidades */
#cap-01,
#cap-02 {
  border-bottom: 1px solid #e5e5e5;
}

.qh-cap-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  align-items: start;
}

.qh-cap-num {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  color: transparent;
  -webkit-text-stroke: 1.5px #000000;
  text-stroke: 1.5px #c8c8c8;
}

.qh-cap-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
  line-height: 1.4;
}

.qh-cap-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 20px;
}

.qh-cap-body {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 16px;
}

/* Pills directamente bajo el body (sin encabezado) */
.qh-cap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 20px;
}

.qh-cap-pill {
  font-size: 13px;
  font-weight: 500;
  color: #0a7a37;
  background: rgba(1, 138, 56, .08);
  border: 1px solid rgba(1, 138, 56, .22);
  padding: 7px 14px;
  border-radius: 100px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.qh-cap-pill:hover {
  background: rgba(1, 138, 56, .16);
  border-color: rgba(1, 138, 56, .4);
  transform: translateY(-1px);
}

/* Responsive — apilar capacidad e imagen full-width en mobile */
@media (max-width: 768px) {
  .qh-cap {
    padding: 60px 0;
  }
  .qh-cap-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .qh-cap-num {
    font-size: 72px;
  }
}

/* ══════════════════════════════════
   SECCIÓN 4 — ECOSISTEMA TECNOLÓGICO
══════════════════════════════════ */
/* Header con imagen de fondo — mismo tratamiento que QUIÉNES SOMOS del home */
.qh-eco-header {
  position: relative;
  background-color: #0d1b2a;
  background-image: url('../img/banner-quienesomos.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px var(--padding-x) 80px;
  overflow: hidden;
}

.qh-eco-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.qh-eco-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: block;
}

.qh-eco-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 16px;
  max-width: 800px;
}

.qh-eco-title strong {
  font-weight: 700;
}

.qh-eco-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid de cards sobre fondo gris */
.qh-eco-grid-section {
  background: #f5f5f3;
  padding: 56px 0 80px;
}

.qh-eco-grid-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.qh-eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.qh-eco-item {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--gray-border);
  transition: opacity .2s ease;
}

.qh-eco-item:first-child {
  padding-left: 0;
}

.qh-eco-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 32px;
}

.qh-eco-item:not(:first-child):not(:last-child) {
  padding-left: 32px;
}

.qh-eco-item:hover {
  opacity: 0.8;
}

.qh-eco-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 20px;
  transition: background .25s ease, color .25s ease;
}

.qh-eco-item:hover .qh-eco-icon {
  background: var(--green);
  color: #fff;
}

.qh-eco-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.qh-eco-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.qh-eco-item-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-mid);
}

/* ══════════════════════════════════
   SECCIÓN 5 — CASOS REALES
══════════════════════════════════ */
.qh-casos {
  background: #f5f5f3;
  padding: 40px 0 100px;
}

.qh-casos-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.qh-casos-label {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 40px;
}

.qh-casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.qh-caso-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  display: block;
  border: 1px solid var(--gray-border);
  transition: box-shadow .25s ease;
}

.qh-caso-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.qh-caso-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0;
}

.qh-caso-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.qh-caso-card:hover .qh-caso-img {
  transform: scale(1.03);
}

.qh-caso-body {
  padding: 24px 24px 28px;
}

.qh-caso-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 10px;
  display: block;
}

.qh-caso-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 20px;
}

.qh-caso-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
  margin-bottom: 20px;
}

.qh-caso-stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  white-space: nowrap;
}

.qh-caso-stat-sub {
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.4;
  max-width: 130px;
}

.qh-caso-link {
  font-size: 13px;
  font-weight: 600;
  color: #018a38;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease, color .2s ease;
}

.qh-caso-link:hover {
  color: #016e2d;
  gap: 10px;
}

.qh-caso-card:hover .qh-caso-link {
  gap: 10px;
}

/* ══════════════════════════════════
   SECCIÓN 6 — CTA FINAL
══════════════════════════════════ */
.qh-cta {
  background: #f5f5f3;
  padding: 100px 0;
  text-align: center;
}

.qh-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.qh-cta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 12px;
}

.qh-cta-sub {
  font-size: 15px;
  color: var(--gray-mid);
  margin-bottom: 32px;
  line-height: 1.6;
}

.qh-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #018a38;
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}

.qh-cta-btn:hover {
  background: #016b2c;
}
