/* =========================================================
   SECCIÓN RESELLERS / DISTRIBUIDORES PREMIUM
========================================================= */

.resellers {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   LUCES DE FONDO / EFECTOS AMBIENTE
========================================================= */

.resellers::before,
.resellers::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.resellers::before {
  width: 520px;
  height: 520px;

  left: -180px;
  top: 120px;

  background:
    radial-gradient(
      circle,
      rgba(255, 59, 141, 0.12),
      transparent 68%
    );
}

.resellers::after {
  width: 460px;
  height: 460px;

  right: -180px;
  bottom: 100px;

  background:
    radial-gradient(
      circle,
      rgba(255, 138, 0, 0.1),
      transparent 68%
    );
}

/* =========================================================
   CONTENEDOR DE HERRAMIENTAS
========================================================= */

.reseller-tools {
  position: relative;
  z-index: 20;

  display: grid;
  gap: 18px;

  margin-bottom: 22px;
}

/* =========================================================
   BUSCADOR
========================================================= */

.reseller-search {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
}

.reseller-input-box {
  position: relative;
}

.reseller-input-box span {
  position: absolute;

  left: 22px;
  top: 50%;

  transform: translateY(-50%);

  color: rgba(255,255,255,0.45);

  font-size: 1.1rem;

  pointer-events: none;
}

/* =========================================================
   INPUTS / BOTONES
========================================================= */

.reseller-input-box input,
.custom-select-trigger,
.reseller-search button,
.reseller-clear-btn {
  width: 100%;
  min-height: 62px;

  border-radius: 22px;

  border:
    1px solid rgba(255,255,255,0.09);

  outline: none;

  color: white;
  font-weight: 900;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );

  box-shadow:
    0 18px 45px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05);

  transition: 0.3s ease;
}

.reseller-input-box input {
  padding: 0 22px 0 58px;
}

.reseller-input-box input::placeholder {
  color: rgba(255,255,255,0.42);
}

.reseller-input-box input:focus,
.custom-select-trigger:focus {
  border-color:
    rgba(255, 80, 170, 0.45);

  box-shadow:
    0 0 0 4px rgba(255, 59, 141, 0.12),
    0 18px 45px rgba(0,0,0,0.32);
}

/* =========================================================
   BOTONES PRINCIPALES
========================================================= */

.reseller-search button,
.reseller-clear-btn {
  cursor: pointer;

  background:
    linear-gradient(
      135deg,
      var(--pink),
      var(--orange)
    );
}

.reseller-search button:hover,
.reseller-clear-btn:hover {
  transform: translateY(-4px);

  box-shadow:
    0 22px 55px rgba(0,0,0,0.45),
    0 0 28px rgba(255, 59, 141, 0.2);
}

/* =========================================================
   FILTROS
========================================================= */

.reseller-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 160px;
  gap: 14px;
}

/* =========================================================
   SELECT CUSTOM
========================================================= */

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;

  cursor: pointer;
}

.select-icon {
  margin-right: 10px;
}

/* bandera pequeña del select */

.select-flag {
  width: 22px;
  height: 16px;

  object-fit: cover;

  border-radius: 4px;
}

.select-label {
  flex: 1;
  text-align: left;
}

.select-arrow {
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

/* =========================================================
   MENÚ DROPDOWN
========================================================= */

.custom-select-menu {
  position: absolute;

  top: calc(100% + 12px);
  left: 0;

  width: 100%;
  max-height: 330px;

  overflow-y: auto;

  padding: 10px;

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      #11111a,
      #09090f
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 30px 70px rgba(0,0,0,0.65);

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(-12px)
    scale(0.96);

  transition: 0.3s ease;

  z-index: 9999;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(0)
    scale(1);
}

/* =========================================================
   OPCIONES DEL DROPDOWN
========================================================= */

.custom-option {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 50px;

  padding: 0 14px;

  border-radius: 14px;

  color: white;
  font-weight: 800;

  cursor: pointer;

  background: transparent;
  border: 0;

  text-align: left;

  white-space: nowrap;

  transition: 0.25s ease;
}

.custom-option:hover {
  background:
    linear-gradient(
      135deg,
      rgba(255,59,141,0.24),
      rgba(255,138,0,0.18)
    );
}

/* banderas reales del dropdown */

.option-flag {
  width: 24px;
  height: 18px;

  object-fit: cover;

  border-radius: 4px;

  flex-shrink: 0;

  box-shadow:
    0 0 10px rgba(255,255,255,0.12);
}

/* =========================================================
   TEXTO RESUMEN
========================================================= */

.reseller-summary {
  position: relative;
  z-index: 2;

  margin: 18px 0 24px;

  color: var(--muted);

  font-weight: 800;
}

/* =========================================================
   GRID PRINCIPAL
========================================================= */

.reseller-directory {
  position: relative;
  z-index: 2;

  display: grid;
  gap: 14px;
}

/* =========================================================
   CARD DISTRIBUIDOR
========================================================= */

.reseller-profile {
  position: relative;

  display: grid;
  grid-template-columns: 90px 1fr auto;

  gap: 20px;
  align-items: center;

  padding: 20px 22px;

  border-radius: 28px;

  border:
    1px solid rgba(255,255,255,0.08);

  background:
    radial-gradient(
      circle at top right,
      rgba(255, 59, 141, 0.12),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );

  box-shadow:
    0 18px 50px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.05);

  overflow: hidden;

  transition: 0.35s ease;

  animation:
    resellerReveal 0.55s cubic-bezier(.2,.9,.2,1);
}

/* orb glow */

.reseller-profile::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  right: -110px;
  bottom: -130px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,138,0,0.16),
      transparent 68%
    );

  pointer-events: none;
}

/* hover */

.reseller-profile:hover {
  transform:
    translateY(-8px)
    rotateX(3deg);

  border-color:
    rgba(255,255,255,0.22);

  box-shadow:
    0 36px 90px rgba(0,0,0,0.62),
    0 0 36px rgba(255, 59, 141, 0.14);
}

/* =========================================================
   BANDERA PRINCIPAL
========================================================= */

.reseller-flag {
  width: 72px;
  height: 72px;

  overflow: hidden;

  display: grid;
  place-items: center;

  border-radius: 22px;

  background:
    rgba(255,255,255,0.06);

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.04);

  position: relative;
  z-index: 2;
}

.reseller-flag img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: inherit;
}

/* =========================================================
   INFO
========================================================= */

.reseller-info {
  position: relative;
  z-index: 2;
}

.reseller-info h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.reseller-country {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* =========================================================
   MÉTODOS DE PAGO
========================================================= */

.payment-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-chip {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 7px 13px;

  border-radius: 999px;

  color: #fff;

  font-size: 0.78rem;
  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.04)
    );

  border:
    1px solid rgba(255,255,255,0.1);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 24px rgba(0,0,0,0.24);

  overflow: hidden;

  transition: 0.3s ease;
}

.payment-chip::before {
  content: "•";

  color: var(--orange);

  font-size: 1rem;

  text-shadow:
    0 0 12px rgba(255,138,0,0.65);
}

.payment-chip:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      rgba(255,80,170,0.18),
      rgba(255,138,0,0.14)
    );
}

/* =========================================================
   BOTONES CONTACTO
========================================================= */

.reseller-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;

  position: relative;
  z-index: 2;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 118px;

  padding: 10px 14px;

  border-radius: 12px;

  color: white;

  font-size: 0.86rem;
  font-weight: 900;

  border:
    1px solid rgba(255,255,255,0.08);

  transition: 0.3s ease;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 24px rgba(0,0,0,0.22);
}

.contact-btn img {
  width: 18px;
  height: 18px;

  object-fit: contain;

  filter:
    brightness(0)
    invert(1);

  transition: 0.3s ease;
}

.contact-btn:hover img {
  transform: scale(1.08);
}

/* whatsapp */

.whatsapp-btn {
  background:
    linear-gradient(
      135deg,
      rgba(0,255,110,0.16),
      rgba(0,120,60,0.12)
    );

  border-color:
    rgba(0,255,110,0.24);
}

/* telegram */

.telegram-btn {
  background:
    linear-gradient(
      135deg,
      rgba(0,170,255,0.16),
      rgba(0,80,160,0.12)
    );

  border-color:
    rgba(0,170,255,0.25);
}

/* email */

.email-btn {
  background:
    linear-gradient(
      135deg,
      rgba(170,80,255,0.18),
      rgba(100,40,180,0.12)
    );

  border-color:
    rgba(170,80,255,0.25);
}

.contact-btn:hover {
  transform:
    translateY(-3px)
    scale(1.04);

  filter: brightness(1.15);
}

/* =========================================================
   BOTÓN VER MÁS / VER MENOS
========================================================= */

.reseller-more {
  display: flex;
  justify-content: center;

  margin-top: 24px;
}

.reseller-more-btn,
.reseller-less-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-width: 240px;
  min-height: 64px;

  padding: 0 28px;

  border: 0;
  cursor: pointer;

  border-radius: 22px;

  color: white;

  font-size: 0.96rem;
  font-weight: 900;

  overflow: hidden;

  transition: 0.35s ease;

  background:
    linear-gradient(
      135deg,
      rgba(255,80,170,0.22),
      rgba(255,138,0,0.18)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 20px 45px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* glow */

.reseller-more-btn::before,
.reseller-less-btn::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.22),
      transparent 70%
    );

  top: -80px;
  left: -40px;

  pointer-events: none;
}

/* hover */

.reseller-more-btn:hover,
.reseller-less-btn:hover {
  transform:
    translateY(-5px)
    scale(1.03);

  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 28px rgba(255,80,170,0.18);
}

/* badge */

.reseller-more-btn span,
.reseller-less-btn span {
  min-width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.14);

  border:
    1px solid rgba(255,255,255,0.08);

  font-size: 0.82rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* =========================================================
   EMPTY STATE
========================================================= */

.no-resellers {
  padding: 28px;

  border-radius: 26px;

  text-align: center;

  color: var(--muted);

  background:
    rgba(255,255,255,0.06);

  border:
    1px solid var(--border);
}

/* =========================================================
   ANIMACIÓN APARICIÓN
========================================================= */

@keyframes resellerReveal {
  from {
    opacity: 0;

    transform:
      translateY(22px)
      scale(0.96);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}