/* ======================================================
   🎨 PALETA PEDIDOSYA – ELEGANTE
   ====================================================== */
:root{
  --bg:#f5f6f8;
  --card:#ffffff;

  --text:#1f2937;
  --muted:#6b7280;

  --accent:#ff2b56;     /* rojo PedidosYa */
  --accent-soft:#ffe5ea;
  --success:#00c853;
  --warning:#ffb020;
  --danger:#e11d48;

  --radius:16px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

/* ======================================================
   RESET & BASE
   ====================================================== */
*{box-sizing:border-box}
html,body{padding:0;margin:0}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit;text-decoration:none}

/* ======================================================
   LAYOUT
   ====================================================== */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:16px;
}

.section{margin:20px 0}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

/* ======================================================
   TOPBAR
   ====================================================== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

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

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:18px;
  color:var(--accent);
}

.brand-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
}

.nav{
  display:flex;
  gap:10px;
}

.nav a{
  padding:8px 14px;
  border-radius:999px;
  font-weight:600;
  color:#374151;
}

.nav a:hover{
  background:#f3f4f6;
}

/* ======================================================
   TITULOS
   ====================================================== */
h1{font-size:26px;margin:0}
h2{font-size:20px;margin:0}
h3{font-size:16px;margin:0}

.sub{
  font-size:14px;
  color:var(--muted);
}

/* ======================================================
   GRID & CARDS
   ====================================================== */
.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}

.card{
  grid-column: span 4;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:.2s ease;
}

.card:hover{
  transform:translateY(-2px);
}

.card .cover{
  height:150px;
  background:#f3f4f6;
}

.card .cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card .body{
  padding:14px;
}

/* ======================================================
   BOTONES
   ====================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  border:none;
  background:#f3f4f6;
  color:#374151;
  transition:.15s;
}

.btn:hover{
  background:#e5e7eb;
}

.btn.primary{
  background:var(--accent);
  color:#fff;
}

.btn.primary:hover{
  filter:brightness(.95);
}

.btn.block{width:100%}

/* ======================================================
   MENU / SIDEBAR
   ====================================================== */
.menu-wrap{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:16px;
}

.sidebar{
  background:#fff;
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  height:fit-content;
}

.sidebar h3{
  margin-bottom:10px;
  font-size:14px;
  color:var(--muted);
}

/* ======================================================
   CATEGORIAS
   ====================================================== */
.cat{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  color:#374151;
}

.cat:hover{
  background:#f3f4f6;
}

.cat.active{
  background:var(--accent-soft);
  color:var(--accent);
}

/* ======================================================
   PRODUCTOS
   ====================================================== */
.products{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.product{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.product .pimg{
  height:240px;
  background:#f3f4f6;
}

.product .pimg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product .pbody{
  padding:14px;
}

.product .pname{
  font-weight:800;
  margin-bottom:4px;
}

.product .pdesc{
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}

.price{
  font-weight:900;
  color:var(--accent);
}

/* ======================================================
   FORMULARIOS
   ====================================================== */
.form{
  background:#fff;
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#374151;
  margin:10px 0 6px;
}

input,textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  font-size:14px;
}

input:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
}

/* ======================================================
   NOTICES
   ====================================================== */
.notice{
  padding:14px;
  border-radius:12px;
  background:#f9fafb;
  border:1px dashed #e5e7eb;
  color:var(--muted);
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer{
  margin-top:30px;
  border-top:1px solid #e5e7eb;
  padding:18px 0;
  color:var(--muted);
  text-align:center;
  font-size:13px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media(max-width:900px){
  .menu-wrap{grid-template-columns:1fr}
  .products{grid-template-columns:1fr}
  .card{grid-column:span 12}
}


/* Card Local */
.card .body{
  padding:14px;
}

.card h3{
  margin:0 0 6px;
  font-size:17px;
  font-weight:800;
}

/* Estado */
.status{
  font-size:13px;
  font-weight:600;
  margin-bottom:6px;
}

.status.open{
  color:#00c853;
}

.status.closed{
  color:#e53935;
}

/* Dirección */
.address{
  font-size:13px;
  color:#666;
  margin-bottom:12px;
}

/* Botón */
.actions .btn{
  width:100%;
  text-align:center;
}
