/* ============================================================
   Grupodrops · Estilo "verde azulado"
   Colores y tipografías se cambian en :root
   ============================================================ */

:root {
  /* Paleta */
  --teal-900: #0b3f3a;   /* pie de página, textos sobre menta */
  --teal-700: #0f5a53;   /* botones y portada */
  --teal-600: #1a6e66;   /* hover de botones */
  --teal-400: #4f9d93;   /* decorativo */
  --mint-200: #c9e4df;
  --mint-100: #e4f2ef;   /* fondos de foto y círculos */
  --mint-50: #f3f9f8;    /* fondo general */
  --white: #ffffff;
  --ink: #10302b;
  --ink-soft: #4e6763;
  --line: #d3e4e0;
  --on-dark: #ffffff;
  --on-dark-soft: #cfe6e2;

  /* Tipografía */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", sans-serif;

  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.75rem, 1.8rem + 4.2vw, 4.75rem);

  /* Espaciado (escala de 4 px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 78rem;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 4.5rem;
  --shadow: 0 1px 2px rgb(11 63 58 / 0.06), 0 8px 24px rgb(11 63 58 / 0.08);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  background: var(--mint-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--teal-700);
  color: var(--on-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding-block: var(--section);
}

/* Título de sección centrado entre líneas, como "— Compra por categoría —" */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.section-head p {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--teal-700);
  color: var(--on-dark);
}

.btn--dark {
  background: var(--teal-900);
  color: var(--on-dark);
}

.btn--light {
  background: var(--white);
  color: var(--teal-900);
}

.btn--outline-light {
  border-color: rgb(255 255 255 / 0.7);
  color: var(--on-dark);
}

.btn--outline {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--teal-600);
  }
  .btn--dark:hover {
    background: var(--teal-700);
  }
  .btn--light:hover {
    background: var(--mint-100);
  }
  .btn--outline-light:hover {
    background: rgb(255 255 255 / 0.12);
  }
  .btn--outline:hover {
    background: var(--teal-700);
    color: var(--on-dark);
  }
}

/* ---------- Barra de anuncio ---------- */
.topbar {
  background: var(--teal-900);
  color: var(--on-dark);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 2.25rem;
}

.topbar__msg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar__msg .icon {
  width: 16px;
  height: 16px;
}

.topbar__links {
  display: flex;
  gap: var(--space-5);
}

.topbar__links a {
  text-decoration: none;
  color: var(--on-dark-soft);
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .topbar__links a:hover {
    color: var(--on-dark);
  }
}

@media (max-width: 40rem) {
  .topbar__inner {
    justify-content: center;
  }
  .topbar__links {
    display: none;
  }
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 138px;
  height: auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-8);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 160ms var(--ease-out);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--teal-700);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--teal-700);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--teal-900);
  background: none;
  border: 0;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.icon-btn:active {
  transform: scale(0.97);
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background: var(--mint-100);
  }
}

.nav-toggle {
  display: none;
}

.nav-toggle .icon-close,
.menu-open .nav-toggle .icon-open {
  display: none;
}

.menu-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 59.99rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--gutter) var(--space-6);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      visibility 0s linear 200ms;
  }

  .menu-open .nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition:
      opacity 220ms var(--ease-out),
      transform 220ms var(--ease-out),
      visibility 0s;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li + li {
    border-top: 1px solid var(--line);
  }

  .nav a {
    display: flex;
    min-height: 56px;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(60rem 30rem at 80% 30%, rgb(255 255 255 / 0.14), transparent 60%),
    linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 55%, #2b7d74 100%);
}

/* Hojas decorativas */
.hero__leaf {
  position: absolute;
  fill: rgb(255 255 255 / 0.07);
  pointer-events: none;
}

.hero__leaf--1 {
  width: 22rem;
  right: -5rem;
  top: -4rem;
  transform: rotate(35deg);
}

.hero__leaf--2 {
  width: 14rem;
  left: 38%;
  bottom: -5rem;
  transform: rotate(-20deg);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(5rem, 4rem + 4vw, 7rem);
}

.hero__eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 400;
  max-width: 12ch;
  margin-bottom: var(--space-5);
}

.hero__title em {
  font-style: italic;
  color: var(--mint-200);
}

.hero__text {
  max-width: 36ch;
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--on-dark-soft);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 36rem);
}

.hero__figure img {
  width: 100%;
  height: auto;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-12);
  }

  .hero__figure {
    justify-self: end;
  }
}

/* Entrada de la portada al cargar */
.hero [data-hero] {
  animation: hero-in 700ms var(--ease-out) both;
}

.hero [data-hero="2"] { animation-delay: 60ms; }
.hero [data-hero="3"] { animation-delay: 120ms; }
.hero [data-hero="4"] { animation-delay: 180ms; }
.hero [data-hero="5"] {
  animation-name: figure-in;
  animation-duration: 800ms;
  animation-delay: 100ms;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes figure-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

/* ---------- Franja de garantías (sobre la portada) ---------- */
.trust {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.trust__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

.trust__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--teal-700);
}

.trust__icon .icon {
  width: 24px;
  height: 24px;
}

.trust__item h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.trust__item p {
  font-size: var(--step--2);
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 30rem) {
  .trust__item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
  }
}

@media (min-width: 56rem) {
  .trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--space-3) var(--space-2);
  }

  .trust__item + .trust__item {
    border-left: 1px solid var(--line);
  }
}

/* ---------- Categorías (círculos) ---------- */
.categories__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--gutter) var(--space-4);
  margin-inline: calc(var(--gutter) * -1);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 7.5rem;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.categories__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 75rem) {
  .categories__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.category {
  scroll-snap-align: start;
}

.category a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  text-decoration: none;
}

.category__circle {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--mint-100);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 200ms var(--ease-out);
}

.category__circle img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 260ms var(--ease-out);
}

.category__circle span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--teal-700);
}

.category__name {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}

.category__product {
  font-size: var(--step--2);
  color: var(--teal-700);
  margin-top: calc(var(--space-1) * -1);
}

@media (hover: hover) and (pointer: fine) {
  .category a:hover .category__circle {
    border-color: var(--teal-400);
  }
  .category a:hover .category__circle img {
    transform: translateY(-4px);
  }
}

/* ---------- Productos ---------- */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

@media (min-width: 72rem) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    box-shadow 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, var(--mint-100), #f0f7f5);
  display: grid;
  place-items: center;
}

.product__media img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: transform 260ms var(--ease-out);
}

.product__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 2px var(--space-2);
  border-radius: 6px;
  background: var(--teal-700);
  color: var(--on-dark);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product__placeholder {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-style: italic;
  color: var(--teal-700);
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
  padding: var(--space-4);
}

.product__name {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.3;
}

.product__desc {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: auto;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--teal-700);
  color: var(--on-dark);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

/* Toda la tarjeta es clicable */
.product__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product__cta:active {
  transform: scale(0.97);
}

.product__cta .icon {
  width: 16px;
  height: 16px;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
  .product:hover .product__media img {
    transform: translateY(-4px);
  }
  .product:hover .product__cta {
    background: var(--teal-600);
  }
  .product:hover .product__cta .icon {
    transform: translateX(3px);
  }
}

@media (max-width: 30rem) {
  .product__body {
    padding: var(--space-3);
  }
  .product__tag {
    top: var(--space-2);
    left: var(--space-2);
    max-width: calc(100% - var(--space-4));
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product__cta {
    padding-inline: var(--space-2);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .product__cta .icon {
    display: none;
  }
  .product__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---------- Banner "Quiénes somos" ---------- */
.banner {
  position: relative;
  overflow: hidden;
  display: grid;
  border-radius: var(--radius);
  color: var(--on-dark);
  background:
    radial-gradient(40rem 20rem at 0% 100%, rgb(255 255 255 / 0.12), transparent 60%),
    linear-gradient(135deg, var(--teal-700), var(--teal-900));
}

.banner__media {
  display: grid;
  place-items: end center;
  padding: var(--space-8) var(--space-6) 0;
}

.banner__media img {
  width: min(100%, 26rem);
}

.banner__body {
  padding: var(--space-8) var(--space-6) var(--space-10);
  display: grid;
  gap: var(--space-4);
  align-content: center;
}

.banner__eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.banner__title {
  font-size: var(--step-3);
  font-weight: 400;
}

.banner__text {
  color: var(--on-dark-soft);
  max-width: 46ch;
}

.facts {
  margin: var(--space-2) 0 0;
  display: grid;
  gap: var(--space-3);
}

.facts > div {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.facts .icon {
  margin-top: 2px;
  color: var(--mint-200);
}

.facts dt {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.facts dd {
  margin: 0;
}

@media (min-width: 56rem) {
  .banner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .banner__media {
    padding: var(--space-10) 0 0 var(--space-10);
  }

  .banner__body {
    padding: var(--space-12) var(--space-12) var(--space-12) var(--space-8);
  }
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  gap: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.contact__title {
  font-size: var(--step-3);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.contact__lead {
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: var(--space-6);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.contact__row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--mint-50);
}

.contact__row .trust__icon {
  width: 44px;
  height: 44px;
}

.contact__label {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__value {
  font-size: var(--step-1);
  line-height: 1.45;
}

.contact__value a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

@media (min-width: 56rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-12);
    align-items: center;
  }
}

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--teal-900);
  color: var(--on-dark-soft);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--step--1);
}

.site-footer a {
  color: var(--on-dark-soft);
}

.footer__grid {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.footer__brand img {
  width: 150px;
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-sizing: content-box;
}

.footer__brand p {
  max-width: 32ch;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: var(--space-3);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__list a:hover {
    color: var(--on-dark);
  }
}

address {
  font-style: normal;
}

.footer__legal {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-8);
  font-size: var(--step--2);
}

.footer__disclaimer {
  max-width: 75ch;
}

.footer__credit {
  text-align: center;
  padding-top: var(--space-6);
  font-size: var(--step--2);
}

.footer__credit a {
  text-underline-offset: 3px;
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Páginas legales ---------- */
.legal {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--section);
}

.legal__inner {
  max-width: 46rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

.legal h1 {
  font-size: var(--step-3);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.legal h2 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--teal-700);
  margin: var(--space-10) 0 var(--space-3);
}

.legal p,
.legal ul {
  margin: 0 0 var(--space-4);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: var(--space-2);
}

.legal__updated {
  color: var(--ink-soft);
  margin-bottom: var(--space-8) !important;
}

.legal .eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: var(--space-3);
}

.legal .lead {
  color: var(--ink-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: var(--space-4);
  color: var(--teal-700);
  text-underline-offset: 4px;
}

/* ---------- Aparición al bajar ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms var(--ease-out),
    transform 650ms var(--ease-out);
}

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

/* Movimiento reducido: se conserva el fundido, sin desplazamiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    transform: none;
    transition: opacity 400ms var(--ease-out);
  }

  .hero [data-hero] {
    animation-name: fade-in;
    animation-duration: 400ms;
  }

  .nav,
  .menu-open .nav {
    transform: none;
  }

  .product,
  .product__media img,
  .category__circle img,
  .product__cta .icon {
    transition: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}


/* ===== Presencia en Latinoamérica y botones por país (2026-10-24) ===== */
.countries__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
}
.country {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: var(--space-5) var(--space-3); text-align: center;
  font-size: var(--step--1); color: var(--ink); font-weight: 500;
}
.country .flag { width: 48px; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
@media (max-width: 640px) {
  .countries__list { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
  .country { padding: var(--space-3) 4px; font-size: 0.7rem; border-radius: 12px; }
  .country .flag { width: 34px; }
}

.product__countries-label { margin: var(--space-3) 0 var(--space-2); font-size: var(--step--2); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.product__countries { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.country-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--teal-900); font-size: var(--step--1); font-weight: 500; text-decoration: none;
}
.country-btn .flag { width: 22px; height: auto; border-radius: 3px; }
@media (hover: hover) { .country-btn:hover { border-color: var(--teal-700); background: var(--mint-100); } }

.brand img { width: 190px; }
.footer__brand img { background: var(--white); border-radius: 12px; padding: 10px; width: 220px; height: auto; }
.footer__contact { margin-top: var(--space-3); }
.footer__contact a { color: inherit; }
