.index5 {
    position: relative;
    height: 50vh;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-top: 60px;
}

.index5 .background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/static/images/index/index_4.jpg") no-repeat center center;
    background-size: cover;
    filter: blur(3px);
    z-index: -1;
}

.index5 h2 {
    z-index: 1;
    text-align: center;
    font-size: 4.5em;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 5px black, -1px -1px 2px black, 1px -1px 2px black, -1px 1px 2px black, 1px 1px 2px black;
}

.index5 p {
    text-align: center;
    font-size: 1.9em;
    color: #F1C40F;
    background-color: transparent;
    z-index: 1;
    text-shadow: 2px 2px 5px darkred, -1px -1px 2px darkgreen, 1px -1px 2px darkgreen, -1px 1px 2px darkgreen, 1px 1px 2px darkgreen;
}

.index6 {
    background-color: #F0F4F8;
    padding: 20px 0;
    text-align: left;
}

.intro-servicios {
  background-color: #ffffff;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-texto {
  max-width: 800px;
}

.intro-texto h1 {
  font-size: 2.4rem;
  color: #0d6efd;
  margin-bottom: 20px;
  text-align: left;
  font-weight: 700;
}

.intro-texto p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 768px) {
  .intro-servicios {
    padding: 40px 20px;
  }

  .intro-texto h1 {
    font-size: 1.8rem;
  }

  .intro-texto p {
    font-size: 1rem;
  }
}

@media (min-width: 1920px) {
  .intro-texto h1 {
    font-size: 3rem;
  }

  .intro-texto p {
    font-size: 1.4rem;
  }
}

.index6 .servicios-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.index6 .servicio {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 25px;
    background-color: #004d99;
}

.index6 .servicio:nth-child(even) {
    background-color: #3399ff;
}

.index6 .servicio .imagen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    border-radius: 25px 0 0 25px;
    overflow: hidden;
}

.index6 .servicio .imagen img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.index6 .servicio .contenido {
    flex: 2;
    color: white;
    text-align: left;
    font-size: 1.2em;
    border-radius: 0 25px 25px 0;
    padding: 15px;
}

.index6 .servicio h2 {
    margin-top: 0;
    color: white;
}

.index6 .servicio:nth-child(even) h2 {
    color: #004d99;
}

.index6 .servicio:nth-child(odd) h2 {
    color: #3399ff;
}

.index6 .servicio p {
    font-size: 1.1em;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .index5 .background-image {
        filter: blur(2px);
    }

    .index5 {
        height: 30vh;
        padding-top: 40px;
    }

    .index6 .servicio {
        flex-direction: column;
        text-align: center;
    }

    .index6 .servicio .imagen {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .index6 .servicio .contenido {
        border-radius: 0;
        text-align: center;
    }

    .index6 .servicio h2 {
        margin-bottom: 15px;
    }

    .index6 h1 {
        font-size: 2.2em;
    }

    .index5 h1 {
        font-size: 3em;
    }

    .index5 p {
        font-size: 1.1em;
    }
}

@media (min-width: 1920px) {
    .index5 h1 {
        font-size: 8.5em;
    }

    .index5 p {
        font-size: 2.5em;
        margin-top: 5px;
    }

    .index6 h1 {
        font-size: 3.5em;
    }

    .index6 p {
        font-size: 2.5em;
    }

    .index6 .servicio p,
    .index6 .servicio h2 {
        font-size: 2em;
    }

    .index6 .servicio .imagen img {
        width: 300px;
        height: 300px;
    }
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card-servicio {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.icono-servicio img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.texto-servicio h2 {
  font-size: 1.4rem;
  color: #8E44AD;
  margin-bottom: 15px;
}

.texto-servicio p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-servicio {
    padding: 30px;
  }
}

@media (min-width: 1920px) {
  .servicios-grid {
    gap: 60px;
    padding: 60px 40px;
  }

  .card-servicio {
    padding: 50px 40px;
  }

  .texto-servicio h2 {
    font-size: 2rem;
  }

  .texto-servicio p {
    font-size: 1.3rem;
  }

  .icono-servicio img {
    max-width: 400px;
  }
}
