/* =========================================================
   PERSPICAZ V5.1.3 — COOKIE CONSENT (BARRA HORIZONTAL FIXA)
   Corrige conflito com o seletor global `section { min-height:100vh; }`
   ========================================================= */
.cookie-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 18px;
  transform: translateX(-50%) translateY(22px);
  width: 1080px;
  max-width: calc(100vw - 32px);
  min-width: 320px;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(12,12,12,.90);
  color: #f5f2ed;
  box-shadow: 0 24px 72px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition: opacity .38s cubic-bezier(.16,1,.3,1), transform .38s cubic-bezier(.16,1,.3,1);
}

.cookie-consent.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-consent.is-leaving { opacity: 0; transform: translateX(-50%) translateY(14px); }

.cookie-consent * { box-sizing: border-box; }

.cookie-consent-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(255,105,0,.16);
  filter: blur(60px);
  pointer-events: none;
}

.cookie-consent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, #ff6900, rgba(255,105,0,0));
}

.cookie-consent-icon {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(255,144,57,.28);
  border-radius: 50%;
  background: rgba(255,105,0,.07);
  box-shadow: 0 0 24px rgba(255,105,0,.08);
}
.cookie-consent-icon::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid #ff8125;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255,105,0,.12);
}
.cookie-consent-icon span,
.cookie-consent-icon i,
.cookie-consent-icon b,
.cookie-consent-icon em {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff9a4d;
  box-shadow: 0 0 7px rgba(255,105,0,.8);
}
.cookie-consent-icon span { left: 16px; top: 14px; }
.cookie-consent-icon i { right: 15px; top: 19px; }
.cookie-consent-icon b { left: 20px; bottom: 13px; }
.cookie-consent-icon em { right: 11px; bottom: 10px; opacity: .45; }

.cookie-consent-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  align-self: center;
}
.cookie-consent-copy small {
  display: block;
  margin: 0 0 4px;
  color: #ff8125;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.cookie-consent-copy strong {
  display: block;
  margin: 0 0 4px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.cookie-consent-copy p {
  margin: 0;
  color: #aaa59e;
  font-size: .73rem;
  line-height: 1.55;
  max-width: 68ch;
}
.cookie-consent-copy a {
  display: inline-block;
  margin-top: 7px;
  color: #d8d3cc;
  font-size: .63rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.cookie-consent-copy a:hover { color: #ff8125; border-color: currentColor; }

.cookie-consent-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}
.cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  min-width: 154px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, background .25s ease;
}
.cookie-button:hover { transform: translateY(-2px); }
.cookie-button-secondary {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.025);
  color: #d5d0ca;
}
.cookie-button-secondary:hover { border-color: rgba(255,255,255,.3); }
.cookie-button-primary {
  border: 1px solid #ff6900;
  background: #ff6900;
  color: #0a0a0a;
  box-shadow: 0 8px 30px rgba(255,105,0,.13);
}
.cookie-button-primary:hover { background: #ff8732; border-color: #ff8732; }

@media (max-width: 980px) {
  .cookie-consent {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 15px 16px;
  }
  .cookie-consent-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .cookie-consent-icon::before { inset: 8px; }
  .cookie-consent-icon span { left: 13px; top: 12px; }
  .cookie-consent-icon i { right: 12px; top: 16px; }
  .cookie-consent-icon b { left: 17px; bottom: 11px; }
  .cookie-consent-icon em { right: 9px; bottom: 8px; }
  .cookie-consent-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 2px;
  }
}

@media (max-width: 620px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    transform: translateX(0) translateY(22px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
  }
  .cookie-consent.is-visible { transform: translateX(0) translateY(0); }
  .cookie-consent.is-leaving { transform: translateX(0) translateY(14px); }
  .cookie-consent-icon { display: none; }
  .cookie-consent-copy strong { font-size: .95rem; }
  .cookie-consent-copy p { font-size: .72rem; }
  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .cookie-button {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent, .cookie-button { transition: none !important; }
}
