:root {
  /* Paleta de colores */
  --bg-color: #FBFAF6;
  --primary-color: #256D85;
  --secondary-bg: #DCEFE7;
  --accent-light: #FFF3C4;
  --cta-color: #E9783A;
  --text-main: #1F2933;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  
  /* Tipografía */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --h1-mobile: 32px;
  --h1-desktop: 42px;
  --h2-mobile: 24px;
  --h2-desktop: 32px;
  --body-text: 16px;
  
  /* Layout */
  --container-padding: 20px;
  --max-width: 1000px;
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  font-size: var(--body-text);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

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

.container {
  padding: 0 var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Tipografía */
h1, h2, h3 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 {
  font-size: var(--h1-mobile);
}

h2 {
  font-size: var(--h2-mobile);
}

p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.text-muted {
  color: var(--text-muted);
}

/* Botones */
.btn {
  display: inline-block;
  background-color: var(--cta-color);
  color: white;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #d16428;
}

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

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

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

/* Header */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
}

.tagline {
  font-size: 12px;
  color: var(--text-muted);
  display: none;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon, .menu-icon {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--cta-color);
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav.desktop-nav {
  display: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 200;
  padding: 24px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  left: 0;
}

.close-menu {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-main);
  cursor: pointer;
  margin-bottom: 24px;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 16px;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-main);
  display: block;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

.menu-overlay.open {
  display: block;
}

/* Secciones Generales */
section {
  padding: 40px 0;
}

/* Hero */
.hero {
  padding-top: 24px;
  padding-bottom: 40px;
  background-color: white;
}

.hero-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-image-container img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

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

.hero-price {
  margin: 24px 0;
  background-color: var(--accent-light);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid #FDE68A;
}

.current-price {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 8px;
}

.price-badge {
  display: inline-block;
  background-color: var(--cta-color);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 4px;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.hero-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Tarjeta de Producto (Quick Buy) */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
}

.advertorial-banner {
  background-color: #f1f1f1;
  color: #666;
  text-align: center;
  font-size: 11px;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #e5e5e5;
}

.ingredient-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
  #quick-buy .product-card {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-thumb.active {
  border-color: var(--primary-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin: 16px 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  color: var(--primary-color);
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 600;
}

/* Grid de Cards (Problema, Beneficios, Steps) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.card-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 18px;
}

.step-card {
  background-color: var(--secondary-bg);
  border: none;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Packs Pricing */
.pack-card {
  background-color: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  position: relative;
}

.pack-card.popular {
  border-color: var(--primary-color);
}

.pack-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.pack-card.best-value .pack-badge {
  background-color: var(--cta-color);
}

/* Opiniones */
.review-card {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.stars {
  color: #F59E0B;
  font-size: 20px;
  margin-bottom: 8px;
}

.reviewer {
  font-weight: 600;
  font-size: 14px;
}

.verified {
  font-size: 12px;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

/* Accordion (FAQ & Detalles) */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: white;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header::after {
  content: '+';
  font-size: 24px;
  font-weight: normal;
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 20px 20px 20px;
  max-height: 1000px; /* Arbitrary large max height */
}

/* Footer */
footer {
  background-color: white;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: white;
  z-index: 200;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

/* Sticky CTA Mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 12px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 90;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--text-main);
  color: white;
  padding: 16px 20px;
  z-index: 300;
  display: none; /* hidden by default, shown by JS */
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-content p {
  color: white;
  margin: 0;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.cookie-btn.accept { background: var(--cta-color); color: white; }
.cookie-btn.reject { background: transparent; border: 1px solid white; color: white; }

/* Desktop Media Query */
@media (min-width: 768px) {
  h1 { font-size: var(--h1-desktop); }
  h2 { font-size: var(--h2-desktop); }
  
  .header-inner { padding: 20px 0; }
  .tagline { display: block; }
  
  .menu-icon { display: none; }
  nav.desktop-nav { display: block; }
  nav.desktop-nav ul { display: flex; gap: 24px; list-style: none; }
  nav.desktop-nav a { color: var(--text-main); font-weight: 500; font-size: 14px; }
  nav.desktop-nav a:hover { color: var(--primary-color); }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  
  .hero-image-container { margin-bottom: 0; order: 2; }
  
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.three-cols { grid-template-columns: repeat(3, 1fr); }
  
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  
  .sticky-cta { display: none !important; }
  
  .cookie-content { flex-direction: row; justify-content: space-between; align-items: center; }
}
