body{margin:0;font-family:Arial,sans-serif;background:#f4f6f9;color:#222}

/*================ HEADER =================*/

.header{
    position:sticky;
    top:0;
    z-index:9999;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.topHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 5%;
    gap:30px;
}

.logo img{
    height:65px;
    display:block;
}

.searchBox{
    flex:1;
    display:flex;
    align-items:center;
    background:#f4f4f4;
    border-radius:50px;
    padding:0 20px;
}

.searchBox i{
    color:#888;
    margin-right:10px;
}

.searchBox input{
    width:100%;
    border:none;
    background:none;
    height:42px;
    outline:none;
    font-size:16px;
}

.headerIcons{
    display:flex;
    gap:25px;
    align-items:center;
}

.headerIcons a{
    color:#0b3b86;
    text-decoration:none;
    font-size:24px;
    position:relative;
    transition:.3s;
}

.headerIcons a:hover{
    color:#18a0fb;
}

.headerIcons span{
    position:absolute;
    top:-8px;
    right:-10px;
    width:18px;
    height:18px;
    background:#ff3b30;
    color:#fff;
    border-radius:50%;
    font-size:11px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.menu{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    padding:12px;
    border-top:1px solid #ececec;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top;
}

.menu a{
    color:#333;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.menu a:hover{
    color:#0b3b86;
}

/* BOTÓN CÁPSULA FUCSIA NEÓN +18 */
.btnMenu18 {
    background: linear-gradient(135deg, #e60067, #ff0073) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 0 10px rgba(230, 0, 103, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btnMenu18:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 16px rgba(255, 0, 115, 0.8) !important;
}

.menu.oculto{
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

@media(max-width:900px){
.topHeader{
    flex-direction:column;
}

.searchBox{
    width:100%;
}

.menu{
    flex-wrap:wrap;
    gap:15px;
}

.logo img{
    height:60px;
}
}

.search{max-width:900px;margin:30px auto;display:flex;gap:10px;padding:0 15px}
.search input,.search select{flex:1;padding:14px;border-radius:10px;border:1px solid #ccc}

/* ===== CATÁLOGO CON GRILLA ESTÁTICA Y ALTURA DINÁMICA ===== */
.wrapperCatalogoSlider {
    width: 100%;
    position: relative;
    padding: 10px 0;
    height: auto !important;
}

.sliderCatalogoTrack {
    width: 100%;
    height: auto !important;
}

.paginaCatalogo {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 5%;
    align-items: start;
    height: auto !important;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto !important;
    width: 100%;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff;
    padding: 8px;
    box-sizing: border-box;
}

.info {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.info p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 8px 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge{display:inline-block;background:#ef4444;color:#fff;padding:5px 10px;border-radius:20px;font-size:12px}
.price{font-size:30px;color:#0ea5a0;font-weight:bold;margin:12px 0}
.old{text-decoration:line-through;color:#888;font-size:15px}
.buttons{display:flex;gap:10px; margin-top: auto;}
.buttons a{flex:1;text-align:center;padding:12px;border-radius:10px;color:#fff;text-decoration:none}
.wa{background:#25D366}.more{background:#0ea5a0}

/* ===== PAGINACIÓN ===== */
#contenedorPaginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0 30px 0 !important;
    padding: 0;
    flex-wrap: wrap;
    width: 100%;
}

.btnPagina {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #0b3b86;
    background: #ffffff;
    color: #0b3b86;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btnPagina:hover {
    background: #e2e8f0;
}

.btnPagina.activa {
    background: #0b3b86;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .paginaCatalogo {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .paginaCatalogo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .paginaCatalogo {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*================ FOOTER ================*/

footer{
    text-align:center;
    padding:35px 20px;
    background:#0b1325;
    color:#a0aec0;
    margin-top:30px;
    font-size:12px;
    line-height:1.6;
}

.footer-categories {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-categories h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-links {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    line-height: 1.8;
}

.cat-links a,
.cat-links a:visited {
    color: #a0aec0 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0 4px;
}

.cat-links a:hover,
.cat-links a:focus {
    color: #0ea5a0 !important;
    text-decoration: underline;
}

/*============== SLIDER COMPLETO SIN CORTE ARRIBA/ABAJO ==============*/

.slider{
    position:relative;
    width:100%;
    height: auto !important;
    overflow:hidden;
}

.sliderTrack{
    display:flex;
    width:100%;
    height:100%;
    transition:transform 0.6s ease-in-out;
}

.slide{
    width:100%;
    min-width:100%;
    max-width:100%;
    height:auto !important;
    position:relative;
    flex:0 0 100%;
    box-sizing:border-box;
}

.slide img{
    width:100% !important;
    height:auto !important;
    display:block;
}

.slide::before{
content:"";
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,.25);
z-index:1;
}

.caption{
    position:absolute;
    top:50%;
    left:8%;
    transform:translateY(-50%);
    color:white;
    max-width:550px;
    z-index:2;
}

.caption h2{
    font-size:52px;
    margin-bottom:20px;
}

.caption p{
    font-size:22px;
    margin-bottom:35px;
}

.btnSlider{
    background:#0b3b86;
    color:white;
    text-decoration:none;
    padding:18px 35px;
    border-radius:50px;
    display:inline-block;
    transition:.3s;
    font-weight:bold;
    letter-spacing:.5px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.btnSlider:hover{
    background:#18a0fb;
}

/* BOTONES DE NAVEGACIÓN SLIDER */
.btnNavSlider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 59, 134, 0.75);
    color: #ffffff;
    border: none;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider:hover .btnNavSlider {
    opacity: 1;
    visibility: visible;
}

.btnNavSlider:hover {
    background: #0b3b86;
    transform: translateY(-50%) scale(1.12);
}

.btnNavSlider.prev {
    left: 20px;
}

.btnNavSlider.next {
    right: 20px;
}

/*=============================
        CATEGORÍAS
==============================*/

.categorias{
    padding:20px 5% 40px 5%;
    background:white;
}

.categorias h2{
    text-align:center;
    font-size:34px;
    margin-top:0;
    margin-bottom:25px;
    color:#0b3b86;
}

.catGrid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:20px;
}

.categoria{
    flex:1;
    background:white;
    border-radius:20px;
    padding:35px 15px;
    text-decoration:none;
    color:#333;
    text-align:center;
    transition:.35s;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.categoria:hover{
    transform:translateY(-10px);
    background:#0b3b86;
    color:white;
}

.categoria i{
    font-size:45px;
    margin-bottom:20px;
}

.categoria span{
    display:block;
    font-weight:bold;
}

.verCategorias{
    margin-top:35px;
    text-align:center;
}

.verCategorias a{
    display:inline-block;
    text-decoration:none;
    color:#0b3b86;
    font-size:18px;
    font-weight:600;
    padding:12px 28px;
    border:2px solid #0b3b86;
    border-radius:40px;
    transition:.3s;
}

.verCategorias a:hover{
    background:#0b3b86;
    color:#fff;
}

/* ===== MODAL DETALLE DE PRODUCTO ===== */

.modalProducto{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
}

.modalContenido{
    background:#fff;
    width:100%;
    max-width:1150px;
    border-radius:18px;
    overflow:hidden;
    display:grid;
    grid-template-columns:58% 42%;
    position:relative;
    animation:modalEntrada .30s ease;
    max-height:90vh;
    overflow-y:auto;
}

.modalImagen{
    background:#fafafa;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:25px;
}

.modalMainImgWrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btnNavModal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 59, 134, 0.7);
    color: #ffffff;
    border: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btnNavModal:hover {
    background: #0b3b86;
    transform: translateY(-50%) scale(1.1);
}

.btnNavModal.prev {
    left: 10px;
}

.btnNavModal.next {
    right: 10px;
}

.modalImagen img{
    width:100%;
    max-width:520px;
    height:420px;
    object-fit:contain;
    transition:.35s;
}

.modalInfo{
    padding:35px;
}

.modalInfo h2{
    font-size:30px;
    margin-bottom:15px;
}

.precioModal{
    font-size:34px;
    color:#16a34a;
    font-weight:bold;
    margin-bottom:20px;
}

.modalInfo p{
    line-height:1.7;
    color:#555;
    margin-bottom:30px;
}

.btnWhatsapp{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#25D366;
    color:white;
    text-decoration:none;
    padding:14px 28px;
    border-radius:10px;
    font-size:18px;
    transition:.3s;
}

.btnWhatsapp:hover{
    transform:scale(1.05);
}

.cerrarModal{
    position:absolute;
    top:15px;
    right:15px;
    width:36px;
    height:36px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:#f1f5f9;
    font-size:24px;
    cursor:pointer;
    z-index:1000;
    transition:.3s;
    color:#333;
}

.cerrarModal:hover{
    color:#d60000;
    background:#e2e8f0;
}

@keyframes modalEntrada{
    from{
        opacity:0;
        transform:scale(.9);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

.miniaturas{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:20px;
    flex-wrap:wrap;
}

.miniaturas img{
    width:82px;
    height:82px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    border:3px solid transparent;
    transition:.30s;
}

.miniaturas img:hover{
    transform:translateY(-4px);
    border-color:#0b3b86;
}

.miniaturas img.activa{
    border-color:#0b3b86;
    box-shadow:0 8px 20px rgba(11,59,134,.25);
}

.thumbVideoWrap {
    position: relative;
    display: inline-block;
}

.thumbVideoWrap i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 22px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    pointer-events: none;
}

.modalEspecificacion{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid #ececec;
    font-size:15px;
}

.modalEspecificacion span:first-child{
    color:#666;
    font-weight:600;
}

.modalEspecificacion span:last-child{
    color:#222;
    font-weight:bold;
}

#modalEstadoArticulo{
    background:#fff8e1;
    border-left:5px solid #ff9800;
    padding:12px;
    border-radius:8px;
    margin:15px 0;
    font-size:15px;
    font-weight:500;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVE MODAL PRODUCTO
   ========================================== */

@media (max-width: 768px) {
    .modalProducto {
        align-items: center !important;
        padding: 15px !important;
    }

    .modalContenido {
        grid-template-columns: 1fr !important;
        max-height: 92vh !important;
        width: 95% !important;
        border-radius: 14px !important;
    }

    .modalImagen {
        padding: 15px !important;
    }

    .modalImagen img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 260px !important;
    }

    .btnNavModal {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }

    .btnNavModal.prev { left: 5px !important; }
    .btnNavModal.next { right: 5px !important; }

    .miniaturas {
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .miniaturas img {
        width: 52px !important;
        height: 52px !important;
        border-radius: 8px !important;
    }

    .modalInfo {
        padding: 20px !important;
    }

    .modalInfo h2 {
        font-size: 22px !important;
    }

    .precioModal {
        font-size: 26px !important;
    }

    .btnNavSlider {
        opacity: 1 !important;
        visibility: visible !important;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .btnNavSlider.prev { left: 8px; }
    .btnNavSlider.next { right: 8px; }
}

/* ==========================================
   FIX MODALES CORTOS EN MÓVILES
   ========================================== */

.modalContenido.modalCorto {
    display: block !important;
    max-width: 480px !important;
    width: 90% !important;
    height: auto !important;
    max-height: 85vh !important;
    padding: 24px !important;
    margin: auto !important;
    border-radius: 18px !important;
    text-align: center;
    box-sizing: border-box;
}

/* ==========================================
   BANNER ALIEXPRESS CON EFECTO DE BRILLO
   ========================================== */

.bannerAliExpress {
    position: relative;
    width: 92%;
    max-width: 1000px;
    margin: 20px auto 10px auto;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bannerAliExpress::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    animation: brilloSliding 3.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 5;
}

@keyframes brilloSliding {
    0% {
        left: -150%;
    }
    35% {
        left: 180%;
    }
    100% {
        left: 180%;
    }
}

.bannerAliImagen {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.botonBannerAli {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 10px 18px;
    background: #25D366;
    border-radius: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s ease;
}

.botonBannerAli:hover,
.botonBannerAli:active {
    background: #1ebe5d;
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .bannerAliExpress {
        width: 95%;
        margin: 15px auto 10px auto;
        background: #fff;
        padding-bottom: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .bannerAliImagen {
        border-radius: 20px 20px 0 0;
    }

    .botonBannerAli {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 12px;
        width: 90%;
        padding: 10px 0;
        font-size: 13px;
        border-radius: 25px;
    }
}

/* ==========================================
   MENÚ DESPLEGABLE HORIZONTAL MARCAS
   ========================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdownToggle {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.dropdownToggle:hover {
    color: #0b3b86;
}

.dropdownMenu.horizontal {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    padding: 8px 15px;
    z-index: 10000;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.dropdownMenu.horizontal a {
    color: #334155;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdownMenu.horizontal a:hover {
    background-color: #0b3b86;
    color: #ffffff;
}

.dropdown:hover .dropdownMenu.horizontal {
    display: flex;
    animation: dropdownEntrada 0.25s ease forwards;
}

@keyframes dropdownEntrada {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}