/* Estilo para el Hero Section */
/* Estilo para el Hero Section */
.hero-section {
    background: url('../assets/background.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Necesario para que el overlay funcione */
}

/* El Overlay Oscuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Negro con 50% de opacidad. Puede ajustar el 0.5 a 0.6 o 0.7 para más oscuridad */
    z-index: 1;
}

/* Contenido del Hero */
.hero-content {
    position: relative; /* Para que se ponga por encima del overlay */
    z-index: 2;
}

.hero-content h1, 
.hero-content p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Sombra: 2px a la derecha, 2px hacia abajo, 8px de desenfoque, color negro con 80% de opacidad */
}


/* Botón de WhatsApp */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.whatsapp-flotante:hover {
    color: white;
}

.fa-whatsapp {
    margin-top: 16px;
}

body {
    padding-top: 56px; /* Ajuste para la barra de navegación fija */
}

/* --- ESTILOS PARA LA SECCIÓN DE SERVICIOS EN EL INICIO --- */

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
}

.servicio-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-item .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* --- ESTILOS PARA LAS TARJETAS DE CATÁLOGO Y SERVICIOS --- */

.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.card-product-img {
    height: 220px;
    object-fit: cover; /* Esto asegura que la imagen cubra el espacio sin deformarse */
}

/* --- ESTILOS PARA LISTAS PERSONALIZADAS (Página "Acerca de") --- */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px; /* Espacio para el icono */
    margin-bottom: 12px; /* Espacio entre items */
    font-size: 1.1rem;
}

.check-list li::before {
    content: '\f058'; /* Código del icono de check-circle en Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; /* Importante para que el icono sólido se muestre */
    position: absolute;
    left: 0;
    top: 2px;
    color: #0d6efd; /* Color primario de Bootstrap (azul) */
}

/* --- Estilos para el Carrusel de Producto --- */
.product-carousel-img {
    aspect-ratio: 4 / 3; /* Proporción 4:3, puedes ajustarla a 16/9 si prefieres */
    object-fit: cover;   /* Asegura que la imagen cubra el espacio sin estirarse */
    width: 100%;
}

.product-description {
    white-space: pre-wrap; /* Respeta los saltos de línea y espacios de la descripción larga */
}

/* --- ESTILOS PARA EL CARRUSEL DE PRODUCTOS --- */
.product-swiper {
  padding-bottom: 40px; /* Espacio para que los botones no se peguen al borde */
}

.swiper-button-next,
.swiper-button-prev {
  color: #0d6efd; /* Color primario de Bootstrap (azul) */
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* =============================================== */
/*         ANIMACIÓN PARA EL BOTÓN FLOTANTE          */
/* =============================================== */

/* Primero, definimos la animación. La llamaremos 'pulse' */
/* 'keyframes' es como una línea de tiempo para la animación */
@keyframes pulse {
  0% {
    /* Al inicio, el botón tiene su tamaño normal y sombra */
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  
  70% {
    /* Al 70% del tiempo, el botón crece un 10% y la sombra se expande */
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); /* La opacidad de la sombra llega a 0 (desaparece) */
  }
  
  100% {
    /* Al final, vuelve a su estado original para que el ciclo sea suave */
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Ahora, aplicamos la animación a nuestro botón de WhatsApp */
.whatsapp-flotante {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
  
  /* --- ESTA ES LA LÍNEA MÁGICA --- */
  /* Le decimos que use la animación 'pulse', que dure 2 segundos, y que se repita infinitamente */
  animation: pulse 2s infinite;
}

.whatsapp-flotante:hover {
  /* Opcional: Cuando el usuario pasa el mouse, detenemos la animación para que sea más fácil hacer clic */
  animation: none;
  transform: scale(1.1); /* Y lo dejamos un poco más grande */
  color: white;
}

.fa-whatsapp {
  margin-top: 16px;
}