/* ══════════════════════════════════════════════════
   CAFLAB – Applied Science | Design System
   Paleta: Cyan #00E5FF · Rosa #FF3D7F · Gris #4A4A4A
   ══════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  /* Brand Colors */
  --c-cyan:        #00E5FF;
  --c-cyan-dark:   #00B8D4;
  --c-cyan-light:  #E0FFFE;
  --c-cyan-mid:    #4DD8E8;
  --c-rose:        #FF3D7F;
  --c-rose-dark:   #D6004E;
  --c-rose-light:  #FFE0EC;
  --c-dark:        #2A2A2A;
  --c-body:        #4A4A4A;
  --c-muted:       #6B7280;
  --c-border:      #E5E7EB;
  --c-surface:     #F8FAFB;
  --c-white:       #FFFFFF;

  /* State colors */
  --c-success:     #10B981;
  --c-warning:     #F59E0B;
  --c-error:       #EF4444;
  --c-info:        #3B82F6;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.10);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.12);
  --shadow-cyan: 0 8px 32px rgba(0,229,255,.25);
  --shadow-rose: 0 8px 32px rgba(255,61,127,.25);

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ─── */
*, *::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(--c-body);
  background: var(--c-white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: var(--font-body); }

/* ─── LAYOUT ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── SECTIONS ─── */
.section {
  padding: var(--space-3xl) 0;
}
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-cyan-dark);
  background: var(--c-cyan-light);
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-md);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.section__subtitle {
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.7;
}
.section__cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 11px 24px;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
}
.btn--sm   { padding: 7px 16px; font-size: 13px; }
.btn--lg   { padding: 14px 32px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-cyan-dark));
  color: var(--c-dark);
  box-shadow: var(--shadow-cyan);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,229,255,.35);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  border-color: var(--c-cyan-dark);
  color: var(--c-cyan-dark);
  background: transparent;
}
.btn--outline:hover {
  background: var(--c-cyan-light);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--c-border);
  color: var(--c-body);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-muted);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--c-white);
  box-shadow: 0 6px 24px rgba(37,211,102,.3);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.4);
}

.btn--rose {
  background: linear-gradient(135deg, var(--c-rose), var(--c-rose-dark));
  color: var(--c-white);
  box-shadow: var(--shadow-rose);
}
.btn--rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,61,127,.35);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.navbar.scrolled {
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: 88px;
}
.navbar__logo img { height: 72px; width: auto; }
.navbar__nav {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}
.navbar__link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-body);
  position: relative;
  transition: color var(--t-base);
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 2px; width: 0;
  background: var(--c-cyan);
  border-radius: var(--r-full);
  transition: width var(--t-base);
}
.navbar__link:hover,
.navbar__link.active { color: var(--c-cyan-dark); }
.navbar__link:hover::after,
.navbar__link.active::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}
.navbar__nav ~ .navbar__actions { margin-left: 0; }

.navbar__search-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  transition: all var(--t-base);
}
.navbar__search-btn:hover {
  background: var(--c-surface);
  color: var(--c-cyan-dark);
}

.btn-cart {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-body);
  transition: all var(--t-base);
  background: var(--c-surface);
}
.btn-cart:hover { background: var(--c-cyan-light); color: var(--c-cyan-dark); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--c-rose);
  color: var(--c-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: all var(--t-base);
}
.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.navbar__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-body);
  border-radius: var(--r-full);
  transition: all var(--t-base);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* When menu is open, make hamburger visible above dark overlay */
.navbar__hamburger.open { opacity: 0; pointer-events: none; }
.navbar__hamburger.open span { background: var(--c-white); }


/* Search overlay */
.search-overlay {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-slow);
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}
.search-overlay.open {
  max-height: 400px;
  padding: var(--space-md) 0;
}
.search-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--t-base);
}
.search-input:focus { border-color: var(--c-cyan); }
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
  max-height: 300px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: all var(--t-base);
  font-size: 13px;
}
.search-result-item:hover {
  border-color: var(--c-cyan);
  background: var(--c-cyan-light);
}
.search-result-item img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: var(--r-sm);
}

/* ─── HERO ─── */
/* ═══ HERO PRINCIPAL (índice) – foto de fondo ═══════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  /* navbar height – content starts below navbar */
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 10, 25, 0.80) 0%,
    rgba(5, 10, 25, 0.55) 55%,
    rgba(5, 10, 25, 0.25) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.hero__content--center {
  max-width: 100%;
  text-align: center;
  align-items: center;
}
.hero__text { max-width: 100%; }

/* Light variants for photo bg heroes */
.hero__eyebrow--light {
  background: rgba(0,229,255,.15);
  border: 1px solid rgba(0,229,255,.35);
  color: var(--c-cyan) !important;
}
.hero__title--light {
  color: #ffffff !important;
  letter-spacing: .04em;
}
.hero__title--light .hero__title--accent {
  color: var(--c-cyan) !important;
}
.hero__desc--light {
  color: rgba(255,255,255,.8) !important;
}
.hero__stats--light .hero__stat-num { color: #fff !important; }
.hero__stats--light .hero__stat-label { color: rgba(255,255,255,.55) !important; }
.hero__stats--light {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: var(--space-xl);
  margin-top: var(--space-sm);
}

/* Ghost light button for dark bg */
.btn--ghost-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* Particles (kept for compat) */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: var(--r-full);
  animation: float-particle 6s ease-in-out infinite;
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: .6; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-cyan-dark);
  background: var(--c-cyan-light);
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-dark);
  margin-bottom: var(--space-lg);
}
.hero__title--accent {
  color: var(--c-cyan-dark);
  position: relative;
  display: inline;
}
.hero__title--accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-rose));
  border-radius: var(--r-full);
}

.hero__desc {
  font-size: 18px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

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

.hero__stats {
  display: flex;
  gap: var(--space-xl);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1;
}
.hero__stat-label {
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Flask visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__flask-wrap {
  position: relative;
  width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__flask {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 20px 40px rgba(0,229,255,.3));
}
.hero__flask-body {
  width: 140px; height: 120px;
  background: linear-gradient(160deg, rgba(0,229,255,.15) 0%, rgba(255,61,127,.2) 100%);
  border: 3px solid rgba(0,229,255,.4);
  border-radius: 20px 20px 40% 40%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.hero__flask-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255,61,127,.4) 0%, rgba(255,61,127,.7) 100%);
  border-radius: 0 0 36% 36%;
  animation: liquid-wave 3s ease-in-out infinite;
}
@keyframes liquid-wave {
  0%, 100% { border-radius: 0 0 36% 36%; }
  50% { border-radius: 0 0 20% 40%; }
}
.hero__flask-bubble {
  position: absolute;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.6);
  animation: bubble-rise 2.5s ease-in-out infinite;
}
.b1 { width: 10px; height: 10px; bottom: 10px; left: 30px; animation-delay: 0s; }
.b2 { width: 7px; height: 7px; bottom: 20px; left: 60px; animation-delay: .7s; }
.b3 { width: 5px; height: 5px; bottom: 5px; left: 90px; animation-delay: 1.4s; }
@keyframes bubble-rise {
  0% { transform: translateY(0); opacity: .8; }
  100% { transform: translateY(-70px); opacity: 0; }
}
.hero__flask-neck {
  width: 50px; height: 30px;
  background: rgba(0,229,255,.15);
  border-left: 3px solid rgba(0,229,255,.4);
  border-right: 3px solid rgba(0,229,255,.4);
}
.hero__flask-mouth {
  width: 70px; height: 14px;
  background: rgba(0,229,255,.2);
  border: 3px solid rgba(0,229,255,.5);
  border-radius: var(--r-sm);
}

.hero__orbit {
  position: absolute;
  border-radius: var(--r-full);
  border: 1px dashed rgba(0,229,255,.3);
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.o1 { width: 200px; height: 200px; animation: orbit-rotate 8s linear infinite; }
.o2 { width: 260px; height: 260px; animation: orbit-rotate 12s linear infinite reverse; }
.o3 { width: 320px; height: 320px; animation: orbit-rotate 16s linear infinite; }
@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: var(--r-full);
  background: var(--c-cyan);
  margin: -5px;
  box-shadow: 0 0 8px var(--c-cyan);
}
.o2 .hero__dot { background: var(--c-rose); box-shadow: 0 0 8px var(--c-rose); }

.hero__scroll-hint { position: relative; z-index: 2;
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll-arrow {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--c-muted), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── CATEGORIES ─── */
.categories-section { background: var(--c-surface); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
.category-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.category-card:hover {
  border-color: var(--c-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.category-card__icon {
  width: 56px; height: 56px;
  background: var(--c-cyan-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-xs);
  transition: background var(--t-base);
}
.category-card:hover .category-card__icon { background: var(--c-cyan); }
.category-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-dark);
  line-height: 1.3;
}
.category-card__count {
  font-size: 11px;
  color: var(--c-muted);
}

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.product-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--c-surface);
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
  padding: var(--space-lg);
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__badge {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  background: var(--c-rose);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.product-card__quick-wa {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  width: 36px; height: 36px;
  background: #25D366;
  color: var(--c-white);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: all var(--t-base);
  box-shadow: 0 2px 12px rgba(37,211,102,.4);
}
.product-card:hover .product-card__quick-wa { opacity: 1; transform: scale(1); }

.product-card__body { padding: var(--space-md) var(--space-lg); flex: 1; }
.product-card__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-cyan-dark);
  margin-bottom: var(--space-xs);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-cyan-dark);
}
.product-card__footer {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.product-card__footer .btn {
  flex: 1;
  font-size: 11px;
  padding: 8px 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── ABOUT STRIP ─── */
.about-strip { background: var(--c-white); }
.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.about-strip__text p {
  color: var(--c-muted);
  margin-bottom: var(--space-lg);
  font-size: 16px;
  line-height: 1.8;
}
.about-strip__values {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.about-strip__values li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 15px;
  color: var(--c-body);
}
.value-icon { font-size: 20px; }

.about-strip__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.about-strip__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--t-base);
}
.about-strip__card:hover {
  border-color: var(--c-cyan);
  background: var(--c-cyan-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ac__icon { font-size: 36px; margin-bottom: var(--space-sm); }
.ac__label { font-size: 14px; font-weight: 600; color: var(--c-dark); }

.ac2 { margin-top: var(--space-xl); }
.ac4 { margin-top: var(--space-xl); }

/* ─── CTA WHATSAPP ─── */
.cta-whatsapp {
  background: linear-gradient(135deg, var(--c-dark) 0%, #1a1a2e 100%);
  padding: var(--space-2xl) 0;
}
.cta-whatsapp__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.cta-whatsapp__text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: var(--space-sm);
}
.cta-whatsapp__text p {
  color: rgba(255,255,255,.65);
  font-size: 17px;
}

/* ─── FOOTER ─── */
.footer { background: var(--c-dark); color: rgba(255,255,255,.75); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
}
/* footer logo removed */
.footer__desc { font-size: 14px; line-height: 1.7; margin-bottom: var(--space-lg); }
.footer__social { display: flex; gap: var(--space-sm); }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--t-base);
}
.footer__social a:hover { background: var(--c-cyan); color: var(--c-dark); }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-lg);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--t-base);
}
.footer__links a:hover { color: var(--c-cyan); }

.footer__contact { display: flex; flex-direction: column; gap: var(--space-md); }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
}
.footer__contact svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer__contact a { color: rgba(255,255,255,.6); transition: color var(--t-base); }
.footer__contact a:hover { color: var(--c-cyan); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-lg) 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 13px;
}
.footer__bottom-links { display: flex; gap: var(--space-lg); }
.footer__bottom-links a { color: rgba(255,255,255,.5); transition: color var(--t-base); }
.footer__bottom-links a:hover { color: var(--c-cyan); }
.footer__credit a { color: var(--c-cyan-mid); transition: color var(--t-base); }
.footer__credit a:hover { color: var(--c-cyan); }

/* ─── CART PANEL ─── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  background: var(--c-white);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--c-border);
}
.cart-panel__header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.cart-panel__close {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  transition: all var(--t-base);
}
.cart-panel__close:hover { background: var(--c-surface); color: var(--c-dark); }

.cart-panel__body { flex: 1; overflow-y: auto; padding: var(--space-lg); }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  height: 300px;
  text-align: center;
}
.cart-empty__icon { font-size: 64px; opacity: .2; }
.cart-empty p { font-size: 16px; color: var(--c-muted); }

.cart-items { display: flex; flex-direction: column; gap: var(--space-md); }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.cart-item__img {
  width: 64px; height: 64px;
  object-fit: contain;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  padding: 6px;
}
.cart-item__info { min-width: 0; }
.cart-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item__cat { font-size: 11px; color: var(--c-muted); margin-bottom: 8px; }
.cart-item__qty {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--c-body);
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--c-white);
}
.qty-btn:hover { border-color: var(--c-cyan); color: var(--c-cyan-dark); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-sm); }
.cart-item__price { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--c-cyan-dark); }
.cart-item__remove { font-size: 11px; color: var(--c-muted); cursor: pointer; transition: color var(--t-base); }
.cart-item__remove:hover { color: var(--c-error); }

.cart-panel__footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 16px;
}
.cart-subtotal strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-dark);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-dark);
  color: var(--c-white);
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-slow);
  z-index: 2000;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  z-index: 999;
  transition: all var(--t-base);
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 12px 40px rgba(37,211,102,.5); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,.4); }
  50% { box-shadow: 0 8px 48px rgba(37,211,102,.6); }
}

/* ─── CATALOG PAGE ─── */
/* .catalog-hero removed – replaced by .page-hero */
.catalog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--c-dark);
  margin-bottom: var(--space-sm);
}
.catalog-hero p { color: var(--c-muted); font-size: 17px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

/* Sidebar */
.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar__block {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.sidebar__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-dark);
  margin-bottom: var(--space-md);
}
.sidebar__clear {
  font-size: 12px;
  color: var(--c-muted);
  cursor: pointer;
  float: right;
  transition: color var(--t-base);
}
.sidebar__clear:hover { color: var(--c-rose); }
.sidebar__search {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--t-base);
}
.sidebar__search:focus { border-color: var(--c-cyan); }

.cat-filter-list { display: flex; flex-direction: column; gap: 2px; }
.cat-filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-base);
  font-size: 14px;
  color: var(--c-body);
}
.cat-filter-item:hover { background: var(--c-surface); }
.cat-filter-item.active { background: var(--c-cyan-light); color: var(--c-cyan-dark); font-weight: 600; }
.cat-filter-item__count {
  font-size: 11px;
  color: var(--c-muted);
  background: var(--c-surface);
  padding: 2px 7px;
  border-radius: var(--r-full);
}

/* Catalog main */
.catalog-main {}
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}
.catalog-count { font-size: 14px; color: var(--c-muted); }
.catalog-sort {
  padding: 8px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--c-body);
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-base);
}
.catalog-sort:focus { border-color: var(--c-cyan); }

.active-filters {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.active-filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-cyan-light);
  color: var(--c-cyan-dark);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
}
.active-filter-tag:hover { background: var(--c-rose-light); color: var(--c-rose-dark); }

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  padding: 100px 0 var(--space-3xl);
}
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 13px; color: var(--c-muted);
  margin-bottom: var(--space-xl);
}
.breadcrumb a { color: var(--c-muted); transition: color var(--t-base); }
.breadcrumb a:hover { color: var(--c-cyan-dark); }
.breadcrumb-sep { opacity: .4; }

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.product-gallery {}
.product-gallery__main {
  aspect-ratio: 1;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
}
.product-gallery__main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--space-2xl);
}
.product-gallery__thumbs {
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--c-border);
  cursor: pointer;
  transition: border-color var(--t-base);
}
.product-gallery__thumb.active { border-color: var(--c-cyan); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.product-info {}
.product-info__cat { font-size: 12px; font-weight: 600; color: var(--c-cyan-dark); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-sm); }
.product-info__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--c-dark);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}
.product-info__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--c-cyan-dark);
  margin-bottom: var(--space-lg);
}
.product-info__sku { font-size: 12px; color: var(--c-muted); margin-top: -var(--space-sm); margin-bottom: var(--space-lg); }

/* Variations */
.variations-section { margin-bottom: var(--space-xl); }
.variations-title { font-size: 13px; font-weight: 600; color: var(--c-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-sm); }
.variations-grid { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.variation-btn {
  padding: 8px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-body);
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--c-white);
  font-family: var(--font-body);
}
.variation-btn:hover { border-color: var(--c-cyan); color: var(--c-cyan-dark); }
.variation-btn.active { border-color: var(--c-cyan); background: var(--c-cyan-light); color: var(--c-cyan-dark); font-weight: 600; }

.product-actions {
  display: flex; gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.product-actions .btn { flex: 1; min-width: 160px; }

.qty-selector {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.qty-selector label { font-size: 13px; color: var(--c-muted); margin-right: auto; }
.qty-selector-inner { display: flex; align-items: center; gap: var(--space-sm); }
.qty-selector-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  background: var(--c-white);
  transition: all var(--t-base);
}
.qty-selector-btn:hover { border-color: var(--c-cyan); color: var(--c-cyan-dark); }
.qty-selector-val { font-size: 16px; font-weight: 700; min-width: 28px; text-align: center; }

/* ─── PRODUCT DESCRIPTION BLOCK ──────────────────────────── */
.product-description-block {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--c-border);
}

.product-desc {
  font-family: var(--font-body);
}

.product-desc__lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-dark);
  font-weight: 500;
  background: linear-gradient(135deg, var(--c-cyan-light), transparent);
  border-left: 4px solid var(--c-cyan);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: var(--space-xl);
}

.product-desc__para {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-body);
  margin-bottom: var(--space-lg);
  padding-left: 0;
}

.product-desc__para:last-child { margin-bottom: 0; }

.product-desc__para strong {
  color: var(--c-cyan-dark);
  font-weight: 600;
}

/* Keep specs-table for admin compatibility */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) td { background: var(--c-surface); }
.specs-table td { padding: 12px var(--space-md); font-size: 14px; border-bottom: 1px solid var(--c-border); }
.specs-table td:first-child { font-weight: 600; color: var(--c-dark); width: 40%; }

/* ─── RELATED PRODUCTS ─── */
.related-section { padding: var(--space-3xl) 0; background: var(--c-surface); }

/* ─── ADMIN ─── */
.admin-body { background: #F0F2F5; font-family: var(--font-body); }
.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--c-dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.admin-sidebar__logo {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar__logo img { height: 40px; width: auto; filter: brightness(10); }
.admin-sidebar__nav { padding: var(--space-md) var(--space-sm); flex: 1; }
.admin-nav-section { margin-bottom: var(--space-lg); }
.admin-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 0 var(--space-md) var(--space-sm);
}
.admin-nav-item {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 10px var(--space-md);
  border-radius: var(--r-md);
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: var(--c-white); }
.admin-nav-item.active { background: linear-gradient(135deg, rgba(0,229,255,.15), rgba(0,229,255,.08)); color: var(--c-cyan); }
.admin-nav-item svg { flex-shrink: 0; opacity: .7; }
.admin-nav-item.active svg { opacity: 1; }

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 0 var(--space-xl);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-dark);
}
.admin-topbar__actions { display: flex; align-items: center; gap: var(--space-md); }

.admin-content { padding: var(--space-xl); }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.stat-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: var(--space-sm);
  transition: all var(--t-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__label { font-size: 13px; color: var(--c-muted); font-weight: 500; }
.stat-card__value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--c-dark); }
.stat-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  align-self: flex-end;
  margin-top: auto;
}
.stat-card__icon--cyan { background: var(--c-cyan-light); }
.stat-card__icon--rose { background: var(--c-rose-light); }
.stat-card__icon--success { background: rgba(16,185,129,.12); }
.stat-card__icon--info { background: rgba(59,130,246,.12); }

.admin-table-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.admin-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--c-border);
}
.admin-table-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.admin-table-toolbar {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.admin-search {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--t-base);
}
.admin-search:focus { border-color: var(--c-cyan); }
.admin-select {
  padding: 9px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 12px var(--space-lg);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.admin-table td {
  padding: 14px var(--space-lg);
  font-size: 14px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-body);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--c-surface); }
.admin-table input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--c-cyan); }

.admin-product-img {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--c-surface);
  padding: 4px;
  border: 1px solid var(--c-border);
}
.badge-visible {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
}
.badge-visible--yes { background: rgba(16,185,129,.12); color: var(--c-success); }
.badge-visible--no { background: rgba(239,68,68,.1); color: var(--c-error); }

.admin-actions { display: flex; align-items: center; gap: 6px; }
.admin-action-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-base);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-muted);
}
.admin-action-btn:hover { border-color: var(--c-cyan); color: var(--c-cyan-dark); background: var(--c-cyan-light); }
.admin-action-btn--danger:hover { border-color: var(--c-error); color: var(--c-error); background: rgba(239,68,68,.06); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-slow);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.94) translateY(16px);
  transition: all var(--t-slow);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xl); }
.modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--c-dark); }
.modal__close {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); cursor: pointer; transition: all var(--t-base);
}
.modal__close:hover { background: var(--c-surface); color: var(--c-dark); }

.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: var(--space-xs);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--c-dark);
  outline: none;
  transition: border-color var(--t-base);
  background: var(--c-white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--c-cyan); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-full { grid-column: 1 / -1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip__inner { grid-template-columns: 1fr; }
  .about-strip__visual { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* ── Fullscreen mobile menu ── */
  .navbar__nav {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0a1228;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 60px 24px 40px;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 2000;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .navbar__nav.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
  }
  .navbar__link {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    padding: 18px 24px;
    display: block;
    text-align: center;
    transition: color var(--t-base);
  }
  .navbar__link:hover,
  .navbar__link.active {
    color: var(--c-cyan);
  }
  .navbar__link::after { display: none; }

  /* Close button inside menu */
  .navbar__nav .menu-close-btn {
    position: absolute;
    top: 24px; right: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-base);
  }
  .navbar__nav .menu-close-btn:hover {
    background: rgba(255,255,255,.2);
  }

  /* WA button at bottom of menu */
  .navbar__nav .menu-wa-btn {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--r-full);
    text-decoration: none;
    transition: all var(--t-base);
  }
  .navbar__nav .menu-wa-btn:hover { background: #1da851; }
  .navbar__hamburger { display: flex; }
  .navbar__inner { gap: 0; }
  .navbar__logo { flex: 1; }
  .navbar__logo img { height: 60px; }
  .navbar__actions { margin-left: 0; gap: 6px; flex-shrink: 0; }

  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { display: none; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__desc { margin: 0 auto var(--space-xl); }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

  .cta-whatsapp__inner { flex-direction: column; text-align: center; }

  .cart-panel { width: 100%; }

  .product-detail__grid { grid-template-columns: 1fr; }

  .admin-sidebar { width: 0; overflow: hidden; }
  .admin-main { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: .02em; }
  .page-hero { min-height: 300px; padding-bottom: var(--space-2xl); }
  .norm-bar__inner { flex-direction: column; gap: var(--space-lg); text-align: center; }
  .product-gallery { grid-template-columns: 1fr; }
  .catalog-layout { gap: var(--space-lg); }
  .section__title { font-size: clamp(1.5rem, 5vw, 2.4rem); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-2xl) 0; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: var(--space-lg); }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .about-strip__visual { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: .02em; }
  .page-hero { min-height: 300px; padding-bottom: var(--space-2xl); }
  .norm-bar__inner { flex-direction: column; gap: var(--space-lg); text-align: center; }
  .product-gallery { grid-template-columns: 1fr; }
  .catalog-layout { gap: var(--space-lg); }
  .section__title { font-size: clamp(1.5rem, 5vw, 2.4rem); }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ─── PAGINATION ─── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--c-white);
  color: var(--c-body);
}
.page-btn:hover, .page-btn.active { border-color: var(--c-cyan); background: var(--c-cyan-light); color: var(--c-cyan-dark); }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}
.empty-state__icon { font-size: 64px; margin-bottom: var(--space-lg); opacity: .3; }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--c-dark); margin-bottom: var(--space-sm); }
.empty-state p { color: var(--c-muted); margin-bottom: var(--space-xl); }

/* 404 */
.page-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--space-lg);
}
.page-404 h1 {
  font-family: var(--font-display); font-size: 8rem; font-weight: 900;
  color: var(--c-cyan-light); line-height: 1;
}
.page-404 h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: var(--space-md); }
.page-404 p { color: var(--c-muted); margin-bottom: var(--space-xl); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--c-cyan); background: var(--c-cyan-light); }
.upload-zone__icon { font-size: 40px; margin-bottom: var(--space-md); opacity: .4; }
.upload-zone p { font-size: 14px; color: var(--c-muted); }

/* Loader */
.loader {
  display: inline-block; width: 32px; height: 32px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-cyan);
  border-radius: var(--r-full);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toggle switch */
.toggle {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--c-border);
  border-radius: var(--r-full);
  transition: background var(--t-base);
  position: relative;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: var(--c-white);
  border-radius: var(--r-full);
  top: 3px; left: 3px;
  transition: transform var(--t-base);
  box-shadow: var(--shadow-xs);
}
.toggle input:checked ~ .toggle-track { background: var(--c-cyan); }
.toggle input:checked ~ .toggle-track::after { transform: translateX(20px); }

/* Drag handle */
.drag-handle { cursor: grab; color: var(--c-muted); opacity: .5; }
.drag-handle:hover { opacity: 1; }

/* Tag input */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-cyan-light); color: var(--c-cyan-dark);
  padding: 3px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
}
.tag-remove { cursor: pointer; font-size: 14px; line-height: 1; }
.tag-remove:hover { color: var(--c-rose); }

/* Accessible skip link */
.skip-link {
  position: absolute; top: -100%; left: var(--space-md);
  background: var(--c-cyan); color: var(--c-dark);
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  z-index: 9999;
  transition: top var(--t-base);
}
.skip-link:focus { top: var(--space-md); }


/* ═══ PAGE HERO (foto de fondo para páginas internas) ══════════════ */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-3xl);
  padding-top: 140px; /* navbar height + breathing room */
  overflow: hidden;
  box-sizing: border-box;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 10, 25, 0.80) 0%,
    rgba(5, 10, 25, 0.50) 50%,
    rgba(5, 10, 25, 0.25) 100%
  );
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(0,229,255,.12);
  border: 1px solid rgba(0,229,255,.3);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-md);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.page-hero__desc {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 560px;
}

/* ─ I+D+I photo overlay (darker, more dramatic) ─────────────────── */
.idi-hero--photo .idi-hero__photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.idi-hero--photo .idi-hero__photo-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.idi-hero__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 10, 25, 0.88) 0%,
    rgba(5, 10, 25, 0.70) 60%,
    rgba(5, 10, 25, 0.55) 100%
  );
}
.idi-hero--photo .idi-hero__content,
.idi-hero--photo .idi-hero__dna {
  z-index: 2;
  position: relative;
}

/* ─ Donativos photo overlay ─────────────────────────────────────── */
.don-hero--photo .don-hero__photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.don-hero--photo .don-hero__photo-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.don-hero__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 10, 25, 0.88) 0%,
    rgba(5, 10, 25, 0.72) 100%
  );
}
.don-hero--photo .don-hero__particles,
.don-hero--photo .don-hero__content {
  z-index: 2;
  position: relative;
}

/* ─ Remove old catalog-hero ─────────────────────────────────────── */
/* .catalog-hero removed – replaced by .page-hero */

/* ── Hero index centering overrides ────────────────── */
.hero__content--center .hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__content--center .hero__title--light {
  font-size: clamp(1.8rem, 6vw, 4rem);
  white-space: normal;
  word-break: break-word;
}
.hero__content--center .hero__desc--light {
  max-width: 540px;
  text-align: center;
}
.hero__content--center .hero__actions {
  justify-content: center;
}
.hero__content--center .hero__stats--light {
  justify-content: center;
}

/* ─── ADDITIONAL MOBILE FIXES ────────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Hero index: centrado como donativos en móvil ── */
  .hero { padding-top: 140px; min-height: auto; padding-bottom: 60px; }
  .hero__content { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
  .hero__content--center {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }
  .hero__content--center .hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__title--light {
    font-size: clamp(2rem, 8vw, 3rem);
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }
  .hero__desc--light { text-align: center; max-width: 100%; }
  .hero__actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero__stats--light { justify-content: center; flex-wrap: wrap; gap: var(--space-lg); }
  .hero__eyebrow--light { display: inline-flex; }

  /* ── page-hero: centrado en móvil ── */
  .page-hero { text-align: center; }
  .page-hero__content { text-align: center; }
  .page-hero__title { text-align: center; }
  .page-hero__desc { text-align: center; margin: 0 auto; }

  /* Navbar above menu when open */
  .navbar { z-index: 1500; }

  /* Page heroes */
  .page-hero { padding-top: 160px; min-height: auto; padding-bottom: var(--space-2xl); }
  .page-hero__eyebrow { font-size: 10px; display: inline-flex; }
  .page-hero__title { font-size: clamp(1.5rem, 7vw, 2.4rem); white-space: normal; text-align: center; }
  .page-hero__desc { text-align: center; margin: 0 auto; }
  .analysis-hero { min-height: 260px; padding-top: 40px; padding-bottom: var(--space-2xl); }
  .analysis-hero__title { font-size: clamp(1.4rem, 5vw, 2.2rem); }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }

  /* About strip */
  .about-strip__inner { gap: var(--space-2xl); }

  /* Section headers */
  .section__subtitle { font-size: 15px; }

  /* Catalog sidebar */
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: block; }

  /* Fondo card in donativos */
  .fondo-card { padding: var(--space-xl) var(--space-lg); }
  .fondo-item { flex-wrap: wrap; gap: 8px; }
  .fondo-item .copy-btn { align-self: flex-end; }

  /* Why grid donativos */
  .why-grid { grid-template-columns: 1fr; }

  /* Disc pills idi */
  .disc-pills { gap: var(--space-sm); }
  .disc-pill { padding: 10px 16px; font-size: 14px; }

  /* IDI stats */
  .idi-hero__stats { gap: var(--space-lg); }
  .idi-stat__number { font-size: 1.8rem; }

  /* Agua clients strip */
  .clients-strip__list { flex-wrap: wrap; gap: 8px; }
  .metals-grid { flex-wrap: wrap; gap: 8px; }
  .metal-pill { font-size: 12px; padding: 8px 12px; }

  /* Protocolos */
  .proto-props { grid-template-columns: 1fr; }
  .proto-header { padding: var(--space-lg); gap: var(--space-sm); }
  .proto-header__icon { width: 40px; height: 40px; font-size: 18px; }
  .proto-body__inner { padding: 0 var(--space-lg) var(--space-lg); }

  /* Catalog filter tags */
  .active-filters { flex-wrap: wrap; }

  /* Norm bar agua */
  .norm-badge { flex-wrap: wrap; }

  /* CTA buttons */
  .agua-cta div, .protocols-cta div, .don-cta div,
  .idi-cta__inner > div {
    flex-direction: column;
    align-items: center;
  }
  .btn--lg { max-width: 320px; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero { padding-top: 130px; }
  .hero__title--light { font-size: clamp(1.8rem, 8vw, 2.6rem); text-align: center; }
  .page-hero { padding-top: 140px; }
  .page-hero__title { font-size: clamp(1.4rem, 7vw, 2rem); text-align: center; }
  .page-hero__desc { text-align: center; }

  /* Nav logo */
  .navbar__logo img { height: 56px; }
  .navbar__inner { height: 72px; gap: 0; }
  .navbar__logo { flex: 1; }
  .navbar__nav { top: 72px; }
  .navbar__actions { gap: 4px; }

  /* Page hero */
  .page-hero { min-height: 260px; padding-top: 140px; }
  .page-hero__title { font-size: clamp(1.4rem, 7vw, 2rem); }

  /* Products grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .product-card__name { font-size: 12px; }
  .product-card__price { font-size: 16px; }
  .product-card__footer { flex-direction: column; gap: 6px; }
  .product-card__footer .btn { font-size: 12px; padding: 8px 10px; text-align: center; }

  /* Logros idi */
  .logros-grid { grid-template-columns: 1fr; }
  .logro-card { padding: var(--space-lg); }

  /* Agua sample steps */
  .sample-steps { grid-template-columns: 1fr; }
  .pathogen-grid { grid-template-columns: 1fr; }
  .params-grid { grid-template-columns: 1fr 1fr; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* FAQ */
  .faq-question { font-size: 14px; padding: var(--space-md) var(--space-lg); }

  /* Buttons */
  .btn--whatsapp, .btn--primary, .btn--outline { width: 100%; justify-content: center; }
  .hero__actions .btn--ghost-light { width: 100%; justify-content: center; }

  /* Protocolos tags */
  .proto-header__tags { display: none; }
  .proto-step__num { width: 24px; height: 24px; font-size: 11px; flex-shrink: 0; }

  /* Footer */
  .footer__bottom-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }

  /* Contact */
  .norm-badge__text strong { font-size: 12px; }
  .norm-badge__text span { font-size: 10px; }
}

/* ── Menu-only elements: hidden on desktop ─────────────────────────── */
.menu-close-btn { display: none; }
.menu-wa-btn { display: none; }

@media (max-width: 768px) {
  .menu-close-btn { display: flex; }
  .menu-wa-btn { display: inline-flex; }
}
