/* ================================================================
   INGESOLAR — home.css
   Estilos específicos de index.html. Mobile-first.
   Requiere tokens.css y base.css cargados antes.
   ================================================================ */

/* ─── SECCIÓN 1: HERO ─────────────────────────────────────────── */

.hero-section {
  padding: var(--space-14) 0 var(--space-10);
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--color-black);
  margin: var(--space-3) 0 var(--space-4);
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  max-width: 480px;
  margin: 0 auto;
}

/* Ancla de pregunta */
.needs-question {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-base);
  text-align: center;
  margin-bottom: var(--space-5);
}

/* Grid de necesidades — 2 col en móvil */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.need-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3);
  min-height: 108px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-base);
}

.need-card:hover {
  text-decoration: none;
  color: var(--color-text-base);
}

.need-icon {
  font-size: 1.875rem;
  line-height: 1;
  display: block;
}

.need-label {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-base);
}

/* Bloque B2B */
.b2b-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-black);
  border: 1px solid var(--color-solar-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  flex-wrap: wrap;
}

.b2b-text {
  flex: 1;
  min-width: 160px;
}

.b2b-label {
  font-weight: 600;
  color: var(--color-white);
  font-size: 1rem;
  margin: 0;
}

.b2b-sub {
  color: var(--color-solar);
  font-size: var(--text-md);
  margin: var(--space-1) 0 0;
}

/* ─── SECCIÓN 2: DIFERENCIADORES ──────────────────────────────── */

.diff-section {
  padding: var(--space-12) 0;
}

.diff-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--color-black);
  margin: var(--space-3) 0 var(--space-7);
  text-align: center;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.diff-card {
  padding: var(--space-8);
}

.kpi-plus {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-solar);
  vertical-align: super;
  line-height: 1;
}

.diff-icon {
  margin-bottom: var(--space-4);
}

.diff-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-black);
  margin: var(--space-3) 0 var(--space-3);
  line-height: var(--line-tight);
}

.diff-body {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  margin: 0;
}

/* ─── SECCIÓN 3: PROCESO ───────────────────────────────────────── */

.process-section {
  padding: var(--space-12) 0;
  text-align: center;
}

.process-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--color-black);
  margin: var(--space-3) 0 var(--space-7);
}

/* Pasos — columna en móvil */
.process-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 400px;
  margin: 0 auto var(--space-10);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
  width: 100%;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-solar);
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  padding-top: var(--space-2);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 var(--space-1);
}

.step-desc {
  font-size: .9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-normal);
}

/* Conector vertical entre pasos */
.step-connector {
  width: 2px;
  height: 28px;
  background: var(--color-solar);
  opacity: 0.3;
  margin-left: 21px;
  flex-shrink: 0;
}

.process-cta {
  display: flex;
  justify-content: center;
}

/* ─── RESPONSIVE — TABLET 440px+ ──────────────────────────────── */

@media (min-width: 440px) {
  .needs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── RESPONSIVE — DESKTOP 900px+ ─────────────────────────────── */

@media (min-width: 900px) {

  .hero-section {
    padding: var(--space-16) 0 var(--space-12);
  }

  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .process-steps {
    flex-direction: row;
    align-items: flex-start;
    max-width: 720px;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  /* Conector horizontal entre pasos en desktop */
  .step-connector {
    width: auto;
    flex: 1;
    height: 2px;
    margin: 21px 0 0;
    align-self: flex-start;
  }

  .step-body {
    padding-top: var(--space-4);
  }
}
