:root {
  --bg: #030506;
  --bg-2: #071013;
  --bg-3: #0c171a;
  --panel: rgba(9, 16, 17, 0.88);
  --panel-2: rgba(12, 20, 22, 0.92);
  --panel-3: rgba(16, 28, 31, 0.86);
  --text: #eef7ea;
  --muted: #a9b7b2;
  --accent: #9be35e;
  --accent-2: #52d0a6;
  --accent-dark: #6aad39;
  --glow: rgba(155, 227, 94, 0.22);
  --glow-2: rgba(82, 208, 166, 0.18);
  --border: rgba(155, 227, 94, 0.18);
  --border-strong: rgba(155, 227, 94, 0.34);
  --danger: #f18f80;
  --shadow: 0 22px 60px rgba(0, 0, 0, .38);
  --font-body: "Inter", Segoe UI, Arial, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 16% 14%, rgba(126, 193, 68, .18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(57, 176, 140, .16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(114, 191, 73, .10), transparent 35%),
    linear-gradient(180deg, #020304 0%, var(--bg) 18%, var(--bg-2) 64%, #030405 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .09;
  background:
    linear-gradient(transparent 0 97%, rgba(255,255,255,.03) 100%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.06), transparent 12%),
    radial-gradient(circle at 76% 28%, rgba(255,255,255,.04), transparent 10%),
    radial-gradient(circle at 48% 78%, rgba(255,255,255,.03), transparent 12%);
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 130px 130px;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(3, 6, 7, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(106, 211, 115, .22));
}
.brand div {
  display: flex;
  flex-direction: column;
}
.brand strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(155, 227, 94, .14);
}
.brand span {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: .94rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: right .2s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  right: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -220px -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,227,94,.16), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(82,208,166,.18), transparent 45%),
    radial-gradient(circle, rgba(155,227,94,.10), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero-kicker {
  margin: 0 0 10px;
  color: #d7e8ce;
  font-family: var(--font-display);
  font-size: .98rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .92;
}
h1, h2, h3, .section h2, .panel-card h2, .panel-topbar h1, .panel-login-card h1 {
  font-family: var(--font-display);
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(155,227,94,.08);
}
h1 span {
  color: var(--accent);
}
.hero-copy > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.logo-stage {
  min-height: 560px;
  display: grid;
  place-items: center;
  position: relative;
}
.logo-stage::before {
  content: "";
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(155,227,94,.22), transparent 38%),
    radial-gradient(circle, rgba(82,208,166,.16), transparent 60%);
  filter: blur(10px);
}
.logo-stage::after {
  content: "";
  position: absolute;
  inset: 8% 8%;
  border-radius: 28px;
  border: 1px solid rgba(155,227,94,.08);
  box-shadow: inset 0 0 90px rgba(155,227,94,.03);
}
.logo-stage img {
  position: relative;
  width: min(580px, 98%);
  filter: drop-shadow(0 30px 55px rgba(0,0,0,.5));
  border-radius: 26px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: linear-gradient(180deg, rgba(17,28,29,.95), rgba(9,16,17,.95));
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(155,227,94,.08);
}
.button.primary {
  color: #071007;
  border-color: transparent;
  background: linear-gradient(180deg, #c2f173, #91d34b);
}
.button.aqua {
  border-color: rgba(82,208,166,.24);
  background: linear-gradient(180deg, rgba(82,208,166,.22), rgba(82,208,166,.08));
}
.button.ghost {
  background: transparent;
}

.copy-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-value {
  flex: 1 1 280px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 18px rgba(155,227,94,.03);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pill {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(155,227,94,.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #c7d3ce;
  background: rgba(255,255,255,.02);
  font-size: .92rem;
}

.status-strip {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8,13,14,.95), rgba(8,13,14,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.status-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.status-item {
  padding: 18px 24px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.status-item:last-child { border-right: 0; }
.status-label {
  color: var(--muted);
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.status-value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.online { color: var(--accent); }
.offline { color: var(--danger); }

.section { padding: 78px 0; }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.section-intro {
  max-width: 840px;
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13,19,21,.92), rgba(8,13,15,.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}
.card::before, .map-shell::before, .map-sidebar::before, .panel-card::before, .panel-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(155,227,94,.22), rgba(82,208,166,.16), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.card p, .card li { color: var(--muted); line-height: 1.72; }
.card strong { color: var(--text); }

.feature-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  opacity: .95;
  text-shadow: 0 0 18px rgba(155,227,94,.12);
}

.list-clean { margin: 0; padding: 0; list-style: none; }
.list-clean li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.list-clean li:last-child { border-bottom: 0; }

.dino-tag {
  display: inline-block;
  margin: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(155,227,94,.18);
  border-radius: 999px;
  color: #d3ddd7;
  background: rgba(255,255,255,.03);
}

.news-date, .admin-role, .mini-title {
  color: var(--accent);
  font-size: .84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-hero { padding: 58px 0 30px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

/* MAPA */
.map-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  align-items: start;
}
.map-sidebar {
  position: sticky;
  top: 98px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-sidebar h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.map-help {
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}
.layer-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.layer-toggle {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.layer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.layer-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.layer-toggle input { width: 18px; height: 18px; }
.map-shell {
  position: relative;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.control-btn {
  min-width: 46px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.map-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #081013;
  border: 1px solid rgba(255,255,255,.06);
  cursor: grab;
  position: relative;
  user-select: none;
  touch-action: none;
}
.map-viewport.dragging { cursor: grabbing; }
.map-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}
.map-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.map-layer { position: absolute; inset: 0; }
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.map-marker::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.map-marker.drop::after {
  width: 18px;
  height: 18px;
  background: var(--marker-color, #3eb8ff);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -60%) rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 18px rgba(255,255,255,.12);
}
.map-marker.circle::after {
  width: 18px;
  height: 18px;
  background: var(--marker-color, #ffc44d);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 18px rgba(255,255,255,.12);
}
.map-marker.square::after {
  width: 17px;
  height: 17px;
  background: var(--marker-color, #ff8a47);
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 18px rgba(255,255,255,.12);
}
.map-marker.diamond::after {
  width: 16px;
  height: 16px;
  background: var(--marker-color, #c7b2ff);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 18px rgba(255,255,255,.12);
}
.map-marker.hex::after {
  width: 18px;
  height: 18px;
  background: var(--marker-color, #6be675);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 18px rgba(255,255,255,.12);
}
.map-tooltip {
  position: absolute;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border: 1px solid rgba(155,227,94,.18);
  border-radius: 12px;
  background: rgba(8,13,14,.94);
  box-shadow: var(--shadow);
  color: var(--text);
  z-index: 20;
  pointer-events: none;
}
.map-tooltip strong {
  display: block;
  margin-bottom: 5px;
}
.map-tooltip span {
  color: var(--muted);
  line-height: 1.5;
}
.editor-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed rgba(155,227,94,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.editor-box code {
  display: block;
  white-space: pre-wrap;
  color: #d8e2dd;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(155,227,94,.10);
  color: var(--accent);
  font-size: .83rem;
  font-weight: 800;
}

/* responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .logo-stage { min-height: auto; }
}
@media (max-width: 950px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { position: static; }
}
@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
  .nav-links { gap: 14px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(100%, calc(100% - 22px)); }
  .status-grid { grid-template-columns: 1fr; }
  .status-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .status-item:last-child { border-bottom: 0; }
  .actions, .copy-row { display: grid; }
  .button, .copy-value { width: 100%; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 1.12rem; }
}


/* ETERNIA V3 · ESTADO EN VIVO */
.status-extra {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-footer {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: .84rem;
  letter-spacing: .04em;
  text-align: center;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #6d7772;
  box-shadow: 0 0 0 4px rgba(109,119,114,.08);
}

.live-dot.active {
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(155,227,94,.10),
    0 0 15px rgba(155,227,94,.55);
}

.live-dot.inactive {
  background: var(--danger);
  box-shadow:
    0 0 0 4px rgba(241,143,128,.09),
    0 0 12px rgba(241,143,128,.35);
}


/* ETERNIA V4 · APOYO Y MEMBRESÍAS */
.support-hero {
  padding: 64px 0 34px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 78% 42%, rgba(155,227,94,.18), transparent 28%),
    linear-gradient(180deg, rgba(8,14,15,.76), rgba(4,7,8,.24));
}

.support-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .45fr;
  gap: 36px;
  align-items: center;
}

.support-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.support-hero img {
  width: min(330px, 100%);
  justify-self: end;
  border-radius: 24px;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.45));
}

.support-section {
  padding-top: 44px;
}

.support-notice {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(155,227,94,.20);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(155,227,94,.045);
  line-height: 1.65;
}

.support-notice strong {
  color: var(--accent);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.support-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15,22,24,.96), rgba(6,11,12,.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.support-tier::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(155,227,94,.28), transparent 38%, rgba(82,208,166,.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.support-tier.featured {
  border-color: rgba(155,227,94,.46);
  transform: translateY(-8px);
  box-shadow:
    0 26px 70px rgba(0,0,0,.42),
    0 0 34px rgba(155,227,94,.10);
}

.support-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #071007;
  background: var(--accent);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-tier-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.support-tier h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.support-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 20px;
}

.support-price strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text);
}

.support-price span {
  color: var(--muted);
}

.support-tier ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.support-tier li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 23px;
  color: var(--muted);
  line-height: 1.5;
}

.support-tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.support-tier .button {
  width: 100%;
  margin-top: auto;
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.support-onetime {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background:
    linear-gradient(90deg, rgba(155,227,94,.07), rgba(82,208,166,.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.support-onetime h2 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.support-onetime p {
  margin: 0;
  color: var(--muted);
}

.support-provider {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

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

  .support-tier.featured {
    transform: none;
  }
}

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

  .support-hero img {
    justify-self: center;
    width: min(280px, 80%);
  }

  .support-onetime {
    align-items: stretch;
    flex-direction: column;
  }
}


/* ETERNIA V5 · DISCORD Y STRIPE */
.member-access {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(111, 117, 255, .28);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background:
    linear-gradient(110deg, rgba(88,101,242,.11), rgba(155,227,94,.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.member-access-copy h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.member-access-copy p {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.member-session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.discord-button {
  border-color: rgba(88,101,242,.48);
  background: linear-gradient(180deg, #6677f5, #4f5bd5);
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-profile img,
.member-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #071007;
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
}

.member-profile div {
  display: grid;
}

.member-profile strong {
  color: var(--text);
}

.member-profile span {
  color: var(--muted);
  font-size: .83rem;
}

.membership-badge {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #071007;
  background: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-badge.muted {
  color: var(--muted);
  background: rgba(255,255,255,.06);
}

.support-feedback {
  min-height: 24px;
  margin: -8px 0 18px;
  color: var(--muted);
  text-align: center;
}

.support-feedback.success {
  color: var(--accent);
}

.support-feedback.error {
  color: var(--danger);
}

.support-pay-button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .member-access {
    align-items: stretch;
    flex-direction: column;
  }

  .member-session {
    justify-content: flex-start;
  }
}

/* Eternia Web V3 */
.nav-toggle{display:none;border:1px solid var(--border-strong);background:rgba(12,20,22,.9);color:var(--text);border-radius:12px;padding:9px 12px;font-size:1.15rem;cursor:pointer}
.nav-links a.active{color:var(--accent)}
.prime-button{border-color:rgba(240,166,0,.48)!important;background:linear-gradient(135deg,rgba(240,166,0,.2),rgba(155,227,94,.12))!important}
.quick-card{display:flex;flex-direction:column}.quick-card .text-link{margin-top:auto;color:var(--accent);font-weight:800;text-decoration:none}.quick-card .text-link:hover{text-decoration:underline}
.page-hero{padding:72px 0 42px}.page-hero.compact h1{font-size:clamp(2.5rem,7vw,5.2rem)}.page-hero p{max-width:760px;color:var(--muted);font-size:1.05rem;line-height:1.75}
.prime-layout{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:22px}.prime-highlight{border-color:rgba(240,166,0,.35)}.wide{width:100%;justify-content:center}.prime-terms{display:grid;gap:9px}.prime-terms div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border)}.prime-terms span{color:var(--muted);text-align:right}.notice{padding:14px;border:1px solid var(--border);border-radius:12px;background:rgba(155,227,94,.06)}
@media (max-width:980px){.nav{position:relative;min-height:72px}.nav-toggle{display:block}.nav-links{display:none;position:absolute;left:17px;right:17px;top:calc(100% + 8px);padding:16px;border:1px solid var(--border);border-radius:16px;background:rgba(3,6,7,.98);box-shadow:var(--shadow);flex-direction:column;gap:14px}.nav-links.open{display:flex}.nav-links a{padding:8px 4px}.prime-layout{grid-template-columns:1fr}.hero-grid{grid-template-columns:1fr}.logo-stage{min-height:360px}.hero{padding-top:48px}}
@media (max-width:620px){.container{width:min(100% - 22px,1220px)}.actions{align-items:stretch}.actions .button{width:100%;justify-content:center}.status-grid{grid-template-columns:1fr 1fr}.hero h1{font-size:clamp(2.45rem,15vw,4rem)}.logo-stage{min-height:280px}.brand img{width:46px;height:46px}.brand strong{font-size:1.05rem}}

/* V3.1 · navegación completa y listado de dinosaurios más legible */
.dino-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.dino-card {
  min-width: 0;
  padding: 30px 28px 32px;
  overflow: visible;
}

.dino-card h2 {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 2.65vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.dino-card > div {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.dino-card .dino-tag {
  margin: 0;
  padding: 9px 13px;
  line-height: 1.2;
  font-size: .98rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .dino-grid { grid-template-columns: 1fr; }
  .dino-card h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
}

@media (max-width: 560px) {
  .dino-card { padding: 24px 20px 26px; }
  .dino-card > div { gap: 8px; }
  .dino-card .dino-tag { font-size: .92rem; }
}

/* V3.2 · ajuste global de tarjetas, títulos y botones */
html { overflow-x: hidden; }

/* Evita que el contenido de cualquier columna fuerce o corte la cuadrícula. */
.grid,
.grid.two,
.prime-layout,
.support-grid,
.support-hero-grid,
.hero-grid,
.status-grid,
.dino-grid {
  min-width: 0;
}

.grid > *,
.grid.two > *,
.prime-layout > *,
.support-grid > *,
.support-hero-grid > *,
.hero-grid > *,
.status-grid > *,
.dino-grid > * {
  min-width: 0;
}

/* Tarjetas más cómodas y sin títulos recortados. */
.card {
  min-width: 0;
  padding: clamp(24px, 2.2vw, 34px);
  overflow: visible;
}

.card h2,
.card h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.card h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.22;
}

.card p,
.card li {
  overflow-wrap: break-word;
}

/* Todos los botones admiten varias líneas y tienen más aire. */
.button,
.discord-button,
.support-pay-button,
.control-btn,
button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
}

.button {
  min-height: 54px;
  height: auto;
  padding: 14px 22px;
  line-height: 1.25;
}

.actions {
  align-items: stretch;
  gap: 14px;
}

.actions .button {
  flex: 0 1 auto;
}

/* Página Prime: columnas más equilibradas y legibles. */
.prime-layout {
  grid-template-columns: minmax(300px, 1.15fr) minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.prime-layout .card {
  display: flex;
  flex-direction: column;
}

.prime-layout .card .button.wide {
  margin-top: auto;
}

.prime-terms div {
  align-items: flex-start;
  gap: 20px;
}

.prime-terms strong,
.prime-terms span {
  min-width: 0;
  overflow-wrap: break-word;
}

.prime-terms strong { flex: 1 1 52%; }
.prime-terms span { flex: 1 1 48%; }

.notice {
  padding: 16px 18px;
  line-height: 1.6;
}

/* Botones de apoyo y paneles: tamaño táctil y texto centrado. */
.support-tier .button,
.support-pay-button,
.discord-button {
  min-height: 54px;
  height: auto;
  padding: 14px 18px;
  line-height: 1.25;
}

@media (max-width: 1120px) {
  .prime-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prime-layout > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section { padding: 58px 0; }
  .page-hero { padding: 54px 0 30px; }

  .prime-layout,
  .grid,
  .grid.two,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .prime-layout > :first-child {
    grid-column: auto;
  }

  .card {
    padding: 24px 20px 26px;
    border-radius: 18px;
  }

  .card h2 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button,
  .button.wide {
    width: 100%;
  }

  .prime-terms div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .prime-terms span {
    text-align: left;
  }
}

/* V3.3 · tipografía proporcionada, sin cortes forzados */
.card h2,
.card h3 {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Prime: el título principal conserva una lectura natural en dos líneas. */
.prime-highlight h2 {
  font-size: clamp(2rem, 2.65vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: .015em;
  text-wrap: balance;
}

.prime-layout {
  grid-template-columns: minmax(340px, 1.2fr) minmax(310px, 1fr) minmax(310px, 1fr);
}

.prime-layout .card h3 {
  font-size: clamp(1.35rem, 1.55vw, 1.7rem);
  text-wrap: balance;
}

.prime-layout .card p,
.prime-terms {
  font-size: .98rem;
}

@media (max-width: 1120px) {
  .prime-highlight h2 {
    font-size: clamp(2rem, 4.5vw, 2.65rem);
  }
}

@media (max-width: 760px) {
  .prime-highlight h2 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }
}

/* V3.5 · Normas con índice navegable */
html { scroll-behavior: smooth; }

.rules-section { padding-top: 28px; }
.rules-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.rules-index {
  position: sticky;
  top: 92px;
  padding: 18px 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.rules-index-title {
  padding: 0 10px 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rules-index nav { display: grid; gap: 5px; }
.rules-index a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.rules-index a span {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
.rules-index a strong {
  color: inherit;
  font-size: .82rem;
  line-height: 1.35;
  letter-spacing: .015em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.rules-index a:hover,
.rules-index a:focus-visible {
  color: var(--text);
  border-color: rgba(155,227,94,.35);
  background: rgba(155,227,94,.08);
}
.rules-content { display: grid; gap: 18px; min-width: 0; }
.rule-card { scroll-margin-top: 100px; padding: clamp(22px, 3vw, 34px); }
.rule-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(155,227,94,.18);
}
.rule-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #07100b;
  background: var(--accent);
  font-weight: 900;
}
.rule-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.rule-card p { margin: 0; white-space: pre-line; }
.rule-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.rules-loading { display: block; padding: 10px; color: var(--muted); }

@media (max-width: 860px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-index {
    position: static;
    max-height: none;
  }
  .rules-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rules-index nav { grid-template-columns: 1fr; }
  .rule-heading { align-items: flex-start; }
  .rule-number { width: 32px; height: 32px; }
}


/* NOTICIAS ESTRUCTURADAS V3.6 */
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.news-card h3 {
  margin: 7px 0 16px;
  overflow-wrap: anywhere;
}
.news-content {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.news-content p {
  margin: 0 0 14px;
}
.news-content p:last-child,
.news-content ul:last-child {
  margin-bottom: 0;
}
.news-content ul {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding-left: 1.25rem;
}
.news-content li::marker {
  color: var(--accent);
}

/* V3.7 · Normas oficiales de Eternia */
.rule-body {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.72;
}
.rule-body p { margin: 0; }
.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rule-list li {
  position: relative;
  padding-left: 22px;
}
.rule-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--accent);
  font-size: .72em;
}
.rule-callout {
  margin-top: 4px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(155, 227, 94, .075);
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}
.rule-subsection {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(155, 227, 94, .16);
}
.rule-subsection h3,
.rule-group-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: .02em;
}
.rule-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rule-group-block {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(155, 227, 94, .18);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.rule-group-list {
  display: grid;
  margin-top: 10px;
}
.rule-group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.rule-group-row:last-child { border-bottom: 0; }
.rule-group-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 650;
}
.rule-group-row strong {
  color: var(--accent);
  font-size: .82rem;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .rule-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rule-groups { grid-template-columns: 1fr; }
  .rule-card { padding: 20px 17px; }
  .rule-card h2 { font-size: 1.08rem; }
  .rule-body { font-size: .94rem; }
}

/* ETERNIA V5.1 · REDISEÑO VISUAL COMPLETO */
:root {
  --accent: #a8f05f;
  --accent-2: #4dd7aa;
  --surface: rgba(7, 14, 15, .9);
  --surface-soft: rgba(13, 24, 24, .76);
}

body {
  background:
    radial-gradient(circle at 10% 6%, rgba(137, 219, 80, .16), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(53, 196, 155, .13), transparent 26rem),
    linear-gradient(180deg, #020505 0%, #061010 52%, #020505 100%);
}

.header { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.header.scrolled {
  background: rgba(2, 7, 7, .95);
  border-color: rgba(168, 240, 95, .27);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .42);
}
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { right: 0; }

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  isolation: isolate;
}
.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: .11;
  background: url('/img/fondo-isla-prehistorica.webp') 88% 48% / min(59vw, 920px) auto no-repeat;
  filter: saturate(.7) contrast(1.15);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 73%);
          mask-image: linear-gradient(90deg, transparent 35%, #000 73%);
  z-index: -2;
}
.hero::after {
  width: min(66vw, 920px);
  height: min(66vw, 920px);
  right: -16vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(92, 226, 150, .16), transparent 65%);
  z-index: -1;
}
.hero-copy { padding-block: 28px; }
.hero-copy > p { max-width: 650px; }
.hero h1 { max-width: 760px; font-size: clamp(3.25rem, 6.3vw, 6.8rem); }

.logo-stage { min-height: 620px; }
.logo-stage::before {
  width: min(530px, 92%);
  border: 1px solid rgba(168, 240, 95, .2);
  background: radial-gradient(circle, rgba(168, 240, 95, .18), rgba(77, 215, 170, .05) 45%, transparent 68%);
  box-shadow: inset 0 0 90px rgba(77, 215, 170, .08), 0 0 90px rgba(104, 229, 121, .08);
}
.logo-stage::after { inset: 14%; border-radius: 50%; transform: rotate(12deg); }
.logo-frame {
  position: relative;
  z-index: 2;
  width: min(500px, 90%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(179, 245, 117, .25);
  background: rgba(3, 10, 10, .72);
  box-shadow: inset 0 0 70px rgba(0,0,0,.65), 0 36px 90px rgba(0,0,0,.48);
}
.logo-frame img { width: 112%; max-width: none; border-radius: 0; }
.logo-orbit {
  position: absolute;
  z-index: 1;
  width: min(590px, 98%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(168, 240, 95, .3);
  animation: eternia-orbit 42s linear infinite;
}
.logo-orbit::before, .logo-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.logo-orbit::before { left: 11%; top: 18%; }
.logo-orbit::after { right: 7%; bottom: 25%; background: var(--accent-2); }
.logo-chip {
  position: absolute;
  z-index: 3;
  min-height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(168, 240, 95, .25);
  border-radius: 999px;
  color: #eaf7e5;
  background: rgba(3, 10, 10, .88);
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.logo-chip-online { left: 1%; bottom: 25%; }
.logo-chip-map { right: 3%; top: 24%; }
.logo-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px var(--accent); }
@keyframes eternia-orbit { to { transform: rotate(360deg); } }

.status-strip { position: relative; margin-top: -1px; background: rgba(4, 11, 11, .88); backdrop-filter: blur(16px); }
.status-item { min-height: 116px; display: flex; flex-direction: column; justify-content: center; }
.status-value { font-size: 1.55rem; }

.section:nth-of-type(even) { position: relative; }
.access-grid { grid-template-columns: repeat(3, 1fr); }
.quick-card { min-height: 285px; display: flex; flex-direction: column; }
.quick-card .text-link { margin-top: auto; }
.quick-card { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.quick-card:hover { transform: translateY(-5px); border-color: rgba(168,240,95,.35); background: linear-gradient(180deg, rgba(18,32,29,.96), rgba(7,14,15,.96)); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 58px;
  border-bottom: 1px solid rgba(168,240,95,.09);
  background: linear-gradient(120deg, rgba(14,30,24,.64), transparent 66%);
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -140px;
  top: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,240,95,.15), transparent 67%);
  pointer-events: none;
}
.page-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1; }
.footer { background: rgba(2,7,7,.72); text-align: center; }

@media (max-width: 1100px) {
  .hero { min-height: auto; }
  .hero::before { opacity: .06; background-position: center 80%; background-size: 900px auto; -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000); mask-image: linear-gradient(180deg, transparent 35%, #000); }
  .logo-stage { min-height: 520px; }
}
@media (max-width: 900px) { .access-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .logo-stage { min-height: 390px; }
  .logo-chip { font-size: .66rem; min-height: 34px; }
  .logo-chip-online { left: 0; bottom: 15%; }
  .logo-chip-map { right: 0; top: 16%; }
  .access-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: auto; }
  .page-hero { padding: 62px 0 38px; }
}
@media (prefers-reduced-motion: reduce) { .logo-orbit { animation: none; } }

/* ETERNIA V5.2 · ESTRUCTURA VISUAL UNIFICADA */
:root {
  --accent: #a8ed45;
  --accent-hot: #c7ff67;
  --gold: #e4bd37;
  --line: rgba(168, 237, 69, .25);
  --line-soft: rgba(168, 237, 69, .12);
  --glass: rgba(3, 10, 9, .82);
}

body {
  background-color: #020706;
  background-image:
    linear-gradient(90deg, rgba(1, 5, 5, .96) 0%, rgba(2, 9, 7, .86) 43%, rgba(2, 11, 8, .62) 100%),
    linear-gradient(180deg, rgba(6, 34, 22, .18), rgba(1, 7, 6, .88) 88%),
    url('/img/fondo-isla-prehistorica.webp');
  background-position: center top, center top, center top;
  background-size: cover, cover, max(1500px, 100vw) auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body::after { opacity: .025; background-size: 86px 86px; }

.container { width: min(1450px, calc(100% - 64px)); }
.header { background: rgba(1, 6, 6, .9); border-color: rgba(168, 237, 69, .12); }
.nav { min-height: 104px; }
.brand img { width: 61px; height: 61px; }
.brand strong { font-size: 1.75rem; letter-spacing: .17em; }
.brand span { margin-top: 4px; color: #b8c0ba; font-size: .59rem; letter-spacing: .27em; }
.nav-links { align-items: center; gap: clamp(14px, 2vw, 34px); }
.nav-links a { font-size: .78rem; letter-spacing: .11em; }
.nav-links 
.nav-voip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(155, 227, 94, .42);
  border-radius: 10px;
  color: var(--accent) !important;
  background: rgba(155, 227, 94, .07);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .2s ease;
}
.nav-voip::before { content: '•'; margin-right: 8px; color: var(--accent); }
.nav-voip:hover, .nav-voip.active {
  color: #061006 !important;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(155, 227, 94, .18);
}
.nav-voip:hover::before, .nav-voip.active::before { color: #061006; }

.voip-page .page-hero .container { text-align: center; }
.voip-page .page-hero h1,
.voip-page .page-hero .section-intro { margin-left: auto; margin-right: auto; }
.voip-download-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(28px, 5vw, 58px);
  border-color: rgba(155, 227, 94, .34);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), 0 0 42px rgba(155,227,94,.07);
}
.voip-download-card h2 { margin-bottom: 14px; }
.voip-download-card > p { max-width: 720px; margin-left: auto; margin-right: auto; }
.voip-download-card .actions { justify-content: center; margin-top: 28px; }
.voip-download-button { min-width: 280px; font-size: 1.05rem; }
.voip-steps { margin-top: 28px; }
.voip-steps .card { text-align: left; }
@media (max-width: 980px) {
  .nav-voip { min-height: 40px; padding: 0 12px; }
}
@media (max-width: 760px) {
  .nav-voip { width: 100%; }
  .voip-download-button { min-width: 0; width: 100%; }
}

.nav-discord {
  padding: 14px 20px;
  color: #d9f7a7;
  border: 1px solid rgba(168, 237, 69, .55);
  border-radius: 8px;
  background: rgba(115, 165, 43, .08);
}
.nav-links .nav-discord::before { content: '●'; margin-right: 9px; color: var(--accent); }
.nav-links .nav-discord::after { display: none; }

.hero { min-height: 675px; padding: 64px 0 42px; }
.hero::before {
  opacity: .32;
  background: url('/img/fondo-isla-prehistorica.webp') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
}
.hero-grid { grid-template-columns: 1.08fr .92fr; gap: 70px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  margin-bottom: 24px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 13, 10, .72);
  font-family: var(--font-body);
  font-size: .72rem;
}
.hero h1 { font-size: clamp(3.2rem, 5.2vw, 5.8rem); line-height: .96; }
.hero h1 span { display: block; color: var(--accent); text-shadow: 0 0 28px rgba(168,237,69,.23); }
.hero-copy > p { font-size: .98rem; line-height: 1.7; }
.actions { gap: 12px; }
.button { border-radius: 7px; text-transform: uppercase; letter-spacing: .055em; font-size: .79rem; }
.button.primary { box-shadow: 0 0 30px rgba(168,237,69,.15), inset 0 0 18px rgba(255,255,255,.07); }
.prime-button { border-color: rgba(228,189,55,.65); color: #f4dc78; }
.copy-row, .pills { display: none; }

.logo-stage { min-height: 550px; }
.logo-stage::before { display: none; }
.logo-stage::after {
  inset: 2%;
  border-radius: 32px;
  border: 1px solid rgba(168,237,69,.55);
  background: linear-gradient(145deg, rgba(20, 55, 38, .25), rgba(1, 7, 6, .42));
  box-shadow: inset 0 0 100px rgba(1,8,6,.65), 0 0 40px rgba(168,237,69,.08);
  transform: none;
}
.logo-frame {
  width: 88%;
  aspect-ratio: 1.1;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}
.logo-frame img { width: 100%; border-radius: 0; filter: drop-shadow(0 25px 35px rgba(0,0,0,.65)); }

.status-strip { margin: 0 auto 8px; width: min(1450px, calc(100% - 64px)); border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.status-grid { width: 100%; }
.status-item { min-height: 112px; border-right: 1px solid var(--line-soft); padding: 22px 28px; }
.status-item:last-child { border-right: 0; }
.status-label { font-size: .67rem; letter-spacing: .14em; }
.status-value { color: var(--accent); font-family: var(--font-display); }
.status-footer { margin-bottom: 25px; color: #79867f; font-size: .72rem; }

.section { padding: 78px 0; }
.section > .container, .rules-layout, .prime-layout {
  position: relative;
}
.card, .support-notice, .member-access, .support-onetime {
  border-color: var(--line-soft);
  background: linear-gradient(145deg, rgba(8, 18, 15, .94), rgba(3, 9, 8, .9));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 22px 50px rgba(0,0,0,.24);
}
.card:hover { border-color: var(--line); }

.page-hero, .support-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 92px 0 68px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(1,7,6,.98), rgba(2,11,8,.78) 55%, rgba(2,9,7,.35)),
    linear-gradient(180deg, rgba(4,28,18,.12), rgba(1,8,7,.48)),
    url('/img/fondo-isla-prehistorica.webp') center 54% / cover no-repeat;
}
.page-hero::before, .support-hero::before {
  content: '';
  position: absolute;
  inset: 36px 4%;
  border: 1px solid var(--line);
  border-radius: 24px;
  pointer-events: none;
}
.page-hero::after { background: radial-gradient(circle, rgba(168,237,69,.18), transparent 67%); }
.page-hero .container, .support-hero .container { z-index: 1; }
.page-hero h1, .support-hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
.page-hero h1 span, .support-hero h1 span { color: var(--accent); }
.page-hero .section-intro, .support-hero .section-intro { max-width: 780px; }

.inner-page main > .section:not(.rules-section) > .container,
.inner-page .support-section > .container {
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(2, 8, 7, .48);
  backdrop-filter: blur(8px);
}
.rules-index { top: 128px; }
.footer { border-top-color: var(--line-soft); }

@media (max-width: 1180px) {
  .container { width: min(100% - 36px, 1100px); }
  .nav { min-height: 82px; }
  .brand strong { font-size: 1.35rem; }
  .hero-grid { gap: 22px; }
  .status-strip { width: calc(100% - 36px); }
}
@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .actions { justify-content: center; }
  .logo-stage { min-height: 440px; }
  .page-hero::before, .support-hero::before { inset: 24px 18px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 24px); }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 1.08rem; }
  .brand span { font-size: .48rem; }
  .hero { padding-top: 30px; }
  .hero-kicker { font-size: .61rem; padding-inline: 10px; }
  .logo-stage { min-height: 350px; }
  .status-strip { width: calc(100% - 24px); }
  .status-item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .page-hero, .support-hero { min-height: 310px; padding: 74px 0 48px; }
  .inner-page main > .section:not(.rules-section) > .container,
  .inner-page .support-section > .container { padding: 18px 14px; border-radius: 15px; }
}
/* Páginas legales de producción */
.legal-page{max-width:900px;padding:48px;border:1px solid rgba(86,226,165,.25);border-radius:20px;background:rgba(3,10,9,.88);box-shadow:0 24px 70px rgba(0,0,0,.35)}
.legal-page h1,.legal-page h2{margin-top:1.4em}.legal-page p{line-height:1.75;color:var(--muted)}
.footer a{color:#7ce8b5;text-decoration:none}.footer a:hover{text-decoration:underline}
@media(max-width:700px){.legal-page{padding:24px}}

/* ETERNIA V6 · contenido editable y titulares centrados */
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy > p { margin-inline: auto; }
.hero h1,
.page-hero h1,
.page-hero .section-intro {
  margin-inline: auto;
  text-align: center;
}
.page-hero .section-intro {
  max-width: 820px;
}
.hero h1 {
  max-width: 980px;
}
.actions {
  justify-content: center;
}
.copy-row,
.pills {
  justify-content: center;
}
.voip-card {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.voip-card .actions {
  justify-content: center;
}
.voip-card .panel-field-help {
  max-width: 760px;
  margin: 14px auto 0;
}


/* ETERNIA V7 · encabezados de páginas realmente centrados */
.page-hero > .container,
.support-hero > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero .eyebrow,
.support-hero .eyebrow,
.page-hero h1,
.support-hero h1,
.page-hero .section-intro,
.support-hero .section-intro {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-hero h1,
.support-hero h1 {
  max-width: 1000px;
  text-wrap: balance;
}
.page-hero .section-intro,
.support-hero .section-intro {
  max-width: 900px;
}

/* El texto editable nunca debe ocultarse por el propio contenedor. */
.card p,
.card li,
.section-intro,
.page-hero p,
.support-hero p {
  overflow-wrap: anywhere;
  word-break: normal;
}


/* ETERNIA V8 · encabezados de todas las páginas centrados */
.page-hero,
.support-hero {
  text-align: center;
}

.page-hero > .container,
.support-hero > .container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero .eyebrow,
.support-hero .eyebrow,
.page-hero h1,
.support-hero h1,
.page-hero p,
.support-hero p,
.page-hero .section-intro,
.support-hero .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero .eyebrow,
.support-hero .eyebrow {
  width: 100%;
}

.page-hero h1,
.support-hero h1 {
  width: min(100%, 1100px);
  max-width: 1100px;
  text-wrap: balance;
}

.page-hero .section-intro,
.support-hero .section-intro {
  width: min(100%, 900px);
  max-width: 900px;
}

/* Evita que títulos largos queden visualmente cortados */
.page-hero h1,
.support-hero h1,
.hero h1 {
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 620px) {
  .page-hero > .container,
  .support-hero > .container {
    width: min(100% - 24px, 1280px);
  }

  .page-hero h1,
  .support-hero h1 {
    width: 100%;
    text-wrap: balance;
  }
}


/* CMS v13: aviso compacto sobre donaciones */
.support-donation-notice {
  margin: 1.5rem auto 0;
  max-width: 920px;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  background: transparent;
}
.support-donation-notice .eyebrow {
  margin-bottom: .35rem;
  font-size: .68rem;
  letter-spacing: .18em;
}
.support-donation-notice h2 {
  margin: 0 0 .65rem;
  font-family: inherit;
  font-size: .82rem;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.support-donation-notice p {
  margin: 0 auto .55rem;
  max-width: 900px;
  font-size: .76rem;
  line-height: 1.55;
  opacity: .72;
}
.support-donation-notice p:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .support-donation-notice {
    padding: .85rem .75rem;
  }
  .support-donation-notice p {
    font-size: .72rem;
    line-height: 1.5;
  }
}
/* CMS v14: agrupadores del editor de Apoyar */
.panel-subheading {
  grid-column: 1 / -1;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}

/* Eternia Voice release/download */
.eternia-voice-release {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin: 22px auto 4px; padding: 10px 14px; width: fit-content; max-width: 100%;
  border: 1px solid rgba(124,255,45,.35); border-radius: 999px;
  background: rgba(8,18,12,.62); color: rgba(235,245,238,.82); font-size: .92rem;
}
.voice-release-dot { width: 8px; height: 8px; border-radius: 50%; background: #7cff2d; box-shadow: 0 0 12px rgba(124,255,45,.75); }
.eternia-voice-release strong, #eternia-voice-version { color: #baff8d; }
.voice-release-separator { opacity: .45; }
