/* Home de ChileHero: oscuro, tipografía condensada y acentos tricolor. */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(16px);
}

.landing-nav .navbar-brand img {
  display: block;
  width: auto;
  height: 58px;
}

.landing-nav .nav-link {
  padding: 0.5rem 0.25rem !important;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.landing-nav .nav-link:hover {
  color: var(--white);
}

.landing-nav .navbar-collapse {
  padding-top: 0.5rem;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(60px, 9vw, 118px) 0 clamp(70px, 8vw, 110px);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 420px at 12% 18%, rgba(47, 107, 255, 0.22), transparent 62%),
    radial-gradient(680px 420px at 88% 78%, rgba(255, 42, 34, 0.17), transparent 60%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: radial-gradient(ellipse at center, black, transparent 78%);
  pointer-events: none;
}

.hero .eyebrow {
  margin-bottom: 1.2rem;
}

.hero h1 {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(3.9rem, 9vw, 8.2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 em {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero .lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

/* Tarjeta "escenario" */
.stage-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 340px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(18, 20, 29, 0.97), rgba(8, 9, 14, 0.97));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stage-frame::before {
  position: absolute;
  top: -45%;
  left: -25%;
  width: 75%;
  height: 110%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.32), transparent);
  content: "";
  filter: blur(26px);
  pointer-events: none;
}

.stage-frame::after {
  position: absolute;
  right: -25%;
  bottom: -50%;
  width: 75%;
  height: 110%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 42, 34, 0.25), transparent);
  content: "";
  filter: blur(26px);
  pointer-events: none;
}

.stage-frame > * {
  position: relative;
  z-index: 1;
}

.stage-frame span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-frame .live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red);
}

.stage-frame .live::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0.25rem rgba(255, 42, 34, 0.14);
  content: "";
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.72);
  }
}

.stage-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  letter-spacing: 0.02em;
  line-height: 0.82;
}

.stage-title em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px rgba(244, 246, 251, 0.8);
}

.fretboard {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 76px;
  padding: 0 2px;
}

.fretboard i {
  flex: 1;
  height: 24%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue), #12141d);
  animation: eq 1.4s ease-in-out infinite alternate;
}

.fretboard i:nth-child(2) {
  height: 48%;
  background: linear-gradient(180deg, #ffffff, #12141d);
  animation-delay: 0.12s;
}

.fretboard i:nth-child(3) {
  height: 76%;
  background: linear-gradient(180deg, var(--red), #12141d);
  animation-delay: 0.24s;
}

.fretboard i:nth-child(4) {
  height: 58%;
  background: linear-gradient(180deg, #ffffff, #12141d);
  animation-delay: 0.36s;
}

.fretboard i:nth-child(5) {
  height: 38%;
  background: linear-gradient(180deg, var(--blue), #12141d);
  animation-delay: 0.18s;
}

@keyframes eq {
  from {
    height: 18%;
  }

  to {
    height: 100%;
  }
}

/* Banda de plataformas */
.platform-band {
  padding: 1.2rem 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.platform-band .container {
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.platform-band strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Secciones */
.feature-section {
  padding: clamp(70px, 9vw, 110px) 0;
  background: linear-gradient(180deg, #050508, #08090f);
}

.games-section {
  padding: clamp(70px, 9vw, 110px) 0;
  border-block: 1px solid var(--line);
  background: #07080c;
}

.feature-section h2,
.games-section h2,
.join-section h2 {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.feature-section h2 em,
.games-section h2 em,
.join-section h2 em {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.feature-card {
  position: relative;
  padding: 1.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.feature-card > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feature-card h3 {
  margin: 1.1rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.feature-card p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-blue {
  background: linear-gradient(155deg, rgba(47, 107, 255, 0.22), rgba(13, 15, 23, 0.94) 62%);
}

.card-red {
  background: linear-gradient(155deg, rgba(255, 42, 34, 0.2), rgba(13, 15, 23, 0.94) 62%);
}

.card-dark {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(13, 15, 23, 0.94) 62%);
}

/* Tarjetas de juego */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 270px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.game-card::after {
  position: absolute;
  top: -30%;
  right: -12%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-card > span {
  color: rgba(244, 246, 251, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.game-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.85;
}

.game-card p {
  max-width: 26rem;
  margin: 0;
  color: #c7ccda;
  font-size: 0.92rem;
}

.game-clone {
  background:
    radial-gradient(420px 220px at 90% 10%, rgba(47, 107, 255, 0.4), transparent 70%),
    linear-gradient(120deg, #0a1c4c, #050508 68%);
}

.game-rock {
  background:
    radial-gradient(420px 220px at 90% 10%, rgba(255, 42, 34, 0.36), transparent 70%),
    linear-gradient(120deg, #4a0d0b, #050508 68%);
}

/* Cierre */
.join-section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.join-section .container {
  position: relative;
  padding: clamp(2rem, 5vw, 3.6rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(47, 107, 255, 0.38), transparent 70%),
    radial-gradient(360px 220px at 100% 100%, rgba(255, 42, 34, 0.3), transparent 70%),
    #090a10;
}

.join-section .container > * {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer img {
  width: auto;
  height: 44px;
  opacity: 0.9;
}

@media (max-width: 991.98px) {
  .landing-nav .navbar-collapse {
    padding-bottom: 0.8rem;
  }

  .landing-nav .navbar-nav {
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }

  .landing-nav .btn-hero {
    margin-top: 0.4rem;
  }

  .stage-frame {
    margin-top: 0.5rem;
  }

  .platform-band .container {
    gap: 1rem;
  }

  .platform-band strong {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .landing-nav .navbar-brand img {
    height: 46px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .stage-frame {
    min-height: 290px;
  }

  .game-card {
    min-height: 220px;
  }

  .site-footer .container {
    text-align: center;
  }
}
