:root,
[data-peppercorn-typography-scale-mode="mode-1"] {
  --accent-color: #ffa64d;
  --black: #010101;
  --white: #f7f7f7;
  --brand-primary: #11296e;
  --brand-secondary: #cbb2fe;
  --peppercorn-typography-scale-h3-font-family: OpenSans-SemiBold, sans-serif;
  --peppercorn-typography-scale-h3-font-size: 31px;
  --peppercorn-typography-scale-h3-line-height: 47px;
  --peppercorn-typography-scale-h3-font-weight: 600;
  --peppercorn-typography-scale-h3-font-style: normal;
  --peppercorn-typography-scale-h2-font-family: Poppins, sans-serif;
  --peppercorn-typography-scale-h2-font-size: 39px;
  --peppercorn-typography-scale-h2-line-height: 59px;
  --peppercorn-typography-scale-h2-font-weight: 700;
  --peppercorn-typography-scale-h2-font-style: normal;
  --peppercorn-typography-scale-h1-font-family: Poppins, sans-serif;
  --peppercorn-typography-scale-h1-font-size: 61px;
  --peppercorn-typography-scale-h1-line-height: 92px;
  --peppercorn-typography-scale-h1-font-weight: 600;
  --peppercorn-typography-scale-h1-font-style: normal;
  --peppercorn-typography-scale-body-font-family: OpenSans, sans-serif;
  --peppercorn-typography-scale-body-font-size: 20px;
  --peppercorn-typography-scale-body-line-height: 30px;
  --peppercorn-typography-scale-body-font-weight: 400;
  --peppercorn-typography-scale-body-font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === CONTENEDOR PRINCIPAL === */
.prueba-grupal-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  font-family: "Poppins", sans-serif;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 50px;
}

/* === TITULOS GENERALES === */
.prueba-grupal-container h1 {
  font-family: var(--peppercorn-typography-scale-h1-font-family);
  font-size: 2rem;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.prueba-grupal-container p {
  font-family: var(--peppercorn-typography-scale-body-font-family);
  font-size: 1.2rem;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* === SECCIÓN DE PASOS === */
.instrucciones-prueba-grupal {
  text-align: center;         /* centra el título y los pasos */
  padding: 20px;
}

/* contenedor de los pasos */
.instrucciones-prueba-grupal .pasos {
  display: flex;              /* pone los pasos en una línea */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;            /* si la pantalla es pequeña, se bajan */
  margin-top: 16px;
  gap: 10px;
}

/* cada paso individual */
.instrucciones-prueba-grupal .paso {
  width: calc(25% - 20px);
  min-width: 200px;
  height: auto;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.instrucciones-prueba-grupal img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 8px;
}

.instrucciones-prueba-grupal p {
  font-family: var(--peppercorn-typography-scale-body-font-family);
  font-size: 17px;
  font-weight: var(--peppercorn-typography-scale-body-font-weight);
  line-height: 1.4;
  margin: 0;
  max-width: 90%;
}

/* === BOTONES === */
.botones {
  margin-top:18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.boton-descarga,.boton-importar {
  background-color: var(--brand-primary);
  color: white;
  border: 2px solid var(--brand-primary);
  border-radius: 8px;
  padding: 12px 24px;
  font-family: var(--peppercorn-typography-scale-body-font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 1 1 200px;
  max-width: 220px;
  min-width: 160px;
}

.boton-descarga:hover,
.boton-importar:hover {
  background-color: #CBB2FE;
  color: var(--brand-primary);
}

/* === DIVISOR DE RECOMENDACIONES === */
#division-recomendaciones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 30px;
  width: 100%; 
}

#division-recomendaciones h2 {
  font-family: var(--peppercorn-typography-scale-h2-font-family);
}

#division-recomendaciones .line-1,
#division-recomendaciones .line-2 {
  flex: 1;
  height: 3px;
  background-color: #000000;
}

/* === BLOQUES DE RECOMENDACIONES === */
.Recomendaciones {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  margin-top: 30px;
}
/* === BLOQUES DE RECOMENDACIÓN === */
.Recomendaciones article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1000px;
}

/* === CUERPO DEL TEXTO (PÁRRAFOS) === */
.Recomendaciones article p {
  background: #fff;
  border: 3px solid var(--brand-primary);
  border-radius: 40px;
  padding: 30px 40px;
  flex: 1;
  font-family: var(--peppercorn-typography-scale-body-font-family);
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* === TÍTULOS (H3) === */
.Recomendaciones article h3 {
  font-family: var(--peppercorn-typography-scale-h3-font-family);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-primary);
  width: 200px;
  text-align: center;
}

/* === INTERCALADO DE BLOQUES === */
.Recomendaciones .descargar-plantilla,
.Recomendaciones .importar-resultados {
  flex-direction: row; /* título a la derecha */
}
.Recomendaciones .aplicar-prueba,
.Recomendaciones .visualizar-resultados {
  flex-direction: row-reverse; /* título a la izquierda */
}

@media (max-width: 1200px) {
  .instrucciones-prueba-grupal .pasos {
    justify-content: space-around;
    align-items: flex-start;
  }

  .instrucciones-prueba-grupal .paso {
    width: 23%;
    height: auto;
  }
}

/* === Dos columnas === */
@media (max-width: 974px) {
  .instrucciones-prueba-grupal {
    gap: 30px;
  }
  .instrucciones-prueba-grupal .paso {
    width: 45%;
  }
}

/* === Ajuste entre 662px y 674px === */
@media (max-width: 674px) {
  .instrucciones-prueba-grupal {
    gap: 100px;
  }
  .instrucciones-prueba-grupal .pasos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .instrucciones-prueba-grupal .paso {
    width: 45%;
  }

  .instrucciones-prueba-grupal img {
    width: 160px;
    height: 160px;
  }

  .instrucciones-prueba-grupal p {
    font-size: 14px;
    line-height: 1.3;
    max-width: 85%;
  }

  .botones {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .boton-descarga, .boton-importar {
    flex: none;
    width: 220px;
    max-width: none;
    min-width: 180px;
  }

  .Recomendaciones article {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  .Recomendaciones article h3 {
    order: 0;
    width: auto;
    margin-bottom: 2px;
  }

  .Recomendaciones article p {
    order: 1;
    width: 90%;
    padding: 20px;
    font-size: 0.95rem;
  }
}

/* === Una columna === */
@media (max-width: 555px) {
  .instrucciones-prueba-grupal .paso {
    width: 100%;
  }

  .instrucciones-prueba-grupal img {
    width: 140px;
    height: 140px;
  }

  .instrucciones-prueba-grupal p {
    max-width: 90%;
  }
}