/* comun/4-mosaico.css — Diseño "mosaico" v2.0 (antes css/mosaico.css): fondo oscuro con brillos y tarjetas de vidrio. Solo index.html. */
/*
 * mosaico.css — Diseño del CRM (v2.0). Solo lo carga index.html; el ingreso (cuenta.html, admin.html) queda como estaba.
 * ------------------------------------------------------------------
 * Gonzalo eligió mezclar dos propuestas: el "mosaico" de tarjetas (estilo bento) y el modo "noche"
 * (fondo oscuro con brillos de color y tarjetas que parecen de vidrio). Los bocetos están en el canvas de diseño
 * que se le mandó el 20/10/2026; esto los lleva a todas las pantallas.
 *   - Fondo: color liso + tres brillos fijos (verde agua y violeta) en body::before.
 *   - Tarjetas: fondo semitransparente (--glass), borde finito y esquinas grandes (22–28 px). El desenfoque
 *     (backdrop-filter) va solo en la barra de arriba, las solapas y las ventanas: en 80 tarjetas haría lento el celular.
 *   - Color: --accent (el de Apariencia; el verde por defecto pasa a verde agua) y --accent-2 (violeta) para los degradés.
 *   - Letra: Plus Jakarta Sans (títulos en 800) y JetBrains Mono para horas, teléfonos y fechas.
 *   - Arranca en oscuro (<html data-modo-defecto="oscuro">, js/tema.js); el modo claro tiene la misma estructura.
 * Va después de app.css, ajustes.css y look.css. Para volver al diseño v1.9 alcanza con sacar este archivo de index.html.
 */
:root{
  --bg:#eef1f4; --surface:#ffffff; --glass:rgba(255,255,255,.74); --glass-2:#ffffff; --ink:#121722; --muted:#566070; --line:rgba(17,24,39,.09); --soft:rgba(17,24,39,.045);
  --accent:#0b7a6a; --accent-ink:#ffffff; --accent-soft:rgba(14,159,138,.12); --accent-2:#7c3aed; --accent-2-soft:#f1ebff; --accent-2-ink:#5b21b6;
  --warn:#b54708; --warnbg:#fdeee3;
  --brillo-1:rgba(45,212,191,.24); --brillo-2:rgba(139,92,246,.16);
  --boton:#121722; --boton-ink:#ffffff;
  --sombra:0 1px 2px rgba(17,24,39,.04),0 10px 30px rgba(17,24,39,.06);
  --sombra-alta:0 2px 8px rgba(17,24,39,.08),0 24px 60px rgba(17,24,39,.14);
  --r-sm:12px; --r:22px; --r-lg:28px;
  --f-display:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif;
  --f-body:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
  --grad:linear-gradient(135deg,var(--accent),var(--accent-2));
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]){
  --bg:#090b10; --surface:#121620; --glass:rgba(255,255,255,.045); --glass-2:rgba(255,255,255,.08); --ink:#e8eaf0; --muted:#a3a9b8; --line:rgba(255,255,255,.09); --soft:rgba(255,255,255,.06);
  --accent:#7ef0d8; --accent-ink:#06231c; --accent-soft:rgba(126,240,216,.14); --accent-2:#b79cff; --accent-2-soft:rgba(183,156,255,.13); --accent-2-ink:#cdbbff;
  --warn:#fdba74; --warnbg:rgba(253,186,116,.13);
  --cA:#6fd39a; --cAbg:rgba(111,211,154,.14); --cB:#93bbf5; --cBbg:rgba(147,187,245,.14); --cC:#f0c069; --cCbg:rgba(240,192,105,.14); --cD:#b4bac4; --cDbg:rgba(180,186,196,.13);
  --brillo-1:rgba(45,212,191,.19); --brillo-2:rgba(139,92,246,.22);
  --boton:#e8eaf0; --boton-ink:#090b10;
  --sombra:0 20px 60px rgba(0,0,0,.28); --sombra-alta:0 24px 70px rgba(0,0,0,.55);
  color-scheme:dark}
}
:root[data-theme="dark"]{
  --bg:#090b10; --surface:#121620; --glass:rgba(255,255,255,.045); --glass-2:rgba(255,255,255,.08); --ink:#e8eaf0; --muted:#a3a9b8; --line:rgba(255,255,255,.09); --soft:rgba(255,255,255,.06);
  --accent:#7ef0d8; --accent-ink:#06231c; --accent-soft:rgba(126,240,216,.14); --accent-2:#b79cff; --accent-2-soft:rgba(183,156,255,.13); --accent-2-ink:#cdbbff;
  --warn:#fdba74; --warnbg:rgba(253,186,116,.13);
  --cA:#6fd39a; --cAbg:rgba(111,211,154,.14); --cB:#93bbf5; --cBbg:rgba(147,187,245,.14); --cC:#f0c069; --cCbg:rgba(240,192,105,.14); --cD:#b4bac4; --cDbg:rgba(180,186,196,.13);
  --brillo-1:rgba(45,212,191,.19); --brillo-2:rgba(139,92,246,.22);
  --boton:#e8eaf0; --boton-ink:#090b10;
  --sombra:0 20px 60px rgba(0,0,0,.28); --sombra-alta:0 24px 70px rgba(0,0,0,.55);
  color-scheme:dark}
/* ---------- fondo con brillos ---------- */
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-feature-settings:normal;font-variant-numeric:tabular-nums}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(900px 560px at 6% -6%,var(--brillo-1),transparent 62%),
    radial-gradient(820px 640px at 100% 2%,var(--brillo-2),transparent 60%),
    radial-gradient(760px 520px at 55% 112%,var(--brillo-1),transparent 62%)}
.wrap{max-width:1380px;gap:18px}
h1,h2,h3,h4{font-family:var(--f-display);letter-spacing:-.02em}
::selection{background:color-mix(in srgb,var(--accent) 30%,transparent)}
/* ---------- barra de arriba: vidrio esmerilado de lado a lado ---------- */
header.top{background:transparent;box-shadow:none;clip-path:none;isolation:isolate;padding:14px 0}
/* la franja de vidrio ocupa todo el ancho de la pantalla; html recorta el ancho de la barra de scroll de la PC */
html{overflow-x:clip}
header.top::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);background:color-mix(in srgb,var(--bg) 72%,transparent);
  -webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border-bottom:1px solid var(--line)}
.marca{background:#0b1022;color:var(--bg);border-radius:13px}
/* v5.8 logo Hey Mel: el símbolo (orbe con guiño en su constelación) va como imagen */
.marca img{width:100%;height:100%;display:block}
header.top h1{font-weight:800;font-size:19px;letter-spacing:-.025em}
.acciones .date{font-family:var(--f-body);font-size:13px;color:var(--muted)}
.count,.tools .count,.sechead .count{font-family:var(--f-body)}
.mini .d{font-family:var(--f-body)}
.tabpane:not([hidden]){display:flex;flex-direction:column;gap:16px}
/* ---------- botones: píldoras ---------- */
.btn{border-radius:999px;background:var(--glass-2);border-color:var(--line);box-shadow:none;font-weight:700;min-height:38px;padding:8px 16px}
.btn:hover{background:color-mix(in srgb,var(--ink) 10%,transparent);border-color:color-mix(in srgb,var(--ink) 18%,transparent)}
.btn.primary{background:var(--boton);border-color:var(--boton);color:var(--boton-ink);box-shadow:none}
.btn.primary:hover{background:color-mix(in srgb,var(--boton) 86%,var(--accent));border-color:transparent}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn.ghost:hover{background:var(--soft);color:var(--ink)}
.btn.danger{background:transparent}
a.btn[href^="https://wa.me"]:not(.primary){color:var(--accent);background:var(--accent-soft);border-color:transparent}
a.btn[href^="https://wa.me"]:not(.primary):hover{background:color-mix(in srgb,var(--accent) 24%,transparent)}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) a.btn[href^="https://wa.me"]:not(.primary){color:var(--accent)}
}
:root[data-theme="dark"] a.btn[href^="https://wa.me"]:not(.primary){color:var(--accent)}
.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,tr:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* ---------- campos ---------- */
input,select,textarea{background:var(--glass-2);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-sm)}
select option{background:var(--surface);color:var(--ink)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.gsearch input{height:52px;border-radius:16px;background-color:var(--glass);border-color:var(--line);box-shadow:var(--sombra);font-size:15px}
.gres{background:var(--surface);border-color:var(--line);border-radius:18px}
/* ---------- solapas: una píldora de vidrio ---------- */
.tabs{align-self:center;max-width:100%;padding:5px;gap:2px;border:1px solid var(--line);border-radius:999px;background:var(--glass);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.tabs button{border:0;border-radius:999px;margin:0;padding:9px 16px;color:var(--muted);font-weight:600}
.tabs button:hover{color:var(--ink);background:var(--soft)}
.tabs button[aria-selected="true"]{color:var(--ink);background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line);border:0}
.tabs button[aria-selected="true"] .ti{color:var(--accent)}
.tabs .tc{background:var(--soft);color:var(--muted)}
.tabs button[aria-selected="true"] .tc{background:var(--accent-soft);color:var(--accent)}
.tabs .tc.alert{background:var(--warnbg);color:var(--warn)}
/* ---------- tarjetas de vidrio ---------- */
.panel,.card,.cat,.tablebox,.pcard,.num-tile,.num-sec{background:var(--glass);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sombra)}
.panel{padding:22px 24px;gap:12px}
.panel h2,.sechead h2{font-family:var(--f-display);font-weight:800;font-size:17px;letter-spacing:-.02em}
.sechead h2{font-size:20px}
.panel h2 small,.sechead .count{font-family:var(--f-body);color:var(--muted);font-weight:500}
.card{padding:18px 20px;border-radius:var(--r)}
.card:hover{box-shadow:var(--sombra-alta);border-color:color-mix(in srgb,var(--ink) 16%,transparent)}
.card .who{font-size:16px;font-weight:800;letter-spacing:-.01em}
.card .last{background:var(--soft);border-radius:14px}
.card .next b{color:var(--accent)}
.card .acts .mono,.mono{font-family:var(--f-mono);font-size:12.5px}
.card .due{font-family:var(--f-mono);font-weight:500;font-size:11.5px;letter-spacing:.02em;background:var(--soft)}
.pill{font-weight:700}
.tag,.st{border-radius:999px}
.mini li{border-radius:12px}
.mini li:hover{background:var(--soft)}
.info{background:var(--soft);border-radius:14px}
.empty{color:var(--muted)}
.panel.emptybox{border-style:dashed;background:transparent;box-shadow:none}
.mz-hola{justify-content:center;gap:14px;padding:32px}
.mz-nums small{font-family:var(--f-body);font-size:12px;font-weight:700;letter-spacing:0}
/* la próxima visita de hoy va como tarjeta grande con el dibujo del edificio */
#visHoyCards .vcard:not(.late){padding-top:0;overflow:hidden}
#visHoyCards .vcard:not(.late)::before{content:"";display:block;height:150px;margin:0 -20px 4px;border-bottom:1px solid var(--line);background:var(--edificio) center bottom/cover no-repeat}
#visHoyCards .vcard:not(.late)~.vcard:not(.late){padding-top:18px}
#visHoyCards .vcard:not(.late)~.vcard:not(.late)::before{display:none}
/* ---------- Contactos ---------- */
.cats{gap:12px}
.cat{border-radius:var(--r);padding:16px 18px}
.cat .num{font-family:var(--f-display);font-weight:800;font-size:26px}
.tools{gap:10px}
.tools input[type="search"]{border-radius:999px;padding-inline:18px}
.tools select{border-radius:999px;padding-inline:14px}
/* ---------- ventanas: ficha, Configuración, Mis números, mensajes ---------- */
.scrim,#ajScrim,#numScrim{background:rgba(5,7,12,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.drawer{background:var(--surface);border-left:1px solid var(--line);box-shadow:-30px 0 80px rgba(0,0,0,.35)}
.drawer::before{content:"";position:absolute;inset:0 0 auto;height:220px;pointer-events:none;background:radial-gradient(420px 200px at 10% 0,var(--brillo-1),transparent 70%),radial-gradient(380px 200px at 100% 0,var(--brillo-2),transparent 70%)}
.drawer>*{position:relative}
.dhead{border-bottom:1px solid var(--line)}
.dhead h3{font-family:var(--f-display);font-weight:800;font-size:22px;letter-spacing:-.025em}
.dfoot{background:var(--surface);border-top:1px solid var(--line)}
.convo{background:linear-gradient(150deg,var(--accent-soft),var(--accent-2-soft));border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:var(--r)}
.hist .when{color:var(--accent)}
.msj-pick{background:rgba(5,7,12,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.msj-pick>*{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sombra-alta)}
.toast{background:var(--boton);color:var(--boton-ink);border-radius:999px}
.toast a,.toast .toast-link{color:inherit}
.toast button.toast-link{background:none;border:0;padding:0 2px;font:inherit;font-weight:800;cursor:pointer}
.nube{background:var(--glass-2);border-color:var(--line)}
.nube.ok{background:var(--cAbg);border-color:transparent}
/* ---------- dibujos de edificios (de muestra, hasta que las propiedades tengan fotos) ---------- */
:root{
  --edificio:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23cfe3ea'/%3E%3Ccircle cx='530' cy='60' r='28' fill='%23fff4d6'/%3E%3Crect x='60' y='70' width='160' height='190' fill='%23e9dfd0'/%3E%3Crect x='232' y='24' width='196' height='236' fill='%23f6f1e8'/%3E%3Crect x='440' y='104' width='160' height='156' fill='%23e3d6c4'/%3E%3Cg fill='%2393b4bf'%3E%3Crect x='84' y='92' width='30' height='36'/%3E%3Crect x='166' y='150' width='30' height='36'/%3E%3Crect x='84' y='208' width='30' height='36'/%3E%3Crect x='258' y='48' width='40' height='44'/%3E%3Crect x='358' y='114' width='40' height='44'/%3E%3Crect x='258' y='180' width='40' height='44'/%3E%3Crect x='462' y='126' width='34' height='34'/%3E%3Crect x='544' y='184' width='34' height='34'/%3E%3C/g%3E%3Cg fill='%237fa2ae'%3E%3Crect x='166' y='92' width='30' height='36'/%3E%3Crect x='84' y='150' width='30' height='36'/%3E%3Crect x='166' y='208' width='30' height='36'/%3E%3Crect x='358' y='48' width='40' height='44'/%3E%3Crect x='258' y='114' width='40' height='44'/%3E%3Crect x='358' y='180' width='40' height='44'/%3E%3Crect x='544' y='126' width='34' height='34'/%3E%3Crect x='462' y='184' width='34' height='34'/%3E%3C/g%3E%3Cg fill='%233a3f48'%3E%3Crect x='248' y='92' width='60' height='5'/%3E%3Crect x='348' y='92' width='60' height='5'/%3E%3Crect x='248' y='158' width='60' height='5'/%3E%3Crect x='348' y='158' width='60' height='5'/%3E%3C/g%3E%3Crect x='304' y='216' width='50' height='44' fill='%230f766e'/%3E%3C/svg%3E");
  --edificio-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23e7d3c1'/%3E%3Crect x='150' y='30' width='340' height='230' fill='%23b5674a'/%3E%3Cg fill='%23f3e6d8'%3E%3Crect x='186' y='60' width='60' height='62'/%3E%3Crect x='290' y='60' width='60' height='62'/%3E%3Crect x='394' y='60' width='60' height='62'/%3E%3Crect x='186' y='152' width='60' height='62'/%3E%3Crect x='394' y='152' width='60' height='62'/%3E%3C/g%3E%3Crect x='290' y='152' width='60' height='108' fill='%232b2420'/%3E%3Crect x='130' y='24' width='380' height='10' fill='%238a4a34'/%3E%3C/svg%3E");
  --edificio-3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23d5dee3'/%3E%3Crect x='230' y='10' width='180' height='250' fill='%23f7f7f5'/%3E%3Cg fill='%235f7480'%3E%3Crect x='250' y='30' width='140' height='24'/%3E%3Crect x='250' y='72' width='140' height='24'/%3E%3Crect x='250' y='114' width='140' height='24'/%3E%3Crect x='250' y='156' width='140' height='24'/%3E%3C/g%3E%3Crect x='296' y='206' width='48' height='54' fill='%230f766e'/%3E%3Crect x='60' y='120' width='150' height='140' fill='%23c4ccd1'/%3E%3Crect x='430' y='90' width='150' height='170' fill='%23bcc6cc'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]){
  --edificio:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23141a2c'/%3E%3Ccircle cx='530' cy='60' r='26' fill='%23f5e7c0'/%3E%3Crect x='60' y='70' width='160' height='190' fill='%231f2638'/%3E%3Crect x='232' y='24' width='196' height='236' fill='%23283149'/%3E%3Crect x='440' y='104' width='160' height='156' fill='%231f2638'/%3E%3Cg fill='%23fcd58a'%3E%3Crect x='166' y='92' width='30' height='36'/%3E%3Crect x='84' y='150' width='30' height='36'/%3E%3Crect x='166' y='208' width='30' height='36'/%3E%3Crect x='258' y='48' width='40' height='44'/%3E%3Crect x='358' y='114' width='40' height='44'/%3E%3Crect x='258' y='180' width='40' height='44'/%3E%3Crect x='544' y='126' width='34' height='34'/%3E%3Crect x='462' y='184' width='34' height='34'/%3E%3C/g%3E%3Cg fill='%2333405c'%3E%3Crect x='84' y='92' width='30' height='36'/%3E%3Crect x='166' y='150' width='30' height='36'/%3E%3Crect x='84' y='208' width='30' height='36'/%3E%3Crect x='358' y='48' width='40' height='44'/%3E%3Crect x='258' y='114' width='40' height='44'/%3E%3Crect x='358' y='180' width='40' height='44'/%3E%3Crect x='462' y='126' width='34' height='34'/%3E%3Crect x='544' y='184' width='34' height='34'/%3E%3C/g%3E%3Crect x='304' y='216' width='50' height='44' fill='%230f766e'/%3E%3C/svg%3E");
  --edificio-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23181425'/%3E%3Crect x='150' y='30' width='340' height='230' fill='%233a2430'/%3E%3Cg fill='%23fcd58a'%3E%3Crect x='186' y='60' width='60' height='62'/%3E%3Crect x='394' y='152' width='60' height='62'/%3E%3C/g%3E%3Cg fill='%234c3442'%3E%3Crect x='290' y='60' width='60' height='62'/%3E%3Crect x='394' y='60' width='60' height='62'/%3E%3Crect x='186' y='152' width='60' height='62'/%3E%3C/g%3E%3Crect x='290' y='152' width='60' height='108' fill='%2310131c'/%3E%3Crect x='130' y='24' width='380' height='10' fill='%232b1a24'/%3E%3C/svg%3E");
  --edificio-3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23101824'/%3E%3Crect x='230' y='10' width='180' height='250' fill='%23222c3c'/%3E%3Cg fill='%237ef0d8' fill-opacity='.55'%3E%3Crect x='250' y='30' width='140' height='24'/%3E%3Crect x='250' y='114' width='140' height='24'/%3E%3C/g%3E%3Cg fill='%23334055'%3E%3Crect x='250' y='72' width='140' height='24'/%3E%3Crect x='250' y='156' width='140' height='24'/%3E%3C/g%3E%3Crect x='296' y='206' width='48' height='54' fill='%230f766e'/%3E%3Crect x='60' y='120' width='150' height='140' fill='%23192130'/%3E%3Crect x='430' y='90' width='150' height='170' fill='%231b2433'/%3E%3C/svg%3E")}
}
:root[data-theme="dark"]{
  --edificio:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23141a2c'/%3E%3Ccircle cx='530' cy='60' r='26' fill='%23f5e7c0'/%3E%3Crect x='60' y='70' width='160' height='190' fill='%231f2638'/%3E%3Crect x='232' y='24' width='196' height='236' fill='%23283149'/%3E%3Crect x='440' y='104' width='160' height='156' fill='%231f2638'/%3E%3Cg fill='%23fcd58a'%3E%3Crect x='166' y='92' width='30' height='36'/%3E%3Crect x='84' y='150' width='30' height='36'/%3E%3Crect x='166' y='208' width='30' height='36'/%3E%3Crect x='258' y='48' width='40' height='44'/%3E%3Crect x='358' y='114' width='40' height='44'/%3E%3Crect x='258' y='180' width='40' height='44'/%3E%3Crect x='544' y='126' width='34' height='34'/%3E%3Crect x='462' y='184' width='34' height='34'/%3E%3C/g%3E%3Cg fill='%2333405c'%3E%3Crect x='84' y='92' width='30' height='36'/%3E%3Crect x='166' y='150' width='30' height='36'/%3E%3Crect x='84' y='208' width='30' height='36'/%3E%3Crect x='358' y='48' width='40' height='44'/%3E%3Crect x='258' y='114' width='40' height='44'/%3E%3Crect x='358' y='180' width='40' height='44'/%3E%3Crect x='462' y='126' width='34' height='34'/%3E%3Crect x='544' y='184' width='34' height='34'/%3E%3C/g%3E%3Crect x='304' y='216' width='50' height='44' fill='%230f766e'/%3E%3C/svg%3E");
  --edificio-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23181425'/%3E%3Crect x='150' y='30' width='340' height='230' fill='%233a2430'/%3E%3Cg fill='%23fcd58a'%3E%3Crect x='186' y='60' width='60' height='62'/%3E%3Crect x='394' y='152' width='60' height='62'/%3E%3C/g%3E%3Cg fill='%234c3442'%3E%3Crect x='290' y='60' width='60' height='62'/%3E%3Crect x='394' y='60' width='60' height='62'/%3E%3Crect x='186' y='152' width='60' height='62'/%3E%3C/g%3E%3Crect x='290' y='152' width='60' height='108' fill='%2310131c'/%3E%3Crect x='130' y='24' width='380' height='10' fill='%232b1a24'/%3E%3C/svg%3E");
  --edificio-3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='640' height='260' fill='%23101824'/%3E%3Crect x='230' y='10' width='180' height='250' fill='%23222c3c'/%3E%3Cg fill='%237ef0d8' fill-opacity='.55'%3E%3Crect x='250' y='30' width='140' height='24'/%3E%3Crect x='250' y='114' width='140' height='24'/%3E%3C/g%3E%3Cg fill='%23334055'%3E%3Crect x='250' y='72' width='140' height='24'/%3E%3Crect x='250' y='156' width='140' height='24'/%3E%3C/g%3E%3Crect x='296' y='206' width='48' height='54' fill='%230f766e'/%3E%3Crect x='60' y='120' width='150' height='140' fill='%23192130'/%3E%3Crect x='430' y='90' width='150' height='170' fill='%231b2433'/%3E%3C/svg%3E")}
@media (max-width:720px) {
/* ---------- celular: tarjetas apiladas y barra flotante abajo ---------- */
header.top{position:relative}
.mz-hola{padding:22px}
.panel{padding:18px}
.card{padding:16px}
.tabs{align-self:auto;border-radius:24px;padding:6px;background:color-mix(in srgb,var(--surface) 80%,transparent);box-shadow:var(--sombra-alta);
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.tabs button{border-radius:18px;padding:7px 1px}
.tabs button[aria-selected="true"]{background:var(--accent-soft);box-shadow:none;color:var(--accent)}
.toast{border-radius:18px}
}
/* v2.4: campo con un dato que no se puede guardar (por ejemplo, letras en un precio) */
input.mal,input.mal:focus{border-color:var(--warn)!important;box-shadow:0 0 0 3px var(--warnbg)!important}
/* v2.5 (js/fidelizar.js): aniversarios, clientes dormidos y comentarios */
.fz-cab{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.fz-cab h2{margin:0}
.fz-mini li{flex-direction:column;align-items:stretch;gap:4px;cursor:default;padding:8px}
.fz-mini .fz-fila{display:flex;justify-content:space-between;gap:10px;min-width:0}
.fz-mini .ag{font-size:12px;color:var(--muted);white-space:normal}
.fz-acc{display:flex;flex-wrap:wrap;gap:6px}
.fz-acc .btn{padding:4px 10px;font-size:12px}
.fz-mini .fz-mas{color:var(--muted);font-size:12px}
.fz-tipos{display:flex;flex-wrap:wrap;gap:8px}
.fz-tipos label{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;cursor:pointer;font-size:14px}
.fz-tipos label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.fz-modal textarea{width:100%;min-height:110px}
.fz-msg{margin:0;color:var(--warn);font-size:13px}
.fz-msg:empty{display:none}
.bedit{display:inline-flex;align-items:center;gap:5px}
.hacts{display:flex;gap:14px;margin-top:4px;font-size:13px}
.hacts .del{color:var(--muted)}
.hacts .del.armed,.frow button.armed{color:var(--warn);font-weight:700}
.frow button.armed{border-color:var(--warn)}
.hist li.hed{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px}
.hist li.hed textarea{min-height:80px}
/* v3.0: buscador general con grupos (Contactos, Propiedades, Búsquedas) */
.gres li.ghead{cursor:default;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:8px 10px 2px;background:transparent!important}
.gres li .s{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
/* v3.0: el pie de los paneles (Guardar) queda siempre abajo, aunque el contenido sea corto */
.dbody{flex:1 1 auto}
.dbody>*{flex-shrink:0}
/* v3.0: botón "+" (Agregar) en todas las pantallas y su menú */
.fab{position:fixed;right:24px;bottom:24px;z-index:19;width:58px;height:58px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;
  background:var(--grad,var(--accent));color:var(--bg);box-shadow:0 14px 34px color-mix(in srgb,var(--accent) 35%,transparent),var(--sombra-alta)}
.fab svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;transition:transform .2s}
.fab.on svg{transform:rotate(45deg)}
.fab:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.agrvelo{position:fixed;inset:0;z-index:28;background:rgba(5,8,10,.45);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.agrmenu{position:fixed;right:24px;bottom:94px;z-index:29;width:min(340px,calc(100vw - 32px));display:flex;flex-direction:column;gap:4px;padding:14px;
  background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--sombra-alta)}
.agrmenu[hidden],.agrvelo[hidden]{display:none}
.agrmenu h3{margin:2px 6px 8px;font-size:16px}
.agrmenu button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;cursor:pointer}
.agrmenu button:hover,.agrmenu button:focus-visible{background:var(--soft)}
.agrmenu .ti{flex:none;width:40px;height:40px;padding:9px;border-radius:12px;background:var(--accent-soft,var(--soft));fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.agrmenu span{display:flex;flex-direction:column;font-weight:600;font-size:14.5px}
.agrmenu small{font-weight:400;font-size:12.5px;color:var(--muted)}
@media (max-width:720px) {
.fab{right:16px;bottom:calc(100px + env(safe-area-inset-bottom,0px));width:54px;height:54px}
.agrmenu{right:16px;bottom:calc(166px + env(safe-area-inset-bottom,0px))}
.bk-badge{max-width:calc(100vw - 100px)}
}
.fab.on{z-index:31}
/* v4.3: los avisos largos ("¿Seguro? … Guardar igual") van arriba de todo y en varias líneas, así el botón no queda tapado */
.toast{z-index:90;max-width:calc(100vw - 32px);width:max-content;text-align:center}
