/* ============================================================
   MOSTO DON JOSUÉ — Master Stylesheet
   Mobile-First | Clean UI | Dark Mode
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* — Brand Palette — */
  --burgundy: #6B1D3A;
  --burgundy-light: #8B2E50;
  --purple-deep: #4A1259;
  --purple-mid: #6A1B8A;
  --purple-soft: #9B59B6;
  --magenta-rust: #8B3A62;
  --green-botanical: #3D8B37;
  --green-light: #5CB85C;
  --green-accent: #7BC67E;

  /* — Neutrals — */
  --cream: #F5F0E8;
  --cream-dark: #E8E0D4;
  --white: #FFFFFF;
  --gray-100: #F7F7F7;
  --gray-200: #E5E5E5;
  --gray-300: #CCCCCC;
  --gray-400: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --black: #1A1A1A;

  /* — Semantic — */
  /* — Semantic — */
  --bg-primary: #FEFCF8;
  /* Whiter cream for better contrast */
  --bg-secondary: var(--white);
  --bg-card: var(--white);
  --text-primary: #1A1A1A;
  /* Much darker gray for primary text */
  --text-secondary: #4A4A4A;
  /* Darker secondary text */
  --text-heading: #2D0A36;
  /* Darker Purple for headings */
  --text-accent: #8B2048;
  /* Slightly more vibrant burgundy */
  --border-color: #D1D1D1;
  /* Slightly darker border for definition */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(107, 29, 58, 0.2);

  /* — Typography — */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* — Spacing — */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* — Radius — */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* — Transitions — */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* — Header — */
  --header-height: 72px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg-primary: #0F0A18;
  --bg-secondary: #1A1023;
  --bg-card: #231530;
  --text-primary: #E8E0D4;
  --text-secondary: #A89BB0;
  --text-heading: #D4A5E0;
  --text-accent: #E89BB5;
  --border-color: #3A2848;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.50);
  --shadow-glow: 0 0 20px rgba(212, 165, 224, 0.20);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(107, 29, 58, 0.1);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.feature-card h3,
.card h3,
.value-card h3,
.sede-card h3 {
  margin-bottom: var(--space-md);
  color: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  /* Prevent overflow for long words like "Acompañamiento" */
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
  /* Default stack on mobile */
}

@media (min-width: 500px) {

  /* Allow 2 columns on larger mobiles/tablets for grid-4 */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  letter-spacing: 0.025em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy), var(--purple-deep));
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
}

.btn-secondary:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-botanical), var(--green-light));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 3rem;
  font-size: 1.1rem;
}

[data-theme="dark"] .btn-secondary {
  color: var(--text-accent);
  border-color: var(--text-accent);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--text-accent);
  color: var(--bg-primary);
}

/* Specific Fix for Hero Section Buttons */
.hero .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--burgundy);
}

/* ============================================================
   6. HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle separation */
}

[data-theme="dark"] .header {
  background: rgba(15, 10, 24, 0.92);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: none;
}

.nav.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-sm);
  overflow-y: auto;
  overflow-y: auto;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  padding: var(--space-md) 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--burgundy);
}

[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active {
  color: var(--text-accent);
}

/* Nav submenu */
.nav__item {
  position: relative;
}

.nav__submenu {
  display: none;
  padding-left: var(--space-lg);
}

.nav__item.open .nav__submenu {
  display: block;
}

.nav__submenu .nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
}

.nav__toggle-sub {
  margin-left: var(--space-sm);
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.nav__item.open .nav__toggle-sub {
  transform: rotate(180deg);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dark-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.dark-toggle:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--green-botanical);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible {
  display: flex;
}

.hamburger {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop Nav */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav__link {
    padding: var(--space-sm) var(--space-md);
    border-bottom: none;
    font-size: 0.92rem;
    position: relative;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width var(--transition-fast);
    border-radius: 2px;
  }

  .nav__link:hover::after,
  .nav__link.active::after {
    width: 60%;
  }

  [data-theme="dark"] .nav__link::after {
    background: var(--text-accent);
  }

  /* Desktop submenu */
  .nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    z-index: 100;
  }

  .nav__item:hover .nav__submenu {
    display: block;
  }

  .nav__submenu .nav__link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
  }

  .nav__submenu .nav__link:hover {
    background: var(--bg-primary);
  }

  .nav__toggle-sub {
    display: inline-block;
  }

  /* =========================================
     MEGA MENU (Desktop)
     ========================================= */
  /* Mega Menu - Floating Card Style (Reverted & Enhanced) */
  .nav__megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Centered and offset for animation */
    width: 900px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    /* High opacity but slightly translucent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow:
      0 10px 40px -10px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Subtle border ring */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    padding: var(--space-xl);
    margin-top: var(--space-sm);
  }

  [data-theme="dark"] .nav__megamenu {
    background: rgba(30, 30, 35, 0.95);
    box-shadow:
      0 20px 50px -10px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .nav__item:hover .nav__megamenu,
  .nav__item:focus-within .nav__megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .megamenu__grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: var(--space-2xl);
    padding: 0 !important;
    /* Reset container padding inside mega menu */
    width: 100%;
  }

  /* Megamenu Col Styles */
  .megamenu__title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
  }

  /* List of items */
  .megamenu__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .megamenu__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
  }

  .megamenu__item:hover {
    background: var(--bg-primary);
    transform: translateX(4px);
    /* Subtle slide */
  }

  .megamenu__icon {
    font-size: 1.5rem;
    background: var(--bg-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    transition: all var(--transition-fast);
  }

  .megamenu__item:hover .megamenu__icon {
    background: var(--burgundy);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 10px rgba(107, 29, 58, 0.3);
  }

  .megamenu__item strong {
    display: block;
    color: var(--text-heading);
    font-size: 1rem;
    transition: color var(--transition-fast);
  }

  .megamenu__item:hover strong {
    color: var(--burgundy);
  }

  .megamenu__item small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
  }

  /* Featured Section */
  .megamenu__featured {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
  }

  .megamenu__image {
    position: relative;
  }

  .megamenu__image img {
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius-sm);
  }

  .megamenu__caption span {
    display: block;
    font-size: 0.75rem;
    color: var(--burgundy);
    font-weight: 700;
    text-transform: uppercase;
  }

  .megamenu__caption h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
  }

  .link-arrow {
    display: inline-block;
    color: var(--burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: var(--space-xs);
  }

  .link-arrow:hover {
    text-decoration: underline;
  }

  /* Highlights Column */
  .megamenu__highlights ul {
    margin-bottom: var(--space-md);
  }

  .megamenu__list-simple li {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
  }


  .testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--text-heading);
  }
}

/* Mobile Tweaks for Mega Menu Content */
@media (max-width: 1023px) {
  .nav__megamenu {
    display: none;
    padding-left: var(--space-md);
  }

  .nav__item.open .nav__megamenu {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .megamenu__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Hide heavy elements on mobile if desired, or style them simpler */
  .megamenu__featured {
    display: none;
  }

  /* Hide featured image on mobile to save space */

  .megamenu__title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
  }

  .megamenu__item {
    align-items: center;
    padding: var(--space-xs) 0;
  }

  .megamenu__icon {
    display: none;
  }

  /* Simplify list */

  .megamenu__highlights {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
  }
}

/* Offset for fixed header */
main {
  padding-top: var(--header-height);
}

/* ============================================================
   7. HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--purple-deep) 0%, var(--burgundy) 50%, var(--magenta-rust) 100%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero__content {
  color: var(--white);
}

.hero__content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin-bottom: var(--space-md);
}

.hero__content .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image img {
  /* Default styles for generic images in hero if any */
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero__image img {
    max-height: 500px;
    max-width: 100%;
  }
}

.hero__logo-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: heroFloat 5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero__logo-img {
    max-width: 500px;
  }
}

/* ============================================================
   8. CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
}

[data-theme="dark"] .card__image {
  background: linear-gradient(135deg, #231530, #1A1023);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
  transition: transform var(--transition-normal);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-lg);
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--burgundy);
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .card__price {
  color: var(--text-accent);
}

.card__price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card__actions {
  display: flex;
  gap: var(--space-sm);
}

/* ============================================================
   9. PRODUCT LANDING PAGE
   ============================================================ */
.product-hero {
  padding: var(--space-3xl) 0;
}

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ============================================================
   9. PRODUCT DETAILS
   ============================================================ */
.product-hero {
  background: var(--bg-secondary);
  /* Clean background to let product pop */
}

/* Premium Gallery Container */
.product-gallery {
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  /* Taller for grandeur */
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
  /* Inner depth */
}

@media (max-width: 768px) {
  .product-gallery {
    min-height: 300px;
    /* Smaller height for mobile */
    padding: var(--space-lg);
  }

  .product-gallery img {
    max-height: 280px;
    /* Ensure image fits */
    width: auto;
    /* Maintain aspect ratio */
  }
}

[data-theme="dark"] .product-gallery {
  background: linear-gradient(135deg, #2A1A35, #1A1023);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.product-gallery img {
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
  /* Deep shadow */
  transition: transform var(--transition-normal);
  animation: heroFloat 6s ease-in-out infinite;
}

.product-gallery:hover img {
  transform: scale(1.05);
}

.product-info h1 {
  margin-bottom: var(--space-sm);
  color: var(--burgundy);
  /* Brand highlight */
  font-size: clamp(2rem, 5vw, 3rem);
}

.product-info .lead {
  margin-bottom: var(--space-xl);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Volume selector - Premium Chips */
.volume-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.volume-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.volume-btn:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
  transform: translateY(-2px);
}

.volume-btn.active {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
  box-shadow: 0 4px 12px rgba(107, 29, 58, 0.3);
}

[data-theme="dark"] .volume-btn.active {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: var(--bg-primary);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: var(--space-xl);
  letter-spacing: -1px;
}

[data-theme="dark"] .product-price {
  color: var(--white);
}

.product-qty {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  padding: 2px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--burgundy);
}

[data-theme="dark"] .qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
}

/* Benefits list - Transformed to Grid */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--burgundy);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, var(--green-botanical), var(--green-light));
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.benefit-item h4 {
  color: var(--text-heading);
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.benefit-item p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Nutritional table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.nutrition-table caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  text-align: left;
  padding: var(--space-md);
  margin-bottom: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.nutrition-table th,
.nutrition-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.nutrition-table th {
  background: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .nutrition-table th {
  background: var(--bg-secondary);
}

.nutrition-table td {
  color: var(--text-primary);
  font-weight: 500;
}

.nutrition-table tr:last-child td {
  border-bottom: none;
}

@media (min-width: 768px) {
  .product-hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .product-gallery img {
    max-height: 520px;
  }
}


/* ============================================================
   10. HISTORIA / ABOUT SECTION
   ============================================================ */
.historia {
  background: var(--bg-secondary);
}

.historia .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.historia__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.historia__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.historia__content blockquote {
  border-left: 4px solid var(--burgundy);
  padding-left: var(--space-lg);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .historia .container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   11. FEATURES / VALUE PROPOSITION
   ============================================================ */

/* Enhanced Card Interactions - Unified Premium Style */
.feature-card,
.card,
.testimonial-card,
.contact-card,
.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  /* Enhanced base shadow for contrast */
}

/* Specific adjustment for Product Cards which have images at top */
.card {
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (hover: hover) {

  .feature-card:hover,
  .card:hover,
  .testimonial-card:hover,
  .contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--burgundy);
  }

  /* Specific internal element transitions */
  .feature-card:hover .feature-icon,
  .contact-card:hover .contact-card__icon,
  .value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(107, 29, 58, 0.25);
  }
}

/* Mobile Touch Feedback */
@media (hover: none) {
  .feature-card:active {
    transform: scale(0.98);
    background: var(--gray-100);
  }

  .btn:active {
    transform: scale(0.96);
  }
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--burgundy), var(--purple-deep));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  transition: transform var(--transition-normal);
}

/* ============================================================
   12. FRANCHISES / SEDES
   ============================================================ */
/* ============================================================
   12. PAGE HEADERS (Secondary Heros)
   ============================================================ */
.page-header,
.franchise-hero {
  position: relative;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--burgundy) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-4xl) 0;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.page-header h1,
.franchise-hero h1,
.franchise-hero h2,
.page-header h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.page-header .lead,
.franchise-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
}

.page-header p,
.franchise-hero p {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

/* ============================================================
   MOBILE MENU PREMIUM REDESIGN
   ============================================================ */
@media (max-width: 991px) {

  /* Mobile Menu Container - Full Screen Overlay approach */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    padding-top: 80px;
    /* Space for header */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  [data-theme="dark"] .nav {
    background: rgba(20, 20, 25, 0.98);
  }

  .nav.active {
    transform: translateX(0);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  /* Main Nav Items */
  .nav__item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav.active .nav__item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for items */
  .nav.active .nav__item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav.active .nav__item:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav.active .nav__item:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav.active .nav__item:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav.active .nav__item:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav__link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-heading);
  }

  .nav__link.active {
    color: var(--burgundy);
    background: rgba(107, 29, 58, 0.05);
  }

  /* Dropdown Toggle Arrow */
  .nav__toggle-sub {
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }

  .nav__item.open .nav__toggle-sub {
    transform: rotate(180deg);
  }

  /* Submenu (Mega Menu on Mobile) */
  .nav__megamenu {
    position: static;
    /* Flow naturally in mobile */
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0;
  }

  .nav__item.open .nav__megamenu {
    max-height: 100vh;
    /* Allow full height */
    overflow-y: auto;
    /* Enable scrolling if needed */
    border-bottom: 1px solid var(--border-color);
  }

  /* Hide heavy elements */
  .megamenu__featured,
  .megamenu__title {
    display: none !important;
  }

  /* Restore Highlights (Beneficios) but style simply */
  .megamenu__highlights {
    display: block !important;
    padding: var(--space-md) var(--space-xl);
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-color);
  }

  .megamenu__highlights ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: var(--space-md);
  }

  .megamenu__highlights li {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    border: none;
  }

  .megamenu__highlights .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .megamenu__grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  .megamenu__list {
    padding: var(--space-sm) 0;
  }

  .megamenu__list li {
    margin: 0;
  }

  .megamenu__item {
    padding: var(--space-md) var(--space-xl);
    border-left: 3px solid transparent;
  }

  .megamenu__item:active {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: var(--burgundy);
  }

  .megamenu__icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  [data-theme="dark"] .megamenu__icon {
    background: var(--bg-card);
  }

  .megamenu__item div strong {
    display: block;
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 2px;
  }

  .megamenu__item div small {
    font-size: 0.8rem;
    opacity: 0.7;
  }
}

/* Reuse the pattern from main hero */
.page-header .hero__bg-pattern,
.franchise-hero .hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
  z-index: 1;
}



.sede-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  text-align: center;
}

.sede-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--burgundy);
}

.sede-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--burgundy), var(--magenta-rust));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}

.sede-card h3 {
  font-size: 1.15rem;
}

.sede-card .sede-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sede-card .sede-status {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.25rem 0.8rem;
  background: rgba(61, 139, 55, 0.1);
  color: var(--green-botanical);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Franchise form */
.franchise-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   13. FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 29, 58, 0.12);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(232, 155, 181, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   14. CART PAGE
   ============================================================ */
.cart-page {
  min-height: 60vh;
}

.cart-empty {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cart-empty__icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}

.cart-items {
  display: grid;
  gap: var(--space-md);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-fast);
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .cart-item__image {
  background: var(--border-color);
}

.cart-item__image img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.cart-item__info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cart-item__volume {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-item__controls .qty-control {
  border-width: 1px;
}

.cart-item__controls .qty-btn {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.cart-item__controls .qty-input {
  width: 36px;
  font-size: 0.9rem;
}

/* ============================================================
   15. CART DRAWER & QUICK ADD
   ============================================================ */

/* Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1050;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-drawer__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cart-drawer__close {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.cart-drawer__close:hover {
  color: var(--text-heading);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-drawer__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* Drawer Items */
.drawer-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
}

.drawer-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.drawer-item__image {
  width: 64px;
  height: 64px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-item__image img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.drawer-item__details {
  flex: 1;
}

.drawer-item__details h4 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.drawer-item__vol {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.drawer-item__price {
  font-weight: 700;
  color: var(--burgundy);
  margin: 2px 0 6px;
  font-size: 0.9rem;
}

.drawer-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--bg-primary);
}

.drawer-qty-val {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.drawer-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: underline;
}

.drawer-remove-btn:hover {
  color: #d9534f;
}

/* Summary in drawer */
.drawer-summary {
  margin-bottom: var(--space-md);
}

.drawer-summary strong {
  font-size: 1.1rem;
  color: var(--text-heading);
}

/* Empty State */
.drawer-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
}

/* Quick Add Button */
.quick-add-btn {
  margin-right: auto;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.cart-item__price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--burgundy);
}

[data-theme="dark"] .cart-item__price {
  color: var(--text-accent);
}

.cart-item__remove {
  color: var(--gray-400);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.cart-item__remove:hover {
  color: #e74c3c;
}

/* Cart summary */
.cart-summary {
  margin-top: var(--space-2xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
}

.cart-summary__row--total {
  border-top: 2px solid var(--border-color);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-heading);
}

.cart-checkout {
  margin-top: var(--space-xl);
}

.cart-checkout .form-group {
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr auto auto;
  }
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--purple-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand img {
  height: 50px;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__links a {
  display: block;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ============================================================
   16. ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  transform: translateX(-24px);
}

.fade-in-right {
  transform: translateX(24px);
}

.fade-in-left.visible,
.fade-in-right.visible {
  transform: translateX(0);
}

/* Staggered animations */
.stagger>* {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ============================================================
   17. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: pulse-wa 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
}

/* ============================================================
   18. MISC / PAGE-SPECIFIC
   ============================================================ */
.page-header {
  background: linear-gradient(145deg, var(--purple-deep), var(--burgundy));
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.breadcrumb a:hover {
  color: var(--burgundy);
}

.breadcrumb span {
  opacity: 0.5;
}

/* Section heading */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-heading p {
  max-width: 540px;
  margin-inline: auto;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--green-botanical);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-normal);
  z-index: 1100;
}

.toast.show {
  transform: translateX(0);
}

/* Nosotros / About page */
.about-values {
  background: var(--bg-secondary);
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

/* Contact map embed */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .map-container {
    height: 400px;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 998;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ============================================================
   19. PRINT
   ============================================================ */
@media print {

  .header,
  .footer,
  .whatsapp-float,
  .scroll-top,
  .dark-toggle,
  .hamburger {
    display: none !important;
  }

  main {
    padding-top: 0;
  }

  body {
    background: white;
    color: black;
  }
}

/* ============================================================
   13. CONTACT PAGE UTILS
   ============================================================ */
.contact-card {
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--burgundy);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.contact-card p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.3;
}

@media (min-width: 480px) and (max-width: 767px) {

  /* Ensure grid works well on smaller tablets/large phones */
  .toggle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================================================
   HERO TEXT VISIBILITY FIX
   ============================================================ */
.hero__subtitle,
.hero p {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* improved legibility */
}

/* Ensure gradient text in title remains visible/vibrant */
.hero__title .text-gradient {
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    background-image: linear-gradient(135deg, #E89BB5, #FFFFFF) !important; 
}
