.servicios {
  max-width: 1920px;
  margin: auto;
  background-image: url("images/BANNER CIRUGIA.webp");
  background-size: cover;
  background-repeat: no-repeat;

  /* 👇 mueve el fondo verticalmente */
  background-position: center -120px; /* sube la imagen */
  /* background-position: center 100px;  baja la imagen */

  padding-bottom: 240px;
  color: #fff;
  transition: background-position .4s ease;
}




/* Aplique */
.servicios-header {
  height: 150px;
  background: #9b3c7a;
  text-align: center;
  padding: 1px 0 50px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.servicios-header h2 {
  font-size: 50px;
  letter-spacing: 2px;
}

/* Botones */
.servicios-icons {
  display: flex;
  justify-content: center;
  gap: 150px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.servicio-item {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #9b3c7a;
  transition: transform .3s ease;
}

.servicio-item img {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 10px;
}


.servicio-item span {
  font-size: 14px;
  font-weight: bold;
}

/* Estado activo */
.servicio-item.active img {
  background: #9b3c7a;
}

.servicio-item.active span {
  color: #9b3c7a;
  background-color: rgba(255, 255, 255, 0.6); /* blanco con transparencia */
}

.servicio-item:hover {
  transform: translateY(-4px);
}

/* Contenido */
.servicios-content {
  padding: 40px 5%;
}

.texto {
  max-width: 1000px;
}

.texto h1 {
  font-size: 100px;
  margin-bottom: 15px;
}

.texto h3 {
  font-size: 45px;
  margin-bottom: 25px;
  font-weight: normal;
  color: #953478;
}

.texto p {
  font-size: 26px;
  line-height: 1.6;
}

.titulo-servicio {
  color: #fff;
  line-height: 1.1;
}

.linea-texto {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.linea-morada {
  width: 100px;
  height: 8px;
  background-color: #9b3c7a;
  border-radius: 5px;
}

.linea-morada2 {
  width: 200px;
}

.segunda-linea {
  display: block;
}



@media (max-width: 768px) {

  .servicios {
    background-position: -700px top; /* mueve a la izquierda */
    padding-bottom: 200px;
  }
  
.servicio-item {
  color: #c893b1;
}

  .servicios-header {
    height: auto;
    padding: 20px 15px 35px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
  }

  .servicios-header h2 {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .servicios-icons {
    gap: 30px;
    margin: 30px auto;
  }

  .servicio-item img {
    width: 80px;
    height: 80px;
    padding: 8px;
  }

  .servicio-item span {
    font-size: 13px;
    text-align: center;
  }

  .servicios-content {
    padding: 30px 6%;
  }

  .texto {
    max-width: 100%;
  }

  .texto h1 {
    font-size: 34px;
  }

  .texto h3 {
    font-size: 24px;
	color:#c893b1;
  }

  .texto p {
    font-size: 17px;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {

  .servicios {
    background-position: center -80px;
    padding-bottom: 220px;
  }

  .servicios-header h2 {
    font-size: 40px;
	}

  .servicios-icons {
    gap: 45px;
  }

  .servicio-item img {
    width: 90px;
    height: 90px;
  }

  .servicios-content {
    padding: 35px 7%;
  }

  .texto h1 {
    font-size: 40px;
  }

  .texto h3 {
    font-size: 28px;
  }

  .texto p {
    font-size: 19px;
  }
}

@media (max-width: 1024px) {

  .servicios-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    max-width: 420px;
    margin: 30px auto;
  }

  .servicio-item {
    justify-content: center;
  }

  .servicio-item img {
    margin-bottom: 8px;
  }

  .servicio-item span {
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(64, 1, 44, 0.82); /* ajusta la transparencia */
    z-index: 1;
	height: 1200px;
  }

  /* El contenido va por encima */
  .servicios > * {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 767px) {
  .linea-morada {
    width: 60px;
    height: 4px;
    border-radius: 3px;
  }

  .linea-morada2 {
    width: 120px;
  }

  .segunda-linea {
    line-height: 1.15;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .linea-morada {
    width: 80px;
    height: 6px;
    border-radius: 4px;
  }

  .linea-morada2 {
    width: 160px;
  }
}
