﻿:root {
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg-900: #050914;
  --bg-800: #0b1224;
  --surface-900: rgba(12, 18, 33, 0.95);
  --surface-800: rgba(16, 24, 43, 0.86);
  --surface-700: rgba(23, 33, 55, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(127, 90, 240, 0.45);
  --accent: #7f5af0;
  --accent-hover: #996ff6;
  --accent-soft: rgba(127, 90, 240, 0.1);
  --secondary: #22d3ee;
  --secondary-soft: rgba(34, 211, 238, 0.12);
  --text-primary: #eef1ff;
  --text-secondary: #c7ccdd;
  --text-muted: #8691b0;
  --danger: #f97066;
  --shadow-soft: 0 20px 45px rgba(8, 15, 35, 0.45);
  --shadow-medium: 0 14px 34px rgba(8, 15, 35, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition-base: 200ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Contenedor fluido que se adapta a cualquier resolución */
  --content-width: clamp(320px, 96vw, 1400px);
  --section-gap: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at 15% 20%, rgba(127, 90, 240, 0.15) 0%, transparent 55%),
              radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' opacity='.25'%3E%3Cpath d='M0 160h160V0z' fill='%2310162d'/%3E%3Cpath d='M46 48h6v6h-6zm62 62h6v6h-6z' fill='%2322d3ee'/%3E%3Ccircle fill='%237f5af0' cx='136' cy='32' r='3'/%3E%3Ccircle fill='%237f5af0' cx='24' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -2;
  opacity: 0.35;
}

#star-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

p {
  margin: 0;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Medios fluidos por defecto */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.96);
    filter: blur(12px);
  }
  60% {
    opacity: 1;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes cardFadeOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -22px, 0) scale(0.94);
    filter: blur(14px);
  }
}

@keyframes subtleTilt {
  0% {
    transform: perspective(900px) rotateX(10deg) translateY(20px);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: perspective(900px) rotateX(0deg) translateY(0);
    opacity: 1;
  }
}

@keyframes softRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(0px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform, filter;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

[data-animate="fade"] {
  transform: none;
  filter: blur(18px);
}

[data-animate="fade"].is-visible {
  transform: none;
  filter: blur(0px);
}

[data-animate="fade-blur"] {
  transform: translateY(14px);
  filter: blur(28px);
}

[data-animate="fade-blur"].is-visible {
  transform: translateY(0);
  filter: blur(0px);
}

[data-animate="rise"] {
  transform: translate3d(0, 52px, 0) scale(0.92);
}

[data-animate="rise"].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
  animation: softRise 0.68s var(--ease-out) forwards;
}

[data-animate="tilt"] {
  transform: perspective(880px) rotateX(12deg) translateY(28px);
  transform-origin: top center;
}

[data-animate="tilt"].is-visible {
  transform: perspective(880px) rotateX(0deg) translateY(0);
  animation: subtleTilt 0.9s var(--ease-out) forwards;
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate="scale"].is-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero-content > *,
  .hero-visual,
  [data-animate],
  .row[data-animate] .download-item,
  .download-item.is-fading-in,
  .download-item.is-fading-out {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

header {
  backdrop-filter: blur(16px);
  background: rgba(8, 12, 25, 0.82);
  border-bottom: 1px solid var(--border-color);
  position: static;
  top: auto;
  z-index: auto;
}

.header-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(127, 90, 240, 0.35);
}

.brand-copy h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.02em;
}

.tagline {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  letter-spacing: 0.02em;
}

.main-nav a {
  position: relative;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 12% -6px 12%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: rgba(127, 90, 240, 0.18);
  outline: none;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
  width: clamp(260px, 35vw, 420px);
}

#search {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(20, 28, 48, 0.85);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

#search:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.15);
  background: rgba(20, 28, 48, 0.95);
}

#search::placeholder {
  color: var(--text-muted);
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(127, 90, 240, 0.15);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.clear-btn.visible {
  display: inline-flex;
}

.clear-btn:hover {
  background: rgba(127, 90, 240, 0.35);
  color: #fff;
}

main {
  width: 100%;
  margin: 0;
  padding: 4.5rem 0 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

/* Margen de scroll suave para anclas (cabecera no sticky) */
section[id],
.game-section[id],
header[id],
.faq-section[id] {
  scroll-margin-top: 16px;
}

.section-shell {
  width: var(--content-width);
  margin-inline: auto;
}

.hero {
  margin: 2.75rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(12, 17, 31, 0.85) 40%, rgba(17, 24, 39, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(36px);
  animation: fadeUp 0.76s var(--ease-out) 0.08s forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% 60% -40% -20%;
  background: radial-gradient(circle at center, rgba(127, 90, 240, 0.35) 0%, rgba(127, 90, 240, 0) 65%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.68s var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.16s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.24s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.32s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.4s;
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 25px rgba(127, 90, 240, 0.35);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(127, 90, 240, 0.4);
}

.hero-link {
  font-weight: 600;
  color: var(--secondary);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--secondary-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.hero-link:hover {
  background: rgba(34, 211, 238, 0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.hero-stat {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(13, 19, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: calc(var(--radius-lg) - 6px);
  background: radial-gradient(circle at 30% 30%, rgba(127, 90, 240, 0.45), transparent 65%), rgba(11, 18, 35, 0.85);
  border: 1px solid rgba(127, 90, 240, 0.2);
  box-shadow: 0 20px 50px rgba(8, 15, 35, 0.5);
  opacity: 0;
  transform: translateY(36px);
  animation: fadeUp 0.82s var(--ease-out) 0.16s forwards, floatY 12s ease-in-out 1.1s infinite;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(127, 90, 240, 0.8), rgba(34, 211, 238, 0.3), rgba(127, 90, 240, 0.8));
  opacity: 0.6;
  transform-origin: 50% 50%;
}

.hero-visual::before {
  width: 220px;
  height: 220px;
  top: 18%;
  left: 20%;
  filter: blur(0.5px);
  animation: orbit 26s linear infinite;
}

.hero-visual::after {
  width: 140px;
  height: 140px;
  bottom: 18%;
  right: 22%;
  filter: blur(1.2px);
  animation: orbit 32s linear infinite reverse;
}

.insights {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.insights-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  width: fit-content;
}

.insights-kicker {
  color: var(--secondary);
  background: var(--secondary-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.insights-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.insights-header p {
  max-width: 720px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.insight-card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(12, 18, 33, 0.82);
  border: 1px solid rgba(127, 90, 240, 0.22);
  box-shadow: 0 18px 40px rgba(8, 15, 35, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--transition-base), border var(--transition-base), box-shadow var(--transition-base);
}

.insight-card i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 90, 240, 0.4);
  box-shadow: 0 22px 48px rgba(8, 15, 35, 0.45);
}

.featured-showcase {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.featured-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 740px;
}

.featured-kicker {
  color: var(--accent);
  background: rgba(127, 90, 240, 0.12);
  border: 1px solid rgba(127, 90, 240, 0.4);
}

.featured-header h2 {
  font-size: clamp(2rem, 4.2vw, 2.6rem);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(13, 20, 36, 0.92) 0%, rgba(12, 18, 33, 0.88) 55%, rgba(8, 14, 28, 0.95) 100%);
  border: 1px solid rgba(127, 90, 240, 0.25);
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 60px rgba(8, 15, 35, 0.55);
  transition: transform var(--transition-base), box-shadow 260ms ease, border var(--transition-base);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(127, 90, 240, 0.28), transparent 55%), radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.2), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 90, 240, 0.5);
  box-shadow: 0 32px 70px rgba(8, 15, 35, 0.6);
}

.featured-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 280ms ease;
}

.featured-card:hover .featured-visual img {
  transform: scale(1.08);
}

.featured-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.75rem 1.9rem;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.featured-genre {
  background: rgba(127, 90, 240, 0.2);
  border: 1px solid rgba(127, 90, 240, 0.45);
  color: #cbbdff;
}

.featured-mode {
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #b9f7ff;
}

.featured-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.featured-body p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.catalog-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2.6rem;
  padding: 2.35rem 2.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(127, 90, 240, 0.25);
  background: linear-gradient(140deg, rgba(13, 20, 36, 0.92) 0%, rgba(12, 18, 33, 0.88) 55%, rgba(9, 15, 30, 0.95) 100%);
  box-shadow: 0 24px 52px rgba(8, 15, 35, 0.5);
  overflow: hidden;
}

.catalog-header::before {
  content: "";
  position: absolute;
  inset: -45% 35% -35% -20%;
  background: radial-gradient(circle at center, rgba(127, 90, 240, 0.32) 0%, rgba(127, 90, 240, 0) 70%);
  opacity: 0.65;
  pointer-events: none;
}

.catalog-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.catalog-intro h2 {
  font-size: clamp(2.05rem, 4.1vw, 2.65rem);
}

.catalog-description {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.catalog-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-metric {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.catalog-metric-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.catalog-metric-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.catalog-metric-value span {
  display: inline-flex;
  align-items: baseline;
}

.catalog-metric-separator {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.catalog-metric-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.catalog-metrics .active-filters-bar {
  margin-top: 0.75rem;
}

.catalog-controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.catalog-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.catalog-controls .view-toggle {
  border-left: none;
  margin-left: 0;
  padding-left: 0;
  justify-content: flex-end;
}

.catalog-controls .view-toggle-button {
  min-width: 132px;
  justify-content: center;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #041225;
  box-shadow: 0 18px 40px rgba(127, 90, 240, 0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-cta:hover,
.featured-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(127, 90, 240, 0.55);
  outline: none;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(127, 90, 240, 0.25);
  background: rgba(12, 18, 33, 0.8);
  box-shadow: 0 12px 28px rgba(8, 15, 35, 0.35);
}

.filters-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  flex-wrap: wrap;
}

.filters-state {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filters-state-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.filters-state-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.filters-state-separator {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.filters-state-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.filters-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.filter-chip,
button.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(127, 90, 240, 0.12);
  color: #fff;
  border: 1px solid rgba(127, 90, 240, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition-base), border var(--transition-base), color var(--transition-base);
}

.filter-chip i {
  font-size: 0.85rem;
  color: inherit;
}

.filter-chip-label {
  color: inherit;
}

.filter-chip-remove {
  background: transparent;
  border: none;
  color: inherit;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

.filter-chip-remove:hover,
.filter-chip-remove:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.filter-chip.clear-all {
  cursor: pointer;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.45);
  color: #b6f8ff;
}

.filter-chip.clear-all:hover,
.filter-chip.clear-all:focus-visible {
  background: rgba(34, 211, 238, 0.24);
  color: #fff;
  outline: none;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.view-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 33, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition-base), border var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.view-toggle-button i {
  font-size: 0.9rem;
  color: inherit;
}

.view-toggle-button:hover,
.view-toggle-button:focus-visible {
  color: #fff;
  border-color: rgba(127, 90, 240, 0.45);
  outline: none;
}

.view-toggle-button.is-active {
  background: rgba(127, 90, 240, 0.25);
  color: #fff;
  border-color: rgba(127, 90, 240, 0.55);
  box-shadow: 0 12px 26px rgba(127, 90, 240, 0.28);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(127, 90, 240, 0.15);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(127, 90, 240, 0.35);
}

.filter-button:hover {
  background: rgba(127, 90, 240, 0.25);
  transform: translateY(-1px);
}

.filter-button.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.filter-button.secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-button.is-disabled,
.filter-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#active-filter-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--secondary);
  color: #041225;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.filters-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 22, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
  overscroll-behavior: contain;
}

.filters-modal.is-open {
  display: flex;
}

dialog.filters-dialog::backdrop {
  background: transparent;
}

.filters-dialog {
  width: min(960px, 100%);
  max-height: 90vh;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: rgba(12, 18, 33, 0.95);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.filters-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters-dialog-header h2 {
  font-size: 1.3rem;
}

.filters-close {
  font-size: 1.4rem;
  background: transparent;
  color: var(--text-secondary);
}

.filters-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.filters-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.filter-group {
  border-radius: var(--radius-md);
  background: rgba(16, 24, 43, 0.9);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-group h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.filter-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-search input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(9, 14, 28, 0.85);
  color: var(--text-primary);
}

.filter-search input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.18);
}

.filter-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.25rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem;
  border-radius: 8px;
  color: var(--text-secondary);
}

.filter-option:hover {
  background: rgba(127, 90, 240, 0.12);
  color: #fff;
}

.filter-option input {
  accent-color: var(--accent);
}

body.filters-open {
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.row.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.row.list-view .download-item {
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
}

.row.list-view .download-image {
  width: 220px;
  min-width: 220px;
  aspect-ratio: 16 / 9;
}

.row.list-view .game-meta {
  flex: 1;
}

.row.list-view .game-title {
  font-size: 1.15rem;
}

.row.list-view .mode-tag {
  margin-top: 0;
}

.row.list-view .game-meta {
  border-top: none;
  padding-top: 0;
}

.row.list-view .btn-outline-warning {
  width: auto;
  min-width: 180px;
  align-self: center;
}

.row[data-animate] .download-item {
  opacity: 0;
  transform: translateY(28px);
  transition-delay: 0s;
}

.row[data-animate].is-visible .download-item {
  opacity: 1;
  transform: translateY(0);
}

.row[data-animate].is-visible .download-item:nth-child(1) {
  transition-delay: 0.08s;
}

.row[data-animate].is-visible .download-item:nth-child(2) {
  transition-delay: 0.12s;
}

.row[data-animate].is-visible .download-item:nth-child(3) {
  transition-delay: 0.16s;
}

.row[data-animate].is-visible .download-item:nth-child(4) {
  transition-delay: 0.2s;
}

.row[data-animate].is-visible .download-item:nth-child(5) {
  transition-delay: 0.24s;
}

.row[data-animate].is-visible .download-item:nth-child(6) {
  transition-delay: 0.28s;
}

.row[data-animate].is-visible .download-item:nth-child(7) {
  transition-delay: 0.32s;
}

.row[data-animate].is-visible .download-item:nth-child(8) {
  transition-delay: 0.36s;
}

.row[data-animate].is-visible .download-item:nth-child(9) {
  transition-delay: 0.4s;
}

.row[data-animate].is-visible .download-item:nth-child(10) {
  transition-delay: 0.44s;
}

.download-item.is-fading-in {
  animation: cardFadeIn 0.45s var(--ease-out) forwards;
}

.download-item.is-fading-out {
  animation: cardFadeOut 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.download-item {
  background: linear-gradient(160deg, rgba(16, 24, 43, 0.95) 0%, rgba(11, 18, 35, 0.88) 55%, rgba(9, 15, 30, 0.92) 100%);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border var(--transition-base), filter var(--transition-base), opacity 0.6s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.download-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.45), rgba(34, 211, 238, 0.25), rgba(127, 90, 240, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.download-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(127, 90, 240, 0.15), transparent 60%), linear-gradient(180deg, rgba(127, 90, 240, 0.08), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.download-item:hover {
  transform: translateY(-8px);
  filter: brightness(1.05);
  box-shadow: 0 24px 54px rgba(8, 15, 35, 0.5);
}

.download-item:hover::after {
  opacity: 1;
}

.download-item:hover::before {
  opacity: 1;
}

.download-item.is-highlighted {
  animation: cardPulse 1400ms ease;
}

@keyframes cardPulse {
  0% {
    box-shadow: 0 0 0 rgba(127, 90, 240, 0.0);
    border-color: rgba(127, 90, 240, 0.25);
  }
  45% {
    box-shadow: 0 0 0 12px rgba(127, 90, 240, 0.18);
    border-color: rgba(127, 90, 240, 0.65);
  }
  100% {
    box-shadow: 0 0 0 rgba(127, 90, 240, 0.0);
    border-color: rgba(127, 90, 240, 0.25);
  }
}

.download-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-sm) + 2px);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(8, 15, 35, 0.4);
  transition: transform 220ms ease;
}

.download-item:hover .download-image {
  transform: scale(1.02);
}

.game-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  min-height: 2.3rem;
  display: flex;
  align-items: center;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.game-genre {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.game-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.mode-tag {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(127, 90, 240, 0.15);
  border: 1px solid rgba(127, 90, 240, 0.35);
  color: var(--text-secondary);
}

.mode-online {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.45);
  color: #8be9ff;
}

.mode-lan {
  background: rgba(255, 178, 77, 0.18);
  border-color: rgba(255, 178, 77, 0.45);
  color: #ffcb7d;
}

.mode-solo {
  background: rgba(203, 213, 225, 0.18);
  border-color: rgba(203, 213, 225, 0.45);
  color: #dee3f5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  text-decoration: none;
}

.btn-outline-warning {
  width: 100%;
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.25), rgba(34, 211, 238, 0.15));
  color: #fff;
  border: 1px solid rgba(127, 90, 240, 0.35);
  box-shadow: 0 12px 24px rgba(8, 15, 35, 0.3);
}

.btn-outline-warning:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.4), rgba(34, 211, 238, 0.25));
  box-shadow: 0 16px 32px rgba(8, 15, 35, 0.4);
}

.w-100 {
  width: 100%;
}

.mt-2 {
  margin-top: 0.75rem;
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.pagination {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(11, 18, 35, 0.85);
  color: #fff;
  font-weight: 600;
}

.pagination button:hover:not(:disabled) {
  background: rgba(127, 90, 240, 0.2);
  border-color: rgba(127, 90, 240, 0.35);
}

.pagination button.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  border-color: transparent;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  gap: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(127, 90, 240, 0.25);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(12, 18, 33, 0.88) 60%, rgba(17, 24, 39, 0.95) 100%);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(8, 15, 35, 0.5);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: -35% 45% -40% -15%;
  background: radial-gradient(circle, rgba(127, 90, 240, 0.32) 0%, rgba(127, 90, 240, 0) 70%);
  opacity: 0.9;
  pointer-events: none;
}

.cta-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-panel-content h2 {
  font-size: clamp(2rem, 4vw, 2.4rem);
}

.cta-panel-content p {
  max-width: 520px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border var(--transition-base);
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #041225;
  box-shadow: 0 18px 35px rgba(127, 90, 240, 0.45);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(127, 90, 240, 0.55);
}

.cta-button.ghost {
  background: rgba(12, 18, 33, 0.8);
  color: var(--text-secondary);
  border-color: rgba(127, 90, 240, 0.35);
}

.cta-button.ghost:hover,
.cta-button.ghost:focus-visible {
  color: #fff;
  border-color: rgba(127, 90, 240, 0.6);
  transform: translateY(-2px);
  outline: none;
}

.cta-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.cta-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.cta-highlights i {
  color: var(--secondary);
}

.cta-panel-aside {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: rgba(12, 18, 33, 0.85);
  border: 1px solid rgba(127, 90, 240, 0.25);
  box-shadow: 0 18px 40px rgba(8, 15, 35, 0.4);
  align-content: flex-start;
}

.cta-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-metric:last-child {
  border-bottom: none;
}

.cta-metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.cta-metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.faq-section {
  width: min(940px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.faq-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-kicker {
  align-self: center;
  color: var(--accent);
  background: rgba(127, 90, 240, 0.12);
  border: 1px solid rgba(127, 90, 240, 0.4);
  letter-spacing: 0.18em;
}

.faq-header h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.5rem);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  background: rgba(12, 18, 33, 0.82);
  border: 1px solid rgba(127, 90, 240, 0.22);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  transition: border var(--transition-base), box-shadow var(--transition-base);
}

.faq-list details[open] {
  border-color: rgba(127, 90, 240, 0.5);
  box-shadow: 0 16px 36px rgba(8, 15, 35, 0.4);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform var(--transition-base);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  font-size: 1.15rem;
  color: var(--secondary);
  background: rgba(16, 24, 43, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-medium);
}

#no-results[hidden] {
  display: none !important;
}

#back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #041225;
  font-size: 1.35rem;
  box-shadow: 0 18px 35px rgba(8, 15, 35, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}

#back-to-top:hover {
  transform: translateY(-4px);
}

footer {
  margin-top: auto;
  padding: 2.5rem 0;
  text-align: center;
  background: rgba(8, 12, 25, 0.9);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.contact-section {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(11, 18, 35, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-medium);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 60;
}

.contact-section.show {
  display: flex;
}

.contact-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
}

.contact-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(127, 90, 240, 0.2);
  border: 1px solid rgba(127, 90, 240, 0.35);
}

.contact-link:hover {
  transform: translateY(-2px);
}

.contact-link.instagram {
  background: linear-gradient(135deg, #f09433, #c13584);
  border-color: transparent;
}

.contact-link.email {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-color: transparent;
}

.contact-link.tiktok {
  background: #000;
  border-color: rgba(255, 255, 255, 0.15);
}

.contact-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #041225;
  box-shadow: 0 18px 35px rgba(8, 15, 35, 0.45);
  z-index: 55;
}

.contact-toggle.active {
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

  .hero-visual {
    min-height: 260px;
    order: -1;
  }

  .catalog-header {
    grid-template-columns: 1fr;
    gap: 2.1rem;
    padding: 2.2rem;
  }

  .catalog-controls {
    align-items: stretch;
    gap: 1.2rem;
  }

  .catalog-buttons {
    justify-content: flex-start;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .header-tools {
    width: 100%;
  }

  .search-container {
    width: 100%;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .catalog-controls .view-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
}

@media (max-width: 720px) {
  main {
    gap: 2.25rem;
    padding: 2.5rem 0 3rem;
  }

  /* Desactivar apariciones dependientes de IntersectionObserver en pantallas pequeñas */
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  [data-animate].is-visible {
    transform: none !important;
  }
  .row[data-animate] .download-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .row[data-animate].is-visible .download-item {
    transition-delay: 0s !important;
  }

  .hero {
    padding: 2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-header {
    padding: 2rem;
  }

  .catalog-metric-value {
    font-size: 1.25rem;
  }

  .catalog-controls {
    gap: 0.9rem;
  }

  .catalog-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  #back-to-top {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .insights {
    margin-bottom: 2.5rem;
  }

  .insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .catalog-controls .view-toggle {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .catalog-controls .view-toggle-button {
    flex: 1 1 140px;
    justify-content: center;
  }

  .row.list-view .download-image {
    width: 180px;
    min-width: 180px;
  }

  .cta-panel {
    padding: 2rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button {
    justify-content: center;
  }

  .cta-panel-aside {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .faq-section {
    margin: 3.5rem auto;
  }
}

/* Optimización en móviles: menos animaciones y sombras, modal como bottom sheet */
@media (max-width: 600px) {
  [data-animate] {
    transition-duration: 0.4s !important;
    filter: none !important;
  }
  [data-animate].is-visible {
    transform: none !important;
  }
  /* En pantallas verticales/pequeñas, no ocultar tarjetas por animaciones del contenedor */
  .row[data-animate] .download-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .row[data-animate].is-visible .download-item {
    transition-delay: 0s !important;
  }
  .hero,
  .hero-content > *,
  .hero-visual {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .download-item {
    padding: 1rem;
    box-shadow: none;
  }
  .download-item::before,
  .download-item::after {
    opacity: 0.5;
  }
  .featured-card {
    box-shadow: none;
  }
  .filters-modal.is-open {
    align-items: flex-end;
    padding: 0;
  }
  .filters-dialog {
    width: 100%;
    max-height: none;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .catalog-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .filter-button {
    width: 100%;
    justify-content: center;
  }

  .pagination-container {
    gap: 0.85rem;
  }

  .pagination button {
    min-width: 40px;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-controls .view-toggle {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .catalog-controls .view-toggle-button {
    width: 100%;
  }

  .row.list-view .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .row.list-view .download-image {
    width: 100%;
    min-width: 0;
  }

  .row.list-view .btn-outline-warning {
    width: 100%;
  }

  .cta-panel {
    padding: 1.75rem;
  }

  .cta-panel-aside {
    grid-template-columns: 1fr;
  }

  .cta-button {
    width: 100%;
  }
}
