
:root{

    --bg:#f4f6f8;
    --surface:#ffffff;

    --text:#101828;
    --muted:#667085;

    --border:#e4e7ec;

    --primary:#111827;
    --primary-hover:#202939;

    --green:#16a34a;
    --green-hover:#15803d;

    --radius:18px;

    --shadow:
        0 12px 30px rgba(16,24,40,.07);

    --shadow-hover:
        0 20px 45px rgba(16,24,40,.13);

}


*{
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
}


body{

    margin:0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color:var(--text);

    background:var(--bg);

}


a{
    color:inherit;
}


/* =====================================================
   HEADER
===================================================== */

.site-header{

    position:sticky;

    top:0;

    z-index:100;

    background:
        rgba(255,255,255,.94);

    border-bottom:
        1px solid rgba(228,231,236,.9);

    backdrop-filter:
        blur(12px);

}


.nav-wrap{

    max-width:1280px;

    height:76px;

    margin:auto;

    padding:
        0 24px;

    display:flex;

    justify-content:
        space-between;

    align-items:center;

}


.brand-area{

    display:flex;

    align-items:center;

    gap:12px;

    text-decoration:none;

}


.brand-symbol{

    width:43px;

    height:43px;

    border-radius:13px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--primary);

    color:#fff;

    font-weight:900;

    font-size:20px;

}


.brand-copy{

    display:flex;

    flex-direction:column;

}


.brand-copy strong{

    font-size:19px;

    line-height:1.15;

}


.brand-copy span{

    margin-top:3px;

    color:var(--muted);

    font-size:12px;

}


.main-nav{

    display:flex;

    align-items:center;

    gap:10px;

}


.main-nav a{

    text-decoration:none;

    padding:
        10px 15px;

    border-radius:10px;

    font-weight:650;

    font-size:14px;

}


.nav-whatsapp{

    background:#eaf8ef;

    color:#15783c;

}



/* =====================================================
   CONTENEDOR
===================================================== */

.container{

    max-width:1280px;

    margin:auto;

    padding:
        32px 24px 70px;

}



/* =====================================================
   HERO
===================================================== */

.market-hero{

    position:relative;

    overflow:hidden;

    border-radius:26px;

    padding:
        48px 48px;

    margin-bottom:30px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #101828 0%,
            #1f2937 55%,
            #344054 100%
        );

}


.market-hero:after{

    content:"";

    position:absolute;

    width:380px;

    height:380px;

    right:-100px;

    top:-160px;

    border-radius:50%;

    background:
        rgba(255,255,255,.06);

}


.hero-content{

    position:relative;

    z-index:2;

    max-width:680px;

}


.eyebrow{

    display:inline-block;

    margin-bottom:13px;

    font-size:13px;

    font-weight:800;

    letter-spacing:.08em;

    text-transform:uppercase;

    color:#d0d5dd;

}


.market-hero h1{

    margin:
        0 0 12px;

    font-size:
        clamp(
            32px,
            5vw,
            52px
        );

    line-height:1.04;

    letter-spacing:-.035em;

}


.market-hero p{

    max-width:620px;

    margin:
        0 0 28px;

    color:#e4e7ec;

    font-size:17px;

    line-height:1.55;

}


/* =====================================================
   SEARCH
===================================================== */

.search-box{

    max-width:620px;

    display:flex;

    background:#fff;

    padding:6px;

    border-radius:14px;

    box-shadow:
        0 12px 24px
        rgba(0,0,0,.15);

}


.search-box input{

    width:100%;

    border:0;

    outline:0;

    padding:
        13px 15px;

    font-size:15px;

    background:transparent;

    color:#101828;

}


.search-box button{

    border:0;

    cursor:pointer;

    border-radius:10px;

    padding:
        0 18px;

    background:var(--primary);

    color:#fff;

    font-weight:800;

}


/* =====================================================
   SECTION HEAD
===================================================== */

.section-head{

    display:flex;

    align-items:flex-end;

    justify-content:
        space-between;

    margin:
        35px 0 18px;

}


.section-head h2{

    margin:0;

    font-size:26px;

    letter-spacing:-.02em;

}


.section-head p{

    margin:
        6px 0 0;

    color:var(--muted);

    font-size:14px;

}


/* =====================================================
   CATEGORY PILLS
===================================================== */

.category-row{

    display:flex;

    gap:10px;

    overflow-x:auto;

    padding:
        2px 0 8px;

    scrollbar-width:none;

}


.category-row::-webkit-scrollbar{
    display:none;
}


.category-pill{

    border:
        1px solid var(--border);

    padding:
        10px 16px;

    background:#fff;

    border-radius:999px;

    white-space:nowrap;

    font-size:13px;

    font-weight:700;

}



/* =====================================================
   GRID
===================================================== */

.product-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(245px,1fr)
        );

    gap:20px;

}


/* =====================================================
   CARD
===================================================== */

.product-card{

    position:relative;

    overflow:hidden;

    background:var(--surface);

    border:
        1px solid var(--border);

    border-radius:var(--radius);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.product-card:hover{

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-hover);

}


.product-visual{

    position:relative;

    aspect-ratio:4 / 3;

    display:flex;

    justify-content:center;

    align-items:center;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #e9edf3
        );

    overflow:hidden;

}


.product-visual img{

    width:100%;

    height:100%;

    object-fit:contain;

    padding:18px;

}


.product-placeholder{

    width:82px;

    height:82px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:22px;

    background:#fff;

    box-shadow:
        0 8px 25px
        rgba(16,24,40,.09);

    font-size:35px;

}


.product-code{

    position:absolute;

    top:12px;

    left:12px;

    padding:
        6px 9px;

    border-radius:8px;

    background:
        rgba(255,255,255,.92);

    color:#344054;

    font-size:11px;

    font-weight:800;

}


.product-body{

    padding:
        17px 17px 18px;

}


.product-category{

    color:#667085;

    font-size:12px;

    font-weight:700;

    margin-bottom:7px;

}


.product-name{

    margin:0;

    min-height:46px;

    font-size:17px;

    line-height:1.3;

}


.product-price{

    margin:
        13px 0 16px;

    font-size:23px;

    font-weight:850;

    letter-spacing:-.02em;

}


.product-actions{

    display:grid;

    grid-template-columns:
        1fr auto;

    gap:8px;

}


.btn{

    border:0;

    cursor:pointer;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-weight:800;

    border-radius:11px;

    padding:
        12px 14px;

    transition:.18s ease;

}


.btn-primary{

    background:
        var(--primary);

    color:#fff;

}


.btn-primary:hover{

    background:
        var(--primary-hover);

}


.btn-whatsapp{

    background:#eaf8ef;

    color:#167743;

}


.btn-whatsapp:hover{

    background:#dcf5e5;

}



/* =====================================================
   PRODUCT DETAIL
===================================================== */

.product-detail{

    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(400px,.9fr);

    gap:36px;

    align-items:start;

}


.detail-image{

    min-height:520px;

    display:flex;

    justify-content:center;

    align-items:center;

    border:
        1px solid var(--border);

    border-radius:24px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #edf1f5
        );

}


.detail-image .product-placeholder{

    width:135px;

    height:135px;

    font-size:56px;

}


.detail-card{

    padding:34px;

    border:
        1px solid var(--border);

    border-radius:24px;

    background:#fff;

    box-shadow:
        var(--shadow);

}


.detail-category{

    color:var(--muted);

    text-transform:uppercase;

    letter-spacing:.05em;

    font-size:12px;

    font-weight:800;

}


.detail-card h1{

    margin:
        9px 0 7px;

    font-size:
        clamp(
            28px,
            4vw,
            40px
        );

    line-height:1.08;

    letter-spacing:-.035em;

}


.detail-code{

    color:
        var(--muted);

    font-size:14px;

}


.detail-price{

    margin:
        23px 0;

    font-size:34px;

    font-weight:900;

    letter-spacing:-.03em;

}


.detail-description{

    color:#475467;

    line-height:1.7;

    margin:
        0 0 26px;

}


.detail-actions{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}


.detail-actions .btn{

    min-height:48px;

}


/* =====================================================
   FOOTER
===================================================== */

.site-footer{

    background:#fff;

    border-top:
        1px solid var(--border);

}


.footer-inner{

    max-width:1280px;

    margin:auto;

    padding:
        28px 24px;

    display:flex;

    justify-content:
        space-between;

    gap:30px;

}


.footer-inner strong{

    font-size:17px;

}


.footer-inner p{

    margin:
        5px 0 0;

    color:
        var(--muted);

    font-size:13px;

}


.footer-right a{

    text-decoration:none;

    color:#15783c;

    font-weight:800;

}


/* =====================================================
   ADMIN
===================================================== */

.admin-card{

    padding:25px;

    margin-bottom:20px;

    background:#fff;

    border:
        1px solid var(--border);

    border-radius:18px;

}


.admin-menu{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}



/* =====================================================
   MOBILE
===================================================== */

@media(max-width:760px){

    .nav-wrap{

        height:68px;

        padding:
            0 16px;

    }

    .brand-copy span{
        display:none;
    }

    .main-nav a:first-child{
        display:none;
    }

    .container{

        padding:
            18px 14px 45px;

    }

    .market-hero{

        padding:
            34px 22px;

        border-radius:20px;

    }

    .market-hero h1{

        font-size:34px;

    }

    .product-grid{

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap:11px;

    }

    .product-body{

        padding:
            13px;

    }

    .product-name{

        font-size:15px;

        min-height:40px;

    }

    .product-price{

        font-size:19px;

    }

    .product-actions{

        display:block;

    }

    .product-actions .btn{

        width:100%;

        margin-top:6px;

    }

    .product-actions .btn-whatsapp{

        display:none;

    }

    .product-detail{

        grid-template-columns:1fr;

        gap:14px;

    }

    .detail-image{

        min-height:320px;

    }

    .detail-card{

        padding:22px;

    }

    .footer-inner{

        flex-direction:column;

    }

}


/* ===== MARKETPLACE COLOR VIVO ===== */

:root{
    --bg:#f6f8fc;
    --surface:#ffffff;

    --text:#172033;
    --muted:#667085;

    --border:#e3e8ef;

    --primary:#0d4f8b;
    --primary-hover:#083b69;

    --accent:#ff7a00;
    --accent-hover:#e96900;
    --accent-soft:#fff1e4;

    --green:#25d366;
    --green-hover:#1fb458;
}


/* HEADER */

.site-header{
    background:rgba(255,255,255,.96);
    border-bottom:1px solid #dfe6ee;
}

.brand-symbol{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #1976bd
        );

    box-shadow:
        0 7px 18px
        rgba(13,79,139,.22);
}

.brand-copy strong{
    color:var(--primary);
}

.nav-whatsapp{
    background:#eafaf0 !important;
    color:#148342 !important;
}


/* HERO */

.market-hero{
    background:
        linear-gradient(
            125deg,
            #083b69 0%,
            #0d4f8b 45%,
            #1674b7 100%
        );

    box-shadow:
        0 18px 45px
        rgba(13,79,139,.20);
}

.market-hero:before{
    content:"";

    position:absolute;

    width:260px;
    height:260px;

    left:-100px;
    bottom:-150px;

    border-radius:50%;

    background:
        rgba(255,122,0,.23);
}

.market-hero:after{
    background:
        rgba(255,255,255,.08);
}

.eyebrow{
    color:#ffd4ad;
}

.search-box button{
    background:var(--accent);
}

.search-box button:hover{
    background:var(--accent-hover);
}


/* TITULOS */

.section-head h2{
    color:#16324d;
}


/* CATEGORIAS */

.category-pill{
    border-color:#dce4ed;
    color:#42526a;
    transition:.2s ease;
}

.category-pill:first-child{
    background:var(--accent);
    border-color:var(--accent);
    color:#fff;
}

.category-pill:hover{
    border-color:var(--accent);
    color:var(--accent);
    background:var(--accent-soft);
}


/* TARJETAS */

.product-card{
    border-color:#e0e6ed;
}

.product-card:hover{
    border-color:#b7d1e8;
}

.product-visual{
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #edf4fa
        );
}

.product-placeholder{
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eef5fb
        );

    color:var(--primary);
}

.product-code{
    background:var(--accent-soft);
    color:#c45800;
}

.product-category{
    color:var(--primary);
}

.product-price{
    color:#16283d;
}


/* BOTONES */

.btn-primary{
    background:var(--primary);
}

.btn-primary:hover{
    background:var(--primary-hover);
}

.btn-whatsapp{
    background:#e9faef;
    color:#168444;
}

.btn-whatsapp:hover{
    background:#d6f7e1;
}


/* DETALLE PRODUCTO */

.detail-image{
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf5fb
        );
}

.detail-category{
    color:var(--primary);
}

.detail-price{
    color:var(--primary);
}


/* FOOTER */

.site-footer{
    border-top:
        4px solid var(--accent);
}


/* MOVIL */

@media(max-width:760px){

    .market-hero{
        background:
            linear-gradient(
                145deg,
                #083b69,
                #1269aa
            );
    }

}


/* ===== BOTON COMPARTIR ===== */

.btn-share{
    background:#fff1e4;
    color:#c45800;
    border:1px solid #ffd5ad;
}

.btn-share:hover{
    background:#ffe5cc;
    color:#a84900;
}

