/* ==========================================================================
   Seção Revenda Short Code - Visual Humanizado com Cards
   ========================================================================== */

.sms-revenda-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f8fbff 100%);
  position: relative;
  overflow: hidden;
}

.sms-revenda-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.sms-revenda-text {
  flex: 1;
  min-width: 0;
}

.sms-revenda-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.sms-revenda-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 35%, #00b3ff 70%, #0052d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sms-revenda-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 24px;
}

.sms-revenda-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sms-revenda-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #334155;
}

.sms-revenda-benefits svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #0077ff;
}

.sms-revenda-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
}

.sms-revenda-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.sms-revenda-cta:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Visual - Imagem + Cards Flutuantes
   ========================================================================== */

.sms-revenda-visual {
  flex-shrink: 0;
  width: 480px;
  height: 500px;
  position: relative;
}

/* Efeito de luz / glow */
.sms-revenda-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.2) 0%, rgba(0, 82, 212, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.sms-revenda-section.is-visible .sms-revenda-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Linhas decorativas de fundo */
.sms-revenda-deco-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sms-revenda-deco-line {
  position: absolute;
  border: 2px solid rgba(0, 82, 212, 0.08);
  border-radius: 24px;
}

.sms-revenda-deco-line--top {
  top: 0;
  right: 10px;
  width: 180px;
  height: 120px;
  border-bottom: none;
  border-left: none;
  border-bottom-right-radius: 0;
  border-top-left-radius: 0;
}

.sms-revenda-deco-line--bottom {
  bottom: 60px;
  left: 20px;
  width: 160px;
  height: 140px;
  border-top: none;
  border-right: none;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Imagem principal */
.sms-revenda-hero-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sms-revenda-section.is-visible .sms-revenda-hero-img {
  opacity: 1;
  transform: scale(1);
}

.sms-revenda-hero-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.1));
}

/* ==========================================================================
   Cards Flutuantes - Estilo Unificado
   ========================================================================== */

.sms-revenda-float-card {
  position: absolute;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0, 82, 212, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 82, 212, 0.06);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(16px);
}

/* Aparece quando seção está visível */
.sms-revenda-section.is-visible .sms-revenda-float-card {
  opacity: 1;
  transform: translateY(0);
}

.sms-revenda-float-card:hover {
  box-shadow:
    0 8px 32px rgba(0, 82, 212, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* Ícones dos cards */
.sms-revenda-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sms-revenda-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.sms-revenda-card-icon--green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.sms-revenda-card-icon--purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.sms-revenda-card-icon--blue {
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 100%);
}

/* Info dos cards */
.sms-revenda-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sms-revenda-card-value {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.sms-revenda-card-value--green {
  color: #10b981;
}

.sms-revenda-card-value--purple {
  color: #7c3aed;
}

.sms-revenda-card-value--blue {
  color: #0052d4;
}

.sms-revenda-card-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}

/* Posições, delays e brilho dos cards */
.sms-revenda-card--margin {
  top: 20px;
  right: 0;
  transition-delay: 0.3s;
  box-shadow:
    0 4px 24px rgba(16, 185, 129, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sms-revenda-card--margin:hover {
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sms-revenda-card--clients {
  top: 140px;
  left: -30px;
  transition-delay: 0.5s;
  box-shadow:
    0 4px 24px rgba(124, 58, 237, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sms-revenda-card--clients:hover {
  box-shadow:
    0 8px 32px rgba(124, 58, 237, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sms-revenda-card--panel {
  bottom: 120px;
  right: -10px;
  box-shadow:
    0 4px 24px rgba(0, 82, 212, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sms-revenda-card--panel:hover {
  box-shadow:
    0 8px 32px rgba(0, 82, 212, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Flutuação suave após aparecer */
.sms-revenda-section.is-visible .sms-revenda-card--margin {
  animation: smsFloatGentle 6s ease-in-out 1.3s infinite;
}

.sms-revenda-section.is-visible .sms-revenda-card--clients {
  animation: smsFloatGentle 7s ease-in-out 1.5s infinite;
}

.sms-revenda-section.is-visible .sms-revenda-card--panel {
  animation: smsFloatGentle 5.5s ease-in-out 1.7s infinite;
}

@keyframes smsFloatGentle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   Mini avatares de parceiros
   ========================================================================== */

.sms-revenda-partners {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex;
  align-items: center;
  z-index: 4;
  background: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  gap: 6px;
  opacity: 0;
  transition: opacity 1s ease 0.9s, transform 1s ease 0.9s;
}

.sms-revenda-section.is-visible .sms-revenda-partners {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sms-revenda-partner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.sms-revenda-partner:first-child {
  margin-left: 0;
}

.sms-revenda-partner:hover {
  transform: scale(1.1);
  z-index: 5;
}

.sms-revenda-partner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sms-revenda-partner--count {
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
}

.sms-revenda-partner--count span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.sms-revenda-partners-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
  margin-left: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   Dark Theme
   ========================================================================== */

[data-theme="dark"] .sms-revenda-section {
  background: var(--sms-gradient-section);
}



[data-theme="dark"] .sms-revenda-desc {
  color: #94a3b8;
}

[data-theme="dark"] .sms-revenda-benefits li {
  color: #cbd5e1;
}

[data-theme="dark"] .sms-revenda-benefits svg {
  stroke: #60a5fa;
}

[data-theme="dark"] .sms-revenda-glow {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(56, 189, 248, 0.06) 40%, transparent 70%);
}

[data-theme="dark"] .sms-revenda-deco-line {
  border-color: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .sms-revenda-float-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(96, 165, 250, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .sms-revenda-float-card:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sms-revenda-card--margin {
  box-shadow:
    0 4px 24px rgba(52, 211, 153, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sms-revenda-card--margin:hover {
  box-shadow:
    0 8px 32px rgba(52, 211, 153, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sms-revenda-card--clients {
  box-shadow:
    0 4px 24px rgba(167, 139, 250, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sms-revenda-card--clients:hover {
  box-shadow:
    0 8px 32px rgba(167, 139, 250, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sms-revenda-card--panel {
  box-shadow:
    0 4px 24px rgba(96, 165, 250, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sms-revenda-card--panel:hover {
  box-shadow:
    0 8px 32px rgba(96, 165, 250, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sms-revenda-card-value--green {
  color: #34d399;
}

[data-theme="dark"] .sms-revenda-card-value--purple {
  color: #a78bfa;
}

[data-theme="dark"] .sms-revenda-card-value--blue {
  color: #60a5fa;
}

[data-theme="dark"] .sms-revenda-card-label {
  color: #94a3b8;
}

[data-theme="dark"] .sms-revenda-partners {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .sms-revenda-partner {
  border-color: #1e293b;
}

[data-theme="dark"] .sms-revenda-partners-label {
  color: #94a3b8;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .sms-revenda-visual {
    width: 420px;
    height: 460px;
  }

  .sms-revenda-card--clients {
    left: -20px;
  }

  .sms-revenda-glow {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 992px) {
  .sms-revenda-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .sms-revenda-benefits {
    align-items: center;
  }

  .sms-revenda-visual {
    width: 100%;
    max-width: 440px;
    height: 440px;
  }

  .sms-revenda-card--margin {
    top: 10px;
    right: 10px;
  }

  .sms-revenda-card--clients {
    left: 10px;
    top: 120px;
  }

  .sms-revenda-card--panel {
    right: 5px;
    bottom: 100px;
  }
}

@media (max-width: 768px) {
  .sms-revenda-section {
    padding: 64px 0;
  }

  .sms-revenda-title {
    font-size: 2rem;
  }

  .sms-revenda-desc {
    font-size: 1rem;
  }

  .sms-revenda-visual {
    height: 400px;
  }

  .sms-revenda-glow {
    width: 220px;
    height: 220px;
  }

  .sms-revenda-float-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .sms-revenda-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .sms-revenda-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .sms-revenda-card-value {
    font-size: 1rem;
  }

  .sms-revenda-card-label {
    font-size: 0.65rem;
  }

  .sms-revenda-partner {
    width: 32px;
    height: 32px;
  }

  .sms-revenda-partners {
    padding: 8px 14px;
  }

  .sms-revenda-deco-line--top {
    width: 140px;
    height: 100px;
  }

  .sms-revenda-deco-line--bottom {
    width: 130px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .sms-revenda-section {
    padding: 48px 0;
  }

  .sms-revenda-title {
    font-size: 1.75rem;
  }

  .sms-revenda-benefits li {
    font-size: 0.9rem;
    text-align: left;
  }

  .sms-revenda-visual {
    height: 360px;
  }

  .sms-revenda-glow {
    width: 180px;
    height: 180px;
  }

  .sms-revenda-float-card {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .sms-revenda-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .sms-revenda-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .sms-revenda-card-value {
    font-size: 0.9rem;
  }

  .sms-revenda-card-label {
    font-size: 0.6rem;
  }

  .sms-revenda-card--margin {
    top: 5px;
    right: 5px;
  }

  .sms-revenda-card--clients {
    top: 90px;
    left: 0;
  }

  .sms-revenda-card--panel {
    right: 0;
    bottom: 80px;
  }

  .sms-revenda-partner {
    width: 28px;
    height: 28px;
    margin-left: -8px;
  }

  .sms-revenda-partners {
    padding: 6px 12px;
  }

  .sms-revenda-partners-label {
    font-size: 0.6rem;
  }

  .sms-revenda-deco-lines {
    display: none;
  }
}