:root { --ink:#111; --muted:#5c5c5c; --line:#e5e5e5; --bg:#f6f7f5; --acc:#1ea64a; --acc2:#178a3c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-wrap: break-word;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 8px; top: 8px; z-index: 20; background: #fff; padding: 8px 12px; }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand {
  color: inherit; text-decoration: none; font-weight: 750; letter-spacing: -.03em;
  display: flex; align-items: center; gap: 10px; font-size: 1.05rem;
}
.brand img { border-radius: 8px; flex-shrink: 0; }
.nav-toggle { position: absolute; left: -9999px; }
.nav-burger {
  display: none; cursor: pointer; font-weight: 600; padding: 10px 14px;
  min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
nav a {
  margin-left: 12px; color: var(--ink); text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; min-height: 44px;
}
nav a.cta, .cta-row .cta, .cta-sticky .cta {
  background: var(--acc); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 650;
}
nav a.cta.cta-ghost, .cta-row .cta-ghost { background: #fff; color: var(--acc); border: 2px solid var(--acc); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.cta-row .cta { display: inline-block; text-decoration: none; }
.cta-sentinel {
  display: block; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; pointer-events: none;
}
.cta-sticky {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); text-align: center; z-index: 5;
  /* fixed: no desplaza el layout al aparecer/ocultar (evita parpadeo con el CTA inline). */
}
.cta-sticky .cta { display: inline-block; text-decoration: none; min-height: 44px; line-height: 24px; }
.cta-sticky.is-away { display: none !important; }
@media (max-width: 820px) {
  .nav-burger { display: inline-flex; align-items: center; }
  .top nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  nav a { margin: 0; padding: 10px 4px; }
  .pro-tabs a:last-child { transform: translateX(-3px); padding-right: 2px; }
}
main { max-width: 880px; margin: 0 auto; padding: 28px 16px 72px; }
h1 { font-size: clamp(1.45rem, 4vw, 2rem); margin: 0 0 8px; letter-spacing: -.03em; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.eslogan {
  font-size: clamp(1.12rem, 2.8vw, 1.38rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.eslogan + .eslogan { margin-bottom: 10px; }
article.card a { color: #1565c0; }
.sub, .hint, .foot, .lead { color: var(--muted); }
.card {
  border: 1px solid var(--line); padding: 22px; margin: 20px 0;
  background: var(--bg); border-radius: 10px;
}
label { display: block; margin: 12px 0; font-weight: 550; }
label .hint { display: block; margin-top: 4px; font-size: .9em; font-weight: 400; }
input, select, textarea, button {
  font: inherit; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff;
}
input, select, textarea { font-size: 16px; }
button {
  background: var(--acc); color: #fff; border: 0; cursor: pointer; width: auto;
  padding: 12px 22px; font-weight: 650; min-height: 44px;
}
button:hover { background: var(--acc2); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--acc); outline-offset: 2px;
}
.btn-txt { background: transparent; color: var(--acc); border: 0; padding: 0 8px; width: auto; font-weight: 650; cursor: pointer; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.btn-txt:disabled { opacity: .55; cursor: default; }
/* Anterior / Elegir municipios: sin cajón verde (móvil deja :hover pegado) */
.btn-txt:hover, .btn-txt:active, .btn-txt:focus, .btn-txt:focus-visible,
.form-prev:hover, .form-prev:active, .form-prev:focus, .form-prev:focus-visible,
.zona-abrir:hover, .zona-abrir:active, .zona-abrir:focus, .zona-abrir:focus-visible {
  background: transparent !important;
  color: var(--acc) !important;
  outline: none !important;
  box-shadow: none !important;
}
details.zona { margin: 12px 0; border: 1px solid var(--line); padding: 8px 12px; background: #fff; border-radius: 6px; }
details.zona summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.zona-prov-row { margin: 8px 0 8px 8px; }
.zona-ciudad { margin: 12px 0; margin-left: 0; border: 1px solid var(--line); padding: 8px 12px; background: #fff; border-radius: 6px; min-height: 44px; display: flex; align-items: center; }
.zona-grid { columns: 2; gap: 8px 20px; margin: 8px 0 0; }
@media (max-width: 640px) { .zona-grid { columns: 1; } }
.chk { font-size: 15px; font-weight: 400; }
.chk input { width: auto; min-width: 20px; min-height: 20px; }
#zona-lista .chk:has(input:checked),
label.chk:has(#zona-toda:checked) {
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 4px;
  padding: 2px 8px;
}
#zona-lista input:checked,
#zona-toda:checked {
  accent-color: #1d4ed8;
}
#zona-lista input[type=checkbox],
#zona-toda {
  opacity: 1;
}
textarea.sif-dr {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  min-height: 280px;
  line-height: 1.45;
}
.figurar { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 12px 0; }
.figurar legend { font-weight: 650; padding: 0 6px; }
.figurar .chk { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; }
.hp { position: absolute; left: -9999px; }
.err { color: #8b1e1e; background: #fdeeee; padding: 10px 12px; border-radius: 6px; }
.ok { color: #14532d; background: #ecfdf3; padding: 10px 12px; border-radius: 6px; }
.row, .inline { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.row span { flex: 1; }
.foot { padding: 28px 16px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.foot a { color: var(--muted); }
.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.ficha-admin { white-space: pre-wrap; margin: 8px 0 0; font-size: 13px; font-family: inherit; }
.grid .btn-txt { min-height: auto; padding: 4px 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-win {
  max-height: min(70vh, 42rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.table-win table.grid { border-collapse: separate; border-spacing: 0; margin: 0; }
.table-win thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
a.on { font-weight: 700; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--acc); }
.geo { columns: 2; gap: 24px; margin: 0; padding-left: 18px; }
@media (max-width: 640px) { .geo { columns: 1; } }
.servicios { margin: 0; padding-left: 18px; }
.servicios a { color: var(--acc); }
.fac-num { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; }
.fac-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fac-line td:nth-child(n+2), .fac-line th:nth-child(n+2) { text-align: right; }
@media (max-width: 640px) { .fac-cols { grid-template-columns: 1fr; } }
.cookies {
  margin: 0; padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: #111; color: #fff; font-size: 14px; text-align: center;
}
.cookies a { color: #fff; }
html.ok-cookies .cookies { display: none !important; }
.area-tel-sm { font-weight: 700; font-size: 1.15rem; color: var(--acc); text-decoration: none; }
.pro-shell { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.pro-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pro-head h2 { margin: 0; font-size: 1rem; letter-spacing: .04em; }
.pro-hola { text-align: right; font-size: 14px; }
.pro-hola strong { display: block; text-transform: uppercase; }
.pro-hola a { color: var(--ink); }
.pro-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); padding: 0 4px 0 0; }
.pro-tabs a { margin: 0; padding: 10px 4px; font-weight: 650; font-size: 13px; text-align: center; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.pro-tabs a.is-on { color: var(--acc); border-bottom-color: var(--acc); }
.pro-pane { display: none; padding: 16px; }
.pro-pane.is-on { display: block; }
.pro-pane h3 { margin: 0 0 8px; font-size: 1.05rem; }
.vac-box, .baja-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.vac-box.on { background: #fff7ed; border-color: #fdba74; }
.baja-box { border-color: #fecaca; }
.btn-danger { background: #b91c1c; }
.saldo-num { font-size: 2rem; font-weight: 750; margin: 0 0 4px; }
.pack-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pack-grid form { margin: 0; }
.op-grid { display: flex; flex-direction: column; gap: 16px; }
.op-win { margin: 0; min-width: 0; }
.op-list { max-height: min(38vh, 22rem); overflow: auto; -webkit-overflow-scrolling: touch; }
.op-win.is-load { opacity: .55; pointer-events: none; }
.lead-fecha { display: block; margin-top: 4px; font-weight: 600; color: #1a1a1a; }
.mp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; font-size: 13px; }
.mp-pager .mp-pag[disabled] { opacity: .45; }
@media (max-width: 899px) {
  .op-clientes { order: -1; }
}
@media (min-width: 900px) {
  .op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .op-list { max-height: min(62vh, 36rem); }
}
.op-hr { display: none; }
.op-win h3 {
  color: var(--acc);
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  padding-bottom: 8px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--acc);
}
.lead-card, .cli-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: #fff;
}
.lead-card:last-child, .cli-card:last-child { margin-bottom: 0; }
.lead-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lead-tramite { font-weight: 700; display: block; }
.lead-zona { display: block; font-size: 15px; }
.lead-precio { font-weight: 750; font-size: 1.1rem; text-align: right; white-space: nowrap; }
.lead-precio small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.lead-resumen { margin: 8px 0 0; font-size: 15px; color: var(--muted); white-space: pre-wrap; }
.lead-buy { margin: 10px 0 0; }
.cli-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cli-btns a { border: 1px solid var(--line); padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 15px; }
.cli-btns a.cli-tel {
  font-weight: 750;
  font-size: 1.12rem;
  color: var(--acc);
  background: #f0fdf4;
  border-color: #86efac;
}
.cli-btns a.cli-mail {
  font-weight: 650;
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #93c5fd;
}
.vac-banner { background: #fff7ed; border: 1px solid #fdba74; padding: 12px 14px; border-radius: 8px; }
.pasos { padding-left: 1.2rem; }
.form-wizard .form-paso { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.form-wizard .form-paso-tit {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0;
}
.form-wizard .form-paso-ind {
  margin: 0 0 10px;
  font-weight: 700;
  position: static;
  background: transparent;
  padding: 0 0 6px;
  border-bottom: 0;
}
.form-wizard .form-aviso-faltan {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff5f5;
  border: 1px solid #f1c0c0;
  color: #8b1e1e;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.35;
}
.form-wizard .is-invalid {
  outline: 2px solid #c0392b;
  outline-offset: 1px;
}
.form-wizard .form-sms-aviso {
  margin: 8px 0 14px;
  padding: 10px 12px;
  background: #f0f7ff;
  border-radius: 8px;
  color: #1e3a8a;
}
.form-wizard .form-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.form-wizard .form-paso[hidden],
.form-wizard .form-nav[hidden],
.form-wizard .form-nav [hidden],
.form-wizard .form-btn-enviar[hidden],
.form-wizard .form-paso-ind[hidden] {
  display: none !important;
}
.form-wizard .form-next {
  margin-left: auto;
}
.form-wizard fieldset.form-paso > legend { float: left; width: 100%; }
.form-wizard fieldset.form-paso > legend + * { clear: both; }
.hero-visual { margin: 12px 0 18px; }
.hero-svg, .hero-photo {
  width: 100%; height: auto; display: block; border-radius: 14px;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg);
}
.actividad { margin: 10px 0 4px; font-weight: 600; color: var(--ink); }
.empresas-verif {
  margin: 22px 0 8px;
  padding: 22px 16px 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.015)),
    #fff;
  border: 1px solid var(--line);
}
.empresas-verif .emp-lead {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}
.emp-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.emp-item {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.emp-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 108px;
  height: 108px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  box-sizing: border-box;
  overflow: hidden;
  gap: 4px;
}
.emp-logo--stack { height: auto; min-height: 108px; padding-bottom: 12px; }
.emp-logo--name {
  height: auto;
  min-height: 108px;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background: linear-gradient(180deg, #fff, #f6f6f6);
}
.emp-logo--name .emp-line {
  display: block;
  width: 100%;
  text-align: center;
}
.emp-logo--name .emp-line--sm {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .92;
}
.emp-logo--name .emp-line--md {
  font-size: .9rem;
  font-weight: 750;
}
.emp-logo--name .emp-line--lg {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.emp-logo--blue {
  background: #eef4ff;
  border-color: rgba(0,82,204,.18);
  color: #0052cc;
  font-weight: 800;
  letter-spacing: .02em;
}
.emp-logo--forest {
  background: #eef8f1;
  border-color: rgba(11,107,58,.2);
  color: #0b6b3a;
  font-weight: 800;
  letter-spacing: .02em;
}
.emp-logo--navy {
  background: #eef1f7;
  border-color: rgba(20,48,100,.2);
  color: #143064;
  font-weight: 800;
  letter-spacing: .02em;
}
.emp-cap {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.emp-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform .25s ease;
}
.emp-logo--stack img { max-height: 56px; }
.emp-item:hover .emp-logo img {
  transform: scale(1.03);
}
.emp-name { display: none !important; }
/* No ocultar el CTA inline al mostrar el flotante: display:none movía el layout y provocaba parpadeo. */
body.cta-sticky-on nav .cta-row { display: flex; }
body.pedir-open { overflow: hidden; }
body.pedir-open .cta-sticky,
body.pedir-open .cookies,
body.pedir-open .top,
body.pedir-open .foot { display: none !important; }
.pedir-panel {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: #fff;
}
.pedir-panel[hidden] { display: none !important; }
.pedir-sheet {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  width: 100%; max-width: none; max-height: none;
  overflow: hidden;
  background: #fff;
  border-radius: 0; box-shadow: none;
  padding: 0;
}
.pedir-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pedir-home {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 750; color: var(--ink); text-decoration: none;
  font-size: 1rem; line-height: 1.2;
}
.pedir-home img { display: block; border-radius: 6px; }
.pedir-cerrar {
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 0; background: transparent; color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  border-radius: 10px;
}
.pedir-cerrar:hover { background: rgba(0,0,0,.05); }
.pedir-body {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 18px 16px 20px;
  width: min(560px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}
.pedir-sheet .card.form-wizard { border: 0; background: transparent; padding: 0; margin: 0; }
.pedir-trust {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #f7f7f7;
}
.pedir-trust-item {
  margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-size: .92rem; line-height: 1.3;
}
.pedir-trust-lab {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #666;
}
.pedir-trust-val { font-weight: 650; color: var(--ink); }
@media (min-width: 720px) {
  .pedir-bar { padding: 12px 22px; }
  .pedir-body { padding: 28px 24px 24px; }
  .pedir-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .emp-logos {
    display: grid;
    grid-template-columns: repeat(var(--emp-cols, 3), minmax(0, 1fr));
    gap: 14px 16px;
    align-items: stretch;
  }
  .emp-item { width: auto; min-width: 0; }
  .emp-logo { height: 108px; }
  .emp-name { font-size: .82rem; }
}
@media (min-width: 1100px) {
  .emp-logos {
    grid-template-columns: repeat(var(--emp-cols-lg, var(--emp-cols, 4)), minmax(0, 1fr));
  }
}
.vf-box { text-align: center; margin: 24px 0 8px; }
.vf-lab { font-size: 13px; font-weight: 700; color: #333; margin: 0 0 6px; }
.vf-marca { font-size: 14px; font-weight: 700; letter-spacing: .04em; margin: 8px 0 10px; }
.vf-huella { font-size: 11px; font-family: ui-monospace, Courier, monospace; color: #333; line-height: 1.4; word-break: break-all; }
.factura { break-after: page; page-break-after: always; }
.factura:last-of-type { break-after: auto; page-break-after: auto; }
@media print {
  .top, .foot, .cookies, .hp, .no-print, nav, .cta-sticky, .skip, .nav-burger, .pro-tabs, .pro-head, header.top { display: none !important; }
  body.print-doc header, body.print-doc footer, body.print-doc .skip { display: none !important; }
  body, main { max-width: none; padding: 0; margin: 0; background: #fff; }
  .card, .factura { border: 0; background: #fff; padding: 0; margin: 0; }
}
