/* ============================================================
   VALJI – NUTRICIÓN DEPORTIVA PREMIUM · COSTA RICA
   ============================================================ */

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --bg-0: #f8fafc;
  --bg-1: #ffffff;
  --bg-2: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 196, 255, 0.2);
  --accent: #0070f3;
  --accent-2: #0051cc;
  --accent-3: #0f8e4e;
  --gold: #f5c518;
  --wa-green: #25D366;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --transition: 0.3s ease;
  --font: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── RESET ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

ul {
  list-style: none;
}

/* ── UTILITIES ────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.3rem;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.section-header .section-sub {
  margin: 0 auto;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 196, 255, 0.35);
}

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline-hero:hover {
  border-color: var(--wa-green);
  background: rgba(37, 211, 102, 0.1);
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.2rem;
  background: var(--wa-green);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.35);
}

/* ── FLOATING WHATSAPP ────────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 62px;
  height: 62px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 16px rgba(37, 211, 102, 0.5));
  animation: wa-pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s;
}

#whatsapp-float:hover {
  transform: scale(1.12);
  animation: none;
}

#whatsapp-float svg {
  width: 62px;
  height: 62px;
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--wa-green);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}

@keyframes wa-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 196, 255, 0.2));
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1.5rem;
}

.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--wa-green);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.cart-btn {
  position: relative;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition);
}

.cart-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
  margin-left: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── CART SIDEBAR ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.15);
}

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

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

.cart-header h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
}

.close-cart {
  font-size: 1.8rem;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--transition);
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  line-height: 1.7;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-2);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.cart-item-flavor {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 6px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cart-qty-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

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

.cart-remove-btn {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-left: auto;
  transition: color var(--transition);
}

.cart-remove-btn:hover {
  color: #ff5f72;
}

.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
}

#cart-total-price {
  color: var(--accent);
}

.cart-calc {
  background: var(--bg-2);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-row.total {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.calc-row.total span:last-child {
  color: var(--accent);
}

.cart-promo-code {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-promo-code input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.cart-promo-code button {
  padding: 0.6rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.promo-message {
  font-size: 0.75rem;
  font-weight: 600;
  min-height: 1rem;
}

.promo-message.success {
  color: var(--accent-3);
}

.promo-message.error {
  color: #f43f5e;
}

.free-shipping-badge {
  text-align: center;
  background: rgba(30, 255, 142, 0.08);
  border: 1px solid rgba(30, 255, 142, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-3);
  font-weight: 600;
}

.btn-whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem;
  background: var(--wa-green);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 112, 243, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0, 196, 255, 0.12) 0%, transparent 60%),
    var(--bg-0);
  padding: 100px 5% 60px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 196, 255, 0.6), transparent);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
}

.hero-text-content {
  flex: 1;
  max-width: 600px;
}

.hero-image-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  background: rgba(0, 196, 255, 0.08);
  border: 1px solid rgba(0, 196, 255, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-main-img {
  width: 100%;
  max-width: 600px;
  margin: 0;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 90%;
  line-height: 1.5;
}

.hero-free-shipping {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 255, 142, 0.08);
  border: 1px solid rgba(30, 255, 142, 0.25);
  color: var(--accent-3);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }

  50% {
    transform: rotate(45deg) translate(4px, 4px);
  }
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}

.trust-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  font-size: 1.1rem;
}

/* ── PRODUCTS SECTION ─────────────────────────────────────── */
.products-section {
  padding: 6rem 1.5rem 5rem;
  max-width: 1320px;
  margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: transparent;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 196, 255, 0.12), var(--shadow);
  border-color: rgba(0, 196, 255, 0.2);
}

.product-card-img-wrap {
  position: relative;
  background: var(--bg-2);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card-shipping {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(30, 255, 142, 0.95);
  border: 1px solid rgba(30, 255, 142, 0.3);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.product-card-flavors {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.flavor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.product-card-price {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
}

.product-card-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.2rem 1.2rem;
}

.btn-card-details {
  flex: 1;
  padding: 0.65rem;
  background: rgba(0, 196, 255, 0.08);
  border: 1px solid rgba(0, 196, 255, 0.2);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background var(--transition);
}

.btn-card-details:hover {
  background: rgba(0, 196, 255, 0.16);
}

.btn-card-wa {
  padding: 0.65rem 0.9rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 10px;
  color: var(--wa-green);
  font-size: 1.1rem;
  transition: background var(--transition);
}

.btn-card-wa:hover {
  background: rgba(37, 211, 102, 0.18);
}

/* Card animations */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  animation: card-in 0.5s ease forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── PRODUCT MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.product-modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.open .product-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
  z-index: 10;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#modal-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1rem;
}

.modal-flavors {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-flavor-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.modal-flavor-thumb:hover {
  transform: scale(1.08);
}

.modal-flavor-thumb.active {
  border-color: var(--accent);
}

.modal-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 196, 255, 0.08);
  border: 1px solid rgba(0, 196, 255, 0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.modal-info h2 {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.modal-price {
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.modal-free-shipping {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

.modal-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.benefit-tag {
  background: rgba(0, 196, 255, 0.06);
  border: 1px solid rgba(0, 196, 255, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.modal-flavor-selector {
  margin-bottom: 1rem;
}

.modal-flavor-selector label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.modal-flavor-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flavor-btn {
  padding: 0.35rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.flavor-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.flavor-btn.active {
  background: rgba(0, 196, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-qty-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 34px;
  height: 34px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--bg-card-hover);
}

#qty-value {
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

.btn-add-cart {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 196, 255, 0.3);
}

.btn-whatsapp-direct {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--wa-green);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background var(--transition);
}

.btn-whatsapp-direct:hover {
  background: rgba(37, 211, 102, 0.15);
}

/* ── ABOUT SECTION ────────────────────────────────────────── */
.about-section {
  padding: 6rem 1.5rem;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.75;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-feature {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--bg-card);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-feature:hover {
  transform: translateX(12px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.about-feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.about-feature strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 700;
}

.about-feature p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 196, 255, 0.3);
}

.stat-number {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9);
}

/* ── SHIPPING BANNER ──────────────────────────────────────── */
.shipping-banner {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.15), rgba(0, 196, 255, 0.1));
  border-top: 1px solid rgba(0, 196, 255, 0.15);
  border-bottom: 1px solid rgba(0, 196, 255, 0.15);
}

.shipping-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.shipping-icon {
  font-size: 3rem;
}

.shipping-banner-inner h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.shipping-banner-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section {
  padding: 6rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 196, 255, 0.2);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-wa-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 1.5rem 1.2rem;
  color: var(--wa-green);
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.faq-wa-btn:hover {
  color: #1eff8e;
}

/* ── CONTACT SECTION ──────────────────────────────────────── */
.contact-section {
  padding: 6rem 1.5rem;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-container p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
}

.contact-item div {
  text-align: left;
}

.contact-item strong {
  display: block;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-item span {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-ctas {
  display: flex;
  justify-content: center;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-links h4 {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-links a,
.footer-links p {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-badge-sm {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── TOAST NOTIFICATION ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 196, 255, 0.3);
  color: var(--text);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9998;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

/* ── CUSTOM SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ── IMAGES & BANNERS ────────────────────────────────────── */
.banner-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.distributed-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ── SINPE BAR STYLES ─────────────────────────────────────── */
.sinpe-announcement {
  position: relative;
  background: var(--text);
  color: #fff;
  z-index: 10;
  padding: 12px 1rem;
  text-align: center;
  font-family: var(--font);
  border-top: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.sinpe-content {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  animation: sinpe-glow 3s ease-in-out infinite;
}

.sinpe-text {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.sinpe-text strong {
  color: var(--accent);
  font-size: 1.1rem;
}

@keyframes sinpe-glow {

  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 5px var(--accent));
  }
}

/* Body padding for fixed elements removed */
body {
  padding-bottom: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text-content {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    line-height: 1;
  }
}

@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    position: fixed;
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  #modal-main-img {
    max-height: 250px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .shipping-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.8rem;
    line-height: 1;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 1rem;
  }

  .hero-free-shipping {
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
  }

  .about-feature-icon {
    font-size: 1.8rem;
  }

  .about-feature strong {
    font-size: 1rem;
  }

  .about-feature p {
    font-size: 0.85rem;
  }

  .sinpe-text {
    font-size: 0.8rem;
  }

  .sinpe-text strong {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
  }

  .trust-container {
    gap: 1rem 2rem;
  }

  .filter-tabs {
    gap: 0.4rem;
  }

  .filter-tab {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }
}


/* ── GALERÍA ──────────────────────────────────────────────── */
.gallery-section {
  padding: 4rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  /* Square */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s forwards;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  /* slight zoom inside */
}

/* Base animations for more dynamic feel */
@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s forwards;
}

/* ── IMÁGENES DISTRIBUIDAS ────────────────────────────────── */
.about-extra-img,
.contact-extra-img {
  margin-top: 2rem;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.distributed-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.banner-section {
  padding: 4rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
}