/* ==========================================================================
   Themes
   Sodalsa and each product line are themes: a set of custom properties
   applied with data-theme="…". The <body> uses the Sodalsa theme and each
   product line section carries its own.
   ========================================================================== */
:root {
  /* Brand constants */
  --sodalsa-gris: #454b4b;
  --sodalsa-beige: #cec3ad;
  --whatsapp: #25d366;

  --font-body: "Barlow", system-ui, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Sodalsa (default): clean, corporate, white + gris/beige */
[data-theme="sodalsa"] {
  --bg: #ffffff;
  --bg-alt: #f5f2ec;
  --surface: #ffffff;
  --text: #111414;
  --muted: #5b6262;
  --line: rgb(0 0 0 / 10%);
  --eyebrow: #7d6d4c;
  --accent-2: var(--sodalsa-beige);
  --logo-text: #000000;

  --font-heading: "Montserrat", system-ui, sans-serif;
  --heading-weight: 700;
  --heading-style: normal;
  --heading-transform: none;
  --heading-tracking: -0.02em;
  --heading-leading: 1.1;

  --btn-bg: var(--sodalsa-gris);
  --btn-text: #ffffff;
  --btn-hover: #2c3131;
  --btn-font: "Montserrat", system-ui, sans-serif;
  --btn-style: normal;
  --btn-transform: none;
  --btn-size: 1rem;
  --btn-radius: 8px;
  --btn-skew: 0deg;
  --radius: 12px;
}

/* HYDROX: aggressive, gym — black/white, condensed italic */
[data-theme="hydrox"] {
  --bg: #000000;
  --bg-alt: #0d0f0f;
  --surface: #151818;
  --text: #ffffff;
  --muted: #a9adad;
  --line: rgb(255 255 255 / 12%);
  --eyebrow: var(--sodalsa-beige);
  --accent-2: var(--sodalsa-beige);
  --logo-text: #ffffff;

  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --heading-weight: 900;
  --heading-style: italic;
  --heading-transform: uppercase;
  --heading-tracking: 0;
  --heading-leading: 0.95;

  --btn-bg: #ffffff;
  --btn-text: #000000;
  --btn-hover: var(--sodalsa-beige);
  --btn-font: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --btn-style: italic;
  --btn-transform: uppercase;
  --btn-size: 1.25rem;
  --btn-radius: 0;
  --btn-skew: -10deg;
  --radius: 6px;
}

[data-theme] {
  background-color: var(--bg);
  color: var(--text);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.4s,
    color 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    transition: none;
  }
}

/* Oversized decorative text (outlined flavor words) must not cause sideways scroll. */
main {
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-style: var(--heading-style);
  text-transform: var(--heading-transform);
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-leading);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--eyebrow);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--eyebrow);
  margin-bottom: 0.75rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

/* Sodalsa logo pieces (inline SVG symbols) */
.logo-gris {
  fill: var(--sodalsa-gris);
}

.logo-beige {
  fill: var(--sodalsa-beige);
}

.logo-text {
  fill: var(--logo-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--btn-font);
  font-style: var(--btn-style);
  font-weight: 700;
  font-size: var(--btn-size);
  letter-spacing: 0.03em;
  text-transform: var(--btn-transform);
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border: 2px solid var(--btn-bg);
  border-radius: var(--btn-radius);
  transform: skewX(var(--btn-skew));
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn > span {
  display: inline-block;
  transform: skewX(calc(var(--btn-skew) * -1));
}

.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: currentColor;
}

.btn-ghost:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-small {
  padding: 0.4rem 1.1rem;
}

.btn-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #000000;
}

.btn-whatsapp:hover {
  background: #1eb257;
  border-color: #1eb257;
}

.btn-handle {
  text-transform: none;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  vertical-align: -0.15em;
  margin-right: 0.5em;
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px;
  height: 36px;
}

.logo-word {
  width: 120px;
  height: 19px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--eyebrow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  content: "";
}

.nav-toggle-bar {
  top: 50%;
}

.nav-toggle-bar::before {
  left: 0;
  right: 0;
  top: -7px;
}

.nav-toggle-bar::after {
  left: 0;
  right: 0;
  top: 7px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .site-nav li a:not(.btn) {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    display: block;
    margin-top: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Hero (Sodalsa)
   ========================================================================== */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-copy {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Mission & vision
   ========================================================================== */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.mv-card {
  background: var(--surface);
  border-top: 4px solid var(--sodalsa-beige);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.mv-card h3 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--eyebrow);
  margin-bottom: 1rem;
}

.mv-card p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  margin: 0;
}

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

/* ==========================================================================
   Product lines
   ========================================================================== */
.products-intro {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}

.line {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

/* HYDROX: the logo opens the line, centered above the product banners */
.hydrox-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.hydrox-logo img:first-child {
  width: clamp(80px, 12vw, 120px);
}

.hydrox-logo img:last-child {
  width: clamp(180px, 24vw, 260px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.stat-grid li {
  padding: 1rem 0.5rem 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Units keep their real case (µg, mg, mL, Bs.) inside uppercase labels:
   an uppercased "µg" would read as "MG". */
.stat-grid strong,
.buy-total strong,
.unit {
  text-transform: none;
}

.stat-grid li:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.stat-grid strong {
  display: block;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.marquee {
  background: #ffffff;
  color: #000000;
  overflow: hidden;
  margin: 3rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee span {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
  padding: 0.35rem 1.5rem;
  white-space: nowrap;
}

.marquee span::after {
  content: "///";
  margin-left: 3rem;
  color: var(--sodalsa-gris);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.product-type {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--flavor);
  margin-bottom: 0.5rem;
  transition: color 0.6s;
}

/* Flavor showcase. Without JavaScript the bottles sit side by side; main.js
   adds .is-enhanced to stack them and swap one at a time. */
.flavor-showcase {
  --dir: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.flavor-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
}

.flavor-stage::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  z-index: -2;
  border-radius: 50%;
  background: var(--flavor);
  filter: blur(70px);
  opacity: 0.45;
  transition: background-color 0.6s;
}

.flavor-bottle {
  width: 30%;
}

.flavor-word {
  display: none;
}

.is-enhanced .flavor-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
}

.is-enhanced .flavor-word {
  display: block;
  grid-area: 1 / 1;
  z-index: -1;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--flavor) 75%, #ffffff);
  opacity: 0.55;
}

.is-enhanced .flavor-bottle {
  grid-area: 1 / 1;
  width: 40%;
  opacity: 0;
  transform: translateX(calc(60% * var(--dir))) rotate(calc(18deg * var(--dir)))
    scale(0.85);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s;
  filter: drop-shadow(
    0 30px 40px color-mix(in srgb, var(--flavor) 40%, transparent)
  );
}

.is-enhanced .flavor-bottle.is-active {
  opacity: 1;
  transform: none;
}

.is-enhanced .flavor-bottle.is-leaving {
  opacity: 0;
  transform: translateX(calc(-60% * var(--dir)))
    rotate(calc(-18deg * var(--dir))) scale(0.85);
}

.flavor-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.flavor-title span {
  color: var(--accent-2);
}

.flavor-current {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.flavor-current strong {
  display: block;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--flavor);
  transition: color 0.6s;
}

.flavor-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.flavor-picker button {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--line);
  padding: 0.5rem 1rem;
  transform: skewX(var(--btn-skew));
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.flavor-picker button > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: skewX(calc(var(--btn-skew) * -1));
}

.flavor-picker button > span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch);
}

.flavor-picker button:hover {
  border-color: var(--swatch);
}

.flavor-picker button[aria-pressed="true"] {
  border-color: var(--swatch);
  background: color-mix(in srgb, var(--swatch) 30%, transparent);
}

.pop {
  animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) skewX(-8deg);
  }
}

@media (max-width: 760px) {
  .flavor-showcase {
    grid-template-columns: 1fr;
  }

  .is-enhanced .flavor-stage {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .flavor-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .flavor-picker button {
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
  }

  .flavor-picker button > span {
    gap: 0.35rem;
  }
}

/* Product bands: each HYDROX product sits on its own band, introduced by a
   banner with its name, so the intro, the protein and the collagen read as
   separate chapters. */
.product-band {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.band-protein {
  background:
    radial-gradient(
      ellipse 60% 70% at 25% 50%,
      color-mix(in srgb, var(--flavor) 26%, transparent),
      transparent 70%
    ),
    linear-gradient(160deg, #15121c 0%, #08080b 100%);
}

.band-collagen {
  background:
    radial-gradient(
      ellipse 60% 70% at 75% 50%,
      color-mix(in srgb, var(--flavor) 24%, transparent),
      transparent 70%
    ),
    linear-gradient(200deg, #141a3d 0%, #070818 100%);
}

/* Banners sit flush against the bands they introduce. */
.marquee:has(+ .product-band) {
  margin-bottom: 0;
}

.product-band + .marquee {
  margin-top: 0;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

/* Colágeno: its own showcase, mirroring the protein one */
.collagen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.flavor-showcase .benefits {
  margin-bottom: 0.5rem;
}

.collagen-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  order: 2;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.collagen-stage::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  z-index: -2;
  border-radius: 50%;
  background: var(--flavor);
  filter: blur(70px);
  opacity: 0.45;
}

.collagen-word {
  grid-area: 1 / 1;
  z-index: -1;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--flavor) 75%, #ffffff);
  opacity: 0.55;
}

.collagen-stage img {
  grid-area: 1 / 1;
  width: 40%;
  filter: drop-shadow(
    0 30px 40px color-mix(in srgb, var(--flavor) 40%, transparent)
  );
}

.flavor-showcase .flavor-title span {
  color: var(--flavor);
  transition: color 0.6s;
}

.collagen .flavor-title span {
  color: var(--flavor);
}

.feature-lead {
  color: var(--muted);
  max-width: 48ch;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefits li {
  padding: 0.3rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--flavor) 60%, transparent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

  .collagen-stage {
    order: 0;
    max-width: 360px;
  }
}

/* ==========================================================================
   Direct purchase (packs from the 2026 catalog)
   ========================================================================== */
.buy {
  border-top: 1px solid var(--line);
}

.buy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.buy-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40ch;
}

.buy-bottles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 1.5rem;
}

.buy-bottles img {
  width: 30%;
  margin-inline: -3%;
}

.buy-bottles img:nth-child(2) {
  position: relative;
  z-index: 1;
  width: 36%;
}

/* Step labels above the product and pack choices */
.buy-step {
  margin-bottom: 0.75rem;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

/* Product switch: two cards; shows only the chosen product's packs and copy. */
.buy-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.product-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--flavor) 8%, var(--surface));
  border: 2px solid color-mix(in srgb, var(--flavor) 45%, transparent);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.product-option:hover {
  border-color: var(--flavor);
  transform: translateY(-2px);
}

.product-option img {
  grid-row: span 2;
  width: auto;
  height: 72px;
}

.product-option-name {
  align-self: end;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
}

.product-option-price {
  align-self: start;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-option:has(input:checked) {
  border-color: var(--flavor);
  background: color-mix(in srgb, var(--flavor) 22%, var(--surface));
  box-shadow:
    0 0 0 1px var(--flavor),
    0 10px 30px color-mix(in srgb, var(--flavor) 25%, transparent);
}

.product-option:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--flavor);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-option:has(input:focus-visible) {
  outline: 3px solid var(--eyebrow);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .product-option {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0.9rem 0.6rem;
  }

  .product-option img {
    grid-row: auto;
    height: 64px;
    margin-bottom: 0.5rem;
  }

  .product-option-name {
    font-size: 1.05rem;
  }
}

.buy:has(#buy-colageno:checked) [data-product="proteina"],
.buy:has(#buy-proteina:checked) [data-product="colageno"] {
  display: none;
}

.buy-bottles img:only-child {
  width: 34%;
  margin: 0;
}

.packs {
  display: grid;
  gap: 0.75rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.pack {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.pack:hover {
  border-color: rgb(255 255 255 / 35%);
}

.pack:has(input:checked) {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 10%, var(--surface));
}

.pack input {
  grid-row: span 2;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent-2);
}

.pack-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.pack:not(:has(.pack-detail)) .pack-name {
  grid-row: 1 / span 2;
}

.pack-detail {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
}

.pack-price {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.75rem;
  text-align: right;
  white-space: nowrap;
}

.pack-old {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 1.35rem;
  color: #ffffff;
  text-decoration: line-through;
  text-decoration-color: #ff3b3b;
  text-decoration-thickness: 2px;
}

.pack-note {
  grid-column: 2 / -1;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* The monthly pack is the one to push: beige frame, glow and a larger
   name and price, even before it is selected. */
.pack-featured {
  padding-block: 1.5rem;
  border-color: var(--accent-2);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-2) 20%, var(--surface)) 0%,
    var(--surface) 70%
  );
  box-shadow:
    0 0 0 1px var(--accent-2),
    0 14px 40px rgb(206 195 173 / 18%);
}

.pack-featured:hover {
  border-color: var(--accent-2);
}

.pack-featured .pack-name {
  font-size: 1.9rem;
  color: var(--accent-2);
}

.pack-featured .pack-price {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-2);
}

@media (max-width: 520px) {
  .pack-featured .pack-name {
    font-size: 1.5rem;
  }

  .pack-featured .pack-price {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pack-featured {
    animation: pack-glow 2.8s ease-in-out infinite;
  }
}

@keyframes pack-glow {
  50% {
    box-shadow:
      0 0 0 1px var(--accent-2),
      0 14px 55px rgb(206 195 173 / 34%);
  }
}

.buy-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.buy-total {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.buy-total strong {
  margin-left: 0.4rem;
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0;
  color: var(--text);
}

.buy-fine {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .buy-inner {
    grid-template-columns: 1fr;
  }

  .buy-bottles {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Points of sale
   ========================================================================== */
.pdv-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pdv-head .section-title {
  margin-bottom: 0.75rem;
}

.pdv-lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

.pdv-search {
  flex: 0 1 340px;
}

.pdv-search input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
}

.pdv-search input:focus {
  outline: 2px solid var(--sodalsa-gris);
  outline-offset: 1px;
}

.pdv-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.pdv-layout:has(.pdv-map[hidden]) {
  grid-template-columns: 1fr;
}

.pdv-map {
  height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef0ee; /* light like the street map while it loads */
  z-index: 0; /* keep the map's layers under the sticky header */
}

.pdv-list {
  --stagger: 25ms;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdv-map:not([hidden]) + .pdv-list {
  grid-template-columns: 1fr;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.pdv-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.6rem;
  align-items: center;
  height: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
}

.pdv-list a:hover {
  border-color: var(--sodalsa-gris);
}

.pdv-list .icon {
  grid-row: span 2;
  margin: 0;
  color: var(--sodalsa-beige);
  width: 1.3em;
  height: 1.3em;
}

.pdv-name {
  font-weight: 600;
  line-height: 1.3;
}

.pdv-meta {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}

/* Map pin: a teardrop in Sodalsa gris with a beige center */
.pdv-pin {
  width: 36px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.pdv-pin span {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  background: var(--sodalsa-gris);
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgb(0 0 0 / 30%);
}

.pdv-pin span::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--sodalsa-beige);
}

/* "Mapa | Satélite" switch on the map */
.map-style-toggle {
  display: flex;
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}

.map-style-toggle button {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #111414;
  background: transparent;
  border: 0;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

/* Beats MapLibre's own button hover rule, which loads after this file. */
.maplibregl-ctrl.map-style-toggle button[aria-pressed="true"]:not(:disabled) {
  background: var(--sodalsa-gris);
  color: #ffffff;
}

.pdv-popup {
  display: grid;
  gap: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.pdv-popup strong {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: #111414;
}

.pdv-popup strong:first-child {
  margin-top: 0;
}

.pdv-popup a {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--sodalsa-gris);
}

.pdv-empty {
  margin-top: 1.5rem;
  color: var(--muted);
}

.pdv-empty a {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 760px) {
  .pdv-layout {
    grid-template-columns: 1fr;
  }

  .pdv-map {
    height: 360px;
  }

  .pdv-map:not([hidden]) + .pdv-list {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .pdv-search {
    flex-basis: 100%;
  }

  .pdv-list,
  .pdv-map:not([hidden]) + .pdv-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .pdv-list a {
    padding: 0.65rem 0.7rem;
    column-gap: 0.45rem;
  }

  .pdv-name {
    font-size: 0.9rem;
  }

  .pdv-meta {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.cta {
  text-align: center;
}

.cta .narrow {
  margin-inline: auto;
}

.cta p {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-phone {
  margin-top: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #000000;
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float .icon {
  width: 28px;
  height: 28px;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 3rem 0 6rem; /* room for the floating WhatsApp button */
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  width: 120px;
  aspect-ratio: 1079 / 931;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
}

.social-links a:hover {
  border-color: var(--eyebrow);
  color: var(--eyebrow);
}

.social-links .icon {
  margin: 0;
}

.footer-lines {
  font-weight: 600;
  color: var(--text);
}

.credit {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
}

.credit a {
  font-weight: 600;
  color: var(--text);
}

.disclaimer {
  font-size: 0.75rem;
  max-width: 70ch;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .disclaimer {
    margin-inline: auto;
  }
}

/* ==========================================================================
   Motion
   Scroll reveals are switched on by main.js (.reveal-on), so content is
   never hidden when JavaScript is off. Everything stays still for people
   who ask for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.3s;
  }

  .reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity 0.7s ease,
      transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i, 0) * var(--stagger, 120ms));
  }

  .reveal-on [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}
