/* ==========================================================================
   nixyGT - Cookie Banner & Preferences Modal (Dark Mode & Glassmorphism)
   ========================================================================== */

.cookie-banner-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  max-width: 480px;
  width: calc(100% - 48px);
  z-index: 180;
  background: rgba(14, 14, 18, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner-container.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cookie-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.cookie-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cookie-policy-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cookie-policy-link:hover {
  color: #d4d4d8;
}

.cookie-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.cookie-actions-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cookie-accept {
  padding: 8px 18px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-accept:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.btn-cookie-reject {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-cookie-settings {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-cookie-settings:hover {
  color: #ffffff;
}

/* ==========================================================================
   Cookie Preferences Modal (Configuración de Cookies)
   ========================================================================== */
.cookie-prefs-card {
  max-width: 520px;
}

.cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}

.cookie-pref-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-pref-info h5 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.cookie-pref-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Switch Toggle UI */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: #ffffff;
}

input:checked + .slider-round:before {
  transform: translateX(20px);
  background-color: #000000;
}

input:disabled + .slider-round {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .cookie-banner-container {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    padding: 18px;
  }
}
