/* =========================
   RESET BÁSICO
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #0f0f0f;
  color: #ffffff;
  line-height: 1.6;
}

/* =========================
   UTILIDADES
========================= */
html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.2rem;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 10px;
  opacity: 0.82;
  font-size: 1.05rem;
}

/* =========================
   HEADER
========================= */
.site-header {
  background-color: #111;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Container universal */
.container {
  width: min(1100px, calc(100% - 48px)); /* ancho máximo + padding lateral */
  margin: 0 auto; /* centra el contenido */
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* izq | centro | der */
  align-items: center;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.brand-logo {
  height: 50px; /* controla tamaño aquí */
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #ccc;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ec8e22;
}

/* Centro real */
.header-center {
  justify-self: center;
}

/* “placeholder” para balancear el grid */
.header-right {
  width: 50px; /* o el ancho aprox del logo si quieres simetría */
  justify-self: end;
}

/* =========================
   HERO
========================= */
.hero-section {
  text-align: center;
}

.hero-title {
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title-color {
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ec8e22;
}

.hero-subtitle {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Helvetica Neue,
    Arial,
    Noto Sans,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-size: 1rem;
  opacity: 0.8;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Helvetica Neue,
    Arial,
    Noto Sans,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -60vh;
  background:
    radial-gradient(
      circle at 25% 30%,
      rgba(245, 158, 11, 0.3),
      transparent 65%
    ),
    radial-gradient(circle at 75% 65%, rgba(75, 26, 101, 0.38), transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* =========================
   BOTONES
========================= */
.btn {
  min-width: 230px;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  isolation: isolate;
  position: relative;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #111;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
  position: relative;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: rgba(245, 158, 11, 0.55);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: rgba(114, 137, 218, 0.747);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  position: relative;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: rgba(114, 137, 218, 0.623);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.btn-secondary:hover::after {
  opacity: 1;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem; /* separación armoniosa */
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid #222;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================
   MASCOTA + STATUS
========================= */

.server-pill {
  position: absolute;
  top: -42.5%;
  left: 69%;
  z-index: 5;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-pill::before {
  content: "";
  position: absolute;
  left: 76%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
}

.server-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #777; /* se cambia en JS */
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.server-pill.online .dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.server-pill.offline .dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.server-text {
  white-space: pre-line;
  line-height: 1.35;
}

/* =========================
   VISUAL (miko grande + árbol atrás)
========================= */
.hero-visual {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  border-radius: 18px;
}

/* Árbol atrás (grande pero suave) */
.hero-tree {
  position: absolute;
  right: -2%;
  top: -85%;
  width: 35%;
  max-width: 900px;
  height: 95%;
  opacity: 0.44; /* suave */
  filter: blur(0px) saturate(1.05);
  transform: rotate(-2deg);
  pointer-events: none;
  user-select: none;
}

/* Miko principal (alto del hero) */
.hero-miko {
  position: absolute;
  right: 12%;
  bottom: 475px;
  height: 70%;
  width: auto;
  max-height: 720px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  user-select: none;
}

/* =========================
   STORE (Dynasty style)
========================= */
.store-section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
}

.store-wrap {
  position: relative;
}

.store-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.store-copy {
  max-width: 620px;
}

.store-subtitle {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.store-text {
  opacity: 0.82;
  margin-bottom: 16px;
  line-height: 1.65;
}

.store-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 12px;
}

.store-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.store-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: rgba(54, 197, 41, 0.95);
  font-weight: 800;
  line-height: 1;
}

.store-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.store-note {
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Visual */
.store-visual {
  position: relative;
  min-height: 420px;
}

.store-card {
  position: relative;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.store-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(245, 158, 11, 0.95);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.18);
  padding: 8px 10px;
  border-radius: 999px;
}

.store-lines {
  display: grid;
  gap: 8px;
  width: 40%;
}

.store-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.store-line.short {
  width: 70%;
  justify-self: end;
}

.store-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14/14;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.store-card-bottom {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.store-metric {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.store-metric .k {
  display: block;
  font-size: 0.82rem;
  opacity: 0.7;
  margin-bottom: 2px;
}

.store-metric .v {
  display: block;
  font-weight: 750;
  letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 980px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
  .store-visual {
    min-height: 360px;
  }
}

/* =========================
   MODES / MODALIDADES
========================= */
.modes-section {
  position: relative;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
}

.mode-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 15, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transform: translateZ(0);
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(229, 111, 30, 0.22),
      transparent 55%
    ),
    radial-gradient(circle at 85% 75%, rgba(75, 26, 101, 0.22), transparent 60%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.mode-media {
  position: relative;
  height: 210px;
  z-index: 1;
}

.mode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Overlay suave arriba de la imagen */
.mode-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.65)
  );
  pointer-events: none;
}

.mode-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.mode-body {
  position: relative;
  padding: 18px 18px 16px;
  z-index: 1;
}

.mode-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
}

.mode-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.mode-status.is-online {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
  color: rgba(180, 255, 210, 0.95);
}

.mode-status.is-offline {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(255, 200, 200, 0.95);
}

.mode-status.is-dev {
  border-color: rgba(229, 111, 30, 0.25);
  background: rgba(229, 111, 30, 0.1);
  color: rgba(255, 220, 190, 0.95);
}

.mode-desc {
  margin: 10px 0 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 10px;
}

.mode-features li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.mode-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #e56f1e; /* dorado Dynasty */
  font-weight: 900;
}

.mode-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 14px 0 12px;
}

.mode-bottom {
  display: grid;
  gap: 10px;
}

.mode-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.metric-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.metric-value {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.mode-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mode-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e56f1e, #4b1a65);
  filter: saturate(1.05);
}

/* CTA discreto */
.mode-cta {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.mode-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 111, 30, 0.26);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ===== Reveal on load ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger (aparecen uno tras otro) */
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* Respeta usuarios con reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  body.is-ready .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
