  *{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',Tahoma,sans-serif;
}

body{
background:#f6f7fb;
color:#222;
}
/* =========================
   PRODUCTO PRINCIPAL
========================= */
.contenedor-producto{
    max-width:900px;
    margin:30px auto;
    background:#fff;
    border-radius:12px;
    display:flex;
    gap:30px;
    padding:25px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}


/* IMAGEN PRINCIPAL */
.imagen-producto{
    flex: 1;
    min-width: 320px;
    max-width: 550px;
    background: #fff;
    border-radius: 16px;

    overflow: visible; /* 🔥 clave */

    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-producto img{
    width: 100%;
    height: auto;        /* 🔥 evita recorte */
    max-height: 500px;   /* opcional */
    object-fit: contain; /* mantiene toda la imagen */
    display: block;
    margin: auto;
}


/* INFO PRODUCTO */
.info-producto{
    flex: 1;
    min-width: 250px;
}

.info-producto h1{
    font-size: 32px;
    margin-bottom: 15px;
}

.precio{
    font-size: 28px;
    color: #00a650;
    font-weight: bold;
    margin: 20px 0;
}

.descripcion{
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.categoria{
    background: #eee;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* BOTÓN */
.boton-comprar{
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: #3483fa;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
}

.boton-comprar:hover{
    background: #2968c8;
}

/* VENDEDOR */
.vendedor{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.foto-perfil{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================
   CARDS PRODUCTOS
========================= */
.producto-card{
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.producto-card:hover{
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* IMAGEN CARD */
.card-img{
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    overflow: hidden;
}

.card-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TEXTO CARD */
.producto-card h3{
    font-size: 15px;
    margin: 10px;
    height: 40px;
    overflow: hidden;
}

.producto-card p{
    margin: 5px 10px;
    font-size: 14px;
}


/* ================= HEADER ================= */


header{
background:#fff;
padding:14px;
position:sticky;
top:0;
z-index:999;
box-shadow:0 3px 12px rgba(0,0,0,.06);
}

.top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:12px;
}

.logo{
display:flex;
align-items:center;
gap:10px;
font-size:24px;
font-weight:900;
color:#1877f2;
 text-decoration:none;   /* Quita el subrayado */
    cursor:pointer;   
}

.logo img{
width:42px;
height:42px;
border-radius:12px;
object-fit:cover;
}

.notif{
width:42px;
height:42px;
border-radius:50%;
background:#edf2fa;
display:flex;
justify-content:center;
align-items:center;
font-size:20px;
text-decoration:none;
}

/* 🔥 LOGO + BUSCADOR EN FILA */
.top-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

/* LOGO */
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:700;
}

/* BUSCADOR */
.search{
    flex:1;
    max-width:500px;
}

.search-wrap{
    position:relative;
    width:100%;
}

.search-wrap input{
    width:100%;
    height:42px;
    border-radius:999px;
    border:1px solid #dfe3ea;
    padding:0 16px 0 40px;
    font-size:14px;
}



/* ================= BUSCADOR ================= */

.search-box{
position:relative;
width:100%;
max-width:320px;
}

.search-box input{
width:100%;
height:42px;
border-radius:999px;
border:1px solid #dfe3ea;
padding:0 16px;
font-size:14px;
outline:none;
background:#fff;
transition:.25s;
}

.search-box input:focus{
border-color:#1877f2;
box-shadow:0 0 0 4px rgba(24,119,242,.12);
}

/* ================= RESULTADOS ================= */

#resultados{
position:absolute;
top:48px;
width:100%;
background:#fff;
border-radius:14px;
box-shadow:0 10px 30px rgba(0,0,0,.12);
display:none;
z-index:999;
max-height:280px;
overflow-y:auto;
}

/* ================= BOTONES ================= */

.buttons{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
gap:12px;
max-width:900px;
margin:16px auto;
padding:0 15px;
}

.buttons a{
text-decoration:none;
background:#111827;
color:#fff;
padding:12px;
text-align:center;
border-radius:12px;
font-weight:700;
font-size:14px;
transition:.25s;
}

.buttons a:hover{
transform:translateY(-3px);
background:#1877f2;
}

.buttons a:active{
transform:scale(.96);
}



/* ================= BANNER ================= */

.banner{
width:100%;
height:300px;
overflow:hidden;
position:relative;
border-radius:18px;
}

.slides{
display:flex;
transition:transform .5s ease-in-out;
}

.slide{
min-width:100%;
height:300px;
position:relative;
}

.slide .fondo{
position:absolute;
width:100%;
height:100%;
background:linear-gradient(135deg,#1877f2,#54a8ff,#ffffff);
}

.slide img{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
height:100%;
object-fit:contain;
}

/* ================= FLECHAS ================= */

.prev,.next{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,.35);
color:#fff;
border:none;
padding:10px;
cursor:pointer;
border-radius:50%;
backdrop-filter:blur(4px);
}

.prev{left:12px;}
.next{right:12px;}
/* ================= PRODUCTOS ================= */

.contenedor{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:20px;
padding:20px;
}

/* ================= CARD ================= */

.card{
position:relative;
background:#fff;
border-radius:16px;
overflow:hidden;
border:1px solid #edf0f5;
box-shadow:0 6px 18px rgba(16,24,40,.06);
transition:.25s ease;
}

.card:hover{
transform:translateY(-4px);
box-shadow:0 14px 28px rgba(16,24,40,.12);
}
/* =========================
   TABS
========================= */
.tabs{
    display:flex;
    width:100%;
    margin-top:20px;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
}

.tab{
    flex:1;
    text-align:center;
    padding:15px;
    cursor:pointer;
    font-weight:700;
    color:#666;
    transition:.2s;
}

.tab:hover{
    background:#f5f7fb;
}

.tab.active{
    color:#1877f2;
    border-bottom:3px solid #1877f2;
}

/* =========================
   📱 RESPONSIVE TABLET
========================= */
@media (max-width: 768px){

    .contenedor-producto{
        flex-direction: column;
        padding: 20px;
        margin: 20px;
    }

    .imagen-producto{
        width: 100%;
        height: 300px;
    }

    .info-producto h1{
        font-size: 24px;
    }

    .precio{
        font-size: 22px;
    }

    header{
        flex-direction: column;
        align-items: stretch;
    }

    .filtros{
        flex-direction: column;
    }

   
}

/* =========================
   📱 RESPONSIVE MÓVIL
========================= */
@media (max-width: 480px){

    .contenedor{
        grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
        padding: 15px;
    }

    .card-img{
        height: 160px;
    }

    .imagen-producto{
        height: 220px;
    }

    .producto-card h3{
        font-size: 13px;
    }

    .precio{
        font-size: 20px;
    }
}

.reseña-card{
    background: #fff;
    border-radius: 14px;
    padding: 15px 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: .2s ease;
    border: 1px solid #f0f0f0;
}

.reseña-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.reseña-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.usuario strong{
    font-size: 14px;
    color: #222;
}

.fecha{
    font-size: 12px;
    color: #888;
}

.estrellas{
    margin: 5px 0 10px 0;
}

.star{
    font-size: 18px;
    color: #ccc;
    margin-right: 2px;
}

.star.active{
    color: #f5b301;
}

.comentario{
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    margin: 0;
}

.cats{
display:flex;
gap:10px;
overflow:auto;
padding:12px 0 2px;
scrollbar-width:none;
}

.cats::-webkit-scrollbar{
display:none;
}

.cat{
background:#f1f4f8;
padding:10px 15px;
border-radius:20px;
white-space:nowrap;
font-size:13px;
font-weight:700;
text-decoration:none;
color:#111;
}

.cat:hover{
background:#1877f2;
color:#fff;
}
.cat.active{
background:#1877f2;
color:#fff;
}

.cat.active i{
color:#fff;
}
.icon-search{
position:absolute;
left:16px;
top:50%;
transform:translateY(-50%);
color:#7a8599;
font-size:15px;
}

.clear-search{
position:absolute;
right:14px;
top:50%;
transform:translateY(-50%);
width:26px;
height:26px;
border-radius:50%;
background:#dfe7f3;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
color:#555;
font-size:13px;
}

.clear-search:hover{
background:#cfd9ea;
}

.search{
display:flex;
gap:8px;
flex-wrap:wrap;
}

.search input,
.search select{
height:44px;
border:none;
outline:none;
background:#edf2fa;
border-radius:30px;
padding:0 15px;
}

.search input{
flex:1;
min-width:180px;
}

.search button{
height:44px;
border:none;
padding:0 18px;
border-radius:30px;
background:#1877f2;
color:#fff;
font-weight:700;
cursor:pointer;
}
.search{
display:flex;
gap:10px;
flex-wrap:wrap;
align-items:center;
}

.search-wrap{
position:relative;
flex:1;
min-width:220px;
}

.search-wrap input{
width:100%;
height:48px;
border:none;
outline:none;
background:#edf2fa;
border-radius:999px;
padding:0 48px 0 44px;
font-size:14px;
transition:.25s;
}

.search-wrap input:focus{
background:#fff;
box-shadow:
0 0 0 2px rgba(24,119,242,.12),
0 8px 22px rgba(24,119,242,.08);
}

.icon-search{
position:absolute;
left:16px;
top:50%;
transform:translateY(-50%);
color:#7a8599;
font-size:15px;
}

.clear-search{
position:absolute;
right:14px;
top:50%;
transform:translateY(-50%);
width:26px;
height:26px;
border-radius:50%;
background:#dfe7f3;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
color:#555;
font-size:13px;
}

.clear-search:hover{
background:#cfd9ea;
}

.search select{
height:48px;
border:none;
padding:0 16px;
border-radius:999px;
background:#edf2fa;
font-size:14px;
cursor:pointer;
}

.search button{
height:48px;
width:48px;
border:none;
border-radius:50%;
background:#1877f2;
color:#fff;
font-size:16px;
cursor:pointer;
transition:.25s;
}

.search button:hover{
transform:scale(1.05);
background:#0f6ae6;
}
/* ================= CATEGORIAS ================= */

.cats{
display:flex;
gap:10px;
overflow:auto;
padding:12px 0 2px;
scrollbar-width:none;
}

.cats::-webkit-scrollbar{
display:none;
}

.cat{
background:#f1f4f8;
padding:10px 15px;
border-radius:20px;
white-space:nowrap;
font-size:13px;
font-weight:700;
text-decoration:none;
color:#111;
}

.cat:hover{
background:#1877f2;
color:#fff;
}

/* ================= TITULOS ================= */

.tt{
font-size:24px;
font-weight:900;
margin:22px 18px 15px;
}

/* ================= VENDEDORES ================= */

.scroll{
display:flex;
gap:14px;
overflow:auto;
padding:0 18px 15px;
scrollbar-width:none;
}

.scroll::-webkit-scrollbar{
display:none;
}

.seller{
min-width:170px;
background:#fff;
padding:18px;
border-radius:18px;
text-align:center;
box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.seller img{
width:70px;
height:70px;
border-radius:50%;
object-fit:cover;
margin-bottom:10px;
}

.seller a{
text-decoration:none;
color:#111;
font-weight:700;
}

/* ================= BADGE ================= */



/* ================= GRID ================= */

.grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
padding:18px;
}

/* ================= CARD ================= */

.card{
background:#fff;
border-radius:20px;
overflow:hidden;
box-shadow:0 8px 18px rgba(0,0,0,.06);
transition:.25s;
position:relative;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 15px 30px rgba(0,0,0,.10);
}

.card img{
width:100%;
height:220px;
object-fit:contain;
background:#fff;
padding:10px;
}

.info{
padding:14px;
}

.title{
font-size:15px;
font-weight:700;
height:42px;
overflow:hidden;
line-height:1.3;
}

.price{
font-size:26px;
font-weight:900;
letter-spacing:-0.5px;
}
.precio-original{
font-size:18px;
color:#999;
text-decoration:line-through;
margin-bottom:5px;
}

.descuento-off{
display:inline-block;
background:#00a650;
color:#fff;
padding:6px 12px;
border-radius:999px;
font-size:13px;
font-weight:700;
margin-bottom:10px;
}

.ahorro{
color:#00a650;
font-weight:700;
margin-top:5px;
}
.meta{
font-size:13px;
color:#666;
margin-top:6px;
}

.user{
margin-top:10px;
display:flex;
align-items:center;
gap:4px;
flex-wrap:wrap;
font-size:14px;
font-weight:700;
text-decoration:none;
color:#1877f2;
}

/* ================= BOTONES ================= */

.actions{
display:flex;
justify-content:space-between;
padding:0 14px 14px;
gap:10px;
}

.btn{
flex:1;
height:40px;
border:none;
border-radius:12px;
cursor:pointer;
font-size:18px;
background:#f1f4f8;
transition:.2s;
}

.btn:hover{
background:#dde6f5;
}
.btn{
flex:1;
height:42px;
border:none;
border-radius:14px;
cursor:pointer;
font-size:18px;
background:#f5f7fb;
transition:.25s;
display:flex;
align-items:center;
justify-content:center;
}

.btn i{
font-size:19px;
color:#444;
transition:.2s;
}

.btn:hover{
background:#e9eef7;
transform:scale(1.04);
}

.btn:hover i{
color:#1877f2;
}
/* ================= CONTADORES ================= */

.counts{
padding:0 14px 14px;
font-size:13px;
color:#555;
}

/* ================= BOTTOM NAV ================= */

/* =========================
BOTTOM NAV PREMIUM
========================= */

.bottom{
position:fixed;
bottom:0;
left:0;
width:100%;

background:rgba(255,255,255,.92);

backdrop-filter:blur(14px);

display:flex;
justify-content:space-around;
align-items:center;

padding:8px 0;

box-shadow:
0 -4px 20px rgba(0,0,0,.08);

z-index:99999;
}

/* LINKS */

.bottom a{
text-decoration:none;
color:#666;

font-size:12px;
font-weight:700;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

gap:4px;

padding:6px 10px;

border-radius:14px;

transition:.22s cubic-bezier(.2,.8,.2,1);
}

/* ICONOS */

.bottom a i{
font-size:20px;
transition:.22s;
}

/* ACTIVO */

.bottom a.active{
color:#1877f2;
}

.bottom a.active i{
transform:translateY(-2px) scale(1.05);
}

/* HOVER */

.bottom a:hover i{
transform:scale(1.1);
}

/* CLICK */

.bottom a:active{
transform:scale(.92);
}

/* MÓVIL */

@media(max-width:768px){

.bottom{
padding:7px 0;
}

.bottom a{
font-size:11px;
gap:2px;
}

.bottom a i{
font-size:18px;
}

}

/* ================= TABLET ================= */

@media(max-width:1100px){
.grid{
grid-template-columns:repeat(3,1fr);
}
}

/* ================= MOVIL ================= */

@media(max-width:768px){

.grid{
grid-template-columns:repeat(2,1fr);
gap:10px;
padding:10px;
}

.card img{
height:150px;
}

.price{
font-size:18px;
}

.title{
font-size:13px;
height:36px;
}

.tt{
font-size:20px;
margin:18px 10px 12px;
}

.logo{
font-size:20px;
}

}

/* ================= MINI ================= */

@media(max-width:420px){

.grid{
gap:8px;
padding:8px;
}

.card img{
height:130px;
}

.price{
font-size:16px;
}

.title{
font-size:12px;
}

}
.search-wrap{
position:relative;
flex:1;
min-width:220px;
}

/* RESULTADOS LIVE */

#search-results{
position:absolute;
top:56px;
left:0;
width:100%;
background:#fff;
border-radius:18px;
box-shadow:0 12px 35px rgba(0,0,0,.12);
overflow:hidden;
display:none;
z-index:9999;
max-height:420px;
overflow-y:auto;
}

.live-item{
display:flex;
align-items:center;
gap:12px;
padding:12px;
text-decoration:none;
color:#111;
border-bottom:1px solid #f1f1f1;
transition:.2s;
}

.live-item:hover{
background:#f7f9fc;
}

.live-item img{
width:52px;
height:52px;
border-radius:12px;
object-fit:cover;
background:#fff;
}

.live-info{
flex:1;
min-width:0;
}

.live-title{
font-size:14px;
font-weight:700;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.live-price{
font-size:13px;
color:#1877f2;
font-weight:800;
margin-top:3px;
}

.no-results{
padding:16px;
text-align:center;
color:#888;
font-size:14px;
}
.history-title{
padding:10px 14px;
font-size:12px;
font-weight:800;
color:#7d8795;
background:#fafbfc;
}

.history-item{
display:flex;
align-items:center;
justify-content:space-between;
padding:12px 14px;
cursor:pointer;
border-bottom:1px solid #f1f1f1;
transition:.2s;
}

.history-item:hover{
background:#f7f9fc;
}

.history-left{
display:flex;
align-items:center;
gap:10px;
font-size:14px;
font-weight:600;
color:#222;
}

.remove-history{
border:none;
background:none;
cursor:pointer;
font-size:14px;
color:#999;
}
.search{
display:flex;
align-items:center;
gap:12px;
flex-wrap:nowrap;
margin-top:8px;
}

.search-wrap{
position:relative;
flex:1;
}

.search-wrap input{
width:100%;
height:50px;
border:none;
outline:none;
background:#edf2fa;
border-radius:999px;
padding:0 46px 0 44px;
font-size:14px;
}

.search select{
height:50px;
border:none;
outline:none;
background:#edf2fa;
padding:0 16px;
border-radius:999px;
font-size:14px;
min-width:140px;
cursor:pointer;
}

/* ================= VERIFICACIÓN INSTAGRAM ================= */

/* =====================================================
   VERIFICACIÓN LIMPIA Y PERFECTAMENTE ALINEADA
   REEMPLAZA SOLO .badge Y .badge::before
===================================================== */


/* ICONO VERIFICADO */

.badge{
display:inline-flex;
align-items:center;
justify-content:center;
width:18px;
height:18px;
margin-left:4px;
flex-shrink:0;
vertical-align:middle;
position:relative;
top:-1px;

/* azul instagram */
background:#0095f6;

/* forma estrella oficial */
clip-path:polygon(
50% 0%,
61% 8%,
75% 4%,
82% 16%,
96% 25%,
92% 39%,
100% 50%,
92% 61%,
96% 75%,
82% 84%,
75% 96%,
61% 92%,
50% 100%,
39% 92%,
25% 96%,
18% 84%, 
4% 75%,
8% 61%,
0% 50%,
8% 39%,
4% 25%,
18% 16%,
25% 4%,
39% 8%
);

box-shadow:0 2px 6px rgba(0,149,246,.35);
}

/* PALOMITA */

.badge::before{
content:"✓";
color:#fff;
font-size:10px;
font-weight:900;
line-height:1;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-52%);
}

.live-item{
display:flex;
align-items:center;
gap:12px;
padding:12px;
text-decoration:none;
color:#111;
border-bottom:1px solid #f1f1f1;
}

.live-item img{
width:52px;
height:52px;
border-radius:12px;
object-fit:cover;
}

.live-info{
flex:1;
}

.live-title{
font-size:14px;
font-weight:700;
}

.live-price{
font-size:13px;
color:#1877f2;
font-weight:800;
}
.btn-like,
.btn-save{
border:none;
background:#f3f4f6;
padding:10px;
border-radius:10px;
cursor:pointer;
font-size:18px;
}

.btn-like:hover,
.btn-save:hover{
background:#e5e7eb;
}
.search{
    width:100%;
    max-width:none;
}

.search-wrap{
    flex:1;
    width:100%;
}
.estado-producto{
    display:inline-block;
    margin:10px 0;
    padding:8px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:700;
}
.estado-producto{
background:#eef7ff;
color:#1877f2;
padding:8px 14px;
border-radius:999px;
display:inline-flex;
align-items:center;
gap:8px;
font-weight:700;
margin-bottom:15px;
}

.fila-stock{
margin:15px 0;
display:flex;
align-items:center;
gap:8px;
font-weight:600;
}

.precio{
font-size:30px;
font-weight:900;
color:#00a650;
}

.acciones-producto{
display:flex;
align-items:center;
gap:10px;
margin:20px 0;
}

.btn{
width:48px;
height:48px;
border-radius:14px;
display:flex;
justify-content:center;
align-items:center;
background:#f3f4f6;
text-decoration:none;
color:#444;
font-size:18px;
}

.btn:hover{
background:#e5e7eb;
}

.boton-comprar{
width:100%;
display:flex;
justify-content:center;
align-items:center;
gap:10px;
font-size:17px;
}

.categoria{
margin-top:15px;
display:inline-flex;
align-items:center;
gap:8px;
}
.galeria{
    width:100%;
    max-width:500px;
    background:#fff;
    border-radius:16px;
}

.track{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
}

.track::-webkit-scrollbar{
    display:none;
}
.track{
    scroll-snap-type:x proximity;
}
.track{
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.slide{
    scroll-snap-align:center;
}
.slide{
    min-width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
}

.slide img{
    max-width:100%;
    max-height:420px;
    object-fit:contain;
}
.lightbox-slide img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.slide video{
    width:100%;
    height:340px;
    object-fit:cover;
}
#dots:empty{
    display:none;
}
@media (min-width: 1024px){

    .slide img{
        max-width: 90%;
        max-height: 600px;
        object-fit: contain;
    }

    .galeria{
        max-width: 750px;
        margin: auto;
    }

    .slide{
        min-height: 500px;
    }
}

/* =========================
   LIGHTBOX MERCADO LIBRE
========================= */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    z-index:999999;
    display:none;
    justify-content:center;
    align-items:center;
}

.lightbox.active{
    display:flex;
}

.lightbox-track{
    width:100%;
    height:100%;
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
}

.lightbox-track::-webkit-scrollbar{
    display:none;
}

.lightbox-slide{
    min-width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    scroll-snap-align:center;
}

.lightbox-slide img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.cerrar-lightbox{
    position:absolute;
    top:20px;
    right:25px;
    color:white;
    font-size:40px;
    cursor:pointer;
    z-index:999999;
}
.review-box{
    background:#fff;
    padding:15px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    margin-bottom:15px;
}

.review-box{
    background:#fff;
    padding:18px;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    margin-bottom:15px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* 🌟 ESTRELLAS */
.stars-input{
    display:flex;
    gap:8px;
    font-size:28px;
    cursor:pointer;
    justify-content:center;
    flex-wrap:wrap;
}

.stars-input i{
    color:#d1d5db;
    transition:.2s;
}

.stars-input i.fa-solid{
    color:#f5b301;
    transform:scale(1.05);
}

.stars-input i:hover{
    transform:scale(1.2);
}

/* ✍️ INPUT */
#comentario{
    width:100%;
    min-height:100px;
    resize:none;
    border:none;
    outline:none;
    background:#f3f4f6;
    border-radius:12px;
    padding:12px 14px;
    font-size:14px;
    transition:.2s;
}

#comentario:focus{
    background:#fff;
    box-shadow:0 0 0 2px #1877f2;
}

/* 🚀 BOTÓN */
.review-box button{
    width:100%;
    border:none;
    padding:12px;
    border-radius:12px;
    background:#1877f2;
    color:#fff;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:.2s;
}

.review-box button:hover{
    background:#0f6ae6;
    transform:translateY(-2px);
}

.review-box button:active{
    transform:scale(.98);
}

/* 📱 RESPONSIVE */
@media(max-width:768px){
    .stars-input{
        font-size:24px;
    }

    #comentario{
        min-height:90px;
        font-size:13px;
    }

    .review-box button{
        font-size:14px;
    }
}

@media(max-width:480px){
    .stars-input{
        font-size:22px;
        gap:6px;
    }

    .review-box{
        padding:14px;
    }
}
.reseña-card{
    background:#fff;
    border-radius:14px;
    padding:14px;
    margin-bottom:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.06);
    display:flex;
    gap:12px;
    transition:.2s;
}

.reseña-card:hover{
    transform:translateY(-2px);
}

.reseña-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
}

.reseña-body{
    flex:1;
}

.reseña-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:4px;
}

.reseña-user{
    font-weight:700;
    font-size:14px;
    color:#111;
    display:flex;
    align-items:center;
    gap:6px;
}

.reseña-fecha{
    font-size:11px;
    color:#888;
}

.reseña-texto{
    font-size:14px;
    color:#444;
    line-height:1.4;
    margin-top:6px;
}

.reseña-estrellas{
    font-size:13px;
    color:#f5b301;
    margin-top:4px;
}
.descripcion{
    color:#555;
    line-height:1.6;
    margin-bottom:20px;
    white-space:normal;
    overflow:visible;

}
.forward-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.forward-box{
    width:360px;
    background:#fff;
    border-radius:16px;
    padding:15px;
    max-height:70vh;
    overflow:auto;
}

.forward-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    cursor:pointer;
    border-radius:10px;
}

.forward-item:hover{
    background:#f3f4f6;
}
.forward-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.forward-box{
    width:380px;
    max-height:80vh;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.forward-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 16px;
    border-bottom:1px solid #eee;
    font-weight:700;
}

.close-x{
    cursor:pointer;
    font-size:18px;
}

.forward-search{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-bottom:1px solid #f1f1f1;
    background:#fafafa;
}

.forward-search input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
}

.chat-list{
    overflow-y:auto;
    flex:1;
}

.chat-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    cursor:pointer;
    transition:.2s;
    border-bottom:1px solid #f3f3f3;
}

.chat-item:hover{
    background:#f5f7fb;
}

.chat-item img{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
}

.chat-name{
    font-weight:700;
    font-size:14px;
}

.chat-last{
    font-size:12px;
    color:#777;
}

.chat-info{
    display:flex;
    flex-direction:column;
}
.forward-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.forward-box{
    width:380px;
    max-height:70vh;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.forward-header{
    padding:14px;
    font-weight:800;
    border-bottom:1px solid #eee;
    background:#1877f2;
    color:#fff;
}

.forward-search{
    padding:10px;
    border-bottom:1px solid #eee;
}

.forward-search input{
    width:100%;
    padding:10px;
    border-radius:10px;
    border:1px solid #ddd;
    outline:none;
}

#chatList{
    overflow:auto;
    flex:1;
}

.chat-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    cursor:pointer;
    transition:.2s;
}

.chat-item:hover{
    background:#f3f6fb;
}

.chat-avatar{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
}

.chat-name{
    font-weight:700;
}

.chat-last{
    font-size:12px;
    color:#777;
}
.forward-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.forward-box{
    width:380px;
    max-height:75vh;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.forward-header{
    padding:14px;
    font-weight:800;
    background:#1877f2;
    color:#fff;
}

.chat-item{
    display:flex;
    gap:10px;
    padding:12px;
    cursor:pointer;
    transition:.2s;
}

.chat-item:hover{
    background:#f3f6fb;
}

.chat-avatar{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
}

.chat-name{
    font-weight:700;
}

.producto-card{
    position:relative;
}

.badge-off{
    position:absolute;
    top:10px;
    left:10px;
    background:#00a650;
    color:#fff;
    padding:6px 10px;
    border-radius:12px;
    font-size:12px;
    font-weight:700;
    z-index:20;
}

.price-original{
    color:#999;
    text-decoration:line-through;
    font-size:14px;
    margin-top:8px;
}

.price{
    font-size:24px;
    font-weight:900;
    color:#111;
    margin-top:3px;
}

.price-off{
    color:#00a650;
    font-size:13px;
    font-weight:700;
    margin-top:3px;
}
.card-video{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    background:#000;
}

@media(max-width:768px){

.card-video{
    height:160px;
}

}
.mensaje-inicio{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    background:#111;
    color:#fff;
    padding:12px 20px;
    border-radius:30px;
    font-size:15px;
    z-index:99999;
    box-shadow:0 5px 20px rgba(0,0,0,.3);
    opacity:0;
    transition:.4s;
    pointer-events:none;
}

.mensaje-inicio.mostrar{
    opacity:1;
}@media(max-width:768px){

.contenedor-producto{

    display:block;
    margin:10px;
    padding:0;
    background:white;
    border-radius:20px;
    overflow:hidden;

}


/* GALERÍA ESTILO MERCADO LIBRE */

.galeria{

    width:100%;
    height:380px;

    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

}


.track{

    height:100%;
    width:100%;

}


.slide{

    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;

}


.slide img{

    width:100%;
    height:100%;

    object-fit:contain;

}


/* información debajo */

.info-producto{

    padding:20px;

}


.info-producto h1{

    font-size:21px;

}


.precio{

    font-size:28px;

}

}
.galeria{
    position:relative;
}

.contador-imagen{
    position:absolute;
    top:15px;
    right:15px;
    background:rgba(0,0,0,.55);
    color:white;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:700;
    z-index:10;
    backdrop-filter:blur(5px);
}
.desc{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    line-height: 1.4em;
    min-height: 2.8em;
}