/* Anuncios de una misma tienda, con la paleta y botones de su escaparate. */
.anuncio-barra[hidden], .anuncios-escaparate[hidden], .anuncio-filtro[hidden] { display: none; }
.anuncio-barra { background: var(--accion-suave); border-bottom: 1px solid var(--borde); }
.anuncio-barra__contenido { display: flex; align-items: center; gap: 1rem; padding-block: .75rem; }
.anuncio { display: grid; gap: 1.25rem; min-width: 0; overflow-wrap: anywhere; }
.anuncio__cuerpo { display: grid; gap: .75rem; align-content: center; min-width: 0; }
.anuncio__titulo, .anuncio__texto { margin: 0; }
.anuncio__titulo { font-size: clamp(1.2rem, 3vw, 1.75rem); line-height: 1.25; }
.anuncio__texto { white-space: pre-line; }
.anuncio__imagen { display: block; width: 100%; max-height: 22rem; aspect-ratio: 16 / 9; object-fit: contain; background: var(--fondo-hundido); border-radius: var(--radio-chico); }
.anuncio__condiciones { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.anuncio__oferta { font-weight: 750; }
.anuncio__accion { justify-self: start; min-height: 44px; max-width: 100%; text-align: center; }
.anuncio--barra { display: flex; align-items: center; flex: 1; gap: 1rem; }
.anuncio--barra .anuncio__imagen { width: 4rem; height: 4rem; aspect-ratio: 1; flex: 0 0 auto; }
.anuncio--barra .anuncio__cuerpo { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.anuncio--barra .anuncio__titulo { font-size: 1rem; }
.anuncio--barra .anuncio__texto { font-size: .95rem; }
.anuncio--barra .anuncio__accion { padding-block: .5rem; }
.anuncio-barra__cerrar { flex: 0 0 auto; min-height: 44px; font-size: .875rem; }
.anuncios-escaparate { display: grid; gap: 1.5rem; margin-block: 1.5rem; }
.anuncio--escaparate { padding: clamp(1rem, 3vw, 2rem); background: var(--fondo-elevado); border: 1px solid var(--borde); border-radius: var(--radio-tesela); }
.anuncio--escaparate:has(.anuncio__imagen) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.anuncio-bienvenida { width: min(36rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100svh - 2rem); padding: 1.25rem; color: var(--texto); background: var(--fondo-elevado); border: 1px solid var(--borde); border-radius: var(--radio-tesela); overflow: auto; box-sizing: border-box; }
.anuncio-bienvenida::backdrop { background: rgb(20 15 18 / 65%); }
.anuncio-bienvenida__cerrar { display: block; margin: 0 0 1rem auto; min-height: 44px; }
.anuncio-bienvenida--alternativa { position: fixed; inset: 1rem 0 auto; margin-inline: auto; z-index: 1000; box-shadow: 0 0 0 100vmax rgb(20 15 18 / 65%); }
.anuncio-filtro { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-block: 1rem; padding: 1rem; background: var(--accion-suave); border-radius: var(--radio-chico); }
.anuncio-filtro p { margin: 0; flex: 1 1 14rem; }
@media (max-width: 640px) {
  .anuncio-barra__contenido { align-items: start; flex-wrap: wrap; gap: .5rem; }
  .anuncio-barra__cerrar { margin-left: auto; }
  .anuncio--escaparate:has(.anuncio__imagen) { grid-template-columns: 1fr; }
  .anuncio-bienvenida { padding: 1rem; }
  .anuncio-bienvenida .anuncio__imagen { max-height: 32svh; }
  .anuncio__accion { width: 100%; box-sizing: border-box; }
}
