/* ============================================================
   Recupera tu Bicicleta — hoja de estilos
   ============================================================ */

:root {
  --paper: #f3f0e9;
  --paper-2: #ebe6da;
  --surface: #fffdf8;
  --ink: #14181b;
  --muted: #5d6660;
  --line: #ded8cb;
  --line-soft: #e9e4d8;
  --accent: #ff4a1f;
  --accent-dark: #d6360f;
  --accent-soft: #ffe9e2;
  --lime: #c8f169;
  --lime-ink: #1f2d10;
  --danger: #c22e12;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(20, 24, 27, .04);
  --shadow-md: 0 18px 40px -26px rgba(20, 24, 27, .45);
  --shadow-lg: 0 40px 80px -40px rgba(20, 24, 27, .55);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 380px at 80% -120px, rgba(200, 241, 105, .22), transparent 70%),
    radial-gradient(700px 340px at 0% 0%, rgba(255, 74, 31, .07), transparent 70%);
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -.025em; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease, color .16s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(255, 74, 31, .95);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b3236; transform: translateY(-1px); }

.btn-ghost { background: transparent; border-color: rgba(20, 24, 27, .18); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .6); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9e230b; }

.btn-small { padding: 9px 16px; font-size: 13px; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.link-btn:hover { border-color: currentColor; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.icon-btn:hover { background: var(--paper-2); transform: rotate(90deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 233, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 24, 27, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  white-space: nowrap;
}

.brand-name em { font-style: normal; color: var(--accent); }
.site-header .btn-primary { box-shadow: 0 10px 20px -14px rgba(255, 74, 31, .9); }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 66px 0 44px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow-light { color: rgba(243, 240, 233, .6); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 74, 31, .55);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 74, 31, .5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 74, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 74, 31, 0); }
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.04em;
  max-width: 13ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 56%, rgba(200, 241, 105, .95) 56%, rgba(200, 241, 105, .95) 92%, transparent 92%);
  padding-inline: .04em;
}

.hero-lead {
  margin-top: 22px;
  max-width: 50ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- Composición del hero ---------- */
.hero-art { position: relative; min-height: 560px; }

.poster {
  position: absolute;
  inset: 10px 26px 48px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.4deg);
  z-index: 2;
}

.poster-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 2px 4px;
}
.poster-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.poster-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--ink);
}

.poster-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
}
.poster-photo img { width: 100%; height: 100%; object-fit: cover; }

.poster-body { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px; }
.poster-body strong { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.poster-body span { font-size: 12px; color: var(--muted); }

.poster-map { position: relative; height: 86px; border-radius: 12px; overflow: hidden; flex: none; }

.fake-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 63% 42%, rgba(255, 74, 31, .28), transparent 46%),
    repeating-linear-gradient(0deg, transparent 0 21px, #d6e0cf 21px 23px),
    repeating-linear-gradient(90deg, transparent 0 27px, #d6e0cf 27px 29px),
    linear-gradient(120deg, #eaf0e4, #dfe9d8);
}
.fake-map::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 46%;
  width: 120%;
  height: 16px;
  background: #f6f9f2;
  transform: rotate(-7deg);
  box-shadow: 0 0 0 1px rgba(214, 224, 207, .8);
}

.fake-pin {
  position: absolute;
  left: 63%;
  top: 42%;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  border: 3px solid #fff;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
  z-index: 2;
}
.fake-pin::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 74, 31, .45);
  animation: pin-ripple 2.6s ease-out infinite;
}
@keyframes pin-ripple {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.stamp {
  position: absolute;
  top: 54%;
  right: -18px;
  transform: rotate(8deg);
  padding: 7px 15px;
  border: 2px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  background: rgba(255, 253, 248, .88);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2em;
  box-shadow: inset 0 0 0 3px rgba(255, 253, 248, .9), 0 10px 20px -14px rgba(0,0,0,.4);
}

.note-card {
  position: absolute;
  right: -4px;
  bottom: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transform: rotate(3.5deg);
}
.note-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.note-card strong { display: block; font-family: var(--display); font-size: 14px; letter-spacing: -.01em; }
.note-card span { display: block; font-size: 11.5px; color: var(--muted); }

.deco-ring {
  position: absolute;
  left: -34px;
  bottom: 58px;
  width: 170px;
  height: 170px;
  border: 1.5px dashed rgba(20, 24, 27, .22);
  border-radius: 50%;
  z-index: 1;
}

/* ---------- Secciones ---------- */
.section { padding: 54px 0; }
section[id] { scroll-margin-top: 84px; }
.section-alt { background: rgba(235, 230, 218, .5); border-block: 1px solid var(--line-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: clamp(27px, 3.5vw, 42px);
  font-weight: 800;
}
.section-sub { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 62ch; }
.grid-count { font-size: 13px; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }

.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); padding-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: inline-block; border: 2px solid #fff; }
.legend-robada { background: var(--accent); }
.legend-recuperada { background: var(--lime); border-color: rgba(20,24,27,.15); }

/* ---------- Mapa radar ---------- */
.radar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 20px;
}

.radar-map-wrap {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e3ebdd;
  min-height: 440px;
}
#radarMap { height: 460px; width: 100%; }

.radar-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 440px;
}
.radar-list h3 {
  font-size: 13px;
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
}
.radar-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 318px;
  margin-right: -6px;
  padding-right: 6px;
}
.radar-list li + li { border-top: 1px solid var(--line-soft); }
.radar-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 6px;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}
.radar-item:hover { background: var(--paper); }
.radar-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.radar-info { min-width: 0; }
.radar-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-info span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radar-state {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.radar-state.is-rec { background: #7fbf26; }

.hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: auto; }
.radar-list .btn { width: 100%; }

/* ---------- Toolbar filtros ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.search-field { position: relative; flex: 1 1 250px; }
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-field .input { padding-left: 40px; }

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9aa19c; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 74, 31, .12); }

.select {
  width: auto;
  min-width: 150px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6660' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ---------- Tarjetas ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.grid.is-empty { display: block; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d2cbbb; }
.card.flash { animation: flash 1.8s ease; }

@keyframes flash {
  0%, 100% { box-shadow: var(--shadow-sm); }
  25%, 60% { box-shadow: 0 0 0 4px rgba(255, 74, 31, .35); }
}

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.035); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6);
}
.badge-rec { background: var(--lime); color: var(--lime-ink); }

.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-title {
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.card-title small {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.card-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.card-place svg { flex: none; color: var(--accent); }

.card-relato {
  font-size: 13.5px;
  line-height: 1.55;
  color: #3d4642;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  color: #49524d;
  white-space: nowrap;
}
.chip-serie { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.chip-rec { background: rgba(200, 241, 105, .35); border-color: rgba(127, 191, 38, .35); color: #35500f; }

.card-map {
  position: relative;
  isolation: isolate;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #e3ebdd;
  margin-top: 2px;
}
.card-map .map { height: 100%; width: 100%; }
.card-map .map-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 500;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 253, 248, .92);
  color: var(--ink);
  max-width: calc(100% - 60px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 70px 24px;
  border: 1.5px dashed var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, .6);
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0 auto 18px; }
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ---------- Leaflet ajustes ---------- */
.leaflet-container { font-family: var(--body); background: #e3ebdd; }
.leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.8); }

.osm-credit {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 500;
  font-size: 9px;
  color: #333;
  background: rgba(255, 255, 255, .78);
  padding: 1px 4px;
  border-radius: 4px;
  text-decoration: none;
}
.osm-credit:hover { text-decoration: underline; }

.pin-wrap { background: transparent; border: 0; display: flex; align-items: flex-end; justify-content: center; }
.pin {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.pin.is-rec { background: #7fbf26; }

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--muted);
  background: #e3ebdd;
  z-index: 450;
}

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.step {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.04em;
}
.step h3 { font-size: 19px; margin: 16px 0 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Consejos ---------- */
.tips {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  padding: 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.tips::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 241, 105, .18), transparent 68%);
}
.tips h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; }
.tips-lead { margin-top: 12px; font-size: 14px; line-height: 1.65; color: rgba(243, 240, 233, .66); max-width: 36ch; }

.tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.tips-list li {
  display: flex;
  gap: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(243, 240, 233, .85);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(243, 240, 233, .12);
}
.tips-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tips-list span {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid rgba(200, 241, 105, .4);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

/* ---------- Publicidad ---------- */
.ad-section { padding: 6px 0 0; }
.ad-slot { width: 100%; }

.ad-banner {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ad-label {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 24, 27, .72);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ad-link { display: block; }
.ad-link img { width: 100%; height: auto; }

.ad-placeholder { border-style: dashed; background: rgba(255, 255, 255, .45); }
.ad-placeholder:hover { border-color: var(--accent); }

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 98px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}

.ad-placeholder-inner strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -.02em;
}

.ad-placeholder-inner span { font-size: 12.5px; }

.ad-inline { grid-column: 1 / -1; }
.ad-inline .ad-banner { margin: 2px 0 8px; }
.ad-inline .ad-placeholder-inner { min-height: 82px; }

.ad-slot-footer .ad-banner { max-width: 728px; margin: 0 auto 30px; }
.ad-slot-footer .ad-placeholder-inner { min-height: 72px; }
.ad-slot-footer .ad-placeholder-inner strong { font-size: 15px; }

.ad-missing { display: block; padding: 30px; text-align: center; color: var(--muted); }

.footer-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.footer-social-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.footer-social a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 46px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.footer-inner .brand-name { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.footer-inner .brand-name em { font-style: normal; color: var(--accent); }
.footer-inner p { font-size: 12.5px; color: var(--muted); margin-top: 8px; max-width: 44ch; line-height: 1.6; }
.footer-fine { text-align: right; max-width: 32ch; }

/* ---------- Modales ---------- */
.modal {
  border: none;
  padding: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  width: min(900px, 94vw);
  max-width: 94vw;
  max-height: 92vh;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.modal::backdrop {
  background: rgba(16, 22, 19, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.modal-scroll { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }

/* Detalle */
.detail-media { position: relative; aspect-ratio: 16 / 7.5; max-height: 380px; background: var(--paper-2); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .badge { top: 16px; left: 16px; }
.detail-thumbs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(18, 20, 26, .55);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 24px);
  overflow-x: auto;
}
.detail-thumb {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #1b1e24;
  flex: none;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb.is-active { border-color: var(--accent); }
.detail-thumb:hover { border-color: rgba(255,255,255,.7); }

.detail-content { padding: 26px 30px 30px; }
.detail-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-top: 2px; }
.detail-place { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.detail-place svg { color: var(--accent); flex: none; }

.detail-content .chips { margin-top: 16px; }

.detail-block { margin-top: 22px; }
.detail-block h3, .detail-grid dt {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.detail-block h3 { margin-bottom: 7px; }
.detail-block p { font-size: 15px; line-height: 1.65; color: #2f3834; white-space: pre-line; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.detail-grid > div { min-width: 0; }
.detail-grid dt { margin-bottom: 4px; }
.detail-grid dd { margin: 0; font-size: 14px; font-weight: 500; }

.detail-map-wrap {
  position: relative;
  isolation: isolate;
  height: 300px;
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e3ebdd;
}
.detail-map-wrap .map { height: 100%; width: 100%; }

.detail-private-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(20, 24, 27, .04);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.detail-actions .btn { padding: 11px 18px; font-size: 13.5px; }
.detail-actions .danger-text { color: var(--danger); border-color: rgba(194, 46, 18, .25); margin-left: auto; }
.detail-actions .danger-text:hover { border-color: var(--danger); background: rgba(194, 46, 18, .05); }

/* Formulario */
.modal-form { width: min(820px, 94vw); }
.modal-form[open] { display: flex; flex-direction: column; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  flex: none;
}
.modal-head .eyebrow { margin-bottom: 6px; }
.modal-head h2 { font-size: 25px; font-weight: 800; }
.modal-head .icon-btn { flex: none; margin-top: 2px; }

#reportForm {
  padding: 8px 28px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.form-section { padding-top: 22px; }
.form-section + .form-section { border-top: 1px solid var(--line-soft); margin-top: 8px; }
.form-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: 16px;
}
.form-section h3 span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  letter-spacing: 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field label em { font-style: normal; color: var(--accent); }
.field label span { font-weight: 400; color: var(--muted); }
.field .help { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

textarea.input { min-height: 112px; resize: vertical; line-height: 1.55; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 13px !important; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check span { font-weight: 400; color: #3d4642; }

/* Dropzone */
.drop {
  border: 1.5px dashed #cfc7b6;
  border-radius: 16px;
  background: #fbf8f1;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.dragover { border-color: var(--accent); background: #fff4ef; }

.drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 20px 10px;
  color: var(--muted);
}
.drop-empty svg { color: var(--accent); margin-bottom: 4px; }
.drop-empty strong { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.drop-empty span { font-size: 11.5px; }

.drop-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}
.drop-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.drop-thumb {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eee8db;
  aspect-ratio: 1;
  cursor: grab;
}
.drop-thumb.is-dragging { opacity: .4; cursor: grabbing; }
.drop-thumb.drag-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.drop-thumb-tag {
  position: absolute;
  left: 5px;
  top: 5px;
  background: rgba(18, 20, 26, .78);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}
.drop-thumb-move {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.drop-thumb-move button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 20, 26, .75);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drop-thumb-move button:hover:not(:disabled) { background: var(--accent); }
.drop-thumb-move button:disabled { opacity: .3; cursor: default; }
.drop-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 20, 26, .72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drop-thumb-remove:hover { background: var(--accent); }
.drop-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Búsqueda geográfica */
.geo-search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.geo-search .input { flex: 1 1 220px; }

.geo-results {
  list-style: none;
  margin: 0 0 10px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 190px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.geo-results li {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}
.geo-results li:hover, .geo-results li.active { background: var(--paper); }
.geo-results li strong { display: block; font-weight: 600; font-size: 12.5px; }
.geo-results li span { color: var(--muted); font-size: 11.5px; }

.pick-map-wrap { position: relative; isolation: isolate; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e3ebdd; }
.pick-map { height: 290px; width: 100%; }
.pick-map-wrap .map-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(20, 24, 27, .82);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.coord-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.coord-row label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); }
.coord-input {
  width: 190px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.coord-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,74,31,.12); }
.coord-status { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.coord-status.ok { color: #217a4b; font-weight: 600; }

.error { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 46, 18, .1); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.form-note { font-size: 11.5px; color: var(--muted); max-width: 34ch; }
.form-buttons { display: flex; gap: 9px; margin-left: auto; }

/* Confirmación */
.modal-confirm { width: min(430px, 92vw); padding: 26px; }
.modal-confirm h3 { font-size: 21px; margin-bottom: 8px; }
.modal-confirm p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 22px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  z-index: 1200;
  max-width: min(560px, 92vw);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { min-height: 540px; max-width: 540px; width: 100%; margin-inline: auto; }
  .hero h1 { max-width: 16ch; }
  .radar { grid-template-columns: 1fr; }
  .radar-list { min-height: 0; }
  .radar-list ul { max-height: none; }
  #radarMap { height: 360px; }
  .radar-map-wrap { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; gap: 26px; padding: 30px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 18px; }
  .hero { padding-top: 44px; }
  .hero-stats { gap: 28px; }
  .section { padding: 42px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid-count { padding-bottom: 0; }
  .legend { padding-bottom: 0; }
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .geo-search .input { flex: 1 1 100%; }
  .geo-search .btn { flex: 1; }
  .modal-head { padding: 18px 20px 16px; }
  .modal-head h2 { font-size: 21px; }
  #reportForm { padding: 4px 20px 22px; }
  .detail-content { padding: 20px 20px 24px; }
  .detail-media { aspect-ratio: 16 / 10; max-height: 300px; }
  .detail-map-wrap { height: 240px; }
  .pick-map { height: 240px; }
  .tips { padding: 24px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-buttons { margin-left: 0; }
  .form-buttons .btn { flex: 1; }
  .modal-confirm { padding: 22px; }
  .footer-fine { text-align: left; }
  .detail-actions .danger-text { margin-left: 0; }
}

@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-logo { width: 36px; height: 36px; border-radius: 9px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { font-size: 9px; margin-top: 2px; }
  .site-header .btn-small { padding: 8px 11px; font-size: 12px; }
  .hero-art { min-height: 450px; }
  .poster { inset: 8px 14px 44px 0; }
  .stamp { top: 48%; right: -8px; font-size: 11px; padding: 5px 10px; }
  .note-card { right: 0; }
  .toolbar .select { flex: 1 1 140px; min-width: 0; }
}

@media (max-width: 370px) {
  .header-inner { gap: 8px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-name { font-size: 13.5px; }
  .brand-sub { display: none; }
  .site-header .btn-small { padding: 7px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
