/**
 * ===========================================
 * EL RINCÓN DE LA MIEL - Brand Identity System
 * Inspired by artisanal honey, bees & nature
 * ===========================================
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  /* ===========================================
     BRAND COLOR PALETTE
     Based on "El Rincón de la Miel" logo
     =========================================== */
  
  /* Primary - Honey Gold (from jar) */
  --honey-50: #FFF9E6;
  --honey-100: #FFF3CC;
  --honey-200: #FFE799;
  --honey-300: #FFDB66;
  --honey-400: #F5C842;
  --honey-500: #E5A63B;
  --honey-600: #D4941D;
  --honey-700: #B87A15;
  --honey-800: #9A640F;
  --honey-900: #7A4F0A;
  
  /* Secondary - Warm Brown (from text/wood) */
  --brown-50: #FAF6F1;
  --brown-100: #F0E8DE;
  --brown-200: #E0D0BC;
  --brown-300: #C9B094;
  --brown-400: #A8876A;
  --brown-500: #8B6B4A;
  --brown-600: #6B4E32;
  --brown-700: #5A3E28;
  --brown-800: #4A3220;
  --brown-900: #3A2618;
  
  /* Accent - Nature Green (from leaves) */
  --leaf-50: #F4F8F0;
  --leaf-100: #E8F0E0;
  --leaf-200: #D1E2C1;
  --leaf-300: #B3CF9A;
  --leaf-400: #8FB86D;
  --leaf-500: #6B9A4A;
  --leaf-600: #537A38;
  --leaf-700: #425F2D;
  --leaf-800: #354A24;
  --leaf-900: #283A1C;
  
  /* Neutral - Warm Cream (from flowers) */
  --cream-50: #FFFEFB;
  --cream-100: #FEFCF5;
  --cream-200: #FCF7EA;
  --cream-300: #F8F0DA;
  --cream-400: #F2E6C6;
  --cream-500: #E8D8AD;
  --cream-600: #D4C08A;
  --cream-700: #B89F68;
  --cream-800: #9A824E;
  --cream-900: #7A6640;
  
  /* Semantic Aliases */
  --color-primary: var(--honey-500);
  --color-primary-hover: var(--honey-600);
  --color-primary-light: var(--honey-100);
  --color-secondary: var(--brown-600);
  --color-accent: var(--leaf-500);
  --color-background: var(--cream-50);
  --color-surface: #FFFFFF;
  --color-text: var(--brown-700);
  --color-text-light: var(--brown-400);
  --color-text-dark: var(--brown-900);
  
  /* Gradients */
  --gradient-honey: linear-gradient(135deg, var(--honey-400) 0%, var(--honey-600) 100%);
  --gradient-honey-shine: linear-gradient(135deg, #FFE082 0%, var(--honey-500) 50%, var(--honey-700) 100%);
  --gradient-wood: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-700) 100%);
  --gradient-nature: linear-gradient(135deg, var(--leaf-400) 0%, var(--leaf-600) 100%);
  --gradient-cream: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
  --gradient-hero-warm: linear-gradient(135deg, 
    rgba(90, 62, 40, 0.95) 0%, 
    rgba(139, 107, 74, 0.85) 50%, 
    rgba(212, 148, 29, 0.7) 100%
  );
  
  /* Shadows */
  --shadow-honey: 0 4px 20px rgba(229, 166, 59, 0.3);
  --shadow-wood: 0 4px 20px rgba(107, 78, 50, 0.15);
  --shadow-soft: 0 2px 10px rgba(58, 38, 24, 0.08);
  --shadow-medium: 0 4px 25px rgba(58, 38, 24, 0.12);
  --shadow-large: 0 10px 50px rgba(58, 38, 24, 0.18);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', -apple-system, sans-serif;
  --font-script: 'Cormorant Garamond', cursive;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ===========================================
   TYPOGRAPHY WITH BRAND FONTS
   =========================================== */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brown-800);
  font-weight: 600;
}

/* Script style for brand name */
.brand-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ===========================================
   LOGO COMPONENT
   =========================================== */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo__image {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .logo__image {
  transform: scale(1.02);
}

/* Compact logo for scrolled header */
.header.scrolled .logo__image {
  height: 48px;
}

/* Mobile logo */
@media (max-width: 768px) {
  .logo__image {
    height: 44px;
  }
  
  .header.scrolled .logo__image {
    height: 40px;
  }
}

/* Dark background logo (inverted/light version) */
.logo--light .logo__image {
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ===========================================
   UPDATED HEADER WITH NEW BRANDING
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 148, 29, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
  padding: 0.25rem 0;
  background: rgba(255, 254, 251, 0.98);
  box-shadow: var(--shadow-soft);
}

.header.hero-mode {
  background: rgba(58, 38, 24, 0.4);
  border-bottom-color: rgba(255, 224, 130, 0.15);
}

.header.hero-mode .header__nav-link {
  color: var(--cream-100);
}

.header.hero-mode .header__nav-link:hover,
.header.hero-mode .header__nav-link.active {
  color: var(--honey-400);
  background: rgba(255, 255, 255, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
}

@media (min-width: 768px) {
  .header__inner {
    height: 70px;
    padding: 0 1.5rem;
  }
}

/* Navigation Links */
.header__nav-link {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown-600);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--honey-600);
  background: var(--honey-100);
}

/* Cart Button */
.header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--honey-100);
  border-radius: 50%;
  color: var(--brown-600);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.header__cart:hover {
  background: var(--honey-200);
  transform: scale(1.05);
}

.header__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: var(--honey-600);
  border-radius: 50%;
}

/* ===========================================
   BUTTONS WITH BRAND COLORS
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-honey);
  color: var(--brown-900);
  box-shadow: var(--shadow-honey);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 166, 59, 0.4);
}

.btn-secondary {
  background: var(--brown-700);
  color: white;
}

.btn-secondary:hover {
  background: var(--brown-800);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brown-300);
  color: var(--brown-600);
}

.btn-outline:hover {
  border-color: var(--honey-500);
  background: var(--honey-50);
  color: var(--honey-700);
}

.btn-nature {
  background: var(--gradient-nature);
  color: white;
}

/* ===========================================
   PRODUCT CARDS WITH BRAND STYLING
   =========================================== */

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brown-900);
  background: var(--gradient-honey);
  border-radius: var(--radius-full);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--honey-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf-600);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brown-800);
}

.product-card__price-current {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--honey-700);
}

/* ===========================================
   FOOTER WITH BRAND IDENTITY
   =========================================== */

.footer {
  background: var(--brown-800);
  color: var(--cream-300);
}

.footer__logo img {
  height: 80px;
  filter: brightness(1.2) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer__brand h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--honey-400);
}

.footer__links a:hover {
  color: var(--honey-400);
}

.footer__social-link {
  background: rgba(255, 255, 255, 0.1);
}

.footer__social-link:hover {
  background: var(--honey-500);
  color: var(--brown-900);
}

/* ===========================================
   HERO SECTION - BRAND THEMED
   =========================================== */

.hero-brand {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--brown-900);
  overflow: hidden;
}

.hero-brand__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-warm);
  z-index: 1;
}

.hero-brand__content {
  position: relative;
  z-index: 10;
}

.hero-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 224, 130, 0.15);
  border: 1px solid rgba(255, 224, 130, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--honey-300);
  letter-spacing: 0.05em;
}

.hero-brand__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.hero-brand__title .accent {
  display: block;
  font-style: italic;
  background: linear-gradient(135deg, var(--honey-300) 0%, var(--honey-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-brand__subtitle {
  font-size: 1.15rem;
  color: var(--cream-300);
  line-height: 1.7;
}

/* ===========================================
   NATURE DECORATIVE ELEMENTS
   =========================================== */

/* Honey drip decoration */
.deco-honey-drip {
  position: absolute;
  width: 30px;
  height: 50px;
  background: linear-gradient(180deg, var(--honey-400) 0%, var(--honey-600) 100%);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  opacity: 0.8;
}

/* Bee decoration */
.deco-bee {
  position: absolute;
  font-size: 1.5rem;
  animation: float-bee 6s ease-in-out infinite;
}

@keyframes float-bee {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(5deg); }
  50% { transform: translate(20px, 0) rotate(0deg); }
  75% { transform: translate(10px, 10px) rotate(-5deg); }
}

/* Flower decoration */
.deco-flower {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
}

/* Hexagon pattern (honeycomb) */
.pattern-honeycomb {
  background-image: 
    radial-gradient(circle, var(--honey-300) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

/* ===========================================
   SECTION HEADERS - BRAND STYLED
   =========================================== */

.section-header__badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--leaf-700);
  background: var(--leaf-100);
  border-radius: var(--radius-full);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--brown-800);
}

/* ===========================================
   TRUST BADGES
   =========================================== */

.trust-badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-badge__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--honey-100);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.trust-badge__text {
  font-size: 0.85rem;
  color: var(--brown-600);
}

.trust-badge__text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--brown-800);
}

/* ===========================================
   TESTIMONIALS - BRAND STYLED
   =========================================== */

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--honey-400);
}

.testimonial-card__stars {
  color: var(--honey-500);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--brown-600);
  line-height: 1.8;
}

.testimonial-card__author strong {
  color: var(--brown-800);
}

/* ===========================================
   CTA SECTIONS
   =========================================== */

.cta-brand {
  background: var(--gradient-honey);
  padding: 4rem 0;
  text-align: center;
}

.cta-brand h2 {
  color: var(--brown-900);
}

.cta-brand p {
  color: var(--brown-700);
}

.cta-brand .btn-primary {
  background: var(--brown-800);
  color: white;
  box-shadow: var(--shadow-wood);
}

.cta-brand .btn-outline {
  border-color: var(--brown-600);
  color: var(--brown-800);
}

/* ===========================================
   ADMIN PANEL BRAND COLORS
   =========================================== */

.admin-brand {
  --admin-primary: var(--honey-500);
  --admin-primary-hover: var(--honey-600);
  --admin-accent: var(--leaf-500);
  --admin-dark: var(--brown-900);
  --admin-darker: var(--brown-800);
  --admin-text: var(--cream-100);
}

/* ===========================================
   MOBILE OPTIMIZATIONS
   =========================================== */

@media (max-width: 768px) {
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-brand__title {
    font-size: 2rem;
  }
}
