/* TffCo. · The Fly Fishing Company
   Tokens de marca tomados de la web principal. */
:root {
  --ink: #12201A;
  --forest: #1E3229;
  --moss: #4E674F;
  --stone: #C9C0A4;
  --paper: #F1EAD9;
  --gold: #A9873F;
  --gold-soft: #C7A85E;
  --gold-deep: #7E652F;

  --bg: var(--paper);
  --surface: #F8F3E6;
  --fg: var(--ink);
  --muted: #4A5750;
  --line: rgba(18, 32, 26, .16);
  --accent: var(--forest);
  --on-accent: var(--paper);
  --link: var(--gold-deep);
  --focus: var(--gold-deep);
  --hero-overlay: linear-gradient(180deg, rgba(18,32,26,.35) 0%, rgba(18,32,26,.82) 100%);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --nav-h: 68px;
  --top-h: 56px;
  --col: 640px;
  --r-lg: 18px;
  --r-md: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

:root[data-theme="dark"] {
  --bg: #12201A;
  --surface: #1B2D25;
  --fg: #F1EAD9;
  --muted: #B9B39D;
  --line: rgba(241, 234, 217, .18);
  --accent: var(--gold-soft);
  --on-accent: #12201A;
  --link: var(--gold-soft);
  --focus: var(--gold-soft);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-top: calc(var(--top-h) + var(--safe-t));
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
h1 { font-size: 32px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { max-width: 62ch; }
a { color: var(--link); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra superior ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: var(--safe-t);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: var(--col); margin: 0 auto; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.top-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--fg);
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }
.install-btn {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--gold-deep); color: var(--link); min-height: 40px;
}

/* ---------- Estructura ---------- */
main { max-width: var(--col); margin: 0 auto; padding: 24px 16px 32px; outline: none; }
.page-head { margin-bottom: 18px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.stack > * + * { margin-top: 14px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin: -8px 0 8px -8px; padding: 0 10px 0 6px;
  font-weight: 600; font-size: 15px; color: var(--link); text-decoration: none;
}
.back svg { width: 20px; height: 20px; }

/* ---------- Navegación inferior ---------- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--bg); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.nav-in { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav-h); }
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; position: relative;
}
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::before {
  content: ''; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px;
}

/* ---------- Botones ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  border-radius: var(--r-md); font-weight: 600; font-size: 17px; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.btn.secondary { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn svg { width: 22px; height: 22px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Inicio ---------- */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; color: #F1EAD9;
  background: var(--forest) url('../assets/rio-luz-otono.webp') center 40% / cover;
  min-height: 210px; display: flex; align-items: flex-end;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-in { position: relative; padding: 22px 20px; }
.hero h1 { font-size: 34px; color: #F1EAD9; }
.hero p { margin-top: 8px; color: rgba(241,234,217,.86); font-size: 16px; }

.actions { list-style: none; margin-top: 16px; }
.actions li + li { margin-top: 10px; }
.action {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); text-decoration: none; color: var(--fg); min-height: 84px;
}
.action:active { background: var(--line); }
.action .ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--forest); color: var(--gold-soft);
}
:root[data-theme="dark"] .action .ico { background: var(--gold-soft); color: var(--forest); }
.action .ico svg { width: 28px; height: 28px; }
.action strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.15; }
.action span.d { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.action .chev { margin-left: auto; width: 20px; height: 20px; color: var(--muted); flex: none; }

.alert {
  background: var(--forest); color: #F1EAD9; border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; display: block;
}
:root[data-theme="dark"] .alert { background: var(--surface); border: 1.5px solid var(--line); }
.alert h3 { color: var(--gold-soft); font-size: 19px; }
.alert p { margin-top: 6px; font-size: 15.5px; color: rgba(241,234,217,.9); }
.alert .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; color: var(--gold-soft); font-size: 15px; }

.taller-banner {
  position: relative; display: flex; align-items: flex-start; gap: 10px; text-decoration: none;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 34px 12px 12px; margin: 0 0 14px 0;
}
.taller-banner .tb-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); }
.taller-banner .tb-ico svg { width: 16px; height: 16px; }
.taller-banner .tb-txt { display: flex; flex-direction: column; gap: 2px; }
.taller-banner .tb-txt strong { font-size: 14.5px; color: var(--fg); }
.taller-banner .tb-txt span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.taller-banner .tb-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); }

.rio-quick {
  display: block; text-decoration: none; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 16px 0;
}
.rio-quick .rq-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rio-quick .rq-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 17px; color: var(--fg); }
.rio-quick .rq-d { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.rio-quick .rq-more { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; font-weight: 600; font-size: 13.5px; color: var(--forest); }
:root[data-theme="dark"] .rio-quick .rq-more { color: var(--gold-soft); }

/* ---------- Listas ---------- */
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; min-height: 48px; }
.search input:focus-visible { outline: none; }
.search:focus-within { border-color: var(--focus); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; color: var(--fg); white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.list { list-style: none; margin-top: 12px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 16px 4px; min-height: 76px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg);
}
.row:active { background: var(--line); }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.row-main .d { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }
.row-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pill.start { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.row .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.empty { padding: 28px 4px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); font-family: var(--font-display); font-size: 20px; font-weight: 500; margin-bottom: 4px; }

/* Moscas: cuadrícula */
.grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile { display: block; text-decoration: none; color: var(--fg); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tile:active { background: var(--line); }
.tile .art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); overflow: hidden; }
.tile .art svg { width: 62%; }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .info { padding: 10px 12px 12px; }
.tile strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.2; }
.tile .d { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- Detalle ---------- */
.detail-head h1 { margin-top: 2px; }
.alias { color: var(--muted); font-style: italic; font-family: var(--font-display); font-size: 17px; margin-top: 4px; }
.alias-inline { display: block; color: var(--muted); font-style: italic; font-size: 12.5px; line-height: 1.3; margin-top: 1px; }
.lead { font-size: 18px; margin-top: 12px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.fav {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 600; font-size: 15px;
}
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.fav[aria-pressed="true"] svg { fill: currentColor; }

.fact { padding: 14px 0; border-top: 1px solid var(--line); }
.fact h3 { font-size: 15px; font-family: var(--font-body); font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fact p { font-size: 17px; }

details.more { border-top: 1px solid var(--line); }
details.more:last-of-type { border-bottom: 1px solid var(--line); }
details.more summary {
  list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-size: 19px; cursor: pointer;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; font-family: var(--font-body); font-size: 24px; color: var(--link); }
details.more[open] summary::after { content: '–'; }
details.more .body { padding: 0 0 16px; }
details.more ol, details.more ul { padding-left: 22px; }
details.more li + li { margin-top: 8px; }

.video-slot {
  border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 20px; text-align: center; color: var(--muted); font-size: 15px;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fly-hero { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); color: var(--gold-soft); display: grid; place-items: center; margin-bottom: 18px; }
.fly-hero svg { width: 46%; }
.fly-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Modo paso a paso ---------- */
body.stepmode { padding-top: 0; padding-bottom: 0; overflow: hidden; }
body.stepmode .top, body.stepmode .nav { display: none; }
.step {
  position: fixed; inset: 0; z-index: 40; background: var(--forest); color: #F1EAD9;
  display: flex; flex-direction: column; padding-top: var(--safe-t); touch-action: pan-y;
}
.step-top { display: flex; align-items: center; gap: 8px; padding: 8px 8px 0; }
.step-top .icon-btn { color: #F1EAD9; }
.step-top .icon-btn:hover { background: rgba(241,234,217,.14); }
.step-title { flex: 1; text-align: center; font-family: var(--font-display); font-size: 17px; opacity: .92; }
.dashes { display: flex; gap: 6px; padding: 8px 20px 0; }
.dashes i { flex: 1; height: 4px; border-radius: 4px; background: rgba(241,234,217,.22); }
.dashes i.on { background: var(--gold-soft); }
.step-body { flex: 1; overflow-y: auto; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; max-width: var(--col); width: 100%; margin: 0 auto; }
.step-num { font-family: var(--font-display); font-weight: 300; font-size: 104px; line-height: 1; color: var(--gold-soft); }
.step-num small { font-size: 26px; font-style: italic; font-weight: 400; opacity: .85; }
.step-text { font-family: var(--font-display); font-weight: 400; font-size: 29px; line-height: 1.28; margin-top: 12px; }
.step-tip {
  margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--gold-soft);
  background: rgba(241,234,217,.08); font-size: 17px; border-radius: 0 var(--r-md) var(--r-md) 0;
}
.step-foot { display: flex; gap: 10px; padding: 12px 16px calc(16px + var(--safe-b)); max-width: var(--col); width: 100%; margin: 0 auto; }
.step-foot .btn { min-height: 64px; font-size: 19px; }
.step-foot .btn.back-btn { flex: 0 0 34%; background: transparent; color: #F1EAD9; border: 1.5px solid rgba(241,234,217,.4); }
.step-foot .btn.next { flex: 1; background: var(--gold-soft); color: var(--ink); }
.step-foot .btn:disabled { opacity: .35; }
.done-mark { width: 72px; height: 72px; color: var(--gold-soft); }

/* ---------- Montaje ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 4px; gap: 4px; background: var(--surface); }
.seg button { min-height: 48px; border-radius: 9px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

fieldset { border: 0; margin-top: 22px; }
legend { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; padding: 0; }
.opts { display: grid; gap: 8px; }
.opt {
  min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  text-align: left; font-weight: 500; background: var(--surface); display: flex; align-items: center; gap: 12px;
}
.opt::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; align-self: flex-start; border-radius: 50%; border: 2px solid var(--muted); }
.opt-t { display: flex; flex-direction: column; gap: 3px; }
.opt-d { font-weight: 400; font-size: 13.5px; opacity: .8; line-height: 1.3; }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.opt[aria-checked="true"]::before { border-color: currentColor; background: radial-gradient(currentColor 42%, transparent 46%); }
.aguas { grid-template-columns: 1fr 1fr 1fr; }
.aguas .opt { flex-direction: column; justify-content: center; text-align: center; padding: 10px 6px; font-size: 15px; gap: 6px; }
.aguas .opt::before { align-self: center; margin-top: 0; }

.result { scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 12px); margin-top: 24px; border: 1.5px solid var(--gold-deep); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.result-head { background: var(--forest); color: #F1EAD9; padding: 16px 20px; }
.result-head h2 { color: var(--gold-soft); font-size: 26px; }
.result-head p { font-size: 14.5px; opacity: .85; margin-top: 4px; }
.result-body { padding: 4px 20px 20px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { font-weight: 600; text-align: right; }
.result h3 { margin: 16px 0 6px; font-size: 16px; font-family: var(--font-body); font-weight: 700; color: var(--muted); }
.link-rows { list-style: none; }
.link-rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 19px; }
.link-rows svg { width: 18px; height: 18px; color: var(--muted); }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.bigx { text-align: center; padding: 22px 16px; border-radius: var(--r-lg); background: var(--forest); color: #F1EAD9; margin-top: 16px; }
.bigx .n { font-family: var(--font-display); font-weight: 300; font-size: 84px; line-height: 1; color: var(--gold-soft); }
.bigx .n small { font-size: 36px; }
.bigx .m { font-size: 17px; margin-top: 4px; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--gold-deep); margin-top: 6px; }
.range-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.range-label output { font-family: var(--font-display); font-size: 26px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
tr.hl { background: var(--gold-soft); color: var(--ink); font-weight: 700; }

/* ---------- Salida ---------- */
.rule { padding: 16px 0; border-top: 1px solid var(--line); }
.rule h3 { font-size: 20px; }
.rule p { margin-top: 6px; }
.rule a { display: inline-block; margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.checks { list-style: none; }
.check { display: flex; align-items: center; gap: 14px; min-height: 56px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.check .box { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--muted); display: grid; place-items: center; }
.check[aria-checked="true"] .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check .box svg { width: 16px; height: 16px; opacity: 0; }
.check[aria-checked="true"] .box svg { opacity: 1; }
.check[aria-checked="true"] span.t { text-decoration: line-through; color: var(--muted); }
.linkish { color: var(--link); font-weight: 600; min-height: 44px; }

.footer-note { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.toast {
  white-space: nowrap; max-width: calc(100vw - 32px);
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14.5px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  animation: toastIn .25s ease-out; transition: opacity .4s ease, transform .4s ease;
}
.toast.is-out { opacity: 0; transform: translate(-50%, 8px); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
:root[data-theme="dark"] .toast { background: var(--gold-soft); color: var(--ink); }

@media (min-width: 720px) {
  main { padding-top: 32px; }
  .step-text { font-size: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .step-body { animation: stepin .22s ease-out; }
  @keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Materiales, atado y lista de compra ---------- */
.mat-list { list-style: none; margin-top: 10px; }
.mat-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mat-c { font-weight: 600; }
.mat-d { color: var(--muted); text-align: right; }
.tie-order { padding-left: 22px; margin-top: 10px; }
.tie-order li { padding: 5px 0; }
.buy-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 14px; background: var(--surface); }
.buy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buy-head strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.linkish.small { font-size: 14px; min-height: 36px; }
.buy-card .mat-list .check { width: 100%; text-align: left; min-height: 52px; align-items: flex-start; padding-top: 14px; }
.buy-card .mat-list .check .box { margin-top: 1px; }
.buy-card .mat-list .t { display: flex; flex-direction: column; gap: 1px; }
.buy-card .mat-list .mat-d { text-align: left; font-size: 13.5px; }

/* ---------- Botón de modo Pesca ---------- */
/* Interruptor redondo Lodge ↔ Pesca (casa a la izquierda, persona vadeando a la derecha) */
#modeBtn { position: relative; width: 62px; height: 34px; margin: 5px 4px; border-radius: 17px; padding: 0; background: var(--line); color: var(--fg); transition: background .25s ease; flex: none; }
#modeBtn:hover { background: var(--line); }
#modeBtn .ms-ico { position: absolute; top: 0; bottom: 0; width: 34px; display: grid; place-items: center; opacity: .45; }
#modeBtn .ms-l { left: 0; } #modeBtn .ms-r { right: 0; }
#modeBtn .ms-ico svg { width: 17px; height: 17px; stroke-width: 1.9; }
#modeBtn .ms-knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F1EAD9; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.3,.7,.3,1), background .25s ease; }
#modeBtn .ms-knob svg { width: 17px; height: 17px; stroke-width: 1.9; }
#modeBtn.is-on { background: var(--gold-deep); }
#modeBtn.is-on:hover { background: var(--gold-deep); }
#modeBtn.is-on .ms-ico { opacity: .75; color: #F1EAD9; }
#modeBtn.is-on .ms-knob { transform: translateX(28px); background: var(--gold-soft); }
body.mode-pesca .top { border-bottom-color: var(--gold-deep); }

/* ---------- Río y clima ---------- */
.river-note { margin-top: 8px; }

/* ---------- Mapa de ríos ---------- */
.rio-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--fg);
  font-size: 13.5px; font-weight: 600; font-family: inherit;
}
.pill-btn svg { width: 15px; height: 15px; flex: none; }
.pill-btn:disabled { opacity: .6; }
.rio-hero { padding: 0; overflow: visible; }
.rio-hero .rh-media { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; background: #12201a; border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line); }
.rio-hero .rh-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rio-hero .rh-overlay {
  position: relative; padding: 56px 14px 10px; color: #fff;
  background: linear-gradient(to bottom, rgba(10,20,15,0) 0, rgba(10,20,15,.74) 64px, rgba(10,20,15,.92) 100%);
}
.rio-hero .rh-overlay h2 { font-size: 15px; font-weight: 600; opacity: .9; margin-bottom: 8px; }
.rio-hero .rh-overlay .cond-v { color: #fff; }
.rio-hero .rh-overlay .cond-l { color: rgba(255,255,255,.75); }
.rio-hero .rh-overlay .cond-source { color: rgba(255,255,255,.7); border-top-color: rgba(255,255,255,.25); }
.rio-hero .rh-overlay .cond-source a { color: #fff; }
.rio-hero .rh-caption { margin-top: 6px; padding: 0 2px; }
.rio-photo img {
  width: 100%; height: 190px; object-fit: cover; border-radius: var(--r-lg);
  border: 1.5px solid var(--line); display: block;
}
.rio-photo p { margin-top: 6px; }
.rio-map {
  height: 260px; border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--line); background: var(--surface);
}
.river-label {
  background: rgba(18,32,26,.82); color: #F1EAD9; border: 0; box-shadow: none;
  padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-family: var(--font-body);
}
.river-label::before { display: none; }
.rio-map .empty.small { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 16px; }
.locate-btn { margin-top: 10px; }
.locate-btn[disabled] { opacity: .6; cursor: default; }
.map-pin {
  display: block; width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--forest); border: 2px solid var(--paper); box-shadow: 0 1px 3px rgba(18,32,26,.4);
}
.map-pin.is-active { background: var(--gold-soft); width: 20px; height: 20px; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--fg); border-radius: var(--r-md); }
.leaflet-popup-content { font-family: var(--font-body); font-size: 14.5px; margin: 10px 14px; }
.leaflet-popup-tip { background: var(--surface); }
.wx-now { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--forest); color: #F1EAD9; }
.wx-t { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 44px; font-weight: 300; color: var(--gold-soft); }
.wx-t svg { width: 26px; height: 26px; }
.wx-d { font-size: 16px; line-height: 1.35; }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.wx-card { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.wx-card svg { width: 22px; height: 22px; color: var(--muted); }
.wx-card strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.wx-card span { font-size: 13.5px; color: var(--muted); }
.wx-tip { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--gold-deep); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; }
.wx-tip h3 { font-size: 17px; margin-bottom: 4px; }
.wx-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.wx-hour { text-align: center; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 10px 6px; display: flex; flex-direction: column; gap: 3px; }
.wx-hour strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.wx-hour span:first-child { font-size: 12.5px; color: var(--muted); }
.wx-pop { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.wx-pop svg { flex: none; opacity: .7; }
.empty.small { padding: 20px 4px; font-size: 15px; }

/* ---------- Selector Vadeo / Flotada y tarjetas de condiciones (Fase D) ---------- */
.vf-select { margin-top: 18px; }
.vf-label { font-family: var(--font-display); font-size: 15px; margin-bottom: 6px; }
.vf-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vf-btn { min-height: 44px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.vf-btn svg { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.vf-btn[aria-pressed="true"] { background: var(--forest); color: #F1EAD9; border-color: var(--forest); }
:root[data-theme="dark"] .vf-btn[aria-pressed="true"] { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }

.cond-card, .vf-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 18px; background: var(--surface); }
.cond-card h2, .vf-card h2 { font-size: 18px; margin-bottom: 10px; }
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.cond-item { display: flex; flex-direction: column; gap: 2px; }
.cond-v { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.cond-l { font-size: 13px; color: var(--muted); }
.cond-source { margin-top: 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

.vf-pill { display: inline-block; margin-top: 2px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--line); color: var(--fg); }
.vf-pill.is-favorable { background: #3E6B4A; color: #fff; }
.vf-pill.is-variable { background: var(--gold-soft); color: var(--ink); }
.vf-pill.is-limitado, .vf-pill.is-revisar { background: #8A4A2E; color: #fff; }
.vf-card .more { border: 0; margin-top: 10px; }

.interp-card h2 { font-size: 18px; margin-bottom: 10px; }
.info-rio-card h2 { font-size: 18px; margin-bottom: 10px; }
.info-rio-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-bottom: 10px; }
.info-rio-grid dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.info-rio-grid dd { font-size: 14px; color: var(--fg); }
.info-rio-card > .info-rio-grid { margin-bottom: 6px; }
.interp-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--line); color: var(--fg); }
.interp-pill.is-alta { background: #3E6B4A; color: #fff; }
.interp-pill.is-moderada { background: var(--gold-soft); color: var(--ink); }
.interp-pill.is-baja { background: #8A4A2E; color: #fff; }
.interp-warn { margin-top: 8px; }
.interp-factores { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.interp-factores li { font-size: 14px; color: var(--fg); padding-left: 16px; position: relative; }
.interp-factores li::before { content: '•'; position: absolute; left: 2px; color: var(--muted); }

.refs-section h2 { font-size: 18px; margin-bottom: 10px; }
.ref-link {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg);
  padding: 12px 4px; border-top: 1px solid var(--line);
}
.refs-section a.ref-link:first-of-type { border-top: 0; }
.ref-link svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.ref-link span { display: flex; flex-direction: column; gap: 2px; }
.ref-link strong { font-size: 14.5px; }
.ref-link small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.vf-card .more summary { min-height: 40px; font-size: 15px; font-family: var(--font-body); font-weight: 600; color: var(--link); }

.src-tag { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }

/* ---------- Primeros auxilios ---------- */
.sos-call {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff;
  background: #8A4A2E; border-radius: var(--r-lg); padding: 16px 18px; margin-top: 14px;
}
.sos-call svg { flex: none; width: 26px; height: 26px; }
.sos-call strong { display: block; font-size: 17px; }
.sos-call span span { display: block; font-size: 13.5px; opacity: .9; margin-top: 1px; }

/* ---------- Montaje: opciones en 2 columnas (época del año) ---------- */
.cols2 { grid-template-columns: 1fr 1fr; }
.cols2 .opt { flex-direction: column; justify-content: center; text-align: center; padding: 10px 6px; font-size: 15px; gap: 6px; }
.cols2 .opt::before { align-self: center; margin-top: 0; }
#afinar .body { padding-top: 4px; }
.result-body p + p { margin-top: 8px; }

/* ---------- Botón "?" (información comprimida) ---------- */
.qhelp { margin: 12px 0; }
.qhelp > summary { list-style: none; display: flex; width: fit-content; max-width: 100%; box-sizing: border-box; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--fg); padding: 6px 12px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qhelp > summary::-webkit-details-marker { display: none; }
.qhelp > summary > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.qhelp .qmark { flex: none; }
.qhelp .qbody { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; }
.qhelp .qmark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; line-height: 1; }
.qhelp[open] > summary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.qhelp[open] .qmark { background: var(--on-accent); color: var(--accent); }
.qhelp .qbody { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); font-size: 15px; line-height: 1.5; }
.qhelp .qbody p + p { margin-top: 8px; }
.qlist { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.qlinks { margin-top: 10px; font-size: 14px; }

/* ---------- Aviso de temporada (una línea) ---------- */
.temp-strip { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 6px 6px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.temp-strip a { flex: 1; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.temp-strip a span { line-height: 1.35; }
.temp-strip button, .novedad button { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }

/* ---------- Novedad ---------- */
.novedad { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 12px 8px 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--accent); background: var(--surface); }
.novedad a { flex: 1; text-decoration: none; color: var(--fg); }
.novedad strong { display: block; font-size: 15px; }
.novedad span { font-size: 14px; color: var(--muted); }

/* ---------- Alertas de clima ---------- */
.clima-alerta { display: grid; gap: 4px; margin: 12px 0; padding: 12px 14px; border-radius: var(--r-md); color: #fff; font-size: 14px; line-height: 1.4; }
.clima-alerta strong { font-size: 15px; }
.clima-alerta.is-tormenta { background: #8A2E2E; }
.clima-alerta.is-lluvia { background: #2E5B8A; }

/* ---------- Mención suave de talleres ---------- */
.soft-cta { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Equipo sugerido ---------- */
.eq-q { font-weight: 600; font-size: 15px; margin: 16px 0 8px; }
.eq-chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.eq-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .eq-grid { grid-template-columns: 1fr 1fr; } }
.eq-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 14px; }
.eq-card header { margin-bottom: 10px; }
.eq-card h3 { font-size: 18px; }
.eq-card header span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.eq-dl { display: grid; gap: 8px; margin: 0; }
.eq-dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: baseline; }
.eq-dl dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.eq-dl dd { margin: 0; font-size: 16px; font-weight: 600; }
.eq-card .qhelp { margin-bottom: 0; }

/* ---------- Próximamente, aparejos, captura y liberación ---------- */
.chip-soon { border-style: dashed; opacity: .7; cursor: default; white-space: nowrap; }
.chip-soon small, .chip small { font-weight: 500; font-size: 11px; opacity: .8; margin-left: 2px; }
.rig-pair { display: grid; gap: 6px; margin-top: 10px; font-size: 15px; }
.rig-pair > span { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: baseline; }
.rig-pair small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cr-card { margin-bottom: 18px; }

/* ---------- Letra chica ---------- */
.letra-chica { margin-top: 16px; font-size: 12px; line-height: 1.45; color: var(--muted); opacity: .9; }

/* ---------- Tramos ---------- */
.tramo-seg { margin-top: 12px; }

/* ---------- Fichas dinámicas: datos rápidos, clave, difuminado y rutas ---------- */
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ficha-i { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 9px 12px 10px; min-width: 0; }
.ficha-i span { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ficha-i strong { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; line-height: 1.3; }
.ficha-i a { color: var(--link); text-decoration: none; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; background: var(--forest); color: var(--gold-soft); border-radius: 999px; padding: 3px 10px; }
:root[data-theme="dark"] .tag { background: var(--gold-soft); color: var(--ink); }
.clave { margin-top: 14px; padding: 12px 14px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--gold-soft); border-left-width: 5px; }
.clave p { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.duo-i { background: var(--surface); border-radius: var(--r-md); padding: 11px 12px; border: 1px solid var(--line); }
.duo-i h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.duo-i p { font-size: 15px; line-height: 1.4; }
@media (max-width: 340px) { .duo { grid-template-columns: 1fr; } }
.origen-line { margin-top: 12px; font-size: 14px; color: var(--muted); }
.origen-line span { font-weight: 700; margin-right: 6px; color: var(--fg); }
.sub-h { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.fade-more { position: relative; max-height: var(--fm-h, 96px); overflow: hidden; transition: max-height .35s ease; }
.fade-more::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; transition: opacity .25s; }
.fade-more.is-open { max-height: 3000px; }
.fade-more.is-open::after { opacity: 0; }
.fade-more .note + .note { margin-top: 8px; }
.fm-toggle { margin: 2px 0 8px; min-height: 40px; padding: 0; background: none; border: 0; font-weight: 600; font-size: 15px; color: var(--link); cursor: pointer; }
.sabias { margin: 16px 0 4px; padding: 14px; border-radius: var(--r-md); background: var(--forest); color: #F1EAD9; }
.sabias .tag { background: var(--gold-soft); color: var(--ink); }
.sabias p { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip-link svg { width: 18px; height: 18px; }
.mini-row { list-style: none; display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.mini-row::-webkit-scrollbar { display: none; }
.mini-row li { flex: 0 0 132px; scroll-snap-align: start; }
.mini { display: block; text-decoration: none; color: var(--fg); border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); height: 100%; }
.mini .art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--forest); color: var(--gold-soft); }
.mini .art svg { width: 58%; }
.mini .art img { width: 100%; height: 100%; object-fit: cover; }
.mini strong { display: block; padding: 8px 10px 0; font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 1.2; }
.mini .d { display: block; padding: 2px 10px 9px; font-size: 12.5px; color: var(--muted); }
.rig-card { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 4px; margin-bottom: 10px; }
.rig-card > strong { display: block; font-size: 16px; }
.rig-card > .d { display: block; font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.rig-card .mini-row { margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-padding: 0 14px; }
.soft-link { display: inline-block; margin: 6px 0 4px; color: var(--link); font-weight: 600; text-decoration: none; min-height: 32px; }
.next-link { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--fg); }
.next-link .d { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.next-link strong { flex: 1; font-family: var(--font-display); font-weight: 500; font-size: 19px; text-align: right; }
.next-link svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.imita-link { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; }
.foto-pronto { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--gold-soft); opacity: .8; }
.ins-hero { position: relative; }
.ins-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); margin-right: 4px; }
.ins-thumb svg { width: 70%; }
.ins-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ins-thumb .foto-pronto { display: none; }
.etapa-foto { margin: -12px -14px 10px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md) var(--r-md) 0 0; }
.etapa-foto img { width: 100%; height: 100%; object-fit: cover; }
.mini .art svg[width="64"] { width: 40%; height: auto; }
.imita-links { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.imita-links span { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.imita-links a { font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; }

/* Tendencia estimada del río */
.tend-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 14px; background: var(--surface); }
.tend-card h2 { font-size: 18px; margin-bottom: 10px; }
.tend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tend-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--line); color: var(--fg); }
.tend-pill.is-sube { background: #8A4A2E; color: #fff; }
.tend-pill.is-baja { background: #3E6B4A; color: #fff; }
.tend-pron { font-size: 15px; font-weight: 600; }
.tend-chart { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin-top: 14px; }
.tend-chart .tb { display: block; background: var(--moss); border-radius: 3px 3px 0 0; opacity: .75; }
.tend-chart .tb.is-hoy { background: var(--gold); opacity: 1; }
.tend-chart .tb.is-fut { background: var(--stone); opacity: .9; }
.tend-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }

/* Deslizar para actualizar */
html { overscroll-behavior-y: contain; }
.ptr { position: fixed; left: 50%; top: calc(var(--top-h) + var(--safe-t) + 4px); transform: translate(-50%, -56px); opacity: 0; z-index: 70;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.2); pointer-events: none; }
:root[data-theme="dark"] .ptr { background: var(--gold-soft); color: var(--ink); }
.ptr-ico { display: grid; place-items: center; width: 24px; height: 24px; }
.ptr-ico svg { width: 22px; height: 22px; }
.ptr.is-listo .ptr-ico { color: var(--gold-soft); }
:root[data-theme="dark"] .ptr.is-listo .ptr-ico { color: var(--forest); }
.ptr.is-cargando .ptr-ico { animation: ptrSpin .8s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
.pill-btn svg { width: 16px; height: 16px; }

/* Ríos: menú flotante de secciones (Hoy · El río · Normas) */
.rio-subnav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 40;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.rio-subnav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--paper); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.rio-subnav a[aria-current="page"] { background: var(--gold-soft); color: var(--ink); }
:root[data-theme="dark"] .rio-subnav { background: var(--surface); border: 1px solid var(--line); }
:root[data-theme="dark"] .rio-subnav a { color: var(--fg); }
:root[data-theme="dark"] .rio-subnav a[aria-current="page"] { color: var(--ink); }
main:has(.rio-subnav) { padding-bottom: 96px; }
body:has(.rio-subnav) .beta-fab { bottom: calc(var(--nav-h) + 72px + env(safe-area-inset-bottom)); }
body.stepmode .rio-subnav { display: none; }

/* Criterio beta de vadeo / flotada */
.vfb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.vfb-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.vfb-pill.is-ok { background: #3E6B4A; color: #fff; }
.vfb-pill.is-prec { background: var(--gold-soft); color: var(--ink); }
.vfb-pill.is-no { background: #8A4A2E; color: #fff; }
.vfb-list { list-style: none; margin: 12px 0 8px; display: grid; gap: 6px; }
.vfb-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.4; }
.vfb-list li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 50%; }
.vfb-list li.is-ok::before { background: #3E6B4A; }
.vfb-list li.is-prec::before { background: var(--gold); }
.vfb-list li.is-no::before { background: #8A4A2E; }

/* Normas */
.norma-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; background: var(--surface); }
.norma-card h2 { font-size: 18px; margin-bottom: 6px; }
.norma-card p { font-size: 15.5px; line-height: 1.5; }

/* Veredicto del día */
.vd-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); border: 1.5px solid var(--line); }
.vd-head strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.vd-head span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.vd-dot, .vd-scale li::before { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.is-exc .vd-dot, .vd-scale li.is-exc::before { background: #2E8B57; }
.is-bue .vd-dot, .vd-scale li.is-bue::before { background: #3B7FC4; }
.is-reg .vd-dot, .vd-scale li.is-reg::before { background: #D9A021; }
.is-dif .vd-dot, .vd-scale li.is-dif::before { background: #D2691E; }
.is-no .vd-dot, .vd-scale li.is-no::before { background: #B3261E; }
.vd-head.is-no { border-color: #B3261E; }
.vd-nota { margin-top: 8px; font-size: 14.5px; }
.vd-veda-top { margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid #8A4A2E; background: color-mix(in srgb, #8A4A2E 10%, var(--surface)); }
.vd-veda-top strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; color: #8A4A2E; }
:root[data-theme="dark"] .vd-veda-top strong { color: #E7A07F; }
.vd-veda-top span { display: block; font-size: 14.5px; margin-top: 4px; line-height: 1.4; }
.vd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.vd-f { background: var(--bg); border-radius: var(--r-md); padding: 12px 10px; text-align: center; border: 1px solid var(--line); }
.vd-f .vd-ico { display: block; color: var(--link); margin-bottom: 4px; }
.vd-f .vd-ico svg { width: 22px; height: 22px; }
.vd-f strong { display: block; font-size: 14.5px; }
.vd-f span:last-child { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.vd-aviso { border-radius: var(--r-md); background: rgba(199,168,94,.18); border: 1px solid rgba(199,168,94,.5); padding: 12px 14px; margin: 4px 0 10px; }
.vd-aviso strong { display: block; color: var(--gold-deep); margin-bottom: 4px; }
:root[data-theme="dark"] .vd-aviso strong { color: var(--gold-soft); }
.vd-aviso span { font-size: 14px; line-height: 1.45; }
.vd-scale { list-style: none; display: grid; gap: 10px; margin: 6px 0 12px; }
.vd-scale li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; }
.vd-scale li::before { content: ''; grid-row: span 2; margin-top: 4px; }
.vd-scale li strong { font-size: 15.5px; }
.vd-scale li span { font-size: 14px; color: var(--muted); }
.vd-sub { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.vfb-list li.is-neu::before { background: var(--stone); }

/* Pantalla de seguridad */
.seg-acc { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.seg-acc summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; font-weight: 600; font-size: 17px; cursor: pointer; }
.seg-acc summary::-webkit-details-marker { display: none; }
.seg-acc summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.seg-acc[open] summary::after { transform: rotate(-135deg); }
.sa-ico { color: var(--link); display: grid; place-items: center; }
.sa-ico svg { width: 22px; height: 22px; }
.sa-body { padding: 0 16px 16px; font-size: 15.5px; line-height: 1.5; }
.emerg { margin-top: 18px; }
.emerg h2 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.emerg h2 svg { flex: none; }
.emerg-row { display: flex; align-items: center; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.emerg-row strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: #B3261E; min-width: 52px; }
.emerg-row span { flex: 1; font-size: 15px; }
.emerg-row .chev { width: 18px; height: 18px; color: var(--muted); }

/* Lote: compartir, resistencia de nudos, mapa de ríos, alertas con ícono */
.share-btn { margin-left: 0; }
.fav svg { width: 17px; height: 17px; }
.pill.res { background: rgba(62,107,74,.12); border-color: rgba(62,107,74,.35); color: #2F5A3A; }
:root[data-theme="dark"] .pill.res { color: #9FD0A8; }
.res-big { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin-bottom: 4px; }
.res-big small { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.chip-map { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--forest); color: var(--paper); border-color: var(--forest); }
:root[data-theme="dark"] .chip-map { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }
.rio-map-full { height: 62vh; min-height: 360px; }
.clima-alerta strong { display: flex; align-items: center; gap: 6px; }
.clima-alerta .ca-ico { flex: none; }

/* Reportes de pescadores */
.rep-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--surface); }
.rep-card h2 { font-size: 18px; margin-bottom: 8px; }
.rep-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.rep-vacio { font-size: 15.5px; margin-bottom: 12px; }
.rep-fila { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rep-fila span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rep-fila strong { font-size: 17px; }
.rep-fila small { font-size: 12.5px; color: var(--muted); }
.rep-btn { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.rep-btn small { font-weight: 600; opacity: .8; }
.rep-pts { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rep-pts svg { color: var(--gold); }
/* aviso de reporte reciente */
.rep-alert { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-md); background: #2F5A3A; color: #fff; text-decoration: none; }
.rep-alert strong { display: block; font-size: 15px; }
.rep-alert small { display: block; font-size: 13px; opacity: .9; }
.rep-alert .chev { width: 18px; height: 18px; margin-left: auto; flex: none; }
.rep-pulse, .has-rep::after { width: 10px; height: 10px; border-radius: 50%; background: #7CFC9A; box-shadow: 0 0 0 0 rgba(124,252,154,.7); animation: repPulse 1.8s infinite; flex: none; }
@keyframes repPulse { 0% { box-shadow: 0 0 0 0 rgba(124,252,154,.7); } 70% { box-shadow: 0 0 0 9px rgba(124,252,154,0); } 100% { box-shadow: 0 0 0 0 rgba(124,252,154,0); } }
.has-rep { position: relative; }
.has-rep::after { content: ''; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; background: #2E8B57; }
/* hoja para reportar */
.rep-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9000; }
.rep-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001; background: var(--bg); color: var(--fg); border-radius: 20px 20px 0 0; padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.rep-sheet h2 { font-size: 22px; margin: 0 0 4px; }
.rs-close { float: right; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); padding: 0 4px; }
.rs-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.rs-q { font-weight: 700; font-size: 15px; margin: 14px 0 8px; }
.rs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-row button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px; }
.rs-row button[aria-pressed="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
:root[data-theme="dark"] .rs-row button[aria-pressed="true"] { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }
.rs-modo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-modo button { min-height: 96px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.rs-modo svg { width: 28px; height: 28px; color: var(--link); }
.rs-send { width: 100%; margin-top: 18px; }
.rs-send:disabled { opacity: .5; }

/* Interruptores de funciones: oculta los enlaces a lo que está apagado */
.sin-mapa a[href="#/rio/mapa"],
.sin-insectos a[href^="#/insectos"],
.sin-insectos .imita-links,
.sin-leer-rio a[href="#/leer-rio"],
.sin-reportes .has-rep::after { display: none !important; }

/* ---------- Foto de la captura ---------- */
.cap-start { display: grid; gap: 12px; margin-top: 8px; }
.cap-shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 190px; border-radius: var(--r-lg); background: var(--accent); color: var(--on-accent); cursor: pointer; text-align: center; }
.cap-shot svg { width: 56px; height: 56px; stroke-width: 1.6; }
.cap-shot strong { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.cap-shot span { font-size: 14px; opacity: .8; }
.cap-alt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 600; cursor: pointer; }
.cap-alt svg { width: 20px; height: 20px; }
.cap-tip { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 2px; }
.cap-tip svg { flex: none; margin-top: 1px; }
.cap-foto img, .cap-card img { display: block; width: 100%; border-radius: var(--r-lg); max-height: 60vh; object-fit: cover; }
.cap-card img { max-height: none; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.cap-ia:empty { display: none; }
.cap-ia { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); font-size: 15px; }
.cap-ia p { margin: 0; }
.cap-ia svg { display: inline-block; vertical-align: -4px; margin-right: 6px; }
.cap-ia small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.cap-chips .chip.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cap-largo { display: flex; align-items: center; gap: 14px; }
.cap-largo input { flex: 1; accent-color: var(--gold); height: 32px; }
.cap-largo output { font-family: var(--font-display); font-size: 26px; min-width: 84px; text-align: right; }
.cap-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.cap-calc div { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.cap-calc span { display: block; font-size: 12.5px; color: var(--muted); }
.cap-calc strong { font-size: 19px; }
.cap-rio { display: flex; align-items: center; gap: 8px; }
.cap-rio select { flex: 1; min-height: 46px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); padding: 0 12px; font: inherit; }
.cap-check { display: flex; align-items: center; gap: 10px; margin: 18px 2px 4px; font-weight: 600; }
.cap-check input { width: 20px; height: 20px; accent-color: var(--gold); }
.btn.cap-go { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.cap-go svg { width: 20px; height: 20px; }
.btn.cap-go[disabled] { opacity: .45; }
.cap-card + .btn.cap-go { margin-top: 18px; }
.cap-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cap-rec { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cap-rec li { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.cap-rec span { font-size: 13px; color: var(--muted); }
.cap-rec strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.cap-list { list-style: none; display: grid; gap: 10px; }
.cap-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.cap-list img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.cap-list div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cap-list span { font-size: 14px; }
.cap-list small { font-size: 12.5px; color: var(--muted); }
.cap-list .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.cap-list .icon-btn svg { width: 18px; height: 18px; }
/* Protagonismo en modo Pesca: tarjeta grande en el inicio y botón flotante sobre la barra */
.cap-hero { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--gold-soft); color: var(--ink); text-decoration: none; box-shadow: 0 4px 16px rgba(126,101,47,.28); }
.cap-hero-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; flex: none; }
.cap-hero-ico svg { width: 32px; height: 32px; }
.cap-hero strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.1; }
.cap-hero small { font-size: 14px; opacity: .8; }
.cap-fab { position: fixed; z-index: 21; right: max(16px, calc(50% - var(--col) / 2 + 16px)); bottom: calc(var(--nav-h) + var(--safe-b) + 16px); width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.cap-fab svg { width: 30px; height: 30px; }
.cap-fab:active { transform: scale(.94); }
.btn-link { display: block; width: 100%; background: none; border: 0; padding: 12px 0; text-align: center; color: var(--link); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.cap-links .btn-link { width: auto; }

/* ---------- Alertas de condiciones: peligro (rojo) y aviso (dorado) ---------- */
.clima-alerta.is-peligro { background: #8A2E2E; color: #fff; }
.clima-alerta.is-peligro.is-lluvia, .clima-alerta.is-peligro.is-caudal { background: #2E5B8A; }
.clima-alerta.is-aviso { background: var(--surface); color: var(--fg); border: 1.5px solid var(--gold); border-left-width: 5px; }
.clima-alerta.is-aviso .ca-ico { color: var(--gold); }
.clima-alerta.is-aviso span { color: var(--fg); opacity: .85; }
.seguir-btn { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.seguir-btn.is-on { border-color: var(--gold); color: var(--gold-deep, var(--gold)); }

/* ---------- Barra superior: campana y perfil ---------- */
.top-actions { align-items: center; }
.top-actions .icon-btn { width: 44px; height: 44px; }
.bell-btn { position: relative; text-decoration: none; }
.bell-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--ink); font: 700 11px/18px Inter, system-ui, sans-serif; text-align: center; }
.bell-badge.is-peligro { background: #B23A3A; color: #fff; }
.perfil-btn { text-decoration: none; }
.avatar-mini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--forest, #1F3A2E); color: var(--gold-soft); font: 600 15px/1 var(--font-display); }

/* ---------- Avisos ---------- */
.avisos { list-style: none; display: grid; gap: 8px; }
.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); color: var(--fg); text-decoration: none; position: relative; }
.av-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--forest, #1F3A2E); color: var(--gold-soft); }
.av-ico svg { width: 19px; height: 19px; }
.av-txt { display: flex; flex-direction: column; min-width: 0; }
.av-txt small { font-size: 12px; color: var(--muted); }
.av-txt span { font-size: 14px; color: var(--muted); }
.av-nuevo { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ---------- Mi perfil ---------- */
.perfil-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--forest, #1F3A2E); color: var(--gold-soft); font: 500 32px/1 var(--font-display); }
.avatar svg { width: 34px; height: 34px; }
.ph-txt { flex: 1; min-width: 0; }
.ph-txt h1 { font-size: 26px; line-height: 1.15; }
.ph-txt p { margin: 2px 0 6px; font-size: 14.5px; }
.ph-txt small { font-size: 12.5px; color: var(--muted); }
.lvl-bar, .des-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 4px; }
.lvl-bar span, .des-bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; transition: width .4s ease; }
.nombre-cta { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; margin-top: 6px; border-radius: var(--r-md); border: 1.5px dashed var(--gold); background: none; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.desafio { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--gold); }
.desafio.is-ok { border-color: var(--line); }
.desafio p { font-size: 14.5px; margin: 8px 0 12px; }
.des-head { display: flex; align-items: center; gap: 12px; }
.des-head small { display: block; font-size: 12.5px; color: var(--muted); }
.des-head strong { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.15; }
.des-ico { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--ink); }
.des-ico svg { width: 22px; height: 22px; }
.desafio.is-ok .des-ico { background: var(--forest, #1F3A2E); color: var(--gold-soft); }
.des-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.des-foot .soft-link { margin: 0; min-height: 0; }
.des-mini { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--gold); color: var(--fg); text-decoration: none; }
.des-mini > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.des-mini small { font-size: 12.5px; color: var(--muted); }
.des-mini strong { font-size: 16px; }
.des-mini .des-ico { width: 38px; height: 38px; }
.des-mini.is-ok { border-color: var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.stats a { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); color: var(--fg); text-decoration: none; }
.stats strong { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; }
.stats strong small { font-size: 15px; color: var(--muted); }
.stats span { font-size: 13px; color: var(--muted); }
.especies { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.especies li > a, .especies li > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-md); border: 1.5px dashed var(--line); color: var(--muted); text-decoration: none; height: 100%; }
.especies li.is-on > a { border-style: solid; border-color: var(--gold); background: var(--surface); color: var(--fg); }
.esp-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--line); }
.especies li.is-on .esp-ico { background: var(--gold-soft); color: var(--ink); }
.esp-ico svg { width: 20px; height: 20px; }
.especies strong { font-size: 13px; line-height: 1.2; }
.especies small { font-size: 11.5px; }
.card-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); color: var(--fg); text-decoration: none; margin-top: 10px; }
.rr-ico { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--forest, #1F3A2E); color: var(--gold-soft); }
.rr-ico svg { width: 20px; height: 20px; }
.chips-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-links a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 600; }
.mont-list { list-style: none; display: grid; gap: 8px; }
.mont-list li { display: flex; align-items: center; gap: 6px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.mont-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; background: none; border: 0; color: var(--fg); font: inherit; cursor: pointer; }
.mont-open span { font-size: 13.5px; color: var(--muted); }
.mont-open small { font-size: 12.5px; color: var(--muted); }
.mont-list .icon-btn { color: var(--muted); }
.mont-list .icon-btn svg { width: 18px; height: 18px; }
.toggles { list-style: none; display: grid; gap: 2px; margin: 10px 0 6px; }
.toggles label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; font-weight: 600; font-size: 15px; }
.sw { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw:checked { background: var(--gold); }
.sw:checked::after { transform: translateX(18px); }
.sw:disabled { opacity: .6; }
.ajustes { list-style: none; display: grid; gap: 8px; }
.aj-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.aj-row span { display: grid; place-items: center; }
.aj-row svg { width: 20px; height: 20px; }
.admin-ia { padding: 12px 14px; border-radius: var(--r-md); border: 1.5px dashed var(--line); }
.admin-ia summary { font-weight: 600; cursor: pointer; }
.atada-btn { margin-top: 12px; }

/* ---------- Bitácora ---------- */
.bit-map { height: 320px; border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line); margin-bottom: 4px; background: var(--surface); }
.bit-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #C7A85E; border: 2px solid #12201A; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.bit-pin span { font: 700 13px/1 Inter, system-ui, sans-serif; color: #12201A; }
.cap-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--fg); text-decoration: none; }
.cap-list .cap-link div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bit-dl { display: grid; gap: 0; margin: 10px 0 16px; }
.bit-dl .kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bit-dl dt { color: var(--muted); font-size: 14px; flex: none; }
.bit-dl dd { text-align: right; font-weight: 600; font-size: 14.5px; }
.cap-field { display: grid; gap: 4px; margin-bottom: 10px; }
.cap-field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.cap-field select, .cap-field textarea { width: 100%; min-height: 46px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); padding: 10px 12px; font: inherit; }
.cap-field textarea { resize: vertical; }
.chips.chips-wrap { flex-wrap: wrap; overflow: visible; }
.clima-alerta .ca-fuente { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.clima-alerta .ca-fuente a { color: inherit; text-decoration: underline; }
/* Términos y condiciones: aceptación al primer uso */
.terms-gate { position: fixed; inset: 0; z-index: 9000; background: rgba(10, 18, 14, .55); display: grid; place-items: end center; padding: 16px; padding-bottom: calc(16px + var(--safe-b, 0px)); }
.terms-card { width: 100%; max-width: 480px; background: var(--bg); color: var(--fg); border-radius: 18px; padding: 20px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.terms-card h2 { margin: 0 0 8px; }
.terms-card p { margin: 0 0 10px; }
.terms-card .btn { width: 100%; margin-top: 6px; }
a.aj-row { text-decoration: none; color: inherit; }
/* Nuestra lectura del río: escalera de salidas, confianza y fuentes */
.is-buen .vd-dot, .vd-scale li.is-buen::before { background: #2E8B57; }
.is-var .vd-dot, .vd-scale li.is-var::before { background: #D9A021; }
.is-lim .vd-dot, .vd-scale li.is-lim::before { background: #D2691E; }
.is-rev .vd-dot, .vd-scale li.is-rev::before { background: #7d8a83; }
.vd-head.is-lim { border-color: #D2691E; }
.vd-head.is-rev { border-style: dashed; }
.vd-basado { margin: 10px 0; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.vd-basado p { margin: 0 0 6px; }
.vd-basado ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
.conf-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line); color: var(--fg); }
.conf-pill.is-alta { background: #2E8B57; color: #fff; }
.conf-pill.is-media { background: #D9A021; color: #1b1b1b; }
.rq-edad { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* ---------- Inicio: bloque de Notificaciones ---------- */
.home-notif { margin-top: 14px; display: grid; gap: 8px; }
.hn-title { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.home-notif .temp-strip, .home-notif .novedad { margin: 0; }
.home-alerts { display: grid; gap: 8px; }
.home-alerts:empty { display: none; }
.home-alerts .soft-link { font-size: 14px; }
.clima-alerta { position: relative; }
.clima-alerta.is-compacto { padding: 10px 40px 10px 12px; }
.clima-alerta.is-compacto strong { font-size: 14.5px; }
.clima-alerta.is-compacto > span { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ca-cerrar { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.ca-veda { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.taller-mini { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-size: 14px; }
.taller-mini span { flex: 1; min-width: 0; }
.taller-mini svg:first-child { color: var(--gold-deep, var(--accent)); flex: none; }
.quick-rep { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; min-height: 44px; border-radius: var(--r-md); border: 1.5px dashed var(--line); background: transparent; color: var(--fg); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
/* Desafío compacto con barra de avance que cambia de color */
.des-mini { padding: 8px 12px; gap: 10px; margin-top: 10px; border-width: 1px; }
.des-mini .des-ico { width: 30px; height: 30px; }
.dm-txt { flex: 1; min-width: 0; display: grid; gap: 5px; }
.dm-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dm-bar span { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: hsl(calc(38 + var(--p) * 1.0), 62%, 45%); transition: width .4s; }
.des-mini > small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.des-mini.is-ok .dm-bar span { background: #2E8B57; }
/* Difuminado sobre el menú inferior */
.bottom-fade { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); height: 44px; pointer-events: none; z-index: 15;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent); mask-image: linear-gradient(to top, #000 15%, transparent);
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 70%, transparent), transparent); transition: opacity .25s; }
.bottom-fade.is-off { opacity: 0; }
body.stepmode .bottom-fade { display: none; }
.home-alerts .clima-alerta { margin: 0; }
/* Elegir qué datos van en la imagen de la captura */
.cap-show .chip.chk { position: relative; cursor: pointer; }
.cap-show .chip.chk input { position: absolute; opacity: 0; pointer-events: none; }
.cap-show .chip.chk.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* Pronóstico de 7 días */
.semana { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0; }
.semana > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.semana > summary::-webkit-details-marker { display: none; }
.semana > summary span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.semana > summary small { color: var(--muted); font-size: 13px; }
.semana[open] > summary { border-bottom: 1px solid var(--line); }
#semanabody { padding: 12px 16px 14px; }
.sem-res { margin: 0 0 10px; font-size: 14.5px; }
.sem-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.sem-list li { display: grid; grid-template-columns: 44px 26px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); border-left: 4px solid #2E8B57; }
.sem-list li.is-prec { border-left-color: #D9A021; }
.sem-list li.is-no { border-left-color: #B3261E; }
.sem-dia { display: grid; line-height: 1.1; }
.sem-dia small { color: var(--muted); }
.sem-ico { color: var(--link); }
.sem-dat { display: grid; font-size: 13.5px; }
.sem-dat small { color: var(--muted); font-size: 12.5px; }
/* Glosario */
a.gl { color: var(--link); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.glos { display: grid; gap: 10px; margin: 0; }
.glos-it { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 90px; }
.glos-it.is-sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.glos-it dt { font-weight: 700; }
.glos-it dt small { font-weight: 500; color: var(--muted); }
.glos-it dd { margin: 4px 0 0; font-size: 14.5px; }
/* ---------- Licencia de pesca ---------- */
.lic-card { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--r-md); text-decoration: none; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); }
.lic-card .lic-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #7d8a83; }
.lic-card.is-ok .lic-ico { background: #2E8B57; } .lic-card.is-ok { border-color: #2E8B57; }
.lic-card.is-pronto .lic-ico { background: #D9A021; } .lic-card.is-pronto { border-color: #D9A021; }
.lic-card.is-vencida .lic-ico { background: #B3261E; } .lic-card.is-vencida { border-color: #B3261E; }
.lic-card.is-falta { border-style: dashed; border-color: var(--gold); background: rgba(199,168,94,.12); }
.lic-card.is-falta .lic-ico { background: var(--gold-deep, #8a6d2b); }
.lic-txt { flex: 1; min-width: 0; display: grid; }
.lic-txt strong { font-size: 15.5px; } .lic-txt small { font-size: 13px; color: var(--muted); }
.lic-subir { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1.5px dashed var(--line); background: var(--surface); cursor: pointer; margin-bottom: 8px; }
.lic-subir span { display: grid; } .lic-subir small { color: var(--muted); font-size: 13px; }
.lic-form { display: grid; gap: 10px; margin-top: 10px; }
.lic-form input { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.carne { position: relative; border-radius: 20px; padding: 18px; color: #F1EAD9; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(199,168,94,.35), transparent 55%), linear-gradient(150deg, #1E3229 0%, #12201A 60%, #2a3d2f 100%);
  box-shadow: 0 14px 30px rgba(18,32,26,.35); }
.carne::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px); pointer-events: none; }
.carne-top { display: flex; justify-content: space-between; align-items: center; }
.carne-logo { height: 30px; width: auto; }
.carne-est { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #2E8B57; color: #fff; }
.carne.is-pronto .carne-est { background: #D9A021; color: #1b1b1b; } .carne.is-vencida .carne-est { background: #B3261E; }
.carne-mid { display: flex; gap: 14px; align-items: center; margin: 16px 0 14px; position: relative; z-index: 1; }
.carne-foto { width: 78px; height: 78px; border-radius: 14px; object-fit: cover; border: 2px solid #C7A85E; flex: none; }
.carne-ini { display: grid; place-items: center; font: 500 34px var(--font-display); background: rgba(241,234,217,.1); }
.carne-datos { display: grid; gap: 1px; min-width: 0; }
.carne-datos small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #C7A85E; }
.carne-datos strong { font: 500 21px/1.15 var(--font-display); }
.carne-datos span { font-size: 14px; color: rgba(241,234,217,.85); }
.carne-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; position: relative; z-index: 1; }
.carne-bot small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #C7A85E; }
.carne-bot strong { font-size: 15px; }
.carne-qr { width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 4px; flex: none; }
.carne-qr svg { width: 100%; height: 100%; display: block; }
.carne-pie { margin: 12px 0 0; font-size: 11.5px; color: rgba(241,234,217,.7); position: relative; z-index: 1; }
.lic-estado { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.lic-estado.is-ok svg { color: #2E8B57; } .lic-estado.is-pronto svg { color: #D9A021; } .lic-estado.is-vencida svg { color: #B3261E; }
.avatar img, img.avatar-mini { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* Progreso del tester (beta) */
.tester-card { display: grid; gap: 6px; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-md); border: 1.5px solid var(--gold); background: var(--surface); color: var(--fg); text-decoration: none; }
.tester-card .tc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.tester-card .tc-top span { font-weight: 700; color: var(--muted); }
.tester-card small { font-size: 12.5px; color: var(--muted); }
.tester-card.is-leyenda { border-color: #2E8B57; }
.tester-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.tester-list a { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 14.5px; }
.tester-list .tl-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); }
.tester-list li.is-ok .tl-ico { background: #2E8B57; color: #fff; }
.tester-list li.is-ok span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.tester-list small { color: var(--muted); font-weight: 700; }
/* Historia del caudal (CAMELS-CL) */
.hist-tipo { margin: 0 0 8px; font-size: 14.5px; }
.hist-svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.hist-svg .hb-band { fill: color-mix(in srgb, var(--link) 30%, transparent); }
.hist-svg .hb-med { fill: var(--link); }
.hist-svg .is-hoy .hb-band { fill: color-mix(in srgb, var(--gold) 55%, transparent); }
.hist-svg .is-hoy .hb-med { fill: var(--gold-deep, #8a6d2b); }
.hist-svg text { font: 600 10px var(--font-body); fill: var(--muted); }
.hist-svg .is-hoy text { fill: var(--fg); }
.hist-ley { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hist-ley span { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.hist-ley .hl-band { background: color-mix(in srgb, var(--link) 30%, transparent); }
.hist-ley .hl-med { height: 3px; background: var(--link); }
.hist-datos { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; }
/* Terreno vs. estimación */
.contraste { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--surface); }
.contraste.is-difiere { border-color: #D9A021; }
.contraste h2 { font-size: 18px; margin-bottom: 8px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.cmp th, .cmp td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.cmp tr.is-ok td:last-child { color: #2E8B57; } .cmp tr.is-parcial td:last-child { color: #D9A021; } .cmp tr.is-difiere td:last-child { color: #B3261E; }
.cmp-log td small { display: block; color: var(--muted); font-size: 12px; }
.cmp-log td.is-ok { background: color-mix(in srgb, #2E8B57 10%, transparent); }
.cmp-log td.is-parcial { background: color-mix(in srgb, #D9A021 12%, transparent); }
.cmp-log td.is-difiere { background: color-mix(in srgb, #B3261E 10%, transparent); }
/* Caudal en vivo */
.sp-svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.sp-svg .sp-band { fill: color-mix(in srgb, #2E8B57 16%, transparent); }
.sp-svg .sp-line { fill: none; stroke: var(--link); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.sp-svg .sp-dot { fill: var(--link); }
.sp-svg text { font: 600 9.5px var(--font-body); fill: currentColor; opacity: .7; }
.sp-ley { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
.sp-ley span { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: color-mix(in srgb, #2E8B57 30%, transparent); }
.dga-alerta { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.dga-alerta.is-n1 { background: #1F6FD1; color: #fff; } .dga-alerta.is-n2 { background: #D9A021; color: #1b1b1b; } .dga-alerta.is-n3 { background: #B3261E; color: #fff; }
.rh-overlay .sp-ley { color: rgba(241,234,217,.85); }
.rh-overlay .sp-svg .sp-band { fill: rgba(241,234,217,.16); }
.rh-overlay .sp-ley span { background: rgba(241,234,217,.3); }
.rs-mas { margin: 10px 0 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.rs-mas summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.rs-mas summary small { font-weight: 400; color: var(--muted); }

/* --- Alertas en el inicio: solo las rojas completas; el resto en una línea expandible --- */
.alertas-mini { display: grid; gap: 6px; margin: 10px 0; }
.alerta-mini { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-md); font-size: 14px; }
.alerta-mini.is-peligro { border-left-color: #8A2E2E; }
.alerta-mini.is-lluvia, .alerta-mini.is-caudal { border-left-color: #2E5B8A; }
.alerta-mini summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; list-style: none; min-height: 44px; }
.alerta-mini summary::-webkit-details-marker { display: none; }
.alerta-mini .am-ico { flex: none; color: var(--gold); }
.alerta-mini.is-peligro .am-ico { color: #8A2E2E; }
.alerta-mini .am-t { flex: 1; font-weight: 600; line-height: 1.3; }
.alerta-mini .am-t small { font-weight: 400; color: var(--muted); }
.alerta-mini .am-mas { flex: none; font-size: 12.5px; font-weight: 600; color: var(--forest); white-space: nowrap; }
:root[data-theme="dark"] .alerta-mini .am-mas { color: var(--gold-soft); }
.alerta-mini[open] .am-mas { visibility: hidden; }
.alerta-mini .am-body { padding: 0 12px 10px 36px; color: var(--muted); line-height: 1.45; }
.alerta-mini .am-body small { display: block; margin-top: 6px; }
.rq-origen { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--forest); }
:root[data-theme="dark"] .rq-origen { color: var(--gold-soft); }

/* --- Antes de salir: tarjetas con vista previa difuminada --- */
.sal-grid { display: grid; gap: 12px; margin-top: 8px; }
.sal-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); overflow: hidden; scroll-margin-top: 70px; }
.sal-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 4px; background: none; border: 0; text-align: left; color: var(--fg); font: inherit; cursor: pointer; }
.sal-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: var(--gold-soft, #E9D9A6); }
.sal-ico svg { width: 22px; height: 22px; }
.sal-t { flex: 1; font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.sal-chev { width: 18px; height: 18px; flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
.sal-card.is-open .sal-chev { transform: rotate(-90deg); }
.sal-body { padding: 2px 16px 0 66px; max-height: 48px; overflow: hidden; color: var(--muted); font-size: 15px; line-height: 1.5;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.sal-card.is-open .sal-body { max-height: none; -webkit-mask-image: none; mask-image: none; color: var(--fg); padding-bottom: 4px; }
.sal-body p { margin: 0 0 8px; }
.sal-body .qlist { margin: 0; padding-left: 18px; }
.sal-body .qlist li { margin-bottom: 8px; }
.sal-body .checks { margin-top: 4px; }
.sal-fuente { display: inline-block; margin-top: 2px; font-size: 14px; font-weight: 600; }
.sal-cta { display: none; align-items: center; gap: 6px; margin: 8px 16px 0 66px; padding: 8px 14px; min-height: 40px; border-radius: 999px; background: var(--forest); color: #F1EAD9; font-size: 14px; font-weight: 600; text-decoration: none; }
:root[data-theme="dark"] .sal-cta { background: var(--gold); color: #12201A; }
.sal-card.is-open .sal-cta, #sal-licencia .sal-cta { display: inline-flex; }
#sal-licencia .sal-cta { margin-top: 8px; }
.sal-mas { display: block; width: 100%; padding: 4px 16px 8px 66px; background: none; border: 0; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--forest); cursor: pointer; min-height: 44px; }
:root[data-theme="dark"] .sal-mas { color: var(--gold-soft); }
.sal-mas .sal-cerrar { display: none; }
.sal-card.is-open .sal-mas .sal-ver { display: none; }
.sal-card.is-open .sal-mas .sal-cerrar { display: inline; }
.sal-card.is-open { border-color: var(--gold); box-shadow: 0 6px 20px rgba(18, 32, 26, .08); }
@media (max-width: 380px) { .sal-body, .sal-mas { padding-left: 16px; } .sal-cta { margin-left: 16px; } }

/* ---------- Pasada de usabilidad (guías de Apple HIG): toques de 44 px, hojas, selector compacto, listas ---------- */
.brand { min-height: 44px; }
.temp-strip button, .novedad button { width: 44px; height: 44px; margin: -6px -2px -6px 0; }
.temp-strip a { min-height: 44px; }
.seguir-btn { min-height: 44px; }
.soft-link { display: inline-flex; align-items: center; min-height: 44px; }
main details > summary { min-height: 44px; }
main details:not(.seg-acc) > summary { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; }
.pill, .chip small, .chip-soon small, .ficha-i span, .tag, .foto-pronto, .imita-links span, .especies small, .carne-datos small, .carne-bot small, .carne-pie { font-size: 12px; }
a.gl { padding: 12px 0; }
#perfilBtn[aria-current="page"] { color: var(--accent); }
.rs-close { width: 44px; height: 44px; margin: -8px -8px 0 0; font-size: 30px; }

/* Hojas inferiores: agarrador y deslizar para cerrar */
.sheet-grab { display: block; width: 100%; height: 28px; margin: -14px 0 2px; background: none; border: 0; cursor: grab; touch-action: none; position: relative; }
.sheet-grab::after { content: ''; position: absolute; left: 50%; top: 10px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
.rep-sheet, .beta-sheet { overscroll-behavior: contain; }
.rep-sheet.is-drag { transition: none; }
.rep-sheet.is-snap { transition: transform .22s ease; }

/* Selector vadeo / flotada: compacto y deslizable */
.vf-select { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vf-label { margin: 0; font-size: 15px; }
.vf-buttons { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border-radius: 999px; background: var(--line); touch-action: pan-y; }
.vf-buttons::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--forest); transition: transform .25s ease; transform: translateX(0); }
.vf-buttons[data-modo="flotada"]::before { transform: translateX(100%); }
:root[data-theme="dark"] .vf-buttons::before { background: var(--gold-soft); }
.vf-btn { position: relative; z-index: 1; min-height: 38px; padding: 0 14px; border: 0; background: transparent; border-radius: 999px; font-size: 14px; gap: 6px; transition: color .25s ease; }
.vf-btn[aria-pressed="true"], :root[data-theme="dark"] .vf-btn[aria-pressed="true"] { background: transparent; border: 0; }
.vf-btn[aria-pressed="true"] { color: #F1EAD9; }
:root[data-theme="dark"] .vf-btn[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 360px) { .vf-label { font-size: 14px; } .vf-btn { padding: 0 10px; } }

/* Fase 2: listas compactas (moscas) y acordeones del río */
.grid.lista { grid-template-columns: 1fr; gap: 8px; }
.grid.lista .tile { display: flex; align-items: center; min-height: 72px; }
.grid.lista .tile .art { flex: none; width: 84px; aspect-ratio: auto; align-self: stretch; }
.grid.lista .tile .art svg { width: 70%; }
.grid.lista .tile .info { padding: 8px 12px; min-width: 0; }
.grid.lista .tile .info .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Fase 3: Biblioteca */
.bib-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bib-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--fg); text-decoration: none; }
.bib-list a:active { background: var(--line); }
.bib-list .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); }
.bib-list .ico svg { width: 22px; height: 22px; }
.bib-list strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.bib-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; }
.bib-list a::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; }

.acc-body { padding: 14px 16px 16px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 2px; color: var(--link); font-weight: 600; font-size: 16px; text-decoration: none; }
#modeBtn { min-height: 44px; }
.vf-btn { min-height: 44px; }
.vf-buttons { padding: 2px; }
.vf-buttons::before { top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); }
.seg button { min-height: 40px; }
.footer-note a, .letra-chica a, .alertas-of a { display: inline-block; padding: 14px 0; }
.ca-fuente a { display: inline-block; padding: 14px 0; }
.tramo-seg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* ---------- Condiciones del río: nombre destacado, píldora flotante, tramo compacto ---------- */
.rio-head .eyebrow { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rio-head h1 { font-size: 34px; line-height: 1.1; }
.rio-pill { position: fixed; z-index: 19; left: 50%; top: calc(var(--safe-t) + var(--top-h) + 8px); transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 32px); min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--forest); color: var(--paper); font: 600 14px/1 var(--font-body, inherit); box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; }
.rio-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rio-pill.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
:root[data-theme="dark"] .rio-pill { background: var(--gold-soft); color: #1a1a1a; }
.tramo-pill { position: relative; display: flex; width: max-content; max-width: 100%; margin-top: 12px; padding: 2px; border-radius: 999px; background: var(--line); }
.tramo-pill::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n)); border-radius: 999px; background: var(--forest); transition: transform .25s ease; transform: translateX(calc(var(--i) * 100%)); }
:root[data-theme="dark"] .tramo-pill::before { background: var(--gold-soft); }
.tramo-pill button { position: relative; flex: 1 0 auto; min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--fg); background: transparent; white-space: nowrap; }
.tramo-pill button[aria-pressed="true"] { color: var(--paper); }
:root[data-theme="dark"] .tramo-pill button[aria-pressed="true"] { color: #1a1a1a; }
button.cond-item, button.vd-f { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
button.vd-f { background: var(--bg); border: 1px solid var(--line); padding: 12px 10px; text-align: center; }
.semana, #reportes, #vfbeta { scroll-margin-top: calc(var(--safe-t) + var(--top-h) + 52px); }

.clima-alerta.is-salto { cursor: pointer; }
.clima-aviso { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; margin-bottom: 10px; border-radius: var(--r-md); border: 1.5px solid var(--gold-deep); background: var(--surface); color: var(--fg); font: 600 14px/1.2 inherit; text-align: left; cursor: pointer; }
.acc-badge { color: var(--gold-deep); font-weight: 700; }

.am-wrap, .taller-wrap { position: relative; }
.am-wrap .ca-cerrar, .taller-wrap .ca-cerrar { position: absolute; top: 4px; right: 4px; }
.am-wrap .am-mas { margin-right: 36px; }
.taller-wrap .taller-mini { padding-right: 44px; }

.lic-card.is-compact { padding: 6px 8px 6px 10px; gap: 10px; margin: 8px 0 2px; min-height: 44px; }
.lic-card.is-compact .lic-ico { width: 28px; height: 28px; }
.lic-card.is-compact .lic-txt strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lic-go { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--forest); color: var(--paper); font-weight: 600; font-size: 13.5px; }
:root[data-theme="dark"] .lic-go { background: var(--gold-soft); color: #1a1a1a; }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit .av-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.avatar-edit .av-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #1a1a1a; border: 2px solid var(--bg); }
.avatar-edit .av-cam svg { width: 13px; height: 13px; }
.perfil-head .icon-btn { flex: none; }

/* ---------- Barra superior: iconos parejos y agrupados ---------- */
.top-actions { gap: 0; align-items: center; margin-right: -4px; }
.top-actions .icon-btn { width: 40px; height: 44px; }
.top-actions #modeBtn { margin: 0 6px; height: 34px; min-height: 34px; }
.top-actions #soundBtn { margin-left: 8px; }

/* Estimación de pesca (v67) */
.vt-box{margin:14px 0 6px}
.vt-res{margin:6px 0 10px;font-size:1rem}
.vt-cards{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.vt-card{flex:0 0 104px;scroll-snap-align:center;position:relative;display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 10px 9px;border-radius:14px;border:1.5px solid var(--line,#d8dfe3);background:var(--card,#fff);color:inherit;font:inherit;cursor:pointer}
.vt-card strong{font-size:.92rem}.vt-card small{font-size:.72rem;opacity:.75}
.vt-nv{font-weight:700;font-size:.85rem}.vt-temp{font-size:1.05rem;font-weight:600}
.vt-card.is-sel{outline:2.5px solid var(--accent,#1f6f5c);outline-offset:1px}
.vt-card.is-best{padding-top:22px}
.vt-best{position:absolute;top:4px;left:8px;font-size:.68rem;font-weight:700;color:#a86a00}
.vt-card.is-exc{border-color:#2e9e5b;background:rgba(46,158,91,.12)}.vt-card.is-exc .vt-nv{color:#1d7a43}
.vt-card.is-buena{border-color:#8bb83a;background:rgba(139,184,58,.12)}.vt-card.is-buena .vt-nv{color:#5c8a14}
.vt-card.is-reg{border-color:#d9a400;background:rgba(217,164,0,.1)}.vt-card.is-reg .vt-nv{color:#9a7400}
.vt-card.is-dif{border-color:#c4553b;background:rgba(196,85,59,.09)}.vt-card.is-dif .vt-nv{color:#b03f26}
.vt-card.is-fin{opacity:.55}
.vt-strip{display:flex;align-items:flex-end;gap:3px;height:92px;margin:8px 0 6px;padding:4px 2px 0}
.vt-h{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;position:relative;border-radius:5px}
.vt-h i{display:block;border-radius:4px 4px 2px 2px;background:#bbb;opacity:.55}
.vt-h small{font-size:.62rem;text-align:center;min-height:12px;opacity:.7}
.vt-h.is-exc i{background:#2e9e5b}.vt-h.is-buena i{background:#8bb83a}.vt-h.is-reg i{background:#d9a400}.vt-h.is-dif i{background:#c4553b}
.vt-h.in{background:rgba(31,111,92,.14);box-shadow:0 0 0 1.5px var(--accent,#1f6f5c)}.vt-h.in i{opacity:1}
.vt-win{margin:6px 0}
.vd-detalle{margin-top:12px;border:1px solid var(--line,#d8dfe3);border-radius:14px;padding:0 12px 10px}
.vd-detalle>summary{cursor:pointer;font-weight:700;padding:12px 0;list-style:none}
.vd-detalle>summary::after{content:"▾";float:right}.vd-detalle[open]>summary::after{content:"▴"}
.vd-detalle>summary::-webkit-details-marker{display:none}

/* v70: aviso remoto, modo administrador, agua en la estimación */
.aviso-remoto{display:flex;gap:10px;align-items:center;margin:10px 0 4px;padding:12px 14px;border-radius:14px;background:var(--surface,#fff);border:1.5px solid var(--line,#d8dfe3);font-weight:600}
.aviso-remoto p{margin:0;flex:1}
.aviso-remoto button[data-aviso-cerrar]{border:0;background:none;color:inherit;padding:6px;cursor:pointer}
.aviso-remoto.is-aviso{border-color:#d9a400;background:rgba(217,164,0,.12)}
.aviso-remoto.is-peligro{border-color:#c4553b;background:rgba(196,85,59,.12)}
.vt-agua{color:#2a6f97;font-weight:600}
.adm .adm-kv{list-style:none;padding:0;margin:0 0 10px}
.adm .adm-kv li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line,#d8dfe3)}
.adm-form{display:grid;gap:12px}
.adm-form fieldset{border:1px solid var(--line,#d8dfe3);border-radius:12px;padding:10px 12px}
.adm-form legend{font-weight:700;padding:0 4px}
.adm-form input[type=password],.adm-form input:not([type]),.adm-form textarea,.adm select,.adm-inputs input{width:100%;padding:10px;border-radius:10px;border:1px solid var(--line,#d8dfe3);background:var(--bg,#fff);color:inherit;font:inherit;box-sizing:border-box}
.adm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px}
.adm-inputs label{display:grid;gap:4px;font-size:.85rem}
.adm-check{display:flex;gap:8px;align-items:center;margin:6px 0}
.adm-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:6px 0}
.adm-row select{width:auto}
.adm details{margin:10px 0}.adm summary{font-weight:700;cursor:pointer;padding:6px 0}
.adm input[type=range]{width:100%}
.adm-big{font-size:1.2rem;margin:8px 0}
.adm-tabla{overflow-x:auto}.adm-tabla table{border-collapse:collapse;font-size:.85rem}.adm-tabla td{border:1px solid var(--line,#d8dfe3);padding:4px 8px}
.adm-md{font-size:.92rem}.adm-md h3,.adm-md h4,.adm-md h5{margin:14px 0 6px}

/* Marca VARIABLE™ y aviso legal */
.tm { font-size: .42em; vertical-align: super; letter-spacing: 0; font-weight: 400; margin-left: 2px; }
.hero-marca { margin: 0 0 6px; font: 600 15px/1 Inter, system-ui, sans-serif; letter-spacing: .32em; color: rgba(241,234,217,.92); }
.hero-marca .tm { letter-spacing: 0; }
.terms-marca { margin: 0 0 8px; font: 400 30px/1 Fraunces, Georgia, serif; letter-spacing: .12em; }
.legal-pie { margin: 28px 0 8px; padding: 18px 16px; border-top: 1.5px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.legal-pie p { margin: 0 0 8px; }
.legal-pie strong { color: var(--fg); }
.legal-marca { font: 400 28px/1 Fraunces, Georgia, serif !important; letter-spacing: .14em; color: var(--fg); margin-bottom: 10px !important; }
.cond-hist { margin-top: 10px; padding: 8px 10px; border-left: 3px solid currentColor; }
.cond-hist.is-alto { border-left-color: #C0452E; }
.cond-hist.is-bajo { border-left-color: #B7791F; }
.cond-hist.is-normal { border-left-color: #3C7A57; }

/* ---------- Condiciones sobre la foto: histórico / en vivo, encuadradas ---------- */
.cond-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cond-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cond-pair .cond-item, .cond-trio .cond-item { min-width: 0; }
.cond-pair .cond-item { padding: 8px 10px; border-radius: 10px; background: rgba(241,234,217,.10); }
.cond-pair .cond-v { font-size: 20px; line-height: 1.15; }
.cond-trio .cond-v { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.cond-trio .cond-l { font-size: 12px; line-height: 1.25; }
.cond-pair .cond-l { font-size: 12px; line-height: 1.3; }
.cond-pair .cond-l strong { font-weight: 700; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: #8f8a7a; }
.live-dot.is-on { background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: live-pulse 1.6s ease-out infinite; }
.live-dot.is-off { background: #E0A63A; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.65); opacity: 1; } 60% { box-shadow: 0 0 0 7px rgba(61,220,132,0); opacity: .45; } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live-dot.is-on { animation: none; } }
.rio-hero .rh-overlay .sp-svg { margin-top: 8px; max-height: 66px; }
.rio-hero .rh-overlay .sp-ley { font-size: 11.5px; margin: 0; line-height: 1.3; }
.rio-hero .rh-overlay .sp-ley span { width: 12px; height: 8px; }
.rio-hero .rh-overlay .cond-src-corta { margin-top: 8px; padding-top: 6px; font-size: 12px; line-height: 1.35; }
.rh-det { margin-top: 6px; font-size: 12.5px; }
.rh-det summary { cursor: pointer; font-weight: 600; padding: 4px 0; min-height: 32px; display: flex; align-items: center; }
.rh-det .cond-source, .rh-det .cond-hist { margin-top: 8px; font-size: 12.5px; }
.cond-card .rh-det summary { color: var(--link); }

/* ---------- Seguridad: compartir ubicación ---------- */
.ub-card { padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 14px; }
.ub-card h2 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.ub-card .btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-align: center; text-decoration: none; }
.ub-card .btn svg { width: 20px; height: 20px; flex: none; }
.ub-card .btn[disabled] { opacity: .5; }
.ub-una { width: 100%; margin-top: 10px; }
.ub-sep { height: 1px; background: var(--line); margin: 14px 0; }
.ub-hrs { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ub-row { align-items: stretch; }
.ub-row select { flex: 0 0 38%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; padding: 0 10px; }
.ub-row .btn { flex: 1; }
.ub-live { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ub-live strong { display: block; font-size: 15px; }
.ub-live small { color: var(--muted); font-size: 13px; }
.ub-live .live-dot { margin-top: 6px; flex: none; }
.ub-nota { margin-top: 12px; line-height: 1.4; }
.ub-msg { display: grid; gap: 8px; margin-top: 8px; }
.ub-err { color: #B3261E; margin: 0; }

/* ---------- Fase 2: selector de región y notas de tramo ---------- */
.reg-pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.reg-pills::-webkit-scrollbar { display: none; }
.reg-pill { flex: none; min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--fg); font: 600 13px var(--font-body); cursor: pointer; }
.reg-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tramo-nota { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #C0452E; background: color-mix(in srgb, #C0452E 8%, transparent); }
.tramo-nota p { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.4; }
.tramo-nota p + p { margin-top: 6px; }
.tramo-nota svg { flex: none; margin-top: 2px; color: #C0452E; }
.norma-card.is-propia { border-left: 4px solid var(--accent); }

/* Accesos públicos en el mapa (v80) */
.acc-pin { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(18,32,26,.45); vertical-align: -2px; }
.acc-puente { background: #6B5B3E; }
.acc-rampa { background: #1F6FD1; border-radius: 50%; }
.acc-playa, .acc-parque, .acc-muelle { background: #2F8F5B; border-radius: 50%; }
.map-leyenda { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; }
.map-leyenda .acc-pin { margin-right: 4px; }
.acc-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.acc-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.acc-list .acc-ico { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(18,32,26,.45); }
.acc-list strong { display: block; }
.acc-list small { display: block; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nav-links a { font-size: 13.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; }
.leaflet-popup-content .nav-links a { font-size: 12.5px; padding: 3px 8px; }
.uso-badge { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; }
.uso-badge svg { flex: none; color: #2F8F5B; margin-top: 2px; }
.tipo-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 10px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); }
.tipo-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: 600 14.5px var(--font-body); cursor: pointer; }
.tipo-seg button small { font-weight: 500; opacity: .7; }
.tipo-seg button[aria-pressed="true"] { background: var(--forest); color: #F1EAD9; }
.wx-lago { grid-template-columns: 1fr 1fr 1fr; }
.wx-card.is-key { border-color: var(--gold-deep); }
.aviso-legal { border-style: dashed; }
.rs-punto { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--gold-deep); font-size: 14px; }
.rs-num { font: 600 16px var(--font-body); padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); width: 120px; margin: 4px 0; box-sizing: border-box; }
.punto-aviso { position: fixed; left: 12px; right: 12px; bottom: 150px; z-index: 900; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--forest); color: #F1EAD9; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 14px; }
.punto-aviso .btn { flex: none; padding: 8px 12px; min-height: 0; }
.punto-aviso .pa-x { flex: none; background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; }
.puntos-adm label { display: block; margin-top: 6px; }
