/* Reset and general styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Desactiva el resaltado azul */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333333;
}
/* Header */
.header {
    background: linear-gradient(90deg, #02366e 0%, #000f1d 100%); /* Degradado de azul oscuro a azul medio */
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --header-height: 60px; /* Definir altura del header */
    
}


/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100px;
    height: auto;
    display: block;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #FFFFFF;
}

/* Container */
.container {
    
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 0; /* Eliminar margen inferior para reducir espacio */
    
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Para permitir posicionamiento absoluto en móvil */
    flex-wrap: wrap; /* Permitir que los elementos se envuelvan si es necesario */
    gap: 10px; /* Espacio entre elementos */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100px;
    height: auto;
    display: block;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #FFFFFF;
}
/* Responsive Design */
@media (max-width: 768px) {

    .header {
        padding: 10px 0; /* Aumentar padding para más espacio */
        --header-height: 10px; /* Ajustar altura en móvil para incluir margen */
        
    }
    .header-content {
        display: flex;
        align-items: center;
        position: relative;
        margin-top: 25px; /* Margen superior consistente */
        justify-content: space-between; /* Distribuir elementos */
        padding: 0 10px;
        flex-wrap: nowrap; /* Evitar que los elementos se envuelvan */
        gap: 0; /* Eliminar espacio innecesario */
        height: 80px; /* Asegurar espacio suficiente */
        margin-top: 0; /* Eliminar margen superior innecesario */
    }
    /* Ajustes adicionales para evitar conflictos */
    .header-content > * {
        flex-shrink: 0; /* Evitar que los elementos se compriman */
    }

    .logo {
        position: absolute; /* Mantener centrado */
        left: 50%;
        transform: translateX(-50%); /* Centra el logo */
        order: 2; /* Centro lógico */
        padding: 0;
        z-index: 1; /* Asegurar que no interfiera con otros elementos */
        
    }

    .logo-img {
        width: 100px;
    }

    .header-actions {
        align-items: center;
        position: static; /* Quitar posicionamiento absoluto */
        display: flex;
        order: 1; /* Asegurar que esté a la izquierda */
    }

    .menu-toggle {
        display: flex; /* Mostrar en móvil */
        order: 1; /* A la izquierda */
        margin-left: 0px; /* Pequeño ajuste para alinear visualmente */
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #02366e; /* Mantener color del header */
        padding: 10px 0;
        z-index: 1000;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        align-items: center;
    }

    .nav-menu.active {
        display: block;
    }
}

@media (min-width: 769px) {
    
    .product-page-body .header {
        position: static;
        box-shadow: none;
    }
    .product-page-body .product-page {
        margin-top: 20px;
    }

    .nav-menu {
        width: 100%;
        max-height: 55px; 
    }

    .nav-menu ul {
        display: flex;
        justify-content: center; /* Centra el menú en el header */
        align-items: center;
        align-items: flex-start; /* 🔹 alinea el contenido arriba */
        width: 100%;
        
    }

    .nav-menu ul li {
    flex: 1; /* cada ítem ocupa el mismo ancho */
    text-align: center; /* texto centrado horizontalmente */
    margin-top: 0;
    display: flex;           /* 🔹 para controlar alineación interna */
    align-items: flex-start; /* 🔹 empuja el texto hacia arriba */
    justify-content: center; /* centra solo horizontalmente */
}


    .nav-menu ul li a {
    display: block;
    padding: 1px 0;  /* 🔹 menos padding para que no agrande el header */
    line-height: 1.2; /* 🔹 compacta un poco el interlineado */
}
/* Estilos generales de los submenús */
.nav-menu ul li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #02366e;
    min-width: 200px;
    z-index: 999;
}

/* 🔹 Para los submenús de los últimos elementos */
.nav-menu ul li:nth-last-child(-n+2) .submenu {
    right: 0;
    left: auto;
}



}


    
    
    
    





.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 100px;
    height: auto;
    display: block;
}

.search-bar {
    position: relative;
    flex-grow: 1;
    margin: 0 10px;
    display: flex;
    align-items: center;
    
}

.search-bar-input-container {
    display: flex;
    width: 100%;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-btn {
    padding: 10px;
    background-color: #FF6200;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #E55A00;
}

.search-btn .search-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.search-bar input:focus {
    outline: none;
    border-color: #FF6200;
}

/* Suggestions */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 40px);
    background-color: #01162c;
    border: 0.5px solid #000000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.suggestions div {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 0.5px solid #050d19;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease;
}

.suggestions div:last-child {
    border-bottom: none;
}

.suggestions div:hover {
    background-color: #FF6200;
}

.suggestions div.selected {
    background-color: #100a43;
}


.user-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-options a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #FFFFFF;
    position: relative;
}

.user-options .icon {
    font-size: 20px;
}

.user-options .label {
    font-size: 12px;
    display: block;
}

.user-options a:hover {
    color: #FF6200;
}

.nav-menu {
    margin-top: 5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #FF6200;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Banner Carousel */
.banner {
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    display: flex;
    justify-content: center;
}

.carousel {
    position: relative;
    width: fit-content;
    max-width: 100%;
    min-width: 1500px;
    margin: 0 auto;
}

.carousel-slides {
    position: relative;
    padding-top: 41.67%;
    min-height: 250px;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit:contain; /* Ajusta según el diseño de tu carrusel */
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6200;
    border: none;
    padding: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0);
}

.carousel-btn.prev {
    left: 50px;
}

.carousel-btn.next {
    right: 50px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0);
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    background-color: #FF6200;
}

/* Catalog */
.catalog {
    margin: 20px 0;
    padding: 0; /* Eliminar padding para que el contenido llegue al borde */
}

.catalog h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333333;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Mantener el diseño de tarjetas */
    gap: 20px;
    padding: 20px 0; /* Padding solo vertical */
    width: 100%; /* Ocupar todo el ancho disponible */
    max-width: 100%; /* Sin restricciones de ancho */
    margin: 0; /* Eliminar márgenes */
}



/* Tarjetas de productos */
.product-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px; /* Altura fija para consistencia */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    overflow: hidden; /* Asegura que el contenido no se desborde */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Asegura que padding no afecte el tamaño total */
}

/* Contenedor de texto */
.product-card .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    padding-top: 10px;
    overflow: hidden; /* Asegura que el contenido no se desborde */
}
.product-card .product-price {
    font-size: 16px; /* Reducir tamaño para evitar desbordamiento */
    font-weight: bold;
    color: #02366e;
    text-align: center;
    object-fit: contain; /* Mantiene proporciones sin distorsión */
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Evitar que el precio se divida en varias líneas */
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-card a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    flex: 1; /* Permite que el enlace ocupe todo el espacio */
}

/* Imagen de la tarjeta */
.product-card img {
    width: 100%;
    max-width: 100%; /* Asegura que no se desborde horizontalmente */
    max-height: 150px; /* Altura máxima en escritorio */
    object-fit: contain; /* Mantiene proporciones sin distorsión */
    display: block;
    margin: 0 auto;
}

/* Título del producto */
.product-card h3 {
    font-size: 16px;
    margin: 8px 0;
    color: #333333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limitar a 2 líneas */
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em; /* Asegura que el texto no exceda el espacio */
}

/* Código del producto */
.product-card .product-code {
    font-size: 14px;
    color: #ff6200;
    margin: 0 0 8px 0;
}



.product-card h3 a {
    text-decoration: none;
    color: inherit;
}

.product-card h3 a:hover {
    color: #FF6200;
}

/* Botón "Ver más" */
.product-card .buy-btn {
    background: linear-gradient(90deg, #02366e 0%, #002344 100%); /* Degradado de azul oscuro a azul medio */
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    margin-top: auto; /* Empuja el botón al fondo */
    font-size: 14px;
    text-align: center;
}
.buy-btn:hover {
    background: linear-gradient(90deg, #ff6200 0%, #863400 100%); /* Degradado de azul oscuro a azul medio */
    transition: 1s;
}



@media (max-width: 768px) {
    .product-card .product-price {
        font-size: 14px;
    }
    .product-card .product-price-before-tax {
        font-size: 12px;
    }

    .product-grid.grid-view .product-card .product-price {
        font-size: 13px;
    }

    .product-grid.grid-view .product-card .product-price-before-tax {
        font-size: 11px;
    }
}
.buy-btn {
    background-color: #FF6200;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none !important;
    display: inline-block;
}

.buy-btn:hover {
    background-color: #E55A00;
}

/* Product Page - Mercado Libre Style */
.product-page {
    margin-top: 0;
    padding-top: 20px;
}

.product-main {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.image-container {
    flex: 0 0 70%;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
}



/* Modificar el header solo en la página index */
.index-page .header {
    transform: translateY(0); /* Header visible por defecto */
}

/* Clase para ocultar el header */
.index-page .header.hidden {
    transform: translateY(50%); /* Mueve el header fuera de la pantalla hacia arriba */
    transition: transform 0.3s ease;
}
/* Header parcialmente visible (scroll hacia arriba) */
.index-page .header.visible {
    transform: translateY(0%); /* Muestra solo el 40% superior del header */
    transition: transform 0.3s ease;
}



/* Modificar el header solo en la página de producto */
.product-page .header {
    transform: translateY(0); /* Header visible por defecto */
}

/* Clase para ocultar el header */
.product-page .header.hidden {
    transform: translateY(50%); /* Mueve el header fuera de la pantalla hacia arriba */
    transition: transform 0.3s ease;
}
/* Header parcialmente visible (scroll hacia arriba) */
.product-page .header.visible {
    transform: translateY(0%); /* Muestra solo el 40% superior del header */
    transition: transform 0.3s ease;
}

.product-images {
    display: flex;
    gap: 20px;
}

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
}

.thumbnail-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail-gallery img:hover {
    border-color: #FF6200;
}

.thumbnail-gallery img.active {
    border-color: #FF6200;
}

.main-image-wrapper {
    position: relative;
    flex: 1;
    padding-top: 100%;
    width: 100%;
    height: 400px;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    cursor: pointer;
}

.product-page .product-price {
font-size: 1.5rem;
    color: #02366e;
    text-align: left;
    margin: 10px 0;
    font-weight: bold; /* Opcional para destacar el código */
    
}
.product-page .product-code {
font-size: 0.9rem;
    color: #02366e6a;
    text-align: left;
    font-weight: bold;

}

.product-page .product-stock-sucursal {
font-size: 1rem;
    color: #001e3d9d;
    text-align: left;
    margin: 10px 0; /* Espaciado */
    font-weight: bold;

}
.product-page .product-stock-deposito {
font-size: 0.8rem;
    color: #001e3d9d;
    text-align: left;
    margin: 5px 0; /* Menos espaciado */
    font-weight: bold;

}
@media (min-width: 769px) {
    .product-page .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #080808;
        border: none;
        padding: 8px;
        width: 32px;
        height: 32px;
        cursor: pointer;
        font-size: 16px;
        z-index: 2;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        
        opacity: 0;
    }
    .product-page .main-image-wrapper:hover .carousel-btn {
        opacity: 0.7;
    }
    .product-page .carousel-btn:hover {
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 1;
    }
    .product-page .carousel-btn.prev {
        left: 15px;
    }
    .product-page .carousel-btn.next {
        right: 15px;
    }
    .image-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        
    }
    .image-modal.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    .modal-content {
        position: relative;
        max-width: 95%;
        max-height: 95vh;
        width: auto;
        height: auto;
    }
    #modal-image {
        width: 100%;
        height: auto;
        max-height: 90vh;
        object-fit: contain;
        display: block;
        border-radius: 8px;
        
    }
    
    .modal-close {
        position: absolute;
        top: 20px;
        right: -40px;
        color: #ff6200;
        font-size: 40px;
        cursor: pointer;
        z-index: 2100;
    }
    .modal-btn {
        position: absolute;
        top: 50%;
        width: 32px;
        height: 32px;
        background: none; /* Eliminar fondo */
        color: #ff6200;
        border: none;
        padding: 15px;
        cursor: pointer;
        font-size: 24px; /* Tamaño de la flecha */
        border-radius: 50%;
        z-index: 2100;
    }
    .modal-btn.prev {
        left: -40px;
    }
    .modal-btn.next {
        right: -40px;
    }
    
}

@media (max-width: 768px) {
    .product-page .carousel-btn {
        display: none !important;
    }

 /* Habilitar el modal en móvil */
    .image-modal {
        display: none; /* Cambiado de display: none !important para permitir activación con JS */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .image-modal.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        position: relative;
        max-width: 95%;
        max-height: 95vh;
        width: auto;
        height: auto;
    }

    #modal-image {
        width: 100%;
        height: auto;
        max-height: 90vh;
        object-fit: contain;
        display: block;
        border-radius: 8px;
        transform: scale(1);
        transition: transform 0.3s ease;
    }

    #modal-image:hover {
        transform: scale(1.2);
        cursor: zoom-in;
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px; /* Ajustado para mejor visibilidad en móvil */
        color: #ff6200;
        background: none; /* Eliminar fondo */
        font-size: 30px; /* Ligeramente más pequeño para móvil */
        cursor: pointer;
        z-index: 2100;
    }

    .modal-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #ff6200;
        background: none; /* Eliminar fondo */
        border: none;
        padding: 10px;
        width: 40px; /* Ligeramente más pequeño para móvil */
        height: 40px;
        cursor: pointer;
        font-size: 30px;
        border-radius: 50%;
        z-index: 2100;
    }

    .modal-btn.prev {
        left: 10px; /* Ajustado para móvil */
    }

    .modal-btn.next {
        right: 10px; /* Ajustado para móvil */
    }

    
}

/* Responsividad para la galería de imágenes */
@media (max-width: 768px) {
    .product-images {
        flex-direction: column;
    }
    .thumbnail-gallery {
        flex-direction: row;
        width: auto;
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .thumbnail-gallery img {
        width: 50px;
        height: 50px;
    }
    .main-image-wrapper {
        padding-top: 100%;
    }
}

.info-container {
    flex: 0 0 30%;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
}

.product-info h1 {
    font-size: 28px;
    line-height: 1.2;
    color: #333333;
    margin-bottom: 15px;
}

.stock {
    color: #ff6200;
    font-size: 16px;
    margin-bottom: 20px;
}

.buy-btn {
    background: linear-gradient(90deg, #02366e 0%, #002344 100%); /* Degradado de azul oscuro a azul medio */
    color: white;
    padding: 15px;
    width: 100%;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    display: block;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.buy-btn:hover {
    background-color: #E55A00;
}

.shipping p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-info .product-description {
    margin-top: 20px;
}

.product-info .product-description h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333333;
}

.product-info .product-description p {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.product-features {
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
}

.product-features h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.product-features ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #666666;
}

.product-features li {
    margin-bottom: 5px;
    font-size: 14px;
}

.product-description {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-description h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 15px;
}

.product-description ul {
    list-style: none;
    margin-bottom: 30px;
}

.product-description li {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.product-description p#product-description {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    white-space: pre-line;
}

.product-description p#product-description strong {
    color: #000000;
}

.product-description p#product-description em {
    color: #FF6200;
}

.product-description p#product-description u {
    text-decoration: underline wavy;
}

.product-description p#product-description mark {
    background-color: #FFD700;
}

.product-description p#product-description s {
    color: #999999;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #02366e 0%, #000f1d 100%); /* Degradado de azul oscuro a azul medio */
    color: #FFFFFF;
    padding: 0px 0;
    text-align: center;
    margin-top: auto; /* Pega el footer al final del body */
    position: relative;
    z-index: 995;
}

.footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer a:hover {
    color: #FF6200;
}

/* Botón flotante para volver arriba */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #02366e88;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    
}
/* Ajustar .scroll-to-top para no superponer el footer */
.scroll-to-top {
    bottom: 80px;
    right: 20px;
    z-index: 1000; /* Igual que .filter-float */
    transition: opacity 0.3s ease, background-color 0.3s ease;
    transition: 2s;
    
}
.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background-color: #02366e88;
    opacity: 1;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

.scroll-to-top {
    display: none;
}



/* Contact Page */
.contact-page {
    margin-top: var(--header-height);
    padding-top: 20px;
}

.contact-section {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-section h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    font-size: 20px;
    color: #333333;
 
}

.contact-item p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.contact-item a {
    color: #FF6200;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ffa872;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

.contact-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #F8F8F8;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #FF6200;
    outline: none;
}

.contact-form .buy-btn {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

/* Legal Page */
.legal-page {
    margin-top: var(--header-height);
    padding-top: 20px;
}

.legal-section {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 15px;
}

.legal-section h3 {
    font-size: 18px;
    color: #333333;
    margin: 20px 0 10px;
}

.legal-section p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-section ul li {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.legal-section a {
    color: #FF6200;
    text-decoration: none;
}

.legal-section a:hover {
    color: #E55A00;
}

/* Responsive Design */
@media (max-width: 768px) {
    

   
     /* Compensar el espacio del menú hamburguesa con un elemento vacío */
    .header-content::after {
        content: '';
        width: 40px; /* Mismo ancho que .menu-toggle */
        height: 40px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-img {
        width: 80px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .user-options {
        display: flex;
        gap: 5px;
    }

    .user-options a {
        flex-direction: row;
        gap: 0;
        padding: 5px;
        position: relative;
    }

    .user-options .icon {
        font-size: 18px;
    }

    .user-options .label {
        display: none;
    }

    .user-options a::after {
        content: attr(title);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #FFFFFF;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease;
        z-index: 1000;
    }

    .user-options a:hover::after {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: block;
        font-size: 20px;
        padding: 5px;
    }

    .search-bar {
        width: calc(100% - 60px); /* Compensar el espacio del menú y un margen simétrico */
        margin: 0 auto; /* Centrar horizontalmente */
        padding: 5; /* Eliminar padding para evitar desajuste */
        margin-top: 40px; /* Espacio debajo del logo */
        margin-bottom: 5px;
        flex-grow: 0; /* Evitar que crezca innecesariamente */
        max-width: 100%; /* Asegurar que no se desborde */
    }

    .search-bar-input-container {
        width: 100%;
    }

    .search-bar input {
        width: calc(100% - 30px);
        font-size: 14px;
        padding: 8px;
        border-radius: 4px 0 0 4px;
    }

    .search-btn {
        padding: 8px;
        border-radius: 0 4px 4px 0;
    }

    .search-btn .search-icon {
        width: 18px;
        height: 18px;
    }

    .suggestions {
        width: 100%;
        max-height: 200px;
        font-size: 14px;
        border-radius: 0 0 4px 4px;
        margin-top: 0;
        left: 0;
        z-index: 1000;
    }

    .suggestions div {
        padding: 8px 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; /* Ajustado para comenzar justo al final del header */
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #02366e 0%, #000f1d 100%); /* Degradado de azul oscuro a azul medio */
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        text-align: left;
        padding: 0 15px;
    }

    .nav-menu li {
        padding: 10px 0;
        border-bottom: 1px solid #1a4971;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 16px;
        color: #FFFFFF;
        display: block;
    }

    .nav-menu a:hover {
        color: #FF6200;
    }

    .banner {
        margin-top: 0;
        padding-top: 10px;
    }

    .carousel {
        min-width: 100%;
    }

    .carousel-slides {
        padding-top: 100%;
        min-height: 300px;
    }

    .carousel-btn {
        display: none;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .slide img {
        object-fit: contain;
        max-height: 250px;
    }

    .product-page {
        margin-top: 0;
    }

    .catalog {
        margin-top: 0;
    }

    .contact-page {
        margin-top: 0;

    }

    .contact-section {
        padding: 20px;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .contact-section p {
        font-size: 14px;
    }

    .contact-item h3 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 13px;
    }

    .legal-page {
        margin-top: 0;
        padding-top: 10px;
    }

    .legal-section {
        padding: 20px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section h3 {
        font-size: 16px;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 13px;
    }

    .product-main {
        flex-direction: column;
        gap: 20px;
    }

    .image-container {
        flex: 1;
    }

    .info-container {
        flex: 1;
    }

    .product-info h1 {
        font-size: 24px;
    }

    .stock {
        font-size: 14px;
    }

    .buy-btn {
        padding: 12px;
        font-size: 14px;
    }

    .shipping p {
        font-size: 13px;
    }

    .product-info .product-description h2 {
        font-size: 16px;
    }

    .product-info .product-description p {
        font-size: 13px;
    }

    .product-features {
        padding: 20px;
    }

    .product-features h2 {
        font-size: 18px;
    }

    .product-features li {
        font-size: 13px;
    }

    .product-description {
        padding: 20px;
    }

    .product-description h2 {
        font-size: 20px;
    }

    .product-description li,
    .product-description p#product-description {
        font-size: 14px;
    }
}

/* Estilos para el menú desplegable en escritorio */
.nav-menu .has-submenu {
    position: relative;
}

.nav-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
   background: linear-gradient(90deg, #02366e 0%, #000f1d 100%); /* Degradado de azul oscuro a azul medio */
    min-width: 200px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-menu .has-submenu:hover .submenu {
    display: block;
}

.nav-menu .submenu li {
    padding: 10px 15px;
    border-bottom: 0.5px solid #4885e8;
}

.nav-menu .submenu li:last-child {
    border-bottom: none;
}

.nav-menu .submenu a {
    color: #FFFFFF;
    font-size: 14px;
    display: block;
}

.nav-menu .submenu a:hover {
    color: #FF6200;
}

/* Estilos para el menú colapsable en móvil */
@media (max-width: 768px) {
    /* ... otros estilos existentes ... */

    /* Asegurar que .nav-menu sea visible cuando está activo */
    .nav-menu {
        display: none;
        position: fixed; /* Cambiado de absolute a fixed para mejor control */
        top: var(--header-height); /* Usa la variable del header height */
        left: 0;
        width: 100%;
        background-color: #02366e;
        padding: 10px 0;
        z-index: 1000;
        max-height: calc(100vh - var(--header-height) - 80px); /* Limita la altura */
        overflow-y: auto; /* Habilita el desplazamiento vertical */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        scrollbar-width: thin; /* Para Firefox */
        scrollbar-color: #FF6200 #1a4971; /* Color de la barra */
    }
    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: left;
        padding: 1 7px;
    }

    .nav-menu li {
        padding: 1px 0;
        border-bottom: 0.3px solid #1a4971;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

   /* Estilos generales para el menú (afuera del media query) */
.nav-menu a {
    color: #FFFFFF; /* Color inicial: blanco */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease; /* Suavizar el cambio de color */
}

    .nav-menu a:hover {
        color: #fffefd;
    }
    /* Estilos para categorías con submenús en móvil */
    .nav-menu .has-submenu {
        position: relative;
    }

    /* Indicador visual (flecha) para categorías con submenús */
    .nav-menu .has-submenu > a::after {
        content: '↵';
        position: absolute;
        right: 15px;
        font-size: 20px;
        transition: transform 0.5s ease;
    }
    .nav-menu .has-submenu.active > a::after {
        transform: rotate(180deg);
        color: #FF6200; /* Color cuando el submenú está abierto */
        transition: color 0.5s ease;
    }

    /* Estilos para el submenú en móvil */
    .nav-menu .submenu {
        display: none !important; /* Aumentar prioridad temporalmente */
        position: static;
        background-color: #36618f00;
        padding: 6 0 0 6px;
        box-shadow: none;
        border-radius: 0;
    }
    .nav-menu .submenu.active {
        display: block !important; /* Aumentar prioridad temporalmente */
    }

    .nav-menu .submenu li {
        padding: 10px 2;
        border-bottom: 0.1px solid #71a1ee42;
    }

    .nav-menu .submenu li:last-child {
        border-bottom: none;
    }

    .nav-menu .submenu a {
        font-size: 11.5px;
        color: #b1b1b1;
    }

    .nav-menu .submenu a:hover {
        color: #FF6200;
    }

    .nav-menu .has-submenu.active {
        background-color: #032747a6; /* Fondo más oscuro para la categoría activa */
        transition: background-color 0.5s ease; /* Transición suave */
    }

    
}

.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: #666666;
}
.breadcrumbs a {
    color: #FF6200;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #E55A00;
}
.breadcrumbs span {
    color: #333333;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-left: 0; /* Asegurar que no haya margen izquierdo */
    margin-right: 0; /* Asegurar que no haya margen derecho */
    width: 100%; /* Ocupar todo el ancho disponible */
    max-width: 100%; /* Evitar restricciones de ancho */
}

/* Filter Panel */
.filter-panel {
    flex: 0 0 250px; /* Ancho fijo */
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-left: 0; /* Asegurar que esté pegado al borde izquierdo */
    position: relative; /* Para posicionamiento interno si es necesario */
}

/* Results */
.results {
    flex: 1; /* Ocupa todo el espacio restante */
    margin-left: 0; /* Sin margen adicional */
    width: 100%; /* Asegurar que ocupe el ancho disponible */
}

.filter-toggle {
    display: none;
    background-color: #02366e;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
}


.filters {
    display:flex;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
}

.filter-group select:focus {
    border-color: #FF6200;
    outline: none;
}

.apply-filters {
    width: 100%;
    background-color: #FF6200;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.apply-filters:hover {
    background-color: #E55A00;
}


.filter-panel {
    flex: 0 0 250px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.results {
    flex: 1;
}

.filter-toggle {
    display: none;
    background-color: #02366e;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 50px;
    text-align: left;
}

.filter-toggle:hover {
    background-color: #FF6200;
}

.filters {
    display: block;
}

.filters h3 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
}

.filter-group select:focus {
    border-color: #FF6200;
    outline: none;
}

.apply-filters {
    width: 100%;
    background-color: #FF6200;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.apply-filters:hover {
    background-color: #E55A00;
}

/* Responsividad */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .filter-panel {
        flex: 1; /* Ocupa todo el ancho en móvil */
        margin-left: 0; /* Sin margen izquierdo */
        margin-right: 0; /* Sin margen derecho */
        padding: 15px; /* Reducir padding en móvil */
    }
    .results {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .product-grid {
        padding: 10px 0; /* Ajustar padding en móvil */
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .filter-toggle {
        display: block;
    }

    .filters {
        display: none;
    }

    .filters.active {
        display: block;
    }
    .product-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Ajuste para mosaico en móvil */
    }

    .product-grid.list-view {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.no-results img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    color: #333333;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .no-results {
        padding: 20px;
    }

    .no-results img {
        max-width: 100px;
    }

    .no-results p {
        font-size: 16px;
    }
}   
/* Filter Panel */
.filter-panel {
    flex: 0 0 250px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.filters h3 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
}

.filter-group select:focus {
    border-color: #FF6200;
    outline: none;
}

/* Collapsible Filters */
.collapsible-filter {
    margin-bottom: 15px;
}

.collapsible-header {
    font-size: 14px;
    color: #02366e;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.collapsible-header::after {
    content: '▼';
    position: absolute;
    right: 0;
    font-size: 12px;
    transition: transform 0.3s;
}

.collapsible-header.active::after {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 5px 0;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333333;
    font-family: 'Roboto', sans-serif;
}

.filter-checkbox {
    margin-right: 8px;
    accent-color: #FF6200;
}

.apply-filters {
    width: 100%;
    background-color: #FF6200;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.apply-filters:hover {
    background-color: #E55A00;
}

/* Responsividad */
@media (max-width: 768px) {
    .filter-panel {
        flex: 1;
    }

    .filter-toggle {
        display: block;
        background-color: #02366e;
        color: #FFFFFF;
        border: none;
        padding: 10px;
        width: 100%;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
        margin-bottom: 10px;
        text-align: left;
        font-family: 'Roboto', sans-serif;
    }

    .filter-toggle:hover {
        background-color: #02366e;
    }

    .filters {
        display: none;
    }

    .filters.active {
        display: block;
    }

    .collapsible-content {
        padding: 5px 0;
    }

    .filter-option {
        font-size: 13px;
    }
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.clear-filters {
    width: 100%;
    background-color: #02366e;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.clear-filters:hover {
    background-color: #012A5E;
}

/* Footer (agregar z-index para evitar superposición) */
.footer {
    background-color: #005B99;
    color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 995; /* Por encima de .filters, por debajo de .filter-float */
}

/* Botón flotante para filtros en móvil */
.filter-float {
    display: none !important; /* Oculto por defecto, visible en móvil */
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #02366e88;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-float:hover {
    background-color: #02366e88;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filter-float.active {
    transform: scale(1.2); /* Aumenta el tamaño al activar */
    background-color: #FF6200; /* Cambia el color al activar */
    animation: pulse 0.6s ease-in-out infinite; /* Efecto de pulsación */
}

@keyframes pulse {
    0% {
        transform: scale(1.2);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}



/* Animaciones para el panel de filtros en móvil */
@media (max-width: 768px) {
    

    .filter-toggle {
        display: none; /* Ocultar .filter-toggle en móvil */
    }

    .filter-float {
        display: flex !important; /* Mostrar botón flotante en móvil */
    }

    .filters {
        display: block; /* Asegurar que el elemento esté en el DOM */
        position: fixed;
        bottom: 70px; /* Justo encima del botón flotante */
        left: 20px;
        width: 75%;
        max-height: 400px;
        background-color: #FFFFFF;
        z-index: 1000; /* Debajo de .filter-float, encima de otros elementos */
        transform: translateY(50px) scale(0.1); /* Inicia pequeño y desplazado */
        opacity: 0; /* Inicia invisible */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        padding: 10px;
        transform-origin: bottom left; /* Punto de origen para el escalado */
    }

    .filters.active {
        transform: translateY(10px) scale(1); /* Aparece escalado y desplazado */
        opacity: 1; /* Completamente visible */
    }

    /* Ajustar contenido del panel para móvil */
    .filters h3 {
        font-size: 1.1rem;
        margin: 8px 10px;
    }

    .filter-group {
        margin: 8px 12px;
    }

    .filter-group h4 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .filter-option {
        display: flex;
        align-items: center;
        margin-bottom: 5px;
        font-size: 0.85rem;
    }

    .filter-option input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .filter-buttons {
        margin: 8px 12px;
    }

    .clear-filters {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    #filter-marca {
        font-size: 0.85rem;
        padding: 5px;
    }
}



/* View Toggle Buttons */
.view-toggle {
    display: none; /* Oculto por defecto, visible solo en móvil */
    margin-bottom: 15px;
    text-align: right;
}

.view-btn {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.view-btn svg {
    display: block;
    stroke: #333333;
}

.view-btn:hover {
    background-color: #F5F5F5;
    border-color: #FF6200;
}

.view-btn.active {
    background-color: #FF6200;
    border-color: #FF6200;
}

.view-btn.active svg {
    stroke: #FFFFFF;
}

/* Ajustes para product-grid y product-card en móvil */
@media (max-width: 768px) {
    .view-toggle {
        display: block; /* Mostrar botones en móvil */
    }

    .product-grid {
        display: flex;
        flex-direction: column; /* Por defecto, vista en lista */
        align-items: center; /* Centra las tarjetas horizontalmente */
        gap: 15px;
    }

    .product-grid.grid-view {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Mosaico en móvil */
        gap: 10px;
        align-items: center; /* Centra las tarjetas en el grid */
    }

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center; /* Alinea elementos internos a la izquierda */
        gap: 10px;
        padding: 10px;
        width: 90%; /* Limita el ancho para centrado visual */
        max-width: 400px; /* Máximo ancho para evitar estiramiento */
        margin: 0 auto; /* Centra la tarjeta horizontalmente */
        box-sizing: border-box;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .product-grid.grid-view .product-card {
        padding: 8px;
    }

    .product-card img {
        max-height: 150px; /* Reducir tamaño de imagen en móvil */
        width: auto;
    }

    .product-grid.grid-view .product-card img {
        max-height: 100px; /* Ajuste para mosaico */
    }

      .product-card h3 {
        font-size: 14px;
        margin: 8px 0;
        text-align: center;
        white-space: normal; /* Permitir saltos de línea */
        overflow: hidden;
        line-height: 1.4; /* Mejorar legibilidad */
        max-height: 4.8em; /* Hasta 3 líneas (1.4em * 3) */
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limitar a 3 líneas */
        -webkit-box-orient: vertical;
    }
    
     .product-grid.grid-view .product-card h3 {
        font-size: 13px;
        max-height: 4.2em; /* Ajuste para mosaico, 3 líneas */
        -webkit-line-clamp: 3;
    }

     .product-card .product-code {
        font-size: 12px;
        color: #ff6200;
        margin-bottom: 8px;
        text-align: center;
    }

    .product-grid.grid-view .product-card .product-code {
        font-size: 11px;
    }

    .product-card .buy-btn {
        font-size: 13px;
        padding: 8px;
        width: 100%;
        max-width: 150px;
        align-self: center;
        background: linear-gradient(90deg, #02366e 0%, #002344 100%); /* Degradado de azul oscuro a azul medio */
        color: #FFFFFF;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .product-grid.grid-view .product-card .buy-btn {
        font-size: 12px;
        padding: 6px;
    }

    /* Ajustes para tarjetas en vista lista */
    .product-grid.list-view .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center; /* Alinea elementos internos a la izquierda */
        gap: 10px;
        padding: 10px;
        width: 90%; /* Limita el ancho para centrado visual */
        max-width: 400px; /* Máximo ancho para evitar estiramiento */
        margin: 0 auto; /* Centra la tarjeta horizontalmente */
        box-sizing: border-box;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    .product-grid.list-view .product-card .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1; /* Ocupa el espacio disponible */
    }
     
     .product-grid.list-view .product-card img {
        width: 800;
        height: 800px;
        object-fit: contain;
        flex-shrink: 0; /* Evita que la imagen se deforme */
    }

    .product-grid.list-view .product-card h3 {
        font-size: 14px;
        text-align: center; /* Alineación a la izquierda para vista lista */
        white-space: normal;
        max-height: 4.8em; /* Hasta 3 líneas */
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-grid.list-view .product-card .product-code {
        font-size: 12px;
        text-align: center;
        color: #ff6200;
    }


    .product-grid.list-view .product-card .buy-btn {
        font-size: 12px;
        padding: 6px 10px;
        width: auto;
        align-self: center; /* Botón alineado a la izquierda */
        background-color: #02366e;
        color: #FFFFFF;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

     /* Centrar el contenedor product-grid en vista lista */
    .product-grid.list-view {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra las tarjetas horizontalmente */
        gap: 15px;
        width: 100%; /* Asegura que ocupe todo el ancho disponible */
    }
}

/* Asegurar que el diseño de escritorio no cambie */
@media (min-width: 769px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    

    @media (max-width: 768px) {
    .product-grid.list-view .product-card .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1; /* Ocupa el espacio disponible */
    }

    .product-grid.list-view .product-card .buy-btn {
        align-self: center; /* Alinear el botón a la izquierda en vista lista */
    }
    .product-card h3 {
        font-size: 14px;
        max-height: 2.8em; /* Mantener consistencia */
        -webkit-line-clamp: 2;
    }

    .product-grid.list-view .product-card h3 {
        font-size: 14px;
        text-align: left; /* Alineación a la izquierda en vista lista */
        max-height: 2.8em;
        -webkit-line-clamp: 2;
    }

}

    .product-card .product-code {
        font-size: 14px;
    }

    .product-card .buy-btn {
        font-size: 14px;
        padding: 10px;
        width: 100%;
    }
}

.product-price {
    font-size: 17px;
    font-weight: bold;
    color: #02366e;
    text-align: center;
    margin: 5px 0;
}
.product-stock {
    font-size: 14px;
    color: #ff6200;
    margin: 5px 0;
}
.product-price-contado {
    font-size: 16px;
    font-weight: bold;
    color: #FF6200; /* Naranja para destacar el precio con descuento */
    text-align: center;
    margin: 5px 0;
}

.agotado-label {
    position: relative;
    top: 5px;
    left: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #FF6200;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

.product-card.agotado {
    opacity: 1; /* Ligera opacidad para indicar que está agotado */
}

@media (max-width: 768px) {
    .agotado-label {
        font-size: 10px;
        padding: 3px 8px;
        top: 5px;
        left: 5px;
    }
    .product-grid.list-view .agotado-label,
    .product-grid.grid-view .agotado-label {
        font-size: 9px;
        padding: 2px 6px;
    }
}
.product-stock {
    font-size: 0.7rem;
    color: #333;
    margin: 10px 0;
    font-weight: bold; /* Opcional para destacar el código */
}
.product-card .product-price-before-tax {
    font-size: 14px;
    color: #4358ab84;
    text-align: center;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.precios-container {
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.product-price-anterior {
    font-size: 0.2rem;
    color: #4358ab84;
    text-decoration: none;
    margin: 0.5rem 0 0;
}

/* Estilo general para las cuotas */
.product-cuota {
    font-size: 1rem;
    color: #333;
    margin: 5px 0;
}

/* Estilo específico para destacar las 12 cuotas (con interés) */
.product-cuota-12 {
    font-style: none; /* Para diferenciar las cuotas con interés */
    font-size: 1rem;
    color: #333;
    margin: 5px 0;
}

/* Asegurar que el contenedor de precios se vea ordenado */
.precios-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-page .product-price-anterior {
font-size: 1rem;
    color: #33333379;
    text-align: left;
    margin: 0px 1;
    font-weight: bold; /* Opcional para destacar el código *//
    
}

/* Iconos de tarjetas de crédito en cuotas */
.cuota-card-icon {
    width: 10rem; /* Tamaño más pequeño, ajustado para parecer una extensión del texto */
    height: 1rem; /* Altura consistente con la fuente */
    vertical-align: middle; /* Alinear con el texto */
    
    display: inline-block; /* Comportarse como parte del texto */
    object-fit: contain; /* Evitar distorsiones, mantener proporciones */
}




/* Ajustar el contenedor de cuotas para mejor alineación */
.product-cuota {
    display: flex;
    align-items: center; /* Alinear verticalmente el texto y la imagen */
    font-size: 0.8rem;
    color: #333;
    margin: 5px 0;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .cuota-card-icon {
        width: 5rem; /* Ligeramente más pequeño en móviles */
        height: 1rem;
        
    }


    .product-cuota {
        font-size: 0.8rem; /* Ajustar tamaño de fuente en móviles */
    }
}



.consulta-btn:hover {
    background: linear-gradient(90deg, #7a0000 0%, #3a0000 100%); /* Degradado de azul oscuro a azul medio */
    transition: 5s;
    
}
.contado-btn {
    background: linear-gradient(90deg, #02366e 0%, #002344 100%); /* Degradado de azul oscuro a azul medio */
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none !important;
    display: inline-block;
    transition:15s;
}

.contado-btn:hover {
    background: linear-gradient(90deg, #ff6200 0%, #863400 100%); /* Degradado de azul oscuro a azul medio */
    transition: 15s;
}

/* Categories Carousel */
.categories {
    margin: 40px 0;
}

.home-categories {
    position: relative;
}
/* Quitar subrayado de los enlaces en el carrusel de categorías */
.home-categories-item a {
    text-decoration: none;
}

.home-categories-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.home-categories-item:hover {
    transform: scale(1.05);
    background-color: #a3d0ff55;
    transition: 0.5s;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-categories-img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.home-categories-name {
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    color: #02366e;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
    text-transform: uppercase;
    text-decoration: none !important;
}

.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.owl-prev,
.owl-next {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.owl-prev:hover,
.owl-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.owl-prev {
    margin-left: -20px;
}

.owl-next {
    margin-right: -20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-categories-name {
        font-size: 12px;
    }

    .owl-prev,
    .owl-next {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }

    .owl-prev {
        margin-left: -10px;
    }

    .owl-next {
        margin-right: -10px;
    }
    /*Desactivar efecto hover en dispositivos móviles */
    .home-categories-item:hover {
        transform: none;
        background-color: transparent;
        box-shadow: none;
    }
     /* Reducir márgenes de secciones para evitar espacio adicional */
    .catalog, .contact-section, .legal-section, .product-main, .product-features, .product-description {
        margin-bottom: 10px; /* Asegurar márgenes mínimos */
    }
}
/* Estilos para el botón de compartir */
.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 10px 0;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.share-btn:hover {
    background-color: #8fc5ff9f;
}

.icon-share-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('images/share-icon.png'); /* Asegúrate de tener un ícono en esta ruta */
    background-size: cover;
    margin-right: 8px;
}

/* Estilos para el modal de fallback */
.share-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-fallback-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.share-fallback-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.share-fallback-content button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.share-fallback-content button:nth-child(2) {
    background-color: #25D366; /* WhatsApp */
    color: white;
}

.share-fallback-content button:nth-child(2):hover {
    background-color: #1ebe57;
}

.share-fallback-content button:nth-child(3) {
    background-color: #007bff; /* Email */
    color: white;
}

.share-fallback-content button:nth-child(3):hover {
    background-color: #0056b3;
}

.share-fallback-content button:nth-child(4) {
    background-color: #6c757d; /* Copiar enlace */
    color: white;
}

.share-fallback-content button:nth-child(4):hover {
    background-color: #5a6268;
}

.share-fallback-content button:nth-child(5) {
    background-color: #dc3545; /* Cerrar */
    color: white;
}

.share-fallback-content button:nth-child(5):hover {
    background-color: #c82333;
}
/* Estilos para la etiqueta de Oferta */
.offer-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(255, 0, 0, 0.844);
    color: #ffffffe2;
    font-size: 13px;
    font-weight: bold;  
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

/* Asegura que la tarjeta tenga posición relativa para que la etiqueta absoluta funcione */
.product-card {
    position: relative;
    
}
.nav-menu {
    font-size: 13px;
    font-weight:normal;
    font-family: 'Roboto', sans-serif;  
    text-align: center;

}

/* Estilos para el header-contact */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-right: 15px;
    
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #FF6200;
}

.contact-item p {
    margin: 0;
    display: flex;
    align-items: center;
}

.contact-item a {
    color: #FF6200;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #ffa872; /* Cambia al color que prefieras para el hover */
}

.contact-icon {
    margin-right: 8px;
    stroke: #12a141; /* Color del ícono */
}

@media (max-width: 768px) {
    .header-contact {
        align-items: flex-end; /* Alinear a la derecha */
        position: static; /* Quitar alineación izquierda forzada */
        display: flex;
        order: 3; /* A la derecha */
        margin-right: 0px;
        justify-content: right;
        gap: 5px; /* Espacio entre ítemes de contacto */
        flex-direction: column; /* Contacto en columna */
        align-items: flex-end; /* Alinear a la derecha */
        z-index: 1; /* Asegurar visibilidad */
        
    }

    .contact-item {
        color: #ff6200;
        display: flex;
        align-items: right;
        justify-content: flex-end; /* Asegurar alineación derecha */
        
        
    }
    .contact-item a {
        color: #ff6200;
        font-size: 15px; /* Tamaño legible pero compacto */
        margin-right: 5px;
        
    }
    .contact-item a:hover {
        color: #ffa872;
        
    }

    .contact-icon {
        width: 11px; /* Tamaño del ícono, ajustar si es necesario */
        height: 11px;
        margin-right: 0px;
    }

    /* Ajustar la barra de búsqueda para que no interfiera */
    .search-bar {
        width: 100%;
        margin: 40px auto 5px; /* Mantener debajo del header */
        padding: 0;
    }

    /* Ocultar user-options si no son necesarios en el header */
    .user-options {
        display: none; /* Comentar si quieres mantenerlos */
    }

    /* Asegurar que el menú desplegable no se vea afectado */
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #02366e;
        padding: 10px 0;
        z-index: 1000;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: block;
    }

}
/* Estilo para la etiqueta de descuento */
.product-card .discount-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 99;
}



/* Asegurar que las etiquetas no se superpongan */
.product-card .offer-label {
    top: 50px; /* Ajustar posición para no superponerse con discount-label */
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .product-card .discount-label {
        font-size: 10px;
        padding: 3px 8px;
    }
    .product-card .original-price {
        font-size: 12px;
    }
    .product-card .discount-price {
        font-size: 16px;
    }
    .product-card .product-price-before-tax {
        font-size: 10px;
    }
}
/* Discount label for product page */
.product-info .discount-label {
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
    margin: 10px 0;
}

/* Precio de lista */
.product-info .original-price {
    color: #999999;
    font-size: 18px;
    margin-bottom: 0px;
    margin-top: 15px;
}

/* Precio contado */
.product-info .discount-price {
    color: #ff0000;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 5px;
    
}

/* PRE.ANT.IMP.NAC: */
.product-info .product-price-anterior {
    color: #6666667c;
    font-size: 12px;
    margin-bottom: 5px;
}

/* Installment prices */
.product-info .product-cuota {
    font-size: 14px;
    margin: 5px 0;
}

/* Stock info */
.product-info .product-stock-sucursal,
.product-info .product-stock-deposito {
    font-size: 14px;
    color: #0048c4;
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-info .discount-label {
        font-size: 12px;
        padding: 3px 8px;
    }
    .product-info .original-price {
        font-size: 14px;
    }
    .product-info .discount-price {
        font-size: 18px;
    }
    .product-info .product-price-anterior {
        font-size: 12px;
    }
    .product-info .product-cuota {
        font-size: 12px;
    }
}
/* Catalog Header and Banner */
.catalog-header {
    text-align: center;
    margin-bottom: 20px;
}

.catalog-banner {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .catalog-header {
        margin-bottom: 15px;
    }
    .catalog-banner {
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .catalog-header {
        margin-bottom: 10px;
    }
    .catalog-banner {
        width: 100%;
    }
}
.filter-group.collapsible-filter .collapsible-content {
    display: none;
}
.filter-group.collapsible-filter .collapsible-header.active + .collapsible-content {
    display: block;
}
.filter-option {
    display: block;
    margin: 5px 0;
}
.filter-checkbox, .filter-radio {
    margin-right: 8px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 16px;
    padding: 5px 10px;
    margin: 5px;
    font-size: 14px;
}
.filter-chip button {
    margin-left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* Estilos para la sección de video */
.video-section {
    padding: 40px 0;
    text-align: center;
}

.video-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.video-container {
    max-width: 800px; /* Ajusta el ancho máximo según el diseño */
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Opcional: bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Opcional: sombra para destacar */
}

/* === Popup Newsletter === */
#popup_email_subscription {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#popup_email_subscription .block_content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.4s ease;
}



#popup_email_subscription .rvnewslatterpopup-img {
    padding: 0;
}

#popup_email_subscription .rvnewslatterpopup-img img {
    width: 100%;
    height: auto;
    display: block;
}

#popup_email_subscription .emailsub-text-wrapper {
    float: left;
    margin: 7% 0;
    text-align: center;
    background: #fff;
    padding: 0 40px;
}

#popup_email_subscription .close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (min-width: 544px) {
    .col-sm-6 {
        float: left;
        width: 50%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/* === Popup Newsletter Estilos Mejorados === */
#popup_email_subscription {
    font-family: "Open Sans",sans-serif;
    color: #333;
}

#popup_email_subscription .material-icons {
    font-family: "Open Sans",sans-serif;
    color: #000000;
    font-size: 0.9rem;

}
#popup_email_subscription .title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-style: italic;
    font-style: bold;
}

#popup_email_subscription .description {
    font-size: 0.80rem;
    color: #55555591;
    margin-bottom: 10px;
    
}

#popup_email_subscription .form-control {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    width: 100%;
    padding: 12px 15px;
    font-size: 0.8rem;
    color: #00000047;
    border: 1px solid #82828268;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    
    
}

#popup_email_subscription .form-control:focus {
    border-color: #0f52ba;
    box-shadow: 0 0 5px rgba(15, 82, 186, 0.4);
}

#popup_email_subscription .btn.btn-primary {
    font-family: "Open Sans",sans-serif;
    background: #0f52ba;
    padding: 10px 30px;;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.5s;
    display: inline-block;
    margin-top: 10px;
}

#popup_email_subscription .btn.btn-primary:hover {
    background: #0c3e8a;
}

/* Botón cerrar */
#popup_email_subscription .btn-close {
    background: #ffffff;          /* sin fondo de botón */
    border: none;              /* sin borde */
    color: #ff620092;               /* texto negro */
    font-size: 0.9rem;
    cursor: pointer;
    display: block;
    text-align: right;         /* alineación derecha */
    margin-top: 25px;
    width: 100%;               /* ocupa todo el ancho para que el texto quede a la derecha */
    font-style: italic;
    transition: 0.9s;
}

#popup_email_subscription .btn-close:hover {
    color: #060606;            /* azul al pasar el mouse */
    transition: 0.9s;
}

#popup_email_subscription .form-check {
    text-align: left;
    font-size: 0.8rem;
    color: #444444b1;
    font-style: italic;
    margin-top: 10px;
}

#popup_email_subscription .form-check input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #0f52ba; /* hace que el checkbox sea azul */
}

/* === Chatbot Obelisquín === */
#chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: #fff;
  border: 2px solid #02366e;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  z-index: 9999;
}

#chatbot-header {
  background: #02366e;
  color: white;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#chatbot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
}

#chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* === Estilo de mensajes del chatbot === */
.chat-message {
  max-width: 80%;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  clear: both;
  display: inline-block;
}

/* Mensajes del usuario */
.chat-user {
  background: #FF6200;
  color: white;
  float: right;
  border-bottom-right-radius: 0;
}

/* Mensajes de Obelisquín */
.chat-bot {
  background: #f1f1f1;
  color: #333;
  float: left;
  border-bottom-left-radius: 0;
  border: 1px solid #ddd;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #ccc;
}

#chatbot-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
}

#chatbot-send {
  background: #FF6200;
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
}

#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #02366e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* Contenedor de mensajes con scroll */
#chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

/* === Mensajes === */
.message-wrapper {
  display: flex;
  align-items: flex-end;
  margin: 6px 0;
}

/* Avatar de Obelisquín */
.message-wrapper.bot img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Burbujas */
.chat-message {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Usuario */
.chat-user {
  background: #FF6200;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

/* Obelisquín */
.chat-bot {
  background: #f1f1f1;
  color: #333;
  border: 1px solid #ddd;
  border-bottom-left-radius: 0;
}

/* Animación para mensajes */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.message-wrapper.bot {
  animation: fadeInLeft 0.4s ease forwards;
}

.message-wrapper.user {
  animation: fadeInRight 0.4s ease forwards;
}

/* =========================== */


.contact-subscription {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.contact-subscription h2 {
    margin-bottom: 0.5rem;
    color: #02366e;
}

.contact-subscription form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-subscription input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-subscription button {
    background: #02366e;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-subscription button:hover {
    background: #FF6200;
}

/* === Fix producto.html en móvil === */
@media (max-width: 768px) {
  .product-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .image-container,
  .info-container {
    width: 100%;
    max-width: 100%;
  }

  .image-container {
    margin-bottom: 20px;
  }

  .product-info {
    text-align: center;
  }

  .product-description,
  .product-features {
    padding: 0 10px;
  }
}
