body {
  background-color: rgb(230, 230, 230);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}
h2 {
  text-align: center;
  font-size: 2.5rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-style: italic;
  color: rgb(32, 36, 102);
  text-shadow: 0 2px black;
  margin-top: -5rem;

}

#carouselServicios{
    z-index: 5;
}

.redes{
    z-index: 100;
}

.servicio-card {
  border: none;
  background: none;
  text-align: center;
}

/* Imagen con borde azul */
.card-img-top {
  width: 100%;
  border: 8px solid rgb(32, 36, 102);
  border-radius: 10%;
  object-fit: cover;
  height: auto;
  max-height: 280px;
}

/* Overlay "ver más" */
.card-img-overlay {
  top: 0;
  left: 0;
  border-radius: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 1rem;
}

.vermas {
  background-color: rgba(255, 166, 0, 0.952);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 2;
}

.contenido {
  display: none;
  color: white;
  font-size: 0.9rem;
  text-align: justify;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.619);
  border-radius: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
}

/* Mostrar contenido al hacer hover */
.card-img-overlay:hover .vermas {
  display: none;
}

.card-img-overlay:hover .contenido {
  display: block;
}

/* Título */
.titulo-servicio {
  font-size: 1.5rem;
  font-family: 'Times New Roman', Times, serif;
  margin: 0.5rem 0;
}

/* Botón cotizar */
.btn {
  background-color: rgb(16, 36, 211);
  color: white;
  padding: 5px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: rgb(16, 36, 211);
  transform: scale(1.1);
}

/* Carrusel controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: white;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 3px rgb(83, 83, 83);
}

/* Responsive: ocultar 2ª tarjeta en móvil */
@media (max-width: 767px) {
  .d-md-block {
    display: none !important;
  }

  .titulo-servicio {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 0.9rem;
  }
  h2{
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 black;
  }
}