/* =====================================================================
   GeoMomentos · hoja de estilos (tema NOCHE)
   Sin framework, un solo archivo. Mismos nombres de clase que la version
   diurna: no hay que tocar ninguna vista.
   ===================================================================== */

:root {
  /* --- Base nocturna --- */
  --night: #0a0713;
  --night-2: #120c22;
  --surface: #181030;
  --surface-2: #201640;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);

  /* --- Texto --- */
  --ink: #f6f2ff;
  --ink-soft: #cfc4e8;
  --muted: #9c8fbe;

  /* --- Neones --- */
  --hot: #ff2e88;          /* magenta principal */
  --hot-deep: #d61a6e;
  --hot-wash: rgba(255, 46, 136, .14);
  --volt: #22e1d6;         /* turquesa electrico */
  --volt-wash: rgba(34, 225, 214, .13);
  --gold: #ffc53d;         /* dorado de barra */
  --gold-wash: rgba(255, 197, 61, .14);
  --violet: #8b5cff;

  --danger: #ff5c7a;
  --danger-wash: rgba(255, 92, 122, .14);

  /* compatibilidad con nombres antiguos usados en vistas */
  --paper: var(--night);
  --teal: var(--hot);
  --teal-deep: var(--hot);
  --teal-wash: var(--hot-wash);
  --amber: var(--gold);
  --amber-wash: var(--gold-wash);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, .55);
  --glow-hot: 0 0 0 1px rgba(255, 46, 136, .35), 0 10px 34px rgba(255, 46, 136, .28);

  --font-display: "Unbounded", "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* dos focos de luz difusa: la sala de fiesta antes de encender nada */
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 46, 136, .16), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(34, 225, 214, .12), transparent 60%);
  background-attachment: fixed;
}

img, video { max-width: 100%; display: block; }

a { color: var(--hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 6.6vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -.02em; }

p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--hot); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--hot); color: #fff; padding: .6rem 1rem; border-radius: 8px; }

/* --- Firma: la tira de coordenadas, como el sello de una entrada ----- */
.coords {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--volt);
  background: var(--volt-wash);
  border: 1px solid rgba(34, 225, 214, .3);
  border-radius: 6px;
  padding: .2rem .5rem;
  display: inline-block;
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--hot);
  margin: 0 0 .75rem;
}
.eyebrow--light { color: var(--gold); }

/* --- Cabecera -------------------------------------------------------- */
.site-header {
  background: rgba(10, 7, 19, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__pin { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 46, 136, .7)); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .75rem;
  font: inherit; font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: none; width: 100%; order: 3;
  padding: .5rem 0 1rem;
  border-top: 1px solid var(--line);
  margin-top: .3rem;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.nav a { display: block; padding: .65rem .3rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:hover { color: var(--hot); }

.lang-switch { display: flex; gap: .3rem; padding: .6rem .3rem 0; }
.lang-switch a {
  font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .5rem;
  border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; color: var(--muted);
}
.lang-switch a.is-active { background: var(--hot); border-color: var(--hot); color: #fff; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; order: 0; border: 0; margin: 0; padding: 0; }
  .nav ul { flex-direction: row; align-items: center; gap: 1.3rem; }
  .lang-switch { padding: 0; margin-left: .6rem; }
}

/* --- Botones --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .18s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--hot); color: #fff; box-shadow: var(--glow-hot); }
.btn--primary:hover { background: var(--hot-deep); color: #fff; box-shadow: 0 0 0 1px rgba(255,46,136,.5), 0 14px 40px rgba(255,46,136,.36); }
.btn--amber { background: var(--gold); color: #241a05; }
.btn--amber:hover { background: #ffd469; color: #241a05; box-shadow: 0 10px 30px rgba(255,197,61,.3); }
.btn--ghost { background: rgba(255,255,255,.05); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--hot); color: var(--ink); }
.btn--light { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.26); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--sm { padding: .52rem .9rem; font-size: .85rem; }
.btn--danger { background: transparent; border-color: rgba(255,92,122,.45); color: var(--danger); box-shadow: none; }
.btn--danger:hover { background: var(--danger-wash); }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }

.btn--google { background: #fff; border-color: #fff; color: #16161d; box-shadow: none; font-weight: 600; }
.btn--google:hover { background: #ece9f5; color: #16161d; }
.btn__g { width: 18px; height: 18px; flex: none; }

.divider { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; color: var(--muted); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; color: var(--ink-soft); }
.hero::after {
  /* haces de luz cruzados, como focos sobre la pista */
  content: "";
  position: absolute; inset: 0;
  background:
    conic-gradient(from 200deg at 78% 118%, rgba(255,46,136,.30), transparent 26%),
    conic-gradient(from 320deg at 18% 112%, rgba(34,225,214,.22), transparent 22%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 2.8rem 0 2.4rem; display: grid; gap: 1.8rem; }
.hero h1 { color: #fff; max-width: 14ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--hot); }
.hero p { color: var(--ink-soft); font-size: 1.06rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }

.hero__map {
  height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: #0d0a18;
}

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 1.7rem;
  margin-top: 1.7rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.hero__stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.7rem; line-height: 1; color: var(--gold);
}
.hero__stat span { font-size: .8rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 4.2rem 0 3.6rem; gap: 2.6rem; }
  .hero__map { height: 400px; }
}

/* --- Secciones ------------------------------------------------------- */
.section { padding: 2.8rem 0; }
.section--tight { padding: 1.8rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.page-head { padding: 2.2rem 0 .4rem; }
.page-head p { color: var(--ink-soft); max-width: 60ch; }

/* --- Tarjetas -------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 136, .45);
  box-shadow: 0 20px 46px rgba(0,0,0,.6), 0 0 0 1px rgba(255,46,136,.25);
}
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* velo oscuro abajo: el chip y el titulo se leen sobre cualquier foto */
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(10,7,19,.85), transparent);
  pointer-events: none;
}
.card__media--empty { display: grid; place-items: center; background: linear-gradient(140deg, #2a1140, #0e0b1c 70%); }
.card__media--empty::after { display: none; }
.card__media--empty svg { width: 42px; height: 42px; opacity: .9; }
.card__flags { position: absolute; top: .65rem; left: .65rem; display: flex; gap: .35rem; z-index: 2; }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.04rem; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a:hover { color: var(--hot); }
.card__place { font-size: .88rem; color: var(--muted); margin: 0; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .4rem; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .71rem; font-weight: 700; letter-spacing: .02em;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip--amber { background: var(--gold-wash); border-color: rgba(255,197,61,.4); color: var(--gold); }
.chip--teal { background: var(--volt-wash); border-color: rgba(34,225,214,.4); color: var(--volt); }
.chip--muted { background: rgba(255,255,255,.05); color: var(--muted); }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pill-list a {
  display: inline-block; padding: .48rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  font-size: .88rem; text-decoration: none; color: var(--ink-soft);
}
.pill-list a:hover, .pill-list a.is-active { background: var(--hot); border-color: var(--hot); color: #fff; }

/* --- Pasos de la portada --------------------------------------------- */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.35rem;
  position: relative; overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  color: var(--hot); letter-spacing: .12em;
  display: block; margin-bottom: .7rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* --- Ficha ------------------------------------------------------------ */
.place-head { padding: 2.2rem 0 1.2rem; }
.place-head h1 { margin-bottom: .5rem; text-wrap: balance; }
.place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; }
.place-meta b { color: var(--ink-soft); }

.place-layout { display: grid; gap: 1.6rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .place-layout { grid-template-columns: 1.55fr .95fr; align-items: start; } }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.35rem;
}
.panel + .panel { margin-top: 1.1rem; }
.panel h2, .panel h3 { font-size: 1.02rem; margin-bottom: .9rem; }
.panel__map { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.data-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.data-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .58rem 0; border-bottom: 1px dashed var(--line); }
.data-list li:last-child { border-bottom: 0; }
.data-list span { color: var(--muted); }
.data-list b { font-weight: 600; text-align: right; color: var(--ink-soft); }

/* --- Galeria ---------------------------------------------------------- */
.gallery { display: grid; gap: .55rem; grid-template-columns: repeat(2, 1fr); }
.gallery__item {
  border: 0; padding: 0; background: var(--surface-2);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; position: relative;
  transition: transform .16s ease;
}
.gallery__item:hover { transform: scale(1.015); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item:first-child { grid-column: span 3; }
}

.video-frame { border-radius: var(--radius); overflow: hidden; background: #05030c; border: 1px solid var(--line); }
.video-frame video { width: 100%; max-height: 70vh; background: #05030c; }
.video-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }

/* --- Lightbox --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 3, 12, .95);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 1.2rem; z-index: 90;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: 0 0 60px rgba(255,46,136,.25); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.12); color: #fff;
  border: 0; border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.3rem; cursor: pointer;
}

/* --- Formularios ------------------------------------------------------ */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.45rem;
}
.form-card + .form-card { margin-top: 1.1rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: block; margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }
.field > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: .38rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="file"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .78rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--hot);
  outline: 2px solid var(--hot-wash);
  background: rgba(255,255,255,.06);
}
input[type="file"] { padding: .6rem; background: rgba(255,255,255,.05); }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600;
  border: 0; border-radius: 999px;
  padding: .5rem .9rem; margin-right: .7rem;
  background: var(--hot); color: #fff; cursor: pointer;
}

.check { display: flex; gap: .65rem; align-items: flex-start; }
.check input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--hot); }
.check span { font-weight: 600; font-size: .92rem; }

.map-picker { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: .9rem 0 .8rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .9rem; }
.map-status { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0 0; font-size: .88rem; color: var(--ink-soft); }

.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

.address-details { margin-top: 1.1rem; border-top: 1px dashed var(--line); padding-top: .85rem; }
.address-details summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--hot); }
.address-details summary::marker { color: var(--muted); }

.files-summary {
  font-size: .85rem; color: var(--volt);
  background: var(--volt-wash); border: 1px solid rgba(34,225,214,.28);
  border-radius: 10px; padding: .55rem .75rem; margin: 0 0 1.15rem;
}

/* --- Avisos ----------------------------------------------------------- */
.notice { border-radius: var(--radius); padding: .9rem 1rem; font-size: .93rem; margin-bottom: 1rem; border: 1px solid; }
.notice--ok { background: var(--volt-wash); border-color: rgba(34,225,214,.35); color: var(--volt); }
.notice--err { background: var(--danger-wash); border-color: rgba(255,92,122,.35); color: var(--danger); }
.notice ul { margin: .4rem 0 0; padding-left: 1.1rem; }

.notice--photo {
  background: var(--gold-wash); border-color: rgba(255,197,61,.35); color: var(--gold);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0 0;
}
.notice--photo span { flex: 1 1 100%; font-weight: 700; }
@media (min-width: 560px) { .notice--photo span { flex: 1; } }

.empty-state {
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2.6rem 1.4rem; text-align: center; color: var(--ink-soft);
}
.empty-state p { margin-bottom: 1.1rem; }

/* --- Panel ------------------------------------------------------------ */
.stat-row { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.6rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--hot); }
.stat span { font-size: .76rem; color: var(--muted); }

.history { display: grid; gap: .9rem; }
.history-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: .9rem;
  display: grid; grid-template-columns: 84px 1fr; gap: .9rem; align-items: start;
}
.history-item__thumb { width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.history-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-item__thumb--empty { display: grid; place-items: center; background: linear-gradient(140deg, #2a1140, #0e0b1c); }
.history-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.history-item h3 a { color: inherit; text-decoration: none; }
.history-item h3 a:hover { color: var(--hot); }
.history-item__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.history-item__actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.history-item form { display: inline; }

.file-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .file-grid { grid-template-columns: repeat(3, 1fr); } }
.file-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.04); }
.file-card__img { aspect-ratio: 4 / 3; background: var(--surface-2); }
.file-card__img img { width: 100%; height: 100%; object-fit: cover; }
.file-card__bar { display: flex; gap: .35rem; padding: .5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.file-card__meta { font-family: var(--font-mono); font-size: .67rem; color: var(--muted); padding: 0 .5rem .5rem; }
.file-card form { display: inline; }
.file-card__video { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(140deg, #2a1140, #0e0b1c); }

/* --- Paginacion ------------------------------------------------------- */
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; list-style: none; padding: 1.8rem 0 0; margin: 0; }
.pagination a, .pagination strong {
  display: block; min-width: 42px; text-align: center;
  padding: .55rem .75rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  text-decoration: none; font-size: .9rem; color: var(--ink-soft);
}
.pagination strong, .pagination .active a { background: var(--hot); border-color: var(--hot); color: #fff; }

/* --- Pie -------------------------------------------------------------- */
.site-footer {
  background: #07050f;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2.6rem 0 2rem;
  margin-top: 2.5rem;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--hot); }
.site-footer__inner { display: grid; gap: 1.2rem; }
.site-footer .brand { color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .9rem; }
.site-footer__legal { font-size: .78rem; color: #6b5f86; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (min-width: 780px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* --- Leaflet ---------------------------------------------------------- */
.leaflet-container { font-family: var(--font-body); background: #0d0a18; }
.leaflet-control-attribution { background: rgba(10,7,19,.75) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--ink-soft) !important; }
.leaflet-bar a {
  background: var(--surface) !important; color: var(--ink) !important;
  border-bottom-color: var(--line) !important;
}
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-content-wrapper {
  border-radius: 14px; padding: 0; overflow: hidden;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.65);
}
.leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup-close-button { color: var(--muted) !important; }

/* --- Marcador con icono ----------------------------------------------- */
.map-pin { display: block; width: 34px; height: 44px; position: relative; }
.map-pin__bg {
  position: absolute; inset: 0; width: 34px; height: 44px;
  fill: var(--pin, #ff2e88);
  stroke: rgba(255,255,255,.9); stroke-width: 1.6;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--pin, #ff2e88) 70%, transparent))
          drop-shadow(0 3px 5px rgba(0,0,0,.55));
}
.map-pin__ico {
  position: absolute; left: 8px; top: 7px; width: 18px; height: 18px;
  fill: none; stroke: #fff; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Globo del marcador ------------------------------------------------ */
.pin-pop { display: flex; flex-direction: column; }
.pin-pop__thumb { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.pin-pop__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pin-pop__body { padding: .75rem .85rem .85rem; display: flex; flex-direction: column; gap: .3rem; }
.pin-pop__title { font-family: var(--font-display); font-weight: 700; font-size: .94rem; line-height: 1.25; color: var(--ink); }
.pin-pop__place { font-size: .78rem; color: var(--muted); }
.pin-pop__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.pin-pop__chip {
  display: inline-flex; align-items: center; gap: .28rem;
  font-size: .71rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 999px;
  background: var(--hot-wash); color: var(--hot);
}
.pin-pop__chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.pin-pop__chip--video { background: var(--gold-wash); color: var(--gold); }
.pin-pop__chip--muted { background: rgba(255,255,255,.07); color: var(--muted); }
.pin-pop__link { font-size: .85rem; font-weight: 700; margin-top: .35rem; text-decoration: none; color: var(--volt); }

/* --- Insignia de icono -------------------------------------------------- */
.icon-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .71rem; font-weight: 700;
  padding: .24rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.08);
  background: color-mix(in srgb, var(--pin) 22%, transparent);
  color: var(--pin);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--pin) 45%, transparent);
}
.icon-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge--float { background: rgba(10,7,19,.72); backdrop-filter: blur(6px); border-color: color-mix(in srgb, var(--pin) 55%, transparent); }

/* --- Selector de iconos -------------------------------------------------- */
.icon-picker { border: 0; padding: 0; margin: 0 0 1.3rem; }
.icon-picker legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: .2rem; }
.icon-picker__hint { color: var(--muted); font-size: .82rem; margin: 0 0 .75rem; }

.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (min-width: 620px) { .icon-grid { grid-template-columns: repeat(6, 1fr); } }

.icon-option { position: relative; display: block; }
.icon-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.icon-option__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: .65rem .25rem .55rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .18s ease;
  min-height: 76px;
}
.icon-option__box svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--pin); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-option__label { font-size: .64rem; color: var(--muted); text-align: center; line-height: 1.15; }

.icon-option input:checked + .icon-option__box {
  border-color: var(--pin);
  background: color-mix(in srgb, var(--pin) 18%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--pin) 35%, transparent);
}
.icon-option input:checked + .icon-option__box .icon-option__label { color: var(--ink); font-weight: 700; }
.icon-option input:focus-visible + .icon-option__box { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Asistente por pasos ------------------------------------------------- */
.wizard__bar { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.wizard__dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s ease, box-shadow .2s ease; }
.wizard__dot.is-done { background: var(--volt); }
.wizard__dot.is-current { background: var(--hot); box-shadow: 0 0 12px rgba(255,46,136,.6); }
.wizard__count { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

.wizard__title { font-size: 1.4rem; margin: 0 0 .3rem; }
.wizard__lead { color: var(--ink-soft); font-size: .94rem; margin: 0 0 1.15rem; }
.wizard__hint { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }

.wizard.is-guided .wizard__step { display: none; }
.wizard.is-guided .wizard__step.is-active { display: block; }

.wizard__nav { display: flex; gap: .6rem; margin-top: 1.2rem; }

@media (max-width: 720px) {
  .wizard.is-guided .wizard__nav {
    position: sticky; bottom: 0; z-index: 20;
    background: linear-gradient(to top, var(--night) 68%, transparent);
    padding: .85rem 0 1rem; margin-top: 1rem;
  }
  .wizard__nav .btn { padding: 1rem 1.1rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { background: #fff; color: #000; }
}
