/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1b1e23;
  --bg-soft: #23272d;
  --bg-tint: #2a2119;
  --card: #23272d;
  --text: #f5f6f7;
  --text-muted: #a3adb6;
  --primary: #ff5a3c;
  --primary-dark: #ff7a56;
  --navy: #101318;
  --navy-light: #1a1f26;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --border: #363c44;
  --radius: 16px;
  --font: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
body.no-scroll { overflow: hidden; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cart-drawer, .cart-backdrop, .toast, .cart-btn--bump, .card, .icon-btn, .search-modal, .search-backdrop {
    transition: none !important;
    animation: none !important;
  }
  * { scroll-behavior: auto !important; }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section__head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.section__head p { color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--primary);
  color: #ffffff;
}
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(255,90,60,0.35); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.icon-wsp { width: 20px; height: 20px; fill: currentColor; }

/* ===== Topbar ===== */
.topbar {
  background: var(--navy);
  color: #cfe3ec;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,20,23,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.header--scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--primary); }

.header__cta { flex-shrink: 0; }

/* ===== Botones de ícono (búsqueda + carrito) ===== */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; color: var(--text); }

.cart-btn__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-btn--bump { animation: cartBump 0.35s ease; }
@keyframes cartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.badge {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.highlight { color: var(--primary); }
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255,154,60,0.3), rgba(255,90,60,0.12) 45%, transparent 72%);
  filter: blur(20px);
  border-radius: 50%;
}

/* ===== Insignias de confianza ===== */
.trust-badges {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.trust-badge__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-tint); color: var(--primary); flex-shrink: 0; }

/* ===== Productos ===== */
.productos { padding: 80px 0; background: var(--bg-tint); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--card-accent, var(--primary));
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,90,60,0.5); box-shadow: 0 12px 28px rgba(255,90,60,0.15); }

.card__media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(160deg, var(--card), var(--card-media-bg, #22262d));
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--bg-tint);
  padding: 3px 10px;
  border-radius: 100px;
}
.card__body h3 { font-size: 1.1rem; font-weight: 600; }
.card__body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
.card__footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.card__footer .btn { flex: 1; justify-content: center; padding: 10px 14px; font-size: 0.85rem; }

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 10px;
  flex-shrink: 0;
}
.stepper__btn {
  background: none;
  border: none;
  font-size: 1rem;
  width: 16px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}
.stepper__btn:hover { color: var(--primary); }
.stepper__value { min-width: 14px; text-align: center; font-size: 0.9rem; font-weight: 600; }

/* Resalta la tarjeta al llegar desde un resultado de búsqueda */
.card--highlight { animation: cardPulse 1.8s ease; }
@keyframes cardPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,90,60,0.45); }
  30% { box-shadow: 0 0 0 8px rgba(255,90,60,0.15); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,60,0); }
}

/* ===== Filtro por objetivo ===== */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-chip:hover { border-color: var(--primary); color: var(--text); }
.filter-chip--active,
.filter-chip--active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--primary));
  flex-shrink: 0;
}

.productos__more { text-align: center; margin-top: 40px; }

/* ===== Compra por objetivo ===== */
.goals { padding: 80px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.goals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.goal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 16px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.goal-card:hover { transform: translateY(-4px); border-color: var(--icon-color, var(--primary)); }
.goal-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--icon-bg, #2c1a13);
  color: var(--icon-color, var(--primary));
}
.goal-card__icon .icon { width: 26px; height: 26px; }
.goal-card h3 { font-size: 0.95rem; font-weight: 600; }

/* ===== Página de detalle de producto ===== */
.card__link { transition: color 0.2s ease; }
.card__link:hover { color: var(--primary); }

.product-page { padding-bottom: 80px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 28px 0;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text); font-weight: 600; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}
.product-hero__media {
  height: 320px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  background: linear-gradient(160deg, var(--card), var(--card-media-bg, var(--bg-tint)));
  border: 1px solid var(--border);
}
.product-hero__info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.product-hero__info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.5px; }
.product-hero__desc { color: var(--text-muted); font-size: 1rem; }
.product-hero__price { font-size: 1.9rem; }
.product-hero__actions { display: flex; align-items: center; gap: 14px; margin: 4px 0; }
.product-hero__actions .btn { flex: 1; justify-content: center; }

.product-section { padding: 30px 0; }
.product-section h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; margin-bottom: 8px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.benefit-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); color: var(--primary); margin-bottom: 14px; }
.benefit-card__icon .icon { width: 24px; height: 24px; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 6px; }
.benefit-card p { color: var(--text-muted); font-size: 0.9rem; }

.usage-list {
  max-width: 640px;
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
  counter-reset: usage;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.usage-list li {
  counter-increment: usage;
  position: relative;
  padding-left: 44px;
  color: var(--text-muted);
  min-height: 30px;
  display: flex;
  align-items: center;
}
.usage-list li::before {
  content: counter(usage);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-back { padding: 20px 0 40px; }

.product-missing { text-align: center; padding: 100px 0; }
.product-missing h1 { margin-bottom: 12px; }
.product-missing p { color: var(--text-muted); margin-bottom: 24px; }

@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero__media { height: 220px; font-size: 5rem; }
  .product-hero__info { align-items: stretch; }
  .product-hero__info .btn--whatsapp { justify-content: center; }
}

/* ===== Nuestra historia ===== */
.story { padding: 80px 0; }
.story__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.story__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -0.5px; }
.story__text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.story__text p:last-child { margin-bottom: 0; }

.story__values { display: flex; flex-direction: column; gap: 18px; }
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.value-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); color: var(--primary); }
.value-card__icon .icon { width: 24px; height: 24px; }
.value-card h3 { font-size: 1rem; font-weight: 700; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
}

/* ===== Nosotros / Features ===== */
.nosotros { padding: 80px 0; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-tint); color: var(--primary); margin-bottom: 14px; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.9rem; }
.feature p a { color: var(--primary); font-weight: 600; transition: color 0.2s ease; }
.feature p a:hover { color: var(--primary-dark); }

/* ===== CTA final ===== */
.cta {
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,154,60,0.22), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(255,90,60,0.16), transparent 40%),
    linear-gradient(160deg, var(--navy-light), var(--navy));
  color: #ffffff;
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta p { color: #a9bdcc; max-width: 480px; margin: 0 auto 32px; }

/* ===== Encabezado de página interior ===== */
.page-header {
  padding: 56px 0 44px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,154,60,0.25), transparent 45%),
    linear-gradient(160deg, var(--navy-light), var(--navy));
  color: #ffffff;
}
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.page-header p { color: #a9bdcc; max-width: 520px; margin: 0 auto; }

/* ===== Newsletter ===== */
.newsletter { max-width: 480px; margin: 0 auto 40px; text-align: center; }
.newsletter h3 { font-size: 1.15rem; margin-bottom: 6px; }
.newsletter p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }
.newsletter__row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
}
.newsletter__row input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.newsletter__row .btn { flex-shrink: 0; justify-content: center; }
.newsletter__note { color: var(--whatsapp-dark); font-weight: 600; font-size: 0.92rem; }

/* ===== Footer ===== */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 0.85rem;
}
.footer__nav a { color: var(--text-muted); transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--text); }
.footer__nav a.nav__link--active { color: var(--primary); font-weight: 600; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 32px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* ===== Recursos / Calculadoras ===== */
.recursos { padding: 80px 0; background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.calc { max-width: 720px; margin: 0 auto; }

.calc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.calc__tab {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.calc__tab:hover { border-color: var(--primary); color: var(--text); }
.calc__tab--active,
.calc__tab--active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.calc__panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.calc__panel--active { display: block; }

.calc__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
}
.calc__field { display: flex; flex-direction: column; gap: 6px; }
.calc__field label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

.calc__field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unit-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}
.unit-toggle__btn {
  background: var(--bg-soft);
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.unit-toggle__btn--active,
.unit-toggle__btn--active:hover { background: var(--primary); color: #fff; }
.unit-toggle__btn:hover { color: var(--text); }

.height-ft-row { display: flex; gap: 8px; }
.height-ft-row[hidden] { display: none; }
.height-ft-row input { flex: 1; min-width: 0; }
.calc__field input,
.calc__field select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--bg-soft);
  color: var(--text);
}
.calc__field input:focus,
.calc__field select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.calc__submit { justify-content: center; align-self: end; }
.calc__hint { color: var(--text-muted); font-size: 0.82rem; margin-top: 14px; }

.calc__result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
  text-align: center;
}
.calc__result-value { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.calc__result-note { color: var(--text-muted); font-size: 0.88rem; margin-top: 6px; }

.calc__result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.calc__stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.calc__stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.calc__stat-value { font-size: 1.3rem; font-weight: 700; margin-top: 4px; color: var(--text); }

/* ===== FAQ ===== */
.faq { padding: 80px 0; background: var(--bg-soft); }
.faq__list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  background: var(--card);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding: 0 0 18px; font-size: 0.92rem; line-height: 1.6; }

/* ===== Carrito: backdrop + drawer ===== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,36,56,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 300;
}
.cart-backdrop--open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--bg-soft);
  z-index: 301;
  box-shadow: -12px 0 30px rgba(15,36,56,0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer--open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__head h3 { font-size: 1.1rem; }
.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}
.cart-drawer__close:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-empty { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 40px 24px; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-item__info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.cart-item__price { font-size: 0.82rem; color: var(--text-muted); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-item__remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; }
.cart-item__remove:hover { color: #c0392b; }

.cart-drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.cart-drawer__foot .btn { width: 100%; justify-content: center; }
.cart-drawer__foot .btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ===== Búsqueda ===== */
.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,36,56,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 310;
}
.search-backdrop--open { opacity: 1; pointer-events: auto; }

.search-modal {
  position: fixed;
  top: 90px;
  left: 50%;
  width: min(560px, 92vw);
  max-height: 70vh;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15,36,56,0.25);
  z-index: 311;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.search-modal--open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

.search-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.search-modal__head svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}
.search-modal__input::placeholder { color: var(--text-muted); }
.search-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px;
  flex-shrink: 0;
}
.search-modal__close:hover { color: var(--text); }

.search-modal__results { overflow-y: auto; padding: 8px; }
.search-modal__hint { padding: 26px 16px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.search-result:hover { background: var(--bg); }
.search-result__thumb {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-tint));
  border-radius: 10px;
  flex-shrink: 0;
}
.search-result__info { display: flex; flex-direction: column; }
.search-result__name { font-weight: 600; font-size: 0.92rem; }
.search-result__price { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: 0 10px 24px rgba(15,36,56,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 400;
  max-width: 90vw;
  text-align: center;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
  z-index: 200;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float--hidden { opacity: 0; pointer-events: none; transform: scale(0.7); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; min-height: 220px; }
  .hero__emoji { font-size: 6rem; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }
  .header__cta { display: none; }
  .search-btn { margin-left: auto; }

  .nav.nav--open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
}

/* ===================================================================
   Rediseño profesional: íconos, ilustraciones, hero, ruleta, carrito
   =================================================================== */
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Ilustración neutra / foto real de producto */
.card__media .art { height: 132px; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.35)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-hero__media .art { height: 240px; width: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.4)); }
.product-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.search-result__thumb .art { height: 34px; width: auto; }
.search-result__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* Hero */
.badge { display: inline-flex; align-items: center; gap: 8px; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(255,90,60,0.2); }
.hero__visual { min-height: 380px; }
.hero__stage { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 300px; }
.hero__stage .art { width: 150px; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.45)); }
.hero__stage .art--c { width: 205px; z-index: 2; margin: 0 -16px; }
.hero__stage .art--l { transform: rotate(-6deg) translateY(10px); }
.hero__stage .art--r { transform: rotate(6deg) translateY(10px); }
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(35,39,45,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 3;
}
.hero__chip .icon { width: 18px; height: 18px; color: var(--primary); }
.hero__chip--a { top: 10%; left: 2%; }
.hero__chip--b { bottom: 6%; right: 2%; }
@media (max-width: 860px) {
  .hero__stage { height: 220px; }
  .hero__stage .art { width: 100px; }
  .hero__stage .art--c { width: 138px; }
  .hero__visual { min-height: 280px; }
  .hero__chip { font-size: 0.7rem; padding: 7px 10px; }
  .hero__chip--a { top: 2%; left: 0; }
  .hero__chip--b { bottom: 0; right: 0; }
}

/* Resumen de descuento en el carrito */
.cart-summary { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-muted); }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__row--discount { color: #4ade80; font-weight: 600; }
.cart-summary__hint { font-size: 0.8rem; background: var(--bg-tint); border: 1px dashed var(--primary); border-radius: 10px; padding: 8px 10px; color: var(--text); }

/* Redes sociales en el pie */
.footer__social { display: flex; gap: 12px; justify-content: center; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer__social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.footer__social .icon { width: 18px; height: 18px; }

/* Ruleta de descuento */
.wheel-backdrop {
  position: fixed; inset: 0; background: rgba(8,10,13,0.72); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 500;
}
.wheel-backdrop--open { opacity: 1; pointer-events: auto; }
.wheel-modal {
  position: fixed; top: 50%; left: 50%; width: min(860px, 94vw); max-height: 92vh; overflow: auto;
  transform: translate(-50%, -46%) scale(0.97); opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease; z-index: 501;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 22px;
  display: grid; grid-template-columns: 1fr 1.05fr; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.wheel-modal--open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.wheel-modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 4;
}
.wheel-modal__close:hover { border-color: var(--primary); }
.wheel-modal__art {
  display: flex; align-items: center; justify-content: center; padding: 44px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(255,90,60,0.2), transparent 65%), var(--navy-light);
  border-radius: 22px 0 0 22px;
}
.wheel { position: relative; width: min(300px, 70vw); aspect-ratio: 1; }
.wheel__pointer {
  position: absolute; top: -12px; left: 50%; margin-left: -14px; width: 0; height: 0; z-index: 3;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.wheel__disc { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px #2f353d, 0 18px 40px rgba(0,0,0,0.5); will-change: transform; }
.wheel__svg { width: 100%; height: 100%; display: block; }
.wheel-modal__body { padding: 44px 36px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.wheel-modal__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.wheel-modal__body p { color: var(--text-muted); }
#wheelForm { display: flex; flex-direction: column; gap: 12px; }
#wheelForm input[type="email"] {
  padding: 14px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
#wheelForm input[type="email"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.wheel-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }
.wheel-consent input { margin-top: 3px; accent-color: var(--primary); }
.wheel-consent a { color: var(--primary); text-decoration: underline; }
.wheel-error { color: #ff8a7a; font-size: 0.85rem; }
#wheelSpinBtn, #wheelGo { justify-content: center; width: 100%; }
#wheelSpinBtn[disabled] { opacity: 0.6; pointer-events: none; }
.wheel-skip { background: none; border: none; color: var(--text-muted); font-family: var(--font); font-size: 0.85rem; cursor: pointer; text-decoration: underline; align-self: flex-start; }
.wheel-skip:hover { color: var(--text); }
.wheel-fine { font-size: 0.72rem; color: var(--text-muted); opacity: 0.85; }
.wheel-code { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--bg-tint); color: var(--primary); letter-spacing: 0.06em; }
.wheel-pill {
  position: fixed; left: 18px; bottom: 24px; z-index: 210; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 100px; border: none; background: var(--primary); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 0.82rem; cursor: pointer; box-shadow: 0 10px 25px rgba(255,90,60,0.4);
}
.wheel-pill[hidden] { display: none; }
.wheel-pill .icon { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .wheel-modal { grid-template-columns: 1fr; }
  .wheel-modal__art { border-radius: 22px 22px 0 0; padding: 36px 24px 28px; }
  .wheel { width: min(230px, 62vw); }
  .wheel-modal__body { padding: 24px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-modal, .wheel-backdrop { transition: none; }
}

/* Páginas de texto (privacidad) */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--primary); text-decoration: underline; }

/* Conserva el encuadre completo de las fotos de producto. */
.card__media img, .product-hero__media img {object-fit:contain;}

/* Suscripción de bienvenida */
.newsletter { max-width: 650px; }
.newsletter__consent { display:flex; gap:10px; text-align:left; margin-top:16px; font-size:.82rem; line-height:1.5; }
.newsletter__consent input { flex-shrink:0; margin-top:4px; accent-color:var(--primary); }
.newsletter__consent a, .cart-summary__hint a { color:var(--primary); text-decoration:underline; }
.newsletter__terms { font-size:.78rem; margin-top:12px; color:var(--text-muted); }
.newsletter__note { overflow-wrap:anywhere; }
@media(max-width:600px) { .newsletter__row { flex-direction:column; } .newsletter__row button { width:100%; justify-content:center; } }

/* Portada con fotografías reales y composición editorial. */
.hero__visual--catalog { min-height:0; width:100%; }
.hero-collection { width:100%; max-width:520px; border:1px solid #41464d; border-radius:20px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.22); }
.hero-collection__head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:17px 20px; background:#252a30; font-size:.63rem; letter-spacing:.1em; }
.hero-collection__head span:first-child { font-weight:700; color:#fff; }
.hero-collection__head span:last-child { color:#b9c0c8; text-align:right; }
.hero-collection__products { display:grid; grid-template-columns:1.15fr 1fr; grid-template-rows:1fr 1fr; background:#f4f3f1; padding:16px; gap:12px; }
.hero-product { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:12px 10px; border-radius:12px; background:#fff; color:#191d22; transition:box-shadow .2s ease; }
.hero-product:hover { box-shadow:0 0 0 2px var(--primary); }
.hero-product:focus-visible, .hero-collection__footer:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.hero-product--main { grid-row:1 / 3; }
.hero-product img { width:100%; height:130px; object-fit:contain; }
.hero-product--main img { height:265px; }
.hero-product__label { display:flex; flex-direction:column; gap:3px; width:100%; text-align:center; padding-top:8px; }
.hero-product__label strong { font-size:.75rem; font-weight:600; }
.hero-product__label span { font-size:.62rem; color:#5e646d; }
.hero-collection__footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 20px; background:#252a30; color:#e5e8ed; font-size:.72rem; }
.hero-collection__footer span:last-child { color:var(--primary); font-size:1.2rem; line-height:1; }
@media(max-width:860px) {
  .hero__visual--catalog { order:0; margin:0 auto; }
  .hero-collection { max-width:480px; }
}
@media(max-width:420px) {
  .hero-collection__head { padding:14px; font-size:.55rem; gap:10px; }
  .hero-collection__products { padding:10px; gap:8px; }
  .hero-product { padding:10px 6px; }
  .hero-product img { height:105px; }
  .hero-product--main img { height:230px; }
  .hero-product__label strong { font-size:.66rem; }
  .hero-product__label span { font-size:.57rem; }
}

/* Fotos del frente y etiquetas oficiales del producto. */
.product-gallery { min-width:0; }
.product-gallery__main { width:100%; height:380px; padding:20px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; cursor:zoom-in; position:relative; overflow:hidden; }
.product-gallery__main img { width:100%; height:100%; object-fit:contain; }
.product-gallery__main > span { position:absolute; bottom:12px; right:12px; background:#1b1e23; color:#fff; border-radius:20px; font:500 .7rem var(--font); padding:6px 12px; }
.product-gallery__caption { font-size:.82rem; font-weight:600; margin:12px 0; }
.product-gallery__thumbs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.product-gallery__thumb { display:flex; align-items:center; flex-direction:column; gap:7px; min-width:0; padding:9px 6px; background:var(--bg-soft); color:var(--text-muted); border:2px solid var(--border); border-radius:12px; font:500 .65rem var(--font); cursor:pointer; }
.product-gallery__thumb img { width:100%; height:64px; object-fit:contain; background:white; border-radius:6px; }
.product-gallery__thumb[aria-pressed="true"] { border-color:var(--primary); color:var(--text); }
.product-gallery__note { margin:14px 0 6px; color:var(--text-muted); font-size:.75rem; }
.product-gallery__source { color:var(--primary); font-size:.72rem; text-decoration:underline; }
.product-gallery button:focus-visible, .label-viewer button:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.label-viewer { margin:auto; padding:0; width:min(1100px,96vw); height:90dvh; max-width:96vw; max-height:92dvh; border:1px solid var(--border); border-radius:16px; background:var(--bg); color:var(--text); }
.label-viewer::backdrop { background:rgba(8,10,13,.85); }
.label-viewer__inner { height:100%; display:flex; flex-direction:column; }
.label-viewer__toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid var(--border); }
.label-viewer__toolbar h2 { font-size:.9rem; }
.label-viewer__toolbar > div { display:flex; gap:7px; flex-shrink:0; }
.label-viewer__toolbar button { padding:9px 12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-soft); color:var(--text); font:500 .75rem var(--font); cursor:pointer; }
.label-viewer__scroll { flex:1; min-height:0; overflow:auto; background:white; overscroll-behavior:contain; }
.label-viewer__scroll img { display:block; width:auto; max-width:100%; height:auto; margin:auto; background:#fff; }
.label-viewer__scroll img.is-zoomed { max-width:none; margin:0; }
@media(max-width:600px) {
 .product-gallery__main { height:320px; }
 .label-viewer__toolbar { flex-wrap:wrap; padding:12px; }
 .label-viewer__toolbar > div { width:100%; justify-content:space-between; }
 .label-viewer__toolbar button { min-height:44px; }
}
