/* =========================
   VARIABLES
========================= */
:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #e0e0e0;
  --muted: #a8b3b8;
  --accent: #647ea1; /* Azul gamer espacial */
  --border: #2a2a2a;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* =========================
   NAVBAR
========================= */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(18,18,18,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.menu {
  display: flex;
  gap: 10px;
}
.menu__link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: 0.3s ease;
}
.menu__link:hover {
  color: #fff;
  border: 1px solid var(--accent);
  background: rgba(100,126,161,0.1);
}

/* =========================
   HERO
========================= */
.hero {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 40px 16px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(100,126,161,0.25), transparent 70%);
}
.hero__title {
  font-size: clamp(24px,5vw,46px);
  font-weight: 800;
  margin: 0 0 12px;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}
.hero__title:hover {
  transform: scale(1.05);
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}
.accent { color: var(--accent); }

.btn {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
.btn--primary {
  background: var(--accent);
  color: #000;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn--primary:hover {
  background: #4f6a88;
  transform: scale(1.05);
}

/* =========================
   SECCIONES
========================= */
.wrap { padding: 40px 16px; }
.section__title {
  font-size: clamp(22px,3vw,34px);
  margin: 0 0 20px;
  color: var(--accent);
  text-align: center;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.section__title:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px var(--accent);
}

.grid { display: grid; gap: 16px; }
.cats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* =========================
   CARDS
========================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(100,126,161,0.4);
}
.card--gallery img {
  border-bottom: 1px solid var(--border);
}
.card__title {
  display: block;
  padding: 10px;
  color: var(--muted);
}

/* =========================
   LOGO IMAGE
========================= */
.imLogo {
  width: 650px;
  max-width: 90%;
  height: auto;
  margin: 30px auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.imLogo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px var(--accent));
}

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: 24px;
  padding: 20px 16px;
  background: #151515;
  border-top: 1px solid var(--border);
  color: #bbb;
}
.footer__grid {
  display: grid;
  gap: 8px;
  justify-items: center;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* =========================
   BOTÓN SUBIR
========================= */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: bold;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover {
  background: #4f6a88;
  transform: scale(1.1);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu__link {
    display: block;
    margin: 6px 0;
    text-align: center;
  }
  .imLogo {
    width: 90%;
  }
}
