/* PinaRental — el mismo estilo de la portada: barra blanca con el logo a color, Inter/Manrope, fondo gris verdoso, tarjetas
   blancas redondeadas, botones píldora verdes, tablas limpias (sin rejilla). Los nombres de las clases no cambian. */
:root {
  --navy: #14213d; --navy-2: #0f1a30; --blue: #035EF1; --blue-soft: #e8f0fe; --blue-t: #1e40af;
  --green: #375623; --green-2: #2c4a1c; --green-soft: #e8f3df; --green-line: #c9e2b8;
  --ink: #1b2430; --ink-2: #3d4654; --muted: #5b6472; --muted-2: #6b7280;
  --bg: #f6f7f3; --surface: #ffffff; --line: #e3e6e0; --line-2: #eef0ea; --head: #eef0ea; --field: #c9cdc4;
  --orange-soft: #fff1e6; --orange-t: #9a3412;
  --ok: #dcfce7; --ok-t: #166534; --warn: #fef3c7; --warn-t: #92400e; --bad: #fee2e2; --bad-t: #991b1b; --info: #dbeafe; --info-t: #1e40af;
  --radius: 16px; --radius-s: 10px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; --font-head: Manrope, Inter, "Segoe UI", sans-serif;
  /* nombres viejos que siguen usándose */
  --bar: var(--navy); --dim: var(--muted); --dimmer: var(--muted-2); --grid: var(--line); --grid-dark: var(--field); --panel: var(--green-soft); --panel-border: var(--green-line); --band: var(--head);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body { padding: 0 28px; }
a { color: #1f5a8a; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); letter-spacing: -0.01em; }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
input, select, textarea { height: 40px; border: 1px solid var(--field); background: #fff; padding: 0 12px; border-radius: var(--radius-s); width: 100%; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a9d18e; outline-offset: -1px; }
textarea { height: auto; padding: 8px 12px; min-height: 76px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; height: auto; accent-color: var(--green); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.btn:hover { background: #f3f4f1; border-color: #aeb2b8; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; height: 44px; padding: 0 22px; font-size: 15px; box-shadow: 0 6px 16px rgba(55,86,35,.18); }
.btn.primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.more { padding-right: 12px; } .btn .caret { display: inline-flex; margin-left: 2px; }
.morewrap { position: relative; display: inline-block; }
.moremenu { position: absolute; right: 0; top: 44px; z-index: 60; min-width: 230px; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,33,61,.14); }
.moremenu .item { display: block; width: 100%; padding: 10px 14px; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.moremenu .item:hover { background: var(--bg); } .moremenu .item.danger { color: #b00020; } .moremenu .sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.top .back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--field); background: #fff; color: var(--navy); text-decoration: none; font-size: 18px; }
.top .back:hover { background: #f3f4f1; }
.fold { grid-column: span 6; border: 1px dashed var(--field); border-radius: var(--radius-s); padding: 8px 12px; }
.fold summary { cursor: pointer; color: var(--muted); font-size: 13px; user-select: none; } .fold[open] summary { margin-bottom: 8px; }
.ic { display: inline-flex; } .ic svg { width: 100%; height: 100%; }
.btn.danger { color: #b00020; border-color: #b00020; background: #fff; }
.btn.danger-fill { background: #b00020; border-color: #b00020; color: #fff; }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: #1f5a8a; text-decoration: underline; cursor: pointer; font-size: inherit; font-family: inherit; }
.dim { color: var(--muted-2); } .muted { color: var(--muted); } .r { text-align: right; } .c { text-align: center; } .b { font-weight: 700; } .nowrap { white-space: nowrap; }
.small { font-size: 12.5px; } .err { color: #b00020; }
.page { max-width: 1240px; margin: 0 auto; padding: 22px 0 60px; }
.row-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 auto; }
.loading { padding: 40px; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lbl { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 5px; }
.chk { display: inline-flex; align-items: center; gap: 8px; height: 36px; cursor: pointer; }
.form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 14px; }
.form .f.w1 { grid-column: span 1; } .form .f.w2 { grid-column: span 2; } .form .f.w3 { grid-column: span 3; } .form .f.w4 { grid-column: span 4; } .form .f.w6 { grid-column: span 6; }
.form h4 { grid-column: span 6; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* login (ya no se usa: la portada trae el login) */
.login { max-width: 360px; margin: 80px auto; border: 1px solid var(--line); background: #fff; padding: 24px; border-radius: var(--radius); }
.login h1 { margin: 0 0 4px; font-size: 20px; }
.login p { margin: 0 0 14px; color: var(--muted); }
.login .lbl { margin-top: 10px; }
.login .err { margin-top: 10px; min-height: 18px; }

/* barra superior */
.appbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 12px; height: 64px; margin: 0 -28px 0; padding: 0 28px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); color: var(--ink); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: 72px; }
.appbar .ab-brand { display: inline-flex; align-items: center; gap: 9px; height: 64px; margin-right: 6px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 16px; white-space: nowrap; }
.appbar .ab-brand img.ab-mark { width: 30px; height: 30px; border-radius: 8px; display: none; }
.appbar .ab-brand img.ab-logo { height: 28px; width: auto; display: block; }
.appbar .ab-nav { display: flex; align-items: center; gap: 4px; height: 64px; overflow-x: auto; scrollbar-width: none; }
.appbar .ab-nav::-webkit-scrollbar { display: none; }
.appbar .ab-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; margin: 0; color: var(--ink-2); background: none; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.appbar .ab-link:hover { background: var(--bg); color: var(--navy); }
.appbar .ab-link.on { color: var(--navy); font-weight: 700; background: var(--head); }
.appbar .ab-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #c2410c; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.appbar .ab-grow { flex: 1 1 auto; }
.appbar .ab-right { display: flex; align-items: center; gap: 2px; position: relative; }
.appbar .ab-bell { position: relative; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 21px; background: none; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.appbar .ab-bell:hover { background: var(--bg); }
.appbar .ab-bell .ab-badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; font-size: 11px; }
.appbar .ab-user { display: inline-flex; align-items: center; gap: 9px; height: 44px; margin: 0; padding: 0 10px 0 4px; border: 0; border-radius: 22px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.appbar .ab-user:hover { background: var(--bg); }
.appbar .ab-avatar { width: 34px; height: 34px; border-radius: 17px; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.appbar .ab-uname { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.appbar .ab-uname b { font-size: 14px; } .appbar .ab-uname small { font-size: 12px; color: var(--muted); }
.ab-menu { position: absolute; right: 0; top: 52px; z-index: 1003; min-width: 300px; max-width: 420px; padding: 6px 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(20,33,61,.16); }
.ab-menu button.item, .ab-menu a.item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 14px; margin: 0; color: var(--ink); background: none; border: 0; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ab-menu button.item:hover, .ab-menu a.item:hover { background: var(--bg); }
.ab-menu .sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.ab-menu .head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 6px; font-size: 12.5px; color: var(--muted); }
.ntf { max-height: 60vh; overflow: auto; }
.ntf .n { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: none; font: inherit; cursor: pointer; }
.ntf .n:hover { background: var(--bg); } .ntf .n.unread { background: #fffbeb; }
.ntf .n b { display: block; font-size: 13.5px; color: var(--navy); } .ntf .n span { display: block; color: var(--muted); font-size: 12.5px; white-space: pre-wrap; } .ntf .n small { color: var(--muted-2); }
@media print { .appbar { display: none !important; } }

/* títulos */
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.top h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.top .sub { color: var(--muted); font-size: 15px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs .btn.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; }
.search { width: 260px !important; }

/* tarjetas del tablero */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.card:has(.badge) { flex-direction: row; gap: 14px; }
.card:hover { border-color: #cfd5cb; box-shadow: 0 6px 18px rgba(20,33,61,.06); }
.card .kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card b { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -0.02em; } .card span { font-size: 14px; color: var(--muted); }
.card .badge { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green-2); }
.card .badge .ic { width: 22px; height: 22px; }
.card.warn .badge { background: var(--orange-soft); color: var(--orange-t); } .card.warn b { color: var(--orange-t); }
.card.good .badge { background: var(--green-soft); color: var(--green-2); }
.card.info .badge { background: var(--blue-soft); color: var(--blue-t); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .two { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.panel .ph { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: #fff; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 15px; color: var(--navy); }
.panel .pb { padding: 14px 18px; }
.week .w { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line-2); background: none; font: inherit; text-align: left; cursor: pointer; }
.week .w:hover { background: #fafbf8; } .week .w:last-child { border-bottom: 0; }
.week .dot { width: 10px; height: 10px; border-radius: 5px; margin-top: 6px; flex: none; }
.dot.red { background: #dc2626; } .dot.amber { background: #f59e0b; } .dot.blue { background: #2563eb; } .dot.green { background: #16a34a; }
.week .w b { display: block; font-size: 14px; color: var(--navy); } .week .w span { display: block; color: var(--muted); font-size: 13px; }

/* tablas (filas limpias, sin rejilla) */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel .grid, .modal .grid, .wz-card .grid, .fold .grid { border: 0; border-radius: 0; }
.grid th { background: var(--bg); border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.grid.sticky th { position: sticky; top: 64px; z-index: 2; }
.panel .grid th, .modal .grid th { position: static; }
.grid td { border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 12px; vertical-align: middle; }
.grid tr.click { cursor: pointer; } .grid tr.click:hover td { background: #fafbf8; }
.grid tr.sub td { background: #fafafa; color: var(--muted); }
.grid td.r, .grid th.r { text-align: right; font-variant-numeric: tabular-nums; }
.grid .late td { background: #fff8f5; }
.grid tfoot td { font-weight: 700; background: var(--bg); }
.grid tbody tr:last-child td { border-bottom: 0; } .grid tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; }
.panel > .grid, .panel .pb > .grid:first-child { margin: 0; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--ok); color: var(--ok-t); } .chip.warn { background: var(--warn); color: var(--warn-t); } .chip.bad { background: var(--bad); color: var(--bad-t); } .chip.info { background: var(--info); color: var(--info-t); } .chip.dim { background: #eceeea; color: #4b5563; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-t); font-size: 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* fichas */
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .ficha { grid-template-columns: 1fr; } }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; color: var(--muted); font-weight: 400; padding: 5px 10px 5px 0; width: 38%; vertical-align: top; } .kv td { padding: 5px 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.timeline li small { color: var(--muted-2); white-space: nowrap; min-width: 92px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13.5px; background: #fff; }
.files a:hover { border-color: var(--green); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photos .ph { position: relative; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f6f6f6; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph-pdf { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 700; color: var(--muted); }
.photos .ph-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 10px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.thumbs a { display: inline-block; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 8px 8px 0; }
.thumbs a img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ventanas */
.modal-back { position: fixed; inset: 0; background: rgba(20,33,61,.32); display: flex; align-items: flex-start; justify-content: center; padding: 40px 12px; z-index: 50; overflow: auto; }
.modal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20,33,61,.22); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fff; border-radius: var(--radius) var(--radius) 0 0; font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--navy); }
.modal-head .x { background: none; border: 0; font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px; color: var(--muted); }
.modal-body { padding: 18px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 100; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(20,33,61,.28); max-width: 380px; transition: opacity .3s; font-weight: 500; }
.toast.err { background: #b00020; } .toast.out { opacity: 0; }

/* documentos (vista previa) */
.docview { border: 1px solid var(--line); border-radius: 12px; padding: 22px 28px; background: #fff; max-height: 62vh; overflow: auto; font-family: Helvetica, Arial, sans-serif; }
.doctabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.sigwrap { border: 1px dashed var(--field); border-radius: 10px; background: #fafafa; padding: 6px; }
.sigpad { display: block; background: #fff; border-radius: 8px; touch-action: none; cursor: crosshair; }
.sigline { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 4px 4px 0; }

/* estado de firma */
.signers { display: flex; flex-direction: column; gap: 6px; }
.signers .s { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* mantenimiento */
.tk-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tk { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; cursor: pointer; position: relative; }
.tk::before { content: ""; position: absolute; left: 16px; top: 16px; width: 10px; height: 10px; border-radius: 5px; background: #9ca3af; }
.tk > b { padding-left: 18px; }
.tk:hover { box-shadow: 0 6px 18px rgba(20,33,61,.08); }
.tk.emergency::before { background: #dc2626; } .tk.urgent::before { background: #f59e0b; } .tk.done { opacity: .7; }
.tk b { display: block; color: var(--navy); } .tk .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tk .overdue { color: #b00020; font-weight: 700; }

/* configuración */
.cfg-grid { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .cfg-grid { grid-template-columns: 1fr; } }
.cfg-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.cfg-nav button { text-align: left; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.cfg-nav button:hover { background: var(--bg); }
.cfg-nav button.on { background: var(--head); color: var(--navy); font-weight: 700; }
.tpl-editor textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 420px; }
.access { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.access .chk { height: auto; min-height: 28px; align-items: flex-start; line-height: 1.25; padding: 3px 0; } .access .chk input { margin-top: 2px; }

/* barra inferior (teléfono) */
.tabbar { display: none; }
@media (max-width: 700px) {
  .appbar .ab-nav { display: none; }
  .page { padding-bottom: 90px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: grid; grid-template-columns: repeat(5, 1fr); height: 66px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(20,33,61,.05); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
  .tabbar .on { color: var(--navy); font-weight: 700; }
  .tabbar .ic { width: 22px; height: 22px; }
  #toasts { bottom: 78px; }
  .moremenu { position: fixed; left: 10px; right: 10px; top: auto; bottom: 82px; min-width: 0; }
  .moremenu .item { padding: 12px 16px; font-size: 15px; }
}
.sheet-back { position: fixed; inset: 0; background: rgba(20,33,61,.3); z-index: 48; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; background: #fff; border-radius: 20px 20px 0 0; padding: 12px 10px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 34px rgba(20,33,61,.2); }
.sheet a, .sheet button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.sheet a:hover, .sheet button:hover { background: var(--bg); } .sheet .ic { width: 22px; height: 22px; color: var(--navy); }

/* teléfono */
@media (max-width: 700px) {
  body { padding: 0 14px; }
  .appbar { margin: 0 -14px; padding: 0 12px; height: 60px; gap: 6px; }
  .appbar .ab-brand { height: 60px; } .appbar .ab-brand img.ab-logo { height: 24px; }
  .appbar .ab-uname { display: none; }
  .top h1 { font-size: 23px; }
  .form { grid-template-columns: repeat(2, 1fr); }
  .form .f.w1, .form .f.w2, .form .f.w3 { grid-column: span 1; } .form .f.w4, .form .f.w6, .form h4 { grid-column: span 2; }
  .grid.sticky th { position: static; }
  .grid { font-size: 13.5px; } .grid td, .grid th { padding: 9px 8px; }
  .hide-m { display: none !important; }
  .modal-back { padding: 10px 6px; }
  .search { width: 100% !important; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card, .card:has(.badge) { flex-direction: column; gap: 10px; padding: 16px; } .card b { font-size: 24px; }
}

/* ---------- Inicio: primeros pasos (cuando no hay nada todavía) ---------- */
.ob { display: grid; grid-template-columns: 5fr 7fr; gap: 36px; align-items: center; padding: 40px 44px; background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 18px; }
.ob .ob-eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green-2); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.ob .ob-text { display: flex; flex-direction: column; gap: 14px; }
.ob h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.ob p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.ob .ob-art { display: block; margin-top: 6px; } .ob .ob-art svg { max-width: 100%; height: auto; display: block; }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ob-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; border-radius: 14px; }
.ob-steps li.done { border-color: var(--green-line); background: #f3faee; }
.ob-steps li.cur { border: 2px solid var(--navy); }
.ob-steps .n { flex: none; width: 36px; height: 36px; border-radius: 18px; border: 2px solid var(--field); color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ob-steps li.cur .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.ob-steps li.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.ob-steps .t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ob-steps .t b { font-size: 16px; color: var(--navy); } .ob-steps .t span { font-size: 14px; color: var(--ink-2); }
.ob-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ob-more a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ob-more a:hover { border-color: #cfd5cb; }
.ob-more .badge { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ob-more .badge .ic { width: 20px; height: 20px; }
.ob-more b { font-size: 15px; color: var(--navy); } .ob-more span.d { font-size: 14px; color: var(--ink-2); }
.ob-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border: 2px solid var(--navy); border-radius: 14px; margin-bottom: 18px; }
.ob-banner .n { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ob-banner .t { flex: 1 1 auto; } .ob-banner .t b { color: var(--navy); font-size: 15px; display: block; } .ob-banner .t span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .ob { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; } .ob h2 { font-size: 26px; } .ob-more { grid-template-columns: 1fr; } .ob .ob-art { display: none; } }

/* ---------- Crear un documento: catálogo ---------- */
.cat-intro { margin: -6px 0 14px; color: var(--ink-2); font-size: 15px; }
.cat-h { font-family: var(--font); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; min-height: 150px; transition: border-color .12s, box-shadow .12s; }
.cat-card:hover { border-color: #cfd5cb; box-shadow: 0 6px 18px rgba(20,33,61,.06); }
.cat-card .cat-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-t); }
.cat-card .cat-icon.g { background: var(--green-soft); color: var(--green-2); } .cat-card .cat-icon.o { background: var(--orange-soft); color: var(--orange-t); }
.cat-card .cat-icon .ic { width: 22px; height: 22px; }
.cat-card b { font-size: 17px; color: var(--navy); } .cat-card .cat-en { color: var(--muted); font-size: 12.5px; margin-top: -4px; } .cat-card .cat-desc { color: var(--ink-2); font-size: 14px; flex: 1; }
.cat-card .cat-go { color: var(--green-2); font-weight: 700; font-size: 14px; }
.cat-card.soon { opacity: .6; } .cat-card.soon:hover { box-shadow: none; border-color: var(--line); }
.cat-foot { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.cat-foot a { font-weight: 600; text-decoration: none; } .cat-foot .small { color: var(--muted); }

/* ---------- el asistente ---------- */
.wz { max-width: none; }
.wz-band { margin: 0 0 22px; padding: 22px 28px 0; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; }
.wz-band .in { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.wz-band .wz-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wz-band .wz-back { display: inline-flex; align-items: center; gap: 6px; color: #d7e3ee; text-decoration: none; font-size: 14px; font-weight: 600; }
.wz-band .wz-back:hover { color: #fff; }
.wz-band h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.wz-band .wz-sub { font-size: 13px; color: #b9c8d8; }
.wz-steps { margin: 0; }
.wz-steps ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.wz-steps li { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #d7e3ee; white-space: nowrap; }
.wz-steps li .n { display: none; }
.wz-steps li.done { color: #fff; cursor: pointer; } .wz-steps li.done:hover { background: rgba(255,255,255,.12); }
.wz-steps li.done::before { content: "✓"; font-size: 12px; }
.wz-steps li.cur { color: var(--navy); background: #fff; }
.wz-prog { height: 6px; background: rgba(255,255,255,.18); border-radius: 0; margin-top: 2px; overflow: hidden; } .wz-prog div { height: 100%; background: var(--blue); transition: width .3s; }
.wz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px 26px; max-width: 980px; margin: 0 auto; }
.wz-stepname { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.wz-q { font-size: 26px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.wz-hint { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; }
.wz-input { max-width: 440px; margin: 8px 0 4px; } .wz-input input, .wz-input textarea { height: 46px; font-size: 16px; } .wz-input textarea { height: auto; min-height: 100px; }
.wz-input.money { position: relative; } .wz-input.money .pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; } .wz-input.money input { padding-left: 28px; }
.wz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 4px; } .wz-tiles.wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.wz-tiles.pics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 14px 16px; min-height: 60px; border: 1.5px solid #d5d9d2; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--navy); transition: border-color .12s, background .12s; }
.tile:hover { border-color: #aeb2b8; background: #fafbf8; }
.tile.on { border-color: var(--navy); background: #eef4ff; box-shadow: inset 0 0 0 1px var(--navy); }
.tile.on::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tile b { font-size: 15px; font-weight: 600; } .tile span { color: var(--muted); font-size: 13px; }
.tile.pic { align-items: center; text-align: center; gap: 10px; padding: 18px 10px 14px; }
.tile.pic svg { width: 96px; height: 72px; display: block; }
.tile.rec { border-style: solid; } .tile .chip { margin-top: 6px; white-space: normal; height: auto; padding: 3px 8px; line-height: 1.2; }
.wz-rec { display: grid; gap: 10px; margin: 8px 0 4px; }
.wz-note { background: var(--warn); color: var(--warn-t); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.wz-choices { display: grid; gap: 8px; margin: 8px 0 4px; max-width: 540px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #d5d9d2; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-size: 15px; color: var(--ink); text-align: left; }
.choice .dot { width: 18px; height: 18px; border-radius: 9px; border: 2px solid #9ca3af; flex: none; } .choice.on { border-color: var(--navy); background: #eef4ff; } .choice.on .dot { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 45%, #fff 50%); }
.wz-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; margin-top: 8px; }
.wz-deps { margin-top: 10px; } .wz-dep { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--field); }
.wz-dep .wz-input { margin-top: 2px; }
.wz-rooms td { padding: 4px; } .wz-rooms input, .wz-rooms select { height: 36px; }
.wz-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.wz-btns .btn.skip { border: 0; background: none; color: var(--muted); padding: 0 6px; }
.wz-btns .btn.skip:hover { color: var(--navy); background: none; }
.wz-foot { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.wz-review { max-width: 1240px; margin: 0 auto; } .wz-review .docview { max-height: 70vh; }
.wz-how { display: grid; gap: 8px; } .wz-how .how { padding: 12px 14px; border: 1.5px solid #d5d9d2; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; } .wz-how .how.on { border-color: var(--navy); background: #eef4ff; } .wz-how .how span { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .wz-tiles.pics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wz-band { margin: -22px -14px 18px; padding: 16px 14px 0; border-radius: 0; }
  .wz-band h1 { font-size: 15px; letter-spacing: .04em; } .wz-band .wz-sub { display: none; }
  .wz-steps li { padding: 7px 11px; font-size: 12.5px; }
  .wz-card { padding: 18px 14px; } .wz-q { font-size: 21px; }
  .wz-btns .btn { flex: 1 1 45%; } .wz-btns .grow { display: none; }
  .wz-tiles { grid-template-columns: repeat(2, 1fr); } .wz-tiles.wide { grid-template-columns: 1fr; } .wz-tiles.pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.pic svg { width: 84px; height: 63px; }
}
