/* =============================================== */
/*                ESTILOS GENERALES                */
/* =============================================== */
body {
    padding-top: 56px; /* Espacio para la barra de navegación fija */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Transición suave para el menú al hacer scroll */
.transition-all {
    transition: all 0.4s ease-in-out;
}

/* =============================================== */
/*                 HERO SECTION                    */
/* =============================================== */
.hero-section {
    /* Asegúrate de tener esta imagen en assets */
    background: url('../assets/background.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Capa oscura sobre la imagen del Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Oscuridad al 60% */
    z-index: 1;
}

/* Contenido del Hero (Texto y Botón) */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1, 
.hero-content p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* =============================================== */
/*              TARJETAS Y SERVICIOS               */
/* =============================================== */
/* Iconos circulares en Servicios */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
}

/* Efecto de elevación al pasar el mouse */
.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;
}

/* Imágenes de productos en tarjetas */
.card-product-img {
    height: 220px;
    object-fit: cover;
}

/* =============================================== */
/*       SECCIÓN DE ESTADÍSTICAS PREMIUM           */
/* =============================================== */
.stats-pro-section {
    /* Imagen de fondo tecnológica (opcional, si no carga se ve el degradado) */
    background-image: url('../assets/fondo-tech.jpg'); 
    background-attachment: fixed; /* Efecto Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
    background-color: #0f172a; /* Fondo de respaldo */
}

/* Capa de degradado azul elegante */
.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado de azul oscuro a azul corporativo */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 110, 253, 0.8) 100%);
    z-index: 1;
}

.stats-content {
    position: relative;
    z-index: 2;
}

.stat-item-pro {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item-pro:hover {
    transform: translateY(-5px);
}

.stat-icon-pro {
    font-size: 3rem;
    color: #0dcaf0; /* Cyan */
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(13, 202, 240, 0.6); /* Resplandor */
}

.stat-number-pro {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}

.stat-label-pro {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 400;
}

/* Línea separadora vertical solo en PC */
@media (min-width: 768px) {
    .stat-border-right {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* =============================================== */
/*           CARRUSEL DE PRODUCTOS (SWIPER)        */
/* =============================================== */
.product-swiper {
    padding-bottom: 50px; /* Espacio para las flechas */
}

.swiper-button-next,
.swiper-button-prev {
    color: #0d6efd;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

/* =============================================== */
/*           DETALLE DE PRODUCTO                   */
/* =============================================== */
.product-carousel-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.product-description {
    white-space: pre-wrap;
}

/* =============================================== */
/*         BOTÓN DE WHATSAPP FLOTANTE              */
/* =============================================== */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.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;
    text-decoration: none;
    animation: pulse 2s infinite; /* Animación activada */
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-flotante:hover {
    animation: none; /* Se detiene al pasar el mouse */
    transform: scale(1.1);
    color: white;
}