/* LUBRA · estilos. Rem-based: el botón "A+" agranda todo el texto. */
:root {
  --brand: #0b74de; --brand2: #06b6d4; --brand-soft: #e6f1fd; --accent: #ff7a3d;
  --bg: #f3f7fc; --surface: #ffffff; --text: #0f1b2d; --muted: #566780; --line: #dfe8f2;
  --ok: #15803d; --ok-bg: #e3f6e9; --warn: #b45309; --warn-bg: #fdf0d9; --bad: #b91c1c; --bad-bg: #fde7e7; --info: #0b5fb8; --info-bg: #e2effc;
  --radius: 18px; --shadow: 0 6px 22px rgba(15, 60, 120, .09);
  font-size: 15px; color-scheme: light;
}
@media (min-width: 900px) { :root { font-size: 16px; } }
html.big { font-size: 18px; }
@media (min-width: 900px) { html.big { font-size: 19px; } }
html.dark {
  --bg: #0a111f; --surface: #121c30; --text: #eaf1fb; --muted: #9aaac1; --line: #22304a; --brand: #3b9cff; --brand-soft: #14294a;
  --ok: #4ade80; --ok-bg: #12301f; --warn: #fbbf24; --warn-bg: #33270d; --bad: #f87171; --bad-bg: #3a1616; --info: #7cc0ff; --info-bg: #10284a; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 0; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* utilidades */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; }
.stack-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-content: start; }
.hero-card, .wizard, .offer, .two-col > * { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.page { min-width: 0; }
.row { display: flex; gap: .6rem; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap, .wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .pre { white-space: pre-wrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.narrow { max-width: 760px; }
.big-emoji { font-size: 2.2rem; line-height: 1; }

/* estructura */
.shell { min-height: 100vh; padding-bottom: 84px; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.role-chip { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.role-chip.role-tech { background: var(--warn-bg); color: var(--warn); } .role-chip.role-admin { background: #ede9fe; color: #6d28d9; }
@media (max-width: 560px) { .role-chip { display: none; } .topbar { gap: .2rem; padding: .5rem .6rem; } }
.brand span { letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; }
.icon-btn { position: relative; min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); font-size: 1.15rem; cursor: pointer; }
.icon-btn:hover { background: var(--brand-soft); text-decoration: none; }
.bell-n, .dot { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.nav-item { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .45rem .1rem; color: var(--muted); font-size: .68rem; font-weight: 600; }
.nav-item:hover { text-decoration: none; }
.nav-item .ico { font-size: 1.45rem; line-height: 1.2; }
.nav-item .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-item.active { color: var(--brand); }
.nav-item .dot { top: 2px; right: calc(50% - 26px); }
.page { padding: 1rem; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; padding-bottom: 0; }
  .topbar { grid-column: 1 / -1; }
  .nav { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 1rem .7rem; gap: .2rem; box-shadow: none; }
  .nav-item { flex: 0; flex-direction: row; justify-content: flex-start; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; font-size: 1rem; }
  .nav-item.active { background: var(--brand-soft); }
  .nav-item .dot { top: 50%; right: 12px; transform: translateY(-50%); }
  .page { padding: 1.6rem 2rem 3rem; }
}

/* tarjetas y botones */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .55rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: center; transition: transform .08s, box-shadow .15s; }
.btn:hover { text-decoration: none; box-shadow: 0 3px 12px rgba(0, 0, 0, .12); } .btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-color: transparent; }
.btn.success { background: #16a34a; color: #fff; border-color: transparent; }
.btn.danger { background: #dc2626; color: #fff; border-color: transparent; }
.btn.danger.ghost { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: .3rem .8rem; font-size: .9rem; border-radius: 12px; }
.btn.big { min-height: 56px; font-size: 1.1rem; width: 100%; }
.badge { display: inline-block; padding: .18rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); } .badge.done { background: #ede9fe; color: #6d28d9; }
.note { padding: .8rem 1rem; border-radius: 14px; background: var(--info-bg); color: var(--text); border: 1px solid transparent; }
.note.warn { background: var(--warn-bg); } .note.ok { background: var(--ok-bg); } .note.bad { background: var(--bad-bg); } .note.info { background: var(--info-bg); }
.linkbox { display: block; font-weight: 700; } .linkbox:hover { text-decoration: none; filter: brightness(.97); }
.bad-card { border-color: var(--bad); } .warn-card { border-color: var(--warn); } .danger-zone { border-color: var(--bad); }

/* formularios */
.field { display: grid; gap: .3rem; } .lbl { font-weight: 700; font-size: .92rem; } .hint { color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: max(1rem, 16px); }
.input.auto { width: auto; } textarea.input { resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.big-input { font-size: 1.6rem; font-weight: 800; }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; } .check.inline { align-items: center; }
.check input { width: 22px; height: 22px; margin-top: .1rem; flex: none; accent-color: var(--brand); }
.form-error { padding: .7rem .9rem; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 42px; padding: .35rem .95rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tiles { display: grid; gap: .8rem; } .tiles.two { grid-template-columns: repeat(2, 1fr); } .tiles.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; gap: .25rem; justify-items: center; text-align: center; padding: 1rem .7rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: transform .1s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--brand); }
.tile.on { border-color: var(--brand); background: var(--brand-soft); }
.tile small { color: var(--muted); }
.tile.service { --c: var(--brand); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.tile.service:hover, .tile.service.on { border-color: var(--c); }

/* asistente y pasos */
.wizard { display: grid; gap: 1.2rem; max-width: 820px; margin: 0 auto; }
.wizard-nav { display: flex; gap: .8rem; justify-content: space-between; position: sticky; bottom: 76px; padding: .7rem 0; background: linear-gradient(transparent, var(--bg) 30%); }
.wizard-nav .btn { flex: 1; }
@media (min-width: 900px) { .wizard-nav { bottom: 0; } }
.stepper { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--muted); font-size: .72rem; text-align: center; position: relative; }
.stepper .n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--line); font-weight: 800; z-index: 1; }
.stepper li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.done .n, .stepper li.on .n { background: var(--brand); color: #fff; } .stepper li.done::before, .stepper li.on::before { background: var(--brand); }
.stepper li.on { color: var(--text); font-weight: 700; }
.stepper .t { display: none; } .stepper li.on .t { display: block; }
@media (min-width: 700px) { .stepper .t { display: block; } .stepper { font-size: .8rem; } }
.stepper.slim .n { width: 24px; height: 24px; font-size: .75rem; } .stepper.slim li::before { top: 11px; }

/* inicio */
.hero-card { padding: 1.3rem; border-radius: 24px; color: #fff; display: grid; gap: 1rem; background: radial-gradient(circle at 90% 0%, #22d3ee 0%, transparent 45%), linear-gradient(135deg, #0b74de, #4f46e5); }
.hero-card h1 { font-size: 1.8rem; } .hero-card p { opacity: .92; }
.hero-card .tile { color: var(--text); }

/* listas de servicio */
.req { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; color: var(--text); --c: var(--brand); }
.req:hover { text-decoration: none; border-color: var(--c); }
.req-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--c) 16%, var(--surface)); flex: none; }
.req-side { display: grid; gap: .3rem; justify-items: end; }
.reminder.overdue { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--surface)); } .reminder.soon { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.two-col { display: grid; gap: 1rem; } @media (min-width: 1000px) { .two-col { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; } .specs dt { color: var(--muted); font-weight: 600; } .specs dd { margin: 0; overflow-wrap: anywhere; }
.price { font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.offer { display: grid; gap: .6rem; } .offer.best { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.big-date { font-size: 1.35rem; font-weight: 800; } .big-time { font-size: 2rem; font-weight: 800; color: var(--brand); }
.appt, .next { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.locked { padding: 1rem; text-align: center; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); }
.empty { display: grid; gap: .5rem; justify-items: center; text-align: center; padding: 2rem 1rem; color: var(--muted); } .empty h3 { color: var(--text); } .empty-mini { text-align: center; display: grid; gap: .3rem; justify-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; border-left: 3px solid var(--line); padding-left: .9rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; } .thumb { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.add { display: grid; place-items: center; align-content: center; border: 2px dashed var(--brand); color: var(--brand); font: inherit; } .thumb.add small { font-size: .7rem; font-weight: 700; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.lightbox-img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #6366f1); color: #fff; font-weight: 800; object-fit: cover; flex: none; } .avatar.lg { width: 66px; height: 66px; font-size: 1.4rem; }
.stars { color: #f59e0b; letter-spacing: 1px; } .stars small { color: var(--muted); letter-spacing: 0; }
.star-pick { display: flex; gap: .2rem; } .star { border: 0; background: transparent; font-size: 2.4rem; color: var(--line); cursor: pointer; padding: 0 .1rem; } .star.on { color: #f59e0b; }
.chat { display: grid; gap: .5rem; max-height: 280px; overflow: auto; padding: .3rem; align-content: start; }
.msg { max-width: 82%; padding: .5rem .8rem; border-radius: 16px 16px 16px 4px; background: var(--line); } .msg small { display: block; opacity: .65; font-size: .7rem; }
.msg.me { justify-self: end; background: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; }
.notif.unread { border-left: 5px solid var(--brand); background: var(--brand-soft); }
.mini { color: var(--text); padding: .4rem 0; border-bottom: 1px dashed var(--line); } .mini:hover { text-decoration: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.kpi { display: grid; gap: .1rem; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); } .kpi b { font-size: 1.5rem; } .kpi small { color: var(--muted); }
.kpi.hot { background: linear-gradient(135deg, #0b74de, #4f46e5); color: #fff; border: 0; } .kpi.hot small { color: #dbeafe; }
.chart { width: 100%; height: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; } .table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); } .table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr.click { cursor: pointer; } .table tr.click:hover { background: var(--brand-soft); } .table tr:last-child td { border-bottom: 0; }
.demo-box { display: grid; gap: .5rem; padding: .9rem; border-radius: 14px; background: var(--warn-bg); margin-top: 1rem; }

/* acceso */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; align-content: start; }
.auth-hero { position: relative; overflow: hidden; padding: 2.4rem 1.4rem 5rem; color: #fff; display: grid; gap: .7rem; justify-items: center; text-align: center; align-content: center; background: radial-gradient(circle at 85% 0%, #22d3ee 0%, transparent 50%), radial-gradient(circle at 0% 100%, #6366f1 0%, transparent 55%), linear-gradient(140deg, #0b74de, #4f46e5); }
.auth-hero::before, .auth-hero::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .16); pointer-events: none; }
.auth-hero::before { width: 260px; height: 260px; right: -90px; top: -100px; } .auth-hero::after { width: 180px; height: 180px; left: -60px; bottom: -40px; }
.auth-hero > * { position: relative; }
.auth-logo { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.auth-hero h1 { font-size: 1.7rem; letter-spacing: -.01em; } .auth-hero p { opacity: .92; max-width: 34ch; }
.hero-points { display: none; list-style: none; padding: 0; gap: .7rem; font-weight: 600; text-align: left; }
.hero-points li { display: flex; align-items: center; gap: .7rem; } .hero-points .i { width: 22px; height: 22px; flex: none; padding: 5px; box-sizing: content-box; border-radius: 12px; background: rgba(255, 255, 255, .18); }
.auth-card { margin: -3.2rem 1rem 1.5rem; align-self: start; display: grid; gap: 1rem; border-radius: 24px; padding: 1.4rem 1.2rem; box-shadow: 0 14px 40px rgba(15, 40, 100, .18); position: relative; }
.auth-card h2 { font-size: 1.3rem; }
@media (min-width: 900px) {
  .auth { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; align-content: stretch; }
  .auth-hero { padding: 4rem; justify-items: start; text-align: left; } .auth-hero h1 { font-size: 2.6rem; } .auth-logo { width: 64px; height: 64px; border-radius: 18px; }
  .hero-points { display: grid; margin-top: .8rem; }
  .auth-card { margin: 0; width: min(520px, 100% - 2rem); justify-self: center; align-self: center; padding: 2rem; }
}

.or-line { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; } .or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.verify-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .6rem .8rem; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .9rem; } .verify-banner span { flex: 1 1 140px; } .verify-banner .icon-btn { min-width: 32px; min-height: 32px; color: var(--warn); }

.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; margin-top: -.4rem; }
/* bienvenida (primera pantalla) */
.welcome { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; background: radial-gradient(circle at 85% 0%, #22d3ee 0%, transparent 50%), radial-gradient(circle at 0% 70%, #6366f1 0%, transparent 55%), linear-gradient(160deg, #0b74de, #4338ca); color: #fff; overflow: hidden; }
.welcome-top { position: relative; display: grid; gap: 1rem; justify-items: center; align-content: center; text-align: center; padding: 2.5rem 1.5rem 1.5rem; }
.welcome-top::before, .welcome-top::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .16); pointer-events: none; }
.welcome-top::before { width: 300px; height: 300px; right: -120px; top: -90px; } .welcome-top::after { width: 220px; height: 220px; left: -90px; bottom: 10px; }
.welcome-top > * { position: relative; }
.welcome-top h1 { font-size: 1.9rem; letter-spacing: -.02em; max-width: 14ch; } .welcome-top .sub { opacity: .92; max-width: 32ch; font-size: 1.02rem; }
.welcome-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; max-width: 420px; margin-top: .6rem; }
.welcome-feats div { display: grid; gap: .4rem; justify-items: center; padding: .8rem .4rem; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); font-size: .78rem; font-weight: 600; line-height: 1.25; backdrop-filter: blur(4px); }
.welcome-feats .i { width: 24px; height: 24px; }
.welcome-sheet { background: var(--surface); color: var(--text); border-radius: 28px 28px 0 0; padding: 1.4rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); display: grid; gap: .8rem; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
.welcome-sheet .btn.big .i { width: 22px; height: 22px; }
.role-pick { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: .8rem; width: 100%; padding: .8rem .9rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .08s, border-color .15s; }
.role-pick:hover { border-color: var(--brand); text-decoration: none; } .role-pick:active { transform: scale(.985); }
.role-pick .rp-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); } .role-pick .rp-ico .i { width: 24px; height: 24px; }
.role-pick.tech .rp-ico { background: var(--warn-bg); color: var(--warn); } .role-pick.admin .rp-ico { background: #ede9fe; color: #6d28d9; }
.role-pick b { display: block; } .role-pick small { color: var(--muted); display: block; line-height: 1.3; } .role-pick .chev { color: var(--muted); font-size: 1.3rem; text-align: right; }
.welcome-sheet .demo-title { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; } .demo-title::before, .demo-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-hint { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: .5rem .8rem; font-size: .82rem; font-weight: 600; text-align: center; }
@media (min-width: 900px) {
  .welcome { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; }
  .welcome-top { padding: 4rem; justify-items: start; text-align: left; } .welcome-top h1 { font-size: 3rem; max-width: 16ch; }
  .welcome-sheet { align-self: center; justify-self: center; width: min(480px, 100% - 3rem); border-radius: 28px; margin: 2rem 0; padding: 2rem; }
  .welcome { background: linear-gradient(160deg, #0b74de, #4338ca); } .welcome-sheet { box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
}

/* mapa */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #cfe0f1; }
.map-sm { height: 230px; } .map-md { height: 340px; } .map-lg { height: min(64vh, 560px); min-height: 380px; }
.map-wrap { position: relative; }
.mm { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 32px 32px; }
.mm.drag { cursor: grabbing; }
.mm-tiles, .mm-markers { position: absolute; inset: 0; } .mm-markers { pointer-events: none; }
.mm-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; opacity: 0; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.mm-tile.ok { opacity: 1; }
html.dark .mm-tile { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }
.mm-marker { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; cursor: pointer; }
.mm-ctl { position: absolute; right: 10px; top: 10px; z-index: 5; display: grid; gap: 6px; }
.mm-btn { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--surface); color: var(--text); font-size: 1.3rem; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); cursor: pointer; }
.mm-attr { position: absolute; right: 6px; bottom: 4px; z-index: 5; font-size: .68rem; background: rgba(255, 255, 255, .85); color: #333; padding: 1px 6px; border-radius: 6px; }
.mm-offline { position: absolute; left: 10px; right: 64px; top: 10px; z-index: 5; padding: .5rem .7rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: .85rem; font-weight: 600; }
.pin { position: relative; transform: translate(-50%, calc(-100% - 8px)); }
.pin-body { display: grid; place-items: center; width: 40px; height: 40px; background: var(--c); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: transform .15s; }
.mm-marker:hover .pin-body { transform: rotate(-45deg) scale(1.12); }
.pin-emoji { transform: rotate(45deg); font-size: 19px; line-height: 1; }
.pin.big .pin-body { width: 48px; height: 48px; } .pin.big .pin-emoji { font-size: 23px; }
.pin.pulse .pin-body::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--c); animation: ping 1.6s infinite; }
.pin-label { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); white-space: nowrap; background: var(--surface); color: var(--text); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.me-dot { width: 20px; height: 20px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, .25); transform: translate(-50%, -50%); }
.map-status { padding: .5rem .8rem; border-radius: 12px; background: var(--brand-soft); font-weight: 600; } .map-status.ok { background: var(--ok-bg); color: var(--ok); }
.map-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; display: grid; gap: .5rem; padding: .9rem; max-height: 72%; overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
@media (min-width: 800px) { .map-sheet { right: auto; width: 400px; } }

/* calendario */
.cal-title { min-width: 11rem; text-align: center; } .cal-title::first-letter { text-transform: uppercase; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .cal-head { text-align: center; color: var(--muted); font-weight: 700; font-size: .8rem; }
.cal-cell { min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 5px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; }
.cal-cell.out { opacity: .4; } .cal-cell.today .dn { background: var(--brand); color: #fff; } .cal-cell.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cal-cell .dn { font-weight: 800; font-size: .85rem; min-width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal-chip { width: 100%; font-size: .72rem; padding: 1px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 20%, var(--surface)); border-left: 3px solid var(--c); } .cal-chip.done { opacity: .55; } .cal-chip em { font-style: normal; }
.cal-cell .more { color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .cal-cell { min-height: 60px; padding: 3px; } .cal-chip em { display: none; } .cal-chip { width: auto; display: inline-block; } .cal-cell .more { font-size: .65rem; } .cal-title { min-width: 8rem; font-size: 1rem; } }
.agenda { border-left: 4px solid var(--c); padding-left: .7rem; }

/* modal y avisos flotantes */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(8, 15, 30, .6); animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: 92vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); overflow: hidden; } .modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-body { padding: 1.1rem; overflow: auto; } .modal-foot { display: flex; gap: .6rem; justify-content: flex-end; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 92px; transform: translateX(-50%); display: grid; gap: .5rem; width: min(560px, calc(100% - 1.5rem)); pointer-events: none; }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { padding: .8rem 1rem; border-radius: 14px; background: #10233f; color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: rise .25s; pointer-events: auto; }
.toast.ok { background: #15803d; } .toast.error { background: #b91c1c; } .toast.out { opacity: 0; transition: opacity .3s; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* iconos (juego único, ver js/icons.js) */
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; flex: none; }
.nav-item .ico { display: grid; place-items: center; } .nav-item .ico .i { width: 22px; height: 22px; }
.nav.dense .nav-item { font-size: .64rem; padding-left: 0; padding-right: 0; }
@media (min-width: 900px) { .nav.dense .nav-item { font-size: 1rem; padding: .8rem 1rem; } } .nav.dense .nav-item .ico .i { width: 20px; height: 20px; }
@media (min-width: 900px) { .nav-item .ico .i { width: 22px; height: 22px; } }
.big-emoji:empty { display: none; } .big-emoji .i { width: 2.4rem; height: 2.4rem; } .tile.service .big-emoji .i { color: var(--c); }
.req-ico .i { width: 1.5rem; height: 1.5rem; color: var(--c); }
.pin-emoji .i { width: 20px; height: 20px; stroke: #fff; } .pin.big .pin-emoji .i { width: 24px; height: 24px; }
.badge .i { width: 1em; height: 1em; vertical-align: -.15em; } .chip .i { width: 1.1em; height: 1.1em; margin-right: .25rem; vertical-align: -.2em; }
.cal-chip .i { width: .95em; height: .95em; } .reminder .i { color: var(--warn); } .reminder.overdue .i { color: var(--bad); }
b.row, h1.row { display: flex; align-items: center; gap: .45rem; } h1.row .i { width: 1.4em; height: 1.4em; color: var(--brand); }
.note .i { vertical-align: -.25em; }
/* inicio con el mapa al frente */
.map-home { height: min(38vh, 300px); min-height: 220px; border: 0; } .hero-card .map-status { background: rgba(255, 255, 255, .95); color: #0c447c; } .hero-card .map-status.ok { background: #e3f6e9; color: #14532d; }
.hero-card .input { border-color: transparent; } .hero-q { font-size: 1.05rem; margin-top: .3rem; }

/* modo nube: ocultar lo que solo aplica al modo local */
html.cloud .local-only { display: none; }
.role-chip.role-demo { background: #fef3c7; color: #92400e; }


/* ---------- acceso sin contraseña (Google o código por correo) ---------- */
.google-btn { background: var(--surface); color: var(--text); border-color: var(--line); font-weight: 600; gap: .7rem; }
.google-btn:hover { border-color: var(--muted); }
.g-mark { display: inline-flex; width: 20px; height: 20px; flex: none; }
.code-input { text-align: center; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.code-input::placeholder { letter-spacing: .4em; opacity: .35; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; font-weight: 400; }
