.servicio-detalle .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.intro {
  position: relative;
  overflow: hidden;
}

.intro h1 {
  color: var(--azul);
  font-size: 3rem;
}

.intro .descripcion {
  font-size: 1.1rem;
  color: var(--gris-oscuro);
  line-height: 1.6;
}

.tipos-servicio {
  padding: 1rem 1rem;
}

.tipos-servicio h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--azul);
}

/* Estilos para la alternancia de imágenes */
.tipo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 1rem;
}

.tipo .texto {
  flex: 1 1 45%;
  min-width: 300px;
  padding: 1rem;
  
}

.tipo .texto h3 {
  margin-bottom: 0.5rem;
}

.tipo .texto p {
  color: var(--gris-oscuro);
  line-height: 1.6;
  font-size: 1.5rem;
}

.tipo .imagen {
  flex: 1 1 50%;
  min-width: 300px;
  padding: 0rem 0.1rem;
  text-align: center;
}

.tipo .imagen img {
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Alternancia automática usando nth-child */
.tipo:nth-child(odd) {
  flex-direction: row;
  text-align: right;
}
.tipo:nth-child(even) {
  flex-direction: row-reverse;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .tipo {
    flex-direction: column !important;
  }
  
  .tipo .texto,
  .tipo .imagen {
    width: 100%;
    padding: 0.5rem;
  }
  
  .tipo .imagen img {
    max-height: 300px;
  }
  
  .intro h1 {
    font-size: 2.2rem;
  }
  
  .tipos-servicio h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .tipo .texto p {
    font-size: 1rem;
  }
}

.carrusel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carrusel .imagen {
  position: relative;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
  padding: 0.5rem;
  border-radius: 50%;
}

.flecha.izquierda {
  left: 10px;
}

.flecha.derecha {
  right: 10px;
}

