/**
 * Estilos para Sistema de Cookies - Archivo NOB
 * Diseño moderno y responsive
 */

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(211, 47, 47, 0.1) 100%);
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 12px;
}

.cookie-banner-icon .material-symbols-outlined {
  font-size: 28px;
  color: #D32F2F;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.cookie-banner-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #D1D5DB;
  margin: 0;
}

.cookie-banner-link {
  color: #D32F2F;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-banner-link:hover {
  color: #EF5350;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Botones */
.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #EF5350 0%, #D32F2F 100%);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
  transform: translateY(-1px);
}

.cookie-btn-primary:active {
  transform: translateY(0);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Panel de Preferencias */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-preferences-visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-preferences-content {
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-preferences-visible .cookie-preferences-content {
  transform: scale(1);
}

.cookie-preferences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preferences-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cookie-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-close-btn .material-symbols-outlined {
  font-size: 20px;
}

.cookie-preferences-body {
  padding: 1.5rem;
}

.cookie-preference-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s;
}

.cookie-preference-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.cookie-preference-info {
  flex: 1;
}

.cookie-preference-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.cookie-preference-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9CA3AF;
  margin: 0;
}

/* Switch Toggle */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #D32F2F;
  border-color: #D32F2F;
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-switch-disabled {
  opacity: 0.6;
}

.cookie-preferences-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-icon {
    align-self: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-preference-item {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-switch {
    align-self: flex-start;
  }

  .cookie-preferences-content {
    max-height: 95vh;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.75rem;
  }

  .cookie-banner-title {
    font-size: 1rem;
  }

  .cookie-banner-description {
    font-size: 0.8125rem;
  }

  .cookie-preferences-header,
  .cookie-preferences-body,
  .cookie-preferences-footer {
    padding: 1rem;
  }
}

/* Scrollbar personalizado para panel de preferencias */
.cookie-preferences-content::-webkit-scrollbar {
  width: 8px;
}

.cookie-preferences-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.cookie-preferences-content::-webkit-scrollbar-thumb {
  background: rgba(211, 47, 47, 0.5);
  border-radius: 4px;
}

.cookie-preferences-content::-webkit-scrollbar-thumb:hover {
  background: rgba(211, 47, 47, 0.7);
}

