/* ==========================================================================
   PIZZERÍA AL PARAÍSO - CARTA DIGITAL & LINK-IN-BIO
   Estilo: Dopaminérgico, cálido, artesanal, ultra-fluido, mobile-first
   ========================================================================== */

:root {
  --bg-deep: #0e0d0c;
  --bg-surface: #171513;
  --bg-card: rgba(28, 25, 23, 0.85);
  --bg-card-hover: rgba(38, 34, 31, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.3);

  --accent-primary: #FF5722;
  --accent-primary-hover: #F4511E;
  --accent-flame: #E64A19;
  --accent-gold: #F59E0B;
  --accent-gold-light: #FDE68A;
  --accent-green: #10B981;
  --accent-green-dark: #059669;

  --text-main: #FFFFFF;
  --text-muted: #A3A3A3;
  --text-subtle: #737373;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.18);
  --shadow-glow-accent: 0 0 25px rgba(255, 87, 34, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: 120px;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(230, 74, 25, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(230, 74, 25, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* App Container */
.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

/* ==========================================================================
   HEADER / HERO (Link in bio profile)
   ========================================================================== */
.hero-header {
  text-align: center;
  padding: 28px 8px 16px;
  position: relative;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  cursor: pointer;
}

.logo-img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(245, 158, 11, 0.3));
  transition: transform var(--transition-spring);
}

.logo-wrapper:active .logo-img {
  transform: scale(0.94);
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #FFFFFF 30%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.brand-bio {
  font-size: 14px;
  color: #D4D4D4;
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.4;
}

.brand-bio strong {
  color: var(--accent-gold);
}

/* Status Pill (Live Opening status) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  margin-bottom: 18px;
  transition: all var(--transition-smooth);
}

.status-pill.open {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.status-pill.closed {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-pill.open .status-indicator-dot {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.status-pill.closed .status-indicator-dot {
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Quick Action Buttons (Instagram, Maps, Call) */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.action-btn i, .action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.action-btn:hover, .action-btn:active {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  color: var(--accent-gold);
}

.action-btn.primary-highlight {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25), rgba(245, 158, 11, 0.25));
  border-color: rgba(255, 87, 34, 0.5);
  color: #FFA726;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  background: var(--bg-surface);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   STICKY CATEGORY PILLS BAR
   ========================================================================== */
.categories-bar-wrapper {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  margin: 0 -16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-pill:active {
  transform: scale(0.95);
}

.cat-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
}

/* ==========================================================================
   MENU LIST & CARDS
   ========================================================================== */
.category-section {
  margin-bottom: 32px;
  scroll-margin-top: 70px;
}

.category-header {
  margin-bottom: 14px;
}

.cat-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-desc {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 2px;
}

.menu-items-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Food Card */
.menu-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
}

.menu-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

.card-img-wrap {
  width: 120px;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  background: #1F1B18;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.menu-card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.tag-pill {
  font-size: 10px;
  background: var(--bg-glass);
  color: #BDBDBD;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

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

.card-price-wrap {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: -0.3px;
}

/* Add / Order Button */
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
  transition: all var(--transition-fast);
}

.btn-add:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.04);
}

.btn-add:active {
  transform: scale(0.94);
}

.btn-add.in-cart {
  background: var(--accent-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   FLOATING CART BAR (Bottom Dopamine Bar)
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px);
  max-width: 600px;
  background: linear-gradient(135deg, #1C1917, #292524);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
  transition: transform var(--transition-spring);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.floating-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-badge-count {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.6);
  animation: bounce-subtle 0.4s ease-out;
}

@keyframes bounce-subtle {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
}

.cart-bar-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.cart-bar-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
}

.cart-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
}

/* ==========================================================================
   MODAL / DRAWER (ORDER & SIZES)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-spring);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.modal-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

/* Size Options in Modal */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.size-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-option-card.selected {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.size-option-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.size-option-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Cart Items in Order Sheet */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 10px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-meta {
  font-size: 11px;
  color: var(--accent-gold);
}

.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 6px;
}

.btn-qty {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

/* Delivery / Retiro Switcher */
.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.delivery-tab {
  padding: 10px 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.delivery-tab.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.35);
}

/* Order Form Inputs */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-gold);
}

/* Send to WhatsApp Main Button */
.btn-whatsapp-order {
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
}

.btn-whatsapp-order:hover {
  background: #22BF5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-order:active {
  transform: scale(0.98);
}

/* Admin Modal & Footer */
.footer-section {
  text-align: center;
  padding: 40px 16px 20px;
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-section a {
  color: var(--accent-gold);
  text-decoration: none;
}

.btn-admin-trigger {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  cursor: pointer;
  margin-top: 14px;
  transition: all var(--transition-fast);
}

.btn-admin-trigger:hover {
  color: var(--text-main);
  border-color: var(--accent-gold);
}

