﻿
/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === general === */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    font-size: 14px;
}

    nav a {
        text-decoration: none;
        color: #007bff;
    }

        nav a:hover {
            text-decoration: underline;
        }

/* TOPBAR */

:root {
    --topbar-bg: #3b3b3b;
    --topbar-height: 34px;
    --icon-size: 15px;
    --icon-gap: 16px;
    --accent-whatsapp: #25D366;
}

.topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    font-family: system-ui, sans-serif;
}

.topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--icon-gap);
}

.topbar-link {
    color: rgba(255,255,255,0.85);
    font-size: var(--icon-size);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .topbar-link:hover {
        transform: translateY(-2px);
        color: #fff;
    }

    .topbar-link.whatsapp:hover {
        color: var(--accent-whatsapp);
    }

/* HEADER */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 20px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.header__logo .logo {
    height: 50px;
    display: block;
    margin: 0 auto;
}

.header__buscador {
    flex-grow: 1;
    text-align: center;
    position: relative;
}

    .header__buscador input {
        font-family: 'Montserrat', sans-serif;
    }

    .header__buscador h1 {
        font-size: 30px;
        margin-bottom: 5px;
        color: white;
    }

#buscador {
    padding: 12px 12px;
    width: 60%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#resultados {
    position: absolute;
    top: 43px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 10;
    display: none;
}

    #resultados li {
        padding: 10px;
        border-bottom: 1px solid #eee;
        list-style: none;
    }

        #resultados li:hover {
            background-color: #f1f1f1;
        }

    #resultados a {
        text-decoration: none;
        color: #333;
        display: block;
    }

.header__acciones {
    display: flex;
    gap: 10px;
}

.btn-iniciar, .btn-carrito, .btn-carritox, .btn-cerrar {
    color: #333;
    background-color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 10px;
}

.btn-menu-movil {
    color: #333;
    background-color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 10px;
}

.btn-menu-movil {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

.btn-menu-movil:hover {
    color: #05a8ed;
    transition: 0.5s;
}

.btn-carrito, .btn-carritox, .btn-cerrar {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

    .btn-iniciar:hover, .btn-carrito:hover, .btn-carritox:hover {
        color: #05a8ed;
        transition: 0.5s;
    }

    .btn-cerrar:hover {
        color: #ff0000;
        transition: 0.5s;
    }

#buscador::placeholder {
    font-family: 'Montserrat', sans-serif;
}

button, .btn-iniciar, .btn-carrito, .btn-carritox {
    font-family: 'Montserrat', sans-serif;
}

#resultados a {
    font-family: 'Montserrat', sans-serif;
}

.buscador-movil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
}

.buscador-movil__contenido {
    background: white;
    padding: 30px 20px 20px 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#buscadorMovilInput {
    width: 100%;
    padding: 12px 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 2px solid #05a8ed;
    border-radius: 8px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

    #buscadorMovilInput::placeholder {
        color: #aaa;
        font-family: 'Montserrat', sans-serif;
    }

    #buscadorMovilInput:focus {
        border-color: #028fcc;
        box-shadow: 0 0 8px #05a8ed50;
    }

#cerrarBuscadorMovil {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #05a8ed;
    cursor: pointer;
    transition: 0.3s;
}

    #cerrarBuscadorMovil:hover {
        color: #028fcc;
        transform: rotate(90deg);
    }

#resultadosMovil {
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
    margin-top: 10px;
}

    #resultadosMovil li {
        list-style: none;
        padding: 10px;
        border-bottom: 1px solid #eee;
        font-family: 'Montserrat', sans-serif;
        transition: 0.2s;
    }

        #resultadosMovil li:hover {
            background-color: #f1f1f1;
        }

    #resultadosMovil a {
        text-decoration: none;
        color: #333;
        font-family: 'Montserrat', sans-serif;
        display: block;
        width: 100%;
    }

.btn-buscar {
    display: none;
    background: white;
    border: none;
    font-size: 20px;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

    .btn-buscar:hover {
        color: #05a8ed;
    }

@media screen and (max-width: 768px) {
    .header__buscador h1 {
        display: none;
    }

    #buscador {
        display: none;
    }

    .btn-buscar {
        display: block;
    }

    #resultados {
        top: 60px;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
}

.btn-buscar i, .btn-carrito i, .btn-carritox i {
    width: 24px;
    height: 24px;
}

.overflow-hidden {
    overflow: hidden;
}

/* SUBHEADER */

.subheader {
    background: #eee;
    border-bottom: 1.5px solid #ccc;
}

.subheader-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    height: auto;
    background: none;
    border: none;
    color: #333;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 0;
    transition: background 0.2s;
}

    .dropdown-toggle:hover {
        background: rgba(255,255,255,0.08);
    }

    .dropdown-toggle i:last-child {
        font-size: 12px;
    }

.dropdown-menu {
    list-style: none;
    margin: 0;
    margin-top: 0px;
    border-top: none;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1.5px solid #ccc;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    display: none;
    min-width: 320px;
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

    .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }

    .dropdown-menu::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

        .dropdown-menu::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

    .dropdown-menu::-webkit-scrollbar-track {
        background: #f0f0f0;
    }

    .dropdown-menu li {
        padding: 8px 14px;
        color: #333;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .dropdown-menu li:hover {
            background: #eee;
            font-weight: 600;
        }

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, font-weight 0.2s;
    position: relative;
}

    .dropdown-menu li a:hover {
        background: #eee;
        font-weight: 600;
        color: #333;
    }

/* Subheader interno */
.subheader-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
}

.subheader-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subheader-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

    .subheader-btn:hover {
        color: #05a8ed;
        text-decoration: none;
    }

@media (max-width: 768px) {
    .subheader {
        display: none;
    }
}

/* MENU LATERAL */
.overlay-movil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

    .overlay-movil.activo {
        opacity: 1;
        visibility: visible;
    }

.menu-lateral-movil {
    position: fixed;
    top: 0;
    left: -370px;
    width: 370px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

    .menu-lateral-movil.activo {
        left: 0;
    }

.menu-lateral-contenido .menu-item {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
    background: #f5f5f5;
    border: none;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

    .menu-lateral-contenido .menu-item:hover {
        background: #e0e0e0;
    }

.menu-separador {
    border: none;
    border-top: 1px solid #ccc;
    margin: 15px 0;
}

.menu-categorias-titulo {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #05a8ed;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

    .menu-item:hover {
        background: #e0e0e0;
        font-weight: bold;
    }

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    color: #05a8ed;
}


.menu-categorias-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu-categorias-list li {
        margin-bottom: 8px;
    }

        .menu-categorias-list li a {
            text-decoration: none;
            color: #333;
            font-size: 0.95rem;
            transition: color 0.2s;
            display: block;
            padding: 8px 0px;
        }

            .menu-categorias-list li a:hover {
                font-weight: bold;
            }

@media (min-width: 769px) {
    .menu-lateral-movil,
    .overlay-movil {
        display: none;
    }
}

/* GENERAL HEADER */

.general-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #efefef;
    padding: 10px 10px;
    position: relative;
}

.header-left,
.header-right {
    display: flex;
    gap: 1em;
}

.boton-general {
    background: none;
    color: #333;
    border: none;
    padding: 0px 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.boton-max {
    background: none;
    color: #333;
    border: none;
    padding: 0px 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    font-family: Montserrat;
}

@media (max-width: 768px) {
    .boton-general,
    .boton-max {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* CUSTOM SWIPER CAROUSEL */
.custom-swiper-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.custom-swiper-carousel .swiper-wrapper {
    display: flex;
}

.custom-swiper-carousel .swiper-slide {
    width: 100%;
    flex-shrink: 0;
}

    .custom-swiper-carousel .swiper-slide a {
        display: block;
        width: 100%;
    }

    .custom-swiper-carousel .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

.custom-swiper-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0 12px;
    cursor: pointer;
    z-index: 1;
}

    .custom-swiper-carousel .carousel-btn svg {
        width: 3rem;
        height: 3rem;
    }

    .custom-swiper-carousel .carousel-btn.prev {
        left: 10px;
    }

    .custom-swiper-carousel .carousel-btn.next {
        right: 10px;
    }

@media (max-width: 768px) {
    .custom-swiper-carousel {
        margin: 15px auto;
        margin-top: 25px;
        border-radius: 15px;
        overflow: hidden;
        max-width: calc(100% - 30px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
    }

        .custom-swiper-carousel .swiper-slide img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            object-position: center;
        }
}

/* BRAND CAROUSEL */

.brands-carousel-container {
    padding: 40px 0;
    background: #333;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brands-carousel {
    width: 100%;
}

    .brands-carousel .swiper {
        width: 100%;
    }

    .brands-carousel .swiper-wrapper {
        align-items: center;
    }

    .brands-carousel .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease;
        filter: grayscale(100%);
        opacity: 0.7;
    }

        .brands-carousel .swiper-slide img {
            max-width: 150px;
            height: auto;
            object-fit: contain;
        }

        .brands-carousel .swiper-slide:hover {
            transform: scale(1.1);
            filter: grayscale(0%);
            opacity: 1;
        }

    .brands-carousel .swiper-pagination-bullets {
        bottom: 10px !important;
    }

/* SUB HEADER CLIENTES */

.sub-header-clientes {
    background-color: #efefef;
    display: flex;
    justify-content: center;
    padding: 10px 15px;
    position: relative;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
}

    .sub-header-clientes.mostrar {
        height: 50px;
        opacity: 1;
    }

.sub-header__contenido {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 1;
}

    .sub-header__contenido button {
        border: none;
        padding: 8px 12px;
        background: none;
        cursor: pointer;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        color: #333;
    }

.sub-header-clientes {
    pointer-events: none;
}

    .sub-header-clientes.mostrar {
        pointer-events: auto;
    }


/* SLIDER INDEX */

.sliders {
    background: none;
    padding: 20px 30px;
}

.slider-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 400;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .product-card:hover {
        border: 1px solid #05a8ed;
    }

.product-image {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

    .product-image img {
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
    }

.product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 4px;
}

    .product-label.novedad {
        background-color: #007bff;
    }

    .product-label.oferta {
        background-color: #dc3545;
    }

.product-title {
    font-size: 16px;
    min-height: 3.6em;
    line-height: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-code {
    font-size: 14px;
    color: #555;
}

.swiper-button-prev, .swiper-button-next {
    color: #333;
}

@media (max-width: 768px) {
    .product-image img {
        max-height: 350px;
    }
}

.desktop-banner img,
.mobile-banner img {
    width: 100%;
    margin-bottom: 20px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-banner {
    display: none;
}

@media (max-width: 768px) {
    .desktop-banner {
        display: none;
    }

    .mobile-banner {
        display: block;
    }
}

/* FOOTER */

.footer-container {
    background-color: #222;
    color: #f0f0f0;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-icon {
    color: #05a8ed;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 200px;
}

    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: #ffffff;
        border-left: 4px solid #05a8ed;
        padding-left: 10px;
    }

    .footer-column p {
        color: #ccc;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column ul li {
            margin-bottom: 12px;
            color: #ccc;
        }

.footer-links li a {
    color: #bbb;
    text-decoration: none;
    padding: 6px 0;
    display: inline-block;
    transition: color 0.3s ease, transform 0.2s ease;
}

    .footer-links li a:hover {
        color: #05a8ed;
        transform: translateX(5px);
    }

.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 20px 10px;
    font-size: 15px;
    color: #777;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-column {
        text-align: center;
    }

        .footer-column h3 {
            border-left: none;
            border-bottom: 2px solid #05a8ed;
            padding-left: 0;
            padding-bottom: 10px;
            display: inline-block;
        }

    .footer-links li a {
        display: block;
    }
}

/* PRODUCTOS */

.producto-container {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: flex-start;
    font-family: 'Montserrat', sans-serif;
}

.producto-info {
    flex: 2;
    border-right: 1px solid #ddd;
}

    .producto-info h1 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #333;
    }

    .producto-info img {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .producto-info p {
        font-size: 16px;
        line-height: 1.5;
        color: #555;
    }

.producto-compra {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.precio-lista {
    border-left: 5px solid #ffc107;
    padding: 15px;
    background-color: #f9f9f9;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.precio-final {
    border-left: 5px solid #28a745;
    padding: 15px;
    background-color: #f9f9f9;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.acciones-compra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-left: 5px solid #ddd;
}

#cantidad {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#comprar {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    #comprar:hover {
        background-color: #0056b3;
    }

.subtotal {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

@media screen and (max-width: 767px) {
    .producto-container {
        flex-direction: column;
        padding: 20px;
        align-items: center; 
        justify-content: center; 
        text-align: center;
    }

    .producto-info,
    .producto-compra {
        flex: none;
        width: 100%;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: center;
    }

    .producto-info {
        margin-bottom: 20px;
    }

    .precio {
        text-align: left;
        width: 100%; 
    }

    .acciones-compra {
        flex-direction: column;
        align-items: flex-start; 
        width: 100%; 
    }

        .acciones-compra label,
        .acciones-compra input,
        .acciones-compra button {
            width: auto;
            margin-left: 0; 
        }

    .subtotal {
        margin-top: 15px;
        text-align: left; 
        width: 100%; 
    }

    #cantidad {
        width: 100%;
        margin-bottom: 10px;
    }

    #comprar {
        width: 100%;
        padding: 12px;
    }
}

/* PRODUCTOS RELACIONADOS */

#relacionados-container {
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #ddd;
}

    #relacionados-container h2 {
        font-size: 1.8rem;
        font-weight: 400;
        margin-bottom: 25px;
        color: #333;
        text-align: left;
    }

.relacionados-swiper .swiper-slide {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.relacionados-swiper .swiper-slide:hover {
    border: 1px solid #05a8ed;
}

.relacionados-swiper img {
    width: 100%;
    max-width: 350px;
    object-fit: contain;
    margin-bottom: 15px;
}

.relacionados-swiper p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3);
}

.relacionados-prev, .relacionados-next {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

    .relacionados-prev:hover, .relacionados-next:hover {
        background: rgba(0, 0, 0, 0.7);
    }

    .relacionados-prev::after, .relacionados-next::after {
        font-family: 'swiper-icons';
        font-size: 22px;
    }

    .relacionados-prev::after {
        content: 'prev';
    }

    .relacionados-next::after {
        content: 'next';
    }

.relacionados-prev {
    left: 10px;
}

.relacionados-next {
    right: 10px;
}

.relacionados-swiper a {
    text-decoration: none;
    color: inherit;
}

/* CARRITO */
.carrito-container {
    max-width: 1400px;
    margin: 5px auto;
    padding: 30px;
    font-family: 'Montserrat', sans-serif;
}

.carrito-header h1 {
    font-size: 2rem;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    background-color: #ccc;
}

.carrito-body {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.descripcion-pedido {
    width: 75%;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

    .descripcion-pedido h2 {
        font-size: 1.5rem;
        color: #444;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .descripcion-pedido div {
        margin-bottom: 20px;
    }

    .descripcion-pedido p {
        font-size: 1rem;
        color: #666;
    }

    .descripcion-pedido label {
        font-weight: 600;
        color: #444;
    }

    .descripcion-pedido input {
        margin-left: 10px;
        width: 80px;
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
    }

    .descripcion-pedido button {
        background-color: #ccc;
        color: #fff;
        font-size: 1rem;
        border: none;
        padding: 10px;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .descripcion-pedido button:hover {
            background-color: #ddd;
        }

.total-estimado {
    width: 25%;
    padding: 20px;
    border: 1px solid #ccc;
    text-align: center;
    position: sticky;
    top: 20px;
}

    .total-estimado h3 {
        font-size: 1.1rem;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .total-estimado #total {
        margin-left: 2px;
        font-size: 1.1rem;
    }

    .total-estimado button {
        margin-top: 20px;
        padding: 12px 25px;
        background-color: #23ae23;
        width: 100%;
        color: white;
        font-size: 1.1rem;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .total-estimado button:hover {
            background-color: #007f00;
        }

#carrito div {
    padding: 10px;
    margin-bottom: 1px;
}

#carrito p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

#carrito hr {
    margin: 10px 0;
}

.cantidad-input {
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

    .cantidad-input:focus {
        border: 2px solid #05a8ed;
        outline: none;
        box-shadow: 0 0 8px #05a8ed50;
    }

.subtotal {
    font-weight: 600;
    color: #23ae23;
}

.carrito-container {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .carrito-body {
        flex-direction: column;
        align-items: center;
    }

    .descripcion-pedido,
    .total-estimado {
        width: 100%;
        margin-bottom: 20px;
    }

        .descripcion-pedido h2 {
            font-size: 1.3rem;
        }

        .total-estimado h3 {
            font-size: 1.2rem;
        }

        .total-estimado button {
            width: 100%;
            font-size: 1.2rem;
            padding: 12px;
        }

    #carrito div {
        padding: 15px;
        margin-bottom: 10px;
    }

    .carrito-header h1 {
        font-size: 1.6rem;
        padding: 10px;
    }

    .cantidad-input input {
        width: 100%;
    }
}

/* INICIO DE SESION */

.login-container {
    display: flex;
    width: 80%;
    margin: 50px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    font-family: Montserrat, sans-serif;
}

.login-form-box {
    flex: 2;
    background-color: #f9f9f9;
    padding: 40px;
}

.login-info-box {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form label {
    font-weight: bold;
    font-size: 14px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-container input {
        flex: 1;
    }

.toggle-password {
    background-color: transparent;
    border: none;
    color: #007bff;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
}

.keep-logged {
    display: flex;
    align-items: center;
    font-size: 14px;
}

    .keep-logged input[type="checkbox"] {
        margin-right: 8px;
    }

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

    .submit-button:hover {
        background-color: #0056b3;
    }

.login-info-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.login-info-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.login-info-box h4 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 100;
}

.login-info-box a {
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 80%;
        margin: 20px auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        border-radius: 0;
    }

    .login-form-box,
    .login-info-box {
        padding: 20px;
    }

    .login-info-box {
        align-items: center;
        text-align: center;
    }

        .login-info-box h2 {
            font-size: 20px;
        }

        .login-info-box h3 {
            font-size: 16px;
        }

        .login-info-box h4 {
            font-size: 12px;
        }

    .submit-button {
        padding: 10px;
        font-size: 14px;
    }

    .toggle-password {
        font-size: 12px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        padding: 8px;
        font-size: 14px;
    }
}

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.error-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    font-family: Montserrat, sans-serif;
}

    .error-box p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .error-box button {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 10px 25px;
        border-radius: 5px;
        font-size: 14px;
        cursor: pointer;
    }

        .error-box button:hover {
            background-color: #0056b3;
        }

@media (max-width: 768px) {
    .error-box {
        padding: 20px;
    }

        .error-box p {
            font-size: 14px;
        }

        .error-box button {
            font-size: 13px;
            padding: 8px 20px;
        }
}

.no-scroll {
    overflow: hidden;
    height: 100%;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* PEDIDO FINALIZADO */

.pedido {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Montserrat, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.titulo {
    text-align: center;
    color: #333;
    font-size: 1.7em;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 20px;
}

    .form-section label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #333;
    }

.input-text, .textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8em;
    background-color: #fff;
    font-family: Montserrat, sans-serif;
}

.textarea {
    height: 120px;
    resize: vertical;
}

.tabla-pedido {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .tabla-pedido th, .tabla-pedido td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left;
        font-size: 0.8em;
    }

    .tabla-pedido th {
        background-color: #f1f1f1;
    }

.total-final {
    font-weight: bold;
    color: #333;
}

.btn-whatsapp {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #25d366;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

    .btn-whatsapp:hover {
        background-color: #128c7e;
    }

@media (max-width: 600px) {
    .pedido {
        padding: 15px;
        margin: 10px;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .titulo {
        font-size: 1.4em;
    }

    .form-section label {
        font-size: 0.9em;
    }

    .input-text,
    .textarea {
        font-size: 0.9em;
        padding: 8px;
    }

    .tabla-pedido th,
    .tabla-pedido td {
        font-size: 0.75em;
        padding: 6px;
    }

    .btn-whatsapp {
        font-size: 0.95em;
        padding: 10px;
    }
}

@media screen and (max-width: 768px) {
    .tabla-pedido thead {
        display: none;
    }

    .tabla-pedido, .tabla-pedido tbody, .tabla-pedido tr, .tabla-pedido td {
        display: block;
        width: 100%;
    }

        .tabla-pedido tr {
            margin-bottom: 1rem;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 10px;
            background-color: #f9f9f9;
        }

        .tabla-pedido td {
            text-align: right;
            position: relative;
            padding-left: 50%;
            border: none;
            border-bottom: 1px solid #eee;
        }

            .tabla-pedido td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: 45%;
                white-space: nowrap;
                font-weight: bold;
                text-align: left;
            }

        .tabla-pedido tfoot td {
            text-align: right;
        }
}

@media screen and (max-width: 768px) {
    .tabla-pedido tfoot {
        display: block;
        width: 100%;
        margin-top: 1rem;
    }

        .tabla-pedido tfoot tr {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            background-color: #eaeaea;
            border-radius: 8px;
            border: 1px solid #ccc;
        }

        .tabla-pedido tfoot td {
            display: block;
            width: auto;
            padding: 0;
            border: none;
            text-align: left;
            font-weight: bold;
        }

    #totalFinal {
        font-size: 1.2em;
        color: #333;
    }
}

/* MENSAJE EXITO */

.mensaje-exito {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(5, 168, 237, 0.25);
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.mensaje-exito__titulo {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.mensaje-exito__acciones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn--primario {
    background-color: #05a8ed;
    color: #fff;
}

    .btn--primario:hover {
        background-color: #333;
        transform: scale(1.03);
    }

.btn--secundario {
    background-color: #f1f1f1;
    color: #333;
}

    .btn--secundario:hover {
        background-color: #e0e0e0;
        transform: scale(1.03);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HISTORIAL DE PEDIDOS */

.seccion-historial-pedidos {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.titulo-historial-pedidos {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.descripcion-historial {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Estilo de tabla (escritorio) */
.tabla-historial {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

    .tabla-historial th,
    .tabla-historial td {
        border: 1px solid #ccc;
        padding: 12px;
        text-align: left;
    }

    .tabla-historial th {
        background-color: #eaeaea;
        color: #333;
    }

    .tabla-historial td a {
        color: #007BFF;
        text-decoration: none;
    }

        .tabla-historial td a:hover {
            text-decoration: underline;
        }

.btn-olvidar-pedido {
    background-color: #ccc;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    .btn-olvidar-pedido:hover {
        background-color: #ddd;
        transition: 0.5s;
    }

.fila-vacia {
    text-align: center;
    font-style: italic;
    color: #777;
}

/* Estilo para tarjetas (mobile) */
.contenedor-tarjetas {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.tarjeta-pedido {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    background-color: #fff;
}

    .tarjeta-pedido p {
        margin: 6px 0;
        color: #333;
    }

    .tarjeta-pedido a {
        color: #007BFF;
        text-decoration: none;
    }

        .tarjeta-pedido a:hover {
            text-decoration: underline;
        }

@media screen and (max-width: 768px) {
    .tabla-historial {
        display: none;
    }

    .contenedor-tarjetas {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .seccion-historial-pedidos {
        border: none;
    }
}

/* VER PEDIDO */

.pedidoDetalle {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.titulo-pedido {
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.detalle-contenido table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.detalle-contenido th,
.detalle-contenido td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.detalle-contenido th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.boton-contenedor {
    margin-top: 30px;
    text-align: right;
}

.btn-formal {
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #2c3e50;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-formal:hover {
        background-color: #1a252f;
    }

@media (max-width: 768px) {
    .detalle-contenido table,
    .detalle-contenido thead,
    .detalle-contenido tbody,
    .detalle-contenido th,
    .detalle-contenido td,
    .detalle-contenido tr {
        display: block;
        width: 100%;
    }

    .detalle-contenido thead {
        display: none;
    }

    .detalle-contenido tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 12px;
        background-color: #f9f9f9;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .detalle-contenido td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

        .detalle-contenido td::before {
            content: attr(data-label);
            position: absolute;
            left: 12px;
            top: 12px;
            font-weight: bold;
            text-align: left;
            color: #333;
        }

        .detalle-contenido td:last-child {
            border-bottom: none;
        }
}

@media screen and (max-width: 768px) {
    .pedidoDetalle {
        border: none;
        box-shadow: none;
        background-color: #f9f9f9;
    }
}

@media screen and (max-width: 768px) {
    .btn-formal {
        width: 100%;
    }
}

.contenedor2 {
    max-width: 800px;
    margin: 40px auto 0;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.volver-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .volver-link h2 {
        font-size: 1.5rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        transition: all 0.2s ease;
    }

    .volver-link:hover h2 {
        text-decoration: underline;
    }

/* CLIENTE MENU */

.cliente-menu {
    max-width: 1300px;
    margin: 5px auto;
    padding: 20px;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
}

.cliente-menu-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

    .cliente-menu-header h1 {
        font-size: 28px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: left;
        gap: 10px;
    }

.cliente-menu-body {
    margin-bottom: 20px;
}

.cliente-menu-quest {
    margin-bottom: 25px;
}

.quest {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #05a8ed, #004a69);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

    .quest i {
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }

    .quest:hover {
        background: linear-gradient(135deg, #038dc7, #003951);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    }

.cliente-menu-banner {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.cliente-menu-footer {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.cliente-menu-search,
.cliente-menu-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #ccc;
}

    .cliente-menu-search label,
    .cliente-menu-form label {
        margin-bottom: 5px;
        font-weight: 500;
        color: #444;
        font-size: 15px;
    }

    .cliente-menu-search input,
    .cliente-menu-form input {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 5px;
        font-family: 'Montserrat'
    }

    .cliente-menu-form button {
        margin-top: 10px;
        padding: 10px;
        background-color: #05a8ed;
        color: white;
        font-weight: bold;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .cliente-menu-form button:hover {
            background-color: #333;
        }

.search-small {
    flex: 0.5;
}

@media (max-width: 767px) {
    .cliente-menu-banner {
        display: none;
    }
}

@media (max-width: 767px) {
    .cliente-menu-header h1 {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .cliente-menu {
        max-width: 85%;
        margin: 10px auto 30px;
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .cliente-menu-search,
    .cliente-menu-form {
        flex: 1 1 100%;
    }
}

/* TABLA CLIENTES */

#tablaClientes {
    max-width: 1260px;
    width: 100%;
    margin: 5px auto;
    margin-bottom: 30px;
    border-collapse: collapse;
    background-color: #fff;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    table-layout: fixed;
}

    #tablaClientes thead {
        background-color: #05a8ed;
        color: white;
    }

    #tablaClientes th, #tablaClientes td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: left;
        word-wrap: break-word;
    }

    #tablaClientes tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    #tablaClientes tr:hover {
        background-color: #dcf5ff;
    }

    #tablaClientes th {
        position: sticky;
        top: 0;
        background-color: #05a8ed;
        z-index: 2;
    }

    #tablaClientes col.col-detalle {
        width: 30%;
    }

    #tablaClientes col.col-image {
        width: 90px;
        max-width: 60px;
    }

    #tablaClientes td:last-child {
        text-align: center;
        vertical-align: middle;
    }

/* TARJETAS EN MÓVILES */
@media (max-width: 768px) {
    #tablaClientes {
        display: none !important;
    }

    #tarjetasClientes {
        display: block !important;
        max-width: 85%;
        margin: 10px auto 30px;
        padding: 0 10px;
    }

    .tarjeta-cliente {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
        font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    }

        .tarjeta-cliente .campo {
            margin-bottom: 10px;
        }

            .tarjeta-cliente .campo strong {
                color: #05a8ed;
                display: block;
                margin-bottom: 2px;
            }

        .tarjeta-cliente .icon-image {
            font-size: 20px;
            color: #05a8ed;
        }
}

/* AGREGAR AL CARRITO EN LA TABLA */

.detalle-link {
    color: #1a73e8;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

    .detalle-link:hover {
        color: #0049b7;
        text-decoration: underline;
    }

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 5em;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* MODAL CLIENTE AGREGAR CARRITO */

/* MODAL MODERNO */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff;
    padding: 25px 30px;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: scaleIn 0.3s ease-out forwards;
    transform: scale(0.95);
    opacity: 0;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95rem;
}

.modal-content label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-top: 15px;
}

.modal-content input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border 0.2s ease;
}

    .modal-content input[type="number"]:focus {
        border-color: #007BFF;
        outline: none;
    }

.modal-content .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-content button {
    padding: 10px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#btnAgregar {
    background-color: #007BFF;
    color: white;
}

    #btnAgregar:hover {
        background-color: #0056b3;
    }

#btnCancelar {
    background-color: #e0e0e0;
    color: #333;
}

    #btnCancelar:hover {
        background-color: #c5c5c5;
    }

.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .close:hover {
        color: #000;
    }

.modal-content.faq-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

    .modal-content.faq-modal h2 {
        margin-top: 0;
        font-size: 24px;
        color: #333;
    }

.faq-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .modal-content.faq-modal {
        max-width: 95%;
        padding: 20px;
    }

    .faq-content p {
        font-size: 15px;
    }
}

/* Contenedor toasts (acumulación) */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 9999;
}

/* Toast */
.toast {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeInOut 3s ease-in-out forwards;
    color: white;
    min-width: 200px;
}

    .toast.success {
        background-color: #007bff;
    }

    .toast.error {
        background-color: #f44336;
    }

    .toast i {
        font-size: 16px;
    }

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    90% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* IMAGEN PRODUCTOS CLIENTES */

#visorImagen.visor-hidden {
    display: none;
}

#visorImagen {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.visor-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.visor-contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .visor-contenido img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    }

#cerrarVisor {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 30px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* CATALOGO */

.catalogo {
    font-family: Montserrat, sans-serif;
    margin-bottom: 15px;
}

.catalogo-header {
    padding: 1em;
    border-bottom: 1px solid #ddd;
}

.catalogo-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.catalogo-main {
    display: flex;
}

.catalogo-categorias {
    width: 25%;
    padding: 1em;
}

    .catalogo-categorias ul {
        list-style: none;
        padding: 0;
        font-size: 14px;
    }

    .catalogo-categorias li {
        cursor: pointer;
        padding: 0.3em;
        margin-bottom: 0.35em;
        border-radius: 5px;
    }

        .catalogo-categorias li.activa {
            background-color: #ddd;
            font-weight: bold;
        }

.catalogo-contenido {
    width: 75%;
    padding: 1em;
}

.catalogo-controles {
    text-align: right;
    margin-bottom: 1em;
}

    .catalogo-controles button {
        margin-left: 0.5em;
        padding: 0.4em 1em;
        cursor: pointer;
    }

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.catalogo-producto {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1em;
    background-color: #fff;
    border: 1px solid #ccc;
    text-align: center;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

    .catalogo-producto:hover {
        transform: scale(1.025);
        border: 1px solid #05a8ed;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .catalogo-producto img {
        max-width: 100%;
        height: auto;
    }

    .catalogo-producto h3 {
        min-height: 4.5em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0.5em 0;
        line-height: 1.5em;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 1.05em;
    }

    .catalogo-producto .codigo {
        font-size: 0.9em;
        color: #555;
    }

.catalogo-paginacion {
    margin-top: 2em;
    text-align: center;
}

    .catalogo-paginacion button {
        margin: 0 5px;
    }

#catalogo-orden button,
#catalogo-paginacion button {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    #catalogo-orden button:hover,
    #catalogo-paginacion button:hover {
        background-color: #e0e0e0;
    }

    #catalogo-orden button:disabled,
    #catalogo-paginacion button:disabled {
        background-color: #ddd;
        color: #888;
        border-color: #bbb;
        cursor: not-allowed;
    }

    #catalogo-orden button.activo {
        background-color: #ccc;
        font-weight: bold;
        border-color: #999;
    }

.btn-orden {
    background-color: white;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

    .btn-orden:hover {
        transform: translateY(-2px);
    }

.catalogo-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.btn-toggle-categorias {
    display: none;
    background-color: #f5f5f5;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 0.5em;
}

.close-categorias {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    float: left;
    margin-top: 0.35em;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .btn-toggle-categorias {
        display: inline-block;
    }

    #catalogo-titulo {
        margin: 0;
        font-size: 1.6rem;
    }

    .catalogo-header-inner {
        flex-direction: row;
        justify-content: flex-start;
    }

    .catalogo-header {
        border-bottom: none;
    }

    .close-categorias {
        display: block;
    }

    .catalogo-main {
        flex-direction: column;
    }

    .catalogo-categorias {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: #fafafa;
        z-index: 1000;
        padding: 1em;
        border-right: 1px solid #ccc;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

        .catalogo-categorias.mostrar {
            transform: translateX(0);
        }

    .catalogo-contenido {
        width: 100%;
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .catalogo-controles {
        display: none;
    }

    .catalogo-producto {
        max-width: 90%;
        margin-bottom: 5px;
    }
}

.catalogo-categorias.mostrar ~ .catalogo-overlay {
    display: block;
}

@media (max-width: 480px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
    }

    .catalogo-producto h3 {
        font-size: 1rem;
    }

    .btn-orden {
        font-size: 8px;
        padding: 8px 12px;
    }

    .catalogo-paginacion button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* VOLVER ARRIBA */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    #back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    #back-to-top:hover {
        background-color: #555;
    }

/* CENTRAL CONTAINER DESCARGAR CATALOGOS */

.central-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 35vh;
}

.table-container {
    max-width: 1000px;
    width: 100%;
    margin: 20px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

    .custom-table th, .custom-table td {
        padding: 10px;
        text-align: left;
    }

    .custom-table th {
        background-color: #eaeaea;
        font-weight: bold;
    }

    .custom-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

.custom-color-cell {
    width: 50px;
}

.custom-wide-cell {
    width: 40%;
    font-size: 15px;
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 5px;
}

.custom-small-text {
    font-size: 12px;
    color: #555;
}

.table-icon {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: .3s;
}

    .table-icon:hover {
        color: #05a8ed;
    }

/* prods */

.prods {
    margin-left: 45px;
    margin-right: 45px;
    margin-top: 20px;
    border-bottom: 1px solid #eee;
}

.bold-text3 {
    font-size: 25px;
    color: #333;
    text-align: left;
    font-weight: 400;
    margin-left: 10px;
}

/* Seccion ofertas clientes */

.seccion-informativa {
    padding: 20px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.seccion-titulo {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

.layout-informativa {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.tab-button {
    padding: 10px 20px;
    color: #333;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

    .tab-button:hover {
        border-bottom: 1px solid #ccc;
        font-weight: bold;
    }

    .tab-button.activo {
        border-bottom: 1px solid #05a8ed;
        font-weight: bold;
    }

.contenido-tabs {
    flex: 1;
}

.tab-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

    .tab-content.oculto {
        display: none;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OFERTAS */
.slider-galeria-producto {
    position: relative;
    width: 100%;
    max-width: 955px;
}

    .slider-galeria-producto .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

.galeria-prev,
.galeria-next {
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.galeria-prev {
    left: 10px;
}

.galeria-next {
    right: 10px;
}

/* TABLA DESCARGAS VARIACIONES Y LISTA */
.tabla-especificaciones {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}

    .tabla-especificaciones thead {
        background-color: #f5f5f5;
    }

    .tabla-especificaciones th,
    .tabla-especificaciones td {
        padding: 12px 16px;
        border: 1px solid #e0e0e0;
        text-align: left;
    }

    .tabla-especificaciones th {
        font-weight: 600;
        color: #222;
    }

    .tabla-especificaciones tbody tr:nth-child(odd) {
        background-color: #fafafa;
    }

    .tabla-especificaciones tbody tr:hover {
        background-color: #f0f8ff;
        transition: background-color 0.3s;
    }

a i[data-feather="download"] {
    color: inherit;
    text-decoration: none;
}

a[data-download-icon] {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .layout-informativa {
        flex-direction: column;
    }

    .tabs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        min-width: unset;
    }

    .contenido-tabs {
        width: 100%;
    }

    .slider-galeria-producto {
        max-width: 100%;
    }

    .tabla-especificaciones th,
    .tabla-especificaciones td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .galeria-prev,
    .galeria-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .seccion-titulo {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .seccion-informativa {
        box-shadow: none;
        border: none;
    }
}

/* SECCIÓN INFORMACIÓN */

.info-bloque {
    margin-bottom: 30px;
}

.info-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

    .info-titulo i {
        color: #05a8ed;
        width: 24px;
        height: 24px;
    }

    .info-titulo strong {
        color: #05a8ed;
        font-weight: bold;
        font-size: 1.1em;
    }

/* SER CLIENTE */

.formulario-cliente {
    max-width: 100%;
    padding: 20px;
    margin-top: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
    text-align: left;
}

.form-grupo {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 14px;
    background-color: white;
}

    .form-grupo i {
        color: #05a8ed;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .form-grupo input,
    .form-grupo select,
    .form-grupo textarea {
        border: none;
        outline: none;
        font-size: 16px;
        width: 100%;
        background-color: transparent;
        color: #333;
        font-family: 'Montserrat', sans-serif;
    }

    .form-grupo select {
        appearance: none;
        padding-right: 20px;
    }

textarea {
    resize: vertical;
}

.form-boton {
    text-align: right;
}

    .form-boton button {
        background-color: #05a8ed;
        color: white;
        border: none;
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }

        .form-boton button:hover {
            background-color: #0486bf;
        }

/* whatsapp link*/

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

    .whatsapp-link:hover {
        text-decoration: underline;
        color: #25D366;
    }

/* succes page */

.confirmacion-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: #EBF0F5;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.confirmacion-titulo {
    color: #05a8ed;
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 10px;
}

.confirmacion-mensaje {
    color: #404F5E;
    font-size: 20px;
    margin: 0;
}

.confirmacion-check {
    color: #007bff;
    font-size: 100px;
    line-height: 200px;
    margin-left: -15px;
}

.confirmacion-circulo {
    border-radius: 200px;
    height: 200px;
    width: 200px;
    background: #05a8ed10;
    margin: 0 auto;
}

.confirmacion-card {
    background: white;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 3px #C8D0D8;
    display: inline-block;
    margin: 0 auto;
}

.volver {
    color: #05a8ed;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

    .volver:hover {
        text-decoration: underline;
        color: #007bff;
    }

/* error page */

.error-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: #EBF0F5;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.error-titulo {
    color: #e20000;
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 10px;
}

.error-mensaje {
    color: #404F5E;
    font-size: 20px;
    margin: 0;
}

.error-check {
    color: #e20000;
    font-size: 100px;
    line-height: 200px;
    margin-left: -15px;
}

.error-circulo {
    border-radius: 200px;
    height: 200px;
    width: 200px;
    background: #e2000010;
    margin: 0 auto;
}

.error-card {
    background: white;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 3px #C8D0D8;
    display: inline-block;
    margin: 0 auto;
}

.error-volver {
    color: #e20000;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

    .error-volver:hover {
        text-decoration: underline;
        color: #e92020;
    }

/* LOADER */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* TABLA STOCK */

#contenedorStock {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
}

#tituloStock {
    font-size: 28px;
    text-align: left;
    margin-bottom: 30px;
    font-weight: 600;
}

#buscarStock {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 2px solid #2980b9;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

    #buscarStock::placeholder {
        color: #95a5a6;
    }

    #buscarStock:focus {
        border-color: #1abc9c;
        box-shadow: 0 0 8px rgba(26, 188, 156, 0.4);
    }

#tablaStock {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
}

    #tablaStock th,
    #tablaStock td {
        padding: 14px 18px;
        text-align: left;
        border-bottom: 1px solid #ecf0f1;
        font-weight: 500;
        color: #34495e;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        vertical-align: top;
        min-height: 50px;
    }

    #tablaStock th {
        background-color: #2980b9;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    #tablaStock td {
        max-height: 120px;
        overflow-y: auto;
    }

        #tablaStock th:nth-child(2),
        #tablaStock td:nth-child(2) {
            width: 50%;
        }

    #tablaStock tbody tr:hover {
        background-color: #e3f7fa;
        transition: background-color 0.3s ease;
    }

.tarjeta-stock {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(41, 128, 185, 0.1);
    padding: 20px 25px;
    margin-bottom: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .tarjeta-stock:hover {
        box-shadow: 0 8px 30px rgba(26, 188, 156, 0.3);
        transform: translateY(-4px);
    }

    .tarjeta-stock .campo {
        margin-bottom: 12px;
        font-size: 15px;
        color: #2c3e50;
    }

        .tarjeta-stock .campo strong {
            color: #2980b9;
            font-weight: 700;
        }

@media (max-width: 768px) {
    #contenedorStock {
        padding: 25px;
    }

    #buscarStock {
        font-size: 15px;
        padding: 10px 12px;
    }

    #tablaStock th,
    #tablaStock td {
        font-size: 13px;
        padding: 10px 12px;
    }

    .tarjeta-stock {
        padding: 18px 20px;
    }

        .tarjeta-stock .campo {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    #contenedorStock {
        width: 90%;
        margin: 30px auto;
    }

    #tituloStock {
        font-size: 24px;
    }

    #buscarStock {
        font-size: 14px;
    }

    .tarjeta-stock {
        padding: 16px;
    }

        .tarjeta-stock .campo {
            font-size: 13.5px;
        }
}

/* PANEL ADMIN */

.admin-header {
    background: #222;
    color: white;
    padding: 0.6rem;
    text-align: center;
}

.admin-container {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.admin-section-title {
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.3rem;
    margin-top: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .admin-table th, .admin-table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: left;
    }

    .admin-table th {
        background: #eee;
    }

.admin-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

    .admin-form input,
    .admin-form select,
    .admin-form button {
        padding: 0.5rem;
        font-size: 1rem;
        font-family: Montserrat
    }

    .admin-form button {
        background: #007BFF;
        color: white;
        border: none;
        cursor: pointer;
    }

        .admin-form button:hover {
            background: #0056b3;
        }

.admin-pagination {
    margin-top: 1rem;
    text-align: center;
}

    .admin-pagination button {
        margin: 0 5px;
        padding: 0.5rem 1rem;
        border: none;
        background: #007BFF;
        color: white;
        cursor: pointer;
    }

        .admin-pagination button.active {
            background: #0056b3;
        }

/* MENSAJE DE EXITO ADMIN */

.admin-flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    overflow: hidden;
}

.admin-flash-container {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.admin-flash-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ICONOS MAS CHICOS PARA CELULARES DE HEADER */

@media (max-width: 768px) {
    .header__acciones i,
    .header__acciones svg {
        width: 22px !important;
        height: 22px !important;
        stroke-width: 2;
    }

    .header__acciones button,
    .header__acciones a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .header__buscador input,
    .buscador-movil__contenido input {
        font-size: 14px;
        padding: 6px 10px;
    }

    #cerrarBuscadorMovil {
        font-size: 18px;
        padding: 4px 8px;
    }

    .header__logo img.logo {
        width: 80px;
        height: auto;
    }
}

.btn-menu-movil {
    display: none;
}

@media (max-width: 768px) {
    .btn-menu-movil {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sesion-iniciada .btn-carrito:first-of-type {
        display: none;
    }

    .sesion-iniciada .btn-cerrar {
        display: none;
    }
}

/* DRAWER MOVILES */

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
}

.drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    animation: slideUp 0.3s ease-out;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    font-family: 'Montserrat', sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.drawer-handle {
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 5px;
    margin: 0 auto 10px;
}

.drawer .close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.drawer input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.drawer button {
    background-color: #007bff;
    color: #fff;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* LANDING */

.body-landing {
    background-color: white;
}

.landing {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1350px; 
    margin: 20px auto; 
    background-color: white;
    padding: 20px; 
    box-sizing: border-box; 
}

.landing-left, .landing-right {
    width: 48%;
    padding: 10px;
    box-sizing: border-box;
}

.landing-p1 {
    font-size: 13px;
    margin: 0;
    color: #05a8ed;
}

.landing-h1 {
    font-size: 30px;
    margin: 4px 0 0 0;
}

.landing-p2 {
    font-size: 15px;
    margin-top: 20px;
}

.landing-boton-container {
    margin-top: 20px;
}

.landing-boton {
    background-color: #128C7E;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .landing-boton:hover {
        background-color: #333;
        transform: translateX(10px);
    }

.landing-link-text {
    margin-top: 10px;
    font-size: 14px;
}

.landing-link {
    color: #05a8ed;
    text-decoration: none;
    transition: 0.5s;
}

    .landing-link:hover {
        color: #333;
    }

.landing-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-img {
    max-width: 70%;
    height: auto;
}

.landing-list {
    border-left: 4px solid #ccc; 
    padding-left: 15px;
    margin-top: 20px;
}

    .landing-list ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .landing-list li {
        font-size: 14px;
        margin-bottom: 8px;
    }


@media (max-width: 768px) {
    .landing {
        flex-direction: column;
        align-items: center;
    }

    .landing-left, .landing-right {
        width: 100%;
        padding: 10px 0;
    }

    .landing-right {
        display: none;
    }

    .landing-h1 {
        font-size: 26px;
        text-align: center;
    }

    .landing-p1, .landing-p2 {
        text-align: center;
    }

    .landing-p2 {
        font-size: 15px;
    }

    .landing-boton-container {
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .landing-list {
        border-left: none; 
        border-top: 4px solid #ccc; 
        padding-left: 0;
        padding-top: 10px; 
        margin: 15px auto; 
        max-width: 90%; 
        text-align: center; 
    }

        .landing-list li {
            font-size: 13px;
            margin-bottom: 6px;
        }
}

/* RESULTS CATALOGO */

.catalogo-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 15px;
    padding: 20px;
}

.catalogo-titulo {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.results-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.results-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .results-item a {
        color: inherit;
        text-decoration: none;
        display: block;
        height: 100%;
    }

    .results-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.results-codigo {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    margin-top: 10px;
}

.results-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f8f8f8;
}

    .results-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.results-item:hover img {
    transform: scale(1.05);
}

.results-detalle {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px;
    color: #555;
    line-height: 1.3;
}

.no-resultados {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    margin-top: 40px;
}

.line {
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .results-catalogo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 600px) {
    .results-catalogo {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ver-mas-btn {
    display: block;
    margin: 20px auto;
    margin-bottom: 35px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #05a8ed;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .ver-mas-btn:hover {
        background-color: #333;
    }

.results-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .results-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

.categoria-link {
    margin: 0 0 3px 0;
    font-size: 0.90rem;
    color: #05a8ed;
}

    .categoria-link a {
        text-decoration: none;
        color: #007bff;
    }

        .categoria-link a:hover {
            text-decoration: underline;
        }

















