.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a5490, #2c6ab5);
  color: #fff;
  padding: 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--accent-color);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-color);
}

.cookie-banner .cookie-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 120px;
}

.cookie-banner .accept-cookies {
  background-color: var(--primary-color);
  color: white;
}

.cookie-banner .accept-cookies:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 84, 144, 0.4);
}

.cookie-banner .reject-cookies {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-banner .reject-cookies:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-banner a {
  color: var(--primary-color-light);
  text-decoration: underline;
}

/* Overlay de fondo */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
}

.cookie-overlay.visible {
  display: block;
}

/* Responsive design */
@media (max-width: 768px) {
  .cookie-banner {
    width: 95%;
    padding: 1.5rem;
    max-width: none;
  }
  
  .cookie-banner p {
    font-size: 1.1rem;
  }
  
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .cookie-banner button {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 1.2rem;
  }
  
  .cookie-banner p {
    font-size: 1rem;
  }
}