/* Styles system for Gui-Eli-Fer - Premium Butchery Catalog (Dark Theme) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-display: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Brand color palette - Red Premium Boutique Theme (Light base) */
  --color-bg: #F3F4F6;            /* Strict Blanco/Off-white (dominant background) */
  --color-surface: #FFFFFF;       /* Pure White for cards & containers */
  --color-surface-low: #E5E7EB;   /* Light gray for low surfaces */
  --color-surface-high: #D1D5DB;  /* Medium gray for high contrast surfaces */
  
  --color-primary: #EF4444;       /* Strict Rojo (Dominant Visual Conductor) */
  --color-primary-light: #F87171; /* Light Red */
  --color-primary-dark: #DC2626;  /* Dark Red */
  
  --color-secondary: #1E40AF;     /* Strict Azul (Structural Support / Headers / Footers) */
  --color-secondary-light: #3B82F6;/* Bright Blue */
  --color-secondary-dark: #1E3A8A; /* Navy Blue */
  
  --color-text: #0B0F19;          /* Strict Negro (primary text / deep contrast) */
  --color-text-muted: #4B5563;    /* Gray for secondary body copy */
  --color-text-light: #F3F4F6;    /* Off-white for texts on dark panels */
  
  --shadow-premium: 0 10px 30px -5px rgba(239, 68, 68, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --border-glass: 1px solid rgba(239, 68, 68, 0.15); /* strict Rojo tinted borders */
  --border-accent: 1px solid rgba(30, 64, 175, 0.35); /* strict Azul tinted borders */
}

html {
  /* No scroll-behavior here, JS will handle it completely */
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* Ambient glow background spots (subtle for light theme) */
.glow-spot-blue {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, rgba(243, 244, 246, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -10;
}

.glow-spot-red {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, rgba(243, 244, 246, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -10;
}

/* Glassmorphism premium container (Light mode) */
.glass-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
}

.glass-card {
  background: var(--color-surface);
  border: var(--border-glass);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: var(--shadow-premium), 0 0 15px rgba(239, 68, 68, 0.1);
}

/* Red Accent hover effect (CTAs) */
.btn-red-pulse {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.25);
  transition: all 0.3s ease;
  border: none;
}

.btn-red-pulse:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.4), 0 0 10px rgba(239, 68, 68, 0.15);
  transform: scale(1.02);
}

.btn-blue-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

.btn-blue-outline:hover {
  background: rgba(30, 64, 175, 0.08);
  border-color: var(--color-secondary-light);
  box-shadow: 0 0 15px rgba(30, 64, 175, 0.15);
}

/* Category Filter pill */
.filter-pill {
  background-color: var(--color-surface);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-text-muted);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  color: white;
}
.filter-pill:not(.active):hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: rgba(239, 68, 68, 0.06);
}

/* Shopping Cart Drawer animation */
.cart-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
  border-left: var(--border-glass);
  background-color: var(--color-surface-low);
}

/* Image zoom on hover */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover .img-zoom-container img {
  transform: scale(1.08);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bounceCart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.cart-bounce {
  animation: bounceCart 0.3s ease-in-out;
}

/* Toast alert notification */
.toast-alert {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-top: var(--border-glass);
  border-right: var(--border-glass);
  border-bottom: var(--border-glass);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--color-text);
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* Dynamic change section highlights */
.change-box {
  border: var(--border-accent);
  background: rgba(239, 68, 68, 0.05);
}

/* Custom premium badge */
.badge-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  color: #78350F;
  border: 1px solid #FBBF24;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.badge-category {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-primary-dark);
}

/* ========================================================================= */
/* PREMIUM HEADER & LOGO SPATIAL COMPOSITION */
/* ========================================================================= */

.premium-header {
  height: 90px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.96) 0%, rgba(30, 58, 138, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .premium-header {
    height: 130px;
  }
}

.logo-container {
  position: relative;
  width: 110px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .logo-container {
    width: 260px; 
  }
}

.logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 92%; /* Protagonist: fills 92% of header height (~83px mobile) */
  width: auto; /* Maintain aspect ratio */
  max-width: 100%; /* Never overflow container width */
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
  .logo-img {
    width: 250px;
    height: auto;
    max-height: 170px; /* Al ser mayor a 130px, la transparencia sobresale y el toro se ve gigante */
  }
}

.logo-container:hover .logo-img {
  transform: translate(-50%, -50%) scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

/* Premium Navigation Links styling override for a high-end luxury feel */
.nav-link {
  font-family: var(--font-display);
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  border-radius: 9999px !important; /* Premium pill style */
  padding: 0.5rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(239, 68, 68, 0.2) 100%) !important;
  border-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

/* Premium Action Cart Button */
#cart-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  border-radius: 14px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#cart-btn:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}

/* ========================================================================= */
/* PREMIUM COHESIVE FOOTER SYSTEM */
/* ========================================================================= */

.premium-footer {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.98) 0%, rgba(30, 58, 138, 0.98) 100%) !important;
  color: rgba(243, 244, 246, 0.85) !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
}

.premium-footer-bottom {
  background: #111B3D !important; /* Deepest cohesive blue matching header/footer aesthetics */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-footer h4 {
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.premium-footer a {
  transition: all 0.3s ease;
}

.premium-footer a:hover {
  color: #FFFFFF !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}/* Vitrina de Historia Contenedor (Showcase) */
.history-content-box {
  border: 3px solid var(--color-secondary); /* Azul corporativo #1E40AF */
  background: var(--color-surface); /* Pure White #FFFFFF */
  box-shadow: 0 10px 40px -10px rgba(30, 64, 175, 0.12), 0 8px 16px -8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-content-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px rgba(30, 64, 175, 0.18), 0 12px 24px -10px rgba(0, 0, 0, 0.06);
}
