/* Cookie Banner - Estilo Flutuante (Toast Notification) */
#cookieBanner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  width: 380px;
  z-index: 9999;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  opacity: 0;
  transform: translateY(120%) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  visibility: hidden;
}

#cookieBanner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.cookie-banner {
  display: block;
  padding: 18px 20px;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666677;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cookie-text p:first-child {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.cookie-text a {
  color: #0099d8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.cookie-text a:hover {
  color: #006ba3;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-reject {
  background: transparent;
  color: #666677;
  border: 1px solid #e5e7eb;
}

.cookie-btn-reject:hover {
  background: #f8f9fb;
  color: #1a1a2e;
  border-color: #d1d5db;
}

.cookie-btn-accept {
  background: #0099d8;
  color: white;
}

.cookie-btn-accept:hover {
  background: #006ba3;
  box-shadow: 0 4px 12px rgba(0, 153, 216, 0.3);
}

/* Mobile - Responsivo */
@media (max-width: 640px) {
  #cookieBanner {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
  }

  .cookie-text p {
    font-size: 12px;
  }

  .cookie-buttons {
    justify-content: space-between;
    gap: 6px;
  }

  .cookie-btn {
    padding: 6px 12px;
    font-size: 11px;
    flex: 1;
  }

  .cookie-btn-reject {
    order: 2;
  }

  .cookie-btn-accept {
    order: 1;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px) {
  #cookieBanner {
    width: 350px;
  }
}
