/**
 * rrhh-seleccion.css
 *
 * Estilos de la plantilla "Recursos Humanos" (page-rrhh-seleccion.php).
 * Prefijo BEM: rh-
 *
 * Secciones:
 *   1. Variables y utilidades locales
 *   2. Hero
 *   3. Intro / highlights
 *   4. Proceso (pasos)
 *   5. Ventajas (cards)
 *   6. CTA final
 *   7. Responsive
 */

/* ─── 1. Variables y utilidades locales ─────────────────────────────────── */
.rh-page {
  --rh-accent: var(--color-primary, #1d4ed8);
  --rh-dark-bg: linear-gradient(135deg, rgba(16,32,47,.97), rgba(28,48,69,.92));
  --rh-step-size: 3rem;
}

/* ─── 2. Hero ────────────────────────────────────────────────────────────── */
.rh-hero {
  position: relative;
  background: linear-gradient(160deg, #0f1e2d 0%, #1a2f44 60%, #1e3a52 100%);
  color: #f4f7fb;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.rh-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(29,78,216,.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(59,130,246,.1) 0%, transparent 60%);
  pointer-events: none;
}

.rh-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3rem;
  align-items: center;
}

.rh-hero .eyebrow {
  color: rgba(244,247,251,.6);
  letter-spacing: .14em;
}

.rh-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin: .5rem 0 1.25rem;
}

.rh-hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: rgba(244,247,251,.82);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.rh-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rh-btn--light {
  border-color: rgba(244,247,251,.35) !important;
  color: #f4f7fb !important;
  background: transparent !important;
}
.rh-btn--light:hover {
  background: rgba(244,247,251,.1) !important;
  border-color: rgba(244,247,251,.6) !important;
}

/* Hero panel — stats */
.rh-hero__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg, 1rem);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.rh-stat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.05);
}

.rh-stat--accent {
  background: rgba(29,78,216,.25);
  border: 1px solid rgba(29,78,216,.4);
  grid-column: 1 / -1;
}

.rh-stat__num {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: #93c5fd;
}

.rh-stat--accent .rh-stat__num { color: #f4f7fb; }

.rh-stat__label {
  font-size: .8rem;
  color: rgba(244,247,251,.6);
  line-height: 1.35;
}

/* ─── 3. Intro / highlights ─────────────────────────────────────────────── */
.rh-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 4rem;
  align-items: start;
}

.rh-intro__copy h2 { margin-bottom: 1.25rem; }
.rh-intro__copy p  { line-height: 1.75; color: var(--color-body); margin-bottom: 1rem; }

.rh-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.rh-highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(37,41,48,.08);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,.06));
  font-size: .94rem;
  font-weight: 500;
  color: var(--color-dark);
}

.rh-highlight-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 50%;
  color: var(--rh-accent);
}

.rh-highlight-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ─── 4. Proceso (pasos) ─────────────────────────────────────────────────── */
.rh-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: rh-step;
  position: relative;
}

/* línea vertical conectora */
.rh-steps::before {
  content: "";
  position: absolute;
  left: calc(var(--rh-step-size) / 2 - 1px);
  top: var(--rh-step-size);
  bottom: var(--rh-step-size);
  width: 2px;
  background: linear-gradient(to bottom, var(--rh-accent), rgba(29,78,216,.1));
}

.rh-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.rh-step__num {
  flex-shrink: 0;
  width: var(--rh-step-size);
  height: var(--rh-step-size);
  border-radius: 50%;
  background: var(--rh-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(29,78,216,.15);
}

.rh-step__body {
  padding-top: .4rem;
}

.rh-step__body h3 {
  font-size: 1.05rem;
  margin: 0 0 .4rem;
  color: var(--color-dark);
}

.rh-step__body p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--color-body);
  margin: 0;
  max-width: 68ch;
}

/* ─── 5. Ventajas (cards) ────────────────────────────────────────────────── */
.rh-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.rh-benefit-card {
  padding: 1.75rem;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(37,41,48,.08);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08));
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: box-shadow .2s, transform .2s;
}

.rh-benefit-card:hover {
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.12));
  transform: translateY(-2px);
}

.rh-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #eff6ff;
  border-radius: .65rem;
  color: var(--rh-accent);
  margin-bottom: .25rem;
}

.rh-benefit-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.rh-benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.rh-benefit-card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--color-body);
  margin: 0;
}

/* ─── 6. CTA final ───────────────────────────────────────────────────────── */
.rh-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.rh-cta__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #f4f7fb;
  margin-bottom: .75rem;
}

.rh-cta__copy p {
  color: rgba(244,247,251,.75);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0 auto;
}

.rh-cta__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── 7. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rh-hero__inner,
  .rh-intro__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .rh-hero__panel {
    display: flex;
    gap: 1rem;
  }

  .rh-stat--accent {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .rh-hero {
    padding: 3.5rem 0 3rem;
  }

  .rh-hero__panel { display: none; }

  .rh-benefits__grid {
    grid-template-columns: 1fr;
  }

  .rh-steps::before { display: none; }

  .rh-step { gap: 1rem; }
}
