/* =======================================================
   REPARACIÓN GLOBAL DE DESBORDE EN MÓVILES (OVERFLOW FIX)
   ======================================================= */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================= */
/* ESTILOS GENERALES */
/* ============================================= */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* Colores primarios (basados en la referencia) */
:root {
    --hylok-dark-blue: #002C5E;
    --hylok-light-blue: #00A4E0;
}

/* ============================================= */
/* MENÚ DE NAVEGACIÓN (NAVBAR) */
/* ============================================= */
header {
    background-color: #ffffff;
}

/* Estilo de los enlaces del menú */
.navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
    padding: 1rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--hylok-light-blue);
}

/* Estilo del botón de búsqueda */
.btn-outline-primary {
    border-color: var(--hylok-light-blue);
    color: var(--hylok-light-blue);
}

.btn-outline-primary:hover {
    background-color: var(--hylok-light-blue);
    color: white;
}

/* Estilo del menú desplegable (dropdown) */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0;
}

.dropdown-item {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--hylok-light-blue);
    color: white;
    padding-left: 1.2rem; /* Pequeño efecto al pasar el mouse */
}


/* ============================================= */
/* BANNER PRINCIPAL (CARRUSEL - DISEÑO FINAL) */
/* ============================================= */

/* Contenedor principal del carrusel */
#heroCarousel {
    position: relative; 
}

/* El item individual del slide */
.carousel-item.hero-slide {
    height: 90vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative; 
    overflow: hidden;
}

/* Contenedor del texto DENTRO del slide */
.hero-slide .container {
    position: relative; /* Asegura que el texto esté por encima del video/overlay */
    z-index: 10;
    height: 100%; /* Ocupa toda la altura del slide */
    display: flex; /* Centra verticalmente el row */
    align-items: center; /* Centra verticalmente el row */
}
 .hero-slide .row {
     width: 100%; /* Asegura que el row ocupe todo el ancho */
 }


/* Caja de texto específica */
.hero-text {
    background-color: rgba(0, 44, 94, 0.7);
    padding: 2.5rem;
    border-radius: 5px;
    /* No necesita position relative aquí si el contenedor .container ya lo tiene */
}

/* Botones del banner (sin cambios) */
.btn-primary {
    background-color: var(--hylok-light-blue);
    border-color: var(--hylok-light-blue);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: #008cc0;
    border-color: #008cc0;
}
.btn-outline-light {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Estilos para el slide de VIDEO */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Capa oscura sobre el video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Controles (flechas e indicadores) */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 20; /* Asegura que estén visibles */
}


/* ============================================= */
/* CATEGORÍAS DE PRODUCTOS (Estilo Referencia) */
/* ============================================= */

/* El enlace que envuelve todo */
.product-card-ref {
    display: block;
    text-decoration: none;
    color: var(--hylok-dark-blue); /* Color de texto por defecto */
    margin-bottom: 1.5rem; /* Espacio inferior */
}

/* Contenedor de la imagen (para el efecto zoom) */
.product-image-wrapper {
    overflow: hidden; /* Esto es clave para el zoom */
    border-radius: 5px; /* La referencia SÍ tiene esquinas redondeadas en la imagen */
    background-color: #f8f9fa; /* Un fondo claro por si la imagen es transparente */
}

.product-image {
    width: 100%;
    height: 250px; /* Alto fijo, igual que antes */
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Título del producto (debajo de la imagen) */
.product-title-ref {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem; /* Espacio sobre el texto */
    color: var(--hylok-dark-blue);
}

/* El subrayado animado */
.product-title-ref::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: var(--hylok-light-blue);
    transition: width 0.4s ease;
}

/* Efectos Hover */
.product-card-ref:hover .product-image {
    transform: scale(1.1); /* Zoom a la imagen */
}

.product-card-ref:hover .product-title-ref {
    color: var(--hylok-light-blue); /* Texto cambia a azul claro */
}

.product-card-ref:hover .product-title-ref::after {
    width: 100%; /* El subrayado aparece */
}

/* ============================================= */
/* SECCIÓN ACERCA DE */
/* ============================================= */
.about-section {
    /* background-color: #f8f9fa; /* Un fondo gris muy claro (ya está en la clase bg-light de Bootstrap) */
}

.about-section h2 {
    color: var(--hylok-dark-blue); /* Título en azul oscuro */
}

.about-section .btn-outline-primary {
    /* Estilo del botón (ya definido antes, pero podemos ajustar si es necesario) */
    padding: 0.75rem 1.5rem; /* Hacemos el botón un poco más grande */
    font-weight: 500;
}

.about-section .img-fluid {
     max-height: 450px; 
     width: 100%;
     object-fit: cover;
     border: none; /* Asegura que no haya borde */
     border-radius: 0; /* Asegura que no haya esquinas redondeadas */
}


/* ============================================= */
/* MEGA MENÚ */
/* ============================================= */

/* Evita que el dropdown normal se cierre al hacer clic dentro (útil si hay submenús) */
.dropdown-menu {
  /* Puedes ajustar esto si prefieres que se muestre al pasar el cursor (hover) */
  /* Esto requiere JS o CSS más complejo, Bootstrap 5 por defecto es con clic */
}

/* Estilos específicos para el Mega Menú */
.dropdown-mega .dropdown-menu-mega {
    padding: 1.5rem 1rem; /* Más espacio interior */
    border: none; /* Sin borde */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Sombra suave */
    border-radius: 0 0 0.25rem 0.25rem; /* Bordes redondeados solo abajo */
    /* Hacemos que ocupe todo el ancho y se alinee con el contenedor */
    left: 0; 
    right: 0;
}

/* Títulos de las categorías dentro del mega menú */
.dropdown-menu-mega h6 {
    color: var(--hylok-dark-blue); /* Color azul oscuro */
    margin-bottom: 0.8rem;
}
 .dropdown-menu-mega h6 i { /* Estilo para los iconos */
     color: var(--hylok-light-blue);
 }


/* Estilo de los enlaces dentro del mega menú */
.mega-menu-item {
    padding: 0.4rem 1rem; /* Ajusta el padding vertical */
    font-size: 0.95rem;
    color: #555; /* Un gris oscuro */
    border-radius: 0.2rem;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mega-menu-item:hover {
    background-color: var(--hylok-light-blue); /* Fondo azul claro al pasar el cursor */
    color: white; /* Texto blanco */
    padding-left: 1.3rem; /* Efecto de indentación */
}

/* Separador */
 .dropdown-menu-mega hr {
     border-top: 1px solid #eee;
 }

/* Botón Ver Todos */
 .dropdown-menu-mega .btn-outline-primary {
     /* Puedes ajustar su estilo si quieres */
 }

 /* Asegurar que el dropdown aparezca pegado al menú */
 .navbar .dropdown-menu {
     margin-top: 0; /* Bootstrap 5 a veces añade margen, lo quitamos */
 }


/* ============================================= */
/* MEGA MENÚ - ACTIVAR CON HOVER (Escritorio) */
/* ============================================= */

/* Solo aplicar en pantallas más grandes que 'lg' (992px por defecto en Bootstrap) */
@media (min-width: 992px) { 
    .navbar .dropdown:hover > .dropdown-menu {
        display: block; /* Muestra el menú al pasar el cursor sobre el elemento li.dropdown */
        margin-top: 0; /* Asegura que no haya espacio extra arriba */
    }

    /* Opcional: Oculta el pequeño triángulo (caret) del dropdown-toggle si no te gusta */
    /* .navbar .dropdown-toggle::after {
        display: none; 
    } */
}


/* ============================================= */
/* PÁGINA DE CATEGORÍA DE PRODUCTOS */
/* ============================================= */

/* Sidebar de Categorías */
.category-sidebar .list-group-item {
    border: none; /* Sin bordes por defecto */
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-weight: 500;
    color: #555;
}
.category-sidebar .list-group-item.active {
    color: var(--hylok-light-blue);
    background-color: transparent; /* Sin fondo */
    font-weight: 700;
    border-left: 3px solid var(--hylok-light-blue); /* Línea azul a la izquierda */
}
 .category-sidebar .list-group-item:hover {
     color: var(--hylok-light-blue);
     background-color: #f8f9fa; /* Fondo gris claro al pasar cursor */
 }

 /* Submenús colapsables */
 .category-sidebar .collapse .list-group-item {
     padding-left: 1.5rem; /* Indentación */
     font-size: 0.9rem;
 }

 .category-sidebar .collapse .list-group-item.active {
     border-left: none; /* Quitamos borde izquierdo en subitems activos */
 }

 /* Icono de chevron en el sidebar */
 .category-sidebar a[data-bs-toggle="collapse"] i {
     transition: transform 0.3s ease;
 }
 .category-sidebar a[data-bs-toggle="collapse"][aria-expanded="true"] i {
     transform: rotate(180deg); /* Rota el icono al expandir */
 }


/* Grid de Productos */
.product-grid-card {
    border: 1px solid #eee; /* Borde sutil */
    transition: box-shadow 0.3s ease;
}
 .product-grid-card:hover {
     box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* Sombra al pasar cursor */
 }

.product-grid-image {
    height: 200px; /* Altura fija para imágenes */
    object-fit: contain; /* 'contain' para que se vea completo, 'cover' si quieres llenar */
    padding: 1rem; /* Espacio alrededor de la imagen */
    background-color: #fff; /* Fondo blanco por si la imagen es transparente */
}
.card-title {
    color: var(--hylok-dark-blue);
    font-weight: bold;
    font-size: 1.1rem;
     min-height: 44px; /* Para alinear títulos de 1 o 2 líneas */
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
}
 .card-footer {
     padding-top: 0.5rem;
     padding-bottom: 1rem;
 }

 /* Migas de pan (Breadcrumbs) */
 .breadcrumb a {
     text-decoration: none;
     color: var(--hylok-light-blue);
 }
  .breadcrumb a:hover {
     text-decoration: underline;
 }
  .breadcrumb-item.active {
     color: #6c757d; /* Color gris de Bootstrap */
 }

 /* Paginación */
 .pagination .page-link {
     color: var(--hylok-light-blue);
 }
  .pagination .page-item.active .page-link {
     background-color: var(--hylok-light-blue);
     border-color: var(--hylok-light-blue);
     color: white;
 }
   .pagination .page-item.disabled .page-link {
     color: #6c757d;
 }


/* ============================================= */
/* PÁGINA DE DETALLE DE PRODUCTO */
/* ============================================= */

.product-detail-image {
    border: 1px solid #eee;
    padding: 1rem;
    background-color: #fff;
     max-height: 400px; /* Limita la altura de la imagen principal */
     width: 100%;
     object-fit: contain;
}

.product-features li {
    margin-bottom: 0.75rem; /* Espacio entre características */
    font-size: 1.05rem;
}

.product-features i {
    width: 20px; /* Alinea los iconos */
}




/* Estilos para la página de Recursos */
.resource-card .hover-elevate {
    transition: all 0.3s ease;
    background-color: #fff;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-card:hover .hover-elevate {
    transform: translateY(-10px);
    border-color: var(--hylok-light-blue) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.resource-card i {
    color: var(--hylok-dark-blue);
    transition: color 0.3s ease;
}

.resource-card:hover i {
    color: var(--hylok-light-blue);
}



/* Estilos para la lista de catálogos */
.catalog-item h3 {
    font-family: 'Montserrat', sans-serif;
}

.catalog-item em {
    color: #f39c12; /* Color naranja/dorado para la ruta de categorías */
    font-style: italic;
    font-size: 0.85rem;
}

/* Botón VER (Verde) */
.btn-view-catalog {
    background-color: #72b01d; /* Verde similar a la imagen */
    color: white;
    border: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-view-catalog:hover {
    background-color: #5d9116;
    color: white;
}

/* Botón DESCARGAR (Azul) */
.btn-download-catalog {
    background-color: #00A4E0; /* Tu azul Hylok */
    color: white;
    border: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-download-catalog:hover {
    background-color: #008cc0;
    color: white;
}


/* Contenedor de la imagen del certificado */
.certificate-container {
    background-color: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}

.certificate-container img {
    max-height: 350px; /* Altura máxima para que todos se vean iguales */
    width: auto;
    display: block;
    margin: 0 auto;
}

.certificate-container:hover {
    transform: scale(1.03); /* Efecto de zoom ligero al pasar el mouse */
}

/* Títulos de certificados */
h5.text-primary {
    font-size: 1.1rem;
    min-height: 3rem; /* Alinea los títulos aunque tengan diferentes largos */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Widget de Chat */
#hylok-chat-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

#chat-trigger {
    width: 60px;
    height: 60px;
    background-color: var(--hylok-light-blue); /* Tu azul institucional */
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

#chat-trigger:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.chat-closed {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background-color: var(--hylok-dark-blue); /* Azul oscuro de Hylok */
}

.bot-msg p {
    border-left: 4px solid var(--hylok-light-blue);
}

.quick-replies .btn {
    font-size: 0.75rem;
    border-color: var(--hylok-light-blue);
    color: var(--hylok-dark-blue);
}


/* Estilo Enterprise para Tarjetas de Productos */
.product-card-ref {
    display: block;
    text-decoration: none !important;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 10px;
    height: 100%;
}

.product-card-ref:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--hylok-light-blue);
}

.product-image-wrapper {
    background-color: #f8f9fa; /* Fondo gris muy suave para resaltar la pieza */
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    max-width: 80%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card-ref:hover .product-image {
    transform: scale(1.15); /* Zoom suave al producto */
}

.product-title-ref {
    color: var(--hylok-dark-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 10px;
}

.btn-view-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--hylok-light-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenedor de imagen con marco blanco profesional */
.about-img-container {
    position: relative;
    padding: 15px;
    background: #ffffff;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.about-img-container:hover {
    transform: scale(1.02);
}

/* Badge Flotante basado en image_60669d.png */
.experience-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--hylok-dark-blue); /* Tu azul oscuro corporativo */
    color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 44, 94, 0.4);
    min-width: 150px;
    z-index: 5;
}

.experience-badge-float small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}



    .industry-card {
        transition: all 0.3s ease;
        border-radius: 15px;
    }
    .industry-card:hover {
        background-color: #f8f9fa;
        transform: scale(1.05);
    }
    .icon-box {
        width: 80px;
        height: 80px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--hylok-dark-blue);
        transition: 0.3s;
    }
    .industry-card:hover .icon-box {
        background: var(--hylok-dark-blue);
    }
    .industry-card:hover i {
        color: #fff;
    }
    
    
    /* --- Estilos Expert Tips --- */

.bot-expert-container {
    position: relative;
    display: inline-block;
}

.floating-bot-img {
    width: 250px;
    height: auto;
    animation: floatingBot 3s ease-in-out infinite; /* Animación de levitación */
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.15));
}

.bot-platform {
    width: 150px;
    height: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 10px auto 0;
    filter: blur(5px);
    animation: shadowPulse 3s ease-in-out infinite;
}

/* Burbuja de Diálogo Profesional */
.speech-bubble {
    border-radius: 20px;
    position: relative;
    border-left: 8px solid var(--hylok-light-blue);
}

.tech-tips-list li span {
    font-size: 1rem;
    line-height: 1.6;
}

/* Animaciones */
@keyframes floatingBot {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes shadowPulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Triángulo de la burbuja (solo visible en escritorio) */
@media (min-width: 992px) {
    .speech-bubble::before {
        content: '';
        position: absolute;
        left: -20px;
        top: 50px;
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-right: 20px solid #ffffff;
    }
}


/* ============================================= */
/* ANIMACIÓN DE GLOW (BRILLO) PARA ICONOS TÉCNICOS */
/* ============================================= */

/* Definimos la animación del pulso de luz */
@keyframes iconGlowPulse {
    from {
        /* Sombra pequeña y sutil */
        text-shadow: 0 0 2px currentColor;
        opacity: 0.85;
    }
    to {
        /* Sombra grande y difuminada para efecto de luz intensa */
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        opacity: 1;
        transform: scale(1.05); /* Un ligero aumento de tamaño */
    }
}

/* Aplicamos la animación a los iconos dentro de la lista de tips */
.tech-tips-list i {
    /*
       - glowPulse: Nombre de la animación
       - 1.8s: Duración de un ciclo completo (lento y suave)
       - infinite: Se repite por siempre
       - alternate: Va de inicio a fin y regresa (efecto respiración)
       - ease-in-out: Acelera y frena suavemente
    */
    animation: iconGlowPulse 1.8s infinite alternate ease-in-out;
    /* 'currentColor' asegura que el brillo sea amarillo para el foco, azul para el microscopio, etc. */
}

/* Ajuste específico para el foco (amarillo) para que brille más */
.tech-tips-list .fa-lightbulb.text-warning {
    filter: brightness(1.2); /* Un poco más brillante que los demás */
}

/* Altura mínima para evitar que la página salte al rotar */
.tech-tip-content {
    min-height: 100px;
}

/* Estilo de los indicadores del carrusel de tips */
#carouselTips .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

/* Animación suave de desvanecimiento entre tips */
#carouselTips .carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Mantenemos el efecto de brillo que configuramos para los iconos */
.tech-tip-content i {
    animation: iconGlowPulse 1.8s infinite alternate ease-in-out;
}


/* --- Controles del Carrusel de Tips --- */

.tip-control-prev,
.tip-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--hylok-light-blue); /* Color institucional */
    font-size: 1.5rem;
    padding: 10px;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.tip-control-prev:hover,
.tip-control-next:hover {
    opacity: 1;
    color: var(--hylok-dark-blue);
    transform: translateY(-50%) scale(1.2);
}

.tip-control-prev {
    left: 10px;
}

.tip-control-next {
    right: 10px;
}

/* Ajuste para que el texto no choque con las flechas en móviles */
@media (max-width: 576px) {
    .speech-bubble {
        padding: 3rem 2rem !important;
    }
    .tip-control-prev, .tip-control-next {
        font-size: 1.2rem;
    }
}

/* Indica que hay un mensaje de ayuda al pasar el mouse */
[data-bs-toggle="tooltip"] {
    border-bottom: 1px dotted var(--hylok-light-blue);
    cursor: help;
}


/* DISEÑO DE PORTAL DE CLIENTES */
.product-portal-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--hylok-light-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.product-portal-card .img-wrapper {
    background-color: #fff;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-portal-card h6 {
    font-size: 0.95rem;
    height: 40px; /* Asegura que los títulos se alineen */
    overflow: hidden;
}

.filter-group label {
    letter-spacing: 0.5px;
    color: var(--hylok-dark-blue);
}


/* --- Detalle de Producto Portal --- */
.main-product-img {
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-product-img:hover {
    transform: scale(1.1); /* Efecto de zoom sutil para verificar detalles de la pieza */
}

.nav-tabs .nav-link {
    color: var(--hylok-dark-blue);
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--hylok-light-blue) !important;
    border-bottom: 3px solid var(--hylok-light-blue) !important;
    background: transparent !important;
}

.specs-mini .row {
    font-size: 0.95rem;
}


/* Estilos para la Ficha Técnica Individual */
.main-product-img {
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.product-zoom-container:hover .main-product-img {
    transform: scale(1.15); /* Efecto zoom para ver detalles del metal */
}

.specs-box {
    border: 1px solid #e9ecef;
}

.nav-pills .nav-link {
    color: var(--hylok-dark-blue);
    border-radius: 0;
}

.nav-pills .nav-link.active {
    background-color: transparent !important;
    color: var(--hylok-light-blue) !important;
    border-bottom: 3px solid var(--hylok-light-blue);
}

.x-small {
    font-size: 0.75rem;
}


/* --- Carrito del Portal --- */
.cart-item {
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #fcfcfc;
}

.cart-img-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    min-width: 120px;
}

.quantity-control input:focus {
    box-shadow: none;
}

.x-small {
    font-size: 0.75rem;
}

.bg-success-subtle { background-color: #d1e7dd; }
.bg-warning-subtle { background-color: #fff3cd; }


/* Estabilizador para evitar el "brinco" */
.product-portal-card {
    height: 100%; /* Obliga a que todas midan lo mismo en la fila */
    display: flex;
    flex-direction: column;
    min-height: 420px; /* Altura mínima garantizada */
}

.img-wrapper {
    height: 180px; /* Espacio fijo para la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.img-wrapper img {
    max-height: 150px;
    width: auto;
}

/* Evita que el texto mueva el botón de detalles */
.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Efecto de luz respirando para la sección premium */
@keyframes breathe {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}
.glow-effect {
    animation: breathe 6s infinite alternate ease-in-out;
}

/* Efecto de texto hueco estilo Agencia Premium */
.text-transparent-stroke {
    color: transparent;
    -webkit-text-stroke: 2px #00A1E0; /* Borde color azul claro de Hy-Lok */
    text-stroke: 2px #00A1E0;
}

/* =========================================
   EFECTOS PREMIUM PARA TARJETAS DE SECTORES
   ========================================= */

/* Transición suave para todos los elementos */
.transition-all {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Estado normal de la tarjeta */
.premium-hover-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    cursor: default;
}

/* Qué pasa cuando le pasas el mouse a la tarjeta */
.premium-hover-card:hover {
    transform: translateY(-12px); /* La tarjeta levita */
    box-shadow: 0 1.5rem 3rem rgba(0, 161, 224, 0.15) !important; /* Sombra azulada profunda */
    border-color: rgba(0, 161, 224, 0.2); /* Borde sutil */
}

/* Qué pasa con el círculo del ícono al pasar el mouse */
.premium-hover-card:hover .icon-box {
    background-color: #00A1E0 !important; /* Se rellena de azul marino/cyan */
    transform: scale(1.1); /* El círculo crece un poquito */
}

/* Qué pasa con el ícono (adentro del círculo) al pasar el mouse */
.premium-hover-card:hover .icon-box i {
    color: #ffffff !important; /* El ícono se vuelve blanco para contrastar */
    transform: scale(1.1); /* El ícono también crece */
}

/* Estilos para el Explorador Interactivo (Pills) */
.custom-tech-pills .nav-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.custom-tech-pills .nav-link:hover {
    background-color: rgba(0, 161, 224, 0.1);
    transform: translateX(10px); /* El botón se asoma hacia la derecha al pasar el mouse */
}

/* Estado Activo del Botón */
.custom-tech-pills .nav-link.active {
    background-color: #00A1E0 !important; /* Azul Hy-Lok */
    border-color: #00A1E0;
}

.custom-tech-pills .nav-link.active .text-info {
    color: #ffffff !important; /* Los íconos se vuelven blancos */
}

.custom-tech-pills .nav-link.active .text-white-50 {
    color: rgba(255,255,255,0.8) !important;
}

.footer-link {
    transition: color 0.2s ease-in-out;
}
.footer-link:hover {
    color: #00A1E0 !important; /* Se pintan del azul cyan de tu marca */
}

/* =======================================================
   WHATSAPP FLOTANTE CON GLOBO DE TEXTO INVITACIONAL
   ======================================================= */

/* =======================================================
   ANIMACIÓN UNIFICADA DE ALTA ATENCIÓN PARA WHATSAPP
   ======================================================= */

/* Keyframes maestros (sin cambios) */
@keyframes whatsapp-master-effect {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(1); }
    35% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.03); }
    70% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
    
    /* Sacudida (Shake) */
    75% { transform: scale(1.1) rotate(-10deg); }
    78% { transform: scale(1.1) rotate(10deg); }
    81% { transform: scale(1.1) rotate(-10deg); }
    84% { transform: scale(1.1) rotate(10deg); }
    87% { transform: scale(1.1) rotate(-10deg); }
    90% { transform: scale(1.1) rotate(0deg); }
    
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

/* Contenedor principal: POSICIÓN ESTÁNDAR (sin robot) */
.hylok-whatsapp-flotante {
    position: fixed;
    bottom: 30px; /* Bajar de 200px a 30px (posición flotante estándar) */
    right: 40px;  
    z-index: 9999; 
}

/* El botón verde circular */
.hylok-whatsapp-flotante .whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366; 
    color: #ffffff;
    font-size: 35px; 
    border: 3px solid #ffffff; 
    border-radius: 50%;
    position: relative;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: whatsapp-master-effect 4s infinite ease-in-out; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* EL GLOBO DE TEXTO (Estilo burbuja) */
.hylok-whatsapp-flotante .whatsapp-badge-text {
    position: absolute;
    right: 75px; 
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff; 
    color: #002C5E; 
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap; 
    padding: 8px 16px;
    border-radius: 20px; 
    border: 1px solid rgba(0, 44, 94, 0.1);
    pointer-events: none; 
    transition: all 0.3s ease;
}

/* Flecha de la burbuja */
.hylok-whatsapp-flotante .whatsapp-badge-text::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

/* Hovers (sin cambios) */
.hylok-whatsapp-flotante:hover .whatsapp-btn {
    animation-play-state: paused;
    background-color: #002C5E; 
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 44, 94, 0.4) !important;
}
.hylok-whatsapp-flotante:hover .whatsapp-badge-text {
    background-color: #00A1E0; 
    color: #ffffff; 
    border-color: #00A1E0;
}
.hylok-whatsapp-flotante:hover .whatsapp-badge-text::after {
    border-color: transparent transparent transparent #00A1E0;
}

/* =======================================================
   FIX MÓVIL: AJUSTES PARA PANTALLAS PEQUEÑAS (REPARACIÓN CELULAR)
   ======================================================= */
@media (max-width: 768px) {
    .hylok-whatsapp-flotante {
        bottom: 20px !important; 
        right: 20px !important;  
    }

    .hylok-whatsapp-flotante .whatsapp-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 32px !important; 
        border-width: 2px !important;
    }

    .hylok-whatsapp-flotante .whatsapp-badge-text {
        display: none !important; 
    }
}

/* =======================================================
   ESTILOS PREMIUM MODO OSCURO (INSPIRADO EN RIVE.APP)
   ======================================================= */

/* 1. Efecto de contorno transparente (Stroke) para el título cyan */
.text-transparent-stroke-cyan {
    color: transparent;
    -webkit-text-stroke: 1.5px #00A1E0;
    text-stroke: 1.5px #00A1E0;
}

/* 2. Botón Principal (Blanco sólido, cambia al azul cyan de la marca) */
.btn-rive-primary {
    background-color: #ffffff;
    color: #0b111e !important;
    border: 1px solid #ffffff;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-rive-primary:hover {
    background-color: #00A1E0;
    border-color: #00A1E0;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 161, 224, 0.4);
}

/* 3. Botón Secundario (Fondo translúcido con borde sutil, se ilumina en hover) */
.btn-rive-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-rive-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* 4. Contenedor del Video Animado con Perspectiva 3D */
.rive-mockup-container {
    background: linear-gradient(145deg, rgba(20, 30, 54, 0.6) 0%, rgba(5, 10, 20, 0.8) 100%);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Increíble efecto al pasar el mouse: el video rota ligeramente hacia el cursor */
.rive-mockup-container:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) scale(1.01);
    border-color: rgba(0, 161, 224, 0.35) !important;
    box-shadow: 0 25px 50px rgba(0, 161, 224, 0.15) !important;
}

/* 5. Animación de respiración sutil para el halo de luz trasera */
@keyframes glow-breathe {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}
.animate-glow-bg {
    animation: glow-breathe 8s infinite alternate ease-in-out;
}

/* Efecto hover para enlaces del footer oscuro */
.custom-footer-link {
    transition: all 0.3s ease;
}
.custom-footer-link:hover {
    color: #0dcaf0 !important; /* Color Info (Cyan) para que combine con los íconos */
    text-decoration: underline !important;
}

/* Espacio para que el menú flotante no tape el contenido */
body {
    padding-top: 90px; 
}