.hero {
  width: 100%;
  background: transparent;
  position: relative;
}
@media (min-width: 40rem) {
  .hero {
    height: 20rem;
    overflow: hidden;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-background img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  padding: 1rem;
  background: none;
  color: white;
}
.hero-content.black {
  background: rgba(0, 0, 0, 0.5);
}
.hero-content.red {
  background: rgba(230, 27, 36, 0.5);
}
.hero-content.blue {
  background: rgba(0, 48, 135, 0.5);
}
@media (min-width: 40rem) {
  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 10px;
}

.hero-text {
  font-weight: 300;
  line-height: 2;
}

.hero2 {
  background-image: url(linea.svg);
  background-repeat: no-repeat;
  background-position: right 50px bottom 30px;
  background-color: #f7f9fc;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero2 .texto {
  flex: 1;
}
.hero2 .texto h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #00338d;
  margin: 0 0 0 0;
}
.hero2 .texto p {
  font-size: 1.4rem;
  color: #c2007a;
  line-height: 1.5;
  margin: 0;
}
.hero2 .linea-icono img {
  width: 50px;
  margin-top: -20px;
}
@media (max-width: 768px) {
  .hero2 {
    background-image: none;
    flex-direction: column;
    text-align: center;
  }
  .hero2 h2 {
    font-size: 1.4rem !important;
  }
  .hero2 p {
    font-size: 1rem !important;
  }
  .hero2 .linea-icono {
    width: 100%;
    text-align: center;
  }
  .hero2 .linea-icono img {
    width: auto;
  }
  .hero2 .linea-icono::after {
    display: none;
  }
}
