/* ==========================================================
   ANASTASIO - PARRILLA AL CARBÓN
   Estética Exclusiva: Carbón, Brasas & Fuego Tradicional
   Artigas 5001, Villa Pueyrredón
   ========================================================== */

:root {
  --bg-dark: #12100e;
  --bg-card: #1c1815;
  --bg-card-hover: #26201b;
  --bg-elevated: #2e2620;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(230, 126, 34, 0.45);
  --border-fire: rgba(211, 84, 0, 0.4);

  --accent-gold: #f39c12;
  --gold-primary: #e67e22;
  --gold-light: #fcd34d;
  --gold-glow: rgba(230, 126, 34, 0.3);

  --fire-primary: #d35400;
  --fire-light: #e67e22;
  --fire-glow: rgba(211, 84, 0, 0.35);

  --text-main: #f8fafc;
  --text-muted: #a8a29e;
  --text-dim: #78716c;

  --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: 'Cinzel', '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.6);
  --shadow-floating: 0 10px 30px rgba(0, 0, 0, 0.85);
}

* {
  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(211, 84, 0, 0.15) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(243, 156, 18, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

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

/* ==========================================================
   HEADER & PORTADA ANASTASIO
   ========================================================== */
.bar-header {
  padding: 2.2rem 1rem 1.25rem 1rem;
  text-align: center;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.vintage-frame {
  position: relative;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.5rem 1.6rem 1.5rem;
  background: linear-gradient(180deg, rgba(28, 24, 21, 0.9) 0%, rgba(18, 16, 14, 0.98) 100%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.brand-crest {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 12px rgba(230, 126, 34, 0.5));
}

.bar-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 0 20px rgba(230, 126, 34, 0.35);
}

.bar-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.bar-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

/* ==========================================================
   BANNER DE HORARIOS & ESTADO
   ========================================================== */
.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: 1120px;
  margin: 1.25rem auto 0.5rem auto;
  padding: 0 1rem;
}
.special-banner-card {
  background: linear-gradient(135deg, rgba(35, 25, 20, 0.95), rgba(20, 15, 12, 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.5), 0 0 18px rgba(230, 126, 34, 0.25);
}
.special-badge-pill {
  display: inline-block;
  background: var(--gold-primary);
  color: #fff;
  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: #d6d3d1;
  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.45rem;
  font-weight: 900;
  color: var(--gold-light);
}
.btn-add-special {
  background: linear-gradient(135deg, var(--gold-primary), var(--fire-primary));
  color: #fff;
  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;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.category-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  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-gold);
  background: rgba(230, 126, 34, 0.2);
  transform: translateY(-2px);
}
.category-pill.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--fire-primary));
  color: #fff;
  border-color: var(--gold-light);
  box-shadow: 0 2px 12px var(--fire-glow);
  transform: translateY(-2px);
  font-weight: 700;
}

.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(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-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: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.menu-item-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(230, 126, 34, 0.2);
}

.card-main-content {
  display: flex;
  flex-direction: column;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.item-title-wrap {
  flex: 1;
}
.item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}
.item-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(230, 126, 34, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 126, 34, 0.4);
  margin-left: 0.4rem;
  vertical-align: middle;
}

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

/* Opciones / Tamaños */
.item-options-row {
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}
.options-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}
.options-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.opt-pill {
  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.32rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.opt-pill:hover {
  border-color: var(--gold-light);
  color: #fff;
}
.opt-pill.active {
  background: rgba(230, 126, 34, 0.25);
  border-color: var(--gold-primary);
  color: #fff;
  font-weight: 700;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  margin-top: auto;
  gap: 0.75rem;
}
.item-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-light);
  white-space: nowrap;
}

.item-actions {
  display: flex;
  align-items: center;
}

.btn-add {
  background: linear-gradient(135deg, var(--gold-primary), var(--fire-primary));
  color: #fff;
  border: 1px solid rgba(252, 211, 77, 0.3);
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-add:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border-color: var(--gold-light);
  box-shadow: 0 4px 12px var(--fire-glow);
}
.btn-add:active {
  transform: scale(0.97);
}

.counter-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.counter-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.counter-btn:hover {
  background: rgba(230, 126, 34, 0.3);
  color: var(--gold-light);
}
.counter-qty {
  font-weight: 800;
  font-size: 0.9rem;
  min-width: 26px;
  text-align: center;
  color: #fff;
}

/* ==========================================================
   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(28, 24, 21, 0.96);
  border: 1px solid var(--border-gold);
  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(--gold-light);
}
.cart-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.cart-badge-count {
  background: var(--gold-primary);
  color: #fff;
  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: linear-gradient(135deg, var(--gold-primary), var(--fire-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 {
  filter: brightness(1.15);
}

/* ==========================================================
   MODAL CHECKOUT & CARRITO
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  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: #191512;
  border: 1px solid var(--border-gold);
  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.85);
}
.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-family: var(--font-serif);
  font-size: 1.25rem;
  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(230, 126, 34, 0.2);
  border-color: var(--gold-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(--gold-primary);
}

/* Cupones */
.coupon-section {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  background: rgba(230, 126, 34, 0.06);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}
.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}
.btn-coupon {
  background: var(--gold-primary);
  color: #fff;
  border: none;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.coupon-feedback {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-footer {
  padding: 1.15rem 1.4rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
}
.totals-breakdown {
  margin-bottom: 0.6rem;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.discount-row {
  color: #4ade80;
  font-weight: 700;
}
.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: #1c1815;
  border: 1px solid var(--gold-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.8);
  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;
}
