.favoritos-modulo {
  min-height: 70vh;
  padding: 2.5rem 1.25rem 3.5rem;
  background: #f6f7f9;
}

.favoritos-contenedor {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.favoritos-encabezado {
  margin-bottom: 1.5rem;
}

.favoritos-etiqueta {
  color: #e63946;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.favoritos-encabezado h1 {
  margin: 0.2rem 0 0;
  color: #202329;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 850;
}

.favoritos-encabezado p {
  margin: 0.35rem 0 0;
  color: #71767e;
  font-size: 0.92rem;
}

.favoritos-estado-sesion {
  padding: 3.5rem 1rem;
  border: 1px dashed #d5d8de;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.favoritos-estado-sesion i {
  color: #e63946;
  font-size: 2.5rem;
}

.favoritos-estado-sesion h2 {
  margin: 0.8rem 0 0;
  color: #25282d;
  font-size: 1.25rem;
}

.favoritos-estado-sesion p {
  margin: 0.35rem 0 0;
  color: #777c84;
  font-size: 0.86rem;
}

.favoritos-seccion {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e7e9ed;
  border-radius: 16px;
  background: #fff;
}

.favoritos-seccion:last-child {
  margin-bottom: 0;
}

.favoritos-seccion-encabezado {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.favoritos-seccion-encabezado > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.favoritos-seccion-icono {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e63946;
  background: #fff0f0;
  border-radius: 12px;
  font-size: 1.15rem;
}

.favoritos-seccion-encabezado h2 {
  margin: 0;
  color: #25282d;
  font-size: 1.15rem;
  font-weight: 800;
}

.favoritos-seccion-encabezado p {
  margin: 0.2rem 0 0;
  color: #777c84;
  font-size: 0.76rem;
}

.favoritos-total {
  flex: 0 0 auto;
  padding: 0.32rem 0.65rem;
  color: #555b64;
  background: #f2f3f5;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.favoritos-tiendas-listado {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.favoritos-productos-listado {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.favoritos-tienda-card,
.favoritos-producto-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e9ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.favoritos-tienda-card:hover,
.favoritos-producto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(17, 24, 39, 0.11);
}

.favoritos-tienda-banner {
  height: 145px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #252932, #e63946);
}

.favoritos-tienda-banner img,
.favoritos-producto-media img,
.favoritos-tienda-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.favoritos-tienda-banner > i,
.favoritos-producto-media > i {
  font-size: 2rem;
}

.favoritos-imagen-error::after {
  content: "Sin imagen";
  color: #9298a1;
  font-size: 0.7rem;
}

.favoritos-tienda-banner.favoritos-imagen-error::after {
  color: rgba(255, 255, 255, 0.85);
}

.favoritos-tienda-contenido {
  padding: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.favoritos-tienda-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e63946;
  background: #fff0f0;
  border: 1px solid #e8e9ed;
  border-radius: 50%;
}

.favoritos-tienda-datos {
  min-width: 0;
  flex: 1;
}

.favoritos-tienda-datos h3,
.favoritos-producto-contenido h3 {
  margin: 0;
  color: #282b30;
  font-size: 0.95rem;
  font-weight: 800;
}

.favoritos-tienda-datos h3 a {
  color: inherit;
  text-decoration: none;
}

.favoritos-tienda-datos h3 a:hover {
  color: #c1121f;
  text-decoration: underline;
}

.favoritos-tienda-datos > p,
.favoritos-producto-descripcion {
  margin: 0.4rem 0 0.7rem;
  display: -webkit-box;
  overflow: hidden;
  color: #747981;
  font-size: 0.74rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.favoritos-tienda-detalles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}

.favoritos-tienda-detalles span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #676d75;
  font-size: 0.68rem;
}

.favoritos-tienda-detalles i {
  color: #e63946;
}

.favoritos-tienda-enlace {
  margin-top: 0.7rem;
  display: inline-flex;
  padding: 0.38rem 0.7rem;
  color: #fff;
  background: #e63946;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
}

.favoritos-tienda-enlace:hover {
  color: #fff;
  background: #c1121f;
}

/* Tipos de atencion asociados con cada tienda o producto favorito. */
.favoritos-tipos-atencion {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.favoritos-tipos-atencion span {
  padding: 0.18rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #8b2934;
  background: #fff0f1;
  border: 1px solid #f3c9ce;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.2;
}

.favoritos-tipos-atencion i {
  color: #e63946;
}

.favoritos-producto-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a2a7af;
  background: #eef0f3;
}

.favoritos-producto-promocion {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  max-width: calc(100% - 4rem);
  overflow: hidden;
  padding: 0.25rem 0.5rem;
  color: #fff;
  background: #e63946;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.favoritos-producto-contenido {
  padding: 0.85rem;
}

.favoritos-producto-negocio {
  margin: 0.3rem 0 0;
  color: #e63946;
  font-size: 0.7rem;
  font-weight: 750;
}

.favoritos-producto-pie {
  padding-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #eff0f2;
}

.favoritos-producto-pie strong {
  color: #e63946;
  font-size: 0.95rem;
}

.favoritos-producto-pie span,
.favoritos-producto-pie a {
  color: #71767e;
  font-size: 0.65rem;
  font-weight: 700;
}

.favoritos-producto-pie a {
  text-decoration: none;
}

.favoritos-producto-pie a:hover {
  color: #c1121f;
  text-decoration: underline;
}

.favoritos-estado {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.2rem 1rem;
  color: #757b83;
  background: #fafbfc;
  border: 1px dashed #d8dbe0;
  border-radius: 11px;
  font-size: 0.82rem;
  text-align: center;
}

.favoritos-estado a {
  color: #e63946;
  font-weight: 750;
}

.favoritos-btn-ver-mas {
  margin: 1.15rem auto 0;
  padding: 0.58rem 1.15rem;
  display: block;
  color: #e63946;
  background: #fff;
  border: 1px solid #e63946;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.favoritos-btn-ver-mas:hover {
  color: #fff;
  background: #e63946;
}

@media (max-width: 991.98px) {
  .favoritos-productos-listado {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .favoritos-tiendas-listado {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .favoritos-productos-listado {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .favoritos-modulo {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .favoritos-seccion {
    padding: 0.9rem;
  }

  .favoritos-seccion-encabezado {
    align-items: flex-start;
    flex-direction: column;
  }

  .favoritos-tiendas-listado,
  .favoritos-productos-listado {
    grid-template-columns: 1fr;
  }
}
