.cookie-consent * {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#cookie-overlay.cookie-consent {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#cookie-overlay.cookie-consent.fade-out {
  opacity: 0;
  pointer-events: none;
}

#cookie-banner.cookie-consent {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.5s ease;
  text-align: center;
}

.cookie-img.cookie-consent {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: auto;
}

.cookie-consent h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #333;
}

.cookie-consent p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.cookie-consent .buttons,
.cookie-consent .accordion {
  display: flex;
  flex-direction: column;
  gap: 0.1rem; /* 🔽 Disminuido el espacio vertical entre botones */
  align-items: center;
  width: 100%;
}

.cookie-consent .btn {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
  width: 100%;
  text-align: center;
  max-width: 100%;
}

.cookie-consent .btn.success {
  background-color: #67ac9b;
  color: white;
}
.cookie-consent .btn.success:hover {
  background-color: #218838;
}

.cookie-consent .btn.danger {
  background-color: #e67979;
  color: white;
}
.cookie-consent .btn.danger:hover {
  background-color: #c82333;
}

.cookie-consent .btn.primary {
  background-color: #3692e1;
  color: white;
}
.cookie-consent .btn.primary:hover {
  background-color: #0069d9;
}

/* Acordeón */
.cookie-consent .accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.cookie-consent .accordion.show {
  max-height: 200px;
  opacity: 1;
}

.cookie-consent .accordion .btn {
  background-color: #e3f2fd;
  color: #004085;
}
.cookie-consent .accordion .btn:hover {
  background-color: #d0e8ff;
}

.cookie-consent .cookie-link {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #007BFF;
  text-decoration: underline;
}

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