*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:sans-serif;
}

body{
    background:#1a120b;
    color:white;
}

/* =========================
   HEADER
========================= */
header{
    position:sticky;
    top:0;
    background:#2b1d0e;
    padding:12px;
    z-index:2000;
    border-bottom:2px solid #ff9800;
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:#ffb300;
    font-size:24px;
    font-weight:bold;
}

.cart-btn{
    background:#ff9800;
    color:black;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

/* =========================
   HERO
========================= */
.hero{
    background:url('https://images.unsplash.com/photo-1613514785940-daed07799d9b?q=80&w=1200&auto=format&fit=crop') center/cover;
    padding:70px 20px;
    text-align:center;
    position:relative;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero h1{
    color:#ffb300;
    font-size:38px;
}

.hero p{
    margin-top:10px;
    color:#fff;
    font-size:18px;
}

/* =========================
   CATEGORÍAS
========================= */
.menu-categorias{
    position:sticky;
    top:72px;
    z-index:1900;
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:15px;
    background:#2b1d0e;
    border-bottom:1px solid rgba(255,255,255,.1);
    backdrop-filter:blur(8px);
}

.menu-categorias button{
    padding:10px 14px;
    border:none;
    background:#3b2a18;
    color:white;
    border-radius:25px;
    cursor:pointer;
    white-space:nowrap;
}

.menu-categorias button.active{
    background:#ff9800;
    color:black;
    font-weight:bold;
}

/* =========================
   SELECTOR PLATOS
========================= */
.selector{
    padding:20px;
}

.selector input{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#2b1d0e;
    color:white;
    font-size:16px;
}

/* =========================
   CONTENIDO
========================= */
#contenidoCategoria{
    padding:20px;
}

.plato{
    background:#2b1d0e;
    border-radius:15px;
    padding:15px;
    margin-bottom:20px;
}

.plato h2{
    color:#ffb300;
    margin-bottom:15px;
}

/* =========================
   🔥 PRODUCTOS (2 COLUMNAS)
========================= */
.producto-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.producto{
    background:#3a2918;
    border-radius:12px;
    overflow:hidden;
}

.producto img{
    width:100%;
    height:160px;
    object-fit: cover;
    object-position:center;
    display:block;
    border-top-left-radius:12px;
    border-top-right-radius:12px;
}

.producto-info{
    padding:12px;
}

.producto-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-size:17px;
}

.controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:10px;
}

.controls button{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#ff9800;
    color:black;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
}

/* =========================
   OVERLAY
========================= */
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    z-index:9000;
}

.overlay.active{
    display:block;
}

/* =========================
   CART (FIX Z-INDEX)
========================= */
.cart{
    position:fixed;
    top:0;
    right:-100%;
    width:360px;
    max-width:100%;
    height:100%;
    background:#1b130c;
    padding:20px;
    transition:.3s;
    overflow-y:auto;
    z-index:10000;
}

.cart.active{
    right:0;
}

.cart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.item{
    background:#2b1d0e;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

.item-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

.cart-controls{
    display:flex;
    align-items:center;
    gap:8px;
}

.cart-controls button{
    width:28px;
    height:28px;
    border:none;
    border-radius:50%;
    background:#ff9800;
    color:black;
    font-weight:bold;
    cursor:pointer;
}

.total{
    margin-top:15px;
    color:#ffb300;
    font-size:22px;
    font-weight:bold;
}

/* =========================
   INPUTS
========================= */
input, select{
    width:100%;
    margin-top:12px;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#2b1d0e;
    color:white;
}

/* =========================
   BOTÓN
========================= */
.main-btn{
    width:100%;
    margin-top:15px;
    padding:14px;
    border:none;
    background:#25D366;
    color:white;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
}

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

.footer-fijo{

    position:fixed;

    bottom:0;
    left:0;

    width:100%;

    background:#2b1d0e;

    color:white;

    border-top:2px solid #ff9800;

    z-index:9999;

    padding:10px 15px;

    text-align:center;

    box-shadow:0 -2px 10px rgba(0,0,0,.4);

    line-height:1.4;
}

/* TEXTO */
.footer-fijo .titulo{

    color:#ffb300;

    font-size:15px;

    font-weight:bold;

    margin-bottom:3px;
}

.footer-fijo .direccion{

    font-size:13px;

    opacity:.9;
}

/* 🔥 espacio inferior para que no tape contenido */
body{
    padding-bottom:80px;
}

.aviso-domicilio{
    margin-top:8px;
    padding:10px;
    background:#fff3cd;
    color:#856404;
    border:1px solid #ffeeba;
    border-radius:10px;
    font-size:14px;
    text-align:center;
}

/* =========================
   BOTÓN TERMINAR PEDIDO
========================= */

.contenedor-terminar{

    position:sticky;

    bottom:80px;

    z-index:1500;

    padding:10px 15px;

    background:transparent;
}

.btn-terminar{

    width:100%;

    background:black !important;

    color:white !important;

    font-weight:bold;

    border:none;

    border-radius:14px;

    padding:15px;

    cursor:pointer;

    transition:all .2s ease;

    box-shadow:0 4px 12px rgba(37,211,102,.4);

    font-size:17px;
}

.btn-terminar:hover{

    background:#1ebe5d !important;

    transform:scale(1.02);
}

#cartBtnViejo{
    display:none !important;
}

/* =========================
   🔥 MOBILE FIX (2 columnas)
========================= */
@media(max-width:768px){

    .producto-list{
        grid-template-columns:1fr 1fr;
    }

    .producto img{
        height:120px;
    }
    
      .footer-fijo{

        padding:8px 10px;
    }

    .footer-fijo .titulo{

        font-size:13px;
    }

    .footer-fijo .direccion{

        font-size:11px;

        line-height:1.3;
    }

    body{
        padding-bottom:75px;
    }
    
}




