/* Cookie Banner - Diseño integrado con Twinfluencer */
.klaro .cookie-notice:not(.cookie-modal-notice) {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(88, 28, 135, 0.95) 50%, rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.25);
  z-index: 999;
  position: fixed;
  animation: slideInCookie 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 1024px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) {
    border-radius: 1rem;
    position: fixed;
    right: 2rem;
    left: auto;
    bottom: 2rem;
    top: auto;
    max-width: 420px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
  }
}

@media (max-width: 1023px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 2px solid rgba(168, 85, 247, 0.6);
  }
}

.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
  padding: 1.5rem;
  margin: 0;
}

.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body p {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-weight: 400;
}

.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body a:hover {
  color: #a855f7;
  text-decoration: underline;
}

/* Botones del banner principal */
.klaro .cookie-notice .cm-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.klaro .cookie-notice .cm-btn:focus {
  outline: 2px solid rgba(168, 85, 247, 0.5);
  outline-offset: 2px;
}

/* Botón Aceptar - Estilo principal púrpura */
.klaro .cookie-notice .cm-btn.cm-btn-success {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.klaro .cookie-notice .cm-btn.cm-btn-success:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.klaro .cookie-notice .cm-btn.cm-btn-success:before {
  content: "🤖 ";
  font-size: 1rem;
}

/* Botón Configurar - Estilo secundario */
.klaro .cookie-notice .cm-btn.cm-btn-success-var {
  background: rgba(75, 85, 99, 0.8);
  color: #d1d5db;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.8rem;
  padding: 0.625rem 1.25rem;
}

.klaro .cookie-notice .cm-btn.cm-btn-success-var:hover {
  background: rgba(107, 114, 128, 0.9);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
}

/* Botón Rechazar - Minimalista */
.klaro .cookie-notice .cm-btn.cm-btn-info {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.klaro .cookie-notice .cm-btn.cm-btn-info:hover {
  background: rgba(75, 85, 99, 0.5);
  color: #d1d5db;
  border-color: rgba(156, 163, 175, 0.5);
}

/* Modal de configuración */
.klaro .cookie-modal .cm-bg {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.klaro .cookie-modal .cm-modal.cm-klaro {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(88, 28, 135, 0.95) 50%, rgba(15, 15, 15, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  box-shadow: 0 25px 80px rgba(168, 85, 247, 0.4);
  backdrop-filter: blur(20px);
}

.klaro .cookie-modal .cm-modal .cm-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding: 1.5rem;
}

.klaro .cookie-modal .cm-modal .cm-header h1 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #c084fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.klaro .cookie-modal .cm-modal .cm-body {
  padding: 1.5rem;
}

.klaro .cookie-modal .cm-modal .cm-body p {
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Interruptores personalizados */
.klaro .cookie-modal .cm-switch-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.klaro .cookie-modal .cm-list-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.klaro .cookie-modal .cm-list-description {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.4;
}

.klaro .cookie-modal .cm-list-label .slider {
  background: linear-gradient(135deg, #475569, #64748b);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  width: 50px;
  height: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.klaro .cookie-modal .cm-list-label .slider::before {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider::before {
  transform: translateX(26px);
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

/* Footer del modal */
.klaro .cookie-modal .cm-modal .cm-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding: 1.5rem;
}

.klaro .cookie-modal .cm-modal .cm-footer-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Botones del modal */
.klaro .cookie-modal .cm-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.klaro .cookie-modal .cm-btn.cm-btn-success {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.klaro .cookie-modal .cm-btn.cm-btn-success:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.klaro .cookie-modal .cm-btn.cm-btn-close {
  background: rgba(75, 85, 99, 0.8);
  color: #d1d5db;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.klaro .cookie-modal .cm-btn.cm-btn-close:hover {
  background: rgba(107, 114, 128, 0.9);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
}

/* Botón de cierre (X) */
.klaro .cookie-modal .cm-modal .hide {
  background: rgba(75, 85, 99, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d1d5db;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  top: 1rem;
  right: 1rem;
  transition: all 0.2s ease;
}

.klaro .cookie-modal .cm-modal .hide:hover {
  background: rgba(107, 114, 128, 0.8);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

.klaro .cookie-modal .cm-modal .hide svg {
  stroke: currentColor;
  width: 16px;
  height: 16px;
}

/* Animaciones mejoradas */
@keyframes slideInCookie {
  from {
    opacity: 0;
    transform: translateY(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.klaro .cookie-modal .cm-modal.cm-klaro {
  animation: modalAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Estados de carga */
.klaro .cookie-notice.loading .cm-btn,
.klaro .cookie-modal.loading .cm-btn {
  opacity: 0.7;
  cursor: wait;
  transform: none !important;
}

/* Responsive mejorado */
@media (max-width: 640px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
    padding: 1rem;
  }
  
  .klaro .cookie-notice .cm-btn {
    font-size: 0.8rem;
    padding: 0.625rem 1.25rem;
    margin-right: 0.5rem;
  }
  
  .klaro .cookie-modal .cm-modal .cm-header,
  .klaro .cookie-modal .cm-modal .cm-body,
  .klaro .cookie-modal .cm-modal .cm-footer {
    padding: 1rem;
  }
  
  .klaro .cookie-modal .cm-modal .cm-footer-buttons {
    flex-direction: column;
  }
  
  .klaro .cookie-modal .cm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Efectos de hover mejorados */
.klaro .cookie-notice .cm-btn:hover,
.klaro .cookie-modal .cm-btn:hover {
  transform: translateY(-1px);
}

.klaro .cookie-notice .cm-btn:active,
.klaro .cookie-modal .cm-btn:active {
  transform: translateY(0);
}

/* Mejoras de accesibilidad */
.klaro .cookie-modal .cm-list-input:focus + .cm-list-label .slider {
  outline: 2px solid rgba(168, 85, 247, 0.8);
  outline-offset: 2px;
}

/* Powered by - Oculto para diseño limpio */
.klaro .cookie-modal .cm-modal .cm-footer .cm-powered-by {
  display: none;
}
