/*------------------------------------------- 1ra seccion ----------------------------------------------*/
html,
body {
    overflow-x: hidden;
    /* Hides the horizontal scroll */
    margin: 0;
    /* Ensure there's no default margin that causes overflow */
    padding: 0;
    /* Ensure no padding causes overflow */
    width: 100%;
    /* Ensure the width is 100% */
}
/* Ajuste de la imagen */
.cumplimiento-normativo {
  position: relative;
  width: 100vw;
  height: auto; 
  overflow: hidden;
}

.cumplimiento-normativo img {
  width: 100vw;
  height: auto; 
  object-fit: cover;
  object-position: center;
}

/* Ajustes al overlay y el texto */
.overlay {
  position: absolute;
  top: 65%;  
  left: 0;  /* Cambiamos left a 0 para alinear el texto a la izquierda */
  transform: translate(0, -50%);  /* Solo centramos verticalmente, no horizontalmente */
  background-color: rgba(0, 0, 0, 0.6); /* Hacer el overlay más transparente */
  padding: 10px 20px;  
  text-align: left;  /* Alineamos el texto a la izquierda */
  width: 50%;  /* Ajustamos el ancho del overlay al 50% */
  max-width: 100%;
  padding: 20px 40px;
}

.overlay h1 {
  font-size: 53px; /* Ajuste de tamaño del texto para que se vea más proporcionado */
  margin: 0;
  text-transform: uppercase; /* Texto en mayúsculas */
  letter-spacing: 2px; /* Espaciado entre letras para mejor legibilidad */
  font-family: 'League Spartan', sans-serif;
}

  /*------------------------------------------- Seccion certiicado ----------------------------------------------*/
  .commitment-section {
    background-color: #FFFFFF; /* Fondo blanco */
    padding: 20px 40px; /* Espaciado alrededor de la sección */
    text-align: left; /* Texto centrado */
}

.commitment-text {
  font-size: 1.6rem; 
  font-family: 'League Spartan', sans-serif;
  color: #333; 
  line-height: 1.5; 
  margin-bottom: 10px; 
}

  /*------------------------------------------- Seccion certiicado ----------------------------------------------*/

  .certificate-section {
    background-color: #F6C700;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .certificate-img {
    width: 40%;
    max-width: 500px;
}

.certificate-text {
    color: #000;
    font-size: 2rem;
    margin-left: 20px;
    font-weight: bold;
    font-family: 'League Spartan', sans-serif;
}

.certificate-subtitle {
    color: #A91E22;
    font-size: 1.9rem;
    font-family: 'League Spartan', sans-serif;
}

@media (min-width: 1001px) and (max-width: 1450px) {

  .commitment-text {
      font-family: 'League Spartan', sans-serif;
      font-size: 28px;
      font-weight: 800;
  }

  .certificate-text {
    color: #000;
    font-size: 28px;
    margin-left: 20px;
    font-weight: bold;
    font-family: 'League Spartan', sans-serif;
  }

.certificate-subtitle {
    color: #A91E22;
    font-size: 28px;
    font-family: 'League Spartan', sans-serif;
  }

  .overlay h1 {
    font-size: 40px;
  }
  .overlay {
    top: 60%;  
    padding: 15px;  
  }

  .cumplimiento-normativo img {
    object-position: center center;
    height: auto;
  }

  .cumplimiento-normativo {
    margin-top: 80px; /* Ajusta según la altura del menú en este rango */
  }

}

@media (min-width: 768px) and (max-width: 1000px) {

  .commitment-text {
    font-family: 'League Spartan', sans-serif;
    font-size: 25px;
    font-weight: 800;
  }

  .certificate-text {
    color: #000;
    font-size: 25px;
    margin-left: 20px;
    font-weight: bold;
    font-family: 'League Spartan', sans-serif;
  }

  .certificate-subtitle {
    color: #A91E22;
    font-size: 25px;
    font-family: 'League Spartan', sans-serif;
  }

  .overlay h1 {
    font-size: 32px;
  }
  .overlay {
    top: 55%; 
    padding: 15px;
  }

  .cumplimiento-normativo img {
    object-position: center center;
    height: auto;
  }

  .cumplimiento-normativo {
    margin-top: 70px; /* Ajusta según la altura del menú en este rango */
  }

}

@media (min-width: 577px) and (max-width: 767px) {

  .commitment-text {
    font-family: 'League Spartan', sans-serif;
    font-size: 20px;
    font-weight: 800;
  }

  .certificate-text {
    color: #000;
    font-size: 20px;
    margin-left: 20px;
    font-weight: bold;
    font-family: 'League Spartan', sans-serif;
  }

.certificate-subtitle {
    color: #A91E22;
    font-size: 20px;
    font-family: 'League Spartan', sans-serif;
  }

  .overlay h1 {
    font-size: 20px;
  }
  .overlay {
    top: 55%;
    padding: 15px;
  }

  .cumplimiento-normativo img {
    object-position: center center;
    height: auto;
  }

  .cumplimiento-normativo {
    margin-top: 60px; /* Ajusta según la altura del menú en este rango */
  }

}

@media (min-width: 351px) and (max-width: 576px) {

  .commitment-text {
    font-family: 'League Spartan', sans-serif;
    font-size: 15px;
    font-weight: 800;
  }

  .certificate-text {
    color: #000;
    font-size: 15px;
    margin-left: 20px;
    font-weight: bold;
    font-family: 'League Spartan', sans-serif;
  }

.certificate-subtitle {
    color: #A91E22;
    font-size: 15px;
    font-family: 'League Spartan', sans-serif;
  }

  .overlay h1 {
    font-size: 15px;
  }

  .overlay {
    top: 55%;
    padding: 10px;
  }

  .cumplimiento-normativo img {
    object-position: center center;
    height: auto;
  }

  .cumplimiento-normativo {
    padding-top: 20px;
    margin-top: 50px; /* Ajusta este valor según la altura de tu menú en móviles */
  }

}

@media (min-width: 200px) and (max-width: 350px) {

  .commitment-text {
    font-family: 'League Spartan', sans-serif;
    font-size: 10px;
    font-weight: 800;
  }

  .certificate-text {
    color: #000;
    font-size: 10px;
    margin-left: 20px;
    font-weight: bold;
    font-family: 'League Spartan', sans-serif;
  }

.certificate-subtitle {
    color: #A91E22;
    font-size: 10px;
    font-family: 'League Spartan', sans-serif;
  }

  .overlay h1 {
    font-size: 10px;
  }

  .overlay {
    top: 55%; 
    padding: 10px;
  }

  .cumplimiento-normativo img {
    object-position: center center;
    height: auto;
  }

  .cumplimiento-normativo {
    position: center;
    padding-top: 80px;
    margin-top: 20px; /* Ajusta según la altura del menú en este rango */
  }

}
