/* Updated: 2026-02-05 - CSS Optimization */
/**
 * Cookie Consent Banner Styles
 * Card flotante en esquina inferior izquierda
 * Sin interferencia de animaciones de scroll
 */

.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  background: var(--bg-card, #1a2332);
  color: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: var(--z-cookie-banner, 1002);

  /* Mostrar siempre hasta interacción del usuario */
  opacity: 1;
  transform: none;
  animation: none !important;
  transition: none;
}

/* Botón de cerrar */
.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cookie-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Contenido */
.cookie-content {
  margin-bottom: 16px;
  padding-right: 24px;
}

.cookie-text {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-link {
  color: var(--text-realce, #3b82f6);
  text-decoration: underline;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.cookie-link:hover {
  color: #60a5fa;
}

/* Acciones */
.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-accept {
  background: var(--text-realce, #3b82f6);
  color: #ffffff;
}

.cookie-accept:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-decline {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Dark Theme Support */
body.dark-theme .cookie-consent-banner {
  background: var(--dark-bg2, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
