/* =========================================================
   EL BUEN SABOR — hoja de estilos
   Paleta: madera oscura + papel crema + rojo ají + dorado
   ========================================================= */
 
:root{
  --wood-dark:   #2B1712;
  --wood-mid:    #40241a;
  --paper:       #FFF6E4;
  --paper-edge:  #F1E3C4;
  --red:         #D62828;
  --red-deep:    #8C1C1C;
  --gold:        #E8A33D;
  --gold-soft:   #F3C77A;
  --cocoa:       #3A2117;
  --cocoa-soft:  #6B4A38;
  --whatsapp:    #25D366;
  --whatsapp-deep:#128C4E;
 
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
 
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 25px rgba(43, 23, 18, .25);
}
 
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
 
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--wood-dark);
  color: var(--cocoa);
  -webkit-font-smoothing: antialiased;
}
 
img{ max-width: 100%; display: block; }
 
a{ text-decoration: none; color: inherit; }
 
:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
 
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
 
.btn-primary{
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(214,40,40,.45);
}
.btn-primary:hover{ background: var(--red-deep); }
 
.btn-whatsapp{
  background: var(--whatsapp);
  color: #0b3d24;
  box-shadow: 0 8px 20px rgba(37,211,102,.4);
}
.btn-whatsapp:hover{ background: var(--whatsapp-deep); color: #fff; }
.btn-whatsapp .ico-wa{ width: 20px; height: 20px; }
.btn-block{ width: 100%; justify-content: center; }
 
/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(43,23,18,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(232,163,61,.25);
}
.header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: .7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--paper);
  white-space: nowrap;
}
.brand-icon{ font-size: 1.5rem; }
.brand-text span{ color: var(--gold-soft); }
 
.cat-nav{
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.cat-nav::-webkit-scrollbar{ display: none; }
 
.cat-pill{
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid rgba(232,163,61,.45);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cat-pill:hover{ border-color: var(--gold); }
.cat-pill.is-active{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cocoa);
}
 
.btn-whatsapp-mini{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  flex: 0 0 auto;
}
.ico-cart{ width: 20px; height: 20px; }
#cartCount, .cart-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--cocoa);
  font-size: .68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--wood-dark);
}
 
/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20,11,8,.55) 0%, rgba(20,11,8,.85) 100%),
    url("images/bg-wood.jpg") center / cover no-repeat;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(214,40,40,.18), transparent 55%);
  pointer-events: none;
}
.hero-content{
  position: relative;
  max-width: 620px;
  padding: 3rem 1.5rem 3rem 5vw;
  z-index: 2;
}
.hero-eyebrow{
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 .6rem;
}
.hero-title{
  font-family: var(--font-display);
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.hero-title span{ color: var(--red); text-shadow: 0 0 24px rgba(214,40,40,.5); }
.hero-sub{
  color: #EFE2C9;
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 1.8rem;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.hero-plate{
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: min(46vw, 560px);
  filter: drop-shadow(0 25px 35px rgba(0,0,0,.55));
  animation: float 5s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
 
@media (max-width: 820px){
  .hero{ min-height: auto; padding-top: 2rem; padding-bottom: 46vw; }
  .hero-content{ padding: 2.2rem 1.3rem 0; max-width: 100%; text-align: left; }
  .hero-plate{ width: 68vw; right: 50%; transform: translateX(50%); bottom: -8vw; }
}
/* Header en 2 filas: marca + carrito arriba, categorías abajo a lo ancho */
@media (max-width: 560px){
  .header-inner{
    flex-wrap: wrap;
    row-gap: .6rem;
  }
  .brand{ flex: 1 1 auto; font-size: 1.15rem; }
  .btn-whatsapp-mini{ order: 2; }
  .cat-nav{
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }
} 
/* =========================================================
   MENU
   ========================================================= */
main{
  background: var(--wood-mid);
  padding: 3.5rem 1.2rem 1rem;
}
.menu-section{
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.section-heading{
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.section-icon{ font-size: 1.7rem; }
.section-heading h2{
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.6rem;
  margin: 0;
}
 
.menu-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
 
.dish{
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--paper-edge);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dish:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.dish-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: .8rem;
  background: var(--paper-edge);
}
.dish-info{ flex: 1; }
.dish-row{
  display: flex;
  align-items: baseline;
  gap: .4rem;
  flex-wrap: wrap;
}
.dish-row h3{
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0;
  color: var(--cocoa);
}
.dots{
  flex: 1;
  border-bottom: 3px dotted var(--gold);
  min-width: 20px;
  height: 0;
  transform: translateY(-4px);
}
.price-pill{
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.dish-desc{
  margin: .4rem 0 0;
  font-size: .92rem;
  color: var(--cocoa-soft);
}
.side-list{
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  font-size: .92rem;
  color: var(--cocoa);
}
.side-list li{ margin-bottom: .25rem; }
.check{ color: var(--red); font-weight: 800; margin-right: .35rem; }
 
.btn-add{
  margin-top: .9rem;
  align-self: flex-start;
  background: var(--gold);
  color: var(--cocoa);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn-add:hover{ background: var(--gold-soft); transform: translateY(-1px); }
.btn-add.is-added{ background: var(--whatsapp); color: #0b3d24; }
 
.dish-featured{
  max-width: 640px;
  border: 2px solid var(--gold);
}
 
.closing-line{
  text-align: center;
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.3rem;
  padding: 1rem 0 2.5rem;
}
 
/* hide/filter transitions */
.dish[hidden]{ display: none; }
.dish.js-hide{ display: none; }
 
/* =========================================================
   CARRITO FLOTANTE
   ========================================================= */
.cart-drawer{
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.cart-toggle{
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  cursor: pointer;
  position: relative;
}
.cart-panel{
  width: min(320px, 86vw);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--paper-edge);
  display: none;
  max-height: 70vh;
  overflow-y: auto;
}
.cart-panel.is-open{ display: block; }
.cart-panel h3{
  font-family: var(--font-display);
  margin: 0 0 .6rem;
  color: var(--cocoa);
}
.cart-list{
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  font-size: .92rem;
}
.cart-list li{
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px dashed var(--paper-edge);
}
.cart-empty{ color: var(--cocoa-soft); border-bottom: none !important; }
.cart-item-name{ flex: 1; }
.cart-qty-controls{
  display: flex;
  align-items: center;
  gap: .3rem;
}
.qty-btn{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
}
.cart-total-row{
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .5rem 0 .9rem;
  border-top: 2px solid var(--paper-edge);
}
.btn-clear{
  width: 100%;
  background: none;
  border: none;
  color: var(--cocoa-soft);
  font-size: .85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: .6rem 0 0;
}
 
/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--wood-dark);
  color: var(--paper);
  text-align: center;
  padding: 2.2rem 1.2rem 6.5rem;
  font-size: .92rem;
}
.footer-brand{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-soft);
  margin-bottom: .3rem;
}
.footer-note{ color: var(--cocoa-soft); margin-top: .6rem; }
 
@media (min-width: 600px){
  .site-footer{ padding-bottom: 2.2rem; }
}
 
/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-plate{ animation: none; }
  html{ scroll-behavior: auto; }
  .dish, .btn, .btn-add{ transition: none; }
}
 