:root{
    --bg:#0b0b0b;
    --surface:#141414;
    --surface-2:#1a1a1a;
    --border:#222;
    --accent:#00bfff;
    --accent-dark:#0099cc;
    --accent-gradient:linear-gradient(135deg,#00bfff,#0077e6);
    --text-muted:#bbb;
    --radius:16px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

body{
    background:var(--bg);
    color:white;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -webkit-tap-highlight-color:transparent;
}

img{
    max-width:100%;
}

/* NAVBAR */

.navbar{
    width:100%;
    height:80px;
    background:rgba(13,13,13,0.82);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 60px;
    position:fixed;
    top:0;
    z-index:1000;
    border-bottom:1px solid rgba(255,255,255,0.06);
    transition:0.4s;
    gap:24px;
}

.navbar.is-scrolled{
    background:rgba(8,8,8,0.92);
    box-shadow:0 5px 20px rgba(0,0,0,0.5);
    height:75px;
}

.logo{
    font-size:28px;
    color:#00bfff;
   font-family: 'Montserrat', bold, sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height:1.1;
    min-width:0;

}

.nav-links{
    display:flex;
    gap:35px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-size:15px;
    transition:0.3s;
}

.nav-links a:hover{
    color:#00bfff;
}

.nav-icons{
    display:flex;
    gap:25px;
    font-size:18px;
    cursor:pointer;
    align-items:center;
    flex:0 0 auto;
}

.menu-toggle{
    display:none;
    font-size:24px;
    cursor:pointer;
    color:white;
}

/* HERO SLIDER */

.hero-slider{
    width:100%;
    height:100vh;
    position:relative;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 1s ease-in-out;
}

.slide.active{
    opacity:1;
    z-index:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    filter:brightness(80%);
}

.slide::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.15) 55%,transparent 100%);
    pointer-events:none;
}

.slide.addi-slide{
    background:#0046bb;
}

.slide.addi-slide::after{
    display:none;
}

.slide.addi-slide img{
    object-fit:contain;
    filter:none;
    background:#0046bb;
}

.slide.summer-slide img{
    filter:brightness(90%);
}

.slide-content{
    position:absolute;
    top:50%;
    left:80px;
    transform:translateY(-50%);
    z-index:2;
    max-width:600px;
}

.slide-badge{
    display:inline-block;
    margin-bottom:18px;
    padding:8px 18px;
    border-radius:30px;
    background:rgba(255,178,71,0.16);
    border:1px solid rgba(255,178,71,0.45);
    color:#ffcf6e;
    font-size:14px;
    font-weight:600;
    letter-spacing:0.5px;
}

.slide-content h1,
.slide-content h2{
    font-size:clamp(34px,5vw,70px);
    line-height:1.12;
    margin-bottom:20px;
    text-shadow:0 4px 24px rgba(0,0,0,0.45);
}

.slide-content p{
    font-size:18px;
    color:#ddd;
    margin-bottom:30px;
}

.slide-content button{
    padding:16px 35px;
    background:var(--accent-gradient);
    border:none;
    border-radius:12px;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 10px 26px rgba(0,150,255,0.35);
}

.slide-content button:hover{
    transform:translateY(-3px);
    filter:brightness(1.1);
}

/* BOTONES DEL SLIDER */

.slider-buttons{
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    transform:translateY(-50%);
    display:flex;
    justify-content:space-between;
    padding:0 20px;
    z-index:5;
}

.slider-buttons button{
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.15);
    color:white;
    font-size:24px;
    cursor:pointer;
    backdrop-filter:blur(5px);
    transition:0.3s;
}

.slider-buttons button:hover{
    background:#00bfff;
}

/* CATEGORIAS */

.categories{
    padding:100px 80px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.category-card{
    height:350px;
    border-radius:20px;
    overflow:hidden;
    position:relative;
    cursor:pointer;
    display:block;
    color:white;
    text-decoration:none;
}

.category-card:focus-visible{
    outline:3px solid #00bfff;
    outline-offset:4px;
}

.category-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s;
}

.category-card:hover img{
    transform:scale(1.1);
}

.category-info{
    position:absolute;
    bottom:0;
    width:100%;
    padding:25px;
    background:linear-gradient(transparent,rgba(0,0,0,0.9));
}

.category-info h3{
    font-size:28px;
}

/* PRODUCTOS */

.products{
    padding:0 80px 100px;
}

.section-title{
    margin-bottom:40px;
}

.section-title h2{
    font-size:clamp(28px,4vw,40px);
    position:relative;
    display:inline-block;
    padding-bottom:12px;
}

.section-title h2::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:64px;
    height:4px;
    border-radius:4px;
    background:var(--accent-gradient);
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    justify-content:center;
    gap:24px;
}

.product-card{
    background:linear-gradient(180deg,#161616,#101010);
    border-radius:var(--radius);
    overflow:hidden;
    transition:0.4s;
    border:1px solid #222;
    min-width:0;
}

.product-card:hover{
    transform:translateY(-10px);
    border-color:#00bfff;
    box-shadow:0 18px 40px rgba(0,150,255,0.12);
}

.product-image{
    display:block;
    aspect-ratio:1 / 1;
    overflow:hidden;
    background:#0d0d0d;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:0.5s;
}

.product-card:hover img{
    transform:scale(1.08);
}

.product-info{
    padding:20px;
}

.product-info h3{
    margin-bottom:10px;
    min-height:48px;
    line-height:1.35;
}

.price{
    color:#00bfff;
    font-size:22px;
    font-weight:600;
    margin-bottom:20px;
}

.product-info button,
.product-info .consult-price-btn{
    width:100%;
    min-height:46px;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#00bfff;
    color:white;
    cursor:pointer;
    transition:0.3s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.product-info button:hover,
.product-info .consult-price-btn:hover{
    background:#0099cc;
}

/* MARCAS */

.brands{
    padding:100px 80px;
    text-align:center;
}

.brands h2{
    font-size:40px;
    margin-bottom:50px;
}

.brands-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:25px;
}

.brand-card{
    background:#141414;
    border:1px solid #222;
    border-radius:16px;
    padding:35px 20px;
    font-size:22px;
    font-weight:600;
    transition:0.3s;
    cursor:pointer;
}

.brand-card:hover{
    border-color:#00bfff;
    color:#00bfff;
    transform:translateY(-5px);
}

/* FOOTER */

footer{
    background:#111;
    border-top:1px solid #222;
    margin-top:50px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
    padding:60px 80px;
}

.footer-column h3{
    margin-bottom:20px;
    color:#00bfff;
}

.footer-column p{
    color:#bbb;
    line-height:1.8;
}

.footer-column a{
    display:block;
    text-decoration:none;
    color:#bbb;
    margin-bottom:12px;
    transition:0.3s;
}

.footer-column a:hover{
    color:#00bfff;
}

.footer-bottom{
    text-align:center;
    padding:20px;
    border-top:1px solid #222;
    color:#888;
}

/* ANIMACIONES */

.hidden{
    opacity:0;
    transform:translateY(50px);
    transition:all 1s;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* EFECTO RIPPLE */

button{
    position:relative;
    overflow:hidden;
}

.ripple{
    position:absolute;
    border-radius:50%;
    transform:scale(0);
    animation:ripple-animation 600ms linear;
    background:rgba(255,255,255,0.4);
}

@keyframes ripple-animation{
    to{
        transform:scale(4);
        opacity:0;
    }
}

/* RESPONSIVE GENERAL */

@media(max-width:900px){

    .navbar{
        padding:0 20px;
    }

    .logo{
        font-size:18px;
    }

    .menu-toggle{
        display:block;
    }

    .nav-links{
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:#111;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:25px;
        padding:30px 0;
        border-top:1px solid #222;

        opacity:0;
        visibility:hidden;
        transform:translateY(-20px);
        transition:0.3s;
    }

    .nav-links.active{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    .slide-content{
        left:20px;
        right:20px;
    }

    .slide-content h1,
    .slide-content h2{
        font-size:45px;
        line-height:55px;
    }

    .categories,
    .products,
    .brands{
        padding:60px 20px;
    }

    .category-card{
        height:300px;
    }

    .footer-container{
        padding:40px 20px;
    }

    .flash-sale{
    padding:60px 20px;
}

.flash-sale h2{
    font-size:34px;
}

.time-box{
    width:100px;
}

.time-box span{
    font-size:32px;
}

}

/* ========================= */
/* OFERTA FLASH */
/* ========================= */

.flash-sale{
    padding:100px 80px;
    text-align:center;
    background:linear-gradient(
        135deg,
        #111,
        #161616
    );
    border-top:1px solid #222;
    border-bottom:1px solid #222;
}

.flash-content{
    max-width:1000px;
    margin:auto;
}

.flash-badge{
    display:inline-block;
    background:linear-gradient(135deg,#ff9a3d,#ffc266);
    color:#1a1104;
    padding:10px 20px;
    border-radius:30px;
    font-size:14px;
    font-weight:700;
    margin-bottom:25px;
}

.flash-sale h2{
    font-size:48px;
    margin-bottom:20px;
}

.flash-sale p{
    color:#bbb;
    font-size:18px;
    margin-bottom:40px;
}

.countdown{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
    margin-bottom:40px;
}

.time-box{
    width:130px;
    background:#1a1a1a;
    border:1px solid #222;
    border-radius:18px;
    padding:25px 10px;
    transition:0.3s;
}

.time-box:hover{
    border-color:#00bfff;
    transform:translateY(-5px);
}

.time-box span{
    display:block;
    font-size:42px;
    font-weight:700;
    color:#00bfff;
}

.time-box small{
    display:block;
    margin-top:10px;
    color:#bbb;
    font-size:14px;
}

.flash-btn{
    padding:16px 40px;
    border:none;
    border-radius:12px;
    background:var(--accent-gradient);
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 10px 26px rgba(0,150,255,0.25);
}

.flash-btn:hover{
    filter:brightness(1.1);
    transform:translateY(-3px);
}

/* ========================= */
/* CARRITO LATERAL */
/* ========================= */

.cart-sidebar{
    position:fixed;
    top:0;
    right:0;
    width:420px;
    max-width:100%;
    height:100vh;
    background:#111;
    z-index:3000;

    display:flex;
    flex-direction:column;

    border-left:1px solid #222;

    transform:translateX(100%);
    transition:transform 0.4s ease;

    box-shadow:
    -10px 0 30px rgba(0,0,0,0.4);
}

.cart-sidebar.active{
    transform:translateX(0);
}

/* HEADER */

.cart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px;

    border-bottom:1px solid #222;
}

.cart-header h2{
    font-size:24px;
    color:#00bfff;
}

#close-cart{
    width:40px;
    height:40px;

    border:none;
    border-radius:50%;

    background:#1a1a1a;
    color:white;

    cursor:pointer;

    transition:0.3s;
}

#close-cart:hover{
    background:#00bfff;
}

/* PRODUCTOS */

.cart-items{
    flex:1;
    overflow-y:auto;
    padding:20px;
}

.cart-item{
    background:#181818;

    border:1px solid #222;

    border-radius:15px;

    padding:15px;

    margin-bottom:15px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.cart-item-image{
    width:58px;
    height:58px;
    border-radius:10px;
    object-fit:cover;
    background:#0d0d0d;
}

.cart-item-info h4{
    margin-bottom:6px;
    font-size:16px;
    line-height:1.3;
}

.cart-item-info p{
    color:#00bfff;
    font-weight:600;
}

.remove-item{
    background:#ff3b30;
    color:white;

    border:none;

    width:35px;
    height:35px;

    border-radius:50%;

    cursor:pointer;

    transition:0.3s;
}

.remove-item:hover{
    transform:scale(1.1);
}

/* FOOTER */

.cart-footer{
    padding:25px;

    border-top:1px solid #222;

    background:#0f0f0f;
}

#clear-cart{
    width:100%;
    min-height:44px;
    margin-bottom:12px;
    border:1px solid #333;
    border-radius:10px;
    background:#181818;
    color:#fff;
    cursor:pointer;
}

#clear-cart:hover{
    border-color:#00bfff;
    color:#00bfff;
}

.cart-footer h3{
    margin-bottom:20px;
    color:white;
}

#cart-total{
    color:#00bfff;
}

.checkout-btn{
    width:100%;

    padding:15px;

    border:none;

    border-radius:12px;

    background:#00bfff;

    color:white;

    font-size:16px;
    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.checkout-btn:hover{
    background:#0099cc;
}

/* OVERLAY */

.cart-overlay{
    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.6);

    opacity:0;
    visibility:hidden;

    transition:0.3s;

    z-index:2500;
}

.cart-overlay.active{
    opacity:1;
    visibility:visible;
}

/* SCROLL PERSONALIZADO */

.cart-items::-webkit-scrollbar{
    width:8px;
}

.cart-items::-webkit-scrollbar-track{
    background:#111;
}

.cart-items::-webkit-scrollbar-thumb{
    background:#00bfff;
    border-radius:20px;
}

/* RESPONSIVE */

@media(max-width:500px){

    .cart-sidebar{
        width:100%;
    }

}

/* CONTADOR DEL CARRITO */

.cart-icon-container{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    cursor:pointer;
}

.cart-icon-container i{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
}

#cart-count{
    position:absolute;
    top:-10px;
    right:-12px;

    min-width:20px;
    height:20px;

    background:#ff3b30;
    color:white;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:11px;
    font-weight:700;

    padding:0 5px;
}

/* ========================= */
/* BUSCADOR */
/* ========================= */

.search-container{
    display:flex;
    align-items:center;
    gap:10px;

    background:#1a1a1a;

    padding:8px 15px;

    border-radius:30px;

    border:1px solid #222;
}

.search-container input{

    background:transparent;

    border:none;

    outline:none;

    color:white;

    width:180px;
}

.search-container input::placeholder{

    color:#888;

}

.search-container:focus-within{

    border-color:#00bfff;

}

@media(max-width:900px){

    .search-container input{

        width:100px;

    }

}

.hidden-product{
    display:none;
}

.quantity-controls{

    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;

}

.quantity-controls button{

    width:30px;
    height:30px;

    border:none;

    border-radius:6px;

    background:#00bfff;

    color:white;

    cursor:pointer;

    font-weight:bold;

}

#toast{

    position: fixed;

    top: 20px;
    right: 20px;

    background: #111;
    color: white;

    padding: 15px 25px;

    border-radius: 10px;

    font-weight: 500;

    opacity: 0;

    transform: translateY(-20px);

    transition: .3s;

    z-index: 9999;

}

#toast.show{

    opacity: 1;

    transform: translateY(0);

}

.logo{
    text-decoration:none;
    font-weight:800;
    background:linear-gradient(90deg,#00bfff,#4dd8ff);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:#00bfff;
}

.global-search{

    padding:10px 15px;

    border:1px solid #222;

    border-radius:30px;

    width:220px;

    background:#1a1a1a;

    color:white;

    outline:none;

}

.global-search::placeholder{
    color:#888;
}

.global-search:focus{
    border-color:#00bfff;
}

.offer-card button{
    width:calc(100% - 40px);
    margin:0 20px 20px;
}

/* ========================= */
/* ATENCION AL CLIENTE */
/* ========================= */

.customer-page{
    max-width:1100px;
    margin:0 auto;
    padding:130px 20px 70px;
}

.customer-hero{
    margin-bottom:34px;
}

.customer-hero span{
    display:inline-block;
    margin-bottom:12px;
    color:#00bfff;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
}

.customer-hero h1{
    font-size:42px;
    line-height:1.15;
    margin-bottom:14px;
}

.customer-hero p{
    max-width:760px;
    color:#bbb;
    line-height:1.8;
}

.customer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:18px;
}

.customer-card,
.faq-item{
    background:#141414;
    border:1px solid #222;
    border-radius:12px;
    padding:22px;
}

.customer-card h2,
.faq-item h2{
    color:#00bfff;
    font-size:20px;
    margin-bottom:12px;
}

.customer-card p,
.customer-card li,
.faq-item p{
    color:#ddd;
    line-height:1.7;
}

.customer-card ul{
    padding-left:18px;
}

.faq-list{
    display:grid;
    gap:16px;
}

.customer-note{
    margin-top:24px;
    padding:20px;
    border-left:4px solid #00bfff;
    background:#101820;
    color:#ddd;
    line-height:1.7;
}

@media(max-width:640px){
    .navbar{
        padding:0 14px;
        height:70px;
        gap:10px;
    }

    .navbar.is-scrolled{
        height:70px;
    }

    .logo{
        max-width:190px;
        font-size:13px;
        letter-spacing:.8px;
    }

    .nav-icons{
        gap:12px;
        font-size:17px;
    }

    .nav-icons .fa-user{
        display:none;
    }

    .menu-toggle{
        font-size:24px;
    }

    .nav-links{
        top:70px;
    }

    .global-search,
    .search-container{
        display:none;
    }

    .hero-slider{
        height:100svh;
        min-height:640px;
        max-height:760px;
        background:#050505;
    }

    .slide img{
        object-fit:contain;
        object-position:center bottom;
        background:#050505;
        filter:brightness(68%);
    }

    .slide.addi-slide img{
        background:#0046bb;
        filter:none;
    }

    .slide.summer-slide img{
        object-fit:cover;
        filter:brightness(85%);
    }

    .slide-content{
        top:44%;
        left:18px;
        right:18px;
        max-width:420px;
    }

    .slider-buttons{
        top:auto;
        bottom:24px;
        transform:none;
        justify-content:center;
        gap:18px;
        padding:0 18px;
        pointer-events:none;
    }

    .slider-buttons button{
        width:52px;
        height:52px;
        pointer-events:auto;
    }

    .slide-content h1,
    .slide-content h2{
        font-size:32px;
        line-height:40px;
    }

    .slide-badge{
        font-size:12px;
        padding:6px 14px;
        margin-bottom:12px;
    }

    .slide-content p{
        font-size:16px;
        max-width:310px;
    }

    .slide-content button{
        width:100%;
        max-width:260px;
        min-height:56px;
    }

    .products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
    }

    .categories{
        grid-template-columns:1fr;
    }

    .category-card{
        height:230px;
    }

    .category-info h3{
        font-size:24px;
        overflow-wrap:anywhere;
    }

    .product-info{
        padding:14px;
    }

    .product-info h3{
        font-size:15px;
        min-height:42px;
    }

    .price{
        font-size:17px;
    }

    .product-info button,
    .product-info .consult-price-btn{
        padding:12px 10px;
        font-size:13px;
        min-height:44px;
    }

    .cart-header,
    .cart-footer{
        padding:18px;
    }

    .cart-items{
        padding:14px;
    }

    .cart-item{
        align-items:flex-start;
    }

    .cart-item-info{
        min-width:0;
    }

    .cart-item-info h4{
        font-size:14px;
    }

    .remove-item{
        width:32px;
        height:32px;
        flex:0 0 auto;
    }

    #toast{
        left:14px;
        right:14px;
        top:82px;
        text-align:center;
    }

    .customer-page{
        padding-top:105px;
    }

    .customer-hero h1{
        font-size:32px;
    }
}

