/* Home premium v2 — centrado, paleta fría, fondo integrado */

.page-home {
  --hero-accent: #9ec5e8;
  --hero-accent-dim: #6e8fa8;
  --hero-accent-deep: #3d5a72;
  --hero-surface: rgba(14, 20, 32, 0.72);
  --hero-border: rgba(142, 170, 198, 0.22);
}

.page-home .ambient-glow--tl,
.page-home .ambient-glow--br {
  display: none !important;
}

.page-home .frost-veil,
.page-home .ice-drift {
  display: none !important;
}

/* ─── Hero: video HD + niebla Wrath (sin copos Frozen) ─── */
.hero--premium {
  min-height: 100dvh;
  background: #050a12;
}

.hero--premium .hero__bg {
  background: #050a12;
}

.hero--premium .hero__bg-layer,
.hero--premium .hero__fog,
.hero--premium .hero__particles,
.hero--premium .hero__frost-ambient,
.hero--premium .hero__bg-photo {
  display: none !important;
}

.hero--premium .hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 1 !important;
}

.hero--premium .hero__video--leviatan,
.hero--premium .hero__video--poster,
.hero--premium .hero__video-poster {
  position: absolute;
  top: 0;
  left: 50%;
  width: 118%;
  height: 118%;
  min-width: 118%;
  min-height: 118%;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  object-fit: cover;
  object-position: 36% 14%;
  backface-visibility: hidden;
  filter: brightness(0.74) saturate(0.95) contrast(1.05);
}

.hero--premium .hero__video-poster {
  z-index: 0;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero--premium .hero__video--leviatan {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero--premium.hero--video-playing .hero__video--leviatan {
  opacity: 1 !important;
}

.hero--premium.hero--video-playing .hero__video-poster {
  opacity: 0;
  visibility: hidden;
}

.hero--premium .hero__video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 5, 12, 0.18) 0%, rgba(4, 12, 26, 0.1) 42%, rgba(2, 6, 14, 0.32) 100%),
    radial-gradient(ellipse 95% 75% at 34% 48%, rgba(8, 22, 40, 0.12) 0%, rgba(2, 5, 12, 0.42) 68%, rgba(0, 0, 0, 0.32) 100%),
    radial-gradient(ellipse 70% 55% at 72% 38%, rgba(120, 60, 90, 0.05) 0%, transparent 58%),
    linear-gradient(90deg, rgba(2, 6, 14, 0.22) 0%, transparent 46%, rgba(2, 6, 14, 0.16) 100%);
  pointer-events: none;
}

.hero--premium .hero__video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 85% 55% at 22% 78%, rgba(14, 36, 58, 0.22), transparent 70%),
    linear-gradient(180deg, transparent 58%, rgba(3, 8, 18, 0.55) 82%, rgba(2, 5, 10, 0.98) 100%);
  pointer-events: none;
}

.hero--premium .hero__frost-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.68;
  mix-blend-mode: soft-light;
}

.hero--premium .hero__blizzard-gust {
  z-index: 3;
  opacity: 0.38;
  mix-blend-mode: soft-light;
}

/* ponytail: sin velo de rayas diagonales — distrae del video/logo */
.hero--premium .hero__snow-veil {
  display: none;
}

/* ─── Layout centrado ─── */
.hero--premium .hero__inner {
  position: relative;
  z-index: 6;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--nav-height, 72px));
  padding: calc(var(--nav-height, 72px) + clamp(2rem, 5vh, 3.5rem)) clamp(1rem, 3vw, 2rem) clamp(4.5rem, 8vh, 6rem);
}

.hero--premium .hero__layout--center {
  width: 100%;
  max-width: min(72rem, 96vw);
  margin-inline: auto;
  text-align: center;
}

.hero--premium .hero__content {
  text-align: center;
  align-items: center;
  max-width: none;
  z-index: 3;
}

.hero--premium .hero__copy-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.2vh, 1.5rem);
  overflow: visible;
}

.hero--premium .hero__title--logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 56rem);
  max-width: min(96vw, 56rem);
  margin: 0 auto;
  padding: clamp(0.35rem, 1.2vh, 0.75rem) 0;
  line-height: 0;
  text-align: center;
  overflow: visible;
}

.hero--premium .hero__title-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter:
    drop-shadow(0 0 10px rgba(90, 190, 255, 0.35))
    drop-shadow(0 0 22px rgba(55, 130, 200, 0.18))
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.hero--premium .hero__title--brand {
  margin: 0;
  font-size: clamp(3rem, 8.5vw, 5.75rem) !important;
  line-height: 1 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  text-align: center;
}

.hero--premium .hero__title-main {
  display: inline;
  color: #f5f8fc;
  font-weight: 600;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.65),
    0 4px 28px rgba(0, 0, 0, 0.5);
}

.hero--premium .hero__title-accent {
  display: inline;
  margin-left: 0.14em;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(165deg, #ffffff 0%, #d4e8f8 38%, #7eb0d4 72%, #4a7394 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(6, 18, 32, 0.85)) drop-shadow(0 0 22px rgba(100, 160, 210, 0.28));
}

.hero--premium .hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.65vw, 1.2rem);
  line-height: 1.7;
  color: rgba(228, 234, 242, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  border: none;
  padding: 0;
}

.hero--premium .hero__lead-accent {
  color: #e4eaf0;
  font-weight: 600;
}

/* ─── CTAs clean premium (sin dorado) ─── */
.hero--premium .hero__cta--tiered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.hero--premium .hero__cta--tiered .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.72rem 1.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease;
}

.hero--premium .hero__cta--tiered .btn:active {
  transform: translateY(1px);
}

.hero--premium .btn--hero-primary {
  width: auto;
  min-width: 21rem;
  max-width: min(35rem, 92vw);
  min-height: 5.5rem;
  padding: 1.44rem 4rem !important;
  font-size: 1.52rem;
  align-self: center;
  background: linear-gradient(180deg, #5a636e 0%, #3d444c 55%, #2f353c 100%);
  color: #e8ecf0;
  border: 1px solid rgba(196, 206, 216, 0.22);
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.hero--premium .btn--hero-primary:hover {
  background: linear-gradient(180deg, #6b7580 0%, #4a525c 55%, #3a4149 100%);
  border-color: rgba(220, 228, 236, 0.32);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f6f8fa;
}

.hero--premium .btn--secondary-cta {
  background: rgba(12, 18, 28, 0.65);
  color: rgba(220, 228, 238, 0.92);
  border: 1px solid var(--hero-border);
  backdrop-filter: blur(8px);
}

.hero--premium .btn--secondary-cta:hover {
  background: rgba(18, 26, 40, 0.85);
  border-color: rgba(158, 197, 232, 0.4);
  color: #fff;
}

.hero--premium .btn--tertiary-cta {
  background: transparent;
  color: rgba(180, 190, 204, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero--premium .btn--tertiary-cta:hover {
  border-color: rgba(114, 137, 218, 0.4);
  background: rgba(88, 101, 242, 0.1);
  color: #e8ecf4;
}

.hero-cinematic__scroll {
  color: rgba(150, 162, 178, 0.5);
  font-size: 0.6rem;
}

.hero-cinematic__scroll:hover {
  color: var(--hero-accent-dim);
}

/* ─── Strip informativo ─── */
.home-realm-strip {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 0 0 clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, #05080f 0%, var(--bg-deep, #060a12) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.home-realm-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.realm-strip-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.85) 0%, rgba(8, 10, 18, 0.92) 100%);
  transition: border-color 0.22s ease, background 0.22s ease;
}

.realm-strip-card:hover {
  border-color: rgba(142, 170, 198, 0.22);
  background: linear-gradient(165deg, rgba(18, 24, 36, 0.9) 0%, rgba(10, 14, 22, 0.95) 100%);
}

.realm-strip-card__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(154, 162, 178, 0.75);
}

.realm-strip-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #eceff4;
  letter-spacing: 0.04em;
}

.realm-strip-card span:last-child {
  font-size: 0.74rem;
  color: rgba(154, 162, 178, 0.8);
  line-height: 1.4;
}

.realm-strip-card--rates strong {
  color: var(--hero-accent);
}

/* ─── Navbar home ─── */
.page-home .site-header--launcher {
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.97) 0%, rgba(5, 8, 14, 0.88) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.page-home .site-header--launcher::after {
  opacity: 0.4;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(110, 143, 168, 0.12) 25%,
    rgba(180, 195, 210, 0.1) 50%,
    rgba(110, 143, 168, 0.12) 75%,
    transparent 100%
  );
  box-shadow: none;
  animation: none;
}

.page-home .main-nav__links > a.nav-link,
.page-home .main-nav__links .nav-item__trigger {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  padding: 0 0.65rem;
}

.page-home .main-nav__links > a.nav-link:hover,
.page-home .main-nav__links .nav-item__trigger:hover {
  color: #eceff4;
  background: rgba(74, 96, 118, 0.14);
}

.page-home .nav-dropdown {
  border-color: rgba(142, 170, 198, 0.2);
  background: linear-gradient(168deg, rgba(14, 18, 26, 0.98) 0%, rgba(9, 12, 18, 0.99) 100%);
}

.page-home .nav-dropdown a {
  color: rgba(186, 196, 210, 0.9);
  letter-spacing: 0.05em;
}

.page-home .nav-dropdown a:hover,
.page-home .nav-dropdown a.is-active {
  background: rgba(62, 82, 102, 0.35);
  border-left-color: rgba(158, 197, 232, 0.5);
}

.page-home .header-realm-pill {
  border-color: rgba(142, 170, 198, 0.24);
  background: rgba(10, 14, 22, 0.9);
}

.page-home .header-realm-pill:hover {
  border-color: rgba(158, 197, 232, 0.35);
  background: rgba(14, 18, 28, 0.95);
}

.page-home .header-realm-pill__text strong {
  color: #a8c8e4;
}

.page-home .nav-link--soon {
  opacity: 0.72;
}

/* Botón crear cuenta en home — azul grisáceo en vez de dorado */
.page-home .nav-actions .btn--cta {
  background: linear-gradient(180deg, #5a636e 0%, #3d444c 100%) !important;
  border: 1px solid rgba(196, 206, 216, 0.22) !important;
  color: #e8ecf0 !important;
  box-shadow: none !important;
}

.page-home .nav-actions .btn--cta:hover {
  background: linear-gradient(180deg, #6b7580 0%, #4a525c 100%) !important;
  border-color: rgba(220, 228, 236, 0.3) !important;
}

/* ─── Featured news ─── */
.home-featured-news {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.home-featured-news__card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.home-featured-news__card:hover {
  border-color: rgba(142, 170, 198, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ─── Home: sin dorado debajo del hero ─── */
.page-home .btn--play {
  background: linear-gradient(180deg, #627080 0%, #455560 55%, #364049 100%);
  color: #eef2f6;
  border: 1px solid rgba(158, 197, 232, 0.22);
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-home .btn--play:hover {
  background: linear-gradient(180deg, #6e8294 0%, #4f6270 55%, #3f4f5c 100%);
  color: #fff;
  border-color: rgba(158, 197, 232, 0.35);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(74, 96, 118, 0.22);
}

.page-home .btn--outline {
  color: #c8d4e0;
  border-color: rgba(142, 170, 198, 0.35);
  background: rgba(12, 18, 28, 0.55);
}

.page-home .btn--outline:hover {
  color: #eef2f6;
  border-color: rgba(158, 197, 232, 0.48);
  background: rgba(74, 96, 118, 0.2);
  box-shadow: 0 0 18px rgba(74, 96, 118, 0.18);
}

.page-home .play-box__accent--gold {
  background: linear-gradient(90deg, #6e8fa8, transparent);
}

.page-home .play-box h3 {
  color: #9ec5e8;
}

.page-home .news-card__tag--anuncio,
.page-home .news-hub__row-tag--pinned {
  border-color: rgba(142, 170, 198, 0.42) !important;
  color: #aec5dc !important;
}

.page-home .news-card--pinned .news-card__thumb::before {
  border-color: rgba(142, 170, 198, 0.42);
  color: #aec5dc;
}

.page-home .news-hub__row:hover .news-hub__row-tag--pinned {
  color: #c8d8e8 !important;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero--premium .hero__video--leviatan,
  .hero--premium .hero__video--poster {
    top: 0;
    left: 50%;
    width: 122%;
    height: 122%;
    min-width: 122%;
    min-height: 122%;
    transform: translateX(-50%);
    object-position: 34% 12%;
  }

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

.hero--premium .hero-cinematic__scroll {
  display: none !important;
}

@media (max-width: 768px) {
  .hero--cinematic.hero--premium {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero--premium .hero__inner {
    min-height: auto !important;
    padding: calc(var(--nav-height, 72px) + 0.65rem) clamp(0.75rem, 3vw, 1.25rem) 2rem !important;
  }

  .hero--premium .hero__title--logo {
    width: min(100%, 28rem);
    max-width: 100%;
    padding: 0.25rem 0;
  }

  .hero--premium .hero__lead {
    max-width: 100%;
    font-size: clamp(0.88rem, 3.8vw, 0.98rem);
    line-height: 1.55;
    padding-inline: 0.15rem;
  }

  .hero--premium .hero__cta--tiered {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0.65rem;
  }

  .hero--premium .hero__cta--tiered .btn--hero-primary {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 3.5rem;
    font-size: 1.18rem;
    padding: 1rem 1.25rem !important;
    align-self: stretch;
  }

  .hero--premium .hero__cta--tiered .btn:not(.btn--hero-primary) {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.75rem 1rem !important;
    font-size: 0.82rem;
  }

  .home-realm-strip__inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .site-header--launcher::after {
    animation: none;
  }
}
