/* By Kompilador */
:root {
  --bg: #f9f7f4;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #5b6475;
  --line: #e6e1dc;
  --track: #efe9e4;
  --coral: #e63946;
  --accent: #d62839;
  --accent-ink: #ffffff;
  --accent-soft: #fde3dd;
  --rosa: #f8c4b4;
  --teal: #047857;
  --teal-fill: #10b981;
  --teal-soft: #e3f5ee;
  --danger: #b42318;
  --field-line: #c7cedd;
  --focus: #1d4ed8;
  --tag-ink: #2b3350;
  --accent-deep: #7a1f3c;
  --teal-deep: #0b554f;
  --warn-bg: #fdf0d5;
  --warn-ink: #7a4b00;
  --info-bg: #e8edf7;
  --info-ink: #2b3a67;
  --star: #b45309;
  --cat-ink: #1f2937;
  --toast-bg: #1f2937;
  --toast-ink: #ffffff;
  --shadow: rgba(31, 41, 55, 0.12);
  --viz-1: #d62839;
  --viz-2: #6250d6;
  --viz-3: #0b8f6a;
  --viz-4: #b8760a;
  --viz-gray: #8a93a3;
  --radius: 14px;
  --font-body: "Poppins", "Poppins-respaldo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", "Montserrat-respaldo", "Poppins", system-ui, sans-serif;
  --font-script: "Pacifico", "Brush Script MT", cursive;
}

:root[data-theme="dark"] {
  --bg: #14171d;
  --surface: #1f2937;
  --ink: #f9f7f4;
  --muted: #b4bcc9;
  --line: #334052;
  --track: #2b3545;
  --accent: #f0717c;
  --accent-ink: #1a1d24;
  --accent-soft: #4a2630;
  --teal: #6ee7b7;
  --teal-fill: #10b981;
  --teal-soft: #173a30;
  --danger: #ff9b94;
  --field-line: #4a5568;
  --focus: #93c5fd;
  --tag-ink: #dfe4ee;
  --accent-deep: #ffd1d6;
  --teal-deep: #a7f3d0;
  --warn-bg: #4a3a10;
  --warn-ink: #fde68a;
  --info-bg: #273352;
  --info-ink: #c7d2fe;
  --star: #fbbf24;
  --toast-bg: #f9f7f4;
  --toast-ink: #1f2937;
  --shadow: rgba(0, 0, 0, 0.5);
  --viz-1: #e5606c;
  --viz-2: #8f84e8;
  --viz-3: #1fa97f;
  --viz-4: #bf8219;
  --viz-gray: #8d97a8;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171d;
    --surface: #1f2937;
    --ink: #f9f7f4;
    --muted: #b4bcc9;
    --line: #334052;
    --track: #2b3545;
    --accent: #f0717c;
    --accent-ink: #1a1d24;
    --accent-soft: #4a2630;
    --teal: #6ee7b7;
    --teal-fill: #10b981;
    --teal-soft: #173a30;
    --danger: #ff9b94;
    --field-line: #4a5568;
    --focus: #93c5fd;
    --tag-ink: #dfe4ee;
    --accent-deep: #ffd1d6;
    --teal-deep: #a7f3d0;
    --warn-bg: #4a3a10;
    --warn-ink: #fde68a;
    --info-bg: #273352;
    --info-ink: #c7d2fe;
    --star: #fbbf24;
    --toast-bg: #f9f7f4;
    --toast-ink: #1f2937;
    --shadow: rgba(0, 0, 0, 0.5);
    --viz-1: #e5606c;
    --viz-2: #8f84e8;
    --viz-3: #1fa97f;
    --viz-4: #bf8219;
    --viz-gray: #8d97a8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; font-weight: 500; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-weight: 500;
}
.tab[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

.userbox { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); min-height: 44px; }
#usuario { min-width: 72px; }

.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 24px; flex: 1 1 auto; min-height: calc(100vh - 140px); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-stack { display: flex; flex-direction: column; gap: 14px; }

.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid > * { flex: 1 1 320px; min-width: 0; }
.grid > .wide { flex: 2 1 480px; }

.stat { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.stat-hero { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; }
.stat-teal { color: var(--teal); }

.bar { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal-fill); border-radius: 5px; }
.bar-lg { height: 14px; border-radius: 7px; }
.bar-lg > span { background: var(--coral); border-radius: 7px; }

.btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-ink); font-weight: 700; font-family: var(--font-display);
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: var(--surface); color: var(--accent); }
.btn-teal { background: var(--teal); border-color: var(--teal); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 14px; }
.input {
  min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); width: 100%;
}

.form { display: flex; flex-direction: column; gap: 16px; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 0; }

.auth-wrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.segmented { display: flex; gap: 8px; }
.segmented button {
  flex: 1 1 0; min-height: 44px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); font-weight: 500;
}
.segmented button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); font-size: 15px; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filters .field { flex: 1 1 180px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 12px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.item[data-status="hecha"] { background: var(--teal-soft); border-color: var(--teal-fill); }
.item-body { flex: 1 1 260px; min-width: 0; }
.item-title { font-weight: 500; }
.item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.check {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--field-line); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.check[aria-pressed="true"] { background: var(--teal-fill); border-color: var(--teal-fill); }

.stars { display: inline-flex; gap: 2px; }
.star { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; color: var(--field-line); }
.star[aria-pressed="true"] { color: var(--star); }

.tag { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--track); color: var(--tag-ink); }
.tag-teal { background: var(--teal-soft); color: var(--teal); }

.member { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--rosa); color: #7a1f2a;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.copy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-row .input { flex: 1 1 260px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--toast-bg); color: var(--toast-ink); padding: 12px 18px; border-radius: 10px; z-index: 10; box-shadow: 0 10px 30px var(--shadow);
}

.footer { padding: 18px 32px; border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 640px) {
  .topbar, .page, .footer { padding-left: 16px; padding-right: 16px; }
  .stat-hero { font-size: 44px; }
}

.segmented-wide { flex-wrap: wrap; }
.segmented-wide button { flex: 0 1 auto; padding: 0 18px; }
.filters .field.grow { flex: 2 1 260px; }

.counter { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.counter > div { min-width: 110px; }
.counter .muted { margin: 0 0 2px; }

.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.poi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.poi-card[data-saved="true"] { border-color: var(--teal-fill); background: var(--teal-soft); }
.poi-card h3 { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.poi-card p { margin: 0; }
.poi-desc { flex: 1 1 auto; }
.poi-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.poi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.btn-sm { padding: 0 14px; }
.btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--accent-ink); }
.btn-ghost[aria-pressed="true"] { background: var(--surface); color: var(--teal); }
.chip:disabled { opacity: 0.6; cursor: default; }

.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag-osm { background: var(--info-bg); color: var(--info-ink); }

.place-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--field-line); border-radius: var(--radius); grid-column: 1 / -1; }
.attribution { font-size: 13px; color: var(--muted); margin: 0; }
.attribution a { color: inherit; }

@media (max-width: 640px) {
  .poi-grid { grid-template-columns: 1fr; }
}

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.album-card {
  display: flex; flex-direction: column; gap: 10px; padding: 0; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit;
}
.album-cover { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--track); }
.album-cover-empty { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.album-body { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 16px; }
.album-body h2 { font-weight: 700; font-size: 17px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-thumb { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--track); aspect-ratio: 1; display: block; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .photo-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 13px; color: #ffffff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); display: flex; justify-content: space-between; gap: 8px;
}

.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-row input { width: 22px; height: 22px; margin: 0; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }

.viewer { border: 0; border-radius: var(--radius); padding: 0; width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); }
.viewer::backdrop { background: rgba(27, 33, 51, 0.7); }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.viewer-image { background: #0e1220; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.viewer-image img { display: block; max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.viewer-side { display: flex; flex-direction: column; gap: 14px; padding: 20px; max-height: calc(100vh - 32px); overflow: auto; }
.viewer-side h2 { font-size: 18px; overflow-wrap: anywhere; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.reaction { min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 22px; border: 1px solid var(--field-line); background: var(--surface); font-size: 18px; display: inline-flex; align-items: center; gap: 4px; }
.reaction[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.reaction .small { font-size: 13px; font-weight: 500; }
.comment { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.comment-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comment-body { overflow-wrap: anywhere; }
.textarea { min-height: 88px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); width: 100%; resize: vertical; font: inherit; }
.btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }

@media (max-width: 760px) {
  .viewer-grid { grid-template-columns: 1fr; }
  .viewer-image img { max-height: 50vh; }
  .viewer-side { max-height: none; }
  .viewer { max-height: none; height: calc(100vh - 16px); width: calc(100% - 16px); overflow: auto; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

.footer-dedicatoria { font-family: var(--font-script); font-size: 15px; color: var(--accent); }
.footer-dedicatoria { transition: opacity 0.4s ease; }
.footer-dedicatoria.oculta { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .footer-dedicatoria { transition: none; } }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: 13px; font-weight: 500; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-cell { min-height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-out { background: var(--bg); }
.cal-out .cal-day { color: var(--muted); font-weight: 400; }
.cal-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day { font-size: 13px; font-weight: 500; }
.plan-chip {
  display: block; width: 100%; min-height: 28px; padding: 3px 6px; border-radius: 6px; border: 0; text-align: left; font-size: 12px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--accent-soft); color: var(--accent-deep);
}
.plan-chip.plan-viaje { background: var(--teal-soft); color: var(--teal-deep); }
.plan-chip.estado-hecho { text-decoration: line-through; opacity: 0.8; }
.plan-chip.estado-cancelado { background: var(--track); color: var(--muted); text-decoration: line-through; }
.plan-tag-cita { background: var(--accent-soft); color: var(--accent-deep); }
.plan-tag-viaje { background: var(--teal-soft); color: var(--teal-deep); }
.plan-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: inherit; text-align: left;
}
.plan-row-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.reminder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.stat-danger { color: var(--danger); }

@media (max-width: 640px) {
  .calendar { gap: 2px; }
  .cal-cell { min-height: 64px; padding: 4px; }
  .plan-chip { font-size: 11px; min-height: 24px; padding: 2px 4px; }
  .cal-head { font-size: 11px; }
}

.milestones { display: flex; flex-wrap: wrap; gap: 8px; }
.milestone { min-width: 56px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; }
.milestone.reached { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.auth-card .small a { color: var(--accent); font-weight: 500; }

a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.footer-marca { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-marca:hover { text-decoration: underline; }

.page-wide { max-width: 1400px; }
.brand-admin { background: #1f2937; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kpis-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .stat { font-size: 26px; overflow-wrap: anywhere; }
.kpi p { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th, .tabla td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { font-weight: 500; color: var(--muted); font-size: 13px; white-space: nowrap; background: var(--bg); }
.tabla tr:last-child td { border-bottom: 0; }
.chart-wrap { width: 100%; overflow: hidden; }
.chart { width: 100%; height: auto; display: block; }
.chart-title { font-size: 13px; font-weight: 500; fill: var(--ink); font-family: var(--font-body); }
.chart-axis { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
/* Tablero del panel: gráficas con los colores --viz-* (validados para daltonismo en claro y oscuro) */
.tb-cuerpo { display: flex; flex-direction: column; gap: 32px; transition: opacity 0.15s; }
.tb-cuerpo.gf-cargando { opacity: 0.55; }
.tb-seccion { display: flex; flex-direction: column; gap: 14px; }
.tb-seccion > div > h2 { font-size: 22px; }
.tb-seccion > div > p { margin: 2px 0 0; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.tb-total { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.gf-cifras { display: grid; grid-template-columns: minmax(250px, 1fr) 3fr; gap: 12px; align-items: stretch; }
.gf-hero { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.gf-eyebrow { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.gf-hero .stat-hero { color: var(--ink); }
.gf-hero p { margin: 0; }
.gf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gf-kpi-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.gf-spark { flex: 0 0 auto; width: 96px; height: 30px; }
.gf-delta { margin: 0; font-size: 13px; }
.gf-delta-1 { color: var(--teal); }
.gf-delta-0 { color: var(--muted); }
.gf-delta--1 { color: var(--danger); }
.gf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; margin: 0; }
.gf-facts dt { font-size: 13px; color: var(--muted); }
.gf-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.gf-facts-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gf-alertas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gf-alerta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 10px; border-left: 6px solid currentColor; }
.gf-alerta p { margin: 0; flex: 1 1 260px; min-width: 0; }
.gf-alerta svg { flex: 0 0 auto; }
.gf-alerta-alta { background: var(--accent-soft); color: var(--accent-deep); border-left-color: var(--danger); }
.gf-alerta-media { background: var(--warn-bg); color: var(--warn-ink); }
.gf-alerta-info { background: var(--info-bg); color: var(--info-ink); }
.gf-alerta .chip { color: var(--ink); }
.gf-todo-bien { border-left: 6px solid var(--teal-fill); }
.gf-todo-bien p { margin: 6px 0 0; }

.gf-card { min-width: 0; }
.gf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.gf-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.gf-note { margin: 0; color: var(--muted); font-size: 13px; }
.gf-wrap, .gf-box { width: 100%; }
.gf-box { min-height: 120px; }
.gf-svg { display: block; max-width: 100%; touch-action: pan-y; }
.gf-svg:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.gf-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.gf-tick { fill: var(--muted); font-family: var(--font-body); font-size: 12px; }
.gf-cross { stroke: var(--muted); stroke-width: 1; }
.gf-band { fill: var(--ink); opacity: 0.07; }
.gf-dot { stroke: var(--surface); stroke-width: 2; }
.gf-hit { cursor: crosshair; }

.gf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.gf-legend li { display: inline-flex; align-items: center; gap: 6px; }
.gf-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: 0 0 auto; }
.gf-key-line { width: 16px; height: 3px; border-radius: 2px; }

.gf-tip { position: fixed; z-index: 40; pointer-events: none; display: flex; flex-direction: column; gap: 3px; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--toast-bg); color: var(--toast-ink); font-size: 13px; line-height: 1.35; box-shadow: 0 8px 24px var(--shadow); }
.gf-tip-head { font-size: 12px; font-weight: 500; opacity: 0.8; }
.gf-tip-row { display: flex; align-items: center; gap: 8px; }
.gf-tip-row strong { font-size: 14px; }

.gf-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gf-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.gf-hlabel { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.gf-hval { font-family: var(--font-display); font-weight: 600; font-size: 14px; white-space: nowrap; }
.gf-htrack { grid-column: 1 / -1; display: block; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.gf-hfill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--c); }
.gf-meter { display: block; }
.gf-meter .gf-htrack { height: 12px; border-radius: 6px; }

.gf-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.gf-donut-svg { flex: 0 0 auto; max-width: 100%; height: auto; }
.gf-donut-num { fill: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.gf-donut-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; min-width: 0; }
.gf-donut-rows li { display: flex; align-items: center; gap: 10px; }
.gf-donut-name { flex: 1 1 auto; min-width: 0; }
.gf-donut-rows strong { font-family: var(--font-display); }

.gf-heat { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.gf-months, .gf-cells { display: grid; gap: 3px; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); }
.gf-months span { min-height: 16px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gf-cells { grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
.gf-cell { display: block; aspect-ratio: 1; min-width: 0; border-radius: 3px; background: var(--track); }
.gf-cell-vacia { background: transparent; }
.gf-cell[data-level="1"] { background: color-mix(in srgb, var(--viz-3) 30%, var(--surface)); }
.gf-cell[data-level="2"] { background: color-mix(in srgb, var(--viz-3) 52%, var(--surface)); }
.gf-cell[data-level="3"] { background: color-mix(in srgb, var(--viz-3) 76%, var(--surface)); }
.gf-cell[data-level="4"] { background: var(--viz-3); }
.gf-scale { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.gf-scale .gf-cell { width: 14px; }

.gf-datos summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; }
.gf-datos[open] summary { margin-bottom: 8px; }
.pago-acciones { min-width: 16rem; }
.pago-acciones > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--accent-deep); }
.pago-acciones[open] > summary { margin-bottom: 8px; }
.pago-acciones fieldset { border: 0; padding: 0; margin: 0; }
.pago-acciones fieldset label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.pago-acciones fieldset input { width: 20px; height: 20px; flex: none; }
.gf-reportes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gf-reportes p { margin: 0; }
.gf-mal { color: var(--danger); }

@media (max-width: 900px) {
  .gf-cifras { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gf-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tb-cuerpo { gap: 26px; }
}
.badge-plan { font-weight: 700; }
.badge-chispa { background: var(--track); color: var(--tag-ink); }
.badge-prueba { background: var(--warn-bg); color: var(--warn-ink); }
.badge-pareja { background: var(--accent-soft); color: var(--accent-deep); }
.badge-siempre { background: var(--teal-soft); color: var(--teal-deep); }
.plan-usage { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.plan-usage:last-of-type { border-bottom: 0; }
.codes { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.codes code { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }

.legal { max-width: 820px; gap: 18px; }
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 18px; margin-top: 8px; }
.legal p, .legal ul { margin: 0; max-width: 72ch; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--accent); }
.legal-tabla { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.check-row a { color: var(--accent); }

.logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; }
.logo-num { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; align-items: center; }
.logo-heart { width: 0.92em; height: 0.92em; fill: var(--coral); margin: 0 1px; transform: translateY(1px); }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; align-items: baseline; gap: 5px; }
.logo-text em { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--accent); font-size: 19px; line-height: 1; }
.brand-sub { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.eyebrow { font-family: var(--font-script); font-size: 18px; color: var(--accent); margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; }
.chip, .tab, .segmented button { font-family: var(--font-display); }
.tab[aria-current="page"] { background: var(--accent); }
@media (max-width: 640px) {
  .logo-num { font-size: 20px; }
  .logo-text { font-size: 12px; }
  .logo-text em { font-size: 16px; }
}

.cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cat-bg, #e6e1dc); color: var(--cat-ink); flex: 0 0 auto; }
.cat-icon svg { width: 20px; height: 20px; }
.cat-icon-sm { width: 26px; height: 26px; }
.cat-icon-sm svg { width: 15px; height: 15px; }
.cat-icon-lg { width: 48px; height: 48px; }
.cat-icon-lg svg { width: 26px; height: 26px; }
.cat-icon[data-cat="romanticas"] { --cat-bg: #fbd5d8; color: #c2283a; }
.cat-icon[data-cat="aventura"] { --cat-bg: #fde3cf; }
.cat-icon[data-cat="gastronomia"] { --cat-bg: #fbe0dc; }
.cat-icon[data-cat="cultura"] { --cat-bg: #ece3f6; }
.cat-icon[data-cat="bienestar"] { --cat-bg: #fbdbe6; }
.cat-icon[data-cat="hogar"] { --cat-bg: #fbefc6; }
.cat-icon[data-cat="economicas"] { --cat-bg: #d9f3e6; }
.cat-icon[data-cat="viajes_colombia"] { --cat-bg: #fff0c2; }
.cat-icon[data-cat="viajes_internacionales"] { --cat-bg: #d9e9f9; }
.cat-icon[data-cat="retos"] { --cat-bg: #e0f3ee; }
.chip-cat { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.item-desc { margin-top: 4px; }
.item-note { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--rosa); background: var(--bg); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.note-box { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; }
.surprise-pick h3 { font-size: 22px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px auto 0; width: min(1200px, calc(100% - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.banner-info { background: var(--info-bg); color: var(--info-ink); }
.banner-promocion { background: var(--accent-soft); color: var(--accent-deep); }
.banner .chip { color: var(--ink); }
.banner-link { color: inherit; font-weight: 700; }
.share-dialog { width: min(960px, calc(100% - 32px)); }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
.share-canvas { display: block; width: 100%; height: auto; background: #f9f7f4; }
@media (max-width: 760px) {
  .share-grid { grid-template-columns: 1fr; }
}
.chip-cat[aria-pressed="true"] .cat-icon { background: rgba(255, 255, 255, 0.92); color: var(--cat-ink); }
.item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }

.poi-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.categorias { display: flex; flex-direction: column; gap: 16px; }
.cat-icon[data-cat="lugar_actividad"] { --cat-bg: #d9e9f9; }
.cat-icon[data-cat="lugar_atractivo"] { --cat-bg: #ece3f6; }
.cat-icon[data-cat="lugar_restaurante"] { --cat-bg: #fbe0dc; }
.cat-icon[data-cat="lugar_plato"] { --cat-bg: #fbefc6; }

.toast-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toast-link { color: var(--toast-ink); font-weight: 700; font-family: var(--font-display); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

.session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.session[data-current="true"] { border-color: var(--teal-fill); }
.session-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.theme-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-today { box-shadow: inset 0 0 0 1px var(--accent); }
.photo-thumb .photo-meta { color: #ffffff; }
.share-canvas { background: #f9f7f4; }

.search { display: flex; gap: 8px; align-items: center; flex: 1 1 220px; max-width: 360px; }
.search .input { min-height: 44px; }
.diary { display: flex; flex-direction: column; gap: 10px; }
.diary-month { font-size: 18px; margin-top: 14px; color: var(--accent); font-family: var(--font-display); }
.diary-row { align-items: center; }
.diary-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--track); }
.diary-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--font-display); font-weight: 800; flex: 0 0 auto; }
.memory-card { border-color: var(--rosa); }
.memory-card .eyebrow { font-size: 17px; }
@media (max-width: 640px) {
  .search { max-width: none; }
}

.diary-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.capsule { padding: 12px 14px; border: 1px dashed var(--field-line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.capsule-open { border-style: solid; border-color: var(--teal-fill); background: var(--teal-soft); }
.question { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.qa { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.qa:last-child { border-bottom: 0; }
.note-photo { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }

.banner-note { padding: 8px 12px; border-radius: 8px; }
.share-viewer { width: min(1000px, calc(100% - 16px)); }
.share-viewer .viewer-image { background: #0e1220; min-height: 200px; }
.share-viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }

.guide-box { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border-left: 3px solid var(--teal-fill); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.guide-grid h4 { margin: 0 0 4px; font-size: 14px; font-family: var(--font-display); }
.guide-grid ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.guide-grid p { margin: 0 0 8px; }
.guide-tip { margin: 0; }

.goal { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.goal-cumplida { border-color: var(--teal-fill); background: var(--teal-soft); }
.goal-vencida { opacity: 0.85; }
.goal p { margin: 0; }
.pace-adelantada { color: var(--teal); font-weight: 500; }
.pace-atrasada { color: var(--warn-ink); }

.verdict-box { display: flex; flex-direction: column; gap: 8px; }
.verdict-box p, .verdict-comment { margin: 0; overflow-wrap: anywhere; }
.verdict-form { display: flex; flex-wrap: wrap; gap: 8px; }
.verdict-form .input { flex: 1 1 200px; width: auto; }
.report-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.report-row:last-of-type { border-bottom: 0; }
.report-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
label.chip { display: inline-flex; align-items: center; cursor: pointer; }

.dia { gap: 20px; }
.dia h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.dia p { margin: 0; }
.dia-lista { font-size: 15px; }
.dia-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dia-bloque { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dia-bloque p { margin: 0; }
.dia-clima { font-size: 18px; }
.dia-lluvia { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info-ink); }
.dia-lluvia .chips { gap: 8px; }
.dia-idea { height: auto; padding-top: 8px; padding-bottom: 8px; text-align: left; line-height: 1.3; }
.dia-arco { width: 100%; max-width: 340px; height: auto; display: block; }
.dia-horizonte { stroke: var(--line); stroke-width: 2; }
.dia-trayecto { stroke: var(--rosa); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.dia-sol { fill: var(--star); stroke: var(--surface); stroke-width: 3; }
.dia-horas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.dia-luna-bloque { flex-direction: row; align-items: flex-start; gap: 16px; }
.dia-luna { flex: 0 0 auto; }
:root { --moon-dark: #2b3350; --moon-lit: #f3e6b0; --moon-line: #8a93a8; }
:root[data-theme="dark"] { --moon-dark: #0b0e14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --moon-dark: #0b0e14; } }
.dia-luna-base { fill: var(--moon-dark); }
.dia-luna-luz { fill: var(--moon-lit); }
.dia-luna-borde { fill: none; stroke: var(--moon-line); stroke-width: 1.5; }
.dia-lluvia-estrellas { padding: 8px 10px; border-left: 3px solid var(--rosa); background: var(--bg); border-radius: 0 8px 8px 0; font-size: 14px; }
.dia-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dia-lista li { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dia-lista li > p { flex: 1 1 100%; }
.dia-epoca { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.dia-epoca p { margin: 0; }
.dia-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.dia-cifra p { margin: 0; }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.item-luz { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--star); background: var(--bg); border-radius: 0 8px 8px 0; }
.cal-festivo { background: var(--warn-bg); }
.cal-festivo .cal-day { color: var(--warn-ink); font-weight: 700; }
.cal-festivo-nombre { font-size: 11px; line-height: 1.2; color: var(--warn-ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 640px) {
  .cal-festivo-nombre { display: none; }
  .dia-luna-bloque { flex-direction: column; }
}
.dia-lista li.dia-fila { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 8px; }

.anio-lista { gap: 10px; }
.anio-fila { display: grid !important; grid-template-columns: 32px max-content 1fr; align-items: baseline; gap: 10px; }
.anio-dia { font-family: var(--font-display); font-weight: 700; text-align: right; color: var(--muted); }
.anio-texto { min-width: 0; }
.anio-texto p { margin: 0 0 8px; overflow-wrap: anywhere; }
.anio-foto { width: 160px; max-width: 100%; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.dia-resumen { margin: 0; font-weight: 600; }
.item-regalo { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; color: var(--accent-deep); }
.invitado-fila { flex-wrap: wrap; align-items: flex-start; }
.invitado-fila .chips { flex: 1 1 100%; }
.inv-datos { display: grid; gap: 10px; margin: 0; }
.inv-datos div { display: grid; gap: 2px; }
.inv-datos dt { font-size: 13px; color: var(--muted); }
.inv-datos dd { margin: 0; font-weight: 600; text-transform: none; }
.inv-opciones { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.inv-opciones legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.inv-opcion { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.inv-opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.inv-opcion input { width: 20px; height: 20px; accent-color: var(--accent); }
.dia-lista li.dia-texto { display: block; }
.card-stack > h3, section.card h3 { font-family: var(--font-display); font-weight: 600; }

/* Primeros pasos: ciudad, tres favoritas, lo que ya hicieron y la pareja */
.arranque { border-color: var(--rosa); background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface) 150px); }
.arr-cab { display: grid; gap: 6px; }
.arr-cab h2 { margin: 0; }
.arr-cab p { margin: 0; }
.arr-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.arr-paso { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 14px var(--font-display); text-align: left; cursor: pointer; }
.arr-paso:hover { border-color: var(--field-line); }
.arr-paso[aria-current="step"] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.arr-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--track); color: var(--tag-ink); font: 700 13px var(--font-display); }
.arr-paso[data-done="true"] .arr-n { background: var(--teal-fill); color: #04210f; }
.arr-n svg { width: 16px; height: 16px; }
.arr-l { min-width: 0; line-height: 1.25; }
.arr-panel { display: grid; gap: 12px; padding-top: 4px; }
.arr-panel > p { margin: 0; }
.arr-count { margin: 0; font-weight: 600; }
.arr-pie { padding-top: 4px; }
.arr-franja { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); font-size: 14px; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.fav { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; min-height: 58px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.fav:hover { border-color: var(--field-line); }
.fav:disabled { opacity: 0.6; cursor: default; }
.fav-t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.fav-m { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.fav[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fav[aria-pressed="true"] .fav-t::after { content: " \2665"; color: var(--accent); }
.pick-list { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.pick { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.pick:hover { background: var(--track); }
.pick:has(input:checked) { background: var(--accent-soft); border-color: var(--rosa); }
.pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.pick-t { font-weight: 500; min-width: 0; }
.foto-control { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foto-acciones { display: grid; gap: 8px; min-width: 0; }
.avatar-foto { display: block; object-fit: cover; border-radius: 50%; flex: none; }
.bulk-dialog { width: min(680px, calc(100% - 32px)); }
.invita { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.invita[hidden] { display: none; }
.invita-actividad { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.invita-nota { margin: 0; padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); font-style: italic; }
.invita-texto { margin: 0; font-size: 17px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .arr-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .pick { grid-template-columns: auto auto minmax(0, 1fr); }
  .pick .small { display: none; }
  .fav-grid { grid-template-columns: minmax(0, 1fr); }
}
.chip-x { display: inline-flex; align-items: center; gap: 10px; text-align: left; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }

/* Planificador: plantillas, lista de empaque, itinerario, ideas y cuenta entre los dos */
.emp { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(120px, 170px) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.emp input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--teal-fill); }
.emp label { min-width: 0; overflow-wrap: anywhere; }
.emp-lista label { text-decoration: line-through; color: var(--muted); }
.plan-item { display: grid; gap: 8px; }
.item-edit { padding: 12px; border: 1px dashed var(--field-line); border-radius: 12px; background: var(--bg); }
.dia-itin { display: grid; gap: 8px; }
.dia-itin h3 { margin: 6px 0 0; font-size: 15px; }
.cuenta { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); }
.cuenta h3 { margin: 0; font-size: 15px; }
.cuenta p { margin: 0; }
.cuenta-saldo { font-size: 16px; }
.ideas-bloque { display: grid; gap: 6px; }
.ideas-bloque h3 { margin: 0; font-size: 15px; }
.ideas-puente { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.resumen-texto { margin: 0; padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }
@media (max-width: 640px) {
  .emp { grid-template-columns: auto minmax(0, 1fr) auto; }
  .emp select { grid-column: 2; grid-row: 2; }
  .emp .chip { grid-column: 3; grid-row: 1 / span 2; }
}

/* Tarjetas para compartir en formato historia */
.share-canvas.alta { width: auto; max-width: 100%; max-height: calc(100vh - 64px); margin: 0 auto; }

/* Página pública de la pareja y «nos inspiró» en la portada */
.publica { display: grid; gap: 14px; width: min(560px, 100%); margin: 0 auto; text-align: center; justify-items: center; }
.publica h1 { margin: 0; overflow-wrap: anywhere; }
.publica-foto { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 14px; }
.publica-num { margin: 0; display: grid; gap: 2px; }
.publica-num strong { font: 800 64px/1 var(--font-display); color: var(--accent); }
.publica-barra { width: 100%; height: 18px; accent-color: var(--accent); }
.inspira { display: grid; gap: 12px; }
.inspira-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.inspira-lista li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.inspira-lista strong { font-size: 15px; line-height: 1.3; }
.inspira-lista small { grid-column: 2; color: var(--muted); }
.banner-recomendado { margin-top: 12px; }
.codigo { font: 700 22px var(--font-display); letter-spacing: 3px; padding: 2px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); }
.foto-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foto-op { padding: 0; border: 3px solid transparent; border-radius: 12px; background: none; cursor: pointer; line-height: 0; }
.foto-op img { width: 72px; height: 72px; object-fit: cover; border-radius: 9px; display: block; }
.foto-op[aria-pressed="true"] { border-color: var(--accent); }

/* Video del álbum */
.video-barra { width: 100%; height: 14px; accent-color: var(--accent); }
.video-vista { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 12px; }

/* Para ustedes: dos diseños (cuaderno y tarjetas) para la misma lista del día */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.feed > * { min-width: 0; }
.feed-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.feed-cab h2 { margin: 0; font: 400 40px/1.1 var(--font-script); color: var(--accent); }
.feed-vistas { gap: 6px; }
.feed-pie { margin: 0; }
.feed-sello { display: inline-block; align-self: flex-start; font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border: 2px solid currentColor; border-radius: 6px; transform: rotate(-2deg); }
.feed-evento { color: #d62839; }
.feed-idea { color: var(--teal); }
.feed-lugar { color: var(--star); }
.feed-puente, .feed-temporada { color: var(--accent-deep); }
.feed-oferta { color: var(--ink); border-style: dashed; }
.feed-ciudad { color: var(--info-ink); }
.feed h3 { margin: 8px 0 2px; font: 700 17px/1.3 var(--font-display); }
.feed-texto { margin: 0; }
.feed-meta { margin: 4px 0 0; }
.feed-acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.chip-quiet { border-color: transparent; background: none; color: var(--muted); text-decoration: underline; }
.etiqueta-aliado { margin: 0; align-self: flex-start; font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border: 2px dashed currentColor; border-radius: 6px; width: fit-content; }

/* Diseño 1: cuaderno */
.cuaderno { list-style: none; margin: 0; padding: 6px 12px 6px 46px; position: relative; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cuaderno::before { content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 12px; background: radial-gradient(circle at 6px 6px, var(--bg) 0 4px, var(--field-line) 4.5px 5.5px, transparent 6px) 0 0 / 12px 30px repeat-y; }
.cuaderno::after { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 2px; background: var(--rosa); opacity: .7; }
.hoja { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 16px 6px 16px 4px; border-bottom: 1px dashed var(--line); }
.hoja:last-child { border-bottom: 0; }
.hoja-icono { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.hoja-evento .hoja-icono { color: #d62839; }
.hoja-idea .hoja-icono { color: var(--teal); }
.hoja-lugar .hoja-icono { color: var(--star); }
.hoja-puente .hoja-icono, .hoja-temporada .hoja-icono { color: var(--accent-deep); }
.hoja-cuerpo { min-width: 0; display: flex; flex-direction: column; }
.hoja-aliado { margin: 8px 0; padding: 14px 12px; border: 1px dashed var(--field-line); border-radius: 12px; background: var(--bg); }

/* Diseño 2: tarjetas */
.tira { position: relative; }
.tira-lista { list-style: none; margin: 0; padding: 4px 2px 14px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carta { flex: 0 0 min(272px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.carta-cima { height: 112px; display: grid; place-items: center; color: #fff; background: #d62839; }
.carta-cima svg { width: 56px; height: 56px; }
.carta-idea .carta-cima { background: #047857; }
.carta-lugar .carta-cima { background: #b45309; }
.carta-puente .carta-cima, .carta-temporada .carta-cima { background: #7a1f3c; }
.carta-oferta .carta-cima { background: #1f2937; box-shadow: inset 0 -4px 0 #f5b942; }
.carta-ciudad .carta-cima { background: #2b3a67; }
.carta-cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.carta-cuerpo .feed-acciones { margin-top: auto; padding-top: 10px; }
.carta-aliado { border-style: dashed; border-color: var(--field-line); }
.tira-flecha { position: absolute; top: 34px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px var(--shadow); }
.tira-prev { left: -10px; }
.tira-next { right: -10px; }
@media (max-width: 640px) {
  .tira-flecha { display: none; }
  .feed-cab h2 { font-size: 34px; }
  .cuaderno { padding-left: 40px; }
  .cuaderno::after { left: 30px; }
}

/* Su Inicio (en Pareja) y oferta de un aliado */
.opciones { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.opcion { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opcion input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.opcion small { display: block; margin-top: 2px; }
.oferta-codigo { font: 700 28px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 3px; padding: 10px 18px; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); cursor: pointer; min-height: 56px; }
.oferta-dialog a { color: var(--accent); font-weight: 600; }

/* Catálogo vivo: «Para hoy», el reto del mes, descartadas y «Deshacer» */
button.toast-link { background: none; border: 0; padding: 0 4px; font-size: inherit; cursor: pointer; }
.hoy-card { border-left: 6px solid var(--coral); }
.hoy-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; }
.hoy-cab h2 { margin: 0; }
.hoy-clima { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 500; font-size: 14px; }
.hoy-lluvia { background: var(--info-bg); color: var(--info-ink); }
.hoy-sub { margin: 4px 0 0; font: 700 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hoy-agenda, .hoy-ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hoy-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.hoy-plan { border-left: 4px solid var(--teal-fill); }
.hoy-recordatorio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--warn-ink); }
.tag-aviso { background: var(--warn-bg); color: var(--warn-ink); }
.hoy-idea { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hoy-idea:last-child { border-bottom: 0; }
.hoy-idea-cuerpo { display: flex; flex-direction: column; gap: 3px; flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.hoy-idea-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hoy-razones { display: flex; flex-wrap: wrap; gap: 6px; }
.hoy-razon { font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); }
.hoy-azar { padding-top: 6px; border-top: 1px dashed var(--line); }
.hoy-azar:empty { display: none; }
.hoy-filtros { margin: 0; }
.reto-card { border-left: 6px solid var(--teal-fill); }
.reto-hechas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.reto-hechas li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.reto-marca { color: var(--teal); font-weight: 700; }
.item-descartada { border-style: dashed; }
.item-descartada .item-title { color: var(--muted); }

/* Para ustedes como feed y la vista del aliado */
.fp { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.fp-cab h1 { margin: 0; font: 400 40px/1.1 var(--font-script); color: var(--accent); }
.fp-filtros { padding: 4px 0; }
.post-lista { display: flex; flex-direction: column; gap: 18px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.post-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px 10px; }
.post-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--track); color: var(--ink); font: 700 18px var(--font-display); }
.post-avatar svg { width: 24px; height: 24px; }
.post-avatar-oferta { background: var(--accent-soft); color: var(--accent-deep); }
.post-autor { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.post-foto { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--track); }
.post-cima { height: 120px; display: grid; place-items: center; color: #fff; background: #1f2937; box-shadow: inset 0 -4px 0 #f5b942; }
.post-cima svg { width: 56px; height: 56px; }
.post-cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 16px; }
.post-titulo { margin: 0; font-size: 19px; line-height: 1.25; }
.post-cuerpo p { margin: 0; }
.post-aliado { border-style: dashed; border-color: var(--field-line); }
.post-fin { height: 1px; }
.fp-mas { display: flex; justify-content: center; }
.aliado-acuerdo { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.aliado-estado { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 500; }
.aliado-estado-si { background: var(--teal-soft); color: var(--teal-deep); }
.aliado-estado-no { background: var(--warn-bg); color: var(--warn-ink); }
.aliado-barras { width: 100%; height: auto; max-height: 150px; }
.aliado-barra { fill: var(--accent); }
.aliado-barra-vacia { fill: var(--track); }
.aliado-linea { stroke: var(--line); stroke-width: 1; }
.aliado-cifras { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.aliado-cifras div { display: flex; flex-direction: column; }
.aliado-cifras dd { margin: 0; }
.aliado-foto { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.aliado-foto-img { width: 160px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.aliado-foto-vacia { width: 160px; height: 100px; display: grid; place-items: center; border-radius: 10px; border: 1px dashed var(--field-line); color: var(--muted); font-size: 14px; }
.aliado-apoyos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.fieldset-acuerdo { border: 1px dashed var(--field-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fieldset-acuerdo legend { font: 700 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
@media (max-width: 640px) { .aliado-apoyos { grid-template-columns: minmax(0, 1fr); } .fp-cab h1 { font-size: 34px; } }
@media print { .topbar, .footer, .chips, .aliado-oferta button { display: none !important; } }

/* A distancia: videollamada, cuenta regresiva del encuentro, cartas y la otra ciudad */
.icono-video { flex: none; vertical-align: -3px; margin-right: 6px; }
.item-distancia { margin: 4px 0 0; display: flex; align-items: flex-start; gap: 6px; color: var(--teal-deep); }
.item-distancia .icono-video { margin: 2px 0 0; color: var(--teal); }
.encuentro { border-left: 6px solid var(--teal-fill); }
.encuentro h2 { margin: 0; }
.encuentro-cuando { margin: 0; font-weight: 500; }
.encuentro-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.encuentro-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.encuentro-form { padding-top: 6px; }
.carta-aviso { border-left: 6px solid var(--accent); }
.carta-texto { white-space: pre-wrap; margin: 0; line-height: 1.6; }
.carta-mia { color: var(--muted); }
.carta-dialog .carta-texto { font-size: 17px; }
.dia-segunda { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.dia-segunda h3, .dia-segunda p { margin: 0; }

/* Cuenta y ayuda: centro de ayuda, reportar un problema, pausa del espacio y entrar con enlace */
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.footer .chip { font-size: 13px; }
.ayuda-buscar { max-width: 640px; }
.ayuda-lista-secciones { display: flex; flex-direction: column; gap: 10px; }
.ayuda-seccion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 16px; }
.ayuda-seccion summary { min-height: 48px; display: flex; align-items: center; padding: 10px 18px; cursor: pointer; font-family: var(--font-display); font-weight: 600; overflow-wrap: anywhere; }
.ayuda-seccion[open] summary { border-bottom: 1px solid var(--line); }
.ayuda-cuerpo { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; max-width: 76ch; }
.ayuda-cuerpo p { margin: 0; }
.ayuda-lista { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.ayuda-lista .ayuda-lista { margin-top: 6px; }
.ayuda-cuerpo code { background: var(--track); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; overflow-wrap: anywhere; }
mark { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.reporte-dialog { width: min(640px, calc(100% - 32px)); }
.reporte-detalle { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--field-line); border-radius: 10px; background: var(--bg); }
.reporte-datos { margin: 0; display: grid; gap: 8px; font-size: 13px; }
.reporte-datos > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 12px; }
.reporte-datos dt { color: var(--muted); font-weight: 500; }
.reporte-datos dd { margin: 0; overflow-wrap: anywhere; }
.reporte-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.reporte-tecnico summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; }
@media (max-width: 520px) { .reporte-datos > div { grid-template-columns: minmax(0, 1fr); } }
.pausa-card { border-left: 6px solid var(--warn-ink); }
.pausa-confirmar { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); }
.pausa-confirmar p { margin: 0; }
.banner-pausa { border-left: 6px solid var(--warn-ink); }
.auth-card .small a { display: inline-flex; align-items: center; min-height: 44px; }

/* Su año: cifras, dónde estuvieron y con qué fotos */
.anio-lista { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.anio-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.anio-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--track); display: block; }

/* Mapa de lugares (Leaflet alojado en el propio servidor) */
.mapa { height: 440px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--track); position: relative; z-index: 0; }
@media (max-width: 640px) { .mapa { height: 340px; } }
.mapa-leyenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.mapa-leyenda li { display: inline-flex; align-items: center; gap: 8px; }
.mapa-punto { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--field-line); }
.mapa-punto-quiero { background: var(--accent); }
.mapa-punto-visitado { background: var(--teal); }
.mapa-punto-mixto { background: linear-gradient(135deg, var(--accent) 50%, var(--teal) 50%); }
.mapa-punto-corazon { color: var(--accent); font-size: 18px; line-height: 1; }
.mapa-pin-envoltorio { background: none; border: 0; }
.mapa-pin { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-display); border: 3px solid #ffffff; box-shadow: 0 2px 8px rgba(31, 41, 55, 0.4); color: #ffffff; }
.mapa-pin-quiero { background: #d62839; }
.mapa-pin-visitado { background: #047857; }
.mapa-pin-mixto { background: linear-gradient(135deg, #d62839 50%, #047857 50%); }
.mapa-pin-casa { background: #1f2937; }
.mapa-pin { position: relative; }
.mapa-pin-corazon { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; color: #d62839; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 1px 4px rgba(31, 41, 55, 0.4); }
.mapa-popup { font-family: var(--font-body); color: #1f2937; max-width: 240px; }
.mapa-popup p, .mapa-popup ul { margin: 4px 0 0; }
.mapa-popup ul { padding-left: 18px; }
.mapa-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mapa-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mapa-fila p { margin: 0; }
.leaflet-container a { color: var(--accent); }
.mapa .leaflet-bar a, .mapa .leaflet-bar a:hover, .mapa.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.mapa .leaflet-popup a.leaflet-popup-close-button { width: 44px; height: 44px; font-size: 24px; line-height: 44px; top: 0; right: 0; }
.mapa .leaflet-popup-content { margin: 12px 36px 12px 16px; }

/* Sin conexión y envíos en espera */
.banner-cola { border-left: 6px solid var(--info-ink); background: var(--info-bg); color: var(--info-ink); }
.banner-cola .cola-falla { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; color: var(--warn-ink); background: var(--warn-bg); padding: 6px 10px; border-radius: 8px; }
.item[data-queued="true"] { border-style: dashed; }

/* Buscador del panel, errores del servidor y aviso de vencimiento del plan */
.busqueda-panel { display: flex; gap: 8px; width: 100%; max-width: 1400px; margin: 0 auto; padding: 14px 32px 0; }
.busqueda-panel .input { flex: 1 1 auto; max-width: 560px; min-height: 44px; }
.busqueda-panel .btn { min-height: 44px; }
@media (max-width: 480px) {
  .busqueda-panel { padding: 12px 16px 0; }
}
.gf-resultados { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gf-resultados li { border-top: 1px solid var(--line); padding: 8px 0; }
.gf-resultados li:first-child { border-top: 0; }
.gf-resultado { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.gf-resultado a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; overflow-wrap: anywhere; }
.gf-error-msg { min-width: 0; overflow-wrap: anywhere; }
.gf-rastro { margin: 8px 0 0; padding: 12px; overflow-x: auto; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; line-height: 1.5; white-space: pre; }
.plan-vence { margin: 0; padding: 10px 14px; border-radius: 10px; border-left: 6px solid var(--warn-ink); background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
