/*
 * Explorar (`/adoptar`) en la nueva web.
 * Diseño: docs/web-usuarios/lienzo4/Explorar.dc.html (teléfono) y
 * ExplorarEscritorio.dc.html (escritorio).
 * Solo variables de tokens.css. Teléfono primero; escritorio desde 768 px.
 */

.nw-explorar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: var(--nw-page-max);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

/* ── Título, buscador y accesos ──────────────────────────────────────── */
.nw-explorar__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nw-explorar__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nw-explorar__title {
  font-size: var(--v5-text-display);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
  text-wrap: balance;
}
.nw-explorar__count {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
}

.nw-explorar__search {
  display: flex;
  align-items: center;
  min-height: var(--nw-touch);
  border: 1px solid var(--v5-border-strong);
  border-radius: var(--v5-r2);
  background: var(--v5-surface);
}
.nw-explorar__search:focus-within {
  border-color: var(--v5-primary);
  box-shadow: var(--nw-focus-ring);
}
/* 16 px: con menos, iOS acerca la página al enfocar el campo. */
.nw-explorar__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--nw-touch);
  padding: 0 0 0 14px;
  border: 0;
  border-radius: var(--v5-r2);
  background: transparent;
  color: var(--v5-ink);
  font-size: var(--v5-text-body-large);
  font-weight: 400;
  appearance: none;
}
.nw-explorar__search-input::placeholder {
  color: var(--v5-text-light);
  opacity: 1;
}
/* El foco lo muestra la caja; la propia página trae su «borrar». */
.nw-explorar__search-input:focus-visible {
  outline: none;
}
.nw-explorar__search-input::-webkit-search-cancel-button {
  display: none;
}
.nw-explorar__search-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nw-touch);
  height: var(--nw-touch);
  padding: 0;
  border: 0;
  border-radius: var(--v5-r2);
  background: transparent;
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
}
.nw-explorar__search-btn:hover {
  color: var(--v5-primary-deep);
}

/* Accesos: una fila que se desliza si no cabe. */
.nw-explorar__quick {
  display: flex;
  gap: 7px;
  margin: 0 -16px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nw-explorar__quick::-webkit-scrollbar {
  display: none;
}
.nw-explorar__pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--nw-touch);
  padding: 0 14px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
  color: var(--v5-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nw-explorar__pill:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-explorar__pill .nw-i {
  color: var(--v5-primary-deep);
  font-size: 13px;
}
.nw-explorar__pill--filters,
.nw-explorar__pill--filters:hover {
  border-color: var(--v5-ink);
  background: var(--v5-ink);
  color: var(--v5-surface);
}
.nw-explorar__pill--filters .nw-i {
  color: inherit;
}

/* ── Panel de filtros ────────────────────────────────────────────────── */
.nw-explorar__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.nw-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 14px 10px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r4);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
}
.nw-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nw-filters__title {
  font-size: var(--v5-text-section);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.nw-filters__clear {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--nw-touch);
  margin: -11px 0;
  font-size: 13px;
  font-weight: 700;
}
.nw-filters__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nw-filters__label {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-overline);
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.3;
}
.nw-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
}

/* Chip de filtro: 44 px de toque y, dentro, la pastilla que se ve. */
.nw-fchip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: var(--nw-touch);
  color: var(--v5-ink);
}
.nw-fchip[hidden] {
  display: none;
}
.nw-fchip__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}
.nw-fchip:hover {
  color: var(--v5-ink);
}
.nw-fchip:hover .nw-fchip__pill {
  background: var(--v5-surface-muted);
}
.nw-fchip:focus-visible {
  outline: none;
}
.nw-fchip:focus-visible .nw-fchip__pill {
  outline: 3px solid var(--v5-primary);
  outline-offset: 2px;
}
.nw-fchip__n {
  color: var(--v5-text-muted);
  font-size: 11.5px;
  font-weight: 700;
}
/* Sin casos con los filtros de ahora. */
.nw-fchip.is-empty .nw-fchip__pill {
  background: var(--v5-bg);
  color: var(--v5-text-light);
}
/* Marcado: relleno de tinta, o el color de su tipo de caso. */
.nw-fchip[aria-pressed='true'] .nw-fchip__pill {
  border-color: var(--nw-chip-fill);
  background: var(--nw-chip-fill);
  color: var(--v5-surface);
}
.nw-fchip[aria-pressed='true'] .nw-fchip__n {
  color: inherit;
  opacity: 0.86;
}
.nw-fchip--ink {
  --nw-chip-fill: var(--v5-ink);
}
.nw-fchip--primary {
  --nw-chip-fill: var(--v5-primary);
}
.nw-fchip--teal {
  --nw-chip-fill: var(--v5-teal-action);
}
.nw-fchip--urgent {
  --nw-chip-fill: var(--v5-tint-law-ink);
}

.nw-filters__near {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--nw-touch);
  margin: 4px 0;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r2);
  background: var(--v5-surface);
  color: var(--v5-ink);
  font-size: 13px;
  font-weight: 700;
}
.nw-filters__near:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-filters__near .nw-i {
  font-size: var(--v5-text-body);
}
.nw-filters__near[aria-pressed='true'],
.nw-filters__near[aria-pressed='true']:hover {
  border-color: var(--v5-teal-action);
  background: var(--v5-teal-action);
  color: var(--v5-surface);
}

/* Teléfono: el panel parte plegado (`data-nw-fold="phone"`) y la grilla
   queda en la primera pantalla. Lo abre «Filtros» (`data-nw-open`, lo pone
   explorar.js) o, sin JavaScript, navegar al panel o a uno de sus grupos. */
.nw-filters[data-nw-fold='phone']:not([data-nw-open]) {
  display: none;
}
.nw-explorar:not([data-nw-js]) .nw-filters:target,
.nw-explorar:not([data-nw-js]) .nw-filters:has(.nw-filters__group:target) {
  display: flex;
}
/* Abierto: de los grupos que el lienzo no dibuja, sin «Filtros» quedaría
   solo lo marcado; con el panel abierto van completos. */
.nw-filters__group--more > .nw-filters__label,
.nw-filters__group--more .nw-fchip[aria-pressed='false'],
.nw-filters__group--more .nw-fchip[data-nw-default],
.nw-filters__group.is-quiet {
  display: none;
}
/* Abierto: con «Filtros» (`data-nw-open`, lo pone explorar.js) o, sin
   JavaScript, al navegar al panel o a uno de sus grupos. */
.nw-filters[data-nw-open] .nw-filters__group--more > .nw-filters__label,
.nw-explorar:not([data-nw-js]) .nw-filters:target .nw-filters__label,
.nw-explorar:not([data-nw-js]) .nw-filters__group:target > .nw-filters__label {
  display: block;
}
.nw-filters[data-nw-open] .nw-filters__group--more .nw-fchip:not([hidden]),
.nw-explorar:not([data-nw-js]) .nw-filters:target .nw-fchip:not([hidden]),
.nw-explorar:not([data-nw-js]) .nw-filters__group:target .nw-fchip:not([hidden]) {
  display: inline-flex;
}
.nw-filters[data-nw-open] .nw-filters__group.is-quiet,
.nw-explorar:not([data-nw-js]) .nw-filters:target .nw-filters__group.is-quiet,
.nw-explorar:not([data-nw-js]) .nw-filters__group.is-quiet:target {
  display: flex;
}
.nw-filters[data-nw-open] {
  gap: 12px;
}

/* ── Grilla ──────────────────────────────────────────────────────────── */
.nw-explorar__results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
/* El match de PetFi, sobre los resultados: la familia de color de la
   Dupla (`--v5-dupla-*`). Toda la franja es un enlace, en una sola fila:
   en teléfono y tableta el botón es una flecha redonda (su texto queda
   para el lector de pantalla, y así el título cabe en una o dos líneas);
   desde 1024 px dice «Descubrir mi dupla». */
.nw-explorar__match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--v5-dupla-soft);
  border-radius: var(--v5-r3);
  background: var(--v5-dupla-soft);
  color: var(--v5-ink);
  text-decoration: none;
}
.nw-explorar__match:hover .nw-explorar__match-go {
  background: var(--v5-dupla-ink);
}
.nw-explorar__match-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
  color: var(--v5-dupla-deep);
  font-size: 20px;
}
.nw-explorar__match-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.nw-explorar__match-over {
  color: var(--v5-dupla-ink);
  font-size: var(--v5-text-overline);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nw-explorar__match-title {
  color: var(--v5-ink);
  font-size: var(--v5-text-body);
  font-weight: 700;
  line-height: 1.3;
}
.nw-explorar__match-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--nw-touch);
  height: var(--nw-touch);
  border-radius: var(--v5-r-pill);
  background: var(--v5-dupla-deep);
  color: var(--v5-surface);
  font-weight: 700;
  white-space: nowrap;
}
.nw-explorar__match-go-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .nw-explorar__match {
    padding: 8px 8px 8px 12px;
  }
}
@media (min-width: 1024px) {
  .nw-explorar__match-title {
    font-size: var(--v5-text-body-large);
  }
  .nw-explorar__match-go {
    width: auto;
    padding: 0 18px;
  }
  .nw-explorar__match-go-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}
/* Bajo el match: postular no pide cuenta. Una línea sin fondo que presenta
   la grilla (no una segunda franja), con el check de hogar temporal. */
.nw-explorar__sin-cuenta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 2px;
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
}
.nw-explorar__sin-cuenta > .nw-i {
  flex: none;
  margin-top: 1px;
  color: var(--v5-teal-action);
  font-size: 18px;
}
.nw-explorar__sin-cuenta-title {
  color: var(--v5-ink);
  font-weight: 700;
}

.nw-explorar__note {
  color: var(--v5-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.nw-explorar__note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nw-explorar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ── Fila de marca ───────────────────────────────────────────────────── */
/* `--nw-brand`, `--nw-brand-soft` y `--nw-brand-line` los pone la página
   con el color de la campaña; sin ellos la pieza usa los del design
   system. */
.nw-explore-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 6px 0 4px;
}
.nw-explore-row__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v5-text-muted);
  font-size: var(--v5-text-overline);
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.3;
}
.nw-explore-row__kicker::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--v5-border);
}
.nw-explore-row__card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 1.5px dashed var(--v5-border-strong);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
}
.nw-explore-row__image {
  min-width: 0;
  border-radius: var(--v5-r2);
  overflow: hidden;
  background: var(--nw-brand-soft, var(--v5-surface-muted));
}
.nw-explore-row__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 627;
  object-fit: cover;
}
.nw-explore-row__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.nw-explore-row__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.nw-explore-row__logo {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--v5-border);
  border-radius: var(--nw-r-xs);
  background: var(--v5-surface);
  object-fit: contain;
}
.nw-explore-row__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.nw-explore-row__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--v5-r-pill);
  background: var(--nw-brand-soft, var(--v5-primary-softer));
  color: var(--nw-brand, var(--v5-primary-deep));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.3;
}
.nw-explore-row__tag .nw-i {
  font-size: 9px;
}
.nw-explore-row__headline {
  font-size: var(--v5-text-body-large);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.nw-explore-row__text {
  color: var(--v5-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.nw-explore-row__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.nw-explore-row__benefit {
  display: flex;
}
.nw-explore-row__coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: var(--nw-touch);
  padding: 0 8px 0 14px;
  border: 1px solid var(--nw-brand-line, var(--v5-border-strong));
  border-radius: var(--v5-r-pill);
  background: var(--nw-brand-soft, var(--v5-primary-softer));
  color: var(--nw-brand, var(--v5-primary-deep));
}
.nw-explore-row__coupon .nw-i {
  font-size: 13px;
}
.nw-explore-row__code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  overflow-wrap: anywhere;
}
.nw-explore-row__copy {
  flex: none;
  padding: 5px 10px;
  border-radius: var(--v5-r-pill);
  background: var(--nw-brand, var(--v5-primary-deep));
  color: var(--v5-surface);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
.nw-explore-row__cta,
.nw-explore-row__cta:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--nw-r-md);
  background: var(--nw-brand, var(--v5-primary-deep));
  color: var(--v5-surface);
  font-size: var(--v5-text-body);
  font-weight: 700;
  text-align: center;
}
.nw-explore-row__cta .nw-i {
  font-size: 12px;
}

/* La pieza se acomoda al ancho que le toca en la grilla, no al de la
   pantalla: con una columna de filtros al lado, una pantalla mediana le
   deja menos que un teléfono acostado. Desde 560 px, la imagen va a la
   izquierda y el cupón y el botón, abajo en una fila; desde 760 px queda
   como en el lienzo de escritorio, con las acciones a la derecha. */
.nw-explore-row {
  container-type: inline-size;
}
@container (min-width: 560px) {
  .nw-explore-row__card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
  }
  .nw-explore-row__image {
    flex: 0 1 268px;
  }
  .nw-explore-row__body {
    flex: 1 1 260px;
    gap: 5px;
  }
  .nw-explore-row__actions {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  .nw-explore-row__cta,
  .nw-explore-row__cta:hover {
    min-height: var(--nw-touch);
    border-radius: var(--v5-r2);
    font-size: 13.5px;
  }
}
@container (min-width: 760px) {
  .nw-explore-row__actions {
    flex: 0 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .nw-explore-row__coupon {
    flex: 1 1 auto;
  }
  .nw-explore-row__copy {
    margin-left: auto;
  }
}

/* ── Cargar más ──────────────────────────────────────────────────────── */
.nw-explorar__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.nw-explorar__more[hidden] {
  display: none;
}
.nw-explorar__more-btn {
  width: 100%;
  min-height: 50px;
  padding: 0 36px;
  border: 1.5px solid var(--v5-border-strong);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  color: var(--v5-ink);
  font-size: 15px;
  font-weight: 700;
}
.nw-explorar__more-btn:hover {
  background: var(--v5-surface-muted);
}
.nw-explorar__status {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-label);
  font-weight: 400;
}

/* ── Estados vacíos ──────────────────────────────────────────────────── */
.nw-explorar__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.nw-explorar__empty .nw-section-title {
  color: var(--v5-ink);
  overflow-wrap: anywhere;
}
.nw-explorar__empty > .nw-i {
  color: var(--v5-border-strong);
  font-size: 28px;
}

/* ── Debajo de la grilla ─────────────────────────────────────────────── */
.nw-explorar__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
}
.nw-explorar__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nw-explorar__see-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--nw-touch);
  margin: -11px 0;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.nw-explorar__collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nw-explorar__collection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
  color: var(--v5-ink);
}
.nw-explorar__collection:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-explorar__collection-name {
  font-size: var(--v5-text-body);
  font-weight: 700;
  line-height: 1.3;
}
.nw-explorar__collection-count {
  color: var(--v5-text-muted);
  font-size: var(--v5-text-label);
  font-weight: 400;
  line-height: 1.3;
}

.nw-explorar__popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Fundaciones: una fila que se desliza, como en Inicio. */
.nw-explorar__orgs {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 4px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nw-explorar__orgs::-webkit-scrollbar {
  display: none;
}
.nw-explorar__org {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 150px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
  color: var(--v5-ink);
}
.nw-explorar__org:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-explorar__org-logo {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: var(--nw-r-sm);
  background: var(--nw-primary-tint);
  object-fit: contain;
}
.nw-explorar__org-logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--v5-primary);
  font-size: 18px;
}
.nw-explorar__org-name {
  margin-top: 10px;
  font-size: var(--v5-text-body);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.nw-explorar__org-place {
  margin-top: 2px;
  color: var(--v5-text-muted);
  font-size: var(--v5-text-label);
  font-weight: 400;
  line-height: 1.3;
}

.nw-explorar__app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r4);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
}
.nw-explorar__app-text {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--v5-text-muted);
  font-size: var(--v5-text-body);
  font-weight: 400;
  line-height: 1.45;
}
.nw-explorar__app-text p {
  max-width: 520px;
}
.nw-explorar__app-title {
  color: var(--v5-ink);
  font-size: var(--v5-text-section);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.nw-explorar__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nw-explorar__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1.5px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  color: var(--v5-ink);
  font-size: 14.5px;
  font-weight: 700;
}
.nw-explorar__store:hover {
  background: var(--v5-surface-muted);
  color: var(--v5-ink);
}
.nw-explorar__store .nw-i {
  font-size: 17px;
}
.nw-explorar__store--ios,
.nw-explorar__store--ios:hover {
  border-color: var(--v5-ink);
  background: var(--v5-ink);
  color: var(--v5-surface);
}

/* ── Aviso para pedir cuenta ─────────────────────────────────────────── */
/* Va sobre la barra inferior, como en el lienzo. */
.nw-explorar .nw-toast {
  --nw-toast-bottom: calc(var(--nw-bottom-nav-h) + 8px);
  padding: 0 12px;
}
.nw-explorar__ask {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 6px 6px 14px;
  border-radius: var(--v5-r2);
  font-size: 13px;
  font-weight: 700;
  pointer-events: auto;
}
.nw-explorar__ask > .nw-i {
  flex: none;
  color: var(--v5-amber-warm);
  font-size: 16px;
}
.nw-explorar__ask-text {
  flex: 1 1 auto;
  min-width: 0;
}
.nw-explorar__ask-link,
.nw-explorar__ask-link:hover {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--nw-touch);
  padding: 0 10px;
  color: var(--v5-amber-warm);
  font-size: 13px;
  font-weight: 700;
}

/* ── Escritorio ──────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nw-explorar {
    gap: 20px;
    padding: 28px 24px 56px;
  }

  .nw-explorar__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
  }
  .nw-explorar__titles {
    flex: 1 1 320px;
    margin-right: 12px;
  }
  .nw-explorar__search {
    flex: 0 1 260px;
  }
  .nw-explorar__search-input {
    font-size: var(--v5-text-body);
  }
  .nw-explorar__quick {
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .nw-explorar__pill {
    font-size: 12.5px;
  }
  /* El panel va siempre a la vista: no hay nada que abrir. */
  .nw-explorar__pill--filters {
    display: none;
  }
  .nw-filters[data-nw-fold='phone']:not([data-nw-open]) {
    display: flex;
  }

  .nw-explorar__layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }
  .nw-filters {
    gap: 16px;
    padding: 18px;
  }
  .nw-filters__group {
    gap: 4px;
  }
  .nw-filters__near {
    margin: 0 0 4px;
  }
  /* Todos los grupos completos, con su rótulo. */
  .nw-filters .nw-filters__group--more > .nw-filters__label {
    display: block;
  }
  .nw-filters .nw-filters__group--more .nw-fchip:not([hidden]) {
    display: inline-flex;
  }
  .nw-filters .nw-filters__group.is-quiet {
    display: flex;
  }

  .nw-explorar__results {
    gap: 16px;
  }
  /* La fila de marca ocupa una fila entera tras la 6.ª tarjeta. Con cuatro
     columnas dejaría dos huecos antes: `dense` los llena con las tarjetas
     siguientes, como en el lienzo (explorar.js mueve además la fila en el
     HTML, para que el foco siga ese mismo orden). */
  .nw-explorar__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-flow: row dense;
    gap: 16px;
  }

  .nw-explore-row {
    padding: 6px 0 0;
  }

  .nw-explorar__more {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }
  .nw-explorar__more-btn {
    width: auto;
  }

  .nw-explorar__empty {
    padding: 32px 16px;
  }

  .nw-explorar__section {
    margin-top: 12px;
  }
  .nw-explorar__see-all {
    padding: 0 8px;
  }
  .nw-explorar__collections {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .nw-explorar__orgs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .nw-explorar__org {
    width: auto;
    min-height: 132px;
  }
  .nw-explorar__app {
    margin-top: 12px;
    padding: 24px;
  }
  .nw-explorar__app-title {
    font-size: var(--v5-text-title);
    letter-spacing: -0.5px;
    line-height: 1.15;
  }

  .nw-explorar .nw-toast {
    --nw-toast-bottom: 24px;
    padding: 0 16px;
  }
  .nw-explorar__ask {
    width: auto;
    gap: 10px 14px;
    padding: 4px 6px 4px 14px;
  }
}

/* ── Escritorio ancho: el buscador y los accesos, sobre los resultados ── */
/* El título y su cifra a todo el ancho; debajo, el buscador empieza donde
   empieza la grilla (a la derecha del panel de filtros: mismas columnas y
   mismo espacio que `.nw-explorar__layout`) y los accesos terminan en su
   borde derecho. Así la fila se lee como la barra de los resultados. */
@media (min-width: 1024px) {
  .nw-explorar__head {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    grid-template-areas:
      'titles titles titles'
      'count search quick';
    align-items: center;
    gap: 14px 24px;
  }
  .nw-explorar__titles {
    grid-area: titles;
    margin-right: 0;
  }
  /* En Explorar la cifra («298 mascotas») baja a esa fila, sobre el panel
     de filtros. Las landings traen su propia cabecera y la dejan donde
     está. */
  .nw-explorar__titles:not(.nw-landing__titles) {
    display: contents;
  }
  .nw-explorar__titles:not(.nw-landing__titles) > .nw-explorar__title {
    grid-area: titles;
  }
  .nw-explorar__titles:not(.nw-landing__titles) > .nw-explorar__count {
    grid-area: count;
    font-weight: 500;
  }
  .nw-explorar__search {
    grid-area: search;
    max-width: none;
  }
  .nw-explorar__quick {
    grid-area: quick;
    flex-wrap: nowrap;
    gap: 8px;
  }
}
