/* ============================================================
   Reapers Unite · estilos
   ============================================================ */
:root {
  --ash: #0d0a0b;
  --char: #161012;
  --soot: #1d1517;
  --ember: #ff4a1c;
  --ember-hot: #ffb08a;
  --bone: #eadfd2;
  --smoke: #a39690;
  --line: rgba(234, 223, 210, .12);
  --line-strong: rgba(234, 223, 210, .22);
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Barlow", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 12px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-cut: cubic-bezier(.7, 0, .2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #3b2a2b var(--ash);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}
body {
  min-height: 100vh;
  background: var(--ash);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
b, strong { font-weight: 600; color: #f4ebe1; }
::selection { background: rgba(255, 74, 28, .38); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
html.has-dialog, html.menu-open { overflow: hidden; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow > * { max-width: 860px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: -64px; z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ember); color: #1a0905; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* Grano de película muy sutil sobre toda la web */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Transiciones entre páginas (navegadores compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .24s ease both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
html.vt-local::view-transition-old(root),
html.vt-local::view-transition-new(root) { animation: none; }
@keyframes vt-out { to { opacity: 0; translate: 0 -10px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 14px; } }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: .005em; }
h3 { font-size: 1.3rem; line-height: 1.2; }
.lead { color: var(--smoke); font-size: 1.125rem; max-width: 56ch; margin-top: 14px; text-wrap: pretty; }
.note { color: var(--smoke); font-size: .94rem; margin-top: 12px; }

/* ---------- Cabecera ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, translate .4s var(--ease-out);
  view-transition-name: site-nav;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(13, 10, 11, .85), rgba(13, 10, 11, 0));
  transition: opacity .35s;
}
.nav.is-solid {
  background: rgba(13, 10, 11, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav.is-solid::before { opacity: 0; }
.nav.is-hidden:not(:focus-within) { translate: 0 -100%; }
.menu-open .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; translate: none; }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-right: auto;
  font: 700 1.15rem/1 var(--display); letter-spacing: .04em;
}
.brand img { width: 40px; height: 40px; transition: rotate .7s var(--ease-out); }
.brand:hover img { rotate: -14deg; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 8px;
  font-weight: 500; font-size: .96rem; color: #d9cdc0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--ember); box-shadow: 0 0 10px var(--ember);
  scale: 0 1; transform-origin: left; transition: scale .4s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { scale: 1 1; }
.nav-links .menu-cta { display: none; color: #1a0905; }
.burger { display: none; }

/* ---------- Botones ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  --mgx: 0px; --mgy: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transform: translate(var(--mgx), var(--mgy));
  transition: transform .3s var(--ease-out), background-color .25s, border-color .25s, box-shadow .3s, color .25s;
}
.btn:active { transform: translate(var(--mgx), var(--mgy)) scale(.97); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-main {
  background: linear-gradient(180deg, #ff6438, #ff4a1c 55%, #e43a10);
  color: #1a0905;
  box-shadow: 0 10px 30px -12px rgba(255, 74, 28, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-main::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  translate: -120% 0; transition: translate .8s var(--ease-out);
}
.btn-main:hover { box-shadow: 0 16px 44px -12px rgba(255, 74, 28, .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-main:hover::after { translate: 120% 0; }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(13, 10, 11, .62); color: var(--bone); }
.btn-ghost:hover { border-color: rgba(255, 74, 28, .7); box-shadow: 0 0 0 4px rgba(255, 74, 28, .12); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }

.link-line { position: relative; font-weight: 600; color: var(--bone); padding-bottom: 4px; white-space: nowrap; }
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--ember); scale: .35 1; transform-origin: left; transition: scale .45s var(--ease-out);
}
.link-line:hover::after { scale: 1 1; }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh;
}
.hero-media {
  position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -3; overflow: hidden;
  animation: settle 2.6s var(--ease-out) backwards;
}
.hero-media picture { height: 100%; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 46% 35%;
  scale: 1.025;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.hero-media.is-live .hero-canvas { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%; pointer-events: none;
  background: linear-gradient(rgba(13, 10, 11, 0), var(--ash));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 10, 11, .55), transparent 22%);
}
.hero-shade { position: absolute; inset: 0; z-index: -2; background: var(--ash); opacity: 0; pointer-events: none; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; background: var(--ash); pointer-events: none;
  animation: veil 1.2s ease forwards;
}
.hero-content { position: relative; padding: 120px 0 104px; }
.hero-title { font-size: clamp(2.6rem, 11vw, 4.4rem); font-weight: 900; line-height: 1.02; max-width: 12ch; text-shadow: 0 4px 40px #000; }
.hero-lead { max-width: 44ch; margin-top: 16px; font-size: 1.2rem; color: #e6dacd; text-shadow: 0 2px 24px #000; }
.hero-content > * { animation: rise .85s var(--ease-out) backwards; animation-delay: calc(.2s + var(--i, 0) * .1s); }
.hero .embers { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(234, 223, 210, .45);
  animation: fade-in 1s 1.6s backwards;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: cue 1.9s var(--ease-out) infinite;
}
.scroll-cue:hover { border-color: var(--ember); }

/* En horizontal la imagen completa ya lleva el título */
@media (min-aspect-ratio: 1/1) {
  .hero { min-height: min(100svh, calc(55.81vw + 150px)); }
  .hero-media { height: min(100%, 55.81vw); }
  .hero-img { object-position: 30% 30%; }
  .hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .hero-lead, .scroll-cue { display: none; }
  .hero-content { padding: 0 0 18px; }
  .hero-content .btns { margin-top: 0; }
  .hero-content .btn { min-height: 44px; }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}
.page-hero-media { position: absolute; inset: 0; z-index: -4; }
.page-hero-media picture, .page-hero-media img { width: 100%; height: 100%; }
.page-hero-media img { object-fit: cover; object-position: 86% 18%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ash) 0%, rgba(13, 10, 11, .95) 36%, rgba(13, 10, 11, .62) 72%, rgba(13, 10, 11, .4) 100%),
    linear-gradient(180deg, rgba(13, 10, 11, .65), transparent 40%, rgba(13, 10, 11, .9));
}
.page-hero::after {
  content: ""; position: absolute; inset: auto -20% -12% -20%; height: 75%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 60% at 28% 80%, rgba(170, 158, 154, .12), transparent 70%),
    radial-gradient(34% 50% at 76% 92%, rgba(170, 158, 154, .09), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
.page-hero .embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.page-hero h1 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; }
.page-hero .lead { color: #d8ccbf; font-size: 1.2rem; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: linear-gradient(180deg, var(--char), #110c0d); border-block: 1px solid var(--line); }
.section:has(+ .slash) { padding-bottom: clamp(36px, 5vw, 64px); }
.slash + .section { padding-top: clamp(36px, 5vw, 64px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 64ch; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* Corte de guadaña: el título aparece cortado por una línea incandescente */
.cut { position: relative; display: inline-block; }
.cut > span { display: inline-block; }
.js .cut:not(.is-in) > span { clip-path: inset(-.3em 100% -.3em 0); }
.js .cut.is-in > span { animation: cut-reveal 1.05s var(--ease-cut) backwards; animation-delay: var(--cut-delay, 0s); }
.js .cut::after {
  content: ""; position: absolute; inset: -8% 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent calc(100% - 3px), var(--ember-hot) calc(100% - 3px));
  filter: drop-shadow(0 0 6px var(--ember)) drop-shadow(0 0 16px var(--ember));
}
.js .cut.is-in::after { animation: cut-line 1.05s var(--ease-cut) forwards; animation-delay: var(--cut-delay, 0s); }

/* Apariciones al hacer scroll */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: reveal .9s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="rise"].is-in { animation-name: reveal-rise; animation-duration: 1s; }

/* Separador: el arco de la guadaña se dibuja al llegar */
.slash { height: clamp(56px, 8vw, 110px); margin: -12px 0; pointer-events: none; }
.slash svg { width: 100%; height: 100%; overflow: visible; }
.slash path {
  fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(255, 74, 28, .8));
}
.js .slash:not(.is-in) path { stroke-dashoffset: 1; }
.js .slash.is-in path { animation: draw 1.9s var(--ease-cut) backwards; }

/* ---------- Características ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.feature {
  position: relative; overflow: hidden; padding: 34px 30px 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #1d1517, #110c0d);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease-out), border-color .35s, box-shadow .35s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 74, 28, .17), transparent 45%);
}
.feature:hover { border-color: rgba(255, 74, 28, .38); box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .9); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; padding: 11px; margin-bottom: 22px; border-radius: 12px;
  color: var(--ember); background: rgba(255, 74, 28, .1); border: 1px solid rgba(255, 74, 28, .28);
  transition: box-shadow .35s, background-color .35s;
}
.feature:hover .feature-icon { background: rgba(255, 74, 28, .18); box-shadow: 0 0 24px rgba(255, 74, 28, .35); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--smoke); font-size: 1rem; }
.is-tilting { transition-duration: .12s, .35s, .35s !important; transition-timing-function: linear, ease, ease !important; }

/* ---------- Mapas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .02);
  font-weight: 500; transition: background-color .25s, border-color .25s, color .25s, transform .15s;
}
.chip span { min-width: 26px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: .8rem; text-align: center; }
.chip:hover { border-color: rgba(255, 74, 28, .6); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #1a0905; }
.chip[aria-pressed="true"] span { background: rgba(26, 9, 5, .18); }

.maps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1400px; }
.js .maps-grid:not([data-limit]):empty { min-height: 120vh; }   /* reserva el hueco hasta que se pintan las tarjetas */
.map-card {
  --c: #ff4a1c;
  position: relative; isolation: isolate; overflow: hidden; display: block; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 40%, #120a0a), #120a0a 85%);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease-out), border-color .35s, box-shadow .35s;
}
.map-card[hidden] { display: none; }
.map-card picture, .map-card img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.map-card img { object-fit: cover; scale: 1.02; filter: saturate(.9) brightness(.82); transition: scale 1s var(--ease-out), filter .5s; }
.map-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 10, 11, .05) 25%, rgba(13, 10, 11, .94));
}
.map-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 32%, transparent), transparent 62%);
}
.map-card:hover { border-color: color-mix(in srgb, var(--c) 65%, transparent); box-shadow: 0 28px 50px -30px color-mix(in srgb, var(--c) 75%, #000); }
.map-card:hover img { scale: 1.09; filter: saturate(1.1) brightness(1); }
.map-card:hover::after { opacity: 1; }
.map-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px;
  background: rgba(13, 10, 11, .74); border: 1px solid var(--line); color: #e7dbcf; font-size: .78rem; font-weight: 600;
}
.map-badge[data-tipo="expansion"] { border-color: rgba(255, 74, 28, .55); color: #ffb59a; }
.map-body { position: absolute; inset: auto 0 0 0; padding: 16px 18px 18px; }
.map-name { display: block; font: 700 1.25rem/1.15 var(--display); }
.map-desc {
  display: block; margin-top: 6px; overflow: hidden; max-height: 0; opacity: 0;
  color: #cdbfb2; font-size: .92rem; line-height: 1.45;
  transition: max-height .5s var(--ease-out), opacity .4s;
}
.map-card:hover .map-desc, .map-card:focus-visible .map-desc { max-height: 5em; opacity: 1; }
@media (hover: none) {
  .map-desc { max-height: none; opacity: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Ventana de detalle de un mapa */
.map-dialog {
  --c: #ff4a1c;
  margin: auto; padding: 0; width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  border: 1px solid var(--line-strong); border-radius: 16px; overflow: auto;
  background: #120d0e; color: var(--bone);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .75), 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
}
.map-dialog::backdrop { background: rgba(5, 3, 4, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.map-dialog[open] { display: grid; grid-template-columns: 1.1fr 1fr; }
.map-dialog.is-open { animation: dlg-in .5s var(--ease-out); }
.map-dialog.is-open::backdrop { animation: fade-in .3s ease; }
.map-dialog.is-closing { animation: dlg-out .22s ease forwards; }
.map-dialog.is-closing::backdrop { animation: fade-out .22s ease forwards; }
.dialog-media { position: relative; min-height: 280px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 40%, #120a0a), #120a0a); }
.dialog-media picture, .dialog-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dialog-media img { object-fit: cover; }
.dialog-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #120d0e); }
.dialog-body { position: relative; padding: 38px 34px 34px; }
.dialog-body .map-badge { position: static; display: inline-block; }
.dialog-body h2 { margin: 14px 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.dialog-body > p { color: var(--smoke); }
.dialog-body .addr { margin-top: 22px; }
.dialog-body .addr code { font-size: 1rem; padding-inline: 16px; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(13, 10, 11, .7); border: 1px solid var(--line-strong);
  transition: background-color .25s, rotate .4s var(--ease-out), border-color .25s;
}
.dialog-close:hover { rotate: 90deg; border-color: var(--ember); background: rgba(255, 74, 28, .15); }
.dialog-close svg { width: 16px; height: 16px; }

/* ---------- Conectarse ---------- */
.start-grid, .connect-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.addr {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #0a0708;
}
.addr code {
  flex: 1; min-width: 0; padding: 16px 18px; overflow-x: auto; white-space: nowrap;
  font: 500 1.12rem/1.35 var(--mono); color: var(--bone); user-select: all; cursor: text;
}
.addr-copy {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; flex: none;
  background: var(--ember); color: #1a0905; font-weight: 600; transition: background-color .25s, color .25s;
}
.addr-copy:hover { background: #ff6a40; }
.addr-copy svg { width: 18px; height: 18px; }
.addr-copy .ico-ok { display: none; }
.addr-copy.is-copied { background: var(--bone); }
.addr-copy.is-copied .ico-copy { display: none; }
.addr-copy.is-copied .ico-ok { display: block; animation: pop .45s var(--ease-out); }

.steps { list-style: none; counter-reset: paso; display: grid; gap: 20px; }
.steps li { counter-increment: paso; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 74, 28, .55); background: var(--ash); color: var(--ember); font: 700 1rem var(--display);
  transition: background-color .5s, color .5s, box-shadow .5s; transition-delay: calc(var(--i, 0) * 140ms);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21.5px; top: 52px; bottom: -16px; width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.steps li > span { padding-top: 9px; }
.steps li.is-active::before { background: var(--ember); color: #1a0905; box-shadow: 0 0 0 6px rgba(255, 74, 28, .12), 0 0 26px rgba(255, 74, 28, .55); }

.tablist {
  position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 26px;
  border-radius: 12px; border: 1px solid var(--line); background: #0a0708;
}
.tablist [role="tab"] { position: relative; z-index: 1; padding: 10px 18px; border-radius: 9px; font-weight: 600; color: var(--smoke); transition: color .3s; }
.tablist [role="tab"]:hover { color: var(--bone); }
.js .tablist [role="tab"][aria-selected="true"] { color: #1a0905; }
.tab-ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px;
  background: var(--ember); box-shadow: 0 6px 20px -6px rgba(255, 74, 28, .85);
  transition: translate .5s var(--ease-out), width .5s var(--ease-out);
}
.js [role="tabpanel"] { animation: reveal .5s var(--ease-out); }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #1a1315, #110c0d); transition: border-color .3s; }
.faq details[open] { border-color: rgba(255, 74, 28, .38); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: rotate .4s var(--ease-out);
  background:
    linear-gradient(var(--ember), var(--ember)) center / 100% 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { rotate: 135deg; }
.faq details p { padding: 0 22px 20px; color: var(--smoke); max-width: 70ch; }
.faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------- Normas ---------- */
.rules { list-style: none; display: grid; gap: 14px; }
.rules li {
  position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #1a1315, #110c0d);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.rules li::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--ember); opacity: 0; pointer-events: none; }
.rules li:target::after, .rules li.is-flash::after { animation: flash 2s var(--ease-out); }
.rule-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 74, 28, .5); color: var(--ember); font: 700 1.35rem var(--display);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.rule-num:hover { background: var(--ember); color: #1a0905; box-shadow: 0 0 26px rgba(255, 74, 28, .6); }
.rules h2 { font-size: 1.35rem; margin: 4px 0 6px; }
.rules p { color: var(--smoke); }

/* ---------- Banda de Discord ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(84px, 11vw, 144px) 0; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -70%; height: 130%; z-index: -2; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 74, 28, .34), rgba(179, 20, 31, .12) 45%, transparent 70%);
  animation: breathe 8s ease-in-out infinite;
}
.cta-band .embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btns { justify-content: center; }

/* ---------- Pie ---------- */
.footer { padding: 60px 0 28px; border-top: 1px solid var(--line); background: #0a0708; color: var(--smoke); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 44px; height: 44px; flex: none; }
.footer-brand b { display: block; font: 700 1.05rem var(--display); color: var(--bone); margin-bottom: 4px; }
.footer h2 { font: 600 .95rem var(--body); color: var(--bone); margin-bottom: 10px; }
.footer-col a { display: block; width: fit-content; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--bone); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Elementos flotantes ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(22, 16, 18, .88); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; translate: 0 14px;
  transition: opacity .3s, translate .4s var(--ease-out), visibility 0s .3s, border-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s, translate .4s var(--ease-out), border-color .25s; }
.to-top:hover { border-color: rgba(255, 74, 28, .6); }
.to-top .ring-svg { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); rotate: -90deg; }
.to-top .ring-bg { fill: none; stroke: rgba(234, 223, 210, .1); stroke-width: 2.5; }
.to-top .ring { fill: none; stroke: var(--ember); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.to-top .arrow { width: 18px; height: 18px; transition: translate .3s var(--ease-out); }
.to-top:hover .arrow { translate: 0 -2px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 260; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px; background: #f1e7dc; color: #1a0905; font-weight: 600;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  translate: -50% 160%; opacity: 0; pointer-events: none;
  transition: translate .5s var(--ease-out), opacity .3s;
}
.toast.is-visible { translate: -50% 0; opacity: 1; }
.sparks { position: fixed; inset: 0; z-index: 240; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Página 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-items: center; }
.notfound .code { font: 900 clamp(5rem, 16vw, 10rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 74, 28, .7); text-shadow: 0 0 40px rgba(255, 74, 28, .25); }

/* ---------- Animaciones ---------- */
@keyframes veil { to { opacity: 0; visibility: hidden; } }
@keyframes settle { from { scale: 1.08; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes reveal { from { opacity: 0; translate: 0 26px; } }
@keyframes reveal-rise { from { opacity: 0; translate: 0 46px; rotate: x 14deg; } }
@keyframes cut-reveal { from { clip-path: inset(-.3em 100% -.3em 0); } to { clip-path: inset(-.3em -3% -.3em 0); } }
@keyframes cut-line { 0% { translate: -100% 0; opacity: 1; } 82% { opacity: 1; } 100% { translate: 0 0; opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }
@keyframes drift { to { translate: 8% 0; } }
@keyframes breathe { 50% { opacity: .7; scale: 1.08; } }
@keyframes dlg-in { from { opacity: 0; translate: 0 26px; scale: .96; } }
@keyframes dlg-out { to { opacity: 0; translate: 0 12px; scale: .98; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { 0% { scale: .4; } 60% { scale: 1.2; } 100% { scale: 1; } }
@keyframes flash { 0%, 35% { opacity: 1; box-shadow: 0 0 0 4px rgba(255, 74, 28, .18), 0 0 40px rgba(255, 74, 28, .28); } 100% { opacity: 0; } }

/* ---------- Adaptación ---------- */
@media (max-width: 1100px) {
  .maps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-cta { display: none; }
  .burger {
    position: relative; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(13, 10, 11, .5);
  }
  .burger span {
    position: absolute; width: 20px; height: 2px; border-radius: 2px; background: var(--bone);
    transition: translate .4s var(--ease-out), rotate .4s var(--ease-out), opacity .2s;
  }
  .burger span:nth-child(1) { translate: 0 -6px; }
  .burger span:nth-child(3) { translate: 0 6px; }
  .burger[aria-expanded="true"] span:nth-child(1) { translate: 0 0; rotate: 45deg; }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { translate: 0 0; rotate: -45deg; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: calc(var(--nav-h) + 24px) 28px 48px;
    background: radial-gradient(120% 80% at 85% 0%, #3d120c 0%, var(--ash) 62%);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
  .nav-links a {
    padding: 8px 0; font: 700 clamp(1.9rem, 8vw, 2.5rem)/1.2 var(--display); color: var(--bone);
    opacity: 0; translate: 0 18px; transition: opacity .45s, translate .55s var(--ease-out), color .2s;
  }
  .nav-links.is-open a { opacity: 1; translate: 0 0; transition-delay: calc(80ms + var(--i, 0) * 60ms); }
  .nav-links a::after { left: 0; right: auto; width: 44px; bottom: 4px; }
  .nav-links .menu-cta { display: inline-flex; margin-top: 26px; font: 600 1.05rem var(--body); padding: 0 26px; }
  .nav-links .menu-cta::after { display: none; }
  .features { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: repeat(2, 1fr); }
  .start-grid, .connect-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .map-dialog[open] { grid-template-columns: 1fr; }
  .dialog-media { min-height: 0; aspect-ratio: 16 / 9; }
  .dialog-media::after { background: linear-gradient(180deg, transparent 55%, #120d0e); }
  .dialog-body { padding: 24px 22px 26px; }
  .page-hero::before {
    background:
      linear-gradient(90deg, rgba(13, 10, 11, .96) 0%, rgba(13, 10, 11, .82) 60%, rgba(13, 10, 11, .55) 100%),
      linear-gradient(180deg, rgba(13, 10, 11, .65), transparent 40%, rgba(13, 10, 11, .9));
  }
  .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}
@media (max-width: 540px) {
  .maps-grid { grid-template-columns: 1fr; }
  .map-card { aspect-ratio: 16 / 10; }
  .hero-content .btns { flex-direction: column; align-items: stretch; }
  .rules li { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .addr code { font-size: 1rem; padding: 14px; }
  .addr-copy { padding: 0 16px; }
  .tablist { display: flex; }
  .tablist [role="tab"] { flex: 1; padding: 10px 8px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
  .js .cut:not(.is-in) > span { clip-path: none; }
  .js .slash:not(.is-in) path { stroke-dashoffset: 0; }
  .hero-veil { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
