/* =========================================================
   Munay · Estilos
   Recorrido: barra con logo a pantalla completa que se recoge → momentos (carrusel) → la marca →
   productos → nuestra causa → contacto.
   Fondo blanco, una escala tipográfica corta y espaciado constante.
   ========================================================= */
:root {
  --paper: #ffffff;          /* fondo base */
  --sand: #f6f4f1;           /* fondo alterno suave */
  --ink: #1d1c1a;            /* texto principal */
  --stone: #6f6a64;          /* texto secundario */
  --hair: #e6e2dd;           /* líneas */
  --lake: #3d5a6c;           /* acento */
  --night: #231f20;          /* negro del logo */
  --on-night: #f4f1ec;       /* texto sobre negro */

  /* Una sola familia, la del logo (Nunito): la jerarquía sale de pesos, tamaños y espaciado.
     Títulos en 800 con el acento en cursiva liviana; cuerpo en 400; etiquetas y botones en 700. */
  --display: "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: var(--display);
  --w-light: 300;
  --w-regular: 400;
  --w-semi: 600;
  --w-bold: 700;
  --w-heavy: 800;

  /* Escala tipográfica */
  --fs-h1: clamp(34px, 4vw, 54px);
  --fs-h2: clamp(28px, 2.9vw, 42px);
  --fs-h3: 19px;
  --fs-lead: clamp(17px, 1.3vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;

  /* Espaciado */
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: var(--w-regular);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: var(--w-heavy); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

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

/* ----- Tipografía ----- */
.eyebrow {
  font-size: var(--fs-label);
  font-weight: var(--w-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lake);
}
.h1, .h2 { font-family: var(--display); font-weight: var(--w-heavy); line-height: 1.12; letter-spacing: -.02em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h1 em, .h2 em { font-style: italic; font-weight: var(--w-light); letter-spacing: -.01em; color: var(--lake); }
.lead { font-size: var(--fs-lead); color: var(--stone); max-width: 52ch; }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}
.section-head--split > div:first-child { display: grid; gap: 14px; }

/* ----- Botones y enlaces ----- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: var(--w-bold);
  letter-spacing: .01em;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--lake); border-color: var(--lake); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn--whatsapp { background: #1f9e55; border-color: #1f9e55; }
.btn--whatsapp:hover { background: #187d43; border-color: #187d43; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.link {
  font-size: 15px;
  font-weight: var(--w-bold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .25s;
}
.link::after { content: " →"; }
.link:hover { color: var(--lake); }

/* ----- Fotos: estado vacío con la descripción de la foto ----- */
.ph { position: relative; overflow: hidden; background: var(--sand); border-radius: var(--radius); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph img.is-broken { visibility: hidden; }
.ph.is-empty::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--stone);
}

/* ----- Barra de navegación (negra) ----- */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--night);
  color: var(--on-night);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--night);
}
.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 64px;
}
.header__logo { grid-column: 2; margin: 0; line-height: 0; }
.header__logo .brand { display: block; width: 52px; height: 52px; }
.header__cta { grid-column: 3; justify-self: end; }
/* Carrito de Munay dentro del botón Comprar; multiply funde su fondo blanco con el botón */
.header__cta { gap: 8px; padding-left: 14px; }
.header__cta img { width: auto; height: 22px; mix-blend-mode: multiply; }
.menu { grid-column: 1; grid-row: 1; display: flex; gap: 28px; font-size: 15px; font-weight: var(--w-semi); letter-spacing: .02em; }
.menu a { color: rgba(244, 241, 236, .72); transition: color .25s; }
.menu a:hover { color: var(--on-night); }
.btn--light { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); color: var(--night); }
.menu-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border: 0;
  background: none;
  color: var(--on-night);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.header.is-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.header.is-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ----- Intro: la barra parte a pantalla completa con el logo y se recoge ----- */
.intro-open .header__inner { height: 100vh; height: 100svh; }
.intro-open .header__logo .brand { width: min(44vh, 64vw); height: min(44vh, 64vw); }
.intro-open .menu,
.intro-open .header__cta,
.intro-open .menu-toggle { opacity: 0; visibility: hidden; }

/* Eslogan bajo MUNAY: misma tipografía de palo seco, más chico y espaciado. Entra
   palabra a palabra con el mismo gesto y la misma cadencia que las letras del nombre,
   y queda a la misma distancia del nombre que el nombre del símbolo. */
.header__inner { position: relative; --logo: min(44vh, 64vw); }
.intro-slogan {
  position: absolute;
  left: 0; right: 0;
  top: calc(50% + var(--logo) * .445);
  margin: 0;
  text-align: center;
  font-family: var(--body);
  font-weight: var(--w-bold);
  font-size: max(12px, calc(var(--logo) * .048));
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--on-night);
  pointer-events: none;
  transition: opacity .4s ease;
}
.intro-slogan span { display: inline-block; opacity: 0; }
.intro-run:not(.intro-open) .intro-slogan { opacity: 0; }
/* Tres tiempos (Juntos · coma · siempre) dentro de la misma ventana 2.15s–3.17s */
.intro-brand.intro-open .intro-slogan span {
  animation: letter-in .5s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(2.15s + var(--i) * .26s);
}

/* Transiciones activas solo mientras corre la intro */
.intro-run .header__inner { transition: height 1.5s cubic-bezier(.65, 0, .35, 1); }
.intro-run .header__logo .brand { transition: width 1.5s cubic-bezier(.65, 0, .35, 1), height 1.5s cubic-bezier(.65, 0, .35, 1); }
.intro-run .menu,
.intro-run .header__cta,
.intro-run .menu-toggle { transition: opacity .6s ease 1.1s, visibility 0s linear 1.1s; }
.intro-run.intro-open .menu,
.intro-run.intro-open .header__cta,
.intro-run.intro-open .menu-toggle { transition: opacity .3s ease, visibility 0s linear .3s; }

/* Presentación de marca: primero el símbolo, luego las letras de MUNAY una a una */
.brand__symbol, .brand__letter { transform-box: fill-box; transform-origin: 50% 100%; }
.intro-prep .brand__symbol, .intro-prep .brand__letter { opacity: 0; transition: opacity .35s ease; }
.intro-brand .brand__symbol { animation: symbol-in 1.3s cubic-bezier(.22, .8, .24, 1) .2s both; }
.intro-brand .brand__letter { animation: letter-in .9s cubic-bezier(.22, .8, .24, 1) both; animation-delay: calc(1.25s + var(--i) * .12s); }

/* ----- Momentos: carrusel a pantalla completa ----- */
.slider {
  position: relative;
  height: calc(100vh - 64px);
  height: calc(100svh - 64px);
  min-height: 420px;
  max-height: 900px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
}
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
}
.slide:nth-child(1) { background: #6f7d82; }
.slide:nth-child(2) { background: #7d8571; }
.slide:nth-child(3) { background: #8e8476; }
.slide:nth-child(4) { background: #5f5850; }
.slide:nth-child(5) { background: #4a4f55; }
.slide img { position: absolute; inset: 0; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
}
.slide.is-empty::after { color: rgba(255, 255, 255, .75); font-size: clamp(18px, 2vw, 24px); }
.slide__caption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding-bottom: 96px;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, .88);
}
.slide__caption span { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.slide__caption strong { font-family: var(--display); font-size: var(--fs-h2); font-weight: var(--w-heavy); line-height: 1.1; letter-spacing: -.02em; color: #fff; }

.slider__controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.slider__dot::before, .slider__dot span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 11px;
  height: 2px;
  background: rgba(255, 255, 255, .35);
}
.slider__dot span { background: #fff; transform: scaleX(0); transform-origin: left; }
.slider__dot.is-active span { transform: scaleX(1); }
.slider__dots.is-playing .slider__dot.is-active span { animation: progress 5s linear both; }
.slider__arrows { display: flex; gap: 8px; }
.slider__arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.slider__arrow:hover { background: #fff; color: var(--night); }

/* ----- 2. La marca ----- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}
.about__photo { aspect-ratio: 4 / 5; max-width: 100%; }
/* Retratos en secuencia: todos apilados, solo el activo es visible */
.portraits img { position: absolute; inset: 0; object-position: 50% 42%; opacity: 0; transition: opacity .16s linear; }
.portraits img.is-active { opacity: 1; }
.about__text { display: grid; gap: 18px; }
.about__text > p:not(.eyebrow):not(.definition) { color: var(--stone); max-width: 54ch; }
.definition {
  justify-self: start;
  padding: 10px 16px;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--stone);
}
.definition strong { font-family: var(--display); font-size: 17px; font-weight: var(--w-heavy); color: var(--ink); }
.definition em { font-family: var(--display); font-weight: var(--w-semi); color: var(--ink); }
.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.values li { display: grid; align-content: start; gap: 4px; font-size: var(--fs-small); color: var(--stone); }
.values strong { font-size: 15px; font-weight: var(--w-bold); color: var(--ink); }

/* ----- 3. Productos ----- */
/* Sigue a La marca, también blanca: un solo espacio de sección entre ambas */
.about + .products-section { padding-top: 0; }
/* Íconos de Munay: abren cada sección y cada categoría */
.section-icon { width: clamp(96px, 10vw, 136px); height: auto; aspect-ratio: 1; }
.section-head--catalog {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: clamp(20px, 3vw, 36px);
}
.section-head--catalog > div { display: grid; gap: 14px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; align-self: end; }
.cat-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--stone);
  transition: border-color .25s, color .25s;
}
.cat-nav a:hover { border-color: var(--ink); color: var(--ink); }

.catalog { display: grid; }
.category {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hair);
  scroll-margin-top: 64px;
}
.category:first-child { border-top: 0; padding-top: 0; }
.category__head { display: grid; gap: 18px; }
.category__icon { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
.category__text { display: grid; gap: 8px; }
.category__text p { font-size: var(--fs-small); color: var(--stone); max-width: 32ch; }
.category__count { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--lake); }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 28px);
}
.card { display: flex; flex-direction: column; gap: 16px; animation: fade .5s var(--ease) both; }
.card__img { aspect-ratio: 4 / 5; max-width: 100%; }
.card:hover .card__img img { transform: scale(1.04); }
.card__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: var(--w-heavy);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__name { font-family: var(--display); font-size: var(--fs-h3); font-weight: var(--w-bold); line-height: 1.25; }
.card__desc { font-size: var(--fs-small); color: var(--stone); }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.card__price { font-size: 18px; font-weight: var(--w-heavy); font-variant-numeric: tabular-nums; }
.card__buy {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: var(--w-bold);
  transition: background .25s, color .25s;
}
.card__buy:hover { background: var(--ink); color: var(--paper); }

/* Nota de compra y envío al cierre del catálogo (mobile-first) */
.buy-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--hair);
  font-size: var(--fs-small);
  color: var(--stone);
}
.buy-note .section-icon { width: 76px; }
.buy-note strong { display: block; font-family: var(--display); font-size: var(--fs-h3); font-weight: var(--w-bold); color: var(--ink); }
@media (min-width: 861px) {
  .buy-note { gap: 28px; font-size: var(--fs-body); }
  .buy-note .section-icon { width: 112px; }
}

/* ----- 4. Nuestra causa (mobile-first) ----- */
.causa { background: var(--night); color: var(--on-night); }
.causa .eyebrow { color: rgba(244, 241, 236, .6); }
.causa .h2 em { color: var(--on-night); }
.causa__intro { display: grid; gap: 18px; }
.causa__title { display: grid; gap: 18px; }
.causa__text { display: grid; gap: 14px; }
.causa__text p { color: rgba(244, 241, 236, .72); max-width: 50ch; }
.causa__text .causa__sign {
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 24px;
  letter-spacing: -.01em;
  color: var(--on-night);
}

/* Cifras en fila: se despliegan una tras otra y cuentan desde 0 (ver main.js) */
.causa__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
  margin-top: 44px;
}
.stat { position: relative; display: grid; align-content: start; gap: 10px; padding-top: 20px; }
.stat::before,
.stat::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; }
.stat::before { background: rgba(244, 241, 236, .16); }
.stat::after { background: var(--on-night); transform-origin: left; }
.stat__value {
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 64px);
  font-weight: var(--w-heavy);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--on-night);
}
.stat__plus { font-weight: var(--w-light); margin-right: .04em; color: rgba(244, 241, 236, .55); }
.stat__unit { margin-left: .14em; font-size: .4em; font-weight: var(--w-bold); letter-spacing: 0; color: rgba(244, 241, 236, .7); }
.stat__label { font-size: var(--fs-small); color: rgba(244, 241, 236, .66); max-width: 26ch; }
.stat__label strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: var(--w-bold); color: var(--on-night); }

/* Antes de entrar en pantalla (solo con JS): ocultas y con la línea vacía */
.causa__stats.is-ready .stat { opacity: 0; transform: translateY(18px); }
.causa__stats.is-ready .stat::after { transform: scaleX(0); }
.causa__stats.is-visible .stat {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i) * .15s);
}
.causa__stats.is-visible .stat::after {
  transform: scaleX(1);
  transition: transform 1.8s var(--ease);
  transition-delay: calc(var(--i) * .15s);
}

.causa__cta { margin-top: 40px; font-size: 15px; color: rgba(244, 241, 236, .66); }
.causa__cta .link { margin-left: 6px; color: var(--on-night); }

@media (min-width: 861px) {
  .causa__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: end; }
  .causa__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 6vw, 88px); }
  .stat__value { font-size: clamp(48px, 4.6vw, 72px); }
}

/* ----- 5. Contacto ----- */
.contact { background: var(--sand); }
.contact .ph { background: #ebe7e2; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}
.contact__text { display: grid; gap: 18px; justify-items: start; }
.contact__text > p:not(.eyebrow) { color: var(--stone); max-width: 46ch; }
.contact__text .actions { margin-top: 6px; gap: 12px; }
.contact__hours { width: 100%; padding-top: 18px; border-top: 1px solid var(--hair); font-size: var(--fs-small); color: var(--stone); }
.contact__photo { aspect-ratio: 4 / 3; max-width: 100%; }

/* ----- Pie de página ----- */
.footer { border-top: 1px solid var(--hair); font-size: var(--fs-small); color: var(--stone); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 36px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 56px; height: 56px; }
.footer__brand p { display: grid; }
.footer__slogan { font-family: var(--display); font-style: italic; font-weight: var(--w-semi); font-size: 17px; color: var(--ink); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a:hover { color: var(--ink); }

/* ----- WhatsApp flotante ----- */
.wa-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f9e55;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }

/* ----- Animaciones ----- */
@keyframes symbol-in { from { opacity: 0; transform: translateY(4%) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes letter-in { from { opacity: 0; transform: translateY(35%); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .menu {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--night);
    border-top: 1px solid rgba(244, 241, 236, .12);
    display: none;
  }
  .header.is-open .menu { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid rgba(244, 241, 236, .12); font-size: 18px; color: var(--on-night); }
  .menu a:last-child { border-bottom: 0; }

  .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { aspect-ratio: 4 / 3; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head--catalog { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cat-nav { grid-column: 1 / -1; }
  .category { grid-template-columns: minmax(0, 1fr); }
  .category__head { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
  .category__icon { width: clamp(110px, 28vw, 160px); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

@media (max-width: 600px) {
  :root { --section: 56px; }
  .about__photo { aspect-ratio: 3 / 2; }
  .values { gap: 12px; }
  .values li { font-size: 13px; }
  .contact__photo { display: none; }

  /* Catálogo: cada categoría se recorre deslizando, con la siguiente tarjeta asomándose */
  .category { gap: 20px; padding-block: 36px; }
  .category__icon { width: 88px; }
  .products {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .products .card { flex: 0 0 68%; scroll-snap-align: start; }
  .slider { height: 72svh; min-height: 380px; }
  .slide__caption { padding-bottom: 88px; }
  .slider__controls { bottom: 24px; }
  .slider__dot { width: 28px; }
  .contact__links .btn { width: 100%; justify-content: center; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card__buy { justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
