/* ==========================================================================
   NEXO TECNOLOGIA — CSS OFICIAL DE ULTRA LUXO (PALETA HOMOLOGADA NEXO)
   Cores Oficiais: Azul Cobalto (#0060B2 / #0A84FF) & Laranja Vibrante (#F37021 / #FF7A1A)
   Base: Obsidian Tech Night (#080A10 / #0C0F17)
   ========================================================================== */

:root {
  /* Fundo Obsidian & Midnight Tech */
  --color-obsidian-950: #06070B;
  --color-obsidian-900: #090C14;
  --color-obsidian-850: #0D111D;
  --color-obsidian-800: #131826;
  --color-obsidian-700: #1B2236;
  --color-obsidian-border: rgba(255, 255, 255, 0.08);

  /* Identidade Oficial NEXO: Laranja Sunset / Flame */
  --color-nexo-orange: #F37021;
  --color-nexo-orange-hover: #FF7A1A;
  --color-nexo-orange-dark: #D45408;
  --color-nexo-orange-glow: rgba(243, 112, 33, 0.35);

  /* Identidade Oficial NEXO: Azul Cobalto / Cyber Blue */
  --color-nexo-blue: #0A84FF;
  --color-nexo-blue-deep: #0060B2;
  --color-nexo-blue-glow: rgba(10, 132, 255, 0.3);

  /* WhatsApp Oficial */
  --color-emerald-500: #25D366;
  --color-emerald-600: #128C7E;

  /* Textos */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #F1F5F9;
  --color-text-muted: #94A3B8;

  /* Fontes */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   RESET & TIPOGRAFIA
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  font-family: var(--font-sans);
  background-color: var(--color-obsidian-900);
  color: var(--color-text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-obsidian-900);
  color: var(--color-text-primary);
  line-height: 1.6;
}

::selection {
  background-color: var(--color-nexo-orange);
  color: #FFFFFF;
}

.font-serif-luxury {
  font-family: var(--font-serif);
}

.font-mono-tech {
  font-family: var(--font-mono);
}

/* Gradientes Oficiais NEXO */
.text-gradient-nexo {
  background: linear-gradient(135deg, #FFFFFF 0%, #FF8533 50%, #F37021 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 60%, #0A84FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   GLASSMORPHISM & CARDS OBSIDIAN
   -------------------------------------------------------------------------- */
.glass-obsidian {
  background: rgba(13, 17, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-obsidian-border);
}

.glass-obsidian-card {
  background: linear-gradient(180deg, rgba(19, 24, 38, 0.8) 0%, rgba(9, 12, 20, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-normal);
}

.glass-obsidian-card:hover {
  border-color: rgba(243, 112, 33, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -10px rgba(243, 112, 33, 0.12);
}

/* --------------------------------------------------------------------------
   BOTÕES DE ALTA CONVERSÃO NEXO
   -------------------------------------------------------------------------- */
.btn-nexo-primary {
  background: linear-gradient(135deg, #F37021 0%, #FF8024 100%);
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 26px var(--color-nexo-orange-glow);
  cursor: pointer;
  white-space: nowrap;
}

.btn-nexo-primary:hover {
  background: linear-gradient(135deg, #FF7A1A 0%, #FF903D 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(243, 112, 33, 0.5);
}

.btn-nexo-outline {
  background-color: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  white-space: nowrap;
}

.btn-nexo-outline:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--color-nexo-blue);
  color: #38BDF8;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   BOTÃO INTELIGENTE DE WHATSAPP (HORÁRIO REAL)
   -------------------------------------------------------------------------- */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-sans);
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

.wa-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.wa-status-dot.online {
  background-color: #00FF66;
  box-shadow: 0 0 8px #00FF66;
  animation: pulse-green 2s infinite;
}

.wa-status-dot.offline {
  background-color: #CBD5E1;
  box-shadow: none;
}

.wa-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wa-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wa-status-text {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.95;
}

.wa-btn.offline-mode {
  background-color: #0F766E;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(0, 255, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

@media (max-width: 640px) {
  .wa-widget {
    bottom: 18px;
    right: 18px;
  }
  .wa-text-box {
    display: none;
  }
  .wa-btn {
    padding: 15px;
    border-radius: 50%;
  }
}

/* --------------------------------------------------------------------------
   ABAS DO ECOSSISTEMA — 100% MOBILE FIRST (SEM CORTES)
   -------------------------------------------------------------------------- */
.tab-btn {
  width: 100%;
  padding: 10px 4px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 12px;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
  .tab-btn {
    font-size: 13px;
    padding: 11px 8px;
  }
}

@media (min-width: 640px) {
  .tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: var(--radius-full);
  }
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0A84FF 0%, #0060B2 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.45);
}

/* Range Slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  height: 8px;
  border-radius: 6px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-nexo-orange);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(243, 112, 33, 0.7);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Barra de Rolagem */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #090C14;
}

::-webkit-scrollbar-thumb {
  background: #1B2236;
  border-radius: 5px;
  border: 2px solid #090C14;
}

::-webkit-scrollbar-thumb:hover {
  background: #F37021;
}

/* ==========================================================================
   COOKIE CONSENT & REMARKETING BANNER
   ========================================================================== */
#cookie-consent-banner {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#cookie-consent-banner.banner-visible {
  display: block !important;
  animation: cookieFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookieFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-switch input:focus + div {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.35);
}

/* Prevenção de sobreposição entre WhatsApp e Banner de Cookies */
.wa-widget {
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
}

body.cookie-banner-active .wa-widget {
  bottom: 220px;
}

@media (min-width: 640px) {
  /* Em telas >= 640px (Desktop/Tablet), o Cookie Banner fica na esquerda e o WhatsApp na direita */
  body.cookie-banner-active .wa-widget {
    bottom: 24px;
  }
}


