/* Guía y búsqueda (carril F5): estilos propios sobre los tokens y componentes de base.css. Solo tokens: el tema
   Noche sale solo. Prefijos: .gd- (Guía) y .bs- (búsqueda global). */

/* ---------- Campo de búsqueda (Guía y búsqueda global) ---------- */
.gd-search { position: relative; }
.gd-search-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.gd-search-input { min-height: 50px; padding-left: 46px; padding-right: 50px; border-radius: 999px; background: var(--surface); }
.gd-search-clear { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); border-radius: 50%; }
.gd-home[hidden], .gd-results[hidden], .gd-ficha-body[hidden] { display: none; }

/* ---------- Portada: herramientas ---------- */
.gd-tools-sec .sec-head { margin-top: 4px; }
.gd-tools-sec + .gd-search { margin-top: 8px; }
.gd-tools-sec[hidden] { display: none; }
.gd-tools { list-style: none; display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
.gd-tools::-webkit-scrollbar { display: none; }
.gd-tools > li { flex: none; scroll-snap-align: start; }
.gd-tool { display: flex; flex-direction: column; gap: 2px; width: 128px; height: 100%; min-height: 108px; padding: 12px 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .16s var(--ease), border-color .2s; }
.gd-tool:hover { border-color: var(--sage); }
.gd-tool:active { transform: scale(.97); }
.gd-tool-ico { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.gd-tools > li:first-child .gd-tool-ico { background: var(--peach-wash); color: var(--peach-ink); }
.gd-tool-label { font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.gd-tool-line { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }

/* ---------- Portada: temas ---------- */
.gd-topics { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gd-topics > li, .gd-tools > li, .gd-list > li, .gd-cts > li { min-width: 0; }
.gd-topic { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 76px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .16s var(--ease), border-color .2s; }
.gd-topic:hover { border-color: var(--line-2); }
.gd-topic:active { transform: scale(.985); }
.gd-topic-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.gd-topic.tone-peach .gd-topic-ico { background: var(--peach-wash); color: var(--peach-ink); }
.gd-topic.tone-now .gd-topic-ico { background: var(--now-bg); color: var(--now-ink); }
.gd-topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.gd-topic-title { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.gd-topic-line { display: flex; align-items: flex-start; gap: 4px; max-width: 100%; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.gd-topic-line > span { min-width: 0; overflow-wrap: anywhere; }
.gd-topic-line > .ico { margin-top: 1px; }
.gd-topic-line.done { color: var(--sage-ink); font-weight: 700; }
.gd-topic-text > .chip-s { margin-top: 2px; }
.gd-topic-chev { color: var(--ink-3); }

/* ---------- Resultados del buscador de la Guía ---------- */
.gd-foot-link { margin-top: 14px; display: flex; justify-content: center; text-align: center; }
.gd-to-all { white-space: normal; }

/* ---------- Tema: «Lo que tenéis que hacer» ---------- */
.gd-todo { padding: 14px 8px 6px; }
.gd-todo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 8px; margin-bottom: 2px; }
.gd-todo-count { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.gd-todo.all-done .gd-todo-count { color: var(--sage-ink); }
/* El chip de fecha en su propia línea y el porqué entero debajo (hasta dos líneas): nada se corta a media palabra */
.gd-todo-rows .row-title { display: block; overflow: visible; }
.gd-todo-rows .row-line-2 { flex-direction: column; align-items: flex-start; gap: 3px; }
.gd-todo-rows .row-line-2 > .row-end { order: -1; }
.gd-todo-rows .row-line-2 > .row-sub { flex: none; width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.4; }

/* ---------- Clases: elegida / reservada ---------- */
.gd-clase { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--sunk); }
.gd-clase-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-clase-opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 800; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.gd-clase-opt .ico { color: var(--ink-3); }
.gd-clase-opt:hover:not(:disabled) { border-color: var(--sage-strong); }
.gd-clase-opt.on { background: var(--sage-soft); border-color: var(--sage-strong); color: var(--sage-ink); }
.gd-clase-opt.on .ico { color: var(--sage-ink); }
.gd-clase-line { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.gd-clase-chip { white-space: nowrap; }

/* ---------- Grupos y fichas ---------- */
.gd-group .sec-head { margin-top: 24px; }
.gd-list { list-style: none; margin: 0; padding: 4px 0; }
.gd-list + .gd-list { margin-top: 12px; }
.gd-ficha { position: relative; border-radius: var(--radius-sm); }
.gd-list > .gd-ficha + .gd-ficha::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); }
.gd-ficha-head { display: flex; align-items: flex-start; gap: 2px; padding-right: 6px; }
.gd-ficha-head > .icon-btn { margin-top: 8px; }
.gd-ficha-h { flex: 1; min-width: 0; margin: 0; font: inherit; }
.gd-ficha-toggle { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 8px 12px 16px; text-align: left; color: inherit; border-radius: var(--radius-sm); }
.gd-ficha-toggle:hover .gd-ficha-title { color: var(--sage-ink); }
.gd-ficha-toggle:focus-visible { outline-offset: -3px; }
.gd-ficha-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gd-ficha-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.gd-ficha.open .gd-ficha-title { font-weight: 800; }
.gd-ficha-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.gd-ficha-subtxt { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gd-dist-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--peach-wash); color: var(--peach-ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.gd-ficha-chev { flex: none; color: var(--ink-2); transition: transform .25s var(--ease); }
.gd-ficha.open .gd-ficha-chev { transform: rotate(180deg); }
.gd-ficha-body { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 18px; animation: gdIn .22s var(--ease); }
@keyframes gdIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.gd-ficha.gd-flash { animation: gdFlash 1.8s var(--ease); }
@keyframes gdFlash { 0%, 35% { background: var(--sage-wash); box-shadow: inset 0 0 0 2px var(--sage); } 100% { background: transparent; box-shadow: inset 0 0 0 2px transparent; } }

.gd-star { color: var(--ink-3); }
.gd-star:hover:not(:disabled) { color: var(--peach-ink); }
.gd-star.on { color: var(--peach-ink); }
.gd-star.on svg { fill: currentColor; }
.gd-call { color: var(--sage-ink); background: var(--sage-wash); border-radius: 50%; }
.gd-call:hover:not(:disabled) { background: var(--sage-soft); color: var(--sage-ink); }

/* Ficha sencilla (nota corta, siempre a la vista) */
.gd-note { padding: 14px 16px; }
.gd-note-title { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.gd-note-sub { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.gd-note .gd-prose { margin-top: 4px; }
.gd-note > .gd-avisos, .gd-note > .chip-s { margin-top: 10px; }

/* Contenido de una ficha */
.gd-prose { font-size: 15px; }
.gd-meta { gap: 6px; }
.gd-dist { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.gd-dist > .ico { color: var(--peach-ink); margin-top: 1px; }
.gd-avisos { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--now-bg); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.gd-avisos-ico { color: var(--now-ink); margin-top: 1px; }
.gd-avisos p + p { margin-top: 6px; }
.gd-fields { display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.gd-field { padding: 10px 14px 11px; min-width: 0; }
.gd-field + .gd-field { border-top: 1px solid var(--line); }
.gd-field dt { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--sage-ink); line-height: 1.35; }
.gd-field dd { margin-top: 2px; font-size: 15px; line-height: 1.5; }

.gd-phones { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gd-tel { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px 8px 10px; border-radius: 16px; background: var(--sage-wash); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .14s var(--ease); }
.gd-tel:hover { box-shadow: inset 0 0 0 1.5px var(--sage); }
.gd-tel:active { transform: scale(.985); }
.gd-tel-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--sage-ink); }
.gd-tel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gd-tel-label { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; }
.gd-tel-num { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.gd-tel-unv { display: inline-flex; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: 0; color: var(--now-ink); }
.gd-tel-unv .confirm-dot { margin-left: 0; }
.gd-tel-big { min-height: 68px; }
.gd-tel-big .gd-tel-num { font-size: 22px; }
.gd-tel-compact { margin: 2px 0 6px; }

.gd-place { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.gd-place-ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--peach-wash); color: var(--peach-ink); }
.gd-place-addr { flex: 1 1 150px; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.gd-go { flex: none; }
.gd-go .ico { color: var(--sage-ink); }

.gd-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gd-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s; }
.gd-link:hover { border-color: var(--sage); }
.gd-link-ico { flex: none; color: var(--sage-ink); }
.gd-link-text { min-width: 0; display: flex; flex-direction: column; }
.gd-link-label { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--sage-ink); overflow-wrap: anywhere; }
.gd-fuentes-t { margin: 10px 0 4px; font-size: 13px; font-weight: 800; color: var(--ink-soft, inherit); }
.gd-link-host { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }

.gd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gd-ask-chips { margin-top: 10px; }
.gd-ask-chips .ask-opt { max-width: 100%; text-align: left; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; border-radius: 22px; }
.gd-ask .ico { color: var(--peach-ink); }
.gd-cita { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: 100%; padding: 6px 10px 6px 12px; border-radius: 14px; background: var(--sage-wash); border: 1px solid var(--sage-soft); color: var(--sage-ink); text-align: left; transition: border-color .2s; }
.gd-cita:hover { border-color: var(--sage); }
.gd-cita.porpedir { background: var(--now-bg); border-color: transparent; color: var(--now-ink); }
.gd-cita-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gd-cita-text small { font-size: 13px; font-weight: 800; }
.gd-cita-text b { font-size: 15px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Lista corta ---------- */
.gd-short { margin-top: 12px; padding: 14px 12px 8px; }
.gd-short.is-empty { padding-bottom: 16px; }
.gd-short-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.gd-short-head .card-title { display: flex; align-items: center; gap: 8px; }
.gd-short-empty { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.gd-short-star { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--peach-wash); color: var(--peach-ink); }
.gd-short-hint { margin: 2px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gd-short-list { list-style: none; display: flex; flex-direction: column; margin: 0 -6px; }
.gd-short-item { position: relative; display: flex; align-items: center; gap: 6px; min-height: 62px; padding-left: 4px; }
.gd-short-item + .gd-short-item::before { content: ""; position: absolute; left: 42px; right: 6px; top: 0; height: 1px; background: var(--line); }
.gd-rank { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--peach-soft); color: var(--peach-ink); font-size: 14px; font-weight: 800; line-height: 1; }
.gd-short-main { flex: 1; min-width: 0; align-self: stretch; min-height: 44px; display: flex; justify-content: center; flex-direction: column; gap: 2px; padding: 9px 4px 9px 6px; text-align: left; color: inherit; border-radius: 12px; }
.gd-short-main:hover .gd-short-title { color: var(--sage-ink); }
.gd-short-title { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.gd-short-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gd-short-cita { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--sage-ink); }
.gd-short-acts { flex: none; display: flex; align-items: center; }
.gd-move.off { opacity: .32; cursor: default; }
.gd-move.off:hover { background: none; }

/* ---------- Comparador ---------- */
.sheet-layer[data-mode="dialog"] .sheet.gd-cmp-sheet { max-width: 900px; }
.gd-cmp-cards { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: thin; }
.gd-cmp-card { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.gd-cmp-card-head { display: flex; align-items: flex-start; gap: 10px; }
.gd-cmp-card-head h3 { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.gd-cmp-dl > div { padding: 8px 0; border-top: 1px solid var(--line); }
.gd-cmp-dl dt { font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.gd-cmp-dl dd { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.gd-cmp-card .gd-cmp-act { margin-top: auto; width: 100%; }
.gd-cmp-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; }
.gd-cmp-table { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.gd-cmp-table th, .gd-cmp-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.gd-cmp-table thead th { vertical-align: bottom; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.gd-cmp-table thead th .gd-rank { display: grid; margin-bottom: 6px; }
.gd-cmp-table tbody th { position: sticky; left: 0; z-index: 1; width: 120px; background: var(--surface); font-size: 13px; font-weight: 800; color: var(--sage-ink); white-space: nowrap; }
.gd-cmp-table td { min-width: 150px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.gd-cmp-acts th, .gd-cmp-acts td { border-bottom: 0; padding-top: 14px; }
.gd-cmp-none { color: var(--ink-3); }
.gd-cmp-hint { margin-top: 14px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.gd-cmp-hint .confirm-dot { margin-left: 0; }

/* ---------- Seguro: preguntas al seguro ---------- */
.gd-seguro { margin-top: 12px; }
.gd-seguro .gd-todo-head { padding: 0; }
.gd-seguro-tel { text-align: left; line-height: 1.35; padding: 4px 0; margin-top: 2px; }
.gd-qs { list-style: none; display: flex; flex-direction: column; }
.gd-q { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 0 8px; padding: 12px 0; }
.gd-q + .gd-q { border-top: 1px solid var(--line); }
.gd-q-mark { padding-top: 1px; color: var(--now-ink); }
.gd-q.done .gd-q-mark { color: var(--sage-ink); }
.gd-q-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gd-q-text { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.gd-q.done .gd-q-text { font-weight: 600; color: var(--ink-2); }
.gd-q-why { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.gd-q-ans { padding-left: 10px; border-left: 3px solid var(--sage-soft); font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.gd-q .btn-text.gd-q-btn { margin-left: -10px; }
.gd-q-edit { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.gd-q-edit .textarea { min-height: 84px; }
.gd-q-edit-acts { display: flex; justify-content: flex-end; gap: 6px; }
.gd-q-alldone { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; font-weight: 700; color: var(--sage-ink); }
.gd-q-fold.flat { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; }
.gd-q-fold > .fold-head { padding: 0; min-height: 52px; }
.gd-q-add { display: flex; gap: 8px; margin-top: 12px; }
.gd-q-add .input { flex: 1; min-width: 0; }
.gd-q-add .btn { flex: none; }

/* ---------- Contactos ---------- */
.gd-contacts { margin-top: 14px; }
.gd-ct-top { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-ct-top .btn { flex: 1 1 auto; }
.gd-cts { list-style: none; padding: 4px 0; }
.gd-ct { position: relative; display: flex; align-items: center; gap: 4px; padding-right: 10px; border-radius: var(--radius-sm); }
.gd-ct + .gd-ct::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); }
.gd-ct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 8px 10px 16px; text-align: left; color: inherit; border-radius: var(--radius-sm); }
.gd-ct-main:hover .gd-ct-name { color: var(--sage-ink); }
.gd-ct-main:focus-visible { outline-offset: -3px; }
.gd-ct-name { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.gd-ct-sub { min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-ct-num { color: var(--ink); font-weight: 700; }
.gd-ct-nophone { display: inline-flex; align-items: center; gap: 4px; color: var(--now-ink); font-weight: 700; }
.gd-ct-call { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink); }
.gd-ct-call:hover:not(:disabled) { background: var(--sage-wash); color: var(--sage-ink); box-shadow: inset 0 0 0 1.5px var(--sage); }
.gd-ct.gd-flash { animation: gdFlash 1.8s var(--ease); }

.gd-ct-sheet .sheet-body { display: flex; flex-direction: column; gap: 12px; }
.gd-ct-add-phone { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--ink-2); font-weight: 700; text-align: left; transition: border-color .2s, color .2s, background .2s; }
.gd-ct-add-phone:hover { border-color: var(--sage); color: var(--sage-ink); background: var(--sage-wash); }
.gd-ct-notes { color: var(--ink); }
.gd-offline-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; background: var(--now-bg); color: var(--now-ink); font-size: 14px; font-weight: 700; }

/* ---------- Búsqueda global ---------- */
.bs-sticky { padding: 2px 0 6px; }
.bs-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--now-bg); color: var(--now-ink); font-size: 14px; font-weight: 700; }
.bs-searching { display: flex; align-items: center; gap: 10px; margin: 18px 4px 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.bs-searching-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-strong); animation: bsBreath 1.1s var(--ease) infinite alternate; }
@keyframes bsBreath { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .bs-searching-dot { animation: none; } }
.bs-group .sec-head { margin-top: 20px; }
.bs-card { padding: 4px 6px; }
.bs-rows .row-sub mark, .bs-rows .row-title mark { padding: 0 1px; }
.bs-row > .icon-btn { flex: none; }
.row-lead-ico.bs-tone-done, .row-lead-ico.bs-tone-sage { background: var(--sage-soft); color: var(--sage-ink); }
.row-lead-ico.bs-tone-peach { background: var(--peach-wash); color: var(--peach-ink); }
.row-lead-ico.bs-tone-now { background: var(--now-bg); color: var(--now-ink); }
.bs-min { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.bs-where { font-weight: 800; color: var(--ink-2); }
.bs-call { width: 46px; height: 46px; margin-left: 2px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink); }
.bs-call:hover:not(:disabled) { background: var(--sage-wash); color: var(--sage-ink); box-shadow: inset 0 0 0 1.5px var(--sage); }
.bs-comer .row-main { text-decoration: none; color: inherit; }
.bs-comer .row-title { color: var(--sage-ink); }
.bs-more { width: calc(100% + 12px); display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; margin: 2px -6px -4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); color: var(--sage-ink); font-size: 14px; font-weight: 800; }
.bs-more:hover { background: var(--sage-wash); }
.bs-idle .sec-head { margin-top: 18px; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 15px; font-weight: 700; transition: border-color .2s, transform .14s var(--ease); }
.bs-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-chip .ico { color: var(--ink-3); }
.bs-chip:hover { border-color: var(--sage); }
.bs-chip:active { transform: scale(.97); }
.bs-empty-acts { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bs-empty-acts .link-btn { text-align: center; }

/* Hoja «¿Puedo comer…?» */
.bs-verdict { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--sunk); color: var(--ink); }
.bs-verdict.v-si { background: var(--sage-soft); color: var(--sage-ink); }
.bs-verdict.v-precaucion { background: var(--now-bg); color: var(--now-ink); }
.bs-verdict.v-no { background: var(--peach-soft); color: var(--peach-ink); }
.bs-verdict-ico { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.bs-verdict-text { display: flex; flex-direction: column; line-height: 1.2; }
.bs-verdict-text small { font-size: 13px; font-weight: 800; }
.bs-verdict-text b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.bs-food-p { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.bs-food-sec { margin-top: 16px; }
.bs-food-sec h3 { margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-ink); }
.bs-food-sec p { font-size: 15px; line-height: 1.55; }
.bs-food-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--now-bg); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.bs-food-note .ico { flex: none; margin-top: 1px; color: var(--now-ink); }
.bs-food-sheet .sheet-body > .chip-s { margin-top: 12px; }
.bs-food-sheet .sheet-foot { flex-wrap: wrap; }
.bs-food-sheet .sheet-foot .btn { flex: 1 1 auto; }

/* ---------- Tableta y escritorio ---------- */
@media (min-width: 560px) {
  .gd-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
  .gd-field dd { margin-top: 0; }
  .gd-ct-top .btn { flex: 0 1 auto; }
}
@media (min-width: 760px) {
  .gd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 2px 0 6px; }
  .gd-tool { width: auto; min-height: 96px; }
  .gd-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .gd-tel-num { font-size: 18px; }
}

/* ---------- Teléfonos útiles (views/telefonos.js) ---------- */
.tf { display: flex; flex-direction: column; gap: 22px; padding-bottom: 12px; }
.tf-block { display: flex; flex-direction: column; gap: 10px; }
.tf-place-name { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.tf-place-addr { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.tf-go { display: flex; width: 100%; }
.tf-tel { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px 8px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tf-tel:hover { border-color: var(--line-2); }
.tf-tel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tf-tel-label { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.tf-tel-num { display: flex; flex-direction: column; align-items: flex-start; font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-tel-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.tf-tel-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-ink); }
.tf-tbc { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tf-missing { padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.45; }
.tf-source { font-size: 13px; color: var(--ink-2); font-weight: 600; line-height: 1.4; }
.tf-sep { height: 1px; background: var(--line); margin: 6px 0; }
.tf-profile { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--sage-wash); }
.tf-profile > div { display: flex; gap: 6px; min-width: 0; }
.tf-profile dt { font-size: 14px; font-weight: 800; color: var(--sage-ink); }
.tf-profile dd { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }

/* Ayudas operativas y «Buscar cerca de casa» */
.gd-op { display: grid; gap: 14px; margin-top: 6px; }
.gd-op-sec { display: grid; gap: 8px; }
.gd-op-h { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.gd-op-p, .gd-op-foot { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.gd-op-foot { font-size: 13px; color: var(--ink-soft, var(--muted)); }
.gd-op-list, .gd-op-steps, .gd-op-docs { margin: 0; padding: 0; display: grid; gap: 8px; }
.gd-op-list { padding-left: 20px; list-style: disc; font-size: 15px; line-height: 1.45; }
.gd-op-steps { padding-left: 22px; list-style: decimal; font-size: 15px; line-height: 1.45; }
.gd-op-docs { list-style: none; }
.gd-op-doc { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 10px; border-radius: 12px; background: var(--sage-wash); font-size: 15px; line-height: 1.4; cursor: pointer; }
.gd-op-doc input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sage-ink); }
.gd-op-count { font-size: 13px; font-weight: 700; color: var(--sage-ink); }
.gd-op-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-op-link { height: auto; min-height: 44px; padding: 8px 14px; text-align: left; flex-wrap: wrap; row-gap: 2px; }
.gd-op-ok, .gd-op-nv { flex-basis: 100%; font-size: 12px; font-weight: 600; opacity: .8; }
.gd-loc { display: grid; gap: 12px; padding: 16px; }

/* Recursos oficiales de la comunidad (familias de fuera de las zonas con contenido local) */
.gd-oficiales { display: grid; gap: 10px; margin: 8px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.gd-of-hint { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.gd-of-tipo { margin: 8px 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.gd-of-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gd-of-link { display: block; min-height: 44px; padding: 10px 0 0; color: var(--sage-ink); font-weight: 700; overflow-wrap: anywhere; }
.gd-of-src { display: block; padding-bottom: 8px; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
