:root {
  --brand: #111214; --on-brand: #fff; --brand-ink: #111214; --brand-dark: #111214; --brand-soft: #efefed; --accent: #e5e4e2; --text: #22232b; --muted: #6a6b75;
  --line: #e8eaf4; --bg: #f7f8fc; --card: #fff; --green: #1e8e4e; --warn: #b5720f; --red: #c0392b; --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 17px; margin: 0 0 14px; }
h3 { font-size: 14px; margin: 8px 0 0; }
p { margin: 0; }
small { color: var(--muted); font-weight: 400; }
code { background: #fff; border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

.brandbar { height: 5px; background: linear-gradient(90deg, var(--accent) 24%, var(--brand) 24%); }
.topnav { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--brand-ink); font-size: 16px; }
.logo span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.topnav nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.topnav nav a { color: var(--text); }
.who { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.who a { color: var(--muted); }

.page { max-width: 1160px; margin: 0 auto; padding: 24px 16px 64px; }
.page.wide { max-width: 1320px; }
.page.medium { max-width: 920px; }
.page.narrow { max-width: 400px; padding-top: 10vh; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.notice { text-align: center; padding: 40px 20px; }
.auth h1 { color: var(--brand-ink); }
.auth .stack { margin-top: 20px; }
.empty { text-align: center; padding: 48px 20px; }
.empty .btn { margin-top: 16px; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.span2 { grid-column: span 2; }
.grid-hotel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }

label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--warn); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1px solid #d3d6e4; border-radius: 6px; padding: 8px 10px; width: 100%; min-height: 38px; }
input[type=checkbox] { width: auto; min-height: 0; }
label.inline input, label.inline select { width: auto; }
textarea { resize: vertical; }
input[readonly], textarea[readonly] { background: var(--bg); color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); background: #fff; border: 1px solid #cdd0df; border-radius: 6px; padding: 8px 14px; min-height: 38px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.full { width: 100%; white-space: normal; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.linkish.danger { color: var(--red); font-size: 12px; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: #eaf6ef; border-color: #bfe3cd; color: #14683a; }
.flash.error { background: #fdecea; border-color: #f4c7c1; color: #99271b; }
.banner { background: #fff6dd; border: 1px solid #f4dfa4; color: #7d5300; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.off td { color: var(--muted); }
.actions { text-align: right; white-space: nowrap; }
.actions form { display: inline; margin-left: 12px; }
.addform { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip.big { font-size: 13px; padding: 5px 12px; }
.chip.lista { background: var(--brand-soft); color: var(--brand-ink); }
.chip.enviada { background: #fff3d6; color: var(--warn); }
.chip.vendida { background: #e4f4ea; color: var(--green); }
.chip.perdida { background: #f0f1f5; color: var(--muted); }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.budget { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--brand-ink); border-bottom-color: var(--brand); }

.slice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.slice .btn { padding: 0 10px; }
.results { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.results:empty { display: none; }
.result { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.result-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.result-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-price small { display: block; font-weight: 400; }
.result-title { font-weight: 600; }
.segments { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.segments li { padding: 1px 0; }
.result .thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; background: var(--bg); }
.result .hotelhead { display: flex; gap: 12px; min-width: 0; }
.rates { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; background: var(--bg); border-radius: 6px; font-size: 14px; }
.rate-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.searching { color: var(--muted); padding: 8px 0; }
.searcherror { color: #99271b; padding: 8px 0; }
.suggest-wrap { position: relative; }
.suggest { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(20, 20, 60, .1); font-weight: 400; }
.suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; font: inherit; cursor: pointer; border-radius: 4px; }
.suggest button:hover, .suggest button:focus { background: var(--brand-soft); }
.suggest small { margin-left: 6px; }

details.card > summary { cursor: pointer; font-weight: 600; }
.manualform { margin-top: 14px; }

.lines { list-style: none; padding: 0; margin: 0 0 12px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.lines small { display: block; font-size: 12px; }
.lines .warn { color: var(--red); }
.cat { display: block; font-size: 11px; color: var(--muted); }
.lineprice { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.totals { margin: 0 0 14px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .sub { padding-left: 12px; font-size: 13px; }
.totals .grand { border-top: 2px solid var(--text); margin-top: 8px; padding-top: 10px; align-items: baseline; }
.totals .grand dt { color: var(--text); font-weight: 700; }
.totals .grand dd { font-size: 20px; font-weight: 700; color: var(--brand-ink); }
.sharerow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sharerow .btn { flex: 1; }
.sendlog { list-style: none; padding: 10px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.daycard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; margin-bottom: 0; }
.daynum strong { display: block; font-size: 30px; line-height: 1; color: #8a8b8f; }
.daynum span { font-size: 12px; color: var(--muted); }
.events { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.events li { padding: 2px 0; }
.events b { display: inline-block; min-width: 46px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.events small { display: block; margin-left: 50px; }
.stickysave { position: sticky; bottom: 0; padding: 10px; background: linear-gradient(transparent, var(--bg) 40%); }
.connections { list-style: none; padding: 0; margin: 0 0 10px; }
.connections li { padding: 3px 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c6c8d4; margin-right: 6px; }
.dot.on { background: var(--green); }
.example { background: var(--brand-soft); padding: 9px 12px; border-radius: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .budget { position: static; max-height: none; }
}
@media (max-width: 680px) {
  .grid2, .grid-hotel { grid-template-columns: minmax(0, 1fr); }
  .grid4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slice label:nth-child(3) { grid-column: 1 / -1; }
  .span2 { grid-column: 1 / -1; }
  .topnav { padding: 10px 16px; gap: 12px; }
  .rate { flex-direction: column; align-items: stretch; }
  .rate-actions { justify-content: space-between; }
  .daycard { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img { max-height: 32px; max-width: 140px; object-fit: contain; }
.logopreview { display: block; max-height: 64px; max-width: 220px; object-fit: contain; margin-bottom: 8px; }
.colorfield input[type=color] { padding: 2px; height: 38px; cursor: pointer; }
.secretstate { font-size: 12px; font-weight: 400; color: var(--green); }
.adminnav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; font-size: 14px; }
.chip.activa { background: #e4f4ea; color: var(--green); }
.chip.suspendida { background: #fdecea; color: var(--red); }
label.check.nocolor { color: var(--text); }
.logopreview { align-self: flex-start; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.tags form { display: inline; }
.person { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
#personas .row.between { margin-bottom: 8px; }
.personhead strong, .personhead small { display: block; }
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topnav nav a { white-space: nowrap; }
@media (max-width: 680px) { .person { grid-template-columns: minmax(0, 1fr); } }

.statuschips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.chip.abierto { background: #fff3d6; color: var(--warn); }
.chip.confirmado { background: #e4f4ea; color: var(--green); }
.chip.cancelado { background: #f0f1f5; color: var(--muted); }
.chip.nuevo { background: var(--brand-soft); color: var(--brand-ink); }
.chip.contactado { background: #fff3d6; color: var(--warn); }
.chip.convertido { background: #e4f4ea; color: var(--green); }
.chip.descartado { background: #f0f1f5; color: var(--muted); }
.progressnote { padding: 10px 12px; border-radius: 6px; background: #fff6dd; border: 1px solid #f4dfa4; color: #7d5300; margin-bottom: 14px; }
.progressnote.ok { background: #eaf6ef; border-color: #bfe3cd; color: #14683a; }
.enrollhead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.paidrow td { color: var(--muted); }
.overdue { color: var(--red); font-weight: 600; }
.inlineform { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.inlineform input, .inlineform select { width: auto; min-height: 30px; padding: 3px 6px; font-size: 13px; max-width: 130px; }
.reviewcard { padding: 12px 0; border-top: 1px solid var(--line); }
.stars { color: var(--warn); }
.portalhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.portalhead img { max-height: 40px; max-width: 170px; object-fit: contain; }
.portalactions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.langswitch { display: flex; align-items: center; gap: 6px; }
.langswitch select { width: auto; padding: 4px 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 12px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.active { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* Avance de pagos en el portal del viajero */
.payprogress { display: flex; align-items: center; gap: 24px; margin: 16px 0; }
.payring { position: relative; flex: 0 0 140px; width: 140px; height: 140px; }
.payring svg { display: block; width: 100%; height: 100%; }
.payring circle { fill: none; stroke-width: 12; }
.payring .track { stroke: var(--line); }
.payring .fill { stroke: var(--brand); stroke-linecap: round; }
.payring .fill.done { stroke: var(--green); }
.payringtext { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.payringtext span { font-size: 12px; color: var(--muted); }
.payringtext strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.paydetail { flex: 1 1 auto; min-width: 0; }
.nextpayhead { margin: 18px 0 8px; }
.nextpays { list-style: none; margin: 0 0 8px; padding: 0; }
.nextpays li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 6px; }
.nextpays li.isnext { border-color: var(--brand); background: var(--brand-soft); }
.nextpays li > span > strong { display: block; }
.nextpays .amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.allpays { margin-top: 12px; }
.allpays summary { cursor: pointer; color: var(--brand-ink); }
.allpays .tablewrap { margin-top: 8px; }
@media (max-width: 520px) {
  .payprogress { flex-direction: column; align-items: stretch; }
  .payring { align-self: center; }
}

/* Alta: ficha, hoja de reserva y firma */
.plainfs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sheetdata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 10px 0; }
.sheetdata dt { font-size: 12px; color: var(--muted); }
.sheetdata dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.sheet h3 { margin: 16px 0 6px; }
.sheetprice { font-size: 17px; }
.prewrap { white-space: pre-wrap; }
.hash { font-size: 11px; overflow-wrap: anywhere; }
.bookingline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px; }
.nextpays li a.btn { flex: 0 0 auto; }
@media (max-width: 520px) { .sheetdata { grid-template-columns: minmax(0, 1fr); } }
@media print { .topnav, .portalhead, .brandbar, .flash, form, .crumb { display: none !important; } .card { border: 0; box-shadow: none; } }

/* Biblioteca de fotos */
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.photoitem { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photoitem img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: block; }
.photoitem .inlineform { justify-content: flex-start; flex-wrap: nowrap; }
.photoitem .inlineform input { flex: 1 1 auto; min-width: 0; width: 100%; }
.photopick summary { cursor: pointer; color: var(--brand-ink); font-size: 14px; }
.photochoices { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.photochoice { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 400; cursor: pointer; border: 2px solid transparent; border-radius: 8px; padding: 3px; }
.photochoice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.photochoice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photochoice input:focus-visible + img, .photochoice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.photochoice img { width: 100%; height: 76px; object-fit: cover; border-radius: 6px; display: block; }
.photochoice.none span { height: 76px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 6px; color: var(--muted); }

/* Marketing */
.stats.stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0; }
.filterbar label { flex: 1 1 150px; min-width: 0; }
.filterbar .btn { flex: 0 0 auto; }
.permdetails { margin-top: 6px; }
.permdetails summary { cursor: pointer; font-size: 12px; color: var(--brand-ink); }
.permdetails form { margin-top: 6px; min-width: 200px; gap: 6px; }
@media (max-width: 520px) { .stats.stats3 { grid-template-columns: minmax(0, 1fr); } }

/* Withy */
:root { --radius: 12px; }
.card { box-shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 8px 24px rgba(17, 18, 20, .05); }
.btn { border-radius: 999px; }
input, select, textarea { border-radius: 10px; }
.brandbar { background: linear-gradient(90deg, var(--accent), var(--brand)); }
.topnav nav a:hover { color: var(--brand-ink); text-decoration: none; }

/* Acceso */
body.withy-auth { min-height: 100vh; background: radial-gradient(700px 500px at 0 0, rgba(229, 228, 226, .75), transparent 62%), radial-gradient(620px 420px at 100% 100%, rgba(229, 228, 226, .5), transparent 65%), linear-gradient(160deg, #111214, #111214 70%); background-attachment: fixed; }
.withy-auth .brandbar { display: none; }
.withy-auth .page.narrow { padding-top: 8vh; max-width: 430px; }
.withy-auth .card.auth { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 20px 60px rgba(15, 16, 70, .35); backdrop-filter: blur(10px); color: #fff; text-align: center; padding: 34px 30px; }
.withy-auth .authlogo { display: block; width: 190px; max-width: 70%; margin: 0 auto 22px; }
.withy-auth .card.auth h1 { color: #fff; font-size: 26px; }
.withy-auth .muted, .withy-auth small { color: rgba(255, 255, 255, .78); }
.withy-auth a { color: #e5e4e2; }
.withy-auth form.stack { text-align: left; }
.withy-auth label { color: #fff; }
.withy-auth input { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.withy-auth input:focus { outline: 2px solid #e5e4e2; outline-offset: 1px; }
.withy-auth .btn.primary { background: #e5e4e2; border-color: #e5e4e2; color: #111214; font-weight: 700; }
.withy-auth .btn.primary:hover { background: #f2f1ef; }
.withy-auth .addform { border-top-color: rgba(255, 255, 255, .22); }

/* Panel de trabajo: igual para todas las agencias */
.withy-panel .topnav { background: #111214; border-bottom: 0; }
.withy-panel .topnav nav a, .withy-panel .who a { color: rgba(255, 255, 255, .88); }
.withy-panel .topnav nav a:hover { color: #e5e4e2; }
.withy-panel .topnav .linkish { color: #e5e4e2; }
.withy-panel .logo img { max-height: 30px; max-width: 120px; }
.motherhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; padding: 28px; margin-bottom: 22px; border-radius: 18px; color: #fff; background: radial-gradient(420px 260px at 100% 0, rgba(229, 228, 226, .6), transparent 70%), linear-gradient(135deg, #111214, #111214); }
.motherhero h1 { color: #fff; margin-bottom: 8px; }
.motherhero p { color: rgba(255, 255, 255, .86); }
.motherstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.motherstats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; }
.motherstats dt { font-size: 12px; color: rgba(255, 255, 255, .8); }
.motherstats dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; color: #fff; }
@media (max-width: 760px) {
  .motherhero { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .motherstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cambiar de agencia */
.agencyswitch { position: relative; }
.agencyswitch summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agencymenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(17, 18, 20, .14); }
.agencymenu .linkish { color: var(--text); text-align: left; }
.withy-panel .agencyswitch summary { color: #fff; }
.withy-panel .topnav .agencymenu a { color: var(--brand-ink); }
.withy-panel .topnav .agencymenu .linkish { color: var(--text); }

/* El menú pasa a su propia línea cuando no cabe junto al logo */
@media (max-width: 1000px) {
  .topnav { gap: 8px 16px; }
  .topnav nav { order: 3; flex: 1 1 100%; gap: 6px 14px; }
  .topnav .who { margin-left: auto; }
}

/* Cotizador: buscar primero */
.searchhero { background: var(--brand-dark); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.searchhero h1 { color: #fff; margin: 0 0 14px; font-size: 26px; }
.searchhero.compact { padding: 12px 14px; }
.searchhint { text-align: center; }
.producttabs { display: flex; gap: 4px; flex-wrap: wrap; }
.producttab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.producttab:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.producttab.active { background: #e5e4e2; color: #111214; }
.producticon { flex: none; }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin-top: 12px; }
.searchbar [hidden] { display: none !important; }
.searchfield { position: relative; flex: 1 1 150px; min-width: 0; display: block; background: #fff; color: var(--muted); border-radius: 12px; padding: 7px 12px; font-size: 12px; font-weight: 600; }
.searchfield.grow { flex: 2 1 240px; }
.searchfield input, .searchfield select { display: block; width: 100%; margin: 2px 0 0; padding: 2px 0; border: 0; background: transparent; color: var(--text); font-size: 15px; font-weight: 400; box-shadow: none; }
.searchfield input:focus, .searchfield select:focus { outline: none; }
.searchfield:focus-within { outline: 2px solid #e5e4e2; outline-offset: 1px; }
.searchfield .suggest { color: var(--text); font-weight: 400; font-size: 14px; }
.searchgo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px; background: #e5e4e2; color: #111214; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.searchgo:hover { background: #f2f1ef; }
.searchbar .searcherror { flex: 1 1 100%; margin: 0; color: #fff; }
.paxlink { text-decoration: none; }
.paxlink:hover { text-decoration: none; }
.paxlink span, .paxpicker summary span { display: block; margin-top: 2px; color: var(--text); font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paxpicker summary { cursor: pointer; list-style: none; }
.paxpicker summary::-webkit-details-marker { display: none; }
.paxmenu { position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; width: 280px; max-width: 80vw; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; color: var(--text); font-size: 14px; font-weight: 400; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(17, 18, 20, .18); }
.paxrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.paxages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.paxages:empty { display: none; }
.paxages label { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 30px; height: 30px; border: 1px solid var(--brand); border-radius: 50%; background: #fff; color: var(--brand-ink); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.stepper output { min-width: 18px; text-align: center; font-weight: 600; }
.slicelist { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; }
.slicelist .slice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quotesteps { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.quotesteps li::before { content: "○"; margin-right: 7px; color: var(--muted); }
.quotesteps li.done { color: var(--text); }
.quotesteps li.done::before { content: "✓"; color: var(--green); font-weight: 700; }
.clientstep { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.clientstep h3 { margin: 0; font-size: 16px; }
@media (max-width: 640px) {
  .searchhero { padding: 16px; }
  .searchfield { flex-basis: 100%; }
  .searchgo { flex-basis: 100%; }
  .producttab { padding: 7px 10px; font-size: 13px; }
  .paxmenu { left: 0; right: auto; width: 100%; max-width: none; }
}

/* Campañas */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mailpreview { display: block; width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media (max-width: 640px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }

/* Mensajes listos para elegir */
.textoptions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chipbtn { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-ink); font: inherit; font-size: 13px; cursor: pointer; }
.chipbtn:hover { background: var(--brand-soft); }

/* Resumen financiero */
.markupform { margin: 0 0 12px; }
.financestate { margin: 10px 0 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: 14px; }
.financestate.aprobada, .financestate.autorizada { color: var(--green); }
.financestate.requiere { color: var(--red); }
.tiername { margin: 0; align-self: center; }

/* Super admin */
.supportbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: #fdecea; color: var(--red); font-size: 14px; font-weight: 600; }
.flushtitle { padding: 16px 18px 4px; margin: 0; }

/* El pingüino */
.penguintab { position: fixed; right: 0; bottom: 96px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; padding: 9px 11px 9px 9px; border: 0; border-radius: 16px 0 0 16px; background: #111214; box-shadow: 0 6px 20px rgba(17, 18, 20, .35); cursor: pointer; }
.penguintab:hover { width: 66px; }
.penguintab img { display: block; max-width: 100%; max-height: 100%; }
.penguinpanel { position: fixed; right: 16px; bottom: 16px; z-index: 41; display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 32px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(17, 18, 20, .28); overflow: hidden; }
.penguinpanel[hidden] { display: none; }
.penguinpanel header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #111214; color: #fff; }
.penguinpanel header img { height: 26px; width: auto; }
.penguinpanel header strong { flex: 1; font-size: 15px; }
.penguinpanel header button { border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.penguinlog { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--bg); }
.penguinmsg { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.penguinmsg.bot { align-self: flex-start; max-width: 90%; background: #fff; border: 1px solid var(--line); }
.penguinmsg.user { align-self: flex-end; max-width: 85%; background: #111214; color: #fff; }
.penguinsuggest { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.penguinsuggest[hidden] { display: none; }
.penguinsuggest button, .penguinfeedback button { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.penguinfeedback { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
#penguin-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
#penguin-form textarea { flex: 1; min-width: 0; resize: none; font-size: 14px; }
.penguinnote { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); }
.preline { white-space: pre-line; }
@media (max-width: 520px) {
  .penguinpanel { right: 0; bottom: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
@media print { .penguintab, .penguinpanel, .supportbar { display: none !important; } }

/* Menú agrupado */
.topnav nav { align-items: center; }
.navgroup { position: relative; }
.navgroup summary { padding: 4px 2px; color: rgba(255, 255, 255, .88); cursor: pointer; list-style: none; white-space: nowrap; }
.navgroup summary::-webkit-details-marker { display: none; }
.navgroup summary::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .75; }
.navgroup summary:hover, .navgroup[open] summary { color: #fff; }
.navgroup.active summary, .topnav nav .navlink.active { color: #fff; font-weight: 600; box-shadow: 0 2px 0 #e5e4e2; }
.navmenu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(17, 18, 20, .2); }
.withy-panel .topnav nav .navmenu a { padding: 8px 10px; border-radius: 6px; color: var(--text); }
.withy-panel .topnav nav .navmenu a:hover { background: var(--brand-soft); color: var(--text); text-decoration: none; }
.withy-panel .topnav nav .navmenu a.active { background: var(--brand-soft); font-weight: 600; }
@media (max-width: 520px) {
  .navgroup[open] { flex: 1 1 100%; }
  .navmenu { position: static; margin-top: 8px; box-shadow: none; }
}

/* Multidestino */
.multiadd { align-self: flex-start; background: #fff; }
.slicelist .slice .searchfield { flex: 1 1 150px; }

/* Video de la pantalla de entrada: blanco y negro, oscurecido */
.authvideo { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.55); }
.authveil { position: fixed; inset: 0; z-index: -1; background: rgba(10, 11, 13, .55); }
body.withy-auth { background: #0b0c0e; }
.withy-auth .card.auth { background: rgba(17, 18, 20, .55); }
@media (prefers-reduced-motion: reduce) { .authvideo { display: none; } }

/* Withy, el asistente: cuerpo completo y animado */
.withyperch { position: fixed; right: 10px; bottom: 66px; z-index: 40; display: flex; align-items: flex-end; gap: 4px; }
.withyperch[hidden] { display: none; }
.penguintab, .penguintab:hover { position: static; width: 92px; height: 122px; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.withyfigure { display: block; width: 100%; height: 100%; overflow: visible; }
.withybubble { position: relative; margin-bottom: 72px; padding: 10px 14px; max-width: 190px; border: 1px solid var(--line); border-radius: 14px 14px 2px 14px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; box-shadow: 0 8px 24px rgba(17, 18, 20, .18); cursor: pointer; animation: withy-pop .35s ease-out; }
.withybubble[hidden] { display: none; }
.withybody { animation: withy-bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.withyshadow { animation: withy-shadow 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.withywing-wave { animation: withy-wave 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.withywing-still { animation: withy-rest 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 100% 0%; }
.withyeyes { animation: withy-blink 5s infinite; transform-box: fill-box; transform-origin: center; }
.penguintab:hover .withywing-wave { animation-duration: 1s; }
.penguintab:hover .withybody { animation-duration: 1.4s; }
@keyframes withy-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1.5deg); } }
@keyframes withy-shadow { 0%, 100% { transform: scaleX(1); opacity: .16; } 50% { transform: scaleX(.86); opacity: .1; } }
@keyframes withy-wave { 0%, 45%, 100% { transform: rotate(0); } 55%, 75% { transform: rotate(-20deg); } 65%, 85% { transform: rotate(8deg); } }
@keyframes withy-rest { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }
@keyframes withy-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes withy-pop { from { transform: translateY(8px) scale(.95); } to { transform: none; } }
.withyhead { display: block; width: 30px; height: 40px; flex: none; }
.penguinpanel header strong small { display: block; font-size: 11px; font-weight: 400; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .withybody, .withyshadow, .withywing-wave, .withywing-still, .withyeyes, .withybubble { animation: none; } }
@media (max-width: 520px) { .penguintab, .penguintab:hover { width: 72px; height: 96px; } .withybubble { margin-bottom: 56px; max-width: 160px; font-size: 13px; } }
@media print { .withyperch { display: none !important; } }

.penguinmsg.typing { display: inline-flex; gap: 5px; align-items: center; min-height: 36px; }
.penguinmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: withy-dot 1.1s ease-in-out infinite; }
.penguinmsg.typing span:nth-child(2) { animation-delay: .16s; }
.penguinmsg.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes withy-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .penguinmsg.typing span { animation: none; } }

/* Withy sobre fondo negro en la orilla, como en el logo */
.withyperch { right: 0; }
.penguintab, .penguintab:hover { width: 96px; height: 128px; padding: 8px 6px 6px 8px; background: #111214; border-radius: 18px 0 0 18px; box-shadow: 0 8px 26px rgba(17, 18, 20, .35); }
@media (max-width: 520px) { .penguintab, .penguintab:hover { width: 76px; height: 102px; } }

/* Varios videos en la entrada: se alternan con transición suave */
.authvideos { position: fixed; inset: 0; z-index: -2; background: #0b0c0e; }
.authvideos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.05) brightness(.6); transition: opacity 1.2s ease; }
.authvideos video.visible { opacity: 1; }

/* Withy camina en el lado izquierdo */
.withyperch { left: 12px; right: auto; bottom: 8px; display: block; width: 104px; }
.penguintab, .penguintab:hover { display: block; width: 104px; height: 126px; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.withybubble { position: absolute; left: 62px; bottom: 112px; margin: 0; width: max-content; max-width: 200px; border-radius: 14px 14px 14px 2px; }
.withyperch.facing-left .withyfigure { transform: scaleX(-1); }
.withybody { animation: withy-breathe 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes withy-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.withywaddle { transform-box: fill-box; transform-origin: 50% 100%; }
.withyfoot { transform-box: fill-box; transform-origin: 50% 0%; }
.walking .withywaddle { animation: withy-waddle .56s ease-in-out infinite; }
.walking .withyfoot-left { animation: withy-step .56s ease-in-out infinite; }
.walking .withyfoot-right { animation: withy-step .56s ease-in-out infinite reverse; }
.walking .withysparks { opacity: 0; }
.walking .withywing-wave { animation: withy-rest .56s ease-in-out infinite; }
.withysparks { transition: opacity .3s; animation: withy-sparks 2.8s ease-in-out infinite; }
@keyframes withy-waddle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-2px); } }
@keyframes withy-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-8deg); } }
@keyframes withy-sparks { 0%, 45%, 100% { opacity: 0; } 55%, 85% { opacity: 1; } }
.penguinpanel { left: 16px; right: auto; }
.withyhead .withysparks, .withyhead .withyshadow { display: none; }
@media (prefers-reduced-motion: reduce) { .withywaddle, .withyfoot, .withysparks { animation: none; } }
@media (max-width: 520px) {
  .withyperch { width: 80px; left: 6px; }
  .penguintab, .penguintab:hover { width: 80px; height: 97px; }
  .withybubble { left: 48px; bottom: 86px; }
  .penguinpanel { left: 0; }
}

/* Withy más pequeño, con contorno y en la zona izquierda */
.withyperch { width: 82px; left: 10px; bottom: 6px; }
.penguintab, .penguintab:hover { width: 82px; height: 100px; }
.withybubble { left: 52px; bottom: 90px; }
@media (max-width: 520px) { .withyperch { width: 66px; } .penguintab, .penguintab:hover { width: 66px; height: 80px; } .withybubble { left: 42px; bottom: 72px; } }

/* Withy se asoma desde la pared izquierda con medio cuerpo y sale a saludar */
.withyperch { left: 0; bottom: 8px; transform: translateX(-46%); transition: transform .55s cubic-bezier(.3, 1.3, .5, 1); }
.withyperch.out { transform: translateX(10px); }
.withyperch .withybubble { left: 60px; bottom: 94px; }
.withyperch:not(.out) .withyshadow { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .withyperch { transition: none; } }

/* Transición más lenta y relajante entre videos */
.authvideos video { transition: opacity 2s ease-in-out; }

/* Resplandor naranja, como el pico de Withy, detrás de la tarjeta de entrada */
.withy-auth .card.auth { box-shadow: 0 0 0 1px rgba(255, 138, 61, .25), 0 18px 70px rgba(255, 138, 61, .38); }

/* Resplandor naranja más suave */
.withy-auth .card.auth { box-shadow: 0 0 0 1px rgba(255, 138, 61, .12), 0 16px 56px rgba(255, 138, 61, .14); }

/* Tablero de ventas de clientes potenciales */
.viewtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.viewtabs a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.viewtabs a[aria-current=page] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.forgotbanner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); background: #fff4ea; border: 1px solid #ffd2b0; color: #8a3d0b; text-decoration: none; }
.forgotbanner span { font-weight: 600; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.boardcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid #9aa0a6; }
.boardcol header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 2px 2px 4px; }
.boardcol.stage-nuevo { border-top-color: #4a90d9; }
.boardcol.stage-contactado { border-top-color: #b58cd9; }
.boardcol.stage-cotizado { border-top-color: #ff8a3d; }
.boardcol.stage-convertido { border-top-color: var(--green); }
.boardcol.stage-descartado { border-top-color: var(--red); }
.boardempty { margin: 6px 2px; }
.leadcard { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.leadcard.forgotten { border-color: #ffb27a; box-shadow: inset 3px 0 0 #ff8a3d; }
.leadcard p { margin: 4px 0 0; }
.leadname { font-weight: 700; color: var(--text); text-decoration: none; }
.leadname:hover { text-decoration: underline; }
.tagline { display: flex; flex-wrap: wrap; gap: 4px; }
.leadmeta { color: var(--muted); }
.late { color: #b4500f; font-weight: 700; margin-right: 6px; }
.movecard { display: flex; gap: 6px; margin-top: 8px; }
.movecard select { flex: 1; min-width: 0; font-size: 13px; padding: 4px 6px; }
.leadlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.stagepick { display: flex; flex-wrap: wrap; gap: 8px; }
.stagepick label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; }
.stagepick label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 6px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; border: 2px solid var(--card); }
.timeline li.ev-contacto::before, .timeline li.ev-nota::before { background: #b58cd9; }
.timeline li.ev-cotizacion::before { background: #ff8a3d; }
.timeline li.ev-venta::before { background: var(--green); }
.timeline li.ev-descarga::before { background: #4a90d9; }
.timeline p { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .leadlayout { grid-template-columns: minmax(0, 1fr); }
  .board { grid-auto-columns: 82%; }
}
.stagepick label, .checkline { flex-direction: row; }
.stagepick input[type=radio], .checkline input[type=checkbox] { width: auto; height: auto; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; box-shadow: none; }
.checkline { justify-content: flex-start; }

/* Tareas y respuestas guardadas de clientes potenciales */
.tasklist { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tasklist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.tasklist li.late { border-color: #ffb27a; background: #fff8f2; }
.tasklist li.today { border-color: var(--brand); }
.tasklist li.done .tasktext span { text-decoration: line-through; color: var(--muted); }
.tasktext { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.taskcheck { width: 24px; height: 24px; flex: 0 0 24px; padding: 0; border-radius: 7px; border: 2px solid var(--muted); background: var(--card); color: var(--green); font-weight: 800; line-height: 1; cursor: pointer; }
.tasklist li.done .taskcheck { border-color: var(--green); }
.taskadd { display: flex; flex-wrap: wrap; gap: 8px; }
.taskadd input[name=title] { flex: 1 1 200px; min-width: 0; }
.taskadd input[type=date] { flex: 0 0 auto; width: auto; }
.reply { border-top: 1px solid var(--line); padding: 8px 0; }
.reply summary { cursor: pointer; font-weight: 600; }
.reply textarea { width: 100%; margin-top: 8px; }
.replyactions { gap: 8px; margin-top: 6px; }
.steprow { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.templaterows { display: flex; flex-direction: column; gap: 8px; }
.replyrow { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
/* Bandeja sin asignar y avisos sin contactar */
.chip.alertchip { background: #fff4ea; color: #8a3d0b; border-color: #ffd2b0; }
.forgotbanner.urgent { background: #fdecec; border-color: #f3b4b4; color: #8f1d1d; }
.forgotbanner.calm { background: #eef4fd; border-color: #c7dbf6; color: #1d4a8f; }
.traylist { list-style: none; margin: 0; padding: 0; }
.traylist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.traylist li:first-child { border-top: 0; }
.traylist li div { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 560px) { .traylist li { flex-direction: column; align-items: stretch; } }
/* Enlace personal de cada ejecutiva */
.copyrow { gap: 8px; align-items: center; }
.copyrow input { flex: 1 1 260px; min-width: 0; }

/* Planes */
.planlocked { max-width: 620px; margin: 40px auto; text-align: center; }
.planlocked form { margin-top: 18px; }
.planname { width: 110px; font-weight: 700; }
.planrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.planrow details label { display: block; }
/* Asistente de reservas */
.checks { list-style: none; margin: 0 0 8px; padding: 0; }
.checks li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.checks li:first-child { border-top: 0; }
.audience { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.audience legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 4px; }

/* Logística del viaje */
.logigrid td, .logigrid th { white-space: nowrap; }
.logigrid td:first-child { white-space: normal; min-width: 140px; }
.proposals input:not([type=checkbox]), .proposals select { min-width: 0; width: 100%; }
.proposals td:nth-child(3) { min-width: 240px; }
.addtask { margin-top: 12px; }
.addtask summary { display: inline-block; list-style: none; cursor: pointer; }
.addtask summary::-webkit-details-marker { display: none; }
.addtask[open] summary { margin-bottom: 10px; }

.contracttext h3 { margin: 18px 0 6px; }
.contracttext h3:first-child { margin-top: 0; }
.contracttext p { margin: 0 0 8px; line-height: 1.55; }

/* Contrato con la marca de la agencia: tres diseños que la agencia elige */
.contractdoc { --doc-brand: #111214; --doc-on: #fff; --doc-ink: #111214; --doc-soft: #f4f4f5; --doc-accent: #ff8a3d;
  background: #fff; color: #1d1d1f; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; overflow: hidden; }
.contractdoc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; flex-wrap: wrap; }
.contractdoc-logo img { max-height: 56px; max-width: 220px; display: block; object-fit: contain; }
.contractdoc-logo strong { font-size: 20px; color: var(--doc-ink); }
.contractdoc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: #55565a; text-align: right; }
.contractdoc-body { padding: 8px 32px 24px; font-size: 15px; line-height: 1.6; }
.contractdoc-body h3 { margin: 22px 0 8px; color: var(--doc-ink); font-size: 16px; }
.contractdoc-body h3.doctitle { margin-top: 14px; font-size: 22px; }
.contractdoc-body p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.contractdoc-body mark { background: #fff1c2; color: #7d5300; border-radius: 3px; padding: 0 3px; }
.contractdoc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 32px; font-size: 12px; color: #6b6c70; border-top: 1px solid var(--line); }
/* Moderno: banda con el color de la agencia y el logo sobre fondo blanco */
.style-moderno .contractdoc-head { background: var(--doc-brand); color: var(--doc-on); }
.style-moderno .contractdoc-logo { background: #fff; border-radius: 8px; padding: 8px 12px; }
.style-moderno .contractdoc-meta { color: var(--doc-on); opacity: .92; }
.style-moderno .contractdoc-body h3 { padding-left: 10px; border-left: 4px solid var(--doc-accent); }
.style-moderno .contractdoc-body h3.doctitle { padding-left: 0; border-left: 0; }
.style-moderno .contractdoc-foot { background: var(--doc-soft); }
/* Clásico: logo centrado, títulos con serifa y filetes de color */
.style-clasico .contractdoc-head { flex-direction: column; text-align: center; border-bottom: 3px double var(--doc-brand); }
.style-clasico .contractdoc-meta { align-items: center; text-align: center; }
.style-clasico .contractdoc-body h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.style-clasico .contractdoc-body h3.doctitle { text-align: center; font-size: 24px; }
.style-clasico .contractdoc-foot { justify-content: center; border-top: 3px double var(--doc-brand); }
/* Sencillo: línea fina de color y logo a la izquierda */
.style-sencillo { border-top: 6px solid var(--doc-brand); }
.style-sencillo .contractdoc-head { border-bottom: 1px solid var(--line); }
.style-sencillo .contractdoc-body h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.style-sencillo .contractdoc-body h3.doctitle { text-transform: none; letter-spacing: 0; font-size: 22px; }
.stylepicker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.stylepicker label { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
@media (max-width: 520px) { .contractdoc-head, .contractdoc-body, .contractdoc-foot { padding-left: 18px; padding-right: 18px; } .contractdoc-meta { align-items: flex-start; text-align: left; } }
@media print { .noprint, .withyperch, .penguintab { display: none !important; } .contractdoc { border: 0; border-radius: 0; }
  .contractdoc, .contractdoc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Editor del contrato por cláusulas */
.clauselist { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 12px; counter-reset: clause; }
.clause { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.clause.intro { background: var(--brand-soft, #f6f6f7); }
.clausehead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clausetitle { flex: 1 1 240px; font-weight: 700; font-size: 15px; }
.clausetools { display: flex; gap: 6px; }
.clausebody { width: 100%; resize: vertical; line-height: 1.55; min-height: 70px; overflow: hidden; }
.fieldpick { align-self: flex-start; width: auto; max-width: 100%; font-size: 13px; }


/* --- Portal de profesionales: aspecto de app de trabajo, primero celular --- */
.proapp { background: #f4f4f2; }
.prohead { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: #111214; color: #fff; }
.prologo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.prologo:hover { text-decoration: none; }
.prologo img { height: 28px; }
.prologo span { color: #e5e4e2; font-size: 14px; padding-left: 10px; border-left: 1px solid rgba(229, 228, 226, .35); }
.protabs { display: flex; gap: 6px; flex: 1; justify-content: center; }
.protabs a { display: inline-flex; align-items: center; gap: 8px; color: #e5e4e2; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.protabs a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.protabs a[aria-current=page] { background: #fff; color: #111214; font-weight: 600; }
.protabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.proexit, .proexit .linkish { margin-left: auto; color: #e5e4e2; font-size: 14px; }
.propage { padding-top: 24px; }
.prowelcome { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; background: #111214; color: #fff; font-weight: 700; flex: none; }
.avatar.big { width: 72px; height: 72px; font-size: 28px; }
.prostatus { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chip.aprobado { background: #e4f4ea; color: var(--green); }
.chip.pendiente, .chip.invitado, .chip.sin_verificar { background: #fff3d6; color: var(--warn); }
.chip.pausado { background: #f0f1f5; color: var(--muted); }
.chip.rechazado { background: #fdecea; color: var(--red); }
.meter { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin: 4px 0 12px; }
.meter span { display: block; height: 100%; background: #ff8a3d; border-radius: 999px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cdd0df; }
.checklist li.ok::before { background: var(--green); border-color: var(--green); }
.checklist li.ok a { color: var(--muted); text-decoration: line-through; }
.protrip { display: flex; flex-direction: column; padding: 8px 0 8px 12px; border-left: 3px solid #ff8a3d; margin-bottom: 8px; }
.protrip.compartido { border-left-color: #111214; }
.proguard { margin: -8px 0 14px; }
.proaddress .handle { font-size: 22px; font-weight: 700; margin: 2px 0 6px; overflow-wrap: anywhere; }
.prophoto { display: flex; gap: 18px; align-items: center; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.service { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.service h3 { margin: 0; font-size: 15px; }
.service .price { font-weight: 700; margin-top: auto; }
.yeargrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 86px; display: flex; flex-direction: column; gap: 4px; }
.month h3 { margin: 0 0 2px; font-size: 13px; }
.month.busy { border-color: #111214; }
.tripchip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #111214; color: #fff; overflow-wrap: anywhere; }
.tripchip.exclusivo { background: #ff8a3d; color: #111214; }
.legend { display: flex; gap: 8px; margin-bottom: 16px; }
.prohero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 3vh; }
.prohero h1 { font-size: 36px; }
.eyebrow { color: #ff8a3d; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.prohero .lead { font-size: 17px; color: var(--muted); margin: 14px 0 20px; }
.probenefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.probenefits li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.prosignup label small { font-weight: 400; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose h2 { margin-top: 18px; }
.prose p { margin-top: 6px; }
.draftnote { background: #fff3d6; color: var(--warn); padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.btn.danger { color: var(--red); border-color: #f4c7c1; }
@media (max-width: 760px) {
  .prohead { padding: 10px 16px; }
  .proapp.signed .propage { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .protabs { position: fixed; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0; background: #111214; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2b30; }
  .protabs a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 10px; border-radius: 10px; }
  .protabs a[aria-current=page] { background: rgba(255, 255, 255, .12); color: #fff; }
  .protabs svg { width: 22px; height: 22px; }
  .prohero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .prohero h1 { font-size: 28px; }
  .yeargrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prophoto { align-items: flex-start; }
}
.services .wide-row { grid-column: 1 / -1; }

/* Postventa */
.chip.case-abierto { background: var(--brand-soft); color: var(--brand-ink); }
.chip.case-en_gestion { background: #fff3d6; color: var(--warn); }
.chip.case-esperando_proveedor, .chip.case-esperando_cliente { background: #f1e9fb; color: #6b3fa0; }
.chip.case-resuelto { background: #e4f4ea; color: var(--green); }
.chip.case-cerrado { background: #f0f1f5; color: var(--muted); }
.chip.carechip { background: #fdecea; color: #99271b; }
.carenotice { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid #f4c7c1; background: #fdecea; color: #99271b; }
.table tr.caselate td { background: #fff8f2; }
.timeline li.ev-estado::before, .timeline li.ev-respuesta::before { background: #4a90d9; }
.timeline li.ev-atencion::before { background: var(--red); }
.timeline li.ev-abierto::before { background: #ff8a3d; }
.caseupdates { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.caseupdates li { padding: 6px 0; border-top: 1px solid var(--line); }


/* Cursos */
.chip.completado, .chip.publicado { background: #e4f4ea; color: var(--green); }
.chip.en_curso { background: #fff3d6; color: var(--warn); }
.chip.sin_empezar, .chip.borrador { background: #f0f1f5; color: var(--muted); }
.coursegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.coursecard { display: flex; flex-direction: column; gap: 8px; margin: 0; color: var(--text); transition: border-color .15s; }
.coursecard:hover { border-color: #ff8a3d; text-decoration: none; }
.coursecard h2 { margin: 4px 0 0; font-size: 18px; }
.coursecard p { margin: 0; }
.meter { height: 8px; background: #f0f1f5; border-radius: 999px; overflow: hidden; margin: 6px 0; }
.meter span { display: block; height: 100%; background: #ff8a3d; border-radius: 999px; }
.lessonlist { list-style: none; margin: 0; padding: 0; }
.lessonlist li + li { border-top: 1px solid var(--line); }
.lessonlist a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--text); min-height: 52px; }
.lessonlist a:hover { background: var(--bg); text-decoration: none; }
.lessonmark { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #f0f1f5; color: var(--muted); }
.lessonlist li.done .lessonmark { background: #ff8a3d; color: #111214; }
.lesson h1 { margin-top: 0; }
.lessonbody { font-size: 16px; line-height: 1.6; max-width: 72ch; }
.videobox { position: relative; aspect-ratio: 16 / 9; background: #111214; border-radius: var(--radius); overflow: hidden; margin: 12px 0 18px; }
.videobox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lessonnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quizq { border: 1px solid var(--line); }
.quizq legend { float: left; width: 100%; font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.quizq legend + * { clear: both; }
.quizq .checkline { padding: 6px 0; font-size: 15px; }
.quizq input[type=radio] { width: auto; height: auto; min-height: 0; margin: 0; flex: 0 0 auto; box-shadow: none; }
.quizq.wrong { border-color: var(--red); }
.quizq.right { border-color: var(--green); }
.quizhint { color: var(--red); margin: 6px 0 0; }
.lessonedit { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.lessonedit summary { padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lessonedit > form, .lessonedit > .lessontools { padding: 0 14px 14px; }
.lessonedit.addlesson summary { color: var(--brand-ink); }
.quizedit { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quizedit ol { margin: 6px 0 0; padding-left: 20px; }
.progresstable td { min-width: 150px; }
@media (max-width: 520px) {
  .lessonnav { flex-direction: column-reverse; align-items: stretch; }
  .lessonnav .btn, .lessonnav form .btn { width: 100%; }
  .lessonnav > span:empty { display: none; }
}


/* Asistente de videos */
.notice-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.plainlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.videolength { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.videolength legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.videolength input[type=radio] { width: auto; min-height: 0; }
.scenes { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scene { border: 1px solid var(--line); border-left: 3px solid #ff8a3d; border-radius: 6px; padding: 10px 14px; }
.scene p { margin: 6px 0 0; }
.videophotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.videophotos img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; display: block; }

/* Comisión por persona en Equipo */
.commissionform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.commissionform select { width: auto; }
.commissionform input[name="value"] { width: 7em; }
.commissionform input[name="currency"] { width: 5em; text-transform: uppercase; }
.commissionlist { list-style: none; margin: 0 0 18px; padding: 0; }
.commissionlist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.commissionlist li > div { display: flex; flex-direction: column; min-width: 0; }
/* Globito «i» de ayuda (nav.js) */
.helpdot { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; padding: 0; vertical-align: middle;
  border-radius: 50%; border: 1px solid #cfd2dc; background: var(--card); color: var(--muted); font: italic 700 12px/1 Georgia, "Times New Roman", serif; cursor: pointer; }
.helpdot:hover, .helpdot:focus-visible, .helpdot[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.helpdot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1 .helpdot, h2 .helpdot, h3 .helpdot { position: relative; top: -2px; }
.helpnote { display: block; margin: 6px 0 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 400; line-height: 1.5; }
.helpnote[hidden] { display: none; }
.labelline { display: flex; align-items: center; flex-wrap: wrap; }
.labelline .helpdot { margin-left: 6px; }
/* Avisos compactos: franjas delgadas con un punto de color, una al lado de otra cuando caben */
.forgotbanner { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; max-width: 100%; margin: 0 6px 10px 0; padding: 6px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; }
.forgotbanner::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.forgotbanner strong { font-weight: 600; }
.forgotbanner span { font-weight: 500; white-space: nowrap; opacity: .85; }
.forgotbanner:hover span, .forgotbanner:focus-visible span { opacity: 1; text-decoration: underline; }
/* Avisos de Withy según quién entra */
.penguintab { position: relative; }
.withybadge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font: 700 11px/18px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.penguinnotices { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--line); }
.penguinnoticestitle { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.penguinnotices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.penguinnotices li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.4; }
.penguinnotices li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.penguinnotices li.notice-urgente::before { background: var(--red); }
.penguinnotices li.notice-importante::before { background: #ff8a3d; }
.penguinnotices a { color: var(--text); text-decoration: none; }
.penguinnotices a:hover, .penguinnotices a:focus-visible { text-decoration: underline; }
.agencyname { font-weight: 600; color: var(--brand-ink); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.withy-panel .agencyname { color: #fff; }

/* Withy más abajo, apoyado en el borde inferior */
.withyperch { bottom: 0; }
.withyperch .withybubble { bottom: 86px; }
@media (max-width: 520px) { .withyperch .withybubble { bottom: 68px; } }
/* El botón heredaba "bottom: 96px" de la versión antigua y subía a Withy */
.withyperch .penguintab { bottom: 0; right: auto; }

/* Withy se queda quieto mientras lo tocan o tiene el foco: sin saltos al hacer clic */
.penguintab:hover .withybody, .penguintab:focus .withybody, .penguintab:active .withybody,
.penguintab:hover .withyshadow, .penguintab:focus .withyshadow, .penguintab:active .withyshadow { animation: none; }
.penguintab:hover .withywing-wave, .penguintab:focus .withywing-wave { animation-duration: 2.8s; }
/* Aviso de administración a reservas: no comprar todavía */
.chip.holdchip { background: #fdecec; border-color: #f3b4b4; color: #8f1d1d; }

.unfitwarning { border: 1px solid #f3b4b4; background: #fdecec; color: #8f1d1d; border-radius: 8px; padding: 8px 10px; }
.unfitwarning p, .unfitwarning ul { margin: 0 0 6px; }
.unfitwarning ul { padding-left: 18px; }


/* Crear viaje leyendo un link o un PDF */
.reader { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.reader-lead { margin: 0; }
.reader-or { font-size: 15px; margin: 14px 0 4px; color: var(--muted); }
.reader-result { background: #fff8e6; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.reader-result p { margin: 4px 0; }
.source { display: block; font-size: 12.5px; font-weight: 400; color: var(--warn); margin-top: 4px; overflow-wrap: anywhere; }
.source em { color: var(--muted); font-style: normal; }
.source.missing { color: var(--red); }

/* Inicio de operaciones y reservas */
.profilecard { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.profilephoto { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px #ff8a3d; }
.profilephoto img { width: 100%; height: 100%; object-fit: cover; }
.profilephoto .initials { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.profiletext { flex: 1 1 220px; min-width: 0; }
.profiletext h1 { margin: 0 0 2px; }
.profiletext p { margin: 0; }
.photoform { display: flex; gap: 8px; align-items: center; }
.photoform label.btn { cursor: pointer; }
.stats .alertstat dd { color: var(--red); }
.noticelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.noticelist li { display: flex; gap: 8px; align-items: baseline; }
.noticelist li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.noticelist li.notice-urgente::before { background: var(--red); }
.noticelist li.notice-importante::before { background: #ff8a3d; }
.noticelist a { color: var(--text); }
.cardhead { padding: 16px 18px 0; }
.triplist { list-style: none; margin: 0; padding: 0; }
.triplist li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.triplist li:first-child { border-top: 0; }
.tripwhen, .tripinfo { display: flex; flex-direction: column; min-width: 0; }
.tripchips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) { .triplist li { grid-template-columns: 1fr; } .tripchips { justify-content: flex-start; } }

/* Idioma: ícono del mundo en la esquina, con la lista al tocarlo */
.langmenu { position: relative; display: inline-block; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover, .langmenu[open] summary { background: rgba(127, 127, 127, .2); }
.langlist { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 140px; display: flex; flex-direction: column; padding: 6px; background: #fff; color: #1d1d1f; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.langlist button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.langlist button:hover { background: #f2f2f3; }
.langlist button[disabled] { font-weight: 700; cursor: default; opacity: 1; }
.langlist button[disabled]::after { content: " ✓"; }
.withy-panel .topnav .langmenu summary { color: rgba(255, 255, 255, .88); }
/* En la entrada: arriba a la derecha, no al centro */
.withy-auth .langmenu { position: fixed; top: 16px; right: 16px; z-index: 60; }
.withy-auth .langmenu summary { color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .3); }

.buychecklist { list-style: none; margin: 0 0 12px; padding: 0; }
.buychecklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.buychecklist li:first-child { border-top: 0; }
.buychecklist p { margin: 0; }
.buychecklist .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.buychecklist .ok .mark { background: #e4f4ea; color: var(--green); }
.buychecklist .warn .mark { background: #fff3d6; color: var(--warn); }
.buychecklist .bad .mark { background: #fdecea; color: var(--red); }
.buychecklist .tag { font-size: 11px; padding: 1px 8px; border-radius: 6px; background: #f0f1f5; color: var(--muted); font-weight: 400; margin-left: 6px; }

.editdata { margin-top: 6px; }
.editdata summary { cursor: pointer; display: inline-block; }
.editdata form { margin-top: 10px; min-width: min(320px, 80vw); }
td.actions .editdata form { text-align: left; }

/* Clientes potenciales nuevos, junto al título */
.titlewithpill { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.newpill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: #eef7f1; color: #1d6b3f; border: 1px solid #cfe9da; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.newpill:hover { background: #e2f2e8; }
.newpill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa565; box-shadow: 0 0 0 3px rgba(47, 165, 101, .18); }

.outline { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.outline h3 { font-size: 15px; margin: 16px 0 6px; }
.outline ul { margin: 0; padding-left: 18px; }
.outline .chip.big { margin: 0 4px 6px 0; }
.outline-saved summary { cursor: pointer; }
.outline-text { white-space: pre-wrap; font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }

/* Buscador compacto: etiqueta chica arriba y el valor en una sola línea */
.searchfield { padding: 6px 12px; font-size: 11px; line-height: 1.25; letter-spacing: .01em; }
.searchfield input, .searchfield select { min-height: 0; height: 22px; margin-top: 1px; padding: 0; font-size: 15px; line-height: 22px; }
.searchgo { min-height: 46px; }
.searchlabel { display: block; }

/* Calendario propio: una casilla «Fechas» que abre dos meses */
.datefield { flex: 1.5 1 210px; }
.datefield-open { display: block; width: 100%; height: 22px; margin-top: 1px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.datefield-open.empty { color: #8a8d94; }
.datefield-open:focus { outline: none; }
.datepop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: max-content; max-width: calc(100vw - 24px); padding: 14px 16px 10px; background: #fff; color: var(--text); border-radius: 16px; box-shadow: 0 18px 50px rgba(17, 18, 20, .28); font-size: 14px; font-weight: 400; letter-spacing: 0; cursor: default; }
.datehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.datenav { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f1f2; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.datenav:disabled { opacity: .35; cursor: default; }
.datestatus { color: var(--muted); font-size: 13px; font-weight: 600; }
.datestatus.count { padding: 3px 10px; border-radius: 999px; background: #111214; color: #fff; font-size: 12px; }
.datechips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.datechips button { padding: 4px 11px; border: 1px solid #dcdcde; border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.datechips button:hover:not(:disabled) { border-color: #111214; }
.datechips button:disabled { opacity: .45; cursor: default; }
.datemonths { display: flex; gap: 26px; }
.datemonth h4 { margin: 10px 0 6px; font-size: 15px; text-align: center; }
.dategrid { display: grid; grid-template-columns: repeat(7, 38px); row-gap: 2px; }
.datedow { padding-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; text-transform: uppercase; }
.dateday { position: relative; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.dateday:hover:not(:disabled):not(.start):not(.end) { background: #f1f1f2; }
.dateday.inside:hover:not(:disabled) { background: #ffe2cc; }
.dateday:focus-visible { outline: 2px solid #111214; outline-offset: -2px; }
.dateday.past { color: #c4c6ca; cursor: default; }
.dateday.inside { border-radius: 0; background: #fff1e7; }
.dateday.start, .dateday.end { background: #ff8a3d; color: #111214; font-weight: 700; }
.dateday.start { border-radius: 50% 0 0 50%; }
.dateday.end { border-radius: 0 50% 50% 0; }
.dateday.only, .dateday.start.end { border-radius: 50%; }
.dateday.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #ff8a3d; }
.dateday.start.today::after, .dateday.end.today::after { background: #111214; }
.datefoot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ececee; }
.dateclear { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.datedone { padding: 8px 18px; border: 0; border-radius: 10px; background: #111214; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) {
  .datepop { width: calc(100vw - 24px); width: calc(100dvw - 24px); }
  .datemonths { flex-direction: column; gap: 4px; max-height: 58vh; overflow-y: auto; }
  .dategrid { grid-template-columns: repeat(7, 1fr); }
}

.capsule summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.capsuleicon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ff8a3d; color: #111214; font-weight: 800; }
.capsulesteps { list-style: none; counter-reset: paso; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.capsulesteps li { counter-increment: paso; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.capsulesteps svg { width: 44px; height: 44px; flex: none; }
.capsulesteps strong::before { content: counter(paso) ". "; color: #ff8a3d; }
.capsulesteps p { margin: 4px 0 0; font-size: 14px; }

/* Alta de varios clientes */
.bulk-row.has-errors { border-color: var(--red); }
.bulk-row.is-off { opacity: .55; }
.bulk-row h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.bulk-msgs { margin: 0; padding-left: 22px; }
.bulk-passport summary { cursor: pointer; padding: 4px 0 10px; }
.bulk-passport .to-review input, .bulk-passport .to-review select { border-color: #ff8a3d; background: #fff7f0; }
.bulk-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bulk-files li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg); border-radius: 6px; font-size: 14px; }
.bulk-files li .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bulk-files li.error { color: var(--red); }

/* Plan día a día y avisos */
.plan { display: grid; gap: 12px; }
.planday { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.planday.today { border-color: #ff8a3d; box-shadow: 0 0 0 2px rgba(255, 138, 61, .25); }
.planday header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.planday h3 { margin: 0; font-size: 15px; }
.daynum { font-size: 12px; font-weight: 700; color: #ff8a3d; text-transform: uppercase; letter-spacing: .04em; }
.leaderbox { background: #f4f4f2; border-left: 3px solid #111214; border-radius: 6px; padding: 8px 12px; display: grid; gap: 2px; }
.notice { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 6px; }
.notice:first-of-type { border-top: 0; }
.notice.unread { border-left: 3px solid #ff8a3d; padding-left: 10px; }
.tripcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); }
.tripcard:hover { text-decoration: none; border-color: #111214; }
.tripcard small { display: block; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #ff8a3d; color: #111214; font-size: 12px; font-weight: 700; text-align: center; }
/* Tipos de profesional */
.kindpick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.kindpick legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.kindopt { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.kindopt:has(input:checked) { border-color: #111214; box-shadow: 0 0 0 1px #111214; }
.kindopt input { width: auto; min-height: 0; margin-top: 3px; }
.kindopt span { display: flex; flex-direction: column; gap: 2px; }
.procard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.procard header { display: flex; gap: 12px; align-items: center; }
.procard header small { display: block; }
.procard .avatar { width: 44px; height: 44px; font-size: 18px; }
.netsum { display: block; }
.netrow { padding: 10px 0; border-top: 1px solid var(--line); }
.netrow small { overflow-wrap: anywhere; }
.netrow input { width: 170px; }
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.portfolio figure { margin: 0; display: grid; gap: 4px; }
.portfolio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg); }
.portfolio figcaption { font-size: 12px; color: var(--muted); }
.proinvite { margin-top: 10px; }
/* Tipos ampliados y documentos */
.kindgroup { margin: 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kindsearch { margin-bottom: 4px; }
.kindopt[hidden], .kindgroup[hidden] { display: none; }
.docrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.docform { display: grid; gap: 8px; }
.warnline { display: block; color: var(--red); }
.chip.doc-verificado { background: #e4f4ea; color: var(--green); }
.chip.doc-pendiente, .chip.doc-falta { background: #fff3d6; color: var(--warn); }
.chip.doc-vencido, .chip.doc-rechazado { background: #fdecea; color: var(--red); }
.plainlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 680px) { .docrow { grid-template-columns: minmax(0, 1fr); } }
/* Portal de profesionales con el estilo de Withy: fondo claro, tarjetas redondeadas, pestañas flotantes */
.proapp { background: var(--bg); }
.proapp .card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 10px 26px rgba(17, 18, 20, .06); }
.proapp .card.flush { overflow: hidden; }
.homehero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 22px; padding: 24px 24px 22px; margin-bottom: 16px; color: #fff; overflow: hidden;
  background: radial-gradient(320px 220px at 100% 0, rgba(229, 228, 226, .55), transparent 70%), radial-gradient(260px 180px at 0 100%, rgba(255, 138, 61, .28), transparent 70%), linear-gradient(135deg, #111214, #1c1d22); }
.homehero .kicker { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #e5e4e2; font-weight: 700; }
.homehero h1 { color: #fff; font-size: 30px; margin: 4px 0 8px; }
.homehero .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; margin: 0; }
.homehero .pill i { width: 8px; height: 8px; border-radius: 50%; background: #ff8a3d; display: inline-block; }
.homehero .sub { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, .82); }
.homehero .sub a, .homehero .sub b { color: #fff; font-weight: 700; }
.homehero-peng { width: 120px; height: 140px; flex: none; margin: -10px -6px -26px 0; }
.notecard.pendiente { border-left: 4px solid #b5720f !important; }
.notecard.pausado, .notecard.rechazado { border-left: 4px solid var(--red) !important; }
.iconhead { display: flex; align-items: center; gap: 10px; }
.iconhead .dot, .quick .qi { width: 32px; height: 32px; border-radius: 10px; background: #fff1e7; color: #ff8a3d; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.iconhead svg, .quick .qi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.todayrow { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f4f4f2; color: var(--text); margin-top: 8px; }
.todayrow:hover { text-decoration: none; background: #efefed; }
.todayrow .time { font-weight: 800; min-width: 52px; }
.todayrow small { display: block; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.quick a { background: #fff; border-radius: 16px; padding: 14px; font-size: 14px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 8px 20px rgba(17, 18, 20, .06); }
.quick a:hover { text-decoration: none; box-shadow: 0 0 0 2px #111214; }
.donecard { display: flex; align-items: center; gap: 14px; }
.donecard small { display: block; color: var(--muted); }
.donecard > a { margin-left: auto; font-weight: 700; }
.okbadge { width: 34px; height: 34px; border-radius: 50%; background: #e4f4ea; color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdd0df; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.steps li.ok .tick { background: #ff8a3d; border-color: #ff8a3d; color: #111214; }
.steps small { color: var(--muted); }
/* Calendario tipo Airbnb */
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; text-transform: capitalize; }
.calnav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d6d7de; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--ink, #111214); }
.calnav:hover { text-decoration: none; border-color: #111214; }
.calnav.off { opacity: .3; }
.calmonths { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.calmonth h2 { text-align: center; text-transform: capitalize; font-size: 16px; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.calgrid .dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.calgrid .day { position: relative; height: 46px; border: 0; background: none; font: inherit; font-size: 14px; padding: 0; cursor: pointer; color: var(--text); }
.calgrid .day .n { position: relative; z-index: 1; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; }
.calgrid .day:hover .n { box-shadow: inset 0 0 0 1.5px #111214; }
.calgrid .day:focus-visible { outline: 3px solid #ff8a3d; outline-offset: -2px; border-radius: 12px; }
.calgrid .day.past { color: #b8b9c2; }
.calgrid .day.today .n { box-shadow: inset 0 0 0 2px #ff8a3d; font-weight: 700; }
.calgrid .day.blank { cursor: default; }
.calgrid .day.busy::before, .calgrid .day.sel::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; bottom: 4px; }
.calgrid .day.busy::before { background: #111214; }
.calgrid .day.busy.exclusivo::before { background: #ff8a3d; }
.calgrid .day.busy { color: #fff; }
.calgrid .day.busy.exclusivo { color: #111214; }
.calgrid .day.busy.first::before { left: 4px; border-radius: 19px 0 0 19px; }
.calgrid .day.busy.last::before { right: 4px; border-radius: 0 19px 19px 0; }
.calgrid .day.busy.first.last::before { border-radius: 19px; }
.calgrid .day.sel::before { background: #efefed; }
.calgrid .day.edge .n { background: #111214; color: #fff; }
.monthtrips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.monthtrips li { display: flex; align-items: center; gap: 8px; }
.monthtrips i, .legend i { width: 10px; height: 10px; border-radius: 50%; background: #111214; display: inline-block; flex: none; }
.monthtrips i.exclusivo, .legend i.exclusivo { background: #ff8a3d; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i.hoy { background: none; box-shadow: inset 0 0 0 2px #ff8a3d; }
.pickedrange { margin: 0 0 12px; display: grid; gap: 4px; font-size: 16px; }
.pickedrange:empty { display: none; }
.flashrow td { background: #fff1e7; transition: background .3s; }
@media (max-width: 760px) {
  .calmonths { grid-template-columns: minmax(0, 1fr); }
  .calmonth.second { display: none; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homehero { padding: 20px; }
  .homehero h1 { font-size: 26px; }
  .homehero-peng { width: 92px; height: 110px; }
  .protabs { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border: 0; border-radius: 22px; box-shadow: 0 10px 30px rgba(17, 18, 20, .18); padding: 6px; }
  .protabs a { color: var(--muted); font-weight: 600; border-radius: 14px; }
  .protabs a[aria-current=page] { background: #f4f4f2; color: #111214; }
  .protabs a[aria-current=page] svg { color: #ff8a3d; }
  .proapp.signed .propage { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
.calgrid .day.busy:not(.first)::before { left: -1px; }
.calgrid .day.busy:not(.last)::before { right: -1px; }
@media (max-width: 760px) { .calsecond { display: none; } }
/* Agenda del team leader */
.meetrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.meetrow .when, .meetrow .what { display: flex; flex-direction: column; }
.meetrow small { color: var(--muted); }
.daymeet { margin: 0; padding: 6px 10px; border-radius: 10px; background: #fff1e7; font-size: 14px; }
.typicalrow { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.typicalrow:first-of-type { border-top: 0; }
/* Ficha completa del profesional */
.procard.rich { padding: 0; overflow: hidden; display: block; border: 0; box-shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 10px 26px rgba(17, 18, 20, .07); border-radius: 18px; background: #fff; }
.pcover { height: 120px; background: linear-gradient(120deg, rgba(17, 18, 20, .2), rgba(17, 18, 20, .55)), radial-gradient(260px 160px at 80% 30%, #ffb27a, transparent 70%), linear-gradient(135deg, #3a4a5c, #1c2633); background-size: cover; background-position: center; }
.phead { display: flex; align-items: flex-end; gap: 14px; padding: 0 18px; margin-top: -38px; position: relative; }
.phead > div { padding-top: 44px; }
.phead small { display: block; color: var(--muted); }
.phead strong { font-size: 20px; }
.pavatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: #111214; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; flex: none; }
.pbody { padding: 14px 18px 18px; display: grid; gap: 14px; }
.pbody h3 { margin: 0 0 6px; font-size: 14px; }
.pheadline { margin: 0; font-weight: 600; }
.pbadges, .pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pbadge { background: #f4f4f2; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.pbadge.ok { background: #e4f4ea; color: var(--green); }
.pchips span { background: #f4f4f2; border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.pfree { margin: 0; background: #fff1e7; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.pfree b { color: #a8501a; }
.exp { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.exp li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.exp .yr { font-weight: 800; color: var(--muted); }
.exp small { display: block; color: var(--muted); }
.langs { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.langs legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.langrow { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.completecard .meter { margin: 8px 0; }
.photoreview { display: flex; flex-wrap: wrap; gap: 18px; }
.rvavatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.rvcover { width: 320px; max-width: 100%; height: 120px; border-radius: 12px; object-fit: cover; }
/* Reportes del team leader */
.reportkinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.reportkinds a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d6d7de; color: var(--text); font-size: 14px; font-weight: 600; }
.reportkinds a[aria-current=page] { background: #111214; border-color: #111214; color: #fff; }
.ratinggrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.reportitem { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 4px; }
.reportitem:first-of-type { border-top: 0; }
.reportitem header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reportitem header small { margin-left: auto; }
.reportitem.urgent { border-left: 4px solid var(--red); padding-left: 12px; }
.reportitem .rtitle { margin: 0; font-weight: 600; }
.reportactions input { flex: 1; min-width: 200px; }
.chip.rep-recibido { background: #fff3d6; color: var(--warn); }
.chip.rep-revisado, .chip.rep-resuelto, .chip.rep-aprobado { background: #e4f4ea; color: var(--green); }
.chip.rep-rechazado, .chip.rep-urgente { background: #fdecea; color: var(--red); }
@media (max-width: 680px) { .ratinggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Áreas por persona: cómo trabaja el equipo y qué hace cada una */
.teammode { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 4px 0 16px; background: var(--bg); }
.teammode.unset { border-color: var(--brand-ink); }
.teammode-q { margin: 0 0 4px; }
.teammode-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.modeopt { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font: inherit; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.modeopt:hover { border-color: var(--muted); }
.modeopt.on { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.areachips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.areachip { font-size: 12px; background: var(--brand-soft); }
.areachip.extra { background: #fff; border: 1px dashed var(--muted); }
.areapick label.check { color: var(--text); align-items: flex-start; }
.areapick label.check input { margin-top: 3px; }
.areapick .block { display: block; }
.areapick.inline { border: 0; padding: 0; margin: 8px 0 0; }
.areapick legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.areagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; }

/* Agencia real sin proveedor conectado: sin precios de demostración */
.nosupplier { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--bg); }
.nosupplier p { margin: 0 0 4px; }

/* Tarifario propio */
small.block, .block { display: block; }
.ratefilter { min-width: min(320px, 100%); }
.importform { align-items: center; gap: 12px; }
.ratepick .row h2 { margin: 0; }

/* Panel de marketing: números, plan de la semana y voz de la agencia */
.mk-periods { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.mk-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; }
.mk-pill:hover { text-decoration: none; border-color: #cdd0df; }
.mk-pill.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mk-signal { border-color: #ff8a3d !important; box-shadow: inset 3px 0 0 #ff8a3d; }
.mk-explain { margin: -6px 0 16px; }
.mk-best { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.mk-best .card { margin-bottom: 12px; }
.mk-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mk-big { font-size: 19px; font-weight: 700; margin: 4px 0 2px; line-height: 1.25; overflow-wrap: anywhere; }
.mk-chart { width: 100%; height: 180px; display: block; margin-top: 12px; background: linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.mk-bar { fill: var(--brand); }
.mk-bar:hover { fill: #ff8a3d; }
.mk-bar.zero { fill: #cfd1d9; }
.mk-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.mk-top { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.mk-top > li::marker { font-weight: 700; }
.mk-top ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.mk-departures { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.mk-departures li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) auto; gap: 14px; align-items: center; }
.mk-meter { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.mk-meter span { display: block; height: 100%; width: var(--fill); background: #ff8a3d; }
.mk-socialform { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.mk-up { color: var(--green); font-size: 11px; }
.mk-down { color: var(--red); font-size: 11px; }
.mk-voicecta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: #ff8a3d; }
.mk-voicecta h2 { margin-bottom: 4px; }
.mk-voiceline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.mk-voiceline a { font-weight: 600; white-space: nowrap; }
.mk-week { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.mk-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; scroll-margin-top: 16px; }
.mk-day h2 { margin: 10px 0 8px; font-size: 18px; }
.mk-day.is-done { background: #fafaf8; }
.mk-day.is-done h2 { color: var(--muted); }
.mk-free { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: transparent; border-style: dashed; padding: 10px 18px; font-size: 14px; }
.mk-dayhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mk-date { font-weight: 700; margin-right: 4px; }
.mk-obj.mk-crecer { background: #fff1e6; color: #a34a00; }
.mk-obj.mk-conectar { background: #e5e4e2; color: #111214; }
.mk-obj.mk-vender { background: #111214; color: #fff; }
.mk-pill.mk-crecer.active, .mk-pill.mk-conectar.active, .mk-pill.mk-vender.active { background: var(--brand); color: var(--on-brand); }
.mk-hook { border-left: 3px solid #ff8a3d; padding: 4px 0 4px 12px; font-size: 15px; }
.mk-hook span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mk-more { margin-top: 10px; font-size: 14px; }
.mk-more summary { cursor: pointer; font-weight: 600; color: var(--brand-ink); }
.mk-more ul { margin: 8px 0; padding-left: 18px; }
.mk-more p { margin-top: 6px; }
.mk-why { color: var(--muted); }
.mk-actions { margin-top: 12px; }
.mk-actions form { margin: 0; }
.mk-copysrc { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mk-block h2 { margin: 0; }
.mk-blockhelp { margin: 4px 0 14px; }
.mk-checks { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mk-checks legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
@media (max-width: 980px) {
  .mk-best { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-socialform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mk-best { grid-template-columns: minmax(0, 1fr); }
  .mk-socialform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-departures li { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-departures .mk-meter { grid-column: 1 / -1; grid-row: 2; }
  .mk-chart { height: 140px; }

/* Ruta de arriba como botoncitos: se nota que se puede apretar para volver */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumb a { display: inline-block; padding: 3px 10px; border-radius: 8px; background: #efefed; color: var(--text); font-weight: 600; transition: background .15s; }
.crumb a:hover { background: #ffe9da; }
.crumbsep::before { content: "›"; color: #ff8a3d; font-weight: 700; font-size: 15px; }

/* Tabla de Viajes: botón claro para entrar a cada viaje */
.tripopen { white-space: nowrap; }
.tripopen::after { content: " →"; color: #ff8a3d; }
@media (max-width: 640px) {
  .triptable th:nth-child(2), .triptable td:nth-child(2), .triptable th:nth-child(5), .triptable td:nth-child(5) { display: none; }
  .triptable th, .triptable td { padding-left: 7px; padding-right: 7px; }
  .triptable .chip { white-space: normal; text-align: center; }
  .tripopen { padding: 4px 9px; font-size: 12px; }
}

/* Reseñas de profesionales */
.st { color: #ff8a3d; letter-spacing: 1px; }
.pstars { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.previewitem { border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; display: grid; gap: 4px; }
.previewitem:first-of-type { border-top: 0; }
.previewitem small { color: var(--muted); }
.preply { margin: 2px 0 0 12px; padding-left: 10px; border-left: 3px solid #e5e4e2; color: var(--muted); font-size: 13px; }

/* Mi plan: planes, facturas y referidos */
.plancards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.plancard { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.plancard.current { border: 2px solid #ff8a3d; }
.plancard h3 { margin: 0; }
.planprice { margin: 0; font-size: 20px; font-weight: 700; }
.planfeatures { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; font-size: 13px; flex: 1; }
.planfeatures li::before { content: "✓"; display: inline-block; width: 18px; color: var(--green); font-weight: 700; }
.planfeatures li.no { color: var(--muted); }
.planfeatures li.no::before { content: "–"; color: var(--muted); }
.referral .copyrow { display: flex; gap: 8px; margin-top: 4px; }
.referral .copyrow input { flex: 1; min-width: 0; }
.invoices { margin-top: 8px; }
.invoices .short { width: 4.5em; }

/* Withy pegado abajo: el botón no hereda el «bottom» de su versión antigua */
.penguintab, .penguintab:hover { bottom: auto; }

/* Globo de Withy: nube suave con colita, aparece con rebote y primero «escribe» */
.withyperch .withybubble { padding: 12px 18px; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 10px 30px rgba(17, 18, 20, .16); transform-origin: 0 100%; animation: withy-cloud .5s cubic-bezier(.3, 1.5, .5, 1); }
.withyperch .withybubble::after { content: ""; position: absolute; left: 14px; bottom: -9px; width: 22px; height: 18px; background: #fff; clip-path: path("M0 0 H22 C16 4 8 10 0 18 C4 10 4 5 0 0 Z"); }
.withyperch .withybubble.typing { color: transparent; }
.withyperch .withybubble.typing::before { content: ""; position: absolute; left: 18px; top: 50%; width: 36px; height: 8px; margin-top: -4px; background: radial-gradient(circle, #8a8d94 3.5px, transparent 4px) 0 0 / 12px 8px repeat-x; animation: withy-typing 1s ease-in-out infinite; }
@keyframes withy-cloud { 0% { opacity: 0; transform: translate(-10px, 10px) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes withy-typing { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .withyperch .withybubble, .withyperch .withybubble.typing::before { animation: none; } .withyperch .withybubble.typing { color: var(--text); } .withyperch .withybubble.typing::before { display: none; } }
@media (max-width: 520px) { .withyperch .withybubble { left: 50px; bottom: 80px; padding: 10px 16px; } }

/* Withy saluda al entrar: la página deja espacio abajo para que el pingüino asomado no tape botones ni formularios */
main.page:has(~ .withyperch) { padding-bottom: 128px; }
@media (max-width: 520px) { main.page:has(~ .withyperch) { padding-bottom: 104px; } }

/* Team leaders propios de la agencia */
.ownleader { padding: 14px 20px; }
.invitecard { border-left: 4px solid #ff8a3d !important; display: grid; gap: 10px; }
.invitecard p { margin: 0; }
