/* =========================================================
   Tu Cotizador · estilos
   ========================================================= */
:root {
  --acento: #5b3df5;
  --acento-s: color-mix(in srgb, var(--acento) 10%, #fff);
  --acento-m: color-mix(in srgb, var(--acento) 22%, #fff);
  --acento-f: color-mix(in srgb, var(--acento) 82%, #000);
  --fondo: #f4f3f8;
  --panel: #ffffff;
  --tinta: #16141f;
  --tinta-2: #3d3a4b;
  --sutil: #6e6b7c;
  --linea: #e9e7f0;
  --linea-f: #d8d5e2;
  --suave: #f8f7fb;
  --wa: #1fa855;
  --rojo: #d92d3a;
  --rojo-s: #fdecee;
  --verde: #12925a;
  --verde-s: #e6f6ee;
  --ambar: #b26b00;
  --ambar-s: #fff4de;
  --r: 14px;
  --r-g: 20px;
  --sombra: 0 1px 2px rgba(22, 20, 31, .05), 0 6px 24px rgba(22, 20, 31, .06);
  --sombra-g: 0 2px 6px rgba(22, 20, 31, .06), 0 24px 60px rgba(22, 20, 31, .14);
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --lat: 268px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--acento); }
img { max-width: 100%; }
[hidden], .oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 18px; height: 18px; flex: none; }
.ico-grande { width: 44px; height: 44px; color: var(--acento); margin-bottom: 8px; }
.mono { font-family: var(--mono); font-size: .92em; }
.sutil { color: var(--sutil); font-size: 13.5px; }
.centro { text-align: center; }
.texto { font-size: 15px; color: var(--tinta-2); }
.nota { font-size: 13px; color: var(--sutil); display: flex; gap: 8px; align-items: flex-start; }
.nota .ico { width: 16px; height: 16px; color: var(--acento); margin-top: 2px; }
.error { color: var(--rojo); font-size: 14px; font-weight: 600; }
.error:empty { display: none; }
.txt-mal { color: var(--rojo); font-weight: 600; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--acento-s); color: var(--acento-f); padding: 2px 7px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1;
  padding: 11px 18px; border-radius: 12px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-grande { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-bloque { width: 100%; }
.btn-crece { flex: 1; }
.btn-primario { background: var(--acento); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--acento) 32%, transparent); }
.btn-primario:hover { background: var(--acento-f); }
.btn-sec { background: var(--panel); color: var(--tinta); border-color: var(--linea-f); }
.btn-sec:hover { border-color: var(--acento); color: var(--acento-f); }
.btn-ghost { background: transparent; color: var(--tinta-2); }
.btn-ghost:hover { background: var(--acento-s); color: var(--acento-f); }
.btn-ghost.peligro:hover { background: var(--rojo-s); color: var(--rojo); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .28); }
.btn-wa:hover { background: #178c46; }
.btn-peligro { background: var(--rojo); color: #fff; }
.btn-peligro:hover { background: #b9212d; }
.btn-blanco { background: #fff; color: #1a1530; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-blanco:hover { transform: translateY(-1px); }
.btn-contorno { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-contorno:hover { background: rgba(255, 255, 255, .14); }
.btn-claro { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-claro:hover { background: rgba(255, 255, 255, .2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--linea); background: var(--panel); color: var(--sutil); border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { color: var(--acento-f); border-color: var(--acento-m); background: var(--acento-s); }
.icon-btn.peligro:hover { color: var(--rojo); border-color: #f3c3c7; background: var(--rojo-s); }
.icon-btn.wa:hover { color: var(--wa); border-color: #bfe8cf; background: #eaf8f0; }
.link { border: 0; background: none; color: var(--acento); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--acento-m); outline-offset: 2px; }

/* ---------- Etiquetas y píldoras ---------- */
.pildora { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--suave); color: var(--sutil); border: 1px solid var(--linea); white-space: nowrap; }
.pildora:empty { display: none; }
.pildora.ok { background: var(--verde-s); color: var(--verde); border-color: #bfe6d2; }
.pildora.mal { background: var(--rojo-s); color: var(--rojo); border-color: #f3c3c7; }
.pildora.aviso { background: var(--ambar-s); color: var(--ambar); border-color: #f2d9a6; }
.etiqueta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--suave); color: var(--tinta-2); border: 1px solid var(--linea); }
.etiqueta .ico { width: 13px; height: 13px; }
.etiqueta-dest { background: var(--acento-s); color: var(--acento-f); border-color: var(--acento-m); }
.etiqueta-ok { background: var(--verde-s); color: var(--verde); border-color: #bfe6d2; }
.etiqueta-mal { background: var(--rojo-s); color: var(--rojo); border-color: #f3c3c7; }

/* ---------- Campos ---------- */
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--tinta);
  background: #fff; border: 1.5px solid var(--linea-f); border-radius: 11px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c4c0d2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-s); }
textarea { resize: vertical; line-height: 1.5; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acento); flex: none; margin: 2px 0 0; }
input.mal, .mal { border-color: var(--rojo) !important; background: var(--rojo-s); }
.campo { display: block; min-width: 0; margin: 0 0 14px; }
.campo-etq { display: block; font-size: 13px; font-weight: 700; color: var(--tinta-2); margin-bottom: 6px; }
.campo-etq .sutil { font-weight: 500; font-size: 12.5px; }
.ayuda-campo { display: block; color: var(--sutil); font-size: 12.5px; font-weight: 500; margin-top: 5px; }
.campo-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.campo-switch .campo-etq { margin: 0; }
.borde-arriba { border-top: 1px solid var(--linea); margin-top: 4px; }
.campo-ancho { grid-column: 1 / -1; }
.rejilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.form .campo:last-of-type { margin-bottom: 14px; }
.campo-prefijo { display: flex; align-items: stretch; border: 1.5px solid var(--linea-f); border-radius: 11px; overflow: hidden; background: #fff; }
.campo-prefijo span { display: grid; place-items: center; padding: 0 10px 0 12px; background: var(--suave); color: var(--sutil); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; border-right: 1px solid var(--linea); }
.campo-prefijo input { border: 0; border-radius: 0; font-family: var(--mono); font-size: 14px; }
.campo-prefijo input:focus { box-shadow: none; }
.campo-prefijo:focus-within { border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-s); }

.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; border: 0; background: #d9d6e3; cursor: pointer; flex: none; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on { background: var(--acento); }
.switch.on span { transform: translateX(20px); }

.num { display: flex; align-items: stretch; border: 1.5px solid var(--linea-f); border-radius: 12px; background: #fff; overflow: hidden; }
.num:focus-within { border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-s); }
.num input { border: 0; border-radius: 0; text-align: center; font-weight: 700; font-size: 16px; min-width: 0; -moz-appearance: textfield; }
.num input:focus { box-shadow: none; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-btn { border: 0; background: var(--suave); width: 44px; flex: none; cursor: pointer; color: var(--tinta-2); display: grid; place-items: center; }
.num-btn:hover { background: var(--acento-s); color: var(--acento-f); }
.num-u { display: grid; place-items: center; padding: 0 10px; color: var(--sutil); font-size: 13px; font-weight: 600; background: #fff; white-space: nowrap; }
.num-corto { width: 130px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--linea-f); background: #fff; color: var(--tinta-2);
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 11px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--acento); color: var(--acento-f); }
.chip.on { background: var(--acento); border-color: var(--acento); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--acento) 30%, transparent); }
.chips-sm .chip, .chip-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }

.buscador { position: relative; display: block; flex: 1 1 220px; max-width: 360px; }
.buscador .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sutil); }
.buscador input { padding-left: 38px; }
.buscador-ancho { max-width: none; margin-bottom: 14px; }

/* ---------- Tarjetas, alertas y vacíos ---------- */
.tarjeta { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--r-g); padding: 22px; box-shadow: var(--sombra); }
.tarjeta + .tarjeta { margin-top: 18px; }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tarjeta-cab h2 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 800; }
.tarjeta-cab h2 .ico { color: var(--acento); width: 20px; height: 20px; }
.tarjeta > .sutil { margin: -6px 0 16px; }
.cab-acc { display: flex; gap: 8px; flex-wrap: wrap; }
.tarjeta.destacada { background: linear-gradient(135deg, var(--acento-s), #fff 60%); }
.tarjeta.centro { max-width: 460px; margin: 0 auto; text-align: center; padding: 36px; }
.tarjeta.centro h2 { margin-bottom: 8px; }
.tarjeta.centro .btn { margin-top: 18px; }
.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 13px; background: var(--ambar-s); color: #6d4300; border: 1px solid #f2d9a6; font-size: 14px; margin-bottom: 14px; }
.alerta .ico { margin-top: 1px; }
.alerta.mal { background: var(--rojo-s); color: #8f1d26; border-color: #f3c3c7; }
.alerta.ok { background: var(--verde-s); color: #0b6a40; border-color: #bfe6d2; }
.vacio { text-align: center; color: var(--sutil); padding: 34px 12px; }
.vacio .ico { width: 40px; height: 40px; color: var(--acento-m); margin-bottom: 8px; }
.vacio .btn { margin-top: 14px; }
.vacio-total { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.cargando { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 40vh; color: var(--sutil); font-weight: 600; }
#raiz > .cargando { min-height: 100vh; }
.giro-carga { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--acento-m); border-top-color: var(--acento); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--acento-s); color: var(--acento-f); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.avatar-g { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; }

/* ---------- Avisos ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 26px; z-index: 1000; transform: translate(-50%, 24px);
  background: #16141f; color: #fff; padding: 12px 18px; border-radius: 13px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--sombra-g); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }
.aviso.ok { background: #0d7a4b; }
.aviso.mal { background: #b9212d; }

/* ---------- Ventanas ---------- */
.modal {
  border: 0; padding: 0; border-radius: 22px; width: min(var(--ancho, 520px), calc(100% - 24px)); max-height: calc(100dvh - 32px);
  box-shadow: var(--sombra-g); color: var(--tinta); background: var(--panel); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: aparecer .18s ease-out; }
.modal::backdrop { background: rgba(18, 15, 33, .5); backdrop-filter: blur(3px); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 22px 24px 6px; }
.modal-cab h2 { font-size: 19px; font-weight: 800; }
.modal-cab p { color: var(--sutil); font-size: 14px; margin-top: 5px; }
.modal-cuerpo { padding: 14px 24px 18px; overflow: auto; }
.modal-pie { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--linea); background: var(--suave); }
.modal-pie .pie-der { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.modal-pie > .btn-ghost:first-child { margin-right: auto; }
.exito-ico { width: 72px; height: 72px; margin: 6px auto 16px; border-radius: 50%; background: var(--verde-s); color: var(--verde); display: grid; place-items: center; }
.exito-ico .ico { width: 36px; height: 36px; stroke-width: 2.4; }

/* =========================================================
   Estructura de la app
   ========================================================= */
.shell { min-height: 100vh; }
.lateral {
  position: fixed; inset: 0 auto 0 0; width: var(--lat); z-index: 40;
  background: var(--panel); border-right: 1px solid var(--linea); display: flex; flex-direction: column; padding: 18px 14px;
}
.lat-marca { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; }
.lat-logo { width: 46px; height: 46px; border-radius: 13px; object-fit: contain; background: #fff; flex: none; border: 1px solid var(--linea); }
.lat-mono { display: grid; place-items: center; background: var(--acento); color: #fff; font-weight: 800; border: 0; }
.lat-textos { min-width: 0; }
.lat-nombre { font-weight: 800; font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lat-giro { color: var(--sutil); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lat-selector { display: block; margin: 0 4px 14px; }
.lat-selector select { font-size: 14px; font-weight: 600; padding: 8px 10px; background: var(--suave); }
.lat-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.lat-sep { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sutil); padding: 18px 12px 6px; }
.lat-item {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: var(--tinta-2);
  font: inherit; font-weight: 600; font-size: 14.5px; padding: 11px 12px; border-radius: 12px; cursor: pointer; text-align: left;
}
.lat-item .ico { color: var(--sutil); }
.lat-item:hover { background: var(--suave); }
.lat-item.on { background: var(--acento-s); color: var(--acento-f); }
.lat-item.on .ico { color: var(--acento); }
.lat-pie { border-top: 1px solid var(--linea); padding-top: 14px; margin-top: 10px; }
.lat-usuario { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; }
.lat-u-txt { min-width: 0; }
.lat-u-nom { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lat-u-rol { font-size: 12px; color: var(--sutil); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lat-u-acc { display: flex; gap: 4px; }
.lat-u-acc .btn { flex: 1; padding: 8px; }
.velo { display: none; }
.lat-ayuda { text-decoration: none; margin-bottom: 8px; color: var(--wa) !important; }
.lat-ayuda .ico { color: var(--wa) !important; }
.perfil-pass { border: 1px solid var(--linea); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; background: var(--suave); }
.perfil-pass summary { cursor: pointer; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.perfil-pass[open] summary { margin-bottom: 12px; }
.perfil-pass .nota { margin-bottom: 12px; }
input:disabled { background: var(--suave); color: var(--sutil); }

.principal { margin-left: var(--lat); min-width: 0; }
.barra { display: flex; align-items: center; gap: 14px; padding: 26px 32px 18px; }
.barra-tit { flex: 1; min-width: 0; }
.barra-tit h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.barra-tit p { color: var(--sutil); font-size: 14.5px; margin-top: 4px; }
.barra-der { display: flex; gap: 8px; align-items: center; }
.vista { padding: 0 32px 48px; }
.solo-movil { display: none; }

.banda-demo {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 32px;
  background: linear-gradient(90deg, #1b1538, #2a1f5c); color: #fff; font-size: 14px;
}
.banda-etq { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #ffd36b; }
.banda-giros { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip-giro { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.chip-giro:hover { background: rgba(255, 255, 255, .15); }
.chip-giro.on { background: #fff; color: #1b1538; }
.banda-demo .btn-ghost { color: #fff; }
.banda-demo .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* =========================================================
   Cotizar
   ========================================================= */
.cot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 560px); gap: 24px; align-items: start; }
.cot-editor { min-width: 0; }
.preguntas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; }
.preguntas .campo:has(.op-vis-grid) { grid-column: 1 / -1; }

.op-vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.op-vis {
  position: relative; display: flex; flex-direction: column; border: 2px solid var(--linea); background: #fff; border-radius: 16px; padding: 6px; cursor: pointer;
  font: inherit; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.op-vis:hover { border-color: var(--acento-m); transform: translateY(-2px); }
.op-vis.on { border-color: var(--acento); box-shadow: 0 8px 22px color-mix(in srgb, var(--acento) 22%, transparent); }
.op-vis-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--suave); color: var(--sutil); }
.op-vis-img img { width: 100%; height: 100%; object-fit: cover; }
.op-vis-nom { font-size: 13px; font-weight: 700; padding: 8px 4px 4px; line-height: 1.3; }
.op-vis-check { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .15s; }
.op-vis-check .ico { width: 15px; height: 15px; stroke-width: 3; }
.op-vis.on .op-vis-check { opacity: 1; transform: none; }

.prod-filtros { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.prod { display: flex; flex-direction: column; border: 1.5px solid var(--linea); border-radius: 16px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.prod:hover { border-color: var(--acento-m); box-shadow: var(--sombra); }
.prod.sel { border-color: var(--acento); box-shadow: 0 8px 24px color-mix(in srgb, var(--acento) 18%, transparent); }
.prod-img { aspect-ratio: 4 / 3; background: var(--suave); display: grid; place-items: center; color: var(--linea-f); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .ico { width: 34px; height: 34px; }
.prod-info { padding: 12px 13px 6px; flex: 1; }
.prod-nom { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.prod-desc { color: var(--sutil); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.prod-precio { font-weight: 800; font-size: 15px; margin-top: 8px; color: var(--acento-f); }
.prod-precio span { font-weight: 500; font-size: 12.5px; color: var(--sutil); }
.prod-acc { padding: 8px 12px 12px; }
.prod-acc .btn { width: 100%; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--acento); border-radius: 11px; overflow: hidden; }
.stepper button { width: 38px; height: 36px; border: 0; background: var(--acento-s); color: var(--acento-f); cursor: pointer; display: grid; place-items: center; flex: none; }
.stepper button:hover { background: var(--acento-m); }
.stepper input { border: 0; border-radius: 0; text-align: center; font-weight: 800; padding: 6px 2px; min-width: 0; -moz-appearance: textfield; }
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.extras { display: flex; flex-direction: column; gap: 10px; }
.extra { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.extra .campo { margin: 0; }
.extra .icon-btn { margin-bottom: 3px; }
.desc-fila { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.cot-previa { position: sticky; top: 18px; min-width: 0; }
.previa-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.previa-acc { display: flex; gap: 6px; }
.previa-marco { position: relative; overflow: hidden; border-radius: 10px; box-shadow: var(--sombra-g); background: #fff; }
.previa-escala { width: 794px; transform-origin: top left; }
.previa-envio { display: flex; gap: 8px; margin-top: 14px; }
.previa-envio .btn { flex: 1; }
.previa-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--panel); border: 1px solid var(--linea); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--sombra); }
.previa-total span { color: var(--sutil); font-weight: 600; }
.previa-total b { font-size: 24px; color: var(--acento-f); }
.previa-modal { box-shadow: none; border: 1px solid var(--linea); }
.barra-movil { display: none; }

/* =========================================================
   Cotizaciones (historial)
   ========================================================= */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--linea); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sombra); }
.kpi-etq { font-size: 12.5px; font-weight: 700; color: var(--sutil); text-transform: uppercase; letter-spacing: .04em; }
.kpi-num { font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.kpi-num small { font-size: 13px; color: var(--sutil); font-weight: 600; }
.kpi-dest { background: linear-gradient(135deg, var(--acento), var(--acento-f)); color: #fff; border: 0; }
.kpi-dest .kpi-etq { color: rgba(255, 255, 255, .8); }
.kpi-accion { display: flex; flex-direction: column; gap: 8px; justify-content: center; grid-column: span 2; }
.hist-filtros { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hist-lista { display: flex; flex-direction: column; }
.hist-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px auto; gap: 16px; align-items: center; padding: 14px 6px; border-top: 1px solid var(--linea); }
.hist-fila:first-child { border-top: 0; }
.hist-fila.es-sol { background: linear-gradient(90deg, var(--acento-s), transparent 70%); border-radius: 12px; padding-left: 12px; }
.hist-folio { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--acento-f); }
.hist-cliente { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-meta { font-size: 12.5px; color: var(--sutil); }
.hist-total { font-weight: 800; font-size: 16px; text-align: right; white-space: nowrap; }
.hist-acc { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.sel-estado { font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 10px; }
.est-aceptada { background: var(--verde-s); color: var(--verde); border-color: #bfe6d2; }
.est-rechazada { background: var(--rojo-s); color: var(--rojo); border-color: #f3c3c7; }
.est-enviada { background: var(--acento-s); color: var(--acento-f); border-color: var(--acento-m); }

/* =========================================================
   Catálogo
   ========================================================= */
.pestanas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.pestana {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--linea); background: var(--panel);
  border-radius: 16px; padding: 14px; cursor: pointer; font: inherit; color: var(--tinta); box-shadow: var(--sombra);
}
.pestana > .ico { width: 22px; height: 22px; color: var(--sutil); }
.pestana b { display: block; font-size: 14.5px; }
.pestana small { display: block; color: var(--sutil); font-size: 12px; line-height: 1.3; }
.pestana em { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--sutil); }
.pestana.on { border-color: var(--acento); background: var(--acento-s); }
.pestana.on > .ico { color: var(--acento); }
.lista-edit { display: flex; flex-direction: column; gap: 12px; }
.fila-edit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--linea); border-radius: 16px; background: var(--suave); }
.fila-edit[data-lista="preguntas"] { grid-template-columns: minmax(0, 1fr) auto; }
.fila-campos { display: grid; gap: 0 12px; }
.campos-prod { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); }
.campos-preg { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.campos-conc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1.4fr) minmax(0, 1.4fr); }
.fila-edit .campo { margin-bottom: 8px; }
.fila-botones { display: flex; gap: 6px; }
.fila-info { grid-column: 1 / -1; font-size: 13px; color: var(--sutil); min-height: 0; }
.fila-info:empty { display: none; }
.fila-info b { color: var(--tinta); }
.img-btn {
  width: 84px; height: 84px; border-radius: 14px; border: 2px dashed var(--linea-f); background: #fff; color: var(--sutil);
  display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; flex: none;
}
.img-btn:hover { border-color: var(--acento); color: var(--acento); }
.img-btn.con { border-style: solid; border-color: var(--linea); }
.img-btn img { width: 100%; height: 100%; object-fit: cover; }
.img-btn.subiendo, .logo-carga.subiendo { opacity: .5; pointer-events: none; animation: latir 1s infinite; }
@keyframes latir { 50% { opacity: .25; } }
.opciones-edit { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border-radius: 13px; border: 1px solid var(--linea); }
.op-edit { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px auto; gap: 10px; align-items: center; }
.op-edit .img-btn { width: 48px; height: 48px; border-radius: 10px; }
.op-edit .img-btn .ico { width: 18px; height: 18px; }
.op-valor { display: flex; align-items: center; border: 1.5px solid var(--linea-f); border-radius: 11px; overflow: hidden; }
.op-valor span { padding: 0 8px 0 10px; font-size: 12px; color: var(--sutil); font-weight: 700; }
.op-valor input { border: 0; border-radius: 0; padding-left: 4px; }
.op-valor input:focus { box-shadow: none; }
.opciones-edit > .btn { align-self: flex-start; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--sutil); margin-bottom: 14px; }
.ayuda { margin-top: 18px; border: 1px solid var(--linea); border-radius: 14px; padding: 14px 18px; font-size: 14px; background: var(--suave); }
.ayuda summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ayuda summary .ico { color: var(--acento); }
.ayuda ul { margin: 12px 0 2px; padding-left: 20px; }
.ayuda li { margin-bottom: 7px; }

/* =========================================================
   Marca
   ========================================================= */
.marca-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 24px; align-items: start; }
.marca-previa { position: sticky; top: 18px; }
.previa-titulo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sutil); margin-bottom: 10px; font-size: 14px; }
.identidad { display: flex; gap: 18px; align-items: flex-start; }
.identidad-campos { flex: 1; min-width: 0; }
.logo-carga {
  width: 128px; height: 128px; border-radius: 22px; border: 2px dashed var(--linea-f); background: var(--suave); color: var(--sutil);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; flex: none; overflow: hidden; padding: 10px;
}
.logo-carga:hover { border-color: var(--acento); color: var(--acento); }
.logo-carga.con { border-style: solid; background: #fff; }
.logo-carga img { width: 100%; height: 100%; object-fit: contain; }
.logo-carga .ico { width: 28px; height: 28px; }
.colores { display: flex; flex-wrap: wrap; gap: 10px; }
.color { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--linea-f); cursor: pointer; padding: 0; position: relative; }
.color.on { box-shadow: 0 0 0 3px var(--c); }
.color-libre { display: grid; place-items: center; background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); color: #fff; overflow: hidden; }
.color-libre input { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.color-libre .ico { width: 16px; height: 16px; stroke-width: 3; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.sugerencias { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 16px; }
.tarjeta-enlace { background: linear-gradient(135deg, var(--acento-s), #fff 70%); border-color: var(--acento-m); }
.enlace-fila { margin-bottom: 8px; }
.enlace-acc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* =========================================================
   Equipo
   ========================================================= */
.miembros { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.miembro { border: 1px solid var(--linea); border-radius: 18px; padding: 16px; background: var(--suave); }
.miembro-cab { display: flex; align-items: center; gap: 12px; }
.miembro-txt { flex: 1; min-width: 0; }
.miembro-nom { font-weight: 800; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.miembro-txt .sutil { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miembro-perm { display: grid; gap: 8px; margin-top: 14px; padding: 12px; background: #fff; border-radius: 13px; border: 1px solid var(--linea); }
.miembro-perm-txt { margin-top: 12px; }
.perm-check { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.miembro-acc { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.permisos-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.perm-demo { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--linea); border-radius: 14px; }
.perm-demo .ico { color: #fff; background: var(--acento); border-radius: 8px; padding: 3px; width: 24px; height: 24px; stroke-width: 3; }
.perm-demo b { display: block; }
.perm-demo span { color: var(--sutil); font-size: 13px; }
.pass-temp { display: flex; gap: 8px; }
.permisos-alta { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--linea); border-radius: 14px; background: var(--suave); margin-bottom: 12px; }
.perm-fila { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.perm-fila b { display: block; font-size: 14.5px; }
.perm-fila small { display: block; color: var(--sutil); font-size: 12.5px; }
.acceso-caja { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--acento-s); border: 1px solid var(--acento-m); border-radius: 16px; }
.acceso-caja div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acceso-caja span { color: var(--sutil); font-size: 13.5px; }
.acceso-caja b { word-break: break-all; }

/* =========================================================
   Ayuda
   ========================================================= */
.ayuda-cab { background: linear-gradient(135deg, var(--acento-s), #fff 65%); }
.ayuda-cab h2 { font-size: 22px; font-weight: 800; }
.buscador-grande { max-width: none; margin: 16px 0 14px; }
.buscador-grande input { padding: 14px 14px 14px 42px; font-size: 16px; border-radius: 14px; }
.ayuda-temas { gap: 6px; }
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--linea); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none;
  padding: 14px 4px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acento-f); }
.faq-flecha { color: var(--sutil); transition: transform .2s; display: grid; }
.faq-item[open] .faq-flecha { transform: rotate(180deg); color: var(--acento); }
.faq-resp { padding: 0 4px 16px; color: var(--tinta-2); font-size: 14.5px; line-height: 1.65; }
.faq-resp p { margin: 0 0 8px; }
.faq-resp ol, .faq-resp ul { margin: 6px 0 10px; padding-left: 22px; }
.faq-resp li { margin-bottom: 5px; }
.faq-resp .link { font-size: inherit; padding: 0; }
.faq-resp .etiqueta { vertical-align: 1px; }
.ayuda-soporte { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #eaf8f0, #fff 70%); border-color: #bfe8cf; }
.ayuda-soporte-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--wa); color: #fff; display: grid; place-items: center; flex: none; }
.ayuda-soporte-ico .ico { width: 28px; height: 28px; }
.ayuda-soporte-txt { flex: 1 1 260px; }
.ayuda-soporte-txt h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }

/* =========================================================
   Empresas (administrador)
   ========================================================= */
.empresas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.empresa-card { background: var(--panel); border: 1px solid var(--linea); border-radius: 20px; padding: 18px; box-shadow: var(--sombra); border-top: 5px solid var(--c); }
.empresa-card.actual { box-shadow: 0 0 0 2px var(--c), var(--sombra); }
.empresa-card.inactiva { opacity: .65; }
.ec-cab { display: flex; gap: 12px; align-items: center; }
.ec-logo { width: 48px; height: 48px; border-radius: 13px; object-fit: contain; border: 1px solid var(--linea); background: #fff; flex: none; }
.ec-mono { display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; border: 0; }
.ec-txt { min-width: 0; }
.ec-nom { font-weight: 800; font-size: 16px; }
.ec-etqs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.ec-acc { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ec-acc .icon-btn { margin-left: auto; }
.plantillas-elegir { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.plantilla-op { position: relative; text-align: left; border: 2px solid var(--linea); background: #fff; border-radius: 16px; padding: 14px 14px 14px 40px; cursor: pointer; font: inherit; color: var(--tinta); }
.plantilla-op b { display: block; font-size: 14.5px; }
.plantilla-op small { display: block; color: var(--sutil); font-size: 12.5px; line-height: 1.35; margin-top: 3px; }
.plantilla-op .pl-punto { position: absolute; left: 14px; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.plantilla-op.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }

/* =========================================================
   Página de inicio
   ========================================================= */
.landing { background: #fff; overflow-x: hidden; }
.ld-nav { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 22px 6vw; color: #fff; }
.ld-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; }
.ld-marca { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #8b6bff, #ff6b9a); font-size: 17px; }
.ld-nav nav { display: flex; align-items: center; gap: 22px; }
.ld-nav nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.ld-nav nav a:hover { color: #fff; }
.ld-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4vw; align-items: center;
  padding: 140px 6vw 110px; color: #fff; overflow: hidden;
  background: radial-gradient(900px 600px at 85% 20%, rgba(255, 107, 154, .35), transparent 60%),
              radial-gradient(800px 600px at 10% 90%, rgba(91, 61, 245, .55), transparent 60%),
              linear-gradient(160deg, #120f2a 0%, #1d1645 55%, #2a1b55 100%);
}
.ld-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, rgba(255, 255, 255, .04)); pointer-events: none; }
.ld-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13.5px; font-weight: 700; color: #ffd9e6; }
.ld-kicker .ico { color: #ffd36b; }
.ld-hero h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 22px 0 20px; }
.ld-grad { background: linear-gradient(90deg, #b9a6ff, #ff8fb4 50%, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-hero-txt > p { font-size: 18.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 560px; }
.ld-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ld-cta.centro { justify-content: center; }
.ld-pruebas { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 26px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; }
.ld-pruebas li { display: flex; gap: 7px; align-items: center; }
.ld-pruebas .ico { color: #6ee7a8; width: 17px; height: 17px; stroke-width: 2.6; }
.ld-hero-vis { position: relative; }
.ld-hoja { transform: rotate(2.5deg); border-radius: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.ld-hoja .previa-marco { box-shadow: none; }
.ld-burbuja {
  position: absolute; display: flex; gap: 8px; align-items: center; background: #fff; color: #16141f; font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); animation: flotar 5s ease-in-out infinite;
}
.ld-burbuja .ico { width: 20px; height: 20px; }
.ld-burbuja.b1 { left: -22px; top: 22%; color: #128c46; }
.ld-burbuja.b2 { right: -10px; bottom: 12%; animation-delay: -2.5s; }
.ld-burbuja.b2 .ico { color: #fff; background: #12925a; border-radius: 50%; padding: 3px; stroke-width: 3; }
@keyframes flotar { 50% { transform: translateY(-10px); } }

.ld-sec { padding: 96px 6vw; }
.ld-sec-cab { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.ld-etq { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5b3df5; margin-bottom: 12px; }
.ld-sec-cab h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.ld-sec-cab p { font-size: 17px; color: var(--sutil); margin-top: 14px; }
.ld-giros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto; }
.ld-giro {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--tinta); background: #fff;
  border: 1px solid var(--linea); box-shadow: var(--sombra); transition: transform .2s, box-shadow .2s;
}
.ld-giro:hover { transform: translateY(-6px); box-shadow: var(--sombra-g); }
.ld-giro-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; background: color-mix(in srgb, var(--c) 10%, #fff); }
.ld-giro-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.ld-giro-txt { padding: 18px 20px 22px; }
.ld-giro-txt h3 { font-size: 19px; font-weight: 800; }
.ld-giro-txt p { color: var(--sutil); font-size: 14.5px; margin: 6px 0 14px; }
.ld-giro-txt span { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--c); font-size: 14.5px; }
a.ld-nicho { text-decoration: none; color: var(--tinta); align-items: flex-start; }
a.ld-nicho:hover { border-color: var(--c); }
a.ld-nicho .ld-nicho-ico { background: color-mix(in srgb, var(--c) 12%, #fff); }
.ld-nicho-demo { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--c); }
.ld-nicho-demo .ico { width: 14px; height: 14px; }
.ld-nichos-pie .btn { margin-left: 8px; vertical-align: middle; }
.prueba-lista { list-style: none; padding: 12px 14px; margin: 4px 0 0; background: var(--acento-s); border-radius: 13px; display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.prueba-lista li { display: flex; gap: 8px; align-items: center; }
.prueba-lista .ico { color: var(--verde); stroke-width: 2.6; width: 16px; height: 16px; }
.banda-sel { flex: 1; min-width: 0; max-width: 360px; }
.banda-sel select { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); padding: 7px 10px; font-size: 14px; font-weight: 600; }
.banda-sel select option, .banda-sel select optgroup { color: #16141f; background: #fff; }
.banda-prueba { margin-left: auto; }
.ld-nichos { max-width: 1240px; margin: 0 auto; }
.ld-nichos-cab { margin-bottom: 30px; }
.ld-nichos-cab h2 { font-size: clamp(24px, 2.6vw, 32px); }
.ld-nicho-grupo { margin-bottom: 26px; }
.ld-nicho-grupo h3 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sutil); margin-bottom: 12px; }
.ld-nicho-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ld-nicho { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 16px; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ld-nicho:hover { border-color: #cfc5ff; transform: translateY(-2px); box-shadow: var(--sombra); }
.ld-nicho-ico { width: 42px; height: 42px; border-radius: 12px; background: #f3f0ff; display: grid; place-items: center; font-size: 21px; flex: none; }
.ld-nicho b { display: block; font-size: 14.5px; line-height: 1.3; }
.ld-nicho small { display: block; color: var(--sutil); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.ld-nichos-pie { text-align: center; font-size: 16px; color: var(--tinta-2); margin-top: 10px; }
.ld-pasos { background: var(--fondo); }
.ld-precios { background: var(--fondo); }
.ld-planes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.ld-plan { position: relative; background: #fff; border: 1.5px solid var(--linea); border-radius: 24px; padding: 30px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 10px; }
.ld-plan-dest { border-color: #5b3df5; box-shadow: 0 20px 50px rgba(91, 61, 245, .18); }
.ld-plan-etq { position: absolute; top: -13px; right: 22px; background: linear-gradient(90deg, #5b3df5, #c04dff); color: #fff; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.ld-plan-nom { font-weight: 800; font-size: 17px; color: #5b3df5; }
.ld-plan-precio { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ld-plan-precio span { font-size: 16px; font-weight: 600; color: var(--sutil); letter-spacing: 0; }
.ld-plan .btn { margin-top: auto; }
.ld-incluye { list-style: none; padding: 0; margin: 34px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; font-weight: 600; font-size: 14.5px; }
.ld-incluye li { display: flex; gap: 9px; align-items: center; }
.ld-incluye .ico { color: var(--verde); stroke-width: 2.6; }
.legal-enlaces { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
.legal-enlaces.centro { justify-content: center; }
.legal-enlaces a { color: var(--sutil); text-decoration: none; }
.legal-enlaces a:hover { color: var(--acento); text-decoration: underline; }
.legal-enlaces span { color: var(--linea-f); }
.ld-pie { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ld-pie a { color: var(--sutil); }
.ayuda-legal { margin-top: 18px; }
.legal { min-height: 100vh; background: var(--fondo); }
.legal-cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 5vw; background: #fff; border-bottom: 1px solid var(--linea); }
.legal-logo { color: var(--tinta); }
.legal-cab .btn .ico { transform: rotate(180deg); }
.legal-main { max-width: 820px; margin: 0 auto; padding: 34px 20px 60px; display: flex; flex-direction: column; gap: 18px; }
.legal-texto { padding: 34px 38px; line-height: 1.7; font-size: 15px; color: var(--tinta-2); }
.legal-texto h1 { font-size: 30px; font-weight: 800; color: var(--tinta); margin-bottom: 4px; }
.legal-texto h2 { font-size: 17.5px; font-weight: 800; color: var(--tinta); margin: 26px 0 8px; }
.legal-texto p { margin: 0 0 10px; }
.legal-texto ul { margin: 6px 0 12px; padding-left: 22px; }
.legal-texto li { margin-bottom: 6px; }
.ld-pasos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.ld-paso { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--sombra); }
.ld-num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, #5b3df5, #c04dff); margin-bottom: 18px; }
.ld-paso h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.ld-paso p { color: var(--sutil); }
.ld-func { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; max-width: 1100px; margin: 0 auto; }
.ld-f-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: #efeaff; color: #5b3df5; margin-bottom: 14px; }
.ld-f-ico .ico { width: 24px; height: 24px; }
.ld-f h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 6px; }
.ld-f p { color: var(--sutil); }
.ld-final {
  margin: 0 6vw 70px; padding: 70px 30px; border-radius: 32px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 80% 0%, rgba(255, 107, 154, .4), transparent 70%), linear-gradient(135deg, #1d1645, #3b1f7a);
}
.ld-final h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.ld-final p { color: rgba(255, 255, 255, .8); font-size: 17px; margin-top: 12px; }
.ld-pie { text-align: center; color: var(--sutil); font-size: 13px; padding: 26px 16px 40px; }

/* =========================================================
   Páginas públicas
   ========================================================= */
.publico { min-height: 100vh; background: linear-gradient(180deg, var(--acento-s), var(--fondo) 340px); }
.pub-cab { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 5vw; background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 20; }
.pub-marca { display: flex; align-items: center; gap: 12px; }
.pub-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--linea); }
.pub-mono { display: grid; place-items: center; background: var(--acento); color: #fff; font-weight: 800; font-size: 18px; border: 0; }
.pub-nombre { font-weight: 800; font-size: 18px; }
.pub-giro { color: var(--sutil); font-size: 13.5px; }
.pub-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-chip { display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--linea); color: var(--tinta-2); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.pub-chip:hover { border-color: var(--acento); color: var(--acento-f); }
.pub-main { padding: 34px 5vw 60px; max-width: 1400px; margin: 0 auto; }
.pub-intro { margin-bottom: 22px; }
.pub-intro h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.pub-intro p { color: var(--sutil); font-size: 16px; margin-top: 6px; max-width: 640px; }
.pub-ver { max-width: 900px; margin: 0 auto; padding: 30px 20px 50px; }
.pub-ver-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pub-ver-cab h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pub-ver-acc { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   La hoja de cotización (vista previa, enlace y PDF)
   Nota: aquí no se usa color-mix porque el generador de PDF no lo entiende.
   ========================================================= */
.hoja {
  --marca: #5b3df5; --marca-s: #f3f1fe; --marca-m: #e4defd;
  width: 794px; min-height: 760px; background: #fff; color: #1c1a26; padding: 0 0 36px;
  font: 13px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; display: flex; flex-direction: column;
}
.h-cab { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 52px 30px; border-top: 10px solid var(--marca); background: var(--marca-s); }
.h-marca { display: flex; align-items: center; gap: 16px; min-width: 0; }
.h-logo { width: 92px; height: 92px; border-radius: 18px; object-fit: contain; background: #fff; flex: none; }
.h-logo-img { width: auto; height: 112px; max-width: 240px; border-radius: 12px; background: transparent; }
.h-mono { display: flex; align-items: center; justify-content: center; background: var(--marca); color: #fff; font-weight: 800; font-size: 28px; }
.h-empresa { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.h-giro { color: #6b6878; font-size: 13.5px; margin-top: 3px; }
.h-folio { text-align: right; flex: none; }
.h-etq { font-family: Fraunces, Georgia, serif; font-size: 30px; font-weight: 600; color: var(--marca); line-height: 1; }
.h-num { font-weight: 800; font-size: 15px; margin-top: 8px; letter-spacing: .02em; }
.h-fecha { color: #6b6878; font-size: 12.5px; }
.h-info { display: flex; gap: 40px; padding: 24px 52px 6px; }
.h-tit { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--marca); margin-bottom: 4px; }
.h-fuerte { font-weight: 700; font-size: 14.5px; }
.h-detalles { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 52px 0; }
.h-chip { display: inline-flex; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--marca-s); border: 1px solid var(--marca-m); font-size: 12px; }
.h-chip b { color: #6b6878; font-weight: 600; }
.h-tabla { width: calc(100% - 104px); margin: 22px 52px 0; border-collapse: collapse; }
.h-tabla th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #6b6878; padding: 10px 8px; border-bottom: 2px solid var(--marca); }
.h-tabla td { padding: 11px 8px; border-bottom: 1px solid #ecebf1; vertical-align: middle; }
.h-tabla .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h-tabla .fuerte { font-weight: 700; }
.h-concepto { display: flex; align-items: center; gap: 12px; }
.h-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--marca-s); flex: none; }
.h-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-thumb-vacio { background: transparent; }
.h-nom { font-weight: 700; font-size: 13.5px; }
.h-desc { color: #6b6878; font-size: 11.5px; }
.h-u { color: #6b6878; font-size: 11.5px; }
.h-gratis { color: #12925a; font-weight: 800; }
.h-vacio { text-align: center; color: #8a8797; padding: 40px 0 !important; }
.h-pie { display: flex; justify-content: space-between; gap: 34px; padding: 26px 52px 0; align-items: flex-start; }
.h-mensaje { flex: 1; position: relative; padding-top: 6px; }
.h-comilla { font-family: Fraunces, Georgia, serif; font-size: 64px; line-height: .6; color: var(--marca); opacity: .9; height: 30px; }
.h-mensaje p { font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.5; color: #3a3747; }
.h-firma { margin-top: 10px; font-weight: 700; color: var(--marca); font-size: 13px; }
.h-totales { width: 300px; flex: none; background: var(--marca-s); border: 1px solid var(--marca-m); border-radius: 16px; padding: 14px 18px; font-variant-numeric: tabular-nums; }
.h-totales > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.h-desc-tot { color: #12925a; font-weight: 700; }
.h-total { margin-top: 8px; padding-top: 12px !important; border-top: 2px solid var(--marca); font-size: 21px; font-weight: 800; color: var(--marca); }
.h-nota, .h-anticipo { font-size: 12px; color: #6b6878; }
.h-notas { margin: 26px 52px 0; padding: 16px 18px; border-radius: 14px; border: 1px dashed #d8d5e2; color: #4a4757; font-size: 12px; }
.h-final { margin-top: auto; padding: 30px 52px 0; display: flex; justify-content: space-between; gap: 18px; color: #6b6878; font-size: 11.5px; border-top: 1px solid #ecebf1; margin-left: 52px; margin-right: 52px; padding-left: 0; padding-right: 0; }
.h-sep { margin: 0 8px; color: #c5c2d0; }
.h-hecho { color: #a3a0b0; white-space: nowrap; }
.hoja-pdf { min-height: 0; }

/* =========================================================
   Pantallas medianas y chicas
   ========================================================= */
@media (max-width: 1240px) {
  .cot-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); }
  .campos-conc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ld-giros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .cot-grid, .marca-grid { grid-template-columns: minmax(0, 1fr); }
  .cot-previa, .marca-previa { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pestanas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campos-prod, .campos-preg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-hero { grid-template-columns: minmax(0, 1fr); padding-top: 120px; }
  .ld-hero-vis { max-width: 560px; margin: 10px auto 0; }
  .barra-movil {
    display: flex; position: sticky; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--linea);
  }
  .bm-total { font-size: 20px; font-weight: 800; color: var(--acento-f); }
}
@media (max-width: 860px) {
  .lateral { transform: translateX(-100%); transition: transform .25s; box-shadow: var(--sombra-g); }
  body.menu-abierto .lateral { transform: none; }
  body.menu-abierto .velo { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(18, 15, 33, .4); }
  .principal { margin-left: 0; }
  .solo-movil { display: inline-grid; }
  .barra { padding: 16px 16px 12px; position: sticky; top: 0; z-index: 25; background: rgba(244, 243, 248, .92); backdrop-filter: blur(10px); }
  .barra-tit h1 { font-size: 21px; }
  .barra-tit p { display: none; }
  .vista { padding: 0 16px 32px; }
  .banda-demo { padding: 8px 12px; flex-wrap: nowrap; gap: 8px; }
  .banda-etq { font-size: 12.5px; }
  .banda-giros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .banda-giros::-webkit-scrollbar { display: none; }
  .chip-giro { white-space: nowrap; flex: none; }
  .banda-demo .btn-ghost { padding: 6px 8px; font-size: 0; gap: 0; }
  .banda-demo .btn-ghost .ico { width: 18px; height: 18px; }
  .rejilla-3 { grid-template-columns: minmax(0, 1fr); }
  .hist-fila { grid-template-columns: minmax(0, 1fr) auto; }
  .hist-estado, .hist-acc { grid-column: 1 / -1; justify-content: flex-start; }
  .hist-estado select { width: auto; }
  .ld-nav nav a { display: none; }
  .ld-pasos-grid, .ld-func, .ld-planes { grid-template-columns: minmax(0, 1fr); }
  .legal-texto { padding: 22px 18px; }
  .ld-sec { padding: 70px 20px; }
  .ld-final { margin: 0 16px 50px; }
  .permisos-demo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .tarjeta { padding: 16px; border-radius: 18px; }
  .rejilla-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-num { font-size: 19px; }
  .kpi-accion { grid-column: 1 / -1; }
  .pestanas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pestana small { display: none; }
  .fila-edit { grid-template-columns: minmax(0, 1fr); }
  .fila-edit .img-btn { width: 100%; height: 140px; }
  .fila-botones { justify-content: flex-end; }
  .campos-prod, .campos-preg, .campos-conc { grid-template-columns: minmax(0, 1fr); }
  .op-edit { grid-template-columns: auto minmax(0, 1fr) auto; }
  .op-edit .op-valor { grid-column: 2 / 3; }
  .extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .extra .campo:first-child { grid-column: 1 / -1; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod-info { padding: 10px 10px 4px; }
  .prod-acc { padding: 6px 10px 10px; }
  .op-vis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identidad { flex-direction: column; }
  .previa-envio { flex-wrap: wrap; }
  .previa-envio .btn-wa { flex-basis: 100%; }
  .miembros, .empresas-grid { grid-template-columns: minmax(0, 1fr); }
  .banda-prueba { display: none; }
  .ld-nichos-pie .btn { display: flex; margin: 12px auto 0; }
  .ld-nav { padding: 16px 18px; }
  .ld-hero { padding: 100px 20px 70px; }
  .ld-hero-txt > p { font-size: 16.5px; }
  .ld-giros { grid-template-columns: minmax(0, 1fr); }
  .ld-burbuja { font-size: 12.5px; padding: 8px 12px; }
  .ld-burbuja.b1 { left: -6px; }
  .ld-burbuja.b2 { right: -4px; }
  .pub-cab { padding: 14px 16px; }
  .pub-chips { display: none; }
  .pub-main { padding: 22px 16px 40px; }
  .modal-cab, .modal-cuerpo, .modal-pie { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Generar PDF y escribir ---------- */
.pdf-contenedor { position: fixed; left: -10000px; top: 0; }
#zona-impresion { display: none; }
@page { size: A4; margin: 0; }
@media print {
  body.imprimiendo > *:not(#zona-impresion) { display: none !important; }
  body.imprimiendo #zona-impresion { display: block; }
  body.imprimiendo { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hoja { min-height: auto; }
}
