/* =================================
   BRINTOF 2.0 — ESTILOS PRINCIPALES
================================= */

:root {
  --bg: #080b12;
  --surface: #0e131e;
  --surface-2: #131a28;
  --surface-3: #1a2333;
  --border: rgba(255,255,255,.075);
  --text: #f4f6fb;
  --muted: #8993a6;
  --blue: #6485ff;
  --blue-light: #91a7ff;
  --purple: #9b7aff;
  --radius: 18px;
  --font: "DM Sans", sans-serif;
  --heading: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

::selection {
  background: rgba(100,133,255,.35);
}

.app-shell {
  min-height: 100vh;
}

/* TOPBAR */

.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
  background: rgba(8,11,18,.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right,
.brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.8px;
}

.brand-accent,
.footer-brand span {
  color: var(--blue-light);
}

.brand-mark,
.about-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: white;
  font-family: var(--heading);
  font-weight: 700;
  background: linear-gradient(135deg, #6688ff, #8764e8);
  box-shadow: 0 5px 25px rgba(100,133,255,.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: .2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-2);
  color: white;
}

.random-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(124,145,255,.25);
  background: rgba(100,133,255,.10);
  color: var(--blue-light);
  border-radius: 11px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}

.random-button:hover {
  background: rgba(100,133,255,.2);
  transform: translateY(-2px);
}

.random-button span:first-child {
  font-size: 17px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  gap: 4px;
  align-content: center;
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 5px;
  background: white;
}

/* SIDEBAR MÓVIL */

.mobile-sidebar {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  padding: 25px 20px;
  background: #0d121d;
  border-right: 1px solid var(--border);
  transform: translateX(-105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 35px;
}

.close-sidebar {
  font-size: 17px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 14px;
  transition: .2s;
}

.sidebar-link span {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: white;
  background: var(--surface-3);
}

.sidebar-link.active {
  box-shadow: inset 3px 0 var(--blue);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sidebar-note {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.online-dot,
.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: #62dba2;
  border-radius: 50%;
  box-shadow: 0 0 12px #62dba2;
}

.sidebar-bottom p {
  margin-top: 20px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 20px;
}

.sidebar-bottom p span {
  color: var(--blue-light);
}

/* MAIN */

.main-content {
  width: 100%;
  max-width: 1500px;
  margin: auto;
  padding: 0 5.5%;
}

.page {
  display: none;
  animation: pageEnter .35s ease both;
  min-height: 65vh;
}

.page.active {
  display: block;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO */

.hero {
  min-height: 550px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  padding: 70px 0;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1,
.page-heading h1 {
  font-family: var(--heading);
  font-size: clamp(43px, 5.7vw, 76px);
  line-height: 1.06;
  letter-spacing: -3.5px;
  margin: 25px 0 20px;
}

.hero h1 span,
.page-heading h1 span {
  background: linear-gradient(100deg, #83a0ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 510px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 19px;
  border-radius: 11px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}

.primary-button {
  background: linear-gradient(110deg, #6485ff, #8269e9);
  color: white;
  box-shadow: 0 8px 25px rgba(100,133,255,.18);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(100,133,255,.3);
}

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

.secondary-button:hover {
  background: var(--surface-3);
}

.hero-stats {
  display: flex;
  gap: 45px;
  margin-top: 55px;
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  font-family: var(--heading);
  font-size: 23px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
}

/* HERO ART */

.hero-art {
  min-height: 450px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-orb {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #b7c7ff, transparent 18%),
    radial-gradient(circle at 65% 65%, #7651d7, transparent 40%),
    linear-gradient(135deg, #668bff, #31266d);
  box-shadow:
    0 0 70px rgba(100,133,255,.35),
    inset -20px -20px 50px rgba(0,0,0,.3);
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.orb-inner {
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(255,255,255,.15);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(139,158,255,.22);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 300px;
  height: 125px;
}

.orbit-two {
  width: 390px;
  height: 175px;
  transform: rotate(35deg);
}

.orbit-three {
  width: 470px;
  height: 225px;
  transform: rotate(-50deg);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(19,26,40,.9);
  border: 1px solid rgba(255,255,255,.1);
  padding: 11px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  font-size: 17px;
  color: var(--blue-light);
  backdrop-filter: blur(12px);
}

.floating-card span {
  color: white;
  font-size: 11px;
  font-weight: 600;
}

.floating-card-one { top: 17%; right: 8%; }
.floating-card-two { bottom: 20%; left: 0; }
.floating-card-three { bottom: 12%; right: 5%; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* SECCIONES */

.content-section {
  padding: 75px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.section-heading h2,
.discover-banner h2 {
  font-family: var(--heading);
  font-size: 29px;
  letter-spacing: -1px;
  margin: 9px 0;
}

.section-heading p,
.discover-banner p {
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.text-link span {
  margin-left: 5px;
}

/* TARJETAS */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.experience-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .22s, border-color .22s, background .22s;
  animation: pageEnter .35s ease both;
}

.experience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(126,150,255,.4);
  background: #111827;
}

.card-art {
  height: 155px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card-art::before,
.card-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

.card-art::before {
  width: 160px;
  height: 160px;
}

.card-art::after {
  width: 110px;
  height: 110px;
}

.card-art .art-icon {
  font-size: 43px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.25));
}

.art-blue { background: linear-gradient(135deg,#162b59,#253e82); }
.art-purple { background: linear-gradient(135deg,#34205f,#62418b); }
.art-cyan { background: linear-gradient(135deg,#123c4e,#176b80); }
.art-orange { background: linear-gradient(135deg,#54301d,#9b5930); }
.art-pink { background: linear-gradient(135deg,#4b244c,#884b80); }
.art-green { background: linear-gradient(135deg,#164638,#28765b); }

.card-content {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.category-tag {
  color: var(--blue-light);
  background: rgba(100,133,255,.11);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .7px;
}

.card-arrow {
  color: var(--muted);
  font-size: 17px;
}

.card-content h3 {
  font-family: var(--heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.card-content p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  min-height: 41px;
}

/* BANNER */

.discover-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 27px;
  margin: 5px 0 75px;
  border: 1px solid rgba(120,142,255,.2);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 10% 50%, rgba(100,133,255,.15), transparent 50%),
    var(--surface);
}

.banner-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 15px;
  font-size: 26px;
  color: var(--blue-light);
  background: rgba(100,133,255,.15);
}

.discover-banner > div:nth-child(2) {
  flex: 1;
}

.discover-banner h2 {
  font-size: 21px;
}

.discover-banner p {
  font-size: 12px;
}

/* PÁGINAS INTERIORES */

.page-heading {
  padding: 75px 0 40px;
}

.page-heading h1 {
  font-size: clamp(40px, 5vw, 62px);
  margin: 16px 0 13px;
}

.page-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.explore-toolbar {
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  height: 49px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.search-box > span {
  font-size: 24px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #687286;
}

.search-box kbd {
  font-size: 10px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-button {
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: .2s;
}

.filter-button:hover,
.filter-button.active {
  color: white;
  background: var(--surface-3);
  border-color: rgba(126,150,255,.35);
}

.results-heading {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}

.empty-state {
  text-align: center;
  padding: 65px 15px;
  color: var(--muted);
}

.empty-state > span {
  font-size: 35px;
}

.empty-state h3 {
  color: white;
  margin: 12px 0 7px;
}

.empty-state p {
  font-size: 13px;
}

.hidden {
  display: none !important;
}

/* ACERCA DE */

.about-card {
  max-width: 650px;
  padding: 35px;
  margin: 20px 0 70px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-logo {
  width: 65px;
  height: 65px;
  font-size: 30px;
  border-radius: 18px;
  margin-bottom: 25px;
}

.about-card h2 {
  font-family: var(--heading);
  font-size: 25px;
  margin-bottom: 15px;
}

.about-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-version {
  margin-top: 28px;
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding: 25px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  font-family: var(--heading);
  font-size: 19px;
  color: white;
  font-weight: 700;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: .2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.experience-modal {
  width: min(650px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0e1420;
  box-shadow: 0 25px 100px rgba(0,0,0,.5);
  transform: translateY(15px);
  transition: .25s;
}

.modal-overlay.open .experience-modal {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  background: rgba(14,20,32,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.modal-header h2 {
  font-family: var(--heading);
  font-size: 23px;
  margin-top: 6px;
}

.modal-close {
  font-size: 16px;
}

.modal-body {
  padding: 25px;
}

.game-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.game-panel {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  text-align: center;
}

.game-number {
  font-family: var(--heading);
  font-size: 55px;
  font-weight: 700;
  margin: 15px 0;
}

.game-button {
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  margin: 5px;
}

.game-button:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.game-button.secondary {
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.game-message {
  color: var(--blue-light);
  font-size: 13px;
  margin-top: 15px;
  min-height: 20px;
}

.planet-list,
.mix-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.planet,
.mix-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  font-size: 26px;
  transition: .2s;
}

.planet:hover,
.mix-item:hover {
  transform: scale(1.08);
  border-color: var(--blue);
}

.mix-result {
  margin-top: 20px;
  color: var(--blue-light);
  font-weight: 700;
  font-size: 15px;
}

.range-input {
  width: 100%;
  accent-color: var(--blue);
  margin: 22px 0;
}

.reaction-area {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #17223a;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 20px;
  user-select: none;
}

.reaction-area.ready {
  background: #155c48;
}

.reaction-area.waiting {
  background: #8a3d4c;
}

@media (max-width: 1000px) {
  .topbar {
    padding: 0 4%;
  }

  .main-content {
    padding: 0 4%;
  }

  .desktop-nav {
    gap: 0;
  }

  .nav-link {
    padding: 9px;
    font-size: 12px;
  }

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

@media (max-width: 720px) {
  .topbar {
    height: 66px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 12px;
  }

  .topbar-left {
    flex: 1;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    font-size: 21px;
  }

  .random-button {
    padding: 9px 11px;
  }

  .random-label {
    display: none;
  }

  .main-content {
    padding: 0 19px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-content {
    padding: 65px 0 20px;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 62px);
    letter-spacing: -2.5px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-stats {
    gap: 30px;
    margin-top: 38px;
  }

  .hero-art {
    min-height: 280px;
  }

  .hero-orb {
    width: 130px;
    height: 130px;
  }

  .orbit-one { width: 220px; height: 90px; }
  .orbit-two { width: 270px; height: 120px; }
  .orbit-three { width: 310px; height: 150px; }

  .floating-card {
    padding: 8px 10px;
  }

  .floating-card-one { top: 8%; right: 4%; }
  .floating-card-two { bottom: 10%; left: 0; }
  .floating-card-three { bottom: 5%; right: 0; }

  .content-section {
    padding: 55px 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-heading p {
    font-size: 12px;
    line-height: 1.6;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-art {
    height: 145px;
  }

  .card-content p {
    min-height: unset;
  }

  .discover-banner {
    flex-wrap: wrap;
    padding: 20px;
    margin-bottom: 50px;
  }

  .discover-banner > div:nth-child(2) {
    min-width: 180px;
  }

  .discover-banner .primary-button {
    width: 100%;
  }

  .page-heading {
    padding: 55px 0 30px;
  }

  .page-heading h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }

  .filter-list {
    gap: 7px;
  }

  .filter-button {
    padding: 9px 11px;
    font-size: 10px;
  }

  .search-box kbd {
    display: none;
  }

  .about-card {
    padding: 25px;
  }

  .footer {
    flex-wrap: wrap;
  }

  .footer p {
    order: 3;
    width: 100%;
  }

  .modal-overlay {
    padding: 10px;
  }

  .experience-modal {
    max-height: 92vh;
  }

  .modal-header {
    padding: 17px;
  }

  .modal-body {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
