/* Nombre del Reino — landing WoW private server (rich visuals) */

:root {
  --bg-deep: #07090d;
  --bg-elevated: #10151f;
  --bg-panel: #151b27;
  --border-subtle: rgba(212, 175, 110, 0.22);
  --gold: #e8c97c;
  --gold-dim: #9a7b47;
  --text: #efeae3;
  --text-muted: #a39e94;
  --accent: #7ec8ff;
  --ice: #a8dcff;
  --frost: #d4eeff;
  --ice-glow: rgba(126, 200, 255, 0.35);
  --danger: #e05555;
  --success: #47c98a;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 40px rgba(232, 201, 124, 0.22);
  --site-header-h: 4.75rem;
  --site-footer-h: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(80, 140, 200, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(40, 90, 140, 0.12), transparent 45%),
    var(--bg-deep);
  min-height: 100vh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
  mix-blend-mode: overlay;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(ellipse 90% 30% at 50% 0%, rgba(168, 220, 255, 0.08), transparent 55%);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.45) 2px,
    rgba(0, 0, 0, 0.45) 4px
  );
}

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

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
  position: relative;
}

/* Vistas de una pantalla (home): fondo fijo + contenido encima */

.has-page-views {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.has-page-views > .page-shell {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.has-page-views .noise,
.has-page-views .vignette,
.has-page-views .scanlines {
  z-index: 2;
}

.has-page-views .vignette {
  opacity: 0.55;
}

.has-page-views .page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.has-page-views .page-backdrop .hero-media {
  position: absolute;
  inset: 0;
}

.has-page-views .page-backdrop .hero-gradient,
.forum-page .page-backdrop .hero-gradient,
.clanes-page .page-backdrop .hero-gradient,
.panel-page .page-backdrop .hero-gradient {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.32) 0%, transparent 18%),
    linear-gradient(180deg, transparent 62%, rgba(4, 10, 18, 0.28) 82%, rgba(4, 6, 10, 0.5) 100%),
    linear-gradient(
      105deg,
      rgba(7, 9, 13, 0.82) 0%,
      rgba(7, 9, 13, 0.5) 32%,
      rgba(7, 9, 13, 0.18) 58%,
      rgba(7, 9, 13, 0.42) 100%
    ),
    radial-gradient(ellipse 90% 70% at 20% 50%, rgba(20, 35, 55, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(100, 170, 220, 0.18), transparent 50%);
}

/* Subpáginas (foro, clanes, panel): mismo backdrop fijo que la home */
.forum-page .page-backdrop,
.clanes-page .page-backdrop,
.panel-page .page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.forum-page .page-backdrop .hero-media,
.clanes-page .page-backdrop .hero-media,
.panel-page .page-backdrop .hero-media {
  position: absolute;
  inset: 0;
}

.forum-page .page-backdrop .hero-photo,
.clanes-page .page-backdrop .hero-photo,
.panel-page .page-backdrop .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05) hue-rotate(-8deg) brightness(0.95);
}

.forum-page .vignette,
.clanes-page .vignette,
.panel-page .vignette {
  opacity: 0.55;
}

.page-shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.has-page-views .page-shell {
  min-height: 0;
}

.page-views {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}

.page-view {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: transparent !important;
  -webkit-overflow-scrolling: touch;
}

.page-view.page-view--active {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
  height: 100%;
  min-height: 100%;
  padding: var(--site-header-h) 0 var(--site-footer-h);
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-view.page-view--active > .wrap,
.page-view.page-view--active > .split-visual,
.page-view.page-view--active > .split,
.page-view.page-view--active > .hero-grid,
.page-view.page-view--active > .servidor-grid,
.page-view.page-view--active > .galeria-grid,
.page-view.page-view--active > .caracteristicas-grid,
.page-view.page-view--active > .conectar-grid {
  flex-shrink: 0;
  width: min(1120px, 92vw);
  max-width: 100%;
  margin-inline: auto;
}

.page-view:not(.hero).page-view--active {
  overflow-y: auto;
}

.page-view.hero.page-view--active {
  overflow: hidden;
}

/* Inicio (#top): layout original con panel */
.has-page-views .hero.hero--cinema {
  min-height: 0;
  padding: 0;
  display: none !important;
  background: transparent !important;
}

.has-page-views .hero.hero--cinema.page-view--active {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: var(--site-header-h) 0 var(--site-footer-h);
  overflow: hidden;
}

.has-page-views .hero.page-view--active .hero-copy .eyebrow {
  margin-top: 0;
}

.has-page-views .hero.page-view--active .hero-grid,
.has-page-views .page-view-servidor.page-view--active .servidor-grid,
.has-page-views .page-view-galeria.page-view--active .galeria-grid,
.has-page-views .page-view-caracteristicas.page-view--active .caracteristicas-grid,
.has-page-views .page-view-conectar.page-view--active .conectar-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin-inline: auto;
  max-height: none;
  overflow: visible;
}

/* Vistas internas: misma estética que inicio */
.page-view-servidor .title-epic,
.page-view-galeria .title-epic,
.page-view-caracteristicas .title-epic,
.page-view-conectar .title-epic {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.page-view-servidor .lead,
.page-view-galeria .lead,
.page-view-caracteristicas .lead,
.page-view-conectar .lead {
  max-width: 42ch;
  margin-bottom: 1.35rem;
}

.servidor-pillars,
.galeria-pillars,
.view-pillars {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1rem 0.85rem;
}

.servidor-pillar,
.galeria-pillar,
.view-pillar {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.servidor-pillar:first-child,
.galeria-pillar:first-child,
.view-pillar:first-child {
  padding-top: 0.15rem;
}

.servidor-pillar:last-child,
.galeria-pillar:last-child,
.view-pillar:last-child {
  border-bottom: none;
  padding-bottom: 0.1rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(232, 201, 124, 0.2);
}

.servidor-pillar p,
.galeria-pillar p,
.view-pillar p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(230, 225, 215, 0.78);
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.view-pillar code {
  font-size: 0.9em;
  color: var(--accent);
}

.panel-subtitle {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dim);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-block--panel {
  margin: 0 0 0.35rem;
}

.realmlist-copy-btn {
  margin: 0 0 0.85rem;
  width: 100%;
}

.conectar-links .conectar-link,
.conectar-links .conectar-link-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.conectar-links .conectar-link:hover,
.conectar-links .conectar-link-btn:hover {
  color: var(--gold);
}

.galeria-panel-feature {
  margin: 0 0 0.65rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.28);
  aspect-ratio: 16 / 10;
  max-height: 200px;
}

.galeria-panel-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  cursor: zoom-in;
}

.galeria-panel-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.galeria-panel-thumbs figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.22);
  aspect-ratio: 1;
}

.galeria-panel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.galeria-panel-thumbs figure:hover img {
  transform: scale(1.06);
}

.galeria-panel img:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .galeria-panel-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Galería — lightbox con marco y controles sobre la imagen */

.gallery-lightbox {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.gallery-lightbox::backdrop {
  background: rgba(4, 6, 10, 0.9);
  backdrop-filter: blur(10px);
}

.gallery-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-panel.gallery-lightbox-frame {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: min(94vw, 1000px);
  margin: 0;
  padding: 0;
  border: 2px solid rgba(212, 175, 110, 0.9);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(6, 8, 14, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 175, 110, 0.15);
  flex-shrink: 0;
  vertical-align: middle;
}

.gallery-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: #0a0c12;
}

.gallery-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.gallery-lightbox-stage img.is-swapping {
  opacity: 0.2;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 110, 0.35);
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.72);
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(212, 175, 110, 0.2);
  border-color: var(--gold);
}

.gallery-lightbox-close {
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.85rem;
  line-height: 1;
  font-family: var(--font-display);
}

.gallery-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-prev {
  left: 0.65rem;
}

.gallery-lightbox-next {
  right: 0.65rem;
}

.gallery-lightbox-nav[hidden],
.gallery-lightbox-close[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .gallery-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  .gallery-lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .gallery-lightbox-prev {
    left: 0.65rem;
  }

  .gallery-lightbox-next {
    right: 0.65rem;
  }
}

.realm-spec-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.page-view.section {
  padding: 0;
}

/* section anula padding:0 el espacio bajo el header fijo */
.page-view.section.page-view--active {
  padding: var(--site-header-h) 0 var(--site-footer-h);
  box-sizing: border-box;
}

.page-view:not(.hero):not(.page-view-servidor):not(.page-view-galeria):not(.page-view-caracteristicas):not(.page-view-conectar) > .wrap,
.page-view:not(.hero) > .split-visual,
.page-view:not(.hero) > .split {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin-inline: auto;
  max-height: none;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.page-view:not(.hero) .section-title,
.page-view:not(.hero) .section-intro,
.page-view:not(.hero) .gallery-intro,
.page-view:not(.hero) .center-title {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.92);
}

.page-view.section-alt,
.page-view.section-gallery,
.page-view.section-visual,
.page-view.section-features,
.page-view.section-comunidad,
.page-view.page-view-bugs {
  background: transparent !important;
}

.page-view.section-features .visual-strip {
  display: none;
}

.page-view-inner {
  padding-top: 0;
}

/* Otras secciones: sin cajas pesadas (inicio y servidor conservan frame-ornate) */
.has-page-views .page-view:not(.hero):not(.page-view-servidor):not(.page-view-galeria):not(.page-view-caracteristicas):not(.page-view-conectar) .frame-ornate,
.has-page-views .page-view:not(.hero):not(.page-view-servidor):not(.page-view-galeria):not(.page-view-caracteristicas):not(.page-view-conectar) .card,
.has-page-views .page-view:not(.hero):not(.page-view-servidor):not(.page-view-galeria):not(.page-view-caracteristicas):not(.page-view-conectar) .feature-list li,
.has-page-views .page-view:not(.hero):not(.page-view-servidor):not(.page-view-galeria):not(.page-view-caracteristicas):not(.page-view-conectar) .aside-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.has-page-views .page-view:not(.hero):not(.page-view-servidor):not(.page-view-galeria):not(.page-view-caracteristicas):not(.page-view-conectar) .frame-ornate::after {
  display: none;
}

.has-page-views .page-view:not(.hero) .feature-list li {
  padding: 0.75rem 0;
}

.has-page-views .page-view:not(.hero) .aside-box {
  padding: 0;
  position: static;
}

.has-page-views .page-view:not(.hero) .visual-figure img {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.site-nav a.is-active:not(.btn) {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 201, 124, 0.35);
}

.site-footer--shell.site-footer--compact {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 12;
  margin-top: 0;
  padding: 0.45rem 0 0.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(4, 8, 14, 0.22) 50%,
    rgba(4, 6, 10, 0.42) 100%
  );
  border-top: none;
}

.site-footer--shell.site-footer--compact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 2rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 14, 0.14));
}

.site-footer--compact .footer-glow,
.site-footer--compact .footer-disclaimer {
  display: none;
}

.site-footer--compact .footer-inner {
  overflow: visible;
  text-align: center;
}

.site-footer--compact .footer-copy {
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(163, 158, 148, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  white-space: normal;
  width: auto;
  max-width: min(52rem, 92vw);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.58) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* Home: nav flotando sobre el hero, sin bloque sólido */
.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 14, 0.38) 0%,
    rgba(5, 8, 14, 0.12) 55%,
    transparent 100%
  );
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.site-header--overlay.is-scrolled {
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.94) 0%, rgba(7, 9, 13, 0.88) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.site-header--overlay .site-nav a:not(.btn) {
  color: rgba(240, 235, 225, 0.95);
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.site-header--overlay .site-nav a:not(.btn):hover {
  color: var(--gold);
  text-shadow:
    0 0 18px rgba(232, 201, 124, 0.45),
    0 1px 12px rgba(0, 0, 0, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  min-height: var(--site-header-h);
  box-sizing: border-box;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-emblem {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(30, 44, 62, 0.9), #07090d);
  border: 2px solid rgba(212, 175, 110, 0.5);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(232, 201, 124, 0.18),
    0 0 12px rgba(126, 200, 255, 0.2);
  flex-shrink: 0;
}

.brand-emblem::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 12%;
  right: 12%;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(1px);
  pointer-events: none;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
  text-align: left;
}

.brand-mythos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #f5e9c8, #c9a24d 55%, #8a6a2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(212, 175, 110, 0.25));
}

.brand-wow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: #8ec8ff;
  margin-top: 0.06rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding-block: 0.2rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.site-nav a:not(.btn):hover {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 201, 124, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-panel);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--gold);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4vw 1.25rem;
    background: rgba(7, 9, 13, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
    opacity: 1;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-comunidad-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-comunidad-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0;
    text-align: left;
  }

  .nav-comunidad-panel {
    position: static;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0 0.5rem;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
  }

  .nav-comunidad-panel-link {
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-comunidad-panel-link:last-child {
    border-bottom: none;
  }

  .site-nav a.btn {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.28s ease,
    background 0.22s ease,
    border-color 0.22s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -3px 10px rgba(0, 0, 0, 0.25) inset,
    0 8px 22px rgba(0, 0, 0, 0.4);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  color: #1a1410;
  border-color: rgba(255, 248, 220, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(220, 240, 255, 0.08) 20%, transparent 34%),
    linear-gradient(180deg, #fcecc4 0%, #e8cf8a 45%, #b88932 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -4px 14px rgba(70, 45, 8, 0.35) inset,
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 16px 36px rgba(90, 55, 10, 0.32),
    0 0 22px rgba(212, 175, 110, 0.25);
}

.btn-glow:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -4px 14px rgba(70, 45, 8, 0.3) inset,
    0 12px 28px rgba(0, 0, 0, 0.48),
    0 20px 42px rgba(90, 55, 10, 0.38),
    0 0 34px rgba(232, 201, 124, 0.4);
}

.btn-ghost {
  color: #e8d5a8;
  border-color: rgba(212, 175, 110, 0.38);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(180, 210, 235, 0.06) 18%, transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(8, 14, 24, 0.72) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -3px 12px rgba(0, 0, 0, 0.4) inset,
    0 8px 24px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(126, 200, 255, 0.1);
}

.btn-ghost:hover {
  border-color: rgba(232, 201, 124, 0.6);
  color: #f5e6c4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(180, 210, 235, 0.08) 18%, transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 175, 110, 0.2) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -3px 12px rgba(0, 0, 0, 0.35) inset,
    0 10px 28px rgba(0, 0, 0, 0.52),
    0 0 26px rgba(126, 200, 255, 0.18);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-small::before {
  top: -7px;
  height: 14px;
  left: -2%;
  right: -2%;
}

/* Hero cinematic */

.hero--cinema {
  position: relative;
  z-index: 1;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero--cinema .site-header--overlay {
  z-index: 12;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.galeria-panel-feature picture,
.galeria-panel-thumbs picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05) hue-rotate(-8deg) brightness(0.95);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.28) 0%, transparent 22%),
    linear-gradient(105deg, rgba(7, 9, 13, 0.97) 0%, rgba(7, 9, 13, 0.75) 38%, rgba(7, 9, 13, 0.2) 62%, rgba(7, 9, 13, 0.5) 100%),
    radial-gradient(ellipse 90% 70% at 20% 50%, rgba(20, 35, 55, 0.5), transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(100, 170, 220, 0.15), transparent 50%);
}

.hero-shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 55%
  );
  animation: sweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(-8%) translateY(2%) rotate(0deg);
  }
  50% {
    transform: translateX(12%) translateY(-4%) rotate(2deg);
  }
}

.embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.embers span {
  position: absolute;
  bottom: -5%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffecc8 0%, rgba(255, 180, 80, 0.4) 60%, transparent 70%);
  opacity: 0.85;
  animation: ember-rise linear infinite;
  box-shadow: 0 0 6px rgba(255, 200, 120, 0.8);
}

.embers--light span {
  background: radial-gradient(circle, #b8dfff 0%, rgba(80, 140, 255, 0.35) 60%, transparent 70%);
  box-shadow: 0 0 8px rgba(120, 190, 255, 0.5);
}

@keyframes ember-rise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) translateX(25px) scale(0.4);
    opacity: 0;
  }
}

.embers span:nth-child(1) {
  left: 8%;
  animation-duration: 11s;
  animation-delay: 0s;
}
.embers span:nth-child(2) {
  left: 15%;
  animation-duration: 14s;
  animation-delay: 2s;
}
.embers span:nth-child(3) {
  left: 22%;
  animation-duration: 9s;
  animation-delay: 1s;
}
.embers span:nth-child(4) {
  left: 38%;
  animation-duration: 12s;
  animation-delay: 4s;
}
.embers span:nth-child(5) {
  left: 48%;
  animation-duration: 15s;
  animation-delay: 0.5s;
}
.embers span:nth-child(6) {
  left: 58%;
  animation-duration: 10s;
  animation-delay: 3s;
}
.embers span:nth-child(7) {
  left: 68%;
  animation-duration: 13s;
  animation-delay: 1.5s;
}
.embers span:nth-child(8) {
  left: 78%;
  animation-duration: 11s;
  animation-delay: 2.5s;
}
.embers span:nth-child(9) {
  left: 88%;
  animation-duration: 16s;
  animation-delay: 0.2s;
}
.embers span:nth-child(10) {
  left: 92%;
  animation-duration: 12s;
  animation-delay: 4.5s;
}
.embers span:nth-child(11) {
  left: 12%;
  animation-duration: 13s;
  animation-delay: 5s;
}
.embers span:nth-child(12) {
  left: 42%;
  animation-duration: 10s;
  animation-delay: 6s;
}
.embers span:nth-child(13) {
  left: 52%;
  animation-duration: 14s;
  animation-delay: 7s;
}
.embers span:nth-child(14) {
  left: 63%;
  animation-duration: 11s;
  animation-delay: 3.5s;
}
.embers span:nth-child(15) {
  left: 33%;
  animation-duration: 15s;
  animation-delay: 8s;
}
.embers span:nth-child(16) {
  left: 73%;
  animation-duration: 12s;
  animation-delay: 4s;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

  .hero-gradient {
    background: linear-gradient(to bottom, rgba(7, 9, 13, 0.85), rgba(7, 9, 13, 0.92)),
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 50, 80, 0.4), transparent);
  }

  .hero-photo {
    object-position: center 20%;
  }
}

.glow-line {
  text-shadow: 0 0 20px rgba(232, 201, 124, 0.35);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 1rem;
}

.title-epic {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.hero .gold,
.shimmer {
  color: var(--gold);
}

.shimmer {
  background: linear-gradient(90deg, #d4af6e, #fff6dd, #d4af6e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.lead {
  color: rgba(230, 225, 215, 0.82);
  max-width: 40ch;
  margin: 0 0 1.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-top: none;
  align-items: center;
}

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

.hero-stats dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}

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

.frame-inline {
  border: 1px solid rgba(212, 175, 110, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: relative;
}

.frame-ornate {
  position: relative;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(var(--bg-panel), var(--bg-panel)) padding-box,
    linear-gradient(
      145deg,
      rgba(212, 175, 110, 0.85),
      rgba(126, 200, 255, 0.45),
      rgba(80, 60, 30, 0.5),
      rgba(168, 220, 255, 0.55),
      rgba(212, 175, 110, 0.55)
    )
    border-box;
  box-shadow:
    var(--shadow),
    var(--glow-gold),
    0 0 28px rgba(126, 200, 255, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(200, 230, 255, 0.08);
}

.frame-ornate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(200, 230, 255, 0.07) 0%,
    transparent 35%,
    transparent 70%,
    rgba(126, 200, 255, 0.04) 100%
  );
}

.panel-card {
  position: relative;
  padding: 1.6rem 1.55rem 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-card-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(232, 201, 124, 0.12), transparent 45%);
  pointer-events: none;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 201, 124, 0.25);
}

.hero-online {
  color: var(--success);
  font-weight: 700;
  font-size: 1.35rem;
  text-shadow: 0 0 18px rgba(71, 201, 138, 0.4);
}

.realm-online-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(71, 201, 138, 0.08);
  border: 1px solid rgba(71, 201, 138, 0.25);
  border-radius: 10px;
}

.realm-online-banner strong {
  font-size: 1.35rem;
  color: var(--success);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(71, 201, 138, 0.35);
}

.realm-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  flex-shrink: 0;
  animation: realm-pulse 2s ease-in-out infinite;
}

@keyframes realm-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .realm-online-dot {
    animation: none;
  }
}

.panel-subtitle {
  margin: 1.1rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.realm-online-players {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 11rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.35) transparent;
}

.realm-online-players li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.realm-online-players li:last-child {
  border-bottom: none;
}

.realm-online-name {
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realm-online-meta {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.realm-online-empty .realm-online-name {
  color: var(--muted);
  font-weight: 500;
}

.realm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.realm-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.realm-list li:last-child {
  border-bottom: none;
}

.realm-name {
  font-weight: 600;
}

.realm-status {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.realm-status.online {
  color: var(--success);
  text-shadow: 0 0 12px rgba(71, 201, 138, 0.45);
}

.realm-status.offline {
  color: var(--danger);
}

.panel-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Divider */

.divider-wow {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin: -1px 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.divider-wow--flip {
  transform: scaleY(-1);
}

.divider-svg {
  display: block;
  width: 100%;
  height: clamp(28px, 5vw, 48px);
}

/* Sections */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
}

.section-visual {
  overflow: hidden;
}

/* Galería Mythos */

.section-gallery {
  padding-top: 0;
}

.gallery-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 1.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(130px, 16vw);
  gap: 0.65rem;
  max-width: 1120px;
  margin-inline: auto;
}

.gallery-feature {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-span {
  grid-column: 1 / -1;
  min-height: 200px;
}

.gallery-cell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  min-height: 120px;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-span img {
  object-position: center 35%;
}

.gallery-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.65), transparent 45%);
  pointer-events: none;
}

.gallery-cell:hover img {
  transform: scale(1.07);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(120px, 28vw);
  }

  .gallery-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }

  .gallery-span {
    grid-column: 1 / -1;
  }
}

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

  .gallery-feature {
    grid-column: 1 / -1;
  }
}

.title-accent {
  display: inline-block;
  width: 6px;
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: -0.05em;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(232, 201, 124, 0.5);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  margin: 0 0 0.75rem;
}

.center-title {
  text-align: center;
}

.section-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 2rem;
}

.section-intro.center {
  text-align: center;
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .split-visual {
    grid-template-columns: 1fr;
  }
}

.visual-figure {
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.visual-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.visual-figure:hover img {
  transform: scale(1.06);
}

.visual-copy .section-intro {
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cards--stack {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .cards:not(.cards--stack) {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 201, 124, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card--media {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.25);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.85), transparent 55%);
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card--media:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.1rem 1.35rem 1.35rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Feature strip + list */

.section-features {
  padding-top: 0;
}

.visual-strip {
  position: relative;
  height: min(38vh, 420px);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
}

.visual-strip-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center 40%;
}

.visual-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 9, 13, 0.1), rgba(7, 9, 13, 0.92)),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(40, 70, 120, 0.35), transparent);
}

.visual-strip-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 248, 235, 0.92);
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(232, 201, 124, 0.45);
  pointer-events: none;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(135deg, rgba(26, 32, 48, 0.95), rgba(15, 19, 28, 0.98));
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 110, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  align-items: start;
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(126, 200, 255, 0.3));
}

.feature-list strong {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.feature-list .feature-desc {
  display: block;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .feature-list li {
    grid-template-columns: 1fr;
  }

  .feature-icon {
    font-size: 1.75rem;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(232, 201, 124, 0.25), rgba(20, 24, 32, 0.9));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(232, 201, 124, 0.12);
}

.steps strong {
  display: block;
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.code-block {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: #050608;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.code-block code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9rem;
  color: var(--accent);
}

.aside-box {
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  position: sticky;
  top: 5rem;
}

.aside-media {
  padding: 0;
  overflow: hidden;
}

.aside-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.aside-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aside-media h3,
.aside-media .link-stack {
  padding: 0 1.35rem;
}

.aside-media h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 1rem 0 0.75rem;
}

.aside-media .link-stack {
  padding-bottom: 1.25rem;
}

.link-stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-stack li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.link-stack li:last-child {
  border-bottom: none;
}

.link-stack a {
  display: block;
  padding: 0.55rem 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.link-stack a:hover {
  color: var(--gold);
}

.center-flex {
  justify-content: center;
}

/* Foro */

.section-foro .foro-inner {
  text-align: center;
}

.section-foro .section-intro {
  margin-bottom: 1.75rem;
}

/* Comunidad fullbleed */

.section-comunidad {
  position: relative;
  padding: clamp(4rem, 10vw, 6rem) 0;
  overflow: hidden;
}

.comunidad-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.05);
}

.comunidad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.25), rgba(7, 9, 13, 0.88)),
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30, 55, 90, 0.35), transparent);
}

.comunidad-inner {
  position: relative;
  z-index: 2;
}

.section-comunidad .section-intro {
  color: rgba(235, 230, 220, 0.88);
}

/* Footer (páginas con pie grande; el compacto de la home no usa estas reglas) */

.site-footer:not(.site-footer--compact) {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: 2.75rem 0 3.25rem;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(40, 35, 25, 0.35), #040508);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 110, 0.12), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #6a665e;
  margin: 0;
}

/* Registro modal (<dialog>) */

.register-modal {
  border: none;
  padding: 0;
  max-width: min(460px, calc(100vw - 2rem));
  width: 100%;
  background: transparent;
  color: var(--text);
}

.register-modal::backdrop {
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(10px);
}

.register-modal-panel {
  position: relative;
  padding: 1.65rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #171d2a 0%, #0e1118 100%);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(212, 175, 110, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.modal-close:hover {
  background: rgba(212, 175, 110, 0.12);
  border-color: rgba(212, 175, 110, 0.45);
}

.register-modal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  padding-right: 2.5rem;
}

.register-modal-logo {
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 110, 0.35);
  filter: drop-shadow(0 0 12px rgba(212, 175, 110, 0.2));
}

.register-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.register-modal-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.login-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--gold, #c9a227);
  cursor: pointer;
}

.login-mfa-recover {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(200, 140, 60, 0.35);
  border-radius: 4px;
  background: rgba(40, 28, 12, 0.35);
}

.login-mfa-recover-lead {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-mfa-step {
  padding-top: 0.25rem;
}

.login-mfa-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-mfa-code-input {
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.register-form .field {
  display: block;
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field input:focus {
  outline: none;
  border-color: rgba(232, 201, 124, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 110, 0.15);
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.field-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.field-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.field-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-check a:hover {
  color: var(--gold);
}

.server-rules-body {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 110, 0.22);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
}

.server-rules-body h3 {
  margin: 1rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}

.server-rules-body h3:first-child {
  margin-top: 0;
}

.server-rules-body ol {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.server-rules-body li {
  margin-bottom: 0.35rem;
}

.server-rules-body p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-msg--error {
  background: rgba(200, 60, 60, 0.18);
  border: 1px solid rgba(224, 85, 85, 0.45);
  color: #f0c4c4;
}

.form-msg--ok {
  background: rgba(55, 160, 110, 0.18);
  border: 1px solid rgba(71, 201, 138, 0.45);
  color: #c8f0dd;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.register-submit {
  flex: 1 1 auto;
  min-width: 140px;
}

.nav-auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  margin-left: 0.15rem;
}

/* Con sesión en localStorage: no mostrar botones de invitado hasta que auth-ui pinte la nav. */
html.mythos-has-session:not(.mythos-nav-auth-ready) #nav-auth-slot {
  visibility: hidden;
  min-height: 2.25rem;
}

.nav-auth-slot .btn-small {
  padding: 0.5rem 0.9rem;
  line-height: 1.2;
}

.nav-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-account-chevron {
  font-size: 0.7rem;
  opacity: 0.75;
  transition: transform 0.2s;
}

.nav-account-menu.is-open .nav-account-chevron {
  transform: rotate(180deg);
}

.nav-account-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 120;
  flex-direction: column;
  min-width: 14.25rem;
  padding: 0.5rem;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-account-panel[hidden] {
  display: none !important;
}

.nav-account-panel:not([hidden]) {
  display: flex;
}

.nav-account-panel-user {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0;
  padding: 0.7rem 0.85rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.nav-account-panel-user .nav-account-panel-user-avatar {
  grid-column: 1;
  grid-row: 1;
}

.nav-account-panel-user-name {
  grid-column: 2;
  grid-row: 1;
}

.nav-mailbox-btn {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  font-family: inherit;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 110, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.nav-mailbox-btn:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 110, 0.65);
  background: rgba(212, 175, 110, 0.1);
}

.nav-mailbox-btn--unread {
  color: var(--gold);
  border-color: rgba(212, 175, 110, 0.75);
  background: linear-gradient(
    180deg,
    rgba(212, 175, 110, 0.22) 0%,
    rgba(212, 175, 110, 0.08) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 110, 0.2),
    0 0 16px rgba(212, 175, 110, 0.35),
    inset 0 0 12px rgba(212, 175, 110, 0.12);
}

.nav-mailbox-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15rem;
  text-align: center;
  color: #1a1208;
  background: linear-gradient(165deg, #f0d890 0%, #d4af6e 42%, #9a7b47 100%);
  border: 1px solid rgba(255, 228, 170, 0.55);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(20, 14, 8, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.nav-mailbox-icon {
  font-size: 1.05rem;
  line-height: 1;
  transition: filter 0.2s ease;
}

.nav-mailbox-btn--unread .nav-mailbox-icon {
  filter: drop-shadow(0 0 6px rgba(232, 201, 124, 0.65));
}

.nav-account-trigger {
  position: relative;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.nav-account-trigger--alert {
  color: var(--gold);
  border-color: rgba(212, 175, 110, 0.75);
  background: linear-gradient(
    180deg,
    rgba(212, 175, 110, 0.2) 0%,
    rgba(212, 175, 110, 0.06) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 110, 0.25),
    0 0 18px rgba(212, 175, 110, 0.4),
    var(--glow-gold),
    inset 0 0 14px rgba(212, 175, 110, 0.1);
}

.nav-account-trigger--alert .nav-account-chevron {
  color: var(--gold);
  opacity: 1;
}

/* Popup notificaciones de cuenta (Mi cuenta) */
.account-notif-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(480px, 92vw);
  color: var(--text);
}

.account-notif-dialog::backdrop {
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(6px);
}

.account-notif-dialog-panel {
  padding: 1.5rem 1.35rem 1.25rem;
  background: var(--bg-elevated);
}

.account-notif-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-notif-dialog-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.account-notif-dialog-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.account-notif-dialog-close:hover {
  color: var(--gold);
  background: rgba(212, 175, 110, 0.12);
  border-color: rgba(212, 175, 110, 0.4);
}

.account-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-height: min(55vh, 360px);
  margin: 0 0 1rem;
  padding: 0.15rem 0.35rem 0.15rem 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.5) rgba(0, 0, 0, 0.35);
}

.account-notifications-list::-webkit-scrollbar {
  width: 6px;
}

.account-notifications-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}

.account-notifications-list::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.45);
  border-radius: 4px;
}

.account-notifications-list::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 110, 0.7);
}

.account-notif-empty {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.account-notif-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.account-notif-item-head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.account-notif-item-source {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: rgba(212, 175, 110, 0.95);
  background: rgba(212, 175, 110, 0.12);
  border: 1px solid rgba(212, 175, 110, 0.25);
}

.account-notif-item-source--bugtracker {
  color: rgba(160, 200, 255, 0.95);
  background: rgba(80, 140, 220, 0.12);
  border-color: rgba(100, 160, 230, 0.3);
}

.account-notif-row {
  margin-bottom: 0.35rem;
}

.account-notif-card {
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.account-notif-card.account-notif-item--unread {
  border-left-color: var(--gold);
  background: rgba(212, 175, 110, 0.1);
}

.account-notif-item-link {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.account-notif-item-link:hover {
  color: var(--gold);
}

.account-notif-item-head .account-notif-dismiss {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.account-notif-dismiss:hover {
  color: #f0a8a8;
  background: rgba(224, 85, 85, 0.15);
  border-color: rgba(224, 85, 85, 0.35);
}

.account-notif-dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-notif-dialog-actions [data-account-notif-clear] {
  margin-right: auto;
}

.account-notif-item-head .account-notif-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-account-panel-user-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.45);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-account-panel-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-account-panel-user-avatar img.nav-account-panel-user-img--icon {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
}

.nav-account-panel-user-avatar img.avatar-wow-portrait,
.panel-overview-avatar.avatar-wow-portrait,
.panel-avatar-img.avatar-wow-portrait,
.panel-header-avatar-img.avatar-wow-portrait {
  object-fit: cover;
  object-position: center 18%;
}

.nav-account-panel-user-avatar--empty {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.nav-account-panel-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-account-panel-section {
  padding: 0.45rem 0 0.5rem;
}

.nav-account-panel-section + .nav-account-panel-section {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-account-panel-section-label {
  margin: 0;
  padding: 0 0.95rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-account-panel-section--admin .nav-account-panel-section-label {
  color: rgba(212, 175, 110, 0.85);
}

.nav-account-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.4rem 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-account-panel-user + .nav-account-panel-actions {
  border-top: none;
}

.nav-account-panel-link,
.nav-account-panel-logout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.65rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.nav-account-panel-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

.nav-account-panel-link--admin {
  color: var(--gold);
}

.nav-account-panel-logout {
  color: #f0a8a8;
  margin: 0;
}

.nav-account-panel-logout:hover {
  color: #ffc4c4;
  background: rgba(224, 85, 85, 0.12);
}

/* Menú Comunidad (nav) */
.nav-comunidad-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-comunidad-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-comunidad-trigger:hover,
.nav-comunidad-trigger.is-active {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 201, 124, 0.35);
}

.site-header--overlay .nav-comunidad-trigger {
  color: rgba(240, 235, 225, 0.95);
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.site-header--overlay .nav-comunidad-trigger:hover,
.site-header--overlay .nav-comunidad-trigger.is-active {
  color: var(--gold);
  text-shadow:
    0 0 18px rgba(232, 201, 124, 0.45),
    0 1px 12px rgba(0, 0, 0, 0.85);
}

.nav-menu-chevron {
  font-size: 0.7rem;
  opacity: 0.75;
  transition: transform 0.2s;
}

.nav-comunidad-menu.is-open .nav-menu-chevron {
  transform: rotate(180deg);
}

.nav-comunidad-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 120;
  min-width: 11rem;
  padding: 0.45rem 0;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-comunidad-panel-link {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-comunidad-panel-link:hover,
.nav-comunidad-panel-link.is-active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.auth-demo-hint {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.5rem 0.65rem;
  background: rgba(71, 201, 138, 0.08);
  border: 1px solid rgba(71, 201, 138, 0.22);
  border-radius: 8px;
}

.auth-demo-hint strong {
  color: var(--gold);
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.is-active {
  color: var(--gold);
  background: rgba(212, 175, 110, 0.15);
}

.auth-tab:hover:not(.is-active) {
  color: var(--text);
}

.register-footnote {
  margin: 1.15rem 0 0;
  font-size: 0.78rem;
  color: #7a756c;
  line-height: 1.45;
}

.register-step-pending {
  margin: 0.5rem 0 0;
}

.register-step-pending .register-pending-lead {
  margin: 0 0 0.75rem;
  line-height: 1.5;
  color: var(--text);
}

.register-step-pending .register-actions {
  margin-top: 1rem;
}

.nav-register {
  border-radius: 999px;
}

.inline-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--gold);
}

.link-stack-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 0;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.2s;
}

.link-stack-btn:hover {
  color: var(--gold);
}

@media (max-width: 860px) {
  .nav-auth-slot {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-left: 0;
    margin-top: 0.35rem;
  }

  .nav-auth-slot .btn-small {
    width: 100%;
    justify-content: center;
  }

  .nav-account-menu {
    width: 100%;
  }

  .nav-account-trigger {
    width: 100%;
    justify-content: center;
  }

  .nav-account-panel {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
  }
}

/* Nieve suave (sin overlay en pantalla) */

.ice-snow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 96;
  overflow: hidden;
}

.ice-flake {
  position: absolute;
  top: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--frost) 45%, transparent 70%);
  box-shadow: 0 0 6px rgba(200, 230, 255, 0.9);
  animation: ice-fall linear infinite;
}

@keyframes ice-fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(110vh) translateX(24px) rotate(360deg);
    opacity: 0;
  }
}

.title-epic .gold,
.shimmer {
  text-shadow:
    0 0 24px rgba(232, 201, 124, 0.35),
    0 0 40px rgba(126, 200, 255, 0.15);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-bg {
    transform: none !important;
  }

  .ice-snow {
    display: none;
  }

}
