/* =============================================
   FULL DISTRIBUIDORES - Widget self-contained
   Prefijo: .rtp- / .rtp-card__
   ============================================= */

.rtp-wrapper {
  /* background-color: #1e8c2f; */
  /* border-radius: 24px; */
  /* padding: 28px 24px 32px; */
  /* font-family: "Segoe UI", Arial, sans-serif; */
  /* max-width: 960px; */

  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Filter bar dentro del wrapper verde ── */
.rtp-wrapper .filter-bar {
  margin-bottom: 28px;
}

/* ── Región título ── */
.rtp-wrapper .rtp-region-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #d4f54a !important;
  margin: 0 0 14px 4px !important;
  line-height: 1.3 !important;
}

/* ── Lista ── */
.rtp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.rtp-region-group:last-child .rtp-list {
  margin-bottom: 0;
}

/* ── Card ── */
.rtp-card {
  background-color: #fbf7db;
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 96px;
}

/* Logo área */
.rtp-card__logo-wrap {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  background-color: #fff;
  min-height: 96px;
}

.rtp-card__logo-wrap img {
  max-width: 150px;
  max-height: 65px;
  object-fit: contain;
  display: block;
}

.rtp-card__logo-placeholder {
  width: 110px;
  height: 55px;
  background: #e8e8d8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
  text-align: center;
  padding: 4px;
}

/* Separador vertical */
.rtp-card__divider {
  width: 1px;
  align-self: stretch;
  background-color: #e0ddbc;
  flex-shrink: 0;
}

/* Info área */
.rtp-card__info {
  flex: 1;
  padding: 16px 18px;
}

.rtp-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.rtp-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.rtp-card__badge-sep {
  color: #aaa;
  font-size: 0.85rem;
}

.rtp-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #555;
  font-weight: 500;
}

.rtp-card__badge-icon {
  width: 16px;
  height: 16px;
  background-color: #1e8c2f;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rtp-card__badge-icon::after {
  content: "✓";
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

/* Tags */
.rtp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rtp-tag {
  background-color: #ffffff;
  /* border: 1px solid #ddd9b8; */
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 0.72rem;
  color: #444;
  white-space: nowrap;
}

/* Botón comprar */
.rtp-card__action {
  flex: 0 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.rtp-btn-comprar {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

a.rtp-btn-comprar:hover {
  background-color: #a4e61b;
  color: black;
}
a.rtp-btn-comprar:hover .rtp-btn-comprar__arrow {
  transform: translateX(7px);
}

.rtp-btn-comprar__arrow {
  width: 26px;
  height: 26px;
  background-color: #d4f54a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.rtp-btn-comprar__arrow svg {
  width: 13px;
  height: 13px;
}

/* Mensaje vacío */
.rtp-empty {
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .rtp-wrapper {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .rtp-card {
    flex-direction: column;
    align-items: stretch;
  }

  .rtp-card__logo-wrap {
    flex: none;
    min-height: 75px;
    padding: 14px;
    border-bottom: 1px solid #e0ddbc;
  }

  .rtp-card__divider {
    display: none;
  }

  .rtp-card__info {
    padding: 12px 14px;
  }

  .rtp-card__action {
    padding: 0 14px 14px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .rtp-btn-comprar {
    width: 100%;
    justify-content: center;
  }
}
