.dark {
  --color-dark-base: #0f0802;
  --color-dark-surface: #1a0f04;
  --color-dark-elevated: #241508;
  --color-dark-text: #f5e6d0;
}

html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.aos {
  opacity: 0;
  transform: translateY(30px);
}

.aos-fade {
  opacity: 0;
}

.aos.animated {
  animation: fade-in-up 0.6s ease forwards;
}

.aos-fade.animated {
  animation: fade-in 0.6s ease forwards;
}

.aos-delay-1 {
  animation-delay: 0.1s;
}

.aos-delay-2 {
  animation-delay: 0.2s;
}

.aos-delay-3 {
  animation-delay: 0.3s;
}

.aos-delay-4 {
  animation-delay: 0.4s;
}

#header.scroll {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#faq details > summary {
  margin: -1.25rem;
  padding: 1.25rem;
}

.dark #header.scroll {
  background-color: rgba(3, 7, 18, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .aos, .aos-fade {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.download-actions {
  align-items: flex-start !important;
}

.download-actions .btn-secondary {
  white-space: normal;
  line-height: 1.35;
  width: max-content;
}

/* Estilos de Ediciones ChurrOS (Niri & XFCE) */
.badge-edition {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.dark .badge-edition {
  background-color: rgba(67, 20, 7, 0.6);
  color: #fdba74;
  border: 1px solid rgba(194, 65, 12, 0.5);
}

.btn-edition-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #ea580c;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1.6rem;
  border-radius: 0.6rem;
  border: 1px solid #c2410c;
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-edition-download:hover {
  background-color: #f97316;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.45);
}

.edition-divider {
  border-top: 1px dashed rgba(234, 88, 12, 0.3);
  margin: 4rem 0;
}

.dark .edition-divider {
  border-top: 1px dashed rgba(234, 88, 12, 0.25);
}

