 @font-face {
      font-family: 'MiFuente';
      src: url('font/avilock.woff2') format('woff2'),
           url('font/avilock.woff') format('woff');
      font-weight: normal;
      font-style: normal;
    }


/* Slider principal responsive y compacto */
.carousel {
  height: 100vh;
  max-height: 700px;
  min-height: 400px;
  position: relative;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-item {
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.2s ease-in-out;
}

/* Overlay para el fondo oscuro */
.carousel-caption {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
  /*background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%); */
  backdrop-filter: blur(1px);
}

/* Asegurarse que no haya otros fondos */
.carousel-inner {
  height: 100%;
  background: transparent;
}

/* El resto de tus estilos permanecen igual */

.slider-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.slider-text {
  flex: 1;
  color: #fff;
  text-align: left;
  padding-right: 20px;
}

.slider-text p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  color: #fff;
}

.slider-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  line-height: 1.2;
  color: #fff;
}

.slider-text .btn {
  background: linear-gradient(45deg, #25D366, #128C7E);
  color: white;
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transform: translateY(0);
}

.slider-text .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  background: linear-gradient(45deg, #128C7E, #25D366);
}

.slider-img {
  flex: 0 0 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.slider-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Controles del slider */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

/* Responsive */
@media (max-width: 991.98px) {
  .carousel,
  .carousel-item {
    height: 600px;
    max-height: 600px;
  }

  .slider-flex {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .slider-text {
    padding-right: 0;
    text-align: center;
  }

  .slider-text h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .slider-text p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .slider-img {
    flex: 0 0 200px;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-control-prev { left: 10px; }
  .carousel-control-next { right: 10px; }
}

@media (max-width: 576px) {
  .carousel,
  .carousel-item {
    height: 500px;
    max-height: 500px;
  }

  .slider-text h1 {
    font-size: 1.8rem;
  }

  .slider-text p {
    font-size: 0.9rem;
  }

  .slider-img {
    flex: 0 0 150px;
    max-width: 180px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 30px;
    height: 30px;
  }
}

/* Estilos para mensajes del formulario */
#success {
    margin-bottom: 20px;
}

#success .alert {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

#success .alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

#success .alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* Estilos para los productos con bordes atractivos */
.service .service-item {
  border-radius: 13px;
  overflow: hidden;
  border-color: #000;
  border-style: solid;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(44, 77, 157, 0.2);
}

.service .service-img {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.service .service-text {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  
}



/* Mejora del botón de WhatsApp */
.service .service-item a.btn {
  transition: all 0.3s ease;
 
}

.service .service-item:hover a.btn {
  background: #fff;
  color: #000;
}