:root{
  --bg:#f8f9fa;
  --accent:#00a878;
  --dark:#222;
  --muted:#666;
}

*{box-sizing:border-box}
body{font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--dark);margin:0}
.container{width:92%;max-width:1100px;margin:0 auto}

.site-header{background:#fff;border-bottom:1px solid #eee;padding:12px 0;position:sticky;top:0;z-index:50,}
.site-header .container{display:flex;align-items:center;justify-content:space-between}
.site-header h1{font-size:1.25rem;margin:0}
.cart-btn{background:var(--accent);color:#fff;border:none;padding:8px 12px;border-radius:8px;cursor:pointer}

.hero{padding:28px 0;text-align:center}
.hero h2{margin:0 0 6px 0;font-size:1.6rem}
.hero p{color:var(--muted);margin:0}

.menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;padding:24px 0}
.card{
  background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.06);transition:transform .18s ease;
  display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-6px)}
.card img{width:100%;height:170px;object-fit:cover;display:block}
.card-body{padding:14px;flex:1;display:flex;flex-direction:column}
.card-title{font-size:1.05rem;margin:0 0 6px 0}
.card-desc{flex:1;color:var(--muted);font-size:.95rem;margin-bottom:10px}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.price{font-weight:700}
.add-btn{background:var(--accent);color:#fff;border:none;padding:8px 10px;border-radius:8px;cursor:pointer}

.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.35);opacity:0;pointer-events:none;transition:opacity .18s}
.cart-panel{ position:fixed; right:-420px;top:55px;height: calc(100vh - 55px); ;width:420px;background:#fff;box-shadow:-8px 0 24px rgba(0,0,0,0.12);transition:right .22s;z-index:60;display:flex;flex-direction:column}
.cart-header{padding:16px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}
.close-btn{background:none;border:none;font-size:1.5rem;cursor:pointer}
.cart-items{padding:12px;overflow:auto;flex:1}
.cart-item{display:flex;gap:10px;padding:10px 6px;border-bottom:1px solid #f0f0f0}
.cart-item img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.item-info{flex:1}
.qty-controls{display:flex;align-items:center;gap:8px;margin-top:8px}
.qty-controls button{padding:6px 8px;border-radius:6px;border:1px solid #ddd;background:#fff;cursor:pointer}
.remove-btn{background:none;border:none;color:#d33;cursor:pointer}

.cart-footer{padding:12px;border-top:1px solid #eee}
.totals{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.actions{display:flex;gap:8px;justify-content:flex-end}
.btn{padding:10px 14px;border-radius:8px;border:none;cursor:pointer}
.btn.primary{background:var(--accent);color:#fff}
.btn.secondary{background:#fff;border:1px solid #ddd}

.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;z-index:80}
.modal-content{width:92%;max-width:520px;background:#fff;padding:20px;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,0.18)}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.pay-result{margin-top:12px;color:green;font-weight:700}

.show-overlay{opacity:1;pointer-events:auto}
.show-cart{right:0}

@media(max-width:560px){
  .cart-panel{width:100%;right:-100%}
  .modal-content{width:96%}
  .card img{height:140px}
}


.hero-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 15vh; 
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.navbar {
  padding: 20px 0;
    background-image: linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.55)
    ),
    url('imagenes/fondo.jpg');
  background-color: #c62828; /* tu color */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.nav-menu a:hover {
  color: #ffcc00;
}

.cart-btn {
  background-color: #ffcc00;
  border: none;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.cart-btn:hover {
  background-color: #e6b800;
}


.hero-content {
  text-align: center;
  padding-bottom: 50px;
}

.hero-content h2 {
  font-size: 48px;
  margin: 0;
}

.hero-content p {
  font-size: 20px;
  margin: 10px 0 20px;
}

.hero-btn {
  background-color: #ffcc00;
  color: black;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.hero-btn:hover {
  background-color: #e6b800;
}
