:root{
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.10);

  --max: 1200px;
  --pad-x: 40px;
  --header-h: 88px;

  --radius: 14px;

  --nav-font: 20px;
  --nav-gap: 34px;

  --btn-h: 46px;
  --btn-px: 28px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container{
  width: min(var(--max), calc(100% - (var(--pad-x) * 2)));
  margin: 0 auto;
}

.page{ min-height: 100vh; }

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}

.header-inner{
  height: var(--header-h);
  width: min(var(--max), calc(100% - (var(--pad-x) * 2)));
  margin: 0 auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo{
  height: 56px;
  width: auto;
  display: block;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--nav-gap);
}

.nav-link{
  text-decoration: none;
  color: rgba(17, 24, 39, 0.65);
  font-size: var(--nav-font);
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 10px;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.nav-link:hover{
  color: rgba(17, 24, 39, 0.95);
  background: rgba(17, 24, 39, 0.04);
  transform: translateY(-1px);
}

.cta{
  height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 var(--btn-px);
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0;
  border: 1px solid #000;
  transition: transform 160ms ease, opacity 160ms ease;
}

.cta:hover{
  transform: translateY(-1px);
  opacity: 0.95;
}

/* SECTIONS BASE */
.section{ padding: 110px 0; }

.section-title{
  margin: 0 0 12px;
  font-size: 38px;
  letter-spacing: -0.02em;
}

.section-text{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* HERO */
.section--hero{
  position: relative;
  padding: 120px 0 150px;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url("/static/imagen/impulso_1.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: clamp(520px, 55vw, 980px);
}

.section--hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 42%,
    rgba(255,255,255,0.92) 55%,
    rgba(255,255,255,0.55) 68%,
    rgba(255,255,255,0.0) 85%
  );
}

.section--hero .container{
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.hero{ max-width: 760px; }

.hero-title{
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle{
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note{
  margin: 0;
  color: rgba(17, 24, 39, 0.65);
  font-size: 14px;
}

.btn{
  height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.btn:hover{ transform: translateY(-1px); }

.btn--primary{
  background: #0b57d0;
  color: #fff;
}

.btn--ghost{
  background: transparent;
  color: rgba(17, 24, 39, 0.85);
  border-color: rgba(17, 24, 39, 0.18);
}

.btn--ghost:hover{
  background: rgba(17, 24, 39, 0.04);
}

/* FOOTER */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   SECCIÓN 2 - STEPS (LINEA CENTRADA ENTRE EL 1 Y 4)
========================================================= */
.section.section--steps{
  background: transparent;
  padding: 120px 0 140px;
}

.section.section--steps .steps{ background: transparent; }

.section.section--steps .steps-title{
  margin: 0 0 70px;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #000;
}

/* Variables para que la línea SIEMPRE calce con el cuadro */
.section.section--steps .steps-grid{
  position: relative;
  display: grid;
  gap: 70px;

  --num-size: 34px; /* tamaño del cuadro */
  --num-mt: 10px;   /* margin-top del cuadro */
}

/* LÍNEA CENTRAL: empieza/termina en el centro del cuadro 1 y 4 */
.section.section--steps .steps-grid::before{
  content:"";
  position: absolute;

  /* centro del primer/último cuadro: mt + (size/2) */
  top: calc(var(--num-mt) + (var(--num-size) / 2)) !important;
  bottom: calc(var(--num-mt) + (var(--num-size) / 2)) !important;

  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.section.section--steps .steps-row{
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  column-gap: 36px;
  align-items: start;
}

.section.section--steps .steps-col{ min-width: 0; }

.section.section--steps .steps-col--left{
  display:flex;
  justify-content:flex-end;
}

.section.section--steps .steps-col--right{
  display:flex;
  justify-content:flex-start;
}

.section.section--steps .steps-col--mid{
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2; /* números arriba de la línea */
}

.section.section--steps .step-num{
  width: var(--num-size);
  height: var(--num-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;

  border-radius: 0;
  margin-top: var(--num-mt);
}

.section.section--steps .step{ max-width: 560px; }

.section.section--steps .step-title{
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
  line-height: 1.05;
}

.section.section--steps .step-text{
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(17, 24, 39, 0.78);
}

.section.section--steps .step--left{ text-align: center; }
.section.section--steps .step--right{ text-align: left; }

.section.section--steps .steps-row--left .step-title{ font-size: 40px; }
.section.section--steps .steps-row--right .step-title{ font-size: 38px; }

@media (max-width: 980px){
  .section.section--steps .steps-title{ font-size: 32px; margin-bottom: 54px; }
  .section.section--steps .steps-row{ column-gap: 22px; grid-template-columns: 1fr 54px 1fr; }
  .section.section--steps .step-title{ font-size: 30px; }
  .section.section--steps .steps-row--left .step-title{ font-size: 32px; }
  .section.section--steps .steps-row--right .step-title{ font-size: 30px; }
  .section.section--steps .step-text{ font-size: 17px; }
  .section.section--steps .steps-grid{ --num-size: 32px; --num-mt: 8px; }
}

@media (max-width: 760px){
  .section.section--steps .steps-grid::before{ display:none; }

  .section.section--steps .steps-row{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section.section--steps .steps-col--mid{ justify-content: flex-start; }

  .section.section--steps .steps-col--left,
  .section.section--steps .steps-col--right{
    justify-content: flex-start;
  }

  .section.section--steps .step{
    max-width: 100%;
    text-align: left;
  }

  .section.section--steps .step--left{ text-align: left; }
  .section.section--steps .step-title{ font-size: 26px; }
  .section.section--steps .step-text{ font-size: 16px; }
}
