body{
    margin:0;
    padding:0;
}

/* ===== FONDO ===== */
body{
    background-image:url("fondo.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
}

/* ===== BOTON LOGIN ===== */
.btnLogin{
    position:fixed;
    top:15px;
    right:15px;
    background:black;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:20px;
    cursor:pointer;
    z-index:2000;
    transition:.25s;
}
.btnLogin:hover{
    transform:scale(1.1);
    background:#ff3c3c;
}

/* ===== LOGIN MODAL ===== */
#login-panel{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(6px);
    z-index:9999;
}

.login-box{
    background:white;
    padding:35px;
    border-radius:18px;
    width:350px;
    text-align:center;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
    animation:aparecer .25s ease;
}

@keyframes aparecer{
    from{transform:scale(.85);opacity:0;}
    to{transform:scale(1);opacity:1;}
}

.login-box input{
    width:100%;
    padding:12px;
    margin-top:10px;
    border-radius:10px;
    border:1px solid #ccc;
}

.btnVerde{
    background:#18c964;
    color:white;
    border:none;
    padding:10px;
    border-radius:10px;
    cursor:pointer;
    margin-top:12px;
}
.btnGris{
    background:#aaa;
    border:none;
    padding:10px;
    border-radius:10px;
    cursor:pointer;
}

/* ===== PANEL ADMIN ===== */
.panelAdmin{
    display:none;

    width:90%;
    max-width:1100px;

    margin:120px auto 40px auto;
    padding:30px;

    background: rgba(255, 221, 0, 0.25);
    backdrop-filter: blur(10px);

    border-radius:18px;
    box-shadow:0 25px 60px rgba(0,0,0,0.45);
    border:1px solid rgba(255,200,0,0.7);
}

.panelAdmin input,
.panelAdmin select{
    width:100%;
    padding:10px;
    margin-top:10px;
    border-radius:8px;
}

.btnSalir{
    background:red;
    color:white;
    border:none;
    padding:8px;
    border-radius:8px;
    float:right;
}
.tituloTienda{
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin: 25px auto;
    letter-spacing: 2px;
    color: #222;

    /* FONDO DETRÁS DEL TEXTO */
    background: rgba(255,255,255,0.85);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 14px;

    /* sombra elegante */
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.tituloTienda::before{
    content:'';
    display:block;
}

/* ===== MENU CATEGORIAS ===== */
#menuCategorias{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(0,0,0,0.92);
    padding:12px;
    display:flex;
    gap:12px;
    overflow-x:auto;
    z-index:900;
}

/* BOTONES CATEGORIA */
.btnCategoria{
    white-space:nowrap;
    background:white;
    color:#111;
    padding:8px 18px;
    border-radius:30px;
    cursor:pointer;
    font-weight:bold;
    font-size:14px;
    transition:.2s;
}

.btnCategoria:hover{
    background:#ff3c3c;
    color:white;
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 8px 18px rgba(0,0,0,.35);
}

/* ===== BLOQUES DE CATEGORIA ===== */
.categoriaBloque{
    width:100%;
    margin-top:30px;
    margin-bottom:40px;
}

.tituloCategoria{
    color:white;
    font-size:26px;
    margin:25px 0 15px 25px;
    text-shadow:0 3px 10px rgba(0,0,0,.6);
}

/* FILA HORIZONTAL */
.filaProductos{
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    padding:0 25px;
}

/* TARJETAS PRODUCTO */
.card{
    width:260px;
    background:white;
    border-radius:18px;
    padding:18px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    transition:.25s;
}

.card:hover{
    transform:translateY(-10px) scale(1.03);
    box-shadow:0 18px 40px rgba(0,0,0,.35);
}

.card img{
    width:100%;
    height:200px;
    object-fit:contain;
    margin-bottom:12px;
}

.card h3{
    font-size:18px;
    margin:10px 0;
}

.card p{
    font-size:17px;
    font-weight:bold;
    color:#ff3c3c;
    margin-bottom:10px;
}

/* BOTON WHATSAPP */
.card a{
    display:inline-block;
    padding:8px 14px;
    border-radius:20px;
    background:#25D366;
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.2s;
}
.card a:hover{
    background:#1ebe5d;
    transform:scale(1.08);
}

/* ===== MODAL PRODUCTO ===== */
.modalProducto{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.75);
    z-index:10000;
    justify-content:center;
    align-items:center;
}

.modalContenido{
    background:white;
    padding:25px;
    border-radius:18px;
    width:90%;
    max-width:450px;
    text-align:center;
    position:relative;
    animation:aparecer .25s ease;
}

.modalContenido img{
    width:100%;
    max-height:320px;
    object-fit:contain;
    margin-bottom:15px;
}

.modalDesc{
    margin-top:10px;
    font-size:15px;
    color:#444;
}

.cerrarModal{
    position:absolute;
    right:15px;
    top:10px;
    font-size:22px;
    cursor:pointer;
}

.btnWhatsapp{
    display:inline-block;
    margin-top:15px;
    background:#25D366;
    color:white;
    padding:12px 18px;
    border-radius:25px;
    text-decoration:none;
    font-weight:bold;
    transition:.2s;
}

.btnWhatsapp:hover{
    background:#1ebe5d;
    transform:scale(1.08);
}

/* ===== ADMIN HORIZONTAL ===== */
.adminCategoria{
    margin-top:40px;
}

.tituloCategoriaAdmin{
    margin:15px 0 10px 10px;
    font-size:22px;
    font-weight:bold;
    color:#000;
}

.filaAdmin{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
    gap:20px;
    padding:10px;
}

.adminBtns{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:10px;
}

.adminBtns button{
    border:none;
    padding:6px 10px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.2s;
}

.adminBtns button:first-child{
    background:#ffb020;
    color:white;
}
.adminBtns button:first-child:hover{
    background:#ff9800;
    transform:scale(1.08);
}

.adminBtns button:last-child{
    background:#ff3c3c;
    color:white;
}
.adminBtns button:last-child:hover{
    background:#d80000;
    transform:scale(1.08);
}
/* ===== CARRITO FLOTANTE ===== */
.carritoFlotante{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#25D366;
    color:white;
    padding:14px 20px;
    border-radius:40px;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    z-index:9999;
    transition:.25s;
}

.carritoFlotante:hover{
    transform:scale(1.1);
    background:#1ebe5d;
}

/* contador numerito */
#contadorCarrito{
    background:white;
    color:#25D366;
    padding:3px 8px;
    border-radius:50%;
    margin-left:6px;
    font-weight:bold;
}
/* ================= BOTON AGREGAR PRODUCTO ================= */

.card button{
    appearance:none;
    -webkit-appearance:none;
    border:none;
    outline:none;
}

/* BOTON AGREGAR */
.btnCarrito{
    background:#ff9800 !important;
    color:#fff !important;
    padding:10px 16px !important;
    border-radius:25px !important;
    font-weight:bold;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

/* HOVER */
.btnCarrito:hover{
    background:#ff6a00 !important;
    transform:scale(1.1);
}

/* CUANDO SE AGREGA */
.btnCarrito.agregado{
    background:#18c964 !important;
}
/* ===== BOTONES DE PRODUCTO (PREGUNTAR + AGREGAR) ===== */
.botonesProducto{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:10px;
}

/* BOTON AGREGAR AL CARRITO */
.btnCarrito{
    background:#ff9800;
    color:white;
    border:none;
    padding:9px 14px;
    border-radius:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}

.btnCarrito:hover{
    background:#ff6a00;
    transform:scale(1.08);
}

/* CUANDO YA ESTA EN CARRITO */
.btnCarrito.agregado{
    background:#18c964;
}

/* BOTON QUITAR */
.btnCarrito.quitar{
    background:#ff3c3c;
}

.btnCarrito.quitar:hover{
    background:#d80000;
}

/* ===== CARRITO FLOTANTE REAL ===== */
#carritoFloat{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#25D366;
    color:white;
    padding:14px 22px;
    border-radius:40px;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
    z-index:10000;
    display:none;
    animation:aparecerCarrito .25s ease;
}

/* animacion */
@keyframes aparecerCarrito{
    from{
        transform:translateY(40px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

#carritoFloat:hover{
    background:#1ebe5d;
    transform:scale(1.1);
}

/* numerito contador */
#contadorCarrito{
    background:white;
    color:#25D366;
    padding:3px 8px;
    border-radius:50%;
    margin-left:6px;
    font-weight:bold;
}
/* ===== BUSCADOR ===== */
.barraBusqueda{
    width:100%;
    text-align:center;
    margin-top:80px;
}

#buscador{
    width:90%;
    max-width:450px;
    padding:14px 18px;
    border-radius:30px;
    border:none;
    outline:none;
    font-size:16px;
    box-shadow:0 6px 20px rgba(0,0,0,.25);
    transition:.25s;
}

#buscador:focus{
    transform:scale(1.03);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}
/* ================= BUSCADOR ================= */

.buscadorCaja{
    width:100%;
    display:flex;
    justify-content:center;
    margin-top:15px;
    margin-bottom:20px;
}

#buscador{
    width:90%;
    max-width:500px;
    padding:12px 18px;
    border-radius:30px;
    border:none;
    outline:none;
    font-size:16px;
    box-shadow:0 5px 18px rgba(0,0,0,.25);
    transition:.25s;
}

#buscador:focus{
    transform:scale(1.05);
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}
/* ====== ARREGLO DEFINITIVO MODAL ====== */

.modalProducto{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.65);
    display:none;
    justify-content:center;
    align-items:center;
    z-index: 9998;
}

.modalContenido{
    position:relative;
    background:#fff;
    padding:25px;
    border-radius:12px;
    max-width:420px;
    width:90%;
    text-align:center;
    z-index: 9999;
}

/* LA X (ESTA ES LA CLAVE) */
#cerrarModal{
    position:absolute;
    top:10px;
    right:15px;
    font-size:30px;
    font-weight:bold;
    cursor:pointer;
    color:#000;
    z-index: 10000;
}

#cerrarModal:hover{
    color:red;
    transform: scale(1.2);
}
.botonesProducto{
    display:flex;
    gap:8px;
    margin-top:10px;
}

.btnSolicitar{
    background:#25D366;
    color:white;
    border:none;
    padding:10px 12px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    flex:1;
}

.btnSolicitar:hover{
    background:#1ebe5d;
}
/* ===== PANEL ADMIN COMO VENTANA FLOTANTE ===== */

/* .panelAdmin{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 85%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;

    padding: 25px;

    background: rgba(255, 221, 0, 0.25);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,200,0,0.7);

    z-index: 5000;
    /* 
}
/* ===== SEPARADOR REAL ENTRE FORMULARIO Y PRODUCTOS ADMIN ===== */

#formProducto{
    margin-bottom:50px;
    padding-bottom:30px;
    border-bottom:3px dashed rgba(0,0,0,0.25);
}

/* espacio antes de los productos */
#listaProductosAdmin{
    margin-top:40px;
    padding-top:20px;
}

/* título de categoria mas separado */
.tituloCategoriaAdmin{
    margin-top:35px !important;
}

/* las tarjetas bajan un poco */
.filaAdmin{
    margin-top:15px;
}
/* ===== INVENTARIO ADMIN FUERA DEL PANEL ===== */

.inventarioAdmin{
    width:95%;
    max-width:1700px;
    margin:40px auto 120px auto;
    padding:20px;

    background:rgba(255,255,255,0.9);
    border-radius:18px;
    box-shadow:0 10px 35px rgba(0,0,0,0.25);
}

/* titulo de categorias mas bonito */
.inventarioAdmin .tituloCategoriaAdmin{
    margin-left:10px;
}
/* ===== POSICION REAL DEL INVENTARIO ADMIN ===== */

/* empuja el inventario debajo del panel */
.adminAbierto .inventarioAdmin{
    margin-top:650px !important;
}

/* también baja los productos de la tienda */
.adminAbierto #productosCliente{
    margin-top:650px !important;
}

/* el menu categorias baja también */
.adminAbierto #menuCategorias{
    top:650px !important;
}
/* panel admin desactivado modo flotante */
.panelAdmin.modoFlotante{
    position: fixed;
}
/* ===== PANEL ADMIN FIJO ARRIBA (CORRECTO) ===== */

#panel.panelAdmin{
    display:none;
    position:fixed;

    top:90px;
    left:50%;
    transform:translateX(-50%);

    width:90%;
    max-width:1000px;
    padding:30px;

    background: rgba(255, 221, 0, 0.25);
    backdrop-filter: blur(10px);

    border-radius:18px;
    box-shadow:0 25px 60px rgba(0,0,0,0.45);
    border:1px solid rgba(255,200,0,0.7);

    z-index:6000;
}
/* ===== PANEL ADMIN FIJO ===== */
#panelAdmin{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1000px;

    background: #efe2a3;
    border-radius: 18px;
    padding: 25px;
    z-index: 9999;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 2px solid #e6c94c;
}

/* BAJA LOS PRODUCTOS */
body{
    padding-top: 20px;
}
/* ===== PANEL ADMIN FIJO ===== */
#panelAdmin{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;

    background: #efe2a3;
    border-radius: 18px;
    padding: 22px;
    z-index: 9999;

    box-shadow: 0 12px 35px rgba(0,0,0,0.28);
    border: 2px solid #e6c94c;
}

/* ESPACIO REAL DEBAJO DEL PANEL */
.separadorPanel{
    height: 0px;
}

/* AJUSTE MOVIL */
@media(max-width:768px){
    .separadorPanel{
        height: 760px;
    }
}
/* EL PANEL ADMIN NO DEBE VERSE AL ENTRAR A LA TIENDA */
#panelAdmin{
    display: none;
}
#menuCategorias{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:900;
}

/* espacio real debajo del menu */
.tituloTienda{
    margin-top:120px !important;
}
/* ===== PANEL ADMIN CRISTALINO ===== */
#panelAdmin{
    position: fixed;
    top: 15px;
    left: 60%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 900px;

    padding: 28px;

    /* EL EFECTO CRISTAL */
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.35);

    box-shadow:
        0 10px 40px rgba(0,0,0,.25),
        inset 0 0 25px rgba(255,255,255,.15);

    z-index: 9999;
}
/* ===== INPUTS MODERNOS ===== */
#panelAdmin input,
#panelAdmin select{
    background: rgba(255,255,255,0.75);
    border: none;
    outline: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-top:10px;

    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition:.25s;
}

#panelAdmin input:focus,
#panelAdmin select:focus{
    background:white;
    transform:scale(1.03);
    box-shadow:0 6px 20px rgba(0,0,0,.25);
}
/* BOTON GUARDAR PRODUCTO */
#panelAdmin .btnVerde{
    background: linear-gradient(135deg,#22c55e,#16a34a);
    padding:12px 20px;
    border-radius:14px;
    font-weight:bold;
    letter-spacing:.5px;
    box-shadow:0 8px 18px rgba(0,0,0,.25);
    transition:.25s;
}

#panelAdmin .btnVerde:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 12px 25px rgba(0,0,0,.35);
}
/* BOTON SALIR */
#panelAdmin .btnSalir{
    background: linear-gradient(135deg,#ff4d4d,#d90429);
    padding:10px 16px;
    border-radius:14px;
    font-weight:bold;
    box-shadow:0 6px 16px rgba(0,0,0,.25);
}

#panelAdmin .btnSalir:hover{
    transform:scale(1.08);
}
#formProducto{
    border-bottom: 2px dashed rgba(255,255,255,.45);
    padding-bottom:25px;
    margin-bottom:25px;
}
/* TEXTO MAS FINO */
#panelAdmin h2{
    font-size:22px;
    margin-bottom:12px;
}

#panelAdmin input,
#panelAdmin select{
    font-size:13px;
}
.btnExportar{
    background:#2b7cff;
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    margin-left:10px;
    font-weight:bold;
}

.btnExportar:hover{
    background:#1a5fd1;
}
/* CONTENEDOR DE CRISTAL ROSA */
.glass-buscador{
    width: 65%;
    margin: 30px auto 0 auto;
    padding: 22px;
    border-radius: 28px;

    background: rgba(255, 182, 193, 0.25);

    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);

    border: 1px solid rgba(255,255,255,0.6);

    box-shadow:
        0 10px 40px rgba(255,105,180,0.35),
        inset 0 1px 0 rgba(255,255,255,0.7);

    display: flex;
    justify-content: center;
}

/* INPUT */
.buscador{
    width: 85%;
    padding: 15px 22px;
    border-radius: 40px;
    border: none;
    outline: none;
    font-size: 16px;

    background: rgba(255,255,255,0.85);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.12);

}

/* BRILLO AL PASAR EL MOUSE */
.glass-buscador:hover{
    box-shadow: 0 12px 45px rgba(255, 105, 180, 0.45);
}
/* ===== SECCION SUPERIOR ===== */
.hero{
    text-align: center;
    padding: 130px 20px 80px 20px;
    position: relative;
}

/* TITULO */
.hero h1{
    font-size: 42px;
    margin-bottom: 30px;
    color: #111;
}
.buscadorAdminCaja{
width:20%;
display:flex;
justify-content:center;
margin:15px 0 20px 0;
}

#buscadorAdmin{
width:35%;
max-width:400px;
padding:12px 18px;
border-radius:25px;
border:none;
outline:none;
font-size:15px;
box-shadow:0 4px 12px rgba(0,0,0,0.15);
}
/* CONTENEDOR DEL FORM ADMIN */
#formProducto{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:12px;
justify-content:center;
}

/* BUSCADOR ADMIN */
.buscadorAdminCaja{
display:flex;
align-items:center;
}

#buscadorAdmin{
width:260px;
padding:11px 15px;
border-radius:20px;
border:none;
outline:none;
font-size:14px;
box-shadow:0 4px 10px rgba(0,0,0,.15);
transition:.2s;
}

#buscadorAdmin:focus{
transform:scale(1.05);
box-shadow:0 6px 18px rgba(0,0,0,.25);
}
/* ===== FORMULARIO ADMIN EN FILAS REALES ===== */

#formProducto{
display:grid;
grid-template-columns: repeat(4, 1fr);
gap:10px;
align-items:center;
}

/* Primera fila inputs */
#formProducto input[name="modelo"],
#formProducto input[name="precio"],
#formProducto input[name="descripcion"],
#formProducto select{
width:100%;
padding:10px 12px;
border-radius:12px;
font-size:14px;
}

/* Segunda fila */
#formProducto input[type="file"]{
grid-column:1/3;
}

#formProducto .btnVerde{
grid-column:3/4;
padding:10px 18px;
border-radius:14px;
font-size:14px;
}

/* 🔴 EL TRUCO */
.buscadorAdminCaja{
grid-column:4/5;
display:flex;
justify-content:flex-end;
}

#buscadorAdmin{
width:180px;
padding:9px 12px;
font-size:13px;
border-radius:18px;
}
/* ===== FORMULARIO ADMIN ORDENADO ===== */

#formProducto{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:12px;
}

/* Inputs superiores */
#formProducto input[type="text"],
#formProducto input[type="number"],
#formProducto select{
width:190px;
padding:10px 12px;
border-radius:12px;
font-size:14px;
}

/* archivo */
#formProducto input[type="file"]{
flex:1 1 260px;
}

/* boton guardar */
#formProducto .btnVerde{
flex:0 0 auto;
padding:10px 18px;
border-radius:14px;
}

/* 🔴 CONTENEDOR BUSCADOR */
.buscadorAdminCaja{
flex:0 0 220px;
display:flex;
justify-content:flex-end;
}

/* input buscar */
#buscadorAdmin{
width:100%;
padding:9px 12px;
font-size:13px;
border-radius:18px;
box-shadow:0 4px 10px rgba(0,0,0,.18);
}
/* ===== HACER EL PANEL MAS COMPACTO ===== */

/* altura general del panel */
.admin-panel{
padding:18px 22px;
max-width:820px;
}

/* TITULO */
.admin-panel h2{
margin:0 0 6px 0;
font-size:20px;
}

/* FORM */
#formProducto{
gap:8px;
margin-top:6px;
}

/* INPUTS TEXTO */
#formProducto input[type="text"],
#formProducto input[type="number"],
#formProducto select{
height:36px;
padding:6px 10px;
font-size:13px;
border-radius:10px;
}

/* INPUT ARCHIVO (este era el culpable principal) */
#formProducto input[type="file"]{
height:32px;
font-size:12px;
}

/* BOTON GUARDAR */
#formProducto .btnVerde{
height:34px;
padding:0 14px;
font-size:13px;
border-radius:10px;
}

/* BUSCADOR ADMIN */
#buscadorAdmin{
height:32px;
padding:6px 10px;
font-size:13px;
border-radius:14px;
}

/* BOTONES SUPERIORES */
.btnExportar,
.btnSalir{
padding:6px 12px;
font-size:13px;
border-radius:12px;
}
/* BOTON EMPLEADOS */
.btnEmpleados{
position:fixed;
top:20px;
right:150px;
background:#2d89ff;
color:white;
border:none;
padding:10px 16px;
border-radius:20px;
cursor:pointer;
font-weight:bold;
z-index:1000;
}

/* PANEL CREDITO */
.panelCredito{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.65);
display:none;
justify-content:center;
align-items:center;
z-index:99999;
}


.creditoBox{
background:white;
padding:25px;
border-radius:14px;
width:90%;
max-width:420px;
box-shadow:0 20px 50px rgba(0,0,0,.35);
animation:aparecer .25s ease;
}
@keyframes aparecer{
from{
transform:scale(.8);
opacity:0;
}
to{
transform:scale(1);
opacity:1;
}
}


.creditoBox input,
.creditoBox select{
padding:10px;
border-radius:10px;
border:1px solid #ddd;
}

.creditoBtns{
display:flex;
gap:10px;
justify-content:center;
}
.admin-panel{
position:fixed;
top:60px;
left:50%;
transform:translateX(-50%);
width:900px;
max-height:85vh;
background:white;
border-radius:20px;
padding:20px;
box-shadow:0 10px 30px rgba(0,0,0,.2);
overflow-y:auto;
}
/* ===== BOTONES ADMIN PRODUCTOS ===== */

.accionesAdmin{
    margin-top:10px;
    display:flex;
    justify-content:center;
    gap:10px;
}

.btnEditarAdmin{
    background:#ffc107;
    color:#000;
    border:none;
    padding:8px 16px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.btnEditarAdmin:hover{
    background:#e0a800;
    transform:translateY(-2px);
}

.btnEliminarAdmin{
    background:#dc3545;
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.btnEliminarAdmin:hover{
    background:#b52a37;
    transform:translateY(-2px);
}
/* ===== BOTONES TIENDA CLIENTE ===== */

.botonesProducto{
    margin-top:15px;
    display:flex;
    gap:12px;
    justify-content:center;
}

/* AGREGAR AL CARRITO */
.btnAgregar{
    background:#f1f1f1;
    color:#333;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow:0 3px 8px rgba(0,0,0,.08);
}

.btnAgregar:hover{
    background:#e4e4e4;
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}

/* SOLICITAR WHATSAPP */
.btnSolicitar{
    background:#25D366;
    color:white;
    border:none;
    padding:10px 22px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow:0 4px 12px rgba(37,211,102,.35);
}

.btnSolicitar:hover{
    background:#1ebe5d;
    transform:translateY(-3px);
    box-shadow:0 10px 22px rgba(37,211,102,.55);
}
/* AGREGAR AL CARRITO (MEJORADO) */
.btnAgregar{
    background:linear-gradient(145deg,#f8f8f8,#eaeaea);
    color:#333;
    border:none;
    padding:10px 20px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow:
        0 4px 10px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.btnAgregar:hover{
    background:linear-gradient(145deg,#ffffff,#e6e6e6);
    transform:translateY(-4px) scale(1.03);
    box-shadow:
        0 10px 22px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,1);
}

.btnAgregar:active{
    transform:scale(.96);
    box-shadow:0 3px 6px rgba(0,0,0,.2) inset;
}
.btnCerrarSesion{
    background:#ff4d4d;
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    margin-bottom:15px;
    float:right;
}

.btnCerrarSesion:hover{
    background:#d90000;
}
.precioAntes{
    text-decoration: line-through;
    color:#888;
    font-size:14px;
    margin:0;
}

.precioOferta{
    color:#e53935;
    font-size:20px;
    font-weight:bold;
    margin:0;
}

.badgeOferta{
    position:absolute;
    top:10px;
    right:10px;
    background:#ff0000;
    color:white;
    padding:4px 8px;
    border-radius:8px;
    font-size:12px;
    font-weight:bold;
}
/* TARJETA EN OFERTA */
.cardOferta{
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(255,0,0,0.25);
    border:2px solid #ff3b3b;
}

/* ETIQUETA ROJA */
.etiquetaOferta{
    position:absolute;
    top:12px;
    left:-8px;
    background:#ff0000;
    color:white;
    font-weight:bold;
    font-size:16px;
    padding:6px 14px;
    border-radius:0 8px 8px 0;
    box-shadow:0 4px 10px rgba(0,0,0,.25);
    z-index:5;
    animation:parpadeo 1.2s infinite;
}

@keyframes parpadeo{
    0%{opacity:1;}
    50%{opacity:.6;}
    100%{opacity:1;}
}

/* PRECIO ANTES */
.precioAntes{
    text-decoration: line-through;
    color:#777;
    font-size:16px;
    margin:0;
}

/* PRECIO OFERTA GRANDE */
.precioOferta{
    color:#e60023;
    font-size:28px;
    font-weight:900;
    margin:2px 0;
}

/* TEXTO AHORRO */
.textoAhorro{
    color:#1a7f37;
    font-weight:bold;
    font-size:14px;
}

/* PRECIO NORMAL */
.precioNormal{
    font-size:22px;
    font-weight:bold;
    color:#111;
}
.destacado{
    background:linear-gradient(45deg,#ff2e63,#ff0000);
    color:white;
    padding:14px;
    text-align:center;
    font-weight:bold;
    font-size:20px;
    border-radius:14px;
    margin-bottom:20px;
    animation:latido 1.2s infinite;
}

@keyframes latido{
    0%{transform:scale(1);}
    50%{transform:scale(1.03);}
    100%{transform:scale(1);}
}
.zonaOfertas{
    background:#fff5f5;
    padding:14px;
    border-radius:18px;
    margin-bottom:20px;
}

.tituloOfertas{
    text-align:center;
    color:#e60023;
    font-size:24px;
    font-weight:bold;
    margin-bottom:12px;
}
.whatsappFloat{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:white;
    font-size:28px;
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow:0 6px 18px rgba(0,0,0,.35);
    z-index:9999;
    animation:latido 1.2s infinite;
}

.whatsappFloat:hover{
    transform:scale(1.12);
}
.avisoCompra{
    position:fixed;
    bottom:90px;
    left:20px;
    background:white;
    padding:10px 14px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
    font-size:14px;
    animation:subir 0.4s ease;
}

@keyframes subir{
    from{transform:translateY(40px);opacity:0;}
    to{transform:translateY(0);opacity:1;}
}
/* BOTON PEDIDO (separarlo del whatsapp) */
.carritoFlotante{
    position:fixed;
    bottom:95px;   /* 👈 lo sube arriba del whatsapp */
    right:20px;
    z-index:9998;
}
.carritoFlotante{
    background:linear-gradient(45deg,#22c55e,#16a34a);
    color:white;
    padding:12px 18px;
    border-radius:30px;
    font-weight:bold;
    box-shadow:0 6px 18px rgba(0,0,0,.35);
    transition:.2s;
}

.carritoFlotante:hover{
    transform:scale(1.08);
}
.vistasProducto{
    color:#555;
    font-size:13px;
    margin-top:4px;
    background:#f1f3f4;
    padding:4px 8px;
    border-radius:8px;
    display:inline-block;
    animation:latidoVistas 2s infinite;
}

@keyframes latidoVistas{
    0%{opacity:.6;}
    50%{opacity:1;}
    100%{opacity:.6;}
}
/* ===== BARRA UBICACION ===== */

.barra-superior{
    width:100%;
    background:#000;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 18px;
    font-size:14px;
    font-weight:500;
    letter-spacing:.4px;
    box-sizing:border-box;
}

.barra-superior .telefono{
    color:#00ff88;
    text-decoration:none;
    font-weight:bold;
}

.barra-superior .telefono:hover{
    color:#25D366;
}
body{
    margin:0;
    padding-top:38px;
}
/* TEXTO UBICACION GRANDE */
.barra-superior .ubicacion{
    font-size:18px;
    font-weight:700;
    letter-spacing:.5px;
}
.barra-superior{
    background:linear-gradient(90deg,#000,#222);
    border-bottom:3px solid #ff2d55;
}
@media(max-width:600px){

    .barra-superior{
        flex-direction:column;
        text-align:center;
        gap:4px;
        padding:10px 5px;
    }

    .barra-superior .ubicacion{
        font-size:16px;
    }
}
.creditoBox{
    text-align:center;
    margin-top:10px;
}

.textoCredito{
    font-size:16px;
    font-weight:600;
}

.pagoCredito{
    background:#b3122a;
    color:#fff;
    font-size:24px;
    font-weight:bold;
    padding:8px 18px;
    border-radius:25px;
    display:inline-block;
    margin-top:5px;
}
.creditoBox{
    text-align:center;
    margin-top:10px;
}

.textoCredito{
    font-size:16px;
    font-weight:600;
}

.pagoCredito{
    background:#b3122a;
    color:#fff;
    font-size:24px;
    font-weight:bold;
    padding:8px 18px;
    border-radius:25px;
    display:inline-block;
    margin-top:5px;
}
.galeriaProducto{
    text-align:center;
}

.imgPrincipal{
    width:100%;
    height:210px;
    object-fit:contain;
    border-radius:12px;
}

.miniaturas{
    display:flex;
    justify-content:center;
    gap:6px;
    margin-top:8px;
}

.miniatura{
    width:45px;
    height:45px;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
    border:2px solid transparent;
    transition:.2s;
}

.miniatura:hover{
    border:2px solid #25D366;
    transform:scale(1.1);
}
.miniaturas{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.thumb{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    border:2px solid #ddd;
}

.thumb:hover{
    border:2px solid #25D366;
}
.miniaturas{
display:flex;
justify-content:center;
gap:10px;
margin-top:12px;
flex-wrap:wrap;
}

.miniaturas img{
width:65px;
height:65px;
object-fit:cover;
border-radius:10px;
cursor:pointer;
border:2px solid #ddd;
transition:.2s;
}

.miniaturas img:hover{
border:2px solid #25D366;
transform:scale(1.05);
}

