/* ==========================================================
   VACARELLOS - PARRILLA & CAFÉ
   Diseño de Alta Gama: Parrilla Criolla, Café & Bistro
   ========================================================== */

:root {
  --bg-dark: #0d1411;
  --bg-card: #15221c;
  --bg-card-hover: #1c2e26;
  --bg-elevated: #1f332a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(234, 179, 8, 0.4);
  --border-green: rgba(46, 125, 79, 0.45);
  
  --gold-primary: #f59e0b;
  --gold-light: #fef08a;
  --gold-glow: rgba(245, 158, 11, 0.25);

  --green-primary: #2e7d4f;
  --green-light: #4ade80;
  --green-glow: rgba(46, 125, 79, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --whatsapp-green: #25d366;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-floating: 0 10px 30px rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 110px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(46, 125, 79, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================
   HEADER & PORTADA VACARELLOS
   ========================================================== */
.bar-header {
  padding: 2.2rem 1rem 1.25rem 1rem;
  text-align: center;
  position: relative;
}

.vintage-frame {
  position: relative;
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.5rem 1.6rem 1.5rem;
  background: linear-gradient(180deg, rgba(21, 34, 28, 0.85) 0%, rgba(13, 20, 17, 0.95) 100%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.bar-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.bar-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 125, 79, 0.2);
  border: 1px solid var(--green-primary);
  color: var(--green-light);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-light);
  box-shadow: 0 0 10px var(--green-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================
   BANNER DE HORARIOS & ESTADO (HORA ARGENTINA UTC-3)
   ========================================================== */
.schedule-banner {
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.schedule-banner.schedule-open {
  background: rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.schedule-banner.schedule-closed {
  background: rgba(239, 68, 68, 0.18);
  border-bottom: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================
   BANNER DE OFERTAS DEL DÍA
   ========================================================== */
.daily-special-banner {
  max-width: 880px;
  margin: 1.25rem auto 0.5rem auto;
  padding: 0 1rem;
}
.special-banner-card {
  background: linear-gradient(135deg, rgba(25, 40, 32, 0.95), rgba(15, 25, 20, 0.95));
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.2);
}
.special-badge-pill {
  display: inline-block;
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.special-banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.special-banner-desc {
  color: #cbd5e1;
  font-size: 0.88rem;
  max-width: 600px;
}
.special-banner-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.special-banner-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
}
.btn-add-special {
  background: var(--gold-primary);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-add-special:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ==========================================================
   NAVEGACIÓN DE CATEGORÍAS & BUSCADOR
   ========================================================== */
.categories-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 0;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.category-pill:hover {
  color: #fff;
  border-color: var(--border-green);
  background: rgba(46, 125, 79, 0.15);
}
.category-pill.active {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  box-shadow: 0 2px 10px var(--green-glow);
}

.search-container {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
}
.search-clear.active {
  display: block;
}

/* ==========================================================
   ITEMS DEL MENÚ & TARJETAS
   ========================================================== */
.menu-category-section {
  margin-bottom: 2rem;
}
.category-title-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}
.category-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}
.category-count {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: auto;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-item-card:hover {
  border-color: var(--border-green);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}
.item-title-wrap {
  flex: 1;
}
.item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.item-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-left: 0.4rem;
  vertical-align: middle;
}
.item-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

.item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

/* Opciones / Tamaños */
.item-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.size-selector-btn, .option-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.size-selector-btn.active, .option-chip.active {
  background: rgba(46, 125, 79, 0.2);
  border-color: var(--green-primary);
  color: var(--green-light);
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.65rem;
}

.btn-add-item {
  background: var(--green-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  transition: var(--transition);
}
.btn-add-item:hover {
  background: #368e5a;
  transform: translateY(-1px);
}
.btn-add-item:active {
  transform: scale(0.97);
}

/* ==========================================================
   BARRA FLOTANTE DEL CARRITO
   ========================================================== */
.floating-cart {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 880px;
  background: rgba(21, 34, 28, 0.95);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: var(--transition);
}
.floating-cart:hover {
  border-color: var(--green-primary);
}
.cart-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.cart-badge-count {
  background: var(--gold-primary);
  color: #000;
  font-size: 0.82rem;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-floating-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.btn-open-cart {
  background: var(--green-primary);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.btn-open-cart:hover {
  background: #368e5a;
}

/* ==========================================================
   MODAL CHECKOUT & CARRITO
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: #131f19;
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}
.modal-header {
  padding: 1.15rem 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}
.modal-body {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  flex: 1;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}
.qty-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.cart-item-total {
  font-weight: 800;
  color: var(--gold-light);
  font-size: 0.95rem;
  min-width: 65px;
  text-align: right;
  margin-left: 0.5rem;
}

.delivery-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.delivery-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}
.delivery-btn.active {
  background: rgba(46, 125, 79, 0.2);
  border-color: var(--green-primary);
  color: #fff;
}

.form-group {
  margin-bottom: 0.85rem;
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--green-primary);
}

/* Transferencia & Cupones */
.transfer-info-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.btn-copy-alias {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.coupon-box {
  background: rgba(168, 85, 247, 0.08);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.85rem;
}
.coupon-input-wrap {
  display: flex;
  gap: 0.5rem;
}
.btn-apply-coupon {
  background: #9333ea;
  color: #fff;
  border: none;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.modal-footer {
  padding: 1.15rem 1.4rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
}
.grand-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}
.grand-total-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-light);
}

.btn-send-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--whatsapp-glow);
  width: 100%;
}
.btn-send-whatsapp:hover {
  transform: translateY(-2px);
}

/* Toast */
.toast-notice {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #18181b;
  border: 1px solid var(--green-primary);
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 300;
  transition: transform 0.3s ease;
}
.toast-notice.visible {
  transform: translateX(-50%) translateY(0);
}

.page-footer {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.5rem;
}
