/* ==========================================================================
   BERNA COFFEE & BEER - STYLESHEET
   Inspirado en la identidad visual del logo oficial:
   Petróleo profundo / Dark Teal, Beige Arena / Crema Marfil y Acentos Oro Cálido
   ========================================================================== */

:root {
  --bg-main: #02161c;
  --bg-surface: #05232b;
  --bg-card: #082d37;
  --bg-card-hover: #0d3844;
  --bg-glass: rgba(5, 35, 43, 0.88);
  --border-subtle: rgba(236, 220, 195, 0.14);
  --border-focus: rgba(213, 168, 91, 0.55);

  --accent-gold: #d5a85b;
  --accent-gold-light: #e5be78;
  --accent-amber: #b8863b;
  --accent-warm: #8c5b23;
  --accent-cream: #ecdcc3;
  --accent-teal: #14b8a6;
  --accent-petrol: #0b4552;
  --accent-emerald: #10b981;

  --text-main: #f6f3ee;
  --text-muted: #9bb3b8;
  --text-dim: #627e85;

  --shadow-sm: 0 2px 8px rgba(1, 14, 18, 0.4);
  --shadow-md: 0 8px 24px rgba(1, 14, 18, 0.7);
  --shadow-glow: 0 0 20px rgba(213, 168, 91, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #093c47 0%, #04242d 40%, #021419 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #021419;
}

::-webkit-scrollbar-thumb {
  background: #0b3844;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Ocultar barra en contenedores horizontales */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Efectos Glassmorphism */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
}

/* Typography Accent */
.font-display {
  font-family: 'Outfit', sans-serif;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(213, 168, 91, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(213, 168, 91, 0.6);
  }
}

@keyframes cartBounce {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.cart-bounce-effect {
  animation: cartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card Hover micro-interactions */
.product-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(1, 14, 18, 0.7), 0 0 15px rgba(213, 168, 91, 0.18);
  border-color: rgba(213, 168, 91, 0.45);
  background-color: var(--bg-card-hover);
}

/* Category Tab Pill Active */
.category-tab {
  transition: var(--transition);
}

.category-tab.active {
  background: linear-gradient(135deg, #ecdcc3 0%, #d5a85b 100%);
  color: #02161c;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(213, 168, 91, 0.35);
}

/* Subcategory Pill Active */
.subrubro-pill {
  transition: var(--transition);
}

.subrubro-pill.active {
  background: #0e3c49;
  color: #ecdcc3;
  border-color: var(--accent-gold);
}

/* Placeholder SVG styling */
.fallback-svg {
  background: linear-gradient(135deg, #041f27 0%, #093743 100%);
}

/* Modals Overlay */
.modal-backdrop {
  background-color: rgba(1, 14, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}