/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;   /* page background */
  --bg-2:      #ffffff;   /* page background */
  --paper:     #ffffff;
  --ink:       #1c1f16;
  --ink-soft:  #33372a;
  --ink-mute:  #6b6a5d;
  --accent:    #3f6b35;   /* zenvita moss green (from logo) */
  --accent-2:  #2f5227;   /* deeper green */
  --line:      rgba(28,31,22,0.12);
  --cream:     #f5f1e8;

  --serif: "Bricolage Grotesque", -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.kicker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.section-title em { font-style: normal; }
.section-sub {
  color: var(--ink-mute);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream);
  box-shadow: 0 8px 24px -8px rgba(63,107,53,0.55);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.card {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* =============================================================
   6. Sections — Header / Nav
   ============================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .masthead { background: var(--bg); }
}
.masthead.is-scrolled { box-shadow: 0 8px 24px -16px rgba(28,31,22,0.25); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-logo img { height: 34px; width: auto; }
.masthead nav {
  display: none;
  gap: 1.8rem;
  font-size: .92rem;
  font-weight: 500;
}
.masthead nav a { position: relative; padding-block: .3rem; }
.masthead nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.masthead nav a:hover::after { right: 0; }
@media (min-width: 720px) { .masthead nav { display: flex; align-items: center; } }

/* =============================================================
   6. Sections — Hero
   ============================================================= */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem) 1.25rem;
  overflow: visible;
  border-bottom: 1px solid var(--line);
}
.hero-halo {
  position: absolute;
  inset: -20% -10% -10% -10%;
  background: radial-gradient(45% 40% at 30% 20%, rgba(63,107,53,0.16), transparent 70%),
              radial-gradient(35% 35% at 85% 30%, rgba(184,137,79,0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-inner > .kicker {
  text-align: center;
}
.hero-title {
  margin-top: 1rem;
  font-size: clamp(3rem, 15vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-align: center;
  text-transform: uppercase;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-slogan {
  margin-top: .3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 8.3vw, 3.2rem);
  color: var(--accent-2);
  text-align: center;
  white-space: nowrap;
}
.hero-carousel {
  position: relative;
  margin-top: 1.8rem;
  width: 100%;
  aspect-ratio: 940 / 788;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(28,31,22,0.28);
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease-soft);
}
.hero-carousel-slide.is-active { opacity: 1; }
.hero-carousel .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .9rem;
  margin-top: 0;
  z-index: 2;
}
.hero-carousel .carousel-dots button {
  background: rgba(255,255,255,0.55);
}
.hero-carousel .carousel-dots button.is-active {
  background: var(--cream);
  transform: scale(1.25);
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  text-align: center;
  margin-inline: auto;
}
.inline-logo-invima {
  display: inline-block;
  height: 1.3em;
  width: auto;
  vertical-align: middle;
  margin: 0 .15em;
  transform: translateY(-0.05em);
}
/* =============================================================
   6. Sections — Ambassadors
   ============================================================= */
.ambassadors {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.ambassadors-head { max-width: 780px; margin-inline: auto; }
.ambassadors-head .hero-title { margin-top: 0; font-size: clamp(2.8rem, 13vw, 5.4rem); }
.ambassadors-head .hero-slogan { font-size: clamp(1.05rem, 5.4vw, 2.3rem); white-space: nowrap; }
.ambassadors-logos {
  margin-top: 2.4rem;
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) { .ambassadors-logos { grid-template-columns: repeat(2, 1fr); } }
.ambassador-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 2rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ambassador-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(28,31,22,0.18);
}
.ambassador-card img { max-height: 90px; width: auto; }
.ambassadors-body {
  margin: 1.8rem auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 1.05rem;
}

/* =============================================================
   6. Sections — Nutrition
   ============================================================= */
.nutrition {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nutrition-head { max-width: 780px; margin-inline: auto; text-align: center; }
.nutrition-head .hero-title { margin-top: 0; font-size: clamp(2rem, 10vw, 4.2rem); }
.nutrition-head .section-sub { margin-top: 1rem; }
.food-orbit {
  --size: clamp(260px, 74vw, 420px);
  --orbit-radius: calc(var(--size) * 0.3);
  width: var(--size);
  height: var(--size);
  max-width: 100%;
  margin: 1.25rem auto 0;
  position: relative;
}
.food-tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.food-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbit-spin 28s linear infinite;
  animation-delay: calc(var(--i) * -3.5s);
}
.food-tag-inner {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(28,31,22,0.18);
}
@keyframes orbit-spin {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .food-tag {
    animation: none;
    transform: rotate(calc(var(--i) * 45deg)) translateX(var(--orbit-radius)) rotate(calc(var(--i) * -45deg));
  }
}

/* =============================================================
   6. Sections — Nutrition dropdown table
   ============================================================= */
.nutri-dropdown { margin-top: 1.25rem; }
.nutri-dropdown .faq-question { padding-inline: 1.4rem; }
.nutri-question span:first-child { color: var(--accent); font-weight: 700; }
.nutri-dropdown .faq-answer { padding-inline: 1.4rem; }
.nutri-table-wrap {
  overflow-x: auto;
  padding-bottom: 1.4rem;
  -webkit-overflow-scrolling: touch;
}
.nutri-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.nutri-table th {
  text-align: left;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-mute);
  padding: 0 1rem .7rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.nutri-table td {
  padding: .8rem 1rem .8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.nutri-table tr:last-child td { border-bottom: 0; }
.nutri-table td:first-child { font-weight: 600; white-space: nowrap; padding-right: .8rem; }
.nutri-table td:last-child { color: var(--ink-mute); }
@media (max-width: 480px) {
  .nutri-table { font-size: .85rem; }
  .nutri-table td:first-child { white-space: normal; }
}

/* =============================================================
   6. Sections — Manifesto
   ============================================================= */
.manifesto {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.manifesto-grid {
  display: grid;
  gap: 1.5rem;
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.manifesto-title {
  font-size: clamp(1.625rem, 3.1vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-align: center;
  margin-inline: auto;
}
.manifesto-title em { color: var(--accent); font-style: normal; }
.manifesto p {
  font-size: clamp(1.225rem, 2.1vw, 1.525rem);
  color: var(--ink-soft);
  max-width: 46ch;
  font-family: var(--sans);
  font-weight: 400;
}

/* =============================================================
   6. Sections — Products
   ============================================================= */
.products {
  padding-block: 1.25rem clamp(4rem, 8vw, 6rem);
}
.products-head {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.product-card {
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(28,31,22,0.18);
}

/* Carousel — one product at a time, native swipe */
.products-carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: .4rem calc(50% - 150px) 1.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
[data-carousel-item] {
  flex: 0 0 min(84vw, 300px);
  width: min(84vw, 300px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .4rem;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.carousel-dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
.carousel-arrows {
  display: none;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 720px) {
  .carousel-arrows { display: flex; }
  [data-carousel-item] { flex-basis: min(60vw, 320px); width: min(60vw, 320px); }
}
@media (min-width: 960px) {
  .carousel-track { padding-inline: calc(50% - 160px); }
  [data-carousel-item] { flex-basis: 320px; width: 320px; }
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.product-media img {
  max-height: 100%;
  width: auto;
  margin-inline: auto;
  transition: transform .6s var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: .8rem;
  left: .8rem;
  background: var(--accent);
  color: var(--cream);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .6rem;
  border-radius: 999px;
}
.product-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.product-brand {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product-price {
  margin-top: .7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.price-tier {
  text-align: center;
  padding: .5rem .3rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.price-tier--best {
  border-color: var(--accent);
  background: rgba(63,107,53,0.06);
}
.price-tier.is-selected {
  border-color: var(--accent);
  background: rgba(63,107,53,0.1);
  box-shadow: 0 0 0 2px rgba(63,107,53,0.2) inset;
}
.price-bundle-media { margin-bottom: 1rem; text-align: center; }
.price-bundle-media[hidden] { display: none; }
.price-bundle-media img { max-width: 100%; border-radius: 12px; }
.price-bundle-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-mute);
  font-size: .85rem;
  font-weight: 600;
}
.price-bundle-gift {
  margin-top: .6rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent-2);
  text-align: center;
}
.price-tier-qty {
  display: block;
  font-size: .68rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-tier-amount {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-top: .15rem;
}
.price-tier--best .price-tier-amount { color: var(--accent); }
.product-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .88rem;
  color: var(--ink-mute);
  flex: 1;
}
.product-benefits li { line-height: 1.4; }
.product-benefits li.is-highlight {
  color: var(--accent-2);
  font-size: .82rem;
  letter-spacing: -0.01em;
}
.product-benefits li.is-highlight strong { font-weight: 800; }
.product-meta {
  font-size: .78rem;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line);
  padding-top: .6rem;
  margin-top: .3rem;
}
.product-cta {
  margin-top: .6rem;
  align-self: flex-start;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.product-cta::after { content: "→"; transition: transform .3s var(--ease-out); }
.product-card:hover .product-cta::after { transform: translateX(4px); }

/* =============================================================
   6. Sections — Usage
   ============================================================= */
.usage {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.usage-carousel { position: relative; margin-top: 2rem; }
.usage-card {
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: left;
}
.usage-icon { font-size: 2.4rem; line-height: 1; }
.usage-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-top: .2rem;
}
.usage-desc { color: var(--ink-mute); font-size: .92rem; }

/* =============================================================
   6. Sections — FAQ
   ============================================================= */
.faq {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-list {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: 1.3rem;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-question[aria-expanded="true"] .faq-icon::before { transform: translate(-50%, -50%) rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq-answer p {
  padding-bottom: 1.3rem;
  padding-right: 2.4rem;
  color: var(--ink-mute);
  font-size: .95rem;
  max-width: 60ch;
}
.faq-answer ul {
  list-style: disc;
  padding-left: 1.2rem;
  padding-right: 2.4rem;
  padding-bottom: 1.3rem;
  color: var(--ink-mute);
  font-size: .95rem;
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.faq-answer p + ul,
.faq-answer ul + p {
  padding-top: 0;
}

/* =============================================================
   6. Sections — Contact
   ============================================================= */
.contact {
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.contact-inner { max-width: 640px; margin-inline: auto; }
.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 6vw, 3rem);
}
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  transition: transform .35s var(--ease-out);
}
.social-link:hover { transform: translateY(-4px); }
.social-link img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
}
.social-link span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mute);
}

/* =============================================================
   6. Footer
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  color: var(--ink-mute);
  font-size: .85rem;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.footer-brand img { height: 22px; }

/* =============================================================
   6. Sections — Account modal
   ============================================================= */
.masthead-actions { display: flex; align-items: center; gap: .6rem; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,31,22,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.75rem;
}
.modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-mute);
  border-radius: 50%;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.modal-close:hover { background: var(--bg-2); color: var(--ink); }
.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: .3rem;
}
.modal-sub {
  color: var(--ink-mute);
  font-size: .92rem;
  margin-top: .4rem;
}
form[data-register-form] { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; font-weight: 600; }
.form-field input {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 400;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s var(--ease-out);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-field textarea {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 400;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  transition: border-color .2s var(--ease-out);
}
.password-wrap { position: relative; display: flex; }
.password-wrap input { width: 100%; padding-right: 2.6rem; }
.password-toggle {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  opacity: .55;
  border-radius: 6px;
  transition: opacity .2s var(--ease-out);
}
.password-toggle:hover { opacity: 1; }
.password-toggle.is-visible { opacity: 1; }
.form-checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .82rem; color: var(--ink-mute); }
.form-checkbox input { margin-top: .2rem; accent-color: var(--accent); flex-shrink: 0; }
.form-checkbox a { color: var(--accent); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-message { font-size: .85rem; min-height: 1.2em; }
.form-message.is-error { color: #b3261e; }
.form-message.is-success { color: var(--accent-2); }
.form-hint { font-size: .78rem; color: var(--ink-mute); margin-top: -.3rem; }
.form-submit { width: 100%; justify-content: center; }
.form-submit[disabled] { opacity: .6; cursor: not-allowed; }
.form-resend {
  width: 100%;
  text-align: center;
  margin-top: .7rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}
.form-resend:hover { text-decoration: underline; }
.form-resend[disabled] { opacity: .55; cursor: not-allowed; text-decoration: none; }
.modal-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-mute);
}
.link-btn {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}
.user-greeting {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .88rem;
  font-weight: 600;
}
.user-greeting[hidden] { display: none; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Product detail pages
   ============================================================= */
.product-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5rem);
  overflow: visible;
  border-bottom: 1px solid var(--line);
}
.product-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.product-hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.product-hero-media img { max-height: 100%; width: auto; margin-inline: auto; }
.product-hero-copy .hero-slogan { text-align: left; white-space: normal; }
.product-hero-copy .section-sub { margin-top: 1rem; }
.product-hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
@media (min-width: 900px) {
  .product-hero-inner { grid-template-columns: 1fr 1.2fr; }
  .product-hero-copy .hero-title, .product-hero-copy .kicker, .product-hero-copy .hero-slogan { text-align: left; }
}

.detail-section { padding-block: clamp(3rem, 7vw, 5rem); }
.detail-section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.detail-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3rem); }
.detail-head .kicker { display: block; }

.product-price-detail { max-width: 480px; margin-inline: auto; padding: 1.6rem; }
.promo-highlight { text-align: center; margin-top: 1rem; color: var(--accent-2); font-size: .95rem; }

.placeholder-card {
  max-width: 480px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  text-align: center;
}
.placeholder-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.placeholder-text { color: var(--ink-mute); font-size: .95rem; }

.compare-table { max-width: 760px; margin-inline: auto; padding: 0; overflow: hidden; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "label label" "us generic";
  gap: .3rem .5rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-row--head {
  background: var(--bg-2);
  font-weight: 700;
  font-size: .8rem;
  grid-template-areas: "us generic";
}
.compare-label {
  grid-area: label;
  display: block;
  font-weight: 700;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.compare-col { grid-area: us; color: var(--ink-mute); }
.compare-col--us { color: var(--accent-2); font-weight: 600; }
.compare-col:last-child { grid-area: generic; }
@media (min-width: 640px) {
  .compare-row {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "label us generic";
    align-items: center;
  }
  .compare-row--head { grid-template-areas: ". us generic"; }
}

.compare-table--warning .compare-col--us { color: #1f7a34; font-weight: 700; }
.compare-table--warning .compare-col:not(.compare-col--us) { color: #c0392b; font-weight: 600; }

.compare-photos { display: flex; justify-content: center; gap: 1.75rem; margin-bottom: 1.2rem; }
.compare-photo { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; color: var(--ink-mute); text-align: center; }
.compare-photo img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: var(--bg-2); padding: .6rem; }
.compare-photo--us img { background: var(--paper); border: 1.5px solid var(--accent); }
.compare-photo--us span { color: var(--accent-2); }

/* Reviews / Testimonios */
.review-actions { text-align: center; margin-bottom: 2rem; }
.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.review-summary .review-stars { color: #f2b705; font-size: 1.3rem; letter-spacing: .1em; }
.review-summary-count { color: var(--ink-mute); font-weight: 500; }
.review-summary .review-empty { width: 100%; text-align: center; color: var(--ink-mute); font-size: .9rem; font-weight: 400; }
.reviews-carousel { position: relative; margin-top: 1rem; }
.review-card { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; text-align: left; }
.review-stars { color: #f2b705; font-size: 1rem; letter-spacing: .12em; }
.review-msg { color: var(--ink); font-size: .92rem; line-height: 1.5; }
.review-photo { width: 100%; max-width: 220px; border-radius: 12px; margin-top: .2rem; display: block; }
.review-author { font-size: .78rem; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }

.modal--wide { max-width: 480px; }
.star-rating { display: flex; gap: .3rem; }
.star-rating button {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--line);
  transition: color .15s var(--ease-out), transform .15s var(--ease-out);
}
.star-rating button.is-active { color: #f2b705; }
.star-rating button:hover { transform: scale(1.12); }

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  transition: border-color .2s var(--ease-out);
  text-align: center;
}
.file-drop:hover { border-color: var(--accent); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-preview { display: none; max-width: 140px; border-radius: 10px; margin-top: .3rem; }
.file-preview.is-visible { display: block; }

/* Order / checkout modal */
.order-modal-kicker { text-align: center; }
.order-modal-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
}
.order-offers { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.6rem; }
.order-offer {
  position: relative;
  display: block;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.order-offer input[type="radio"] { position: absolute; width: 0; height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.order-offer.is-selected { border-color: var(--accent); background: rgba(63,107,53,0.06); }
.order-offer--best { border-color: var(--accent); }
.order-offer-ribbon {
  position: absolute;
  top: -.7rem;
  left: 1rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--ambar, #f4a11e);
  color: #1c1917;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.order-offer-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.order-offer-qty { font-weight: 700; font-size: .92rem; }
.order-offer-body { display: flex; align-items: center; gap: 1rem; }
.order-offer-info { display: flex; flex-direction: column; gap: .5rem; min-width: 0; flex: 1; }
.order-offer-price { font-weight: 800; font-size: 1.15rem; color: var(--accent); white-space: nowrap; }
.order-offer-price s { color: #d63b3b; font-weight: 400; font-size: .78rem; margin-right: .3rem; }
.order-offer-photo { width: 100px; height: 100px; object-fit: contain; border-radius: 10px; background: var(--bg-2); padding: .3rem; flex-shrink: 0; }
.order-offer-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--line);
  background: none;
  font-size: 1.4rem;
  color: var(--ink-mute);
}
.order-offer-badge {
  padding: .18rem .6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.order-offer-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.order-offer-pill {
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.order-offer-pill--ship { background: rgba(63,107,53,0.12); color: var(--accent-2); }
.order-offer-pill--unit { background: var(--bg-2); color: var(--ink-mute); }

.order-summary { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-2); font-size: .9rem; }
.order-summary-row { display: flex; justify-content: space-between; padding: .3rem 0; }
.order-summary-free { color: var(--accent-2); font-weight: 700; }
.order-summary-total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; font-weight: 700; font-size: 1.05rem; }

.order-cta-label {
  text-align: center;
  margin: 1.3rem 0 1rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.form-hint-banner {
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  padding: .6rem .8rem;
  border-radius: 10px;
  margin: .2rem 0;
}
.form-hint-banner--success { background: rgba(63,107,53,0.1); color: var(--accent-2); }
.form-hint-banner--warning { background: rgba(179,38,30,0.1); color: #b3261e; }

.form-field select {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.form-field select:disabled { opacity: .55; cursor: not-allowed; }

.order-submit-btn {
  white-space: normal;
  flex-direction: column;
  gap: .2rem;
  line-height: 1.3;
  text-align: center;
}
.order-submit-btn strong { font-size: 1.08rem; }

@keyframes priceBundlePop {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.price-bundle-media.is-animating { animation: priceBundlePop .45s var(--ease-out); }

.btn-cta-buy {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px -6px rgba(63,107,53,0.6), 0 0 0 3px rgba(63,107,53,0.18);
  animation: ctaBounce 2.6s ease-in-out infinite;
}
.btn-cta-buy:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); animation-play-state: paused; transform: translateY(-2px); }
@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.sticky-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px -14px rgba(0,0,0,0.2);
}
.sticky-buy-bar[hidden] { display: none; }
.sticky-buy-bar .btn { width: 100%; justify-content: center; margin: 0; }
@media (min-width: 761px) {
  .sticky-buy-bar { display: none !important; }
}

/* =============================================================
   9. Responsive
   ============================================================= */
/* =============================================================
   10. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-cta-buy { animation: none; }
}

/* =========================================================
   Boton flotante de WhatsApp
   Se coloca por encima de la barra fija de compra cuando esa
   barra esta visible, para no taparla. El desplazamiento lo
   calcula initWhatsAppFloat() en --wa-offset.
   ========================================================= */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + var(--wa-offset, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  background: #25D366;
  color: #04241b;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(4, 36, 27, .45);
  /* Sin transicion en bottom a proposito: reposicionarse debe ser instantaneo
     cuando aparece la barra de compra, no una animacion que puede quedarse a
     medias si el navegador no esta pintando fotogramas. */
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.wa-float svg { width: 24px; height: 24px; flex: 0 0 24px; }
.wa-float:hover,
.wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(4, 36, 27, .55); }
.wa-float:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* En movil solo el icono, para no comerse la pantalla */
@media (max-width: 560px) {
  .wa-float { padding: .9rem; gap: 0; }
  .wa-float .wa-float-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* WhatsApp dentro de la rejilla de redes del contacto */
.social-link--wa svg { width: 56px; height: 56px; display: block; margin-inline: auto; }

/* =========================================================
   Aviso bajo el campo de celular
   Confirma el numero formateado o dice exactamente que falta,
   sin esperar al viaje al servidor.
   ========================================================= */
.form-cel-eco {
  margin: .35rem 0 0;
  font-family: var(--sans);
  font-size: .82rem;
  line-height: 1.35;
  min-height: 1.1em;
  color: var(--ink-mute);
}
.form-cel-eco.is-ok  { color: var(--accent-2); font-weight: 600; }
.form-cel-eco.is-bad { color: #a3341f; font-weight: 600; }

.form-field input.is-invalid,
input.is-invalid {
  border-color: #a3341f;
  box-shadow: 0 0 0 3px rgba(163, 52, 31, .13);
}
