/* ============================================
   PIZZONONA – MENU SECTION – STYLE.CSS
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #f1e9d6;
  --orange:     #2299aa;
  --orange-rgb: 34,153,170;
  --orange-lt:  #3fb6c4;
  --orange-glow:var(--orange-lt);
  --dark:       #14100d;
  --card-bg:    #ffffff;
  --ring-color: #2299aa;
  --star:       #f5a623;
  --radius-card:30px 30px 18px 18px;
  --shadow:     0 12px 40px rgba(var(--orange-rgb),.18);
  --trans:      all .35s cubic-bezier(.4,0,.2,1);
}

/* ---- BODY / BG ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- BURBUJAS DE FONDO ANIMADAS ---- */
.bg-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-bubbles span {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  opacity: .07;
  animation: floatUp linear infinite;
  background: radial-gradient(circle at 40% 40%, var(--orange-glow), var(--orange));
}
.bg-bubbles span:nth-child(1)  { width:80px;  height:80px;  left:5%;   animation-duration:14s; animation-delay:0s;   }
.bg-bubbles span:nth-child(2)  { width:40px;  height:40px;  left:15%;  animation-duration:18s; animation-delay:2s;   }
.bg-bubbles span:nth-child(3)  { width:120px; height:120px; left:25%;  animation-duration:22s; animation-delay:5s;   }
.bg-bubbles span:nth-child(4)  { width:60px;  height:60px;  left:40%;  animation-duration:16s; animation-delay:1s;   }
.bg-bubbles span:nth-child(5)  { width:90px;  height:90px;  left:55%;  animation-duration:19s; animation-delay:3s;   }
.bg-bubbles span:nth-child(6)  { width:50px;  height:50px;  left:65%;  animation-duration:13s; animation-delay:7s;   }
.bg-bubbles span:nth-child(7)  { width:100px; height:100px; left:75%;  animation-duration:21s; animation-delay:4s;   }
.bg-bubbles span:nth-child(8)  { width:35px;  height:35px;  left:85%;  animation-duration:17s; animation-delay:6s;   }
.bg-bubbles span:nth-child(9)  { width:70px;  height:70px;  left:92%;  animation-duration:20s; animation-delay:2.5s; }
.bg-bubbles span:nth-child(10) { width:55px;  height:55px;  left:50%;  animation-duration:15s; animation-delay:8s;   }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);   opacity:.07; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity:0;  }
}

/* ---- SECCIÓN PRINCIPAL ---- */
.menu-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 140px;  /* padding inferior extra para que el cart-bar no tape tarjetas */
}

/* ---- ICONOS PLANOS ---- */
.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* ---- ENCABEZADO DEL SITIO ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.site-header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo { height: 44px; width: auto; object-fit: contain; }
.site-logo-icon { width: 34px; height: 34px; color: var(--orange); }
.site-wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--dark);
}

.site-header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0cfc7;
  color: #7a5c50;
  cursor: pointer;
  transition: var(--trans);
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge[hidden] { display: none; }

.branch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 50px;
  border: 2px solid #e0cfc7;
  background: #fff;
  color: #7a5c50;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}
.branch-chip:hover { border-color: var(--orange); color: var(--orange); }
.branch-chip .icon { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .site-header { margin-bottom: 18px; }
  .icon-btn { width: 38px; height: 38px; }
  .branch-chip { padding: 8px 12px; font-size: .72rem; }
  .branch-chip span:not(.icon) { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---- TÍTULO ---- */
.menu-title {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeDown .8s ease both;
}
.menu-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
}
.menu-title h2 .highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 24px rgba(var(--orange-rgb),.4); }
}
.menu-title .subtitle {
  margin-top: 12px;
  font-size: .95rem;
  color: #9a7060;
  letter-spacing: .04em;
}

@keyframes fadeDown {
  from { opacity:0; transform:translateY(-30px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ---- FILTROS ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  animation: fadeDown .9s .1s ease both;
}

.filter-btn {
  cursor: pointer;
  border: 2.5px solid #e0cfc7;
  border-radius: 50px;
  padding: 10px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #7a5c50;
  background: #fff;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(var(--orange-rgb),.06);
}

/* Efecto ripple */
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.6) 10%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
  border-radius: 50px;
}
.filter-btn:active::after {
  transform: scale(2.5);
  opacity: 1;
  transition: 0s;
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(var(--orange-rgb),.22);
}
.filter-btn:active {
  transform: translateY(1px) scale(.97);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(var(--orange-rgb),.38);
  transform: translateY(-2px);
}

/* ---- GRID ---- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width:1100px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:750px)  { .menu-grid { grid-template-columns: repeat(2, 1fr); gap:18px; } }
@media (max-width:440px)  { .menu-grid { grid-template-columns: 1fr; } }

/* ---- TARJETA ---- */
.menu-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: visible;
  transition: var(--trans);
  animation: cardPop .6s ease both;
  cursor: default;
  border: 2px solid transparent;
}
.menu-card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 24px 60px rgba(var(--orange-rgb),.28);
}
.menu-card.hidden { display: none; }

/* Tarjeta SELECCIONADA (con qty > 0) */
.menu-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 18px 42px rgba(var(--orange-rgb),.24);
  transform: translateY(-4px) scale(1.01);
}

@keyframes cardPop {
  from { opacity:0; transform:scale(.88) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 18px;
}

/* ---- PIZZA WRAPPER ---- */
.pizza-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  margin-bottom: 14px;
}

/* Anillos decorativos giratorios */
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--ring-color);
  opacity: .18;
  animation: ringRotate linear infinite;
}
.ring-1 {
  margin: -6%;
  border-style: dashed;
  animation-duration: 16s;
  border-color: var(--orange);
  opacity: .22;
}
.ring-2 {
  margin: -14%;
  border-style: dotted;
  animation-duration: 24s;
  animation-direction: reverse;
  border-color: var(--orange-lt);
  opacity: .14;
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* ---- IMAGEN PIZZA ---- */
.pizza-img {
  width: 90%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 32px rgba(var(--orange-rgb),.22);
}

.menu-card[data-category="combos"] .ring {
  display: none;
}

.menu-card[data-category="combos"] .pizza-img {
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 6px 20px rgba(26,10,0,.08);
}

.menu-card,
.filter-btn,
.qty-add,
.qty-btn,
.btn-pedir {
  -webkit-tap-highlight-color: transparent;
}

/* ---- INFO TARJETA ---- */
.card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-size: .78rem;
  color: #9a7060;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-name span {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- DESCRIPCIÓN ---- */
.card-desc {
  font-size: .76rem;
  color: #7a5c50;
  line-height: 1.45;
  margin: 6px 0 12px;
  min-height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 10px;
  letter-spacing: .02em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .82rem;
  color: var(--star);
  font-weight: 600;
}
.stars .icon { width: 14px; height: 14px; }
.stars b { color: #6b4c38; }

/* ============================================
   STEPPER DE CANTIDAD POR PRODUCTO (+/-)
   Reemplaza al checkbox anterior.
   ============================================ */
.qty-control {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Botón inicial "+ Agregar" */
.qty-add {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--orange);
  background: #fff;
  border: 2.5px solid var(--orange);
  border-radius: 50px;
  padding: 8px 14px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(var(--orange-rgb),.18);
  transition: var(--trans);
  overflow: hidden;
  position: relative;
}
.qty-add::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, transparent 70%);
  transform: scale(0);
  border-radius: 50px;
  transition: transform .4s ease;
}
.qty-add:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(var(--orange-rgb),.32);
}
.qty-add:hover::before { transform: scale(2); }
.qty-add:active {
  transform: scale(.96);
}

/* Contenedor del stepper (visible cuando qty > 0) */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(var(--orange-rgb),.45);
  animation: qtyAppear .35s cubic-bezier(.4,0,.2,1) both;
}
.qty-stepper[hidden] { display: none; }
@keyframes qtyAppear {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* Botones - y + dentro del stepper */
.qty-btn {
  cursor: pointer;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .2s ease;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover {
  background: rgba(255,255,255,.32);
  transform: scale(1.08);
}
.qty-btn:active {
  transform: scale(.9);
  background: rgba(255,255,255,.45);
}

/* Número entre los botones */
.qty-num {
  min-width: 26px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  font-size: .92rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* Cuando el control está seleccionado: resalta */
.qty-control.is-selected .qty-add { display: none; }

/* ---- TRANSICIÓN FILTRO ---- */
.menu-card.fade-in {
  animation: cardPop .45s ease both;
}

/* ============================================
   BARRA DE PEDIDO FLOTANTE (CARRITO)
   ============================================ */
.cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 180%);
  background: #fff;
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow: 0 18px 50px rgba(var(--orange-rgb),.32);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  width: calc(100% - 32px);
  z-index: 950;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  border: 2px solid var(--orange);
}
.cart-bar.visible {
  transform: translate(-50%, 0);
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-count {
  font-weight: 800;
  color: var(--dark);
  font-size: .88rem;
  letter-spacing: .01em;
}
.cart-items {
  font-size: .75rem;
  color: #9a7060;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-total-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.cart-total-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9a7060;
  font-weight: 700;
}
.cart-total {
  font-weight: 900;
  color: var(--orange);
  font-size: 1.15rem;
  white-space: nowrap;
}

.btn-pedir {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: var(--trans);
  box-shadow: 0 6px 20px rgba(var(--orange-rgb),.42);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-pedir .icon { width: 16px; height: 16px; }
.btn-pedir::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.45) 0%, transparent 70%);
  transform: scale(0);
  border-radius: 14px;
  transition: transform .4s ease;
}
.btn-pedir:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(var(--orange-rgb),.55);
}
.btn-pedir:hover::before { transform: scale(2); }
.btn-pedir:active {
  transform: scale(.96);
}
.btn-pedir:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(.4);
}

/* ============================================
   RESPONSIVE AJUSTES FINOS
   ============================================ */
@media (max-width: 700px) {
  .menu-title h2 { font-size: 1.6rem; }
  .filter-btn { font-size: .73rem; padding: 8px 16px; }
  .card-name span { font-size: .82rem; }
  .card-desc { font-size: .72rem; min-height: 56px; -webkit-line-clamp: 3; }
  .cart-bar {
    position: absolute;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    bottom: auto;
    top: 50vh;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    transition: opacity .45s ease, transform .45s cubic-bezier(.4,0,.2,1), top .35s cubic-bezier(.4,0,.2,1);
  }
  .cart-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .cart-info { width: 100%; }
  .cart-total-wrap { flex-direction: row; align-items: center; gap: 6px; }
  .btn-pedir { flex: 1; justify-content: center; padding: 12px 14px; }
  .qty-add { font-size: .68rem; padding: 7px 12px; }
  .qty-btn { width: 26px; height: 26px; }
}
@media (max-width: 440px) {
  .cart-count { font-size: .8rem; }
  .cart-items { font-size: .7rem; }
  .cart-total { font-size: 1rem; }
  .btn-pedir { font-size: .85rem; }
}

/* ============================================
   FOTOS EXTRA (miniaturas debajo de la pizza)
   ============================================ */
.extra-thumbs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.extra-thumbs img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  transition: var(--trans);
}
.extra-thumbs img:hover { opacity: 1; transform: scale(1.08); }
.extra-thumbs img.active { border-color: var(--orange); opacity: 1; }

/* ============================================
   MODAL DE INGREDIENTES
   ============================================ */
.ing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,10,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ing-modal-overlay[hidden] { display: none; }
.ing-modal {
  background: #fff;
  border-radius: 22px;
  padding: 26px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  animation: qtyAppear .3s ease both;
}
.ing-modal h3 { color: var(--dark); font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 16px; }

.ing-modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.ing-col h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9a7060;
  font-weight: 700;
  margin-bottom: 8px;
}
.ing-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}
.ing-col-empty { font-size: .76rem; color: #c2ab9e; font-style: italic; }

.ing-chip {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--dark);
  background: rgba(var(--orange-rgb),.08);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--trans);
}
.ing-chip:hover { border-color: var(--orange); transform: translateY(-1px); }
.ing-chip.locked {
  background: #ececec;
  color: #a3a3a3;
  cursor: default;
  pointer-events: none;
}
.ing-chip.locked:hover { transform: none; }

.ing-modal-legend {
  font-size: .76rem;
  color: #9a7060;
  margin: 4px 0 18px;
}

.ing-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ing-modal-actions button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
}
.btn-cancel { background: #f1e5df; color: #7a5c50; }
.btn-confirm { background: linear-gradient(135deg, var(--orange), var(--orange-lt)); color: #fff; }

/* ---- MODAL DE SUCURSAL ---- */
.branch-modal { max-width: 380px; }
.branch-modal-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.branch-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e9d9d0;
  background: rgba(var(--orange-rgb),.08);
  cursor: pointer;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  transition: var(--trans);
}
.branch-option:hover { border-color: var(--orange); transform: translateY(-1px); }
.branch-option .icon { color: var(--orange); }
.branch-option-text { display: flex; flex-direction: column; }
.branch-option-name { font-weight: 700; font-size: .88rem; color: var(--dark); }
.branch-option-address { font-size: .74rem; color: #9a7060; }

/* ============================================
   PANEL DE PEDIDO (drawer con líneas del carrito)
   ============================================ */
.cart-info { cursor: pointer; }

.order-panel {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 720px;
  max-height: 50vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(var(--orange-rgb),.3);
  border: 2px solid var(--orange);
  z-index: 940;
  padding: 16px;
}
.order-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.order-panel-head h3 { font-family: 'Playfair Display', serif; color: var(--dark); font-size: 1.05rem; }
.order-panel-head button {
  background: none; border: none; cursor: pointer; color: #9a7060;
  display: inline-flex; align-items: center;
}
.order-panel-head button .icon { width: 18px; height: 18px; }
.order-empty { color: #9a7060; font-size: .85rem; text-align: center; padding: 12px 0; }

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #f1e5df;
}
.order-line:last-child { border-bottom: none; }
.order-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-line-name { font-weight: 700; font-size: .86rem; color: var(--dark); }
.order-line-summary { font-size: .72rem; color: #9a7060; }
.order-line-price { font-size: .78rem; font-weight: 700; color: var(--orange); }
.order-line-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.qty-stepper-mini {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
}
.order-line-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

@media (max-width: 700px) {
  .order-panel { bottom: auto; top: calc(50vh + 90px); }
}

/* ============================================
   ENCABEZADO Y PIE COMPARTIDOS CON EL INICIO
   (el encabezado en sí vive en ../inicio/header.css)
   ============================================ */
.menu-section { padding-top: 124px; padding-bottom: 48px; }
.site-header { justify-content: flex-end; }

/* Iconos de acceso al panel y carrito dentro del encabezado */
.site-nav .icon-btn { width: 40px; height: 40px; background: transparent; border-color: transparent; color: #fff; }
.site-nav .icon-btn:hover { border-color: transparent; color: #8fe3ea; transform: translateY(-2px); }
.site-nav .icon-btn .icon { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }

/* Pie compacto: tarjeta blanca angosta centrada */
.site-footer {
  position: relative;
  z-index: 0; /* por debajo de la barra y el panel del pedido */
  max-width: 420px;
  margin: 0 auto 120px; /* espacio abajo para la barra flotante del pedido */
  background: #fff;
  border: 1px solid #ece6da;
  border-radius: 18px;
  padding: 18px 20px 16px;
  text-align: center;
  color: #77716a;
  font-family: 'Barlow', system-ui, sans-serif;
}
.site-footer-brand { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.35rem; line-height: 1.15; color: #77716a; }
.site-footer-tag { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }
.site-footer-address { margin-top: 8px; font-size: .78rem; }
.site-footer-ig { display: inline-block; margin-top: 6px; font-size: .85rem; font-weight: 700; color: var(--orange); text-decoration: none; }
.site-footer-ig:hover { text-decoration: underline; }
.site-footer-bye { margin-top: 8px; font-family: 'Caveat', cursive; font-size: 1.15rem; }
@media (max-width: 480px) { .site-footer { margin-left: 16px; margin-right: 16px; } }

/* En móvil la barra del pedido viaja con la página: que pase por debajo del encabezado fijo. */
@media (max-width: 700px) { .cart-bar { z-index: 800; } }

/* ============================================
   VENTANA DE PRODUCTO (personalizar antes de agregar)
   ============================================ */
.ing-modal { position: relative; padding: 24px 22px 20px; max-height: 88vh; }
.ing-modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: #f3efe8; color: #7a5c50; cursor: pointer;
}
.ing-modal-close:hover { color: var(--orange); }
.ing-modal-close .icon { width: 16px; height: 16px; }
.ing-modal-head { display: flex; align-items: center; gap: 16px; padding-right: 36px; }
.ing-modal-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 18px rgba(var(--orange-rgb),.25); }
.ing-modal-cat { font-size: .72rem; color: #9a7060; font-weight: 600; }
.ing-modal h3 { margin: 2px 0 4px; font-size: 1.25rem; line-height: 1.2; }
.ing-modal-price { font-size: 1.05rem; font-weight: 700; color: var(--orange); }
.ing-modal-desc { margin: 14px 0 4px; font-size: .8rem; line-height: 1.45; color: #7a5c50; }

.ing-section { margin-top: 16px; }
.ing-section[hidden] { display: none; }
.ing-section h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dark); font-weight: 700; margin-bottom: 8px; }
.ing-section h4 span { text-transform: none; letter-spacing: 0; font-weight: 500; color: #9a7060; margin-left: 6px; }
.ing-opt-list { display: flex; flex-direction: column; gap: 6px; }
.ing-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; border: 1.5px solid #ece6da; background: #fff;
  font-size: .86rem; font-weight: 600; color: var(--dark); cursor: pointer; transition: var(--trans);
}
.ing-opt:hover { border-color: var(--orange); }
.ing-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ing-opt-check {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: 2px solid #cfc5b8;
  display: flex; align-items: center; justify-content: center; transition: var(--trans);
}
.ing-opt input:checked + .ing-opt-check { background: var(--orange); border-color: var(--orange); }
.ing-opt input:checked + .ing-opt-check::after {
  content: ''; width: 5px; height: 10px; margin-top: -2px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.ing-opt:has(input:checked) { border-color: var(--orange); background: rgba(var(--orange-rgb),.07); }
.ing-opt input:focus-visible + .ing-opt-check { outline: 2px solid var(--orange); outline-offset: 2px; }
.ing-opt-name { flex: 1; }
.ing-opt-price { font-weight: 700; color: var(--orange); white-space: nowrap; }
.ing-opt.locked { cursor: default; background: #f3f1ee; border-color: #ece6da; color: #a3a3a3; }
.ing-opt.locked .ing-opt-check { background: #c9c4bc; border-color: #c9c4bc; }

.ing-modal-actions { align-items: center; justify-content: space-between; margin-top: 20px; position: sticky; bottom: -20px; background: #fff; padding: 12px 0 2px; }
.ing-modal-qty { background: linear-gradient(135deg, var(--orange), var(--orange-lt)); }
.ing-modal-actions .btn-confirm { flex: 1; padding: 13px 18px; font-size: .9rem; border-radius: 50px; }

/* Botones fijos al pie de la ventana aunque la lista de opciones sea larga */
.ing-modal { padding-bottom: 0; max-height: 88dvh; }
.ing-modal-actions { bottom: 0; padding: 12px 0 18px; }

/* Móvil: la ventana sale como hoja desde abajo, a todo el ancho, y la página de atrás no se mueve */
@media (max-width: 700px) {
  body.modal-lock { overflow: hidden; }
  .ing-modal-overlay { padding: 0; align-items: flex-end; }
  .ing-modal {
    width: 100%; max-width: none;
    max-height: 90vh; max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    padding: 20px 16px 0;
    overscroll-behavior: contain;
    animation: sheetUp .3s ease both;
  }
  .ing-modal-head { gap: 12px; }
  .ing-modal-img { width: 76px; height: 76px; }
  .ing-modal h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
  .ing-opt { padding: 11px 12px; }
  .ing-opt-name { min-width: 0; overflow-wrap: anywhere; }
  .ing-modal-actions { gap: 10px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .ing-modal-actions .btn-confirm { padding: 13px 12px; white-space: nowrap; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Los anillos decorativos no deben ensanchar la página en pantallas chicas */
.menu-section { overflow-x: clip; }
