/* =========================================================
   COMPONENTES — botones, filtros, tarjetas, detalle, carrito
   ========================================================= */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg { flex: none; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #3b3934; border-color: #3b3934; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--sand); border-color: var(--sand); color: var(--muted); cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.link-arrow::after {
  content: '→';
  transition: transform var(--t) var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow { background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color var(--t-fast);
}
.icon-btn:hover { background: rgba(28, 27, 25, 0.06); }

/* ---------- Contador del carrito ---------- */
.cart-btn__count {
  position: absolute;
  top: 5px; right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-btn__count.is-bumping { animation: bump 420ms var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Categorías (tiles) ---------- */
.cat-tile { display: block; }
.cat-tile__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
}
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), opacity 500ms var(--ease); }
.cat-tile__label {
  display: flex;
  flex-direction: column;
  padding-top: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.cat-tile__n { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
@media (hover: hover) {
  .cat-tile:hover img { transform: scale(1.04); }
}
@media (min-width: 720px) {
  .cat-tile__label { flex-direction: row; justify-content: space-between; align-items: baseline; font-size: var(--fs-base); padding-top: 0.9rem; }
  .cat-tile__n { font-size: var(--fs-sm); }
}

/* ---------- Filtros ---------- */
.filters { margin-bottom: 2rem; }

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 0.25rem;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__n { font-size: var(--fs-xs); opacity: 0.6; font-variant-numeric: tabular-nums; }

.filters__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.filters__count { grid-column: 1 / -1; order: 3; font-size: var(--fs-xs); color: var(--muted); }

@media (min-width: 720px) {
  .filters { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .chips { margin: 0; padding: 0; }
  .filters__row { display: flex; align-items: center; margin: 0; padding: 0; border: 0; }
  .filters__count { order: 0; margin-right: 0.5rem; white-space: nowrap; }
}

.select { position: relative; display: block; min-width: 0; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 0 2.1rem 0 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.select select:hover, .select select:focus-visible { border-color: var(--line-strong); }
.select::after {
  content: '';
  position: absolute;
  right: 0.9rem; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
@media (min-width: 720px) {
  .select select { min-width: 11.5rem; }
}

/* ---------- Grilla de productos ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 0.75rem;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.25rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3.25rem 1.5rem; } }

.card { display: flex; flex-direction: column; min-width: 0; animation: card-in 420ms var(--ease) both; }
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }

.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), opacity 500ms var(--ease);
}
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card__media:hover .card__img { transform: scale(1.03); }
  .card__media:hover .card__img--alt.is-loaded { opacity: 1; }
}

.card__badge {
  position: absolute;
  left: 0.5rem; top: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}
.card__badge--out { background: var(--ink); color: var(--bg); }
.card__badge--low { color: var(--danger); }

.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 0.85rem; }
.card__name { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.card__name button { text-align: left; }
.card__name button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.card__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; margin-top: 0.2rem; }
.card__price { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.card__wholesale { font-size: var(--fs-xs); color: var(--accent); font-variant-numeric: tabular-nums; }

.card__desc {
  margin-top: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot { margin-top: auto; padding-top: 0.75rem; }
.card__add { margin-top: 0.75rem; min-height: 44px; padding: 0 0.75rem; }
.card__add .label-short { display: none; }
.card__add.is-added { background: var(--ink); color: var(--bg); }

@media (max-width: 719px) {
  .card__name, .card__price { font-size: var(--fs-sm); }
  .card__prices { flex-direction: column; }
  .card__desc { display: none; }
  .card__add { font-size: 0.75rem; letter-spacing: 0.05em; }
  .card__add .label-long { display: none; }
  .card__add .label-short { display: inline; }
}

/* ---------- Muestras de color ---------- */
.swatches { display: flex; flex-wrap: wrap; align-items: center; margin-left: -5px; }

.swatch {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.swatch::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.swatch::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.swatch:hover::after { border-color: var(--line-strong); }
.swatch[aria-pressed='true']::after { border-color: var(--ink); }

.swatches__label { font-size: var(--fs-xs); color: var(--muted); margin-left: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sin resultados ---------- */
.empty-results { padding: 4rem 0; text-align: center; color: var(--ink-soft); }
.empty-results p { margin-bottom: 1.5rem; }

/* ---------- Instagram (items) ---------- */
.social__item { scroll-snap-align: start; }
.social__item a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.social__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), opacity 500ms var(--ease); }
.social__item a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0);
  transition: background-color var(--t) var(--ease);
}
@media (hover: hover) {
  .social__item a:hover img { transform: scale(1.04); }
  .social__item a:hover::after { background: rgba(28, 27, 25, 0.12); }
}

/* ---------- Preguntas frecuentes (items) ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 2.25rem 1rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t) var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--ink-soft); }
.faq__item p { padding: 0 2rem 1.35rem 0; color: var(--ink-soft); max-width: 60ch; }
.faq__item[open] p { animation: faq-in 320ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Detalle de producto ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal__backdrop, .drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0.45);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.is-open .modal__backdrop, .is-open .drawer__backdrop { opacity: 1; }

.modal__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t) var(--ease), transform 320ms var(--ease);
}
.is-open .modal__panel { opacity: 1; transform: none; }

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  background: rgba(246, 244, 240, 0.92);
}

@media (min-width: 900px) {
  .modal { display: grid; place-items: center; padding: 2rem; }
  .modal__panel { position: relative; inset: auto; width: min(1080px, 100%); height: min(740px, calc(100vh - 4rem)); }
}

.pdp { display: grid; }
.pdp__gallery { background: var(--sand); }
.pdp__main { aspect-ratio: 1 / 1; max-height: 58svh; width: 100%; overflow: hidden; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 0.5rem; padding: 0.5rem var(--gutter); }
.pdp__thumb {
  width: 56px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  opacity: 0.55;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: opacity var(--t-fast);
}
.pdp__thumb:hover { opacity: 0.85; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb[aria-current='true'] { opacity: 1; outline-color: var(--ink); }

.pdp__info { padding: 1.75rem var(--gutter) 0; }
.pdp__info .eyebrow { margin-bottom: 0.6rem; }
.pdp__title { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.pdp__price { font-size: 1.25rem; margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
.pdp__wholesale { font-size: var(--fs-sm); color: var(--accent); margin-top: 0.2rem; }
.pdp__desc { color: var(--ink-soft); margin-top: 1.25rem; max-width: 46ch; }

.pdp__block { margin-top: 1.75rem; }
.pdp__label { font-size: var(--fs-sm); margin-bottom: 0.65rem; }
.pdp__label span { color: var(--muted); }

.color-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 0.9rem 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast);
}
.color-option::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.color-option:hover { border-color: var(--line-strong); }
.color-option[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); }

.pdp__stock { font-size: var(--fs-sm); color: var(--muted); margin-top: 1.25rem; }
.pdp__stock--low { color: var(--danger); }

.pdp__buy {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  margin: 1.25rem calc(var(--gutter) * -1) 0;
  padding: 0.85rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.pdp__buy .btn { flex: 1; min-width: 0; padding-inline: 1rem; }

.pdp__ask { margin-top: 0.75rem; }

.pdp__perks { margin-top: 1rem; display: grid; gap: 0.35rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.pdp__perks li { display: flex; gap: 0.5rem; }
.pdp__perks li::before { content: '—'; color: var(--line-strong); }

.pdp__specs { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-bottom: 2rem; }
.pdp__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.pdp__specs dt { color: var(--muted); }
.pdp__specs dd { text-align: right; }

@media (max-width: 359px) {
  .pdp__buy .btn { font-size: 0.75rem; letter-spacing: 0.04em; }
}

@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr 1fr; min-height: 100%; }
  .pdp__gallery { position: sticky; top: 0; align-self: start; height: min(740px, calc(100vh - 4rem)); display: flex; flex-direction: column; }
  .pdp__main { flex: 1; max-height: none; aspect-ratio: auto; }
  .pdp__info { padding: 3.25rem 3rem 0; }
  .pdp__buy { margin-inline: -3rem; padding-inline: 3rem; }
}

/* ---------- Selector de cantidad ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  flex: none;
}
.qty button {
  width: 40px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.qty button:hover:not(:disabled) { color: var(--ink); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty output { min-width: 1.6rem; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.qty--sm button { width: 36px; height: 38px; }

/* ---------- Carrito ---------- */
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 340ms var(--ease);
  outline: none;
}
.is-open .drawer__panel { transform: none; }
@media (min-width: 560px) { .drawer__panel { width: 440px; } }

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  padding: 0 calc(var(--gutter) - 10px) 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__title { font-size: var(--fs-base); font-weight: 500; }
.drawer__title span { color: var(--muted); font-weight: 400; }

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter); }

.tier {
  margin: 1rem 0 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.tier strong { font-weight: 600; }
.tier__bar { height: 3px; margin-top: 0.65rem; background: var(--sand); overflow: hidden; }
.tier__bar span { display: block; height: 100%; background: var(--ink); transition: width 400ms var(--ease); }
.tier--done { border-color: var(--accent); }
.tier--done .tier__bar span { background: var(--accent); }

.line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.line__img { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 0.75rem; }
.line__name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.line__meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.2rem; }
.line__meta s { margin-right: 0.25rem; }
.line__total { font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.line__remove {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.6rem 0 0.6rem 0.6rem;
}
.line__remove:hover { color: var(--ink); }

.drawer__foot {
  flex: none;
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.summary-row + .summary-row { margin-top: 0.3rem; }
.summary-row--saving { color: var(--accent); }
.summary-row--total { color: var(--ink); font-size: var(--fs-lg); font-weight: 500; }
.drawer__note { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.75rem; }

.cart-extra { padding: 1.25rem 0 1.5rem; }
.cart-extra__title { font-size: var(--fs-sm); font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.75rem; }
.field span { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 0.3rem; }
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px; /* evita el zoom automático en iPhone */
}
.field input:focus { outline: none; border-color: var(--ink); }

.drawer__checkout { margin-top: 0.9rem; }
.drawer__continue {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-align: center;
}
.drawer__continue:hover { color: var(--ink); }

[data-empty] { height: 100%; }
.cart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}
.cart-empty svg { color: var(--line-strong); margin-bottom: 1.25rem; }
.cart-empty p { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.cart-empty small { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.75rem; max-width: 28ch; }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 0.75rem);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 0.9rem 0.8rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__action { flex: none; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 0.25rem; }
@media (min-width: 720px) {
  .toast { left: auto; top: auto; right: 1.5rem; bottom: 5.75rem; transform: translateY(12px); }
  .toast.is-visible { transform: none; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(239, 234, 226, 0.22), 0 6px 20px rgba(28, 27, 25, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t-fast);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #3b3934; }
.is-locked .wa-float { opacity: 0; pointer-events: none; }
@media (min-width: 720px) {
  .wa-float { right: 1.5rem; bottom: 1.5rem; }
}
