/* =========================
   DIFERENCIAIS (SEM SVG - ESTÁVEL PARA PARTIAL)
   ✅ ícones com emoji
   ✅ blur só depois de page-ready
   ✅ 6 cards (sem regra errada de 5)
   ========================= */

.diferenciais-section {
  position: relative;
  padding: clamp(64px, 7vw, 112px) 0;
  background: var(--color-surface, #0a0a0a);
  overflow: hidden;
}

/* Linha dourada no final */
.diferenciais-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-secondary, #FFD700),
    transparent
  );
  opacity: 0.9;
  border-radius: 2px;
  pointer-events: none;
}

.diferenciais-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

/* Se manteve no HTML */
.diferenciais-divider {
  display: none;
}

/* HEADER */
.diferenciais-header {
  text-align: center;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.diferenciais-title {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.diferenciais-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 3px;
  background: var(--color-secondary, #FFD700);
  border-radius: 2px;
  opacity: 0.95;
}

/* GRID */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* animação leve */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CARD */
.diferencial-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;

  transition:
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease;

  animation: cardEntrance 0.45s ease both;
}

/* blur só depois do load */
body.page-ready .diferencial-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* delays (6 cards) */
.diferencial-card:nth-child(1) { animation-delay: 0.06s; }
.diferencial-card:nth-child(2) { animation-delay: 0.12s; }
.diferencial-card:nth-child(3) { animation-delay: 0.18s; }
.diferencial-card:nth-child(4) { animation-delay: 0.24s; }
.diferencial-card:nth-child(5) { animation-delay: 0.30s; }
.diferencial-card:nth-child(6) { animation-delay: 0.36s; }

.diferencial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 0;
}

.diferencial-card:hover::before {
  opacity: 0.8;
}

.diferencial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 215, 0, 0.10);
}

/* ICON */
.diferencial-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);

  margin-bottom: 16px;
  position: relative;
  z-index: 1;

  transition: transform 300ms ease, background 300ms ease, border-color 300ms ease;
}

/* emoji */
.diferencial-emoji {
  font-size: 22px;
  line-height: 1;
  transform: translateY(1px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.diferencial-card:hover .diferencial-icon {
  transform: scale(1.05);
  background: rgba(255, 215, 0, 0.10);
  border-color: rgba(255, 215, 0, 0.30);
}

/* TEXT */
.diferencial-title {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  color: var(--color-on-surface, #fff);
}

.diferencial-text {
  opacity: 0.9;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  color: var(--color-on-surface-secondary, rgba(255,255,255,0.85));
}

/* CTA */
.diferenciais-cta {
  margin-top: 60px;
}

.diferenciais-cta-card {
  border-radius: 24px;
  padding: 32px;
  text-align: center;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);

  position: relative;
  overflow: hidden;
}

.diferenciais-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary, #FFD700),
    transparent
  );
  opacity: 0.7;
}

.diferenciais-cta-card .section-subtitle {
  color: var(--color-on-surface, #fff);
}

.diferenciais-cta-card .section-content {
  color: var(--color-on-surface-secondary, rgba(255,255,255,0.85));
}

/* 🔥 CTA BUTTON – UMA LINHA SEMPRE + TEXTO MENOR */
.diferenciais-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 18px;
  padding: 16px 28px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--color-secondary, #FFD700), #FFC400);
  color: #0b0b0b;

  font-weight: 800;
  font-size: 0.92rem;      /* ✅ DIMINUIU MAIS */
  letter-spacing: 0.035em; /* ✅ leve ajuste */

  text-transform: uppercase;
  text-decoration: none;

  white-space: nowrap;   /* ✅ NÃO QUEBRA LINHA */
  flex-wrap: nowrap;     /* ✅ FLEX SEM WRAP */
  max-width: 100%;

  transition: transform 300ms ease, box-shadow 300ms ease;
  position: relative;
  overflow: hidden;
}

.diferenciais-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.30),
    transparent
  );
  transition: left 0.7s ease;
}

.diferenciais-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.30);
}

.diferenciais-cta-btn:hover::before {
  left: 100%;
}

.diferenciais-cta-note {
  margin-top: 14px;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .diferenciais-grid { gap: 20px; }
  .diferencial-card { padding: 22px 20px 20px; }
}

@media (max-width: 980px) {
  .diferenciais-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .diferenciais-grid { grid-template-columns: 1fr; gap: 16px; }
  .diferencial-card { padding: 20px 18px; }
  .diferencial-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .diferenciais-cta-card { padding: 24px 20px; }
  .diferenciais-cta-btn { padding: 14px 24px; }
}

@media (max-width: 480px) {
  .diferenciais-section { padding: 48px 0; }
  .diferenciais-header { margin-bottom: 32px; }
  .diferenciais-cta { margin-top: 48px; }
}

@media (max-width: 360px) {
  .diferenciais-cta-btn {
    font-size: 0.82rem; /* ✅ ainda menor */
    padding: 14px 20px;
  }
}

.diferencial-card { cursor: pointer; }
