body {
  font-family: Arial, sans-serif;
  color: white;
  text-align: center;
  background-color: #0c1b2e;
}


.header {
  background: url("https://app.explor-k.com/CDN/wpexplork/gestion_de_emergencia.webp")
    no-repeat center center;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
}

.header h1 {
  font-size: 28px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 8px 15px;
  border-radius: 8px;
  color: white;
}

.header p {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  color: white;
  margin-top: 7px;
}


.grid-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}


.grid-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-item img {
  width: 50%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

.title-text {
  font-size: 20px;
  text-align: justify;
  font-weight: bold;
}

.text {
  flex: 1;
  text-align: left;
  font-size: 13px;
}

.inline-list {
  font-size: 17px;
}


.grid-item.reverse {
  background-color: rgba(200, 200, 200, 0.2);
  
  padding: 20px;
  
  border-radius: 8px;
  
  flex-direction: row-reverse;
}

.grid-item.reverse .text {
  text-align: left;
  display: flex;
  flex-direction: column;
  text-align: justify;
}


.capacitacion {
  background: #0c1b2e;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.capacitacion h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

.capacitacion p {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.6;
}


.boton-container {
  margin-top: 20px;
}

.boton-asesoria {
  display: inline-block;
  background-color: white;
  color: #0c1b2e;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.boton-asesoria:hover {
  background-color: #f0f0f0;
}


@media screen and (max-width: 768px) {
  .header {
    height: auto;
    min-height: 40vh;
    padding: 30px 15px;
  }

  .header h1 {
    font-size: 28px;
    margin-top: 20%;
  }

  .header p {
    font-size: 16px;
    margin-bottom: 90px;
  }

  .grid-item {
    flex-direction: column;
    text-align: center;
  }

  .grid-item img {
    width: 60%;
    max-width: 200px;
    margin-top: 13%;
  }

  .text {
    text-align: center;
  }

  .grid-item.reverse {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .grid-item.reverse .text {
    text-align: center;
    align-items: center;
  }
}


.blue-separator {
  width: 100%;
  background-color: #001f3f;
  
  padding: 1px 0;
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
}

.blue-separator p {
  margin: 5px 0;
}

.blue-separator p:first-child {
  font-weight: bold;
  font-size: 1rem;
}

.blue-separator p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .grid-item img {
    width: 100%;
    max-width: 400px;
    margin-top: 13%;
  }

  .title-text {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
  }
}
