* {
  box-sizing: border-box;
}

:root {
  --blue: #104bea;
  --deep-blue: #092c86;
  --ink: #172e68;
  --text: #252525;
  --muted-line: #f1f5f9;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #f1f5f9;
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
}

.infografia {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: none;
}

/* ENCABEZADO */
.hero {
  position: relative;
  
  min-height: 300px;
  
  place-items: center;
  padding: 28px 20px 32px;
  color: #fff;
  text-align: center;
  background:#102A43
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 14, 46, .16),
    rgba(0, 0, 0, .34)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.7px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 29px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #0a1a3d;
  font-size: 22px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 4.2vw, 43px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.8px;
  color:#f97316;
}

/* SECCIÓN DE LOS CINCO PASOS */
.steps-section {
  position: relative;
  width: 100%;
  min-height: 390px;
  padding: 48px 28px 78px;
  overflow: hidden;
  background: #f1f5f9;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

/* NÚMEROS */
.number {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 50%;
  color: #fff;
  background: #102A43;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(4, 35, 115, .06);
}

/* TARJETAS E ICONOS */
.icon-card {
  display: grid;
  place-items: center;
  width: clamp(90px, 11vw, 126px);
  aspect-ratio: 1 / 1;
  margin: 26px 0 18px;
  padding: 13px;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(14, 30, 62, .14);
  color: var(--ink);
}

.icon-card svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* TEXTOS */
.step p,
.step-heading {
  margin: 0;
  font-size: clamp(12px, 1.35vw, 16px);
  line-height: 1.35;
  font-weight: 400;
}

.step-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 66px;
  margin-top: 2px;
}

/*
  ESCRITORIO:
  Pasos 1, 3 y 5: número -> icono -> descripción.
  Pasos 2 y 4: descripción -> icono -> número.
*/

/* Pasos impares */
.step-1 .number,
.step-3 .number,
.step-5 .number {
  order: 1;
  margin: 0 0 10px;
}

.step-1 .icon-card,
.step-3 .icon-card,
.step-5 .icon-card {
  order: 2;
  margin: 26px 0 18px;
}

.step-1 p,
.step-3 .step-heading,
.step-5 .step-heading {
  order: 3;
}

/* Pasos pares */
.step-2 .step-heading,
.step-4 .step-heading {
  order: 1;
  min-height: 66px;
  margin: 0;
}

.step-2 .icon-card,
.step-4 .icon-card {
  order: 2;
  margin: 20px 0 0;
}

.step-2 .number,
.step-4 .number {
  order: 3;
  margin: 25px 0 0;
}

/* LÍNEA INFERIOR Y DECORACIÓN */
.bottom-line {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--deep-blue);
}

.leaf {
  position: absolute;
  z-index: 2;
  bottom: 5px;
  width: 100px;
  height: 70px;
  pointer-events: none;
}

.leaf-left {
  left: -12px;
}

.leaf-right {
  right: -12px;
  transform: scaleX(-1);
}

.leaf i {
  position: absolute;
  bottom: 0;
  left: 10px;
  display: block;
  width: 34px;
  height: 62px;
  border-radius: 100% 0 100% 0;
  background: var(--blue);
  transform: rotate(-22deg);
  transform-origin: bottom center;
}

.leaf i:nth-child(2) {
  left: 36px;
  height: 54px;
  transform: rotate(22deg);
}

.leaf i:nth-child(3) {
  left: 57px;
  height: 38px;
  transform: rotate(38deg);
}

/* LÍNEA CURVA DECORATIVA EN ESCRITORIO */
@media (min-width: 760px) {
  .steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 22px;
    right: 8%;
    left: 8%;
    height: 175px;
    border: 3px solid #f7f7f8;
    border-bottom-color: transparent;
    border-radius: 90px 90px 0 0;
  }
}

/* TABLETS Y CELULARES */
@media (max-width: 759px) {
  .hero {
    min-height: 190px;
    padding: 25px 18px;
  }

  .brand {
    margin-bottom: 14px;
    font-size: 17px;
  }

  h1 {
    font-size: clamp(25px, 6vw, 36px);
  }

  .desktop-break {
    display: none;
  }

  .steps-section {
    min-height: auto;
    padding: 28px 22px 65px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 480px;
  }

  .step {
    display: grid;
    grid-template-columns: 48px 100px minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 16px;
    align-items: center;
    padding: 15px 0;
    text-align: left;
  }

  .number,
  .step-1 .number,
  .step-2 .number,
  .step-3 .number,
  .step-4 .number,
  .step-5 .number {
    grid-column: 1;
    grid-row: 1;
    order: initial;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 20px;
  }

  .icon-card,
  .step-1 .icon-card,
  .step-2 .icon-card,
  .step-3 .icon-card,
  .step-4 .icon-card,
  .step-5 .icon-card {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    width: 92px;
    margin: 0;
    padding: 11px;
    border-radius: 15px;
  }

  .step p,
  .step-heading,
  .step-2 .step-heading,
  .step-3 .step-heading,
  .step-4 .step-heading,
  .step-5 .step-heading {
    grid-column: 3;
    grid-row: 1;
    order: initial;
    min-height: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 32px;
    bottom: 32px;
    left: 19px;
    width: 2px;
    background: #f1f5f9;
  }

  .leaf {
    transform: scale(.75);
    transform-origin: bottom left;
  }

  .leaf-right {
    transform: scaleX(-1) scale(.75);
    transform-origin: bottom right;
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 380px) {
  .step {
    grid-template-columns: 40px 78px minmax(0, 1fr);
    column-gap: 10px;
  }

  .icon-card,
  .step-1 .icon-card,
  .step-2 .icon-card,
  .step-3 .icon-card,
  .step-4 .icon-card,
  .step-5 .icon-card {
    width: 76px;
    padding: 9px;
  }

  .step p,
  .step-heading,
  .step-2 .step-heading,
  .step-3 .step-heading,
  .step-4 .step-heading,
  .step-5 .step-heading {
    font-size: 12px;
  }

  .steps-section {
    padding-right: 14px;
    padding-left: 14px;
  }
}
