/* ==========================================
   CIFIVE - ENHANCED STYLES
   Mejoras visuales manteniendo identidad minimalista
   ========================================== */

/* ==========================================
   MEJORAS GLOBALES
   ========================================== */

/* Smooth scroll nativo como fallback */
html {
  scroll-behavior: smooth;
}

/* Mejores transiciones globales */
*, *::before, *::after {
  transition: background-color 0.3s ease, 
              color 0.3s ease,
              border-color 0.3s ease;
}

/* Tipografía mejorada con Roboto Flex (variable font) */
body {
  font-variation-settings: 'wght' 400, 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   HEADER MEJORADO
   ========================================== */
.header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(86, 107, 72, 0.08);
  transition: all 0.3s ease;
}

.header-container {
  gap: 2rem;
}

.logo {
  font-variation-settings: 'wght' 700;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--color-primary-dark);
}

.nav-menu a {
  font-family: var(--font-primary);
  font-weight: 500;
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ==========================================
   CART ICON MEJORADO
   ========================================== */
.cart-icon {
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-icon:hover {
  background-color: rgba(86, 107, 72, 0.08);
  transform: scale(1.1);
}

.cart-count {
  background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
  box-shadow: 0 2px 8px rgba(201, 42, 42, 0.3);
  font-variation-settings: 'wght' 600;
  animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ==========================================
   HERO SECTION MEJORADO
   ========================================== */
.hero {
  background: linear-gradient(135deg, 
    rgba(61, 77, 51, 0.85) 0%, 
    rgba(86, 107, 72, 0.75) 50%, 
    rgba(109, 133, 89, 0.65) 100%);
}

.hero-overlay {
  background: linear-gradient(
    135deg, 
    rgba(45, 95, 63, 0.75) 0%, 
    rgba(30, 64, 41, 0.85) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
  z-index: 10;
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-variation-settings: 'wght' 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-variation-settings: 'wght' 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

/* ==========================================
   CTA BUTTON MEJORADO
   ========================================== */
.btn-cta {
  background: linear-gradient(135deg, #566B48 0%, #3d4d33 100%);
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-variation-settings: 'wght' 600;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(86, 107, 72, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #3d4d33 0%, #2a3624 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(86, 107, 72, 0.45);
}

.btn-cta:active {
  transform: translateY(-1px);
}

/* ==========================================
   SECTION TITLES MEJORADOS
   ========================================== */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  font-variation-settings: 'wght' 700;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--color-primary), 
    transparent
  );
  border-radius: 2px;
}

/* ==========================================
   CATEGORY FILTERS MEJORADOS
   ========================================== */
.category-filters {
  padding: 1rem;
  background: linear-gradient(135deg, 
    rgba(86, 107, 72, 0.03) 0%, 
    rgba(86, 107, 72, 0.01) 100%
  );
  border-radius: 16px;
}

.filter-btn {
  font-variation-settings: 'wght' 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(86, 107, 72, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  background: linear-gradient(135deg, 
    var(--color-primary-light) 0%, 
    var(--color-primary) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(86, 107, 72, 0.25);
}

.filter-btn.active {
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-dark) 100%
  );
  box-shadow: 0 6px 18px rgba(86, 107, 72, 0.35);
  transform: translateY(-2px);
}

/* ==========================================
   PRODUCT CARDS MEJORADOS
   ========================================== */
.product-card {
  border: 1px solid rgba(86, 107, 72, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-primary) 0%, 
    var(--color-primary-light) 100%
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  border-color: rgba(86, 107, 72, 0.2);
  box-shadow: 0 12px 32px rgba(86, 107, 72, 0.18);
}
.product-image {
  transition: transform 0.4s ease;
  filter: brightness(0.98);
}

.product-card:hover .product-image {
  transform: scale(1.05);
  filter: brightness(1);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-variation-settings: 'wght' 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: var(--color-primary-dark);
}

.product-desc {
  font-variation-settings: 'wght' 400;
  line-height: 1.7;
  color: #5a5a5a;
}

/* ==========================================
   BOTONES MEJORADOS
   ========================================== */
.btn-ver-producto {
  font-family: var(--font-primary);
  font-variation-settings: 'wght' 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(86, 107, 72, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-ver-producto::after {
  content: '→';
  position: absolute;
  right: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-ver-producto:hover {
  padding-right: 2.5rem;
  box-shadow: 0 4px 14px rgba(86, 107, 72, 0.3);
  transform: translateY(-2px);
}

.btn-ver-producto:hover::after {
  opacity: 1;
  right: 1rem;
}

/* ==========================================
   CALIDAD CARDS MEJORADOS
   ========================================== */
.section > div > div {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(86, 107, 72, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.section > div > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, 
    var(--color-primary) 0%, 
    var(--color-primary-light) 100%
  );
  transition: height 0.4s ease;
  border-radius: 0 0 4px 0;
}

.section > div > div:hover::before {
  height: 100%;
}

.section > div > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(86, 107, 72, 0.15);
  border-color: rgba(86, 107, 72, 0.15);
}

.section > div > div h3 {
  font-family: var(--font-primary);
  font-variation-settings: 'wght' 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.section > div > div p {
  font-variation-settings: 'wght' 400;
  line-height: 1.8;
  color: #4a4a4a;
}

.section > div > div strong {
  font-variation-settings: 'wght' 600;
  color: var(--color-text);
}

/* ==========================================
   SPACING MEJORADO - MÁS GENEROSO
   ========================================== */
.section {
  padding: 5rem 2rem;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 1.5rem;
  }
}

.section-title {
  margin-bottom: 3rem;
}

.product-grid {
  gap: 2rem;
  margin-top: 3rem;
}

/* ==========================================
   CART SIDEBAR MEJORADO
   ========================================== */
.cart-sidebar {
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 255, 255, 0.95) 100%
  );
}

.cart-header {
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-dark) 100%
  );
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-header h2 {
  font-family: var(--font-primary);
  font-variation-settings: 'wght' 700;
  color: white;
  letter-spacing: -0.01em;
}

.btn-close-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-close-cart:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ==========================================
   WHATSAPP BUTTON MEJORADO
   ========================================== */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  font-family: var(--font-primary);
  font-variation-settings: 'wght' 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-whatsapp:hover::before {
  width: 300px;
  height: 300px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:active {
  transform: translateY(-1px);
}

/* ==========================================
   FOOTER MEJORADO
   ========================================== */
.footer {
  background: linear-gradient(135deg, 
    var(--color-primary-dark) 0%, 
    var(--color-primary) 100%
  );
  padding: 3rem 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.footer-content p {
  font-variation-settings: 'wght' 400;
  line-height: 1.8;
}

.footer-content strong {
  font-family: var(--font-primary);
  font-variation-settings: 'wght' 700;
  letter-spacing: 0.02em;
}

/* ==========================================
   OVERLAY MEJORADO
   ========================================== */
.cart-overlay {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

/* ==========================================
   UTILIDADES - MEJORES TEXTOS
   ========================================== */
.text-center {
  text-align: center;
}

strong {
  font-variation-settings: 'wght' 600;
}

/* ==========================================
   ANIMACIONES ADICIONALES
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   RESPONSIVE MEJORADO
   ========================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .category-filters {
    gap: 0.75rem;
  }
  
  .filter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ==========================================
   DARK MODE READY (OPCIONAL - COMENTADO)
   ========================================== */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1a;
    --color-bg-light: #2a2a2a;
    --color-text: #e0e0e0;
  }
}
*/
