/* ===========================================================================
   Viaje a Albania — estilos. Paleta mediterránea, mobile-first.
   =========================================================================== */
:root {
  --terracota: #B8552A;
  --mar: #2F6E8C;
  --mar-dark: #245870;
  --oliva: #6B7A3B;
  --crema: #FAF5EE;
  --dorado: #C8923B;

  --ink: #2C2622;
  --ink-soft: #6E655C;
  --line: #E9DFD2;
  --card: #FFFFFF;
  --bg: #FAF5EE;

  --ok: #4F8A4A;
  --ok-soft: #EAF4E8;
  --bad: #C0492F;
  --bad-soft: #FBEAE5;
  --warn: #C8923B;
  --warn-soft: #FBF1DD;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(44,38,34,.05), 0 6px 20px rgba(44,38,34,.06);
  --shadow-sm: 0 1px 3px rgba(44,38,34,.07);
  --tabbar-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--mar); }
[hidden] { display: none !important; }

/* ---------------- LOGIN ---------------- */
.login {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 120% at 50% 0%, #3a7e9e 0%, var(--mar) 45%, var(--mar-dark) 100%);
}
.login-card {
  width: 100%; max-width: 360px; text-align: center;
  background: var(--card); border-radius: 22px; padding: 34px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-emoji { font-size: 46px; }
.login-card h1 { font-size: 24px; margin-top: 6px; color: var(--ink); }
.login-sub { color: var(--ink-soft); margin: 4px 0 22px; font-size: 14px; }
.login-card input {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 14px;
  background: var(--crema);
}
.login-card input:focus { outline: none; border-color: var(--mar); background: #fff; }
.login-error { color: var(--bad); font-size: 14px; margin: 12px 0 0; }

/* ---------------- BUTTONS ---------------- */
.btn { border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 11px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.btn-primary { background: var(--mar); border-color: var(--mar); color: #fff; }
.btn-primary:active { background: var(--mar-dark); }
.btn-block { width: 100%; }
.icon-btn { border: none; background: transparent; font-size: 20px; color: var(--ink);
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.icon-btn:active { background: rgba(0,0,0,.06); }

/* ---------------- TOPBAR + NAV ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--mar); color: #fff;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 2px 12px rgba(36,88,112,.25);
}
.topbar-inner { display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; max-width: 1000px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-flag { font-size: 26px; }
.brand-title { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; opacity: .85; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.topbar .icon-btn { color: #fff; }
.sync-pill { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.18); white-space: nowrap; }
.sync-pill.ok { background: rgba(255,255,255,.22); }
.sync-pill.saving { background: var(--dorado); color: #3a2a08; }
.sync-pill.off { background: var(--bad); }

/* desktop inline tabs (hidden on mobile) */
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop .tab { border: none; background: transparent; color: rgba(255,255,255,.82);
  font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: .15s; }
.nav-desktop .tab span { font-size: 15px; }
.nav-desktop .tab:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-desktop .tab.is-active { color: #fff; background: rgba(255,255,255,.22); }

/* dropdown menu (mobile: nav + options · desktop: options only) */
.menu { position: absolute; right: 12px; top: calc(100% + 6px); z-index: 60;
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 7px; min-width: 240px; max-width: calc(100vw - 24px);
  animation: menuin .16s ease; }
@keyframes menuin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: none; background: none; padding: 12px 13px; border-radius: 11px; font-size: 15px;
  font-weight: 600; color: var(--ink); }
.menu button span { font-size: 18px; width: 22px; text-align: center; }
.menu button:active, .menu button:hover { background: var(--crema); }
.menu-tab.is-active { background: #E6F0F4; color: var(--mar-dark); }
.menu-divider { height: 1px; background: var(--line); margin: 6px 8px; }

/* ---------------- LAYOUT ---------------- */
#views { max-width: 880px; margin: 0 auto;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 20px); }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); margin: 22px 4px 10px; }
.section-title:first-child { margin-top: 6px; }

/* ---------------- CARDS ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 12px; }

.hero {
  background: linear-gradient(135deg, var(--mar) 0%, var(--mar-dark) 100%);
  color: #fff; border: none; border-radius: var(--radius); padding: 20px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.hero h2 { font-size: 21px; }
.hero .hero-dest { opacity: .9; font-size: 14px; margin-top: 3px; }
.countdown { display: flex; gap: 10px; margin-top: 16px; }
.cd-box { background: rgba(255,255,255,.15); border-radius: 12px; padding: 10px 6px; text-align: center; flex: 1; }
.cd-num { font-size: 24px; font-weight: 800; line-height: 1; }
.cd-lab { font-size: 11px; opacity: .85; margin-top: 4px; }

/* metric grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; box-shadow: var(--shadow-sm); }
.metric .m-lab { font-size: 12.5px; color: var(--ink-soft); }
.metric .m-val { font-size: 22px; font-weight: 800; margin-top: 4px; }
.metric .m-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.m-val.green { color: var(--ok); } .m-val.red { color: var(--bad); } .m-val.gold { color: var(--dorado); }

/* progress bar */
.progress { height: 10px; border-radius: 999px; background: var(--crema);
  overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--oliva), #8aa04e); transition: width .4s ease; }
.progress.mar > span { background: linear-gradient(90deg, var(--mar), #4a90b0); }
.progress.gold > span { background: linear-gradient(90deg, var(--dorado), #e0ad5a); }
.progress.over > span { background: linear-gradient(90deg, var(--bad), #d8654a); }
.progress-row { display: flex; justify-content: space-between; font-size: 13px;
  color: var(--ink-soft); margin-bottom: 7px; }
.progress-row b { color: var(--ink); }

/* reminders / callouts */
.callout { display: flex; gap: 11px; align-items: flex-start; background: var(--warn-soft);
  border: 1px solid #EBD9B4; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.callout .ic { font-size: 18px; line-height: 1.3; }
.callout.mar { background: #E6F0F4; border-color: #C8E0E9; }

/* todo list (urgentes) */
.todo { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: none; }
.todo .t-ic { font-size: 20px; }
.todo .t-main { flex: 1; }
.todo .t-title { font-weight: 600; font-size: 15px; }
.todo .t-sub { font-size: 12.5px; color: var(--ink-soft); }
.empty-good { text-align: center; padding: 18px; color: var(--ok); font-weight: 600; }

/* ---------------- BADGES ---------------- */
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.urg { background: var(--bad-soft); color: var(--bad); }
.badge.pro { background: var(--warn-soft); color: #9a6a1c; }
.badge.nor { background: #E6F0F4; color: var(--mar-dark); }
.badge.tar { background: #EFEAE2; color: var(--ink-soft); }
.badge.day { background: var(--ok-soft); color: var(--ok); }
.badge.fly { background: #E6F0F4; color: var(--mar-dark); }
.badge.done { background: var(--ok-soft); color: var(--ok); }

/* ---------------- ITINERARIO ---------------- */
.day-card { display: flex; gap: 14px; }
.day-rail { display: flex; flex-direction: column; align-items: center; }
.day-num { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--mar); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; line-height: 1; text-align: center; }
.day-num small { font-size: 9px; font-weight: 600; opacity: .85; display: block; }
.day-line { flex: 1; width: 2px; background: var(--line); margin: 6px 0; }
.day-body { flex: 1; padding-bottom: 4px; }
.day-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-date { font-size: 12.5px; color: var(--ink-soft); }
.day-title { font-weight: 700; font-size: 16px; margin: 2px 0 6px; }
.day-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.day-meta b { color: var(--ink); font-weight: 600; }
.day-acts { list-style: none; margin: 0; padding: 0; }
.day-acts li { position: relative; padding: 3px 0 3px 18px; font-size: 14px; }
.day-acts li::before { content: "•"; position: absolute; left: 4px; color: var(--dorado); font-weight: 700; }

/* ---------------- RUTA ---------------- */
#map { height: 340px; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); margin-bottom: 14px; z-index: 1; }
.leaflet-container { font-family: var(--font); }
.route-stop { display: flex; gap: 13px; align-items: flex-start; }
.route-rail { display: flex; flex-direction: column; align-items: center; }
.route-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--terracota); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 12px; box-shadow: 0 0 0 4px rgba(184,85,42,.15); }
.route-dot.poi { background: var(--oliva); box-shadow: 0 0 0 4px rgba(107,122,59,.15); }
.route-line { flex: 1; width: 2px; background: var(--line); margin: 4px 0; min-height: 18px; }
.route-body { flex: 1; padding-bottom: 14px; }
.route-name { font-weight: 700; font-size: 16px; }
.route-note { font-size: 13px; color: var(--ink-soft); }
.route-tags { display: flex; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.route-tag { font-size: 11.5px; font-weight: 600; color: var(--mar-dark); background: #E6F0F4;
  border-radius: 999px; padding: 2px 9px; }
.route-tag.km { background: var(--crema); color: var(--ink-soft); }

/* horario del tramo */
.route-leg { margin-top: 9px; background: var(--crema); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; }
.rl-dia { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink-soft); margin-bottom: 7px; }
.rl-times { display: flex; align-items: center; gap: 8px; }
.rl-t { flex: 1; display: flex; flex-direction: column; }
.rl-t span { font-size: 11px; color: var(--ink-soft); }
.rl-t b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rl-arrow { color: var(--dorado); font-weight: 800; font-size: 16px; flex: none; }
.rl-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; }
.rl-note { font-size: 12.5px; color: #9a6a1c; background: var(--warn-soft); border-radius: 8px;
  padding: 6px 9px; margin-top: 7px; line-height: 1.4; }

/* ---------------- RESERVAS ---------------- */
.res-card { padding: 0; overflow: hidden; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease; }
.res-card:active { transform: scale(.985); }
.todo, .bud-row[data-open] { cursor: pointer; }
.res-main { display: flex; align-items: center; gap: 12px; padding: 14px 15px; }
.res-card.is-done .res-main { background: var(--ok-soft); }
.res-ico { font-size: 24px; flex: none; }
.res-info { flex: 1; min-width: 0; }
.res-title { font-weight: 700; font-size: 15px; }
.res-card.is-done .res-title { text-decoration: line-through; color: var(--ink-soft); }
.res-tags { display: flex; align-items: center; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.res-price { font-size: 13px; color: var(--ink-soft); }
.res-price b { color: var(--ink); }
.res-check { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 17px; color: transparent; background: #fff; }
.res-card.is-done .res-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.res-warn { color: var(--warn); font-size: 16px; }
.res-edit { font-size: 12.5px; }

/* ---------------- PRESUPUESTO TABLE ---------------- */
.bud-row { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.bud-row:last-child { border-bottom: none; }
.bud-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink-soft); background: var(--crema); }
.bud-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bud-nums { display: flex; flex: none; }
.bud-c { width: 74px; text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bud-head .bud-c { font-size: 12px; }
.bud-total { background: var(--crema); font-weight: 800; }
.bud-total .bud-name, .bud-total .bud-c { font-weight: 800; }
@media (max-width: 380px) { .bud-c { width: 62px; font-size: 12.5px; } }

/* ---------------- MODAL ---------------- */
/* móvil: hoja inferior (bottom-sheet) · desktop: centrado */
.modal { position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: flex-end; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,24,20,.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal-card { position: relative; background: #fff; width: 100%; max-width: 560px; margin: 0 auto;
  border-radius: 22px 22px 0 0; max-height: 90vh; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 -10px 50px rgba(0,0,0,.32); animation: slideup .28s cubic-bezier(.2,.85,.25,1); }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes popin { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { flex: none; background: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; padding-right: 8px; }
.modal-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px); }
body.modal-open { overflow: hidden; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; font-size: 16px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--crema); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mar); background: #fff; }
.field textarea { resize: vertical; min-height: 64px; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.field .hint a { word-break: break-all; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.toggle-line { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--crema); border-radius: 12px; margin-bottom: 16px; }
.toggle-line .tl-txt { font-weight: 600; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cfc6ba; border-radius: 999px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------------- FOOT / TOAST ---------------- */
.foot { text-align: center; font-size: 12px; color: var(--ink-soft);
  padding: 6px 16px calc(env(safe-area-inset-bottom) + 22px); }
.toast { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 22px); z-index: 300;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: fade .2s ease; max-width: 90%; }
.toast.bad { background: var(--bad); }
.toast.good { background: var(--ok); }

/* ---------------- CRUD: add btn, callouts, selects, emoji ---------------- */
.add-btn { width: 100%; border: 1.5px dashed var(--mar); background: rgba(47,110,140,.06);
  color: var(--mar); font-family: inherit; font-weight: 700; font-size: 14.5px; padding: 13px;
  border-radius: var(--radius-sm); margin-bottom: 12px; cursor: pointer; transition: .12s; }
.add-btn:active { transform: scale(.99); background: rgba(47,110,140,.12); }

.callout div { flex: 1; }
.callout.tappable { cursor: pointer; }
.callout-edit { flex: none; color: var(--mar); opacity: .55; font-size: 15px; align-self: center; }

.field select { width: 100%; padding: 11px 12px; font-size: 16px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--crema); color: var(--ink); }
.field select:focus { outline: none; border-color: var(--mar); background: #fff; }

.btn-danger { background: var(--bad-soft); border-color: #f0cfc6; color: var(--bad); margin-top: 6px; }
.btn-danger:active { background: #f6dcd4; }

/* documentos */
.files { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.files-empty { font-size: 13px; color: var(--ink-soft); padding: 4px 2px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: var(--crema); border: 1px solid var(--line); border-radius: 11px; }
.file-ic { font-size: 20px; flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: 12px; color: var(--ink-soft); }
.file-btn { flex: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; font-size: 16px; text-decoration: none; color: var(--ink); cursor: pointer; }
.file-btn:active { background: var(--crema); }
.file-btn.del { border-color: #f0cfc6; }
.file-add { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }

.emoji-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.emoji-pick .emoji { width: 42px; height: 42px; font-size: 20px; border: 1.5px solid var(--line);
  background: var(--crema); border-radius: 11px; display: grid; place-items: center; cursor: pointer; }
.emoji-pick .emoji.sel { border-color: var(--mar); background: #E6F0F4; box-shadow: 0 0 0 2px rgba(47,110,140,.18); }

/* ---------------- PLAN SWITCH (original / propuesta) ---------------- */
.plan-switch { display: flex; gap: 4px; background: var(--crema); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; margin-bottom: 10px; }
.plan-opt { flex: 1; border: none; background: transparent; font-family: inherit; font-weight: 700;
  font-size: 14px; color: var(--ink-soft); padding: 9px 10px; border-radius: 999px; cursor: pointer; transition: .15s; }
.plan-opt.is-active { background: var(--mar); color: #fff; box-shadow: var(--shadow-sm); }
.plan-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; background: #E6F0F4;
  border: 1px solid #C8E0E9; border-radius: 12px; padding: 11px 13px; margin-bottom: 14px; }
.plan-nota { margin-top: 7px; color: #6a5212; background: var(--warn-soft); border-radius: 8px; padding: 7px 9px; }
.cmp-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp-row:last-of-type { border-bottom: none; }
.cmp-row b { font-variant-numeric: tabular-nums; font-size: 16px; }
.cmp-on { color: var(--mar); }
.cmp-on::after { content: " ✓"; color: var(--ok); font-size: 13px; }

/* ---------------- CONSEJOS / TIPS ---------------- */
.tips-card { padding: 0; overflow: hidden; }
.tip { display: flex; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tip:last-child { border-bottom: none; }
.tip.aviso { background: var(--warn-soft); }
.tip-ic { font-size: 18px; flex: none; line-height: 1.4; }
.tip-body { flex: 1; min-width: 0; }
.tip-t { font-weight: 700; font-size: 14.5px; }
.tip-d { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }

/* ---------------- CONFIRM DIALOG ---------------- */
.confirm { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; }
.confirm .modal-backdrop { background: rgba(30,24,20,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.confirm-card { position: relative; background: #fff; width: 100%; max-width: 360px; border-radius: 20px;
  padding: 26px 22px 20px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.42); animation: popin .2s ease; }
.confirm-emoji { font-size: 40px; line-height: 1; }
.confirm-card h3 { font-size: 19px; margin-top: 10px; }
.confirm-card p { font-size: 14.5px; color: var(--ink-soft); margin: 9px 0 20px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; padding: 13px; }

/* ---------------- PASSWORD EYE ---------------- */
.pass-wrap { position: relative; margin-bottom: 14px; }
.pass-wrap input { margin-bottom: 0 !important; padding-right: 46px !important; }
.pass-eye { position: absolute; right: 4px; top: 0; height: 100%; width: 42px; border: none;
  background: transparent; font-size: 19px; display: grid; place-items: center; cursor: pointer; border-radius: 9px; }
.pass-eye:active { background: rgba(0,0,0,.06); }

/* ---------------- DESKTOP ---------------- */
@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .nav-desktop .tab span { display: none; }  /* texto sin icono = compacto */
  .menu-nav { display: none; }               /* en desktop el ☰ solo muestra opciones */
}
@media (min-width: 720px) {
  #map { height: 440px; }
  .grid3 { gap: 12px; }
  .modal { justify-content: center; padding: 24px; }
  .modal-card { border-radius: 20px; max-height: 86vh; animation: popin .2s ease;
    box-shadow: 0 24px 70px rgba(0,0,0,.4); }
}
