/*
 * Base de la nueva web: reinicio mínimo, tipografía (Roboto, como la web
 * actual), íconos y las piezas
 * que usa toda página (botones, chips, tarjetas, cifras, la tarjeta de un
 * rescatado, las hojas y el aviso).
 * Solo variables: los valores viven en tokens.css.
 */

/* Logos de marcas: Material Symbols no los tiene. Font Awesome Brands
   recortada a los del registro (tool/nueva/subset_icons.py). */
@font-face {
  font-family: 'PetFi FA Brands';
  src: url('/fonts/nueva/fa-brands.woff?v=1') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nw-header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--nw-page-bg);
  color: var(--v5-ink);
  font-family: var(--nw-font);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--v5-primary-deep);
  text-decoration: none;
}
a:hover {
  color: var(--nw-link-hover);
}

:focus-visible {
  outline: 3px solid var(--v5-primary);
  outline-offset: 2px;
}

/* ── Íconos (registro NwIcons) ───────────────────────────────────────── */
/* Material Symbols Rounded, como la web actual, pintada por código (nunca
   por ligadura). Su dibujo ocupa ~20/24 del cuadro: `zoom` lo deja del
   tamaño óptico que cada lugar pide con `font-size`, y el corrimiento lo
   asienta en la línea del texto. */
.nw-i {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.nw-i--symbol {
  zoom: var(--nw-icon-zoom);
  vertical-align: -0.16em;
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-feature-settings: normal;
}
.nw-i--fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Mientras Material Symbols no llega (ver new_web_document.dart). */
html.nw-ms-wait .nw-i--symbol {
  visibility: hidden;
}
.nw-i--brands {
  font-family: 'PetFi FA Brands';
  font-weight: 400;
}

/* ── Tipografía ──────────────────────────────────────────────────────── */
.nw-display {
  font-size: var(--v5-text-display);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.nw-title {
  font-size: var(--v5-text-title);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.nw-section-title {
  font-size: var(--v5-text-section);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.nw-body-large {
  font-size: var(--v5-text-body-large);
  font-weight: 400;
  line-height: 1.4;
}
.nw-body {
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
}
.nw-label {
  font-size: var(--v5-text-label);
  font-weight: 700;
  line-height: 1.3;
}
.nw-caption {
  font-size: var(--v5-text-label);
  font-weight: 400;
  line-height: 1.3;
  color: var(--v5-text-muted);
}
.nw-overline {
  font-size: var(--v5-text-overline);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--v5-primary-deep);
}
.nw-muted {
  color: var(--v5-text-muted);
}

/* Cifras: Roboto, con dígitos del mismo ancho. */
.nw-num {
  font-family: var(--nw-font);
  font-weight: 700;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  color: var(--v5-ink);
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.nw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--nw-touch);
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: var(--v5-r2);
  background: transparent;
  color: var(--v5-ink);
  font-size: var(--v5-text-body);
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.nw-btn--primary {
  background: var(--v5-primary);
  color: var(--v5-surface);
  font-weight: 700;
  box-shadow: var(--nw-glow-primary);
}
.nw-btn--primary:hover {
  background: var(--v5-primary-deep);
  color: var(--v5-surface);
}
.nw-btn--outline {
  border-color: var(--v5-border-strong);
  background: var(--v5-surface);
  color: var(--v5-ink);
}
.nw-btn--outline:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-btn--soft {
  background: var(--v5-primary-soft);
  color: var(--v5-primary-deep);
  font-weight: 700;
}
.nw-btn--soft:hover {
  background: var(--v5-primary-softer);
  color: var(--v5-primary-deep);
}
.nw-btn--teal {
  background: var(--v5-teal-action);
  color: var(--v5-surface);
  font-weight: 700;
}
.nw-btn--block {
  display: flex;
  width: 100%;
}
.nw-btn--lg {
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--v5-r3);
  font-size: 15px;
}
.nw-btn[disabled],
.nw-btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Chips ───────────────────────────────────────────────────────────── */
.nw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
  color: var(--v5-ink);
  font-size: var(--v5-text-label);
  font-weight: 500;
  line-height: 1.3;
}
/* Chip que es enlace o botón: área de toque completa. */
.nw-chip--action {
  gap: 7px;
  min-height: var(--nw-touch);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}
.nw-chip--action:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-chip--action .nw-i {
  color: var(--v5-primary-deep);
  font-size: var(--v5-text-body);
}
.nw-chip--active {
  border-color: var(--v5-primary);
  background: var(--v5-primary-soft);
  color: var(--v5-primary-deep);
}
/* Chip de rasgo: algo más grande y, si el texto es largo, en dos líneas. */
.nw-chip--lg {
  padding: 6px 11px;
  font-size: 12.5px;
  white-space: normal;
}
/* Cuidados (vacunas, chip…): verde suave, sin borde. */
.nw-chip--care {
  border-color: transparent;
  background: var(--v5-success-soft);
  color: var(--v5-tint-game-ink);
  font-weight: 700;
}

/* Etiqueta corta en mayúsculas («PATROCINADO»). */
.nw-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--v5-border-strong);
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
  color: var(--v5-text-light);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.3;
}

/* ── Tarjetas ────────────────────────────────────────────────────────── */
.nw-card {
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
}
.nw-card--raised {
  border-color: transparent;
  border-radius: var(--v5-r4);
  box-shadow: var(--v5-shadow-raised);
}
.nw-card--flat {
  box-shadow: none;
}

/* ── Tarjeta de caso (CaseCard y PetCard) ────────────────────────────── */
/* Como las tarjetas de la web actual: foto 4:5 dominante y, debajo, el
   nombre con la edad, una línea de datos, la organización y la espera.
   Sobre la foto solo van el corazón y, a veces, una pastilla de estado. */
.nw-case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  overflow: hidden;
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
  color: var(--v5-ink);
  transition: box-shadow 0.15s ease;
}
.nw-case-card:hover {
  box-shadow: var(--v5-shadow-raised);
}
.nw-case-card[hidden] {
  display: none;
}
.nw-case-card__link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  color: var(--v5-ink);
}
.nw-case-card__link:hover,
a.nw-case-card:hover {
  color: var(--v5-ink);
}
.nw-case-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--v5-surface-muted);
}
.nw-case-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.nw-case-card__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v5-border-strong);
  font-size: 36px;
}
/* Una sola pastilla, arriba a la izquierda: «Urgente» u «Hogar temporal». */
.nw-case-card__pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: calc(100% - 64px);
  padding: 0 10px;
  border-radius: var(--v5-r-pill);
  font-size: var(--v5-text-label);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--v5-shadow-card);
}
.nw-case-card__pill--urgent {
  background: var(--v5-dupla-soft);
  color: var(--v5-dupla-ink);
}
.nw-case-card__pill--foster {
  background: var(--v5-teal-soft);
  color: var(--v5-teal-action);
}
.nw-case-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 12px 14px;
}
/* Nombre y edad en una fila: el nombre se corta antes que la edad. */
.nw-case-card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.nw-case-card__name {
  min-width: 0;
  overflow: hidden;
  font-size: var(--v5-text-body-large);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nw-case-card__age {
  flex: none;
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 500;
  white-space: nowrap;
}
.nw-case-card__meta,
.nw-case-card__org {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.35;
}
.nw-case-card__org {
  display: -webkit-box;
  overflow: hidden;
  color: var(--v5-text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.nw-case-card__wait {
  margin-top: 2px;
  color: var(--nw-wait-ink);
  font-size: var(--v5-text-body);
  font-weight: 700;
  line-height: 1.3;
}
/* Corazón de «Seguir»: 44 px de toque, círculo de 34 sobre la foto. */
.nw-case-card__follow {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nw-touch);
  height: var(--nw-touch);
  padding: 0;
  border: 0;
  background: transparent;
}
.nw-case-card__heart,
.nw-pet-card__heart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--nw-r-round);
  background: var(--nw-glass-light);
  color: var(--v5-ink);
  font-size: 16px;
  box-shadow: var(--v5-shadow-card);
}
.nw-case-card__follow:hover .nw-case-card__heart {
  color: var(--v5-dupla-deep);
}
.nw-case-card__follow[aria-pressed='true'] .nw-case-card__heart {
  background: var(--v5-dupla-soft);
  color: var(--v5-dupla-deep);
}

/* PetCard: toda la tarjeta es el enlace. El corazón es un adorno del
   lienzo de escritorio. */
.nw-pet-card__heart {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
}
@media (min-width: 768px) {
  .nw-case-card__body {
    padding: 12px 14px 14px;
  }
  .nw-case-card__name {
    font-size: 17px;
  }
  .nw-pet-card__heart {
    display: flex;
  }
}

/* ── Hojas (NwSheet) ─────────────────────────────────────────────────── */
/* Diálogo modal: sube desde abajo en teléfono, centrado en escritorio.
   El fondo oscuro es el propio diálogo; un clic en él la cierra. */
.nw-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--nw-overlay);
}
.nw-sheet[hidden] {
  display: none;
}
/* Sin JavaScript el enlace que la abre navega al diálogo y `:target` lo
   muestra. Con él (`html.nw-js`, lo pone sheets.js) manda `hidden`. */
html:not(.nw-js) .nw-sheet:target {
  display: flex;
}
html.nw-sheet-open {
  overflow: hidden;
}
.nw-sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--nw-phone-max);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: var(--v5-r5) var(--v5-r5) 0 0;
  background: var(--v5-surface);
}
/* El panel recibe el foco al abrir solo para que se lea el título. */
.nw-sheet__panel:focus-visible {
  outline: none;
}
.nw-sheet__grip {
  flex: none;
  align-self: center;
  width: 40px;
  height: 4px;
  border-radius: var(--v5-r-pill);
  background: var(--v5-border-strong);
}
.nw-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--v5-r2);
  color: var(--v5-text-muted);
  font-size: 16px;
}
.nw-sheet__close:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-right: 40px;
}
.nw-sheet__photo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--v5-r3);
  object-fit: cover;
  object-position: 50% 26%;
}
.nw-sheet__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nw-sheet__title {
  font-size: var(--v5-text-title);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.nw-sheet__text {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
}

/* Botones de una hoja: enlaces o botones a todo el ancho. */
.nw-sheet__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: var(--v5-r3);
  background: transparent;
  color: var(--v5-ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
/* Un canal que el navegador no ofrece se oculta con `hidden`. */
.nw-sheet__btn[hidden] {
  display: none;
}
.nw-sheet__btn .nw-i {
  font-size: 17px;
}
.nw-sheet__btn--line {
  border-color: var(--v5-border);
  background: var(--v5-surface);
}
.nw-sheet__btn--outline {
  border-color: var(--v5-border-strong);
  background: var(--v5-surface);
}
.nw-sheet__btn--line:hover,
.nw-sheet__btn--outline:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-sheet__btn--dark,
.nw-sheet__btn--dark:hover {
  background: var(--v5-ink);
  color: var(--v5-surface);
}
.nw-sheet__btn--whatsapp,
.nw-sheet__btn--whatsapp:hover {
  min-height: 52px;
  background: var(--v5-teal-action);
  color: var(--v5-surface);
  font-weight: 700;
}
.nw-sheet__row {
  display: flex;
  gap: 8px;
}
.nw-sheet__row .nw-sheet__btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px;
  font-size: var(--v5-text-body);
}
.nw-sheet__row .nw-sheet__btn .nw-i {
  font-size: 14px;
}
/* «Únete a la red»: la acción destacada de la hoja de cuenta. */
.nw-sheet__join,
.nw-sheet__join:hover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 6px;
  border-radius: var(--v5-r3);
  background: linear-gradient(135deg, var(--v5-primary), var(--v5-primary-deep));
  color: var(--v5-surface);
  font-size: var(--v5-text-body-large);
  font-weight: 700;
  letter-spacing: -0.3px;
  box-shadow: var(--nw-glow-join);
}
.nw-sheet__join-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 9px;
  border-radius: var(--v5-r-pill);
  background: var(--v5-amber-warm);
  color: var(--v5-amber-ink);
  font-size: var(--v5-text-overline);
  font-weight: 700;
  letter-spacing: 0;
}
.nw-sheet__join-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--nw-r-round);
  background: var(--nw-on-dark-tint);
  font-size: 12px;
}
.nw-sheet__link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--v5-primary-deep);
  font-size: var(--v5-text-body);
  font-weight: 700;
}
.nw-sheet__legal {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-label);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.nw-sheet__legal a {
  color: inherit;
  text-decoration: underline;
}
.nw-sheet__note {
  padding: 12px 14px;
  border-radius: var(--nw-r-md);
  background: var(--v5-primary-softer);
  color: var(--v5-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.nw-sheet__note a {
  font-weight: 700;
}
/* Pasos numerados (la cifra con dígitos parejos, como toda cifra). */
.nw-sheet__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: nw-step;
}
.nw-sheet__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
  counter-increment: nw-step;
}
.nw-sheet__steps li::before {
  content: counter(nw-step);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--nw-r-round);
  background: var(--nw-primary-tint);
  color: var(--v5-primary-deep);
  font-family: var(--nw-font);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nw-sheet__cta,
.nw-sheet__cta:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: var(--v5-r3);
  background: var(--v5-primary);
  color: var(--v5-surface);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  box-shadow: var(--nw-glow-cta);
}
.nw-sheet__cta:hover {
  background: var(--v5-primary-deep);
}
/* Por qué no se pudo entrar con Google o Apple (cuenta.js). Vacío no ocupa
   lugar. */
.nw-sheet__status {
  padding: 10px 14px;
  border-radius: var(--nw-r-md);
  background: var(--v5-dupla-soft);
  color: var(--v5-tint-law-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.nw-sheet__status:empty {
  display: none;
}
/* Un camino de cuenta mientras se entra por él. */
.nw-sheet__btn[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}
/* Confirmación sobre el título («Ahora sigues a Zero»). */
.nw-sheet__ok {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: var(--v5-r-pill);
  background: var(--v5-success-soft);
  color: var(--v5-tint-game-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.nw-sheet__ok .nw-i {
  font-size: 13px;
}
@media (min-width: 768px) {
  .nw-sheet {
    align-items: center;
    padding: 24px;
  }
  .nw-sheet__panel {
    padding-bottom: 22px;
    border-radius: var(--v5-r5);
  }
  .nw-sheet__grip {
    display: none;
  }
}

/* ── Hoja de avisos (AvisosSheet) ────────────────────────────────────── */
/* Lienzo: Avisos.dc.html y AvisosEscritorio.dc.html. En teléfono, la app es
   un botón; en escritorio se suma el código QR a la izquierda. */
.nw-avisos__app,
.nw-avisos__app:hover {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--v5-r3);
  background: var(--v5-primary);
  color: var(--v5-surface);
  box-shadow: var(--nw-glow-cta);
}
.nw-avisos__app:hover {
  background: var(--v5-primary-deep);
}
.nw-avisos__app-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--v5-r2);
  background: var(--nw-on-dark-tint);
  font-size: 18px;
}
.nw-avisos__app-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nw-avisos__app-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.nw-avisos__app-sub {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
.nw-avisos__app-go {
  flex: none;
  font-size: 13px;
}
.nw-avisos__later,
.nw-avisos__later:hover {
  color: var(--v5-text-muted);
  font-weight: 700;
}
.nw-avisos__later:hover {
  color: var(--v5-ink);
}
/* El código QR es para quien está en un computador. */
.nw-avisos__scan {
  display: none;
}
@media (min-width: 768px) {
  .nw-sheet--avisos .nw-sheet__panel {
    justify-content: center;
    gap: 14px;
    max-width: 800px;
    min-height: 400px;
    padding: 28px 28px 28px 328px;
  }
  .nw-sheet--avisos .nw-sheet__ok {
    margin-top: 0;
  }
  .nw-avisos__scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 300px;
    padding: 32px 28px;
    border-right: 1px solid var(--v5-border);
    background: var(--v5-primary-softer);
    text-align: center;
  }
  .nw-avisos__qr {
    display: flex;
    padding: 10px;
    border: 1px solid var(--v5-border);
    border-radius: var(--v5-r2);
    background: var(--v5-surface);
    color: var(--v5-ink);
  }
  .nw-avisos__scan-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
  }
  .nw-avisos__stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 14px;
  }
  .nw-avisos__store,
  .nw-avisos__store:hover {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--v5-text-muted);
    font-size: var(--v5-text-label);
    font-weight: 700;
  }
  .nw-avisos__store:hover {
    color: var(--v5-ink);
  }
  .nw-avisos__store .nw-i {
    font-size: 14px;
  }
}

/* ── «Seguir» ya seguido (cuenta.js) ─────────────────────────────────── */
/* Con sesión el navegador marca `aria-pressed`. El corazón de línea pasa a
   lleno: es el mismo símbolo con FILL 1. */
[data-nw-follow][aria-pressed='true'] .nw-i--symbol,
[data-nw-follow-org][aria-pressed='true'] .nw-i--symbol {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Mientras se guarda, o mientras se sabe si hay sesión. */
[data-nw-follow][aria-busy='true'],
[data-nw-follow-org][aria-busy='true'],
[data-nw-notify][aria-busy='true'] {
  cursor: progress;
}

/* ── Aviso (NwToast) ─────────────────────────────────────────────────── */
/* La región viva está siempre; el mensaje lo escribe toast.js. Cada página
   ajusta `--nw-toast-bottom` a lo que tenga fijo abajo. */
.nw-toast {
  --nw-toast-bottom: calc(var(--nw-bottom-nav-h) + 16px);
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--nw-toast-bottom) + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nw-toast__msg {
  max-width: 398px;
  padding: 12px 16px;
  border-radius: var(--nw-r-md);
  background: var(--v5-ink);
  color: var(--v5-surface);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--nw-shadow-toast);
  animation: nw-toast-in 0.18s ease;
}
@keyframes nw-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (min-width: 768px) {
  .nw-toast {
    --nw-toast-bottom: 24px;
  }
}

/* ── Utilidades ──────────────────────────────────────────────────────── */
.nw-container {
  width: 100%;
  max-width: var(--nw-page-max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .nw-container {
    padding: 0 24px;
  }
}

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

.nw-phone-only {
  display: initial;
}
.nw-desktop-only {
  display: none;
}
@media (min-width: 768px) {
  .nw-phone-only {
    display: none;
  }
  .nw-desktop-only {
    display: initial;
  }
}

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