/* Subsistemas 2 y 3: galería de landings, constructor y pantallas de agentes IA */
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; } .lp-stats div { background: var(--hover); border-radius: 12px; padding: 8px 10px; text-align: center; } .lp-stats b { display: block; font-size: 1.15rem; } .lp-stats span { font-size: .7rem; color: var(--text-2); }
.niche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.niche { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: .15s; } .niche span { font-size: 1.4rem; } .niche small { color: var(--text-2); font-size: .74rem; } .niche:hover { border-color: var(--brand); } .niche.on { border-color: var(--brand); background: var(--brand-soft); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tpl { text-align: left; border: 2px solid var(--line); border-radius: 16px; background: var(--hover); overflow: hidden; cursor: pointer; color: var(--text); padding: 0; transition: .15s; position: relative; } .tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow); } .tpl.on { border-color: var(--brand); box-shadow: var(--ring); } .tpl.rec::after { content: "Recomendado"; position: absolute; top: 10px; right: 10px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tpl-frame { height: 200px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); } .tpl-frame iframe { width: 1200px; height: 800px; border: 0; transform: scale(.23); transform-origin: 0 0; pointer-events: none; }
.tpl-meta { padding: 12px 14px; display: grid; gap: 4px; } .tpl-meta small { color: var(--text-2); font-size: .76rem; } .tpl-meta .sw { display: flex; gap: 4px; margin-top: 4px; } .tpl-meta .sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }

.lpb { margin: -22px -18px -40px 0; height: calc(100vh - var(--topbar-h) - 14px); display: flex; flex-direction: column; min-height: 560px; }
.lpb-top { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: wrap; } .lpb-top .sp { flex: 1; } .lpb-name { max-width: 260px; font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; } .seg button { background: transparent; border: 0; padding: 8px 12px; color: var(--text-2); cursor: pointer; font: inherit; font-size: .82rem; display: inline-flex; align-items: center; } .seg button.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; } .seg.wide { display: flex; } .seg.wide button { flex: 1; justify-content: center; }
.lpb-tabs-m { display: none; }
.lpb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 12px; padding-bottom: 8px; }
.lpb-left, .lpb-right { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; overflow: auto; min-height: 0; } .lpb-left { display: flex; flex-direction: column; } .lpb-left .tabs { margin: 10px 10px 0; flex: none; } .lpb-panel { padding: 12px; overflow: auto; flex: 1; } .lpb-right { padding: 14px; }
.lpb-mid { background: var(--hover); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding: 12px; min-height: 0; position: relative; }
.lpb-frame { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); } .lpb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lpb-item { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; background: transparent; } .lpb-item:hover { border-color: var(--brand); } .lpb-item.on { border-color: var(--brand); background: var(--brand-soft); } .lpb-item.off { opacity: .5; }
.lpb-item .grip { color: var(--text-2); cursor: grab; display: grid; } .lpb-item .grip svg { width: 14px; height: 14px; } .lpb-item .ti, .lpb-eh .ti, .add-tile .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; } .lpb-item .ti svg, .lpb-eh .ti svg, .add-tile .ti svg { width: 16px; height: 16px; }
.lpb-item .tx { min-width: 0; flex: 1; } .lpb-item .tx b { display: block; font-size: .84rem; } .lpb-item .tx small { display: block; color: var(--text-2); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-item .acts { display: none; gap: 2px; } .lpb-item:hover .acts, .lpb-item.on .acts { display: flex; } .acts button { background: transparent; border: 0; color: var(--text-2); width: 24px; height: 24px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; padding: 0; } .acts button:hover { background: var(--hover); color: var(--brand); } .acts button:disabled { opacity: .3; cursor: default; } .acts svg { width: 13px; height: 13px; }
.lpb-eh { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .lpb-eh small { display: block; color: var(--text-2); font-size: .74rem; } .lpb-empty { text-align: center; color: var(--text-2); padding: 40px 10px; } .lpb-empty svg { width: 36px; height: 36px; margin-bottom: 8px; opacity: .6; }
.litem { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; } .litem .lh { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; cursor: pointer; gap: 8px; } .litem .lh b { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .litem .lb { padding: 4px 10px 10px; border-top: 1px solid var(--line); } .litem .acts { display: flex; }
.imgf { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px; background: var(--hover); } .imgf img { max-height: 90px; max-width: 100%; border-radius: 8px; object-fit: cover; }
.emojis { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .emojis button { background: var(--hover); border: 0; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.theme-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .theme-mini button { background: transparent; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; text-align: left; color: var(--text); } .theme-mini button.on { border-color: var(--brand); background: var(--brand-soft); } .theme-mini span { display: flex; gap: 4px; padding: 10px; border-radius: 8px; border: 2px solid; } .theme-mini i { width: 16px; height: 16px; border-radius: 50%; } .theme-mini small { display: block; margin-top: 4px; font-size: .7rem; }
.seo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .8rem; } .seo-list li { display: flex; gap: 8px; align-items: flex-start; } .seo-list svg { width: 15px; height: 15px; flex: none; margin-top: 2px; } .seo-list .ok svg { color: #22c55e; } .seo-list .no { color: var(--text-2); } .seo-list .no svg { color: #ef4444; }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .add-tile { text-align: left; display: grid; gap: 6px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); cursor: pointer; } .add-tile:hover { border-color: var(--brand); background: var(--brand-soft); } .add-tile small { color: var(--text-2); font-size: .74rem; }
.btn.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 1280px) { .lpb-body { grid-template-columns: 260px minmax(0, 1fr) 300px; } }
@media (max-width: 1024px) {
  .lpb { margin: -16px -10px -90px; height: calc(100vh - var(--topbar-h) - 10px); padding: 0 10px; } .hide-sm { display: none; }
  .lpb-tabs-m { display: flex; gap: 6px; margin-bottom: 8px; } .lpb-tabs-m button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; } .lpb-tabs-m button.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
  .lpb-body { grid-template-columns: 1fr; overflow: auto; } .lpb-body[data-m="edit"] .lpb-mid { display: none; } .lpb-body[data-m="prev"] .lpb-left, .lpb-body[data-m="prev"] .lpb-right { display: none; } .lpb-left, .lpb-right { max-height: none; overflow: visible; } .lpb-name { max-width: 100%; flex: 1 1 100%; order: 5; }
}

/* Calendario */
.cal { padding: 0 12px 12px; } .cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .cal-h div { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); padding: 8px 0; font-weight: 700; }
.cal-d { min-height: 104px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--glass); cursor: pointer; display: flex; flex-direction: column; gap: 3px; overflow: hidden; } .cal-d.other { opacity: .45; } .cal-d.today { border-color: var(--brand); box-shadow: var(--ring); } .cal-d.over { background: var(--brand-soft); }
.cal-d .n { font-weight: 700; font-size: .82rem; color: var(--text-2); } .cal-d.today .n { color: var(--brand); }
.ev { display: flex; align-items: center; gap: 5px; font-size: .72rem; padding: 3px 6px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; overflow: hidden; text-decoration: none; cursor: grab; } .ev svg { width: 11px; height: 11px; flex: none; } .ev span { overflow: hidden; text-overflow: ellipsis; } .ev.late { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); } .ev.done { opacity: .5; text-decoration: line-through; } .ev.quote { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; cursor: pointer; }
.cal-d .more { background: none; border: 0; color: var(--text-2); font-size: .7rem; text-align: left; cursor: pointer; padding: 0 4px; }
@media (max-width: 820px) { .cal-d { min-height: 64px; padding: 3px; } .ev span { display: none; } .ev { padding: 3px; justify-content: center; } .cal-g, .cal-h { gap: 3px; } }
/* Constructor: paleta de elementos, estructuras, asistente */
.lpb-left .tabs { display: flex; } .lpb-left .tabs button { flex: 1; padding: 8px 4px; font-size: .78rem; min-width: 0; }
.pgroup { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--hover); } .pg-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; } .pg-h svg { width: 15px; height: 15px; color: var(--brand); }
.ptiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 10px 10px; } .ptile { display: grid; place-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); color: var(--text); cursor: grab; transition: .15s; } .ptile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); } .ptile .pi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 1.05rem; font-weight: 700; } .ptile .pi svg { width: 17px; height: 17px; } .ptile small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.plist { display: grid; gap: 6px; padding: 0 10px 10px; } .pitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font-size: .84rem; text-align: left; } .pitem:hover { border-color: var(--brand); background: var(--brand-soft); } .pitem svg { width: 16px; height: 16px; color: var(--brand); }
.lpb-ai { padding: 12px; border-top: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--brand-2) 14%, transparent)); display: grid; gap: 8px; } .lpb-ai .ah { display: flex; gap: 8px; align-items: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; } .lpb-ai .ah svg { width: 16px; height: 16px; color: var(--brand); } .lpb-ai textarea { width: 100%; resize: none; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--text); padding: 10px 12px; font: inherit; font-size: .86rem; }
.smini { display: inline-grid; gap: 3px; width: 74px; height: 50px; padding: 4px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--hover); } .smini i { background: color-mix(in srgb, var(--brand) 28%, var(--card-solid, #fff)); border-radius: 3px; min-height: 8px; }
.struct-cur { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--hover); } .struct-cur > div { flex: 1; min-width: 0; } .struct-cur small { display: block; color: var(--text-2); font-size: .72rem; }
.wz { text-align: center; padding: 6px 4px 12px; } .wz-bars { display: flex; gap: 8px; margin: 0 auto 14px; max-width: 420px; } .wz-bars i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); } .wz-bars i.on { background: var(--brand); } .wz-s { color: var(--brand); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; } .wz h3 { margin: 6px 0 22px; text-transform: uppercase; letter-spacing: .04em; }
.wz-opts { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; } .wz-opts button { display: grid; gap: 10px; place-items: center; background: transparent; border: 0; color: var(--text); cursor: pointer; font-weight: 800; letter-spacing: .08em; } .wz-ico { display: grid; gap: 6px; width: 120px; padding: 12px; border-radius: 14px; background: var(--hover); border: 1.5px solid var(--line); transition: .15s; } .wz-opts button:hover .wz-ico { border-color: var(--brand); background: var(--brand-soft); } .wz-ico.f { grid-template-columns: 1fr 1fr; } .wz-ico.f i:first-child { grid-column: span 2; } .wz-ico.g { grid-template-columns: 1fr 1fr; border-style: dashed; } .wz-ico i { height: 26px; border-radius: 6px; background: var(--line-strong); }
.wz-st { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; } .wz-st button { display: grid; gap: 8px; place-items: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); cursor: pointer; transition: .15s; } .wz-st button:hover { border-color: var(--brand); background: var(--brand-soft); } .wz-st .smini { width: 96px; height: 58px; } .wz-st small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
/* Reporte de conversaciones: tarjetas con degradado y tabla de detalle */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr); gap: 14px; margin-bottom: 14px; align-items: stretch; } .rp-side { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.rp-card { border-radius: 18px; padding: 20px; color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 104px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); position: relative; overflow: hidden; }
.rp-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 160px at 85% -20%, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.rp-card .n { font-size: 2.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; } .rp-card.big .n { font-size: 3.6rem; } .rp-card .l { font-weight: 600; opacity: .96; font-size: .95rem; } .rp-card .i svg { width: 14px; height: 14px; vertical-align: -2px; opacity: .85; }
.rp-d { margin-top: 6px; background: rgba(255, 255, 255, .22); padding: 2px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; }
.g-purple { background: linear-gradient(135deg, #667eea, #764ba2); } .g-pink { background: linear-gradient(135deg, #f093fb, #f5576c); } .g-cyan { background: linear-gradient(135deg, #4facfe, #00d4ff); } .g-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); } .g-green { background: linear-gradient(135deg, #43e97b, #1fd1b4); } .g-orange { background: linear-gradient(135deg, #fa709a, #f7b733); } .g-violet { background: linear-gradient(135deg, #7f7fd5, #86a8e7); }
.rp-table .rp-bar { background: #4a6da7; color: #fff; padding: 13px 20px; font-weight: 700; border-radius: var(--radius) var(--radius) 0 0; }
.rp-table thead th { background: #4a6da7; color: #fff; } .rp-table th.q, .rp-table td.q { text-align: center; }
.rp-table .secrow td { background: color-mix(in srgb, #38bdf8 28%, transparent); font-weight: 800; letter-spacing: .05em; font-size: .8rem; text-transform: uppercase; }
.rp-table tr.main td:first-child { font-weight: 700; } .rp-table tr.sub td:first-child { padding-left: 28px; color: var(--text-2); } .rp-table tr.sub .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); margin-right: 9px; opacity: .6; } .rp-table td.q { font-weight: 800; font-size: 1.02rem; }
.rp-table .chip { display: inline-block; padding: 2px 10px; border-radius: 8px; background: color-mix(in srgb, #22c55e 22%, transparent); color: #15803d; font-weight: 700; font-size: .8rem; } .rp-table tr.sum td { padding-top: 14px; padding-bottom: 14px; }
.chan { display: inline-flex; align-items: center; gap: 7px; } .chan svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .rp-hero { grid-template-columns: 1fr; } .rp-card.big { min-height: 150px; } .rp-card.big .n { font-size: 2.8rem; } }
/* Canales de Meta en el chatbot y notas del sistema en la bandeja */
.meta-ch { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; } .meta-ch .mh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: color-mix(in srgb, var(--c) 10%, transparent); } .meta-ch .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); } .meta-ch .ci svg { width: 18px; height: 18px; } .meta-ch .mb { padding: 14px 16px 10px; }
.msg.system { align-self: center; max-width: 92%; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border-radius: 10px; font-size: .78rem; text-align: center; }
/* Carga de documentos y selector de modelos */
.dropzone { border: 2px dashed var(--line-strong); border-radius: 16px; padding: 28px 16px; text-align: center; display: grid; gap: 6px; justify-items: center; cursor: pointer; background: var(--hover); transition: .15s; } .dropzone svg { width: 30px; height: 30px; color: var(--brand); } .dropzone:hover, .dropzone.over, .dropzone:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.mlist { border: 1px solid var(--line); border-radius: 14px; max-height: 380px; overflow: auto; } .mrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; } .mrow:last-child { border-bottom: 0; } .mrow:hover { background: var(--hover); } .mrow > span { flex: 1; min-width: 0; } .mrow[hidden] { display: none; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
/* Mostrar / ocultar contraseña */
.pw-wrap { position: relative; display: block; width: 100%; } .pw-wrap > .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-2); border-radius: 10px; cursor: pointer; padding: 0; } .pw-eye:hover { color: var(--brand); background: var(--hover); } .pw-eye:focus-visible { outline: 2px solid var(--brand); } .pw-eye svg { width: 19px; height: 19px; }
.codebox { padding-right: 112px; }
.chat-sim .msg.visitor { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; border-bottom-left-radius: 14px; } .chat-sim .msg.bot { align-self: flex-start; background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; border-bottom-right-radius: 14px; }

/* ───────── Centro de ayuda, chat y tickets ───────── */
.help-hero { background: radial-gradient(120% 140% at 50% 0%, var(--brand-soft), transparent 70%), var(--glass); }
.help-card { cursor: pointer; text-align: left; font: inherit; border: 1px solid var(--line); transition: .15s; } .help-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.help-card .ci { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; } .help-card .ci svg { width: 22px; height: 22px; }
.help-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.help-cat { padding: 16px; display: grid; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; border: 1px solid var(--line); transition: .15s; } .help-cat:hover { border-color: var(--brand); transform: translateY(-2px); } .help-cat .em { font-size: 1.6rem; }
.help-link { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); } .help-link:hover { background: var(--hover); } .help-link svg { width: 18px; height: 18px; color: var(--brand); flex: none; } .help-link.big { align-items: flex-start; padding: 12px; }
.prose { line-height: 1.7; } .prose h3 { margin: 22px 0 8px; font-size: 1.1rem; } .prose p { margin: 0 0 12px; } .prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; } .prose li { margin-bottom: 5px; } .prose code { background: var(--hover); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.vote { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stars-in { display: flex; gap: 4px; } .stars-in button { border: 0; background: transparent; font-size: 2rem; color: var(--line-strong); cursor: pointer; line-height: 1; padding: 2px; } .stars-in button.on, .stars-in button:hover { color: #fbbf24; }
.sla { font-weight: 600; font-size: .85rem; color: var(--text-2); } .sla.good { color: #16a34a; } .sla.warn { color: #d97706; } .sla.bad { color: #dc2626; }
.thread-box { max-height: 58vh; overflow: auto; display: grid; gap: 14px; padding-right: 4px; }
.th-m { max-width: 88%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); } .th-m.me { justify-self: end; background: color-mix(in srgb, var(--brand) 12%, var(--field)); border-color: color-mix(in srgb, var(--brand) 35%, transparent); } .th-m.internal { background: color-mix(in srgb, #f59e0b 14%, var(--field)); border-style: dashed; border-color: #f59e0b; }
.th-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; font-size: .86rem; } .th-h small { color: var(--text-3); margin-left: auto; } .th-b { word-break: break-word; line-height: 1.55; }
.th-sys { text-align: center; font-size: .8rem; color: var(--text-3); padding: 4px 10px; } .th-sys small { display: block; }
.pill.warn { border-color: #f59e0b; color: #d97706; }
.att { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 14px; } .over .att { border-color: var(--brand); background: var(--brand-soft); } .att.compact { padding: 4px 6px; border: 0; } .att-list { display: flex; gap: 8px; flex-wrap: wrap; }
.att-th { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); display: grid; place-items: center; padding: 0; background: var(--hover); cursor: zoom-in; } .att-th img { width: 100%; height: 100%; object-fit: cover; } .att-th button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; line-height: 1; } .att-th.big { width: 150px; height: 100px; }
.att-gal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spn .8s linear infinite; } @keyframes spn { to { transform: rotate(360deg); } }
/* chat flotante del cliente */
.sc-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px -8px var(--brand); transition: transform .15s; } .sc-fab:hover { transform: scale(1.06); } .sc-fab svg { width: 26px; height: 26px; }
.sc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #111; color: #fff; font-size: .72rem; font-weight: 700; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.sc-panel { position: fixed; right: 20px; bottom: 90px; z-index: 61; width: 370px; max-width: calc(100vw - 24px); height: min(580px, calc(100vh - 120px)); background: var(--glass-strong, var(--field)); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); display: flex; flex-direction: column; overflow: hidden; } .sc-panel[hidden] { display: none; }
.sc-panel header { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--grad); color: #fff; } .sc-panel header > div { flex: 1; line-height: 1.25; } .sc-panel header small { display: block; opacity: .9; } .sc-panel header small i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; margin-right: 6px; } .sc-panel header small i.on { background: #4ade80; } .sc-panel header .icon-btn { color: #fff; }
.sc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-weight: 700; flex: none; } .ca-item .sc-av { background: var(--grad); color: #fff; }
.sc-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sc-m { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.45; word-break: break-word; } .sc-m small { display: block; font-size: .7rem; opacity: .75; margin-top: 3px; } .sc-m.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; } .sc-m.them { align-self: flex-start; background: var(--hover); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; color: var(--text); }
.sc-sys { align-self: center; text-align: center; font-size: .8rem; color: var(--text-2); background: var(--hover); padding: 8px 12px; border-radius: 12px; max-width: 92%; }
.sc-foot { border-top: 1px solid var(--line); padding: 8px 10px 10px; } .sc-foot form { display: flex; gap: 8px; align-items: flex-end; } .sc-foot textarea { flex: 1; resize: none; max-height: 110px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--text); padding: 9px 11px; font: inherit; }
.sc-links { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; font-size: .76rem; } .sc-links a, .sc-links button { display: inline-flex; gap: 4px; align-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; font: inherit; } .sc-links a:hover, .sc-links button:hover { color: var(--brand); } .sc-links svg { width: 14px; height: 14px; }
/* chat del administrador */
.chat-admin { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; height: calc(100vh - 190px); min-height: 460px; }
.ca-list { overflow: auto; } .ca-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font: inherit; align-items: flex-start; } .ca-item:hover, .ca-item.on { background: var(--hover); } .ca-t { flex: 1; min-width: 0; display: grid; gap: 2px; position: relative; } .ca-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); } .ca-last { color: var(--text-3) !important; } .ca-n { position: absolute; right: 0; top: 0; background: var(--brand); color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.ca-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .ca-head { display: flex; justify-content: space-between; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .ca-log { flex: 1; } .ca-foot { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 8px; } .ca-foot form { display: flex; gap: 8px; align-items: flex-end; } .ca-foot textarea { flex: 1; }
@media (max-width: 900px) {
  #tgrid, .help-art, .grid[style*="340px"] { grid-template-columns: minmax(0, 1fr) !important; }
  .chat-admin { grid-template-columns: 1fr; height: auto; } .chat-admin .ca-main { display: none; min-height: 70vh; } .chat-admin.has-open .ca-main { display: flex; } .chat-admin.has-open .ca-list { display: none; } .ca-list { max-height: 70vh; }
  .th-m { max-width: 96%; }
}
@media (max-width: 520px) { .sc-panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: calc(100vh - 100px); } .sc-fab { right: 14px; bottom: 14px; } .att-th.big { width: 110px; height: 80px; } }

/* ───────── caja de redacción del chat, emojis, voz, documentos y visor de imágenes ───────── */
.sc-foot, .ca-foot { padding: 10px 12px 12px; }
.cmp { position: relative; display: grid; gap: 6px; }
.cmp textarea { width: 100%; resize: none; min-height: 44px; max-height: 120px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--field); color: var(--text); padding: 11px 13px; font: inherit; line-height: 1.4; } .cmp textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.cmp-bar { display: flex; align-items: center; gap: 2px; margin-left: -4px; } .cmp-bar .sp { flex: 1; }
.cmp-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; padding: 0; } .cmp-btn:hover { background: var(--hover); color: var(--brand); } .cmp-btn svg { width: 20px; height: 20px; }
.cmp-send { height: 36px; white-space: nowrap; }
.cmp-prev { display: flex; flex-wrap: wrap; gap: 8px; } .cmp-prev:empty { display: none; }
.cmp-rec { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--field); min-height: 44px; } .cmp-rec[hidden] { display: none; } .cmp-rec .sp { flex: 1; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; animation: recp 1s ease-in-out infinite; } @keyframes recp { 50% { opacity: .25; transform: scale(.8); } }
.att-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 8px 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--hover); font-size: .8rem; } .att-chip svg { width: 16px; height: 16px; color: var(--brand); flex: none; } .att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; } .att-chip small { color: var(--text-3); } .att-chip button { border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 2px; }
.att-doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: color-mix(in srgb, var(--text) 6%, transparent); color: inherit; min-width: 200px; max-width: 100%; text-decoration: none; } .att-doc:hover { border-color: var(--brand); } .att-doc svg { width: 22px; height: 22px; flex: none; } .att-doc span { flex: 1; min-width: 0; } .att-doc b { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .att-doc small { display: block; opacity: .75; font-size: .72rem; margin: 0; }
.att-audio { width: 230px; max-width: 100%; height: 38px; }
.emoji-pop, .canned-pop { position: absolute; left: 0; bottom: 48px; z-index: 5; width: min(320px, 100%); background: #fffaf6; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); overflow: hidden; }
:root[data-theme="dark"] .emoji-pop, :root[data-theme="dark"] .canned-pop { background: #150809; border-color: rgba(255, 255, 255, .18); }
.emoji-pop .emoji-tabs { background: rgba(0, 0, 0, .06); } :root[data-theme="dark"] .emoji-pop .emoji-tabs { background: #0d0506; }
.emoji-tabs { display: flex; border-bottom: 1px solid var(--line); } .emoji-tabs button { flex: 1; border: 0; background: transparent; padding: 8px 0; cursor: pointer; font-size: 1.1rem; } .emoji-tabs button.on { background: var(--hover); box-shadow: inset 0 -2px var(--brand); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 196px; overflow: auto; } .emoji-grid button { border: 0; background: transparent; font-size: 1.3rem; padding: 4px 0; border-radius: 8px; cursor: pointer; } .emoji-grid button:hover { background: var(--hover); }
.canned-pop { max-height: 300px; overflow: auto; width: min(380px, 100%); } .canned-pop > button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; padding: 10px 12px; cursor: pointer; font: inherit; } .canned-pop > button:hover { background: var(--hover); } .canned-pop small { display: block; color: var(--text-2); margin-top: 2px; } .canned-pop .canned-manage { color: var(--brand); font-weight: 600; display: flex; gap: 8px; align-items: center; border-bottom: 0; } .canned-manage svg { width: 16px; height: 16px; }
/* visor de imágenes: fondo neutro, se cierra al primer clic fuera de la imagen */
.imgbox { position: fixed; inset: 0; z-index: 400; background: rgba(8, 4, 5, .9); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 24px; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; cursor: zoom-out; }
.imgbox img { max-width: min(94vw, 1500px); max-height: 80vh; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); cursor: default; } .imgbox img::selection { background: transparent; }
.imgbox-bar { display: flex; gap: 16px; align-items: center; color: #e7d9d5; font-size: .85rem; flex-wrap: wrap; justify-content: center; } .imgbox-bar a { color: #fff; text-decoration: underline; }
.imgbox-x { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; } .imgbox-x:hover { background: rgba(255, 255, 255, .3); } .imgbox-x svg { width: 20px; height: 20px; }
/* botones de la cabecera del chat del administrador */
.ca-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .ca-actions .btn { height: auto; min-height: 36px; padding: 8px 14px; white-space: nowrap; width: auto; flex: none; } #cback { display: none; }
@media (max-width: 900px) { #cback { display: inline-flex; } }
.att { padding-left: 0; }

/* Reportes: Consultar, Limpiar y CSV siempre en la misma línea */
.rp-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; } .rp-actions .btn { white-space: nowrap; flex: none; }
@media (max-width: 420px) { .rp-actions .btn { padding-left: 10px; padding-right: 10px; } }
/* Permisos del asistente */
.perm-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; margin: 0 0 16px; background: color-mix(in srgb, var(--text) 4%, transparent); } .perm-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.perm-grid { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr); gap: 8px 14px; align-items: center; margin-bottom: 12px; } .perm-grid label { font-weight: 600; font-size: .9rem; }
.perm-export { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; cursor: pointer; } .perm-export input { margin-top: 4px; }
@media (max-width: 520px) { .perm-grid { grid-template-columns: 1fr; } }

/* Reportes: filtros en una sola fila, repartidos hacia la derecha */
.rp-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 22px; } .rp-form .field { margin: 0; flex: none; }
.rp-form #bot-f { flex: 0 1 210px; min-width: 180px; } .rp-form #days-f { flex: 0 1 auto; } .rp-form .field input[type=date] { width: 158px; }
.rp-form .rp-actions { grid-column: auto; margin-left: auto; flex: none; }
@media (max-width: 760px) { .rp-form .rp-actions { margin-left: 0; width: 100%; } .rp-form #bot-f, .rp-form .field input[type=date] { width: 100%; flex: 1 1 100%; } }

/* Landings: tarjeta del botón de WhatsApp */
.wa-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px; margin-bottom: 14px; background: color-mix(in srgb, #25d366 8%, transparent); } .wa-card .field { margin-bottom: 10px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-bottom: 12px; } .check-row input { margin-top: 4px; }

/* Constructor de landings: pestañas del panel izquierdo sin desbordes */
.lpb-left .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: auto; padding: 3px; overflow: visible; }
.lpb-left .tabs button { padding: 8px 2px; font-size: .74rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
@media (max-width: 1280px) { .lpb-left .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lpb-left .tabs button { font-size: .8rem; padding: 8px 4px; } }
@media (max-width: 860px) { .lpb-left .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Editor de estilos: encabezados de grupo */
.sect-h { margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 800; } .sect-h:first-child { border-top: 0; margin-top: 4px; padding-top: 0; }

/* Pipeline: arrastre de tarjetas y edición de etapas */
.kcard.kghost { position: fixed; top: 0; left: 0; margin: 0; box-sizing: border-box; overflow: hidden; pointer-events: none; transition: none; cursor: grabbing; transform: none; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6), 0 0 0 2px var(--brand); border-radius: 16px; background: linear-gradient(var(--field), var(--field)), var(--bg); opacity: 1; z-index: 9999; will-change: transform; } .kcard.kghost .n, .kcard.kghost .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.kb-drag, body.kb-drag * { cursor: grabbing !important; user-select: none !important; }
.board.is-dragging .kcol { opacity: .62; transition: opacity .15s, transform .15s, box-shadow .15s, border-color .15s; } .board.is-dragging .kcol.over { opacity: 1; transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 38%, transparent), 0 24px 50px -22px var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--glass)); }
.kcard.dragging { display: none; }
.kdrop { display: flex; flex-direction: column; gap: 2px; justify-content: center; align-items: center; min-height: 78px; border: 2px dashed var(--brand); border-radius: 16px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); text-align: center; animation: kdrop-in .18s ease-out, kdrop-pulse 1.2s ease-in-out infinite .2s; padding: 10px; } .kdrop span { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; } .kdrop b { font-size: .86rem; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes kdrop-in { from { opacity: 0; transform: scaleY(.4); } } @keyframes kdrop-pulse { 50% { background: color-mix(in srgb, var(--brand) 18%, transparent); } }
.kcard.landed { animation: klanded .7s cubic-bezier(.2, .8, .2, 1); } @keyframes klanded { 0% { transform: scale(.9); box-shadow: 0 0 0 0 var(--brand); } 40% { transform: scale(1.04); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 35%, transparent); } 100% { transform: none; box-shadow: none; } }
.khead .kedit { width: 26px; height: 26px; margin-left: 4px; opacity: 0; transition: opacity .15s; } .khead:hover .kedit, .kedit:focus-visible { opacity: 1; } @media (hover: none) { .khead .kedit { opacity: .8; } }
.stage-colors { display: flex; flex-wrap: wrap; gap: 8px; } .stage-colors .sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; } .stage-colors .sw.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--field); } .stage-colors .sw.custom { background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #f43f5e); overflow: hidden; } .stage-colors .sw.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.stage-prev { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--hover); } .stage-prev .dot { width: 12px; height: 12px; border-radius: 50%; }

/* Google Calendar en el calendario del CRM */
.ev.google { background: color-mix(in srgb, #4285f4 16%, transparent); border-left: 3px solid #4285f4; color: var(--text); text-decoration: none; } .ev.google svg { color: #4285f4; }
.gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); display: inline-block; margin-left: 6px; } .gdot.ok { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent); } .gdot.bad { background: #ef4444; }

/* ───────── Editor de flujos de trabajo (estilo n8n) ───────── */
.wf { --wf-edge: color-mix(in srgb, var(--text) 45%, transparent); display: flex; flex-direction: column; height: clamp(560px, calc(100vh - 340px), 960px); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--glass); }
.wf-loading { padding: 40px; text-align: center; color: var(--text-2); }
.wf-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: color-mix(in srgb, var(--text) 3%, transparent); } .wf-bar .sp { flex: 1; } .wf-sep { width: 1px; height: 24px; background: var(--line-strong); margin: 0 4px; }
.wf-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .86rem; } .wf-zoom { min-width: 46px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--text-2); }
.wf-status { font-size: .78rem; color: var(--text-2); } .wf-status.err { color: var(--danger, #ef4444); font-weight: 600; }
.wf-main { flex: 1; display: grid; grid-template-columns: 196px minmax(0, 1fr) 340px; min-height: 0; }
.wf-pal { border-right: 1px solid var(--line); overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; } .wf-pal-h { font-weight: 700; font-size: .86rem; margin-bottom: 2px; } .wf-pal-h small { display: block; font-weight: 400; color: var(--text-3); font-size: .72rem; }
.wf-grp { margin: 10px 0 2px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
.wf-pi { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 11px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; font-size: .84rem; cursor: grab; text-align: left; transition: .15s; } .wf-pi:hover { border-color: var(--c); transform: translateX(2px); } .wf-pi .ic, .wf-quick .ic, .wf-cfg-h .ic, .wf-nh .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; } .wf-pi .ic svg, .wf-quick .ic svg, .wf-cfg-h .ic svg, .wf-nh .ic svg { width: 16px; height: 16px; }
.wf-canvas { position: relative; overflow: hidden; min-width: 0; background-color: color-mix(in srgb, var(--text) 3%, transparent); background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 22%, transparent) 1.2px, transparent 1.4px); background-size: 20px 20px; touch-action: none; cursor: grab; outline: none; } .wf-canvas.panning { cursor: grabbing; } .wf-canvas.connecting { cursor: crosshair; }
.wf-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; width: 6000px; height: 4000px; } .wf-edges { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; } .wf-edges .wf-hit { stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; } .wf-edge { stroke: var(--wf-edge); stroke-width: 2.2; pointer-events: none; transition: stroke .15s; } .wf-edge.on { stroke: var(--brand); stroke-width: 2.8; stroke-dasharray: 8 5; animation: wfflow 1s linear infinite; } .wf-edge.sel { stroke: var(--brand); stroke-width: 3.2; } .wf-edge.temp { stroke: var(--brand); stroke-dasharray: 6 5; } @keyframes wfflow { to { stroke-dashoffset: -26; } }
.wf-nodes { position: absolute; left: 0; top: 0; }
.wf-node { position: absolute; border: 1.5px solid var(--line-strong); border-radius: 14px; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55); user-select: none; transition: box-shadow .15s, border-color .15s; background: color-mix(in srgb, var(--bg, #14090b) 55%, var(--field)); } .wf-node:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); } .wf-node.sel { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent), 0 16px 34px -14px rgba(0, 0, 0, .6); } .wf-node.drop { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.wf-node.visited { border-color: #22c55e; } .wf-node.waiting { box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 40%, transparent); border-color: #f59e0b; animation: wfwait 1.2s ease-in-out infinite; } @keyframes wfwait { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #f59e0b 12%, transparent); } }
.wf-nh { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--line); cursor: move; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), transparent); } .wf-nh b { flex: 1; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-nx { border: 0; background: transparent; color: var(--text-3); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; padding: 0; opacity: 0; } .wf-node:hover .wf-nx { opacity: 1; } .wf-nx:hover { background: color-mix(in srgb, #ef4444 20%, transparent); color: #ef4444; } .wf-nx svg { width: 14px; height: 14px; }
.wf-w { width: 20px; height: 20px; border-radius: 50%; background: #f59e0b; color: #1b1203; font-weight: 800; font-size: .74rem; display: grid; place-items: center; flex: none; } .wf-w.e { background: #ef4444; color: #fff; }
.wf-nb { padding: 9px 12px 10px; font-size: .78rem; color: var(--text-2); line-height: 1.4; min-height: 26px; word-break: break-word; } .wf-nb small { color: var(--text-3); }
.wf-outs { padding: 0 0 8px; display: grid; gap: 4px; } .wf-out { display: flex; align-items: center; justify-content: flex-end; gap: 8px; position: relative; min-height: 22px; } .wf-out .lb { font-size: .72rem; color: var(--text-2); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-pout, .wf-pin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--wf-edge); background: var(--field); cursor: crosshair; transition: .15s; flex: none; } .wf-pout { margin-right: -9px; } .wf-pout:hover, .wf-pin:hover, .wf-pout.used { border-color: var(--brand); background: var(--brand); transform: scale(1.2); } .wf-pin { position: absolute; left: -9px; top: 22px; cursor: default; }
.wf-edel { position: absolute; transform: translate(-50%, -50%); z-index: 5; } .wf-edel button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); } .wf-edel svg { width: 13px; height: 13px; } .wf-edel[hidden] { display: none; }
.wf-hint { position: absolute; left: 12px; bottom: 10px; font-size: .72rem; color: var(--text-3); background: color-mix(in srgb, var(--bg, #14090b) 70%, transparent); padding: 5px 10px; border-radius: 99px; pointer-events: none; max-width: calc(100% - 24px); }
.wf-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } .wf-tabs { display: flex; border-bottom: 1px solid var(--line); } .wf-tabs button { flex: 1; border: 0; background: transparent; padding: 11px 6px; color: var(--text-2); font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; border-bottom: 2px solid transparent; } .wf-tabs button.on { color: var(--brand); border-color: var(--brand); } .wf-side-b { flex: 1; overflow: auto; padding: 14px; min-height: 0; display: flex; flex-direction: column; }
.wf-cfg-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; } .wf-cfg-h small { display: block; color: var(--text-2); font-size: .76rem; line-height: 1.35; margin-top: 2px; } .wf-cfg-f { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .wf-chk { display: flex; gap: 8px; align-items: center; font-size: .86rem; margin: 8px 0; }
.wf-empty { text-align: center; color: var(--text-2); padding: 18px 6px; } .wf-empty > svg { width: 38px; height: 38px; color: var(--text-3); } .wf-empty code { background: var(--hover); padding: 1px 6px; border-radius: 6px; }
.wf-warns { text-align: left; margin-top: 16px; display: grid; gap: 6px; } .wf-warns > div { display: flex; gap: 8px; font-size: .78rem; padding: 7px 9px; border-radius: 9px; background: color-mix(in srgb, #f59e0b 12%, transparent); cursor: pointer; } .wf-warns > div.error { background: color-mix(in srgb, #ef4444 14%, transparent); } .wf-warns svg { width: 15px; height: 15px; flex: none; margin-top: 2px; } .wf-ok { margin-top: 14px; color: #22c55e; font-weight: 600; font-size: .84rem; }
.wf-test { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; } .wf-test-h { display: flex; justify-content: space-between; align-items: center; }
.wf-chat { flex: 1; min-height: 160px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); } .wf-chat .m { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; } .wf-chat .m.bot { align-self: flex-start; background: var(--hover); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; } .wf-chat .m.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; } .wf-chat .m.ev { align-self: center; max-width: 96%; font-size: .74rem; color: var(--text-2); background: color-mix(in srgb, #f59e0b 12%, transparent); border-radius: 99px; text-align: center; }
.wf-chat .opts { display: flex; flex-wrap: wrap; gap: 6px; } .wf-chat .opts button { border: 1.5px solid var(--brand); background: transparent; color: var(--brand); border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: .8rem; cursor: pointer; } .wf-chat .opts button:hover { background: var(--brand); color: #fff; }
.wf-chat-f { display: flex; gap: 8px; } .wf-chat-f .input { flex: 1; }
.wf-quick { position: fixed; z-index: 500; width: 220px; max-height: 70vh; overflow: auto; background: #150809; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); padding: 6px; } :root[data-theme="light"] .wf-quick { background: #fffaf6; } .wf-quick.wide { width: 340px; } .wf-quick-h { padding: 8px 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 800; } .wf-quick button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: transparent; color: var(--text); padding: 8px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: .86rem; text-align: left; } .wf-quick button:hover { background: var(--hover); } .wf-quick small { display: block; color: var(--text-2); font-size: .74rem; font-weight: 400; margin-top: 1px; }
@media (max-width: 1180px) { .wf-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(360px, 1fr) auto; } .wf { height: auto; } .wf-pal { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); max-height: 150px; } .wf-pal-h, .wf-grp { display: none; } .wf-pi { padding: 6px 8px; } .wf-side { border-left: 0; border-top: 1px solid var(--line); max-height: 520px; } .wf-canvas { min-height: 420px; } }

.kbody.has-drop .kempty { min-height: 0; max-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; overflow: hidden; }

/* Vista previa de la landing: no se muestra blanca mientras carga */
.lpb-frame { background: color-mix(in srgb, var(--text) 8%, var(--bg, #14090b)); position: relative; } #prev { background: transparent; transition: opacity .25s; } #prev.lpb-loading { opacity: 0; }
.lpb-frame::after { content: ''; position: absolute; left: 50%; top: 40%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--brand); animation: spn .8s linear infinite; opacity: 0; pointer-events: none; } .lpb-frame.is-loading::after { opacity: 1; }

/* Conversación del chatbot: modo activo y varios flujos */
.cv-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cv-mode { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--field); cursor: pointer; transition: .15s; } .cv-mode:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.cv-mode .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; } .cv-mode > div { flex: 1; min-width: 0; } .cv-mode small { display: block; color: var(--text-2); font-size: .78rem; line-height: 1.35; margin-top: 2px; }
.cv-mode.viewing { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); } .cv-mode.active { background: color-mix(in srgb, #22c55e 8%, var(--field)); } .cv-st { flex: none; }
.wf-flows { display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.wf-chip { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: .15s; max-width: 240px; } .wf-chip:hover { border-color: var(--brand); } .wf-chip.on { border-color: var(--brand); background: var(--brand-soft); }
.wf-chip span { display: grid; min-width: 0; } .wf-chip b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wf-chip small { font-size: .7rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wf-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; } .wf-chip .dot.on { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent); } .wf-chip.add { border-style: dashed; color: var(--text-2); font-weight: 600; font-size: .84rem; } .wf-chip.add svg { width: 15px; height: 15px; }
.wf-trig { display: grid; gap: 4px; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--text) 3%, transparent); } .wf-trig > b { font-size: .86rem; margin-bottom: 4px; }
.wf-test-b { display: inline-flex; gap: 6px; } .wf-test-b [hidden] { display: none; }

/* el tablero deja espacio para que el resplandor de la etapa destino no se corte arriba, abajo ni a los lados */
.board { padding: 34px 14px 46px; margin: -20px -14px 0; scroll-padding-inline: 14px; }

/* ───────── Calendario: vistas día / mes / año, tarjetas con color y distintivos de origen ───────── */
.cal-bar { flex-wrap: wrap; gap: 8px; }
.cal-title { margin: 0 6px; min-width: 150px; text-align: center; font-size: 1.15rem; } .cal-title::first-letter { text-transform: uppercase; }
.cal-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.cal-seg button { border: 0; background: none; padding: 6px 16px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .82rem; color: var(--text-2); cursor: pointer; transition: color .2s, background .25s, box-shadow .25s, transform .15s; }
.cal-seg button:hover { color: var(--text); } .cal-seg button:active { transform: scale(.94); }
.cal-seg button.on { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px var(--brand); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 2px 16px 12px; font-size: .74rem; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* distintivos de origen */
.eb { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; flex: none; color: #fff; font-size: .6rem; line-height: 1; }
.eb svg { width: 9px; height: 9px; } .eb b { font-weight: 800; font-size: .62rem; }
.eb-g { background: #fff; color: #4285f4; box-shadow: inset 0 0 0 1.5px #4285f4; } .eb-m { background: #f59e0b; } .eb-a { background: #8b5cf6; }
.chip-o { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .68rem; font-weight: 700; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.chip-o svg { width: 11px; height: 11px; } .chip-o b { font-weight: 800; }
.chip-g { background: color-mix(in srgb, #4285f4 22%, transparent); color: var(--text); } .chip-g b { color: #4285f4; }
.chip-m { background: color-mix(in srgb, #f59e0b 26%, transparent); } .chip-a { background: color-mix(in srgb, #8b5cf6 26%, transparent); }
.chip-late { background: color-mix(in srgb, var(--danger) 24%, transparent); } .chip-ok { background: color-mix(in srgb, #22c55e 26%, transparent); }
.ed-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* tarjetas del mes */
.ev { --c: var(--brand); gap: 5px; padding: 4px 7px; font-size: .75rem; font-weight: 600; border-radius: 8px; color: var(--text); font-weight: 500; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); transition: transform .18s ease, box-shadow .2s ease, filter .2s; }
.ev svg { color: var(--c); } .ev-h { font-weight: 700; font-size: .66rem; opacity: .85; flex: none; } .ev-t { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ev .eb { margin-left: auto; }
.ev:hover { transform: translateY(-1px) scale(1.025); box-shadow: 0 8px 18px -10px var(--c); filter: brightness(1.1); z-index: 2; }
.ev.google { background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--text); border-left-color: var(--c); } .ev.google svg { color: var(--c); }
.ev.quote { background: color-mix(in srgb, #f59e0b 26%, transparent); color: var(--text); border-left-color: #f59e0b; } .ev.quote svg { color: #f59e0b; }
.ev.late { border-left-color: var(--danger); } .ev.late::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.ev.done { opacity: .7; } .ev.done .ev-t { text-decoration: line-through; } .ev.dragging { opacity: .35; }
.cal-d { transition: transform .2s ease, border-color .2s, box-shadow .2s, background .2s; }
.cal-d:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 10px 24px -16px var(--brand); }
.cal-d.today { animation: calToday 2.8s ease-in-out infinite; }
.cal-d .more { color: var(--text); font-weight: 600; opacity: .8; } .cal-d .more:hover { opacity: 1; text-decoration: underline; }
@keyframes calToday { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent), var(--ring); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent), var(--ring); } }

/* animaciones de entrada */
@keyframes calNext { from { opacity: 0; transform: translateX(34px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes calPrev { from { opacity: 0; transform: translateX(-34px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes calZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes calFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes calPop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.cal.anim-next { animation: calNext .42s cubic-bezier(.2, .8, .2, 1); } .cal.anim-prev { animation: calPrev .42s cubic-bezier(.2, .8, .2, 1); }
.cal.anim-zoom { animation: calZoom .38s cubic-bezier(.2, .8, .2, 1); } .cal.anim-fade { animation: calFade .35s ease; }
.cal.enter .ev, .cal.enter .dcard { animation: calPop .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.cal.enter .cal-d { animation: calPop .4s ease both; animation-delay: calc(var(--d, 0) * 8ms); } .cal.enter .cal-d.today { animation: calPop .4s ease both, calToday 2.8s ease-in-out .5s infinite; }
.cal.enter .ym { animation: calPop .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* vista de día */
.dv { padding: 0 6px 10px; }
.dv-all, .dv-row { display: grid; grid-template-columns: 62px 1fr; gap: 12px; }
.dv-all { padding: 6px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dv-row { position: relative; min-height: 58px; border-top: 1px dashed var(--line); cursor: pointer; }
.dv-h { font-size: .76rem; font-weight: 700; color: var(--text-2); text-align: right; padding-top: 8px; }
.dv-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 6px 8px; border-radius: 12px; transition: background .2s; }
.dv-row:hover .dv-body { background: var(--brand-soft); }
.dv-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); border-radius: 2px; pointer-events: none; z-index: 3; }
.dv-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 25%, transparent); }
.dv-empty { display: grid; justify-items: center; gap: 4px; padding: 22px 10px 10px; color: var(--text-2); text-align: center; } .dv-empty svg { width: 30px; height: 30px; color: var(--brand); opacity: .8; } .dv-empty b { color: var(--text); }
.dcard { --c: var(--brand); display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 26%, transparent); color: var(--text); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s; }
.dcard:hover { transform: translateX(4px); box-shadow: 0 12px 26px -16px var(--c); filter: brightness(1.08); }
.dc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 40%, transparent); flex: none; } .dc-ic svg { width: 17px; height: 17px; color: var(--text); }
.dc-m { flex: 1; min-width: 0; } .dc-m .tt { font-weight: 700; } .dc-m small { color: var(--text-2); display: block; margin-top: 1px; } .dc-b { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .dc-b:empty { display: none; }
.dcard.done .tt { text-decoration: line-through; } .dcard.done { opacity: .75; } .dcard.late { border-left-color: var(--danger); }
.dc-ok { width: 36px; height: 36px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--text) 35%, transparent); background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.dc-ok:hover { transform: scale(1.12); border-color: #22c55e; color: #22c55e; } .dcard.done .dc-ok { background: #22c55e; border-color: #22c55e; color: #fff; } .dc-ok svg { width: 17px; height: 17px; }

/* vista de año */
.yr { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; padding: 4px 12px 14px; }
.ym { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--glass); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ym:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 14px 28px -18px var(--brand); }
.ym h3 { margin: 0 0 8px; font-size: .92rem; text-transform: capitalize; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; } .ym h3:hover { color: var(--brand); } .ym h3 small { color: var(--text-2); font-weight: 500; font-size: .68rem; }
.ym-w, .ym-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; } .ym-w span { font-size: .6rem; color: var(--text-2); text-transform: uppercase; padding-bottom: 2px; }
.yd { height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: .7rem; cursor: pointer; color: var(--text-2); transition: transform .15s, background .2s; } .yd:hover { transform: scale(1.22); background: var(--brand-soft); color: var(--text); z-index: 1; }
.yd.has { background: color-mix(in srgb, var(--brand) calc(var(--n) * 13% + 10%), transparent); color: var(--text); font-weight: 700; }
.yd.today { outline: 2px solid var(--brand); outline-offset: -1px; color: var(--text); font-weight: 800; }

/* selector de color */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.sw:hover { transform: scale(1.15); } .sw.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--text)) 35%, transparent); transform: scale(1.1); }
.sw.none { background: var(--glass); border: 2px dashed var(--line-strong); color: var(--text-2); } .sw.none svg { width: 12px; height: 12px; } .sw.none.on { border-style: solid; }

@media (max-width: 820px) {
  .cal-title { min-width: 0; flex: 1; font-size: 1rem; } .cal-seg button { padding: 6px 10px; } .ev-h, .ev .eb { display: none; } .ev .ev-t { display: none; } .ev { padding: 4px; justify-content: center; border-left-width: 2px; }
  .dv-all, .dv-row { grid-template-columns: 46px 1fr; gap: 6px; } .yr { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 4px 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { .cal, .cal * { animation: none !important; transition: none !important; } }

/* pie de las ventanas: los botones pasan a otra línea en vez de salirse del cuadro */
.modal-foot { flex-wrap: wrap; } .modal-foot .sp { flex: 1 1 0; min-width: 0; } .modal-foot .btn { white-space: nowrap; }
@media (max-width: 560px) { .modal.sm .modal-foot .sp { display: none; } .modal.sm .modal-foot .btn { flex: 1 1 auto; justify-content: center; } }

/* tres botones siempre en una sola fila (editar tarea / evento de Google) */
.foot-row { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: nowrap; } .foot-row .sp { flex: 1 1 0; min-width: 0; } .foot-row .btn { flex: 0 1 auto; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
@media (max-width: 560px) { .modal.sm .modal-foot .foot-row .sp { display: block; } .modal.sm .modal-foot .foot-row .btn { flex: 0 1 auto; padding-left: 10px; padding-right: 10px; font-size: .8rem; } }

/* ───────── Pasarelas de pago: un bloque por pasarela ───────── */
.gw-list { display: grid; gap: 12px; }
.gw { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.gw.on { border-color: color-mix(in srgb, #22c55e 45%, var(--line)); }
.gw[open] { box-shadow: 0 14px 30px -22px var(--brand); }
.gw summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; user-select: none; }
.gw summary::-webkit-details-marker { display: none; }
.gw-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); flex: none; } .gw-ic svg { width: 19px; height: 19px; }
.gw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gw-t b { font-size: 1rem; } .gw-t small { color: var(--text-2); font-size: .78rem; }
.gw-chev svg { width: 18px; height: 18px; color: var(--text-2); transition: transform .25s; } .gw[open] .gw-chev svg { transform: rotate(180deg); }
.gw-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 16px; animation: calFade .3s ease; }
.gw-sub { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--hover, rgba(128,128,128,.08)); }
@media (max-width: 560px) { .gw summary { padding: 12px; } .gw-body { padding: 14px 12px; } .gw-body .row { flex-direction: column; } }

/* direcciones largas (webhooks): una por fila y siempre completas */
.codebox { overflow-wrap: anywhere; word-break: break-all; }

/* cajas con botón Copiar: el texto nunca queda debajo del botón y se ve completo */
.code:has(> .copy) { padding-right: 112px; overflow-wrap: anywhere; word-break: break-all; }
@media (max-width: 560px) { .code:has(> .copy) { padding: 14px 14px 52px; } .code:has(> .copy) .copy { top: auto; bottom: 8px; } }

/* tarjetas de canal de Meta: pasos numerados */
.step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--c, var(--brand)); color: #fff; font-size: .72rem; font-weight: 800; }
.meta-ch .mb { padding-bottom: 16px; }

/* conversión de moneda: tasa automática o manual */
.fx-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.fx-opt:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); } .fx-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.fx-opt input { margin-top: 4px; accent-color: var(--brand); flex: none; } .fx-opt > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .fx-opt small { color: var(--text-2); line-height: 1.5; }
.fx-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* credenciales: el entorno en uso se resalta y el otro se atenúa */
.env-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .env-pick .fx-opt { margin-top: 0; }
.env-set { padding: 4px 14px 8px; border: 1px dashed var(--line); border-radius: 14px; margin-top: 10px; opacity: .6; transition: opacity .2s, border-color .2s; } .env-set.active { opacity: 1; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); }
@media (max-width: 560px) { .env-pick { grid-template-columns: 1fr; } }

/* método de pago del cliente (tarjetas guardadas) */
.pm-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); } .pm-row:last-of-type { border-bottom: 0; }
.pm-brand { display: grid; place-items: center; min-width: 48px; height: 30px; padding: 0 6px; border-radius: 7px; color: #fff; font-weight: 800; font-size: .68rem; letter-spacing: .04em; flex: none; }
.pm-info b { font-size: .98rem; } @media (max-width: 560px) { .pm-row { flex-wrap: wrap; } .pm-row .sp { display: none; } }
.env-set .env-use { display: none; } .env-set.active .env-use { display: inline-flex; }

/* modo de landings, tarjeta de dominio y editor personalizado con Claude */
.mode-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .mode-txt b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .mode-txt small { display: block; max-width: 62ch; }
.dom-steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 16px; } .dom-steps li { line-height: 1.55; } .dom-steps code { background: var(--hover); padding: 2px 7px; border-radius: 6px; font-size: .84rem; }
.dom-rec { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin: 10px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--hover); } .dom-rec > div { min-width: 120px; flex: 1; } .dom-rec small { display: block; color: var(--text-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; } .dom-rec b { word-break: break-all; }
.dom-urls { display: grid; gap: 8px; } .dom-u { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; } .dom-u small { word-break: break-all; }
.cl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 12px; padding-bottom: 8px; }
.cl-chat { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .cl-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .cl-head small { margin-left: auto; }
.cl-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; } .cl-m { display: flex; } .cl-m.user { justify-content: flex-end; } .cl-m .b { max-width: 90%; padding: 10px 13px; border-radius: 16px; font-size: .88rem; line-height: 1.5; background: var(--hover); border: 1px solid var(--line); } .cl-m.user .b { background: var(--brand); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; } .cl-m.assistant .b { border-bottom-left-radius: 4px; } .cl-m .b small.ok { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #16a34a; font-weight: 600; } .cl-m .b small svg { width: 13px; height: 13px; }
.cl-m .dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 3px; animation: clb 1s infinite; } .cl-m .dots i:nth-child(2) { animation-delay: .15s; } .cl-m .dots i:nth-child(3) { animation-delay: .3s; } @keyframes clb { 50% { transform: translateY(-4px); opacity: .5; } }
.cl-sug { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; max-height: 96px; overflow: auto; } .chip { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); border-radius: 99px; padding: 5px 11px; font-size: .74rem; cursor: pointer; } .chip:hover { border-color: var(--brand); color: var(--brand); }
.cl-in { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); } .cl-in textarea { resize: none; width: 100%; }
.cl-main { background: var(--hover); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding: 12px; min-height: 0; position: relative; display: flex; } .cl-pane { display: none; flex: 1; min-width: 0; } .cl-pane.on { display: flex; justify-content: center; }
.cl-frame { height: 100%; max-width: 100%; transition: width .3s; } .cl-code { width: 100%; overflow: auto; display: flex; flex-direction: column; gap: 6px; } .cl-code-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 4px; } .cl-code textarea.mono { font: .8rem/1.5 ui-monospace, Consolas, monospace; min-height: 220px; white-space: pre; overflow: auto; tab-size: 2; } .cl-code .lbl-t { margin-top: 6px; }
@media (max-width: 900px) { .cl-body { grid-template-columns: 1fr; overflow: auto; } .cl-chat { max-height: 460px; } .cl-main { min-height: 520px; } }
.seg button { gap: 6px; }
#dom-wrap { margin-top: 18px; }

.lpb-right.flash { animation: flashp .9s; } @keyframes flashp { 30% { box-shadow: 0 0 0 3px var(--brand); } }
.seg button svg { margin-right: 4px; }

.ai-ref { margin: 0 0 8px; } .ref-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); font-size: .78rem; max-width: 100%; } .ref-chip svg { width: 13px; height: 13px; flex: none; } .ref-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ref-chip button { border: 0; background: rgba(255,255,255,.14); color: inherit; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }

/* lista de secciones: título arriba y acciones siempre abajo (sin cambios de tamaño al pasar el cursor) */
.lpb-item { display: grid !important; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: 'grip ti tx' 'acts acts acts'; align-items: center; gap: 4px 8px; padding: 10px 10px 6px; position: relative; transition: border-color .2s, background .2s, box-shadow .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.lpb-item .grip { grid-area: grip; cursor: grab; touch-action: none; } .lpb-item .ti { grid-area: ti; } .lpb-item .tx { grid-area: tx; min-width: 0; } .lpb-item .tx b { display: block; font-size: .86rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.lpb-item .acts { grid-area: acts; display: flex !important; justify-content: space-between; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); opacity: .55; transition: opacity .2s; } .lpb-item:hover .acts, .lpb-item.on .acts { opacity: 1; }
.lpb-item .acts button { flex: 1; width: auto; height: 26px; border-radius: 8px; } .lpb-item .acts button svg { width: 15px; height: 15px; } .lpb-item .acts button[data-act="del"]:hover { background: rgba(239, 68, 68, .18); color: #ef4444; } .lpb-item .acts button:disabled { opacity: .3; cursor: default; }
.lpb-item:hover { box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5); }
.lpb-eh { align-items: center; } 

.lpb-item.ph { border: 2px dashed var(--brand) !important; background: color-mix(in srgb, var(--brand) 10%, transparent) !important; box-shadow: none !important; } .lpb-item.ph > * { opacity: 0; }
.lpb-item.ph::after { content: 'Suelta aquí'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; animation: phpulse 1.2s ease-in-out infinite; } @keyframes phpulse { 50% { opacity: .45; } }
.lpb-item.ghost { background: var(--card-solid, #1b1b22) !important; border-color: var(--brand) !important; cursor: grabbing; will-change: transform; } .lpb-item.ghost .acts { opacity: .3; }
body.lp-dragging, body.lp-dragging * { cursor: grabbing !important; user-select: none !important; }
.lpb-list.dragging .lpb-item:not(.ph):not(.ghost) { opacity: .85; }

/* Constructor IA: gris en reposo, colores vivos y animación al usarlo */
.lpb-ai { position: relative; background: var(--hover) !important; border-top: 1px solid var(--line) !important; transition: background .45s, box-shadow .45s; overflow: hidden; }
.lpb-ai .ah { display: flex; align-items: center; gap: 8px; } .lpb-ai .ah .sp { flex: 1; } .lpb-ai .ah svg { color: var(--text-2) !important; transition: color .35s, transform .6s; } .lpb-ai .ah b { color: var(--text-2); transition: color .35s; }
.lpb-ai .ai-x { border: 0; background: transparent; color: var(--text-2); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0; } .lpb-ai .ai-x:hover { background: var(--hover); color: var(--text); } .lpb-ai .ai-x svg { width: 15px; height: 15px; }
.lpb-ai .switch.sm { width: 36px; height: 20px; } .lpb-ai .switch.sm span::before { width: 14px; height: 14px; }
.lpb-ai textarea { filter: grayscale(1); opacity: .85; transition: filter .35s, opacity .35s, border-color .35s, box-shadow .35s, min-height .3s; } .lpb-ai textarea:focus { outline: none; }
.lpb-ai .btn.primary { background: var(--hover) !important; color: var(--text-2) !important; box-shadow: none !important; border: 1px solid var(--line-strong) !important; transition: background .4s, color .4s, box-shadow .4s, transform .2s; }
.lpb-ai .ai-body { display: grid; gap: 8px; } .ai-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .7rem; } .ai-foot small { color: var(--text-2); }
.ai-log { display: none; max-height: 180px; overflow: auto; gap: 8px; } .lpb-ai.big .ai-log { display: grid; } .ai-log:empty { display: none !important; }
.ai-m { display: grid; gap: 4px; font-size: .78rem; } .ai-m .u { justify-self: end; max-width: 92%; padding: 6px 10px; border-radius: 12px 12px 2px 12px; background: var(--line); } .ai-m .r { justify-self: start; max-width: 92%; padding: 6px 10px; border-radius: 12px 12px 12px 2px; border: 1px solid var(--line); color: var(--text-2); } .ai-m .r.ok { border-color: color-mix(in srgb, #22c55e 50%, transparent); } .ai-m .r.no { border-color: color-mix(in srgb, #ef4444 45%, transparent); }
.lpb-ai.big textarea { min-height: 150px; font-size: .92rem; } .lpb-ai.big { max-height: none; }
.ai-ref .ref-chip { filter: grayscale(1); opacity: .8; transition: filter .35s, opacity .35s; }
/* en uso: colores de la marca con animación de entrada */
.lpb-ai.ai-on { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 26%, transparent), color-mix(in srgb, var(--brand-2) 20%, transparent), color-mix(in srgb, var(--brand) 12%, transparent)) !important; background-size: 220% 220% !important; animation: aiIn .9s cubic-bezier(.2, .8, .2, 1), aiFlow 6s ease-in-out .9s infinite; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--brand) 50%, transparent), 0 -14px 40px -18px var(--brand); }
.lpb-ai.ai-on::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--brand) 38%, #fff) 50%, transparent 70%); transform: translateX(-120%); animation: aiSweep 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.lpb-ai.ai-on .ah svg { color: var(--brand) !important; transform: rotate(20deg); } .lpb-ai.ai-on .ah b { color: var(--text); }
.lpb-ai.ai-on textarea { filter: none; opacity: 1; border-color: var(--brand) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent), 0 8px 24px -12px var(--brand); }
.lpb-ai.ai-on .btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 10px 26px -10px var(--brand) !important; animation: aiPop .6s cubic-bezier(.2, .8, .2, 1) .15s both; } 
.lpb-ai.ai-on .ai-ref .ref-chip { filter: none; opacity: 1; }
@keyframes aiIn { 0% { opacity: .55; } 100% { opacity: 1; } }
@keyframes aiSweep { to { transform: translateX(120%); } } @keyframes aiFlow { 50% { background-position: 100% 100%; } } @keyframes aiPop { 0% { opacity: .5; } 100% { opacity: 1; } }
.ai-dots i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: currentColor; animation: clb 1s infinite; } .ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
/* desactivado: solo queda una barra pequeña */
.ai-wake { display: none; width: 100%; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: .78rem; padding: 4px 0; cursor: pointer; align-items: center; justify-content: center; gap: 8px; } .ai-wake svg { width: 14px; height: 14px; } .ai-wake:hover { color: var(--brand); }
.lpb-ai.off .ai-body, .lpb-ai.off .ah .ai-x { display: none; } .lpb-ai.off .ai-wake { display: flex; } .lpb-ai.off { padding-block: 8px; } .lpb-ai.wake { animation: aiIn .7s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .lpb-ai.ai-on, .lpb-ai.ai-on::before, .lpb-ai.ai-on .btn.primary { animation: none !important; } }

.ref-chip { max-width: 100%; } .ref-chip > span { min-width: 0; } .ref-chip button { flex: none; }

/* Constructor IA: referencia compacta (nunca desborda el panel) e interruptor bien proporcionado */
.lpb-ai { min-width: 0; max-width: 100%; } .lpb-ai .ai-body { grid-template-columns: minmax(0, 1fr); } .lpb-ai .ai-body > * { min-width: 0; }
.ref-card { min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 9%, transparent); filter: grayscale(1); opacity: .85; transition: filter .35s, opacity .35s; } .lpb-ai.ai-on .ref-card { filter: none; opacity: 1; }
.ref-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .ref-k { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); } .ref-k svg { width: 12px; height: 12px; }
.ref-top button { flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: inherit; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.ref-sec { font-weight: 700; font-size: .86rem; margin-top: 2px; } .ref-path { font-size: .76rem; color: var(--text-2); }
.ref-sec, .ref-path, .ref-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ref-val { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line-strong); font-size: .74rem; font-style: italic; color: var(--text-2); }
.lpb-ai .ah { min-width: 0; } .lpb-ai .ah b { white-space: nowrap; }
.lpb-ai .switch { width: 36px !important; height: 20px !important; flex: none; } .lpb-ai .switch span::after { width: 14px !important; height: 14px !important; left: 3px !important; top: 3px !important; } .lpb-ai .switch input:checked + span::after { transform: translateX(16px) !important; } .lpb-ai .switch span::before { content: none !important; }
@keyframes aiIn { 0% { opacity: .55; } 100% { opacity: 1; } }

.anc-in { display: flex; align-items: stretch; } .anc-in > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px; background: var(--hover); color: var(--brand); font-weight: 800; } .anc-in .input { border-radius: 0 12px 12px 0; }
.anc-use, .anchor-hint { display: block; margin-top: 6px; line-height: 1.5; } .anc-use code, .anchor-hint code { background: var(--hover); padding: 1px 6px; border-radius: 6px; }
.ah-ok { color: #22c55e; } .ah-no { color: #f59e0b; }

/* dominios */
.dns-wrap { overflow-x: auto; margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 14px; } .dns-t { width: 100%; border-collapse: collapse; font-size: .86rem; } .dns-t th { text-align: left; padding: 8px 12px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: var(--hover); } .dns-t td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; } .dns-t code { background: var(--hover); padding: 3px 8px; border-radius: 6px; word-break: break-all; } .dns-t .btn.sm { padding: 3px 7px; margin-left: 4px; } .dns-n { display: block; margin-bottom: 4px; line-height: 1.5; }
.dx-row { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: var(--hover); } .dx-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .dx-top .sp { flex: 1; } .dx-d { font-size: 1rem; word-break: break-all; } .dx-dns summary { cursor: pointer; margin-top: 10px; color: var(--brand); font-weight: 600; font-size: .84rem; }
.crm-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--hover); } .crm-url a { color: var(--brand); word-break: break-all; }
/* chat de Claude: misma piel (gris en reposo, colores vivos y animación al usarlo) que el Constructor IA */
.cl-chat .cl-ai { border-radius: 0 0 18px 18px; } .cl-chat .cl-msgs { min-height: 0; }

/* el Constructor IA nunca cambia de tamaño al usarlo: sin zoom, sin desbordes */
.lpb-ai, .lpb-ai * { box-sizing: border-box; } .lpb-ai { contain: layout paint; overflow: hidden; } .lpb-ai textarea { width: 100%; resize: none; }

/* edición visual de landings personalizadas */
.cl-solo .cl-body { grid-template-columns: minmax(0, 1fr); } .cl-solo .cl-chat { display: none; }
.cl-vis { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; width: 100%; min-height: 0; } .cl-vis .cl-frame { position: relative; justify-self: center; } .cl-vload { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); color: var(--text-2); border-radius: 14px; }
.cl-vp { overflow: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; } .vp-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--glass); display: grid; gap: 8px; } .vp-h { display: flex; align-items: center; gap: 8px; min-width: 0; } .vp-h small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; } .vp-row.v { flex-direction: column; align-items: stretch; } .vp-row input[type=color] { width: 38px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; cursor: pointer; } .vp-row .input, .vp-row .select { max-width: 150px; } .vp-row.v .input { max-width: none; }
.sws { display: flex; flex-wrap: wrap; gap: 6px; } .sw { position: relative; width: 28px; height: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); cursor: pointer; } .sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; } .sw span { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 900px) { .cl-vis { grid-template-columns: 1fr; } .cl-vp { max-height: 360px; } }

/* controles avanzados: filas de lados, valor + unidad, valores por dispositivo */
.frow { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px; align-items: end; margin-bottom: 10px; position: relative; } .frow .field { margin: 0; min-width: 0; } .frow .field label { font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } .frow .input, .frow .select { padding-inline: 8px; }
.frow.quad { grid-template-columns: repeat(4, minmax(0, 1fr)) 34px; } .lnk { height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; padding: 0; } .lnk.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); } .lnk svg { width: 15px; height: 15px; }
.rs-clr { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: .9rem; margin-left: 6px; padding: 0 4px; }

/* estructuras con flecha y celdas independientes */
.smini { position: relative; } .sarrow { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; color: var(--text-2); pointer-events: none; }
.cells-ed { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 12px; background: var(--hover); display: grid; gap: 8px; } .cell-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .cell-row b { font-size: .78rem; min-width: 58px; } .cell-row .seg button { min-width: 34px; font-size: 1rem; }

.sect .sect-b{display:none}.sect.open .sect-b{display:block}button.sect-h{display:flex;align-items:center;gap:6px;width:100%;background:none;border-width:1px 0 0;border-style:solid;border-color:var(--line);cursor:pointer;text-align:left;font-family:inherit}button.sect-h:hover{filter:brightness(1.2)}.sect:first-child button.sect-h{border-top:0;margin-top:0}.sect-h .chev{display:inline-block;width:10px;color:var(--muted)}
.ico-cur{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--hover)}.ico-lib{margin-top:6px}.ico-lib summary{cursor:pointer;font-size:.8rem;color:var(--muted)}.ico-lib .emojis{max-height:190px;overflow:auto}
.gc-row{display:flex;gap:8px;align-items:center;margin-bottom:6px}.gc-row input[type=color]{width:40px;height:34px;border:0;background:none;padding:0}.gc-sw{display:flex;gap:6px;margin-top:6px}.gc-sw button{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);cursor:pointer;padding:0}
.cspan{display:inline-flex;align-items:center;gap:3px;font-size:.8rem;color:var(--muted)}.cspan input{width:44px;padding:4px;border-radius:6px;border:1px solid var(--line);background:var(--bg2,transparent);color:inherit;text-align:center}
.clip-bar{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.nt{padding:6px 8px}.nt .ti{width:22px;height:22px}.nt-cell{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:6px 0 2px}
.tpl-list{display:grid;gap:8px}.tpl-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.tpl-row small{display:block;color:var(--muted)}.tpl-row span{display:flex;gap:6px}
.ctxm{position:fixed;z-index:99999;min-width:210px;padding:6px;border-radius:12px;background:var(--card,#16161f);border:1px solid var(--line,rgba(127,127,127,.35));box-shadow:0 24px 60px -16px rgba(0,0,0,.6)}.ctxm button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:.88rem;text-align:left;cursor:pointer}.ctxm button svg{width:16px;height:16px;flex:none;opacity:.8}.ctxm button:hover:not([disabled]),.ctxm button:focus-visible{background:var(--hover,rgba(127,127,127,.18));outline:none}.ctxm button[disabled]{opacity:.4;cursor:default}.ctxm button.danger{color:#ef4444}.ctxm hr{border:0;border-top:1px solid var(--line,rgba(127,127,127,.3));margin:5px 4px}
.cell-row .ctitle,.cell-row .cicon{flex:1;min-width:110px;padding:5px 8px;border-radius:6px;border:1px solid var(--line);background:var(--bg2,transparent);color:inherit;font:inherit;font-size:.82rem}

/* ───────── Panel de edición estilo Elementor Pro ───────── */
.lpb-right { padding: 0 !important; display: flex; flex-direction: column; overflow: hidden !important; border-radius: 12px; }
.lpb-right .ep { display: flex; flex-direction: column; height: 100%; min-height: 0; font-size: .8rem; }
.ep-hd { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 48px; padding: 0 6px; margin: 0 !important; border: 0 !important; background: var(--lp-d2); color: #fff; font-size: .92rem; }
.ep-hd b { flex: 1; text-align: center; font-weight: 700; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ib { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--lp-t2); cursor: pointer; flex: none; } .ep-ib:hover { color: #fff; background: rgba(255,255,255,.1); } .ep-ib .epi { width: 18px; height: 18px; }
.ep-tabs { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(127,127,127,.16); border-bottom: 1px solid var(--line); margin: 0 !important; border-radius: 0 !important; padding: 0 !important; }
.ep-tabs button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--text-2); font: inherit; font-size: .72rem; cursor: pointer; margin-bottom: -1px; }
.ep-tabs button:hover { color: var(--text); } .ep-tabs button.on { color: var(--text); border-bottom-color: var(--brand); background: var(--glass); box-shadow: none; }
.ep-body { flex: 1; min-height: 0; overflow: auto; padding-bottom: 12px; scrollbar-width: thin; }
.ep-body > .clip-bar, .ep-body > .struct-cur, .ep-body > .cells-ed, .ep-body > .hero-note, .ep-body > .field { margin-left: 16px; margin-right: 16px; } .ep-body > .clip-bar { margin-top: 12px; }
.ep-ft { flex: none; display: flex; align-items: center; gap: 2px; padding: 4px 6px; background: var(--lp-d2); border-top: 1px solid rgba(255,255,255,.08); }
.ep-up { margin-left: auto; height: 32px; padding: 0 16px; border: 0; border-radius: 3px; background: var(--ok); color: #fff; font: 700 .72rem/1 inherit; letter-spacing: .06em; cursor: pointer; } .ep-up:hover { filter: brightness(1.1); }
/* secciones plegables */
.ep .sect { border-bottom: 1px solid var(--line); }
.ep button.sect-h { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 !important; padding: 13px 16px !important; border: 0 !important; background: none; font: inherit !important; font-size: .8rem !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text) !important; text-align: left; cursor: pointer; }
.ep button.sect-h:hover { background: var(--hover); } .ep .sect-h .chev { width: 12px; color: var(--text-2); }
.ep .sect-b { padding: 2px 16px 14px; }
/* controles: etiqueta a la izquierda y control a la derecha */
.ep .field { margin: 0 0 14px; }
.ep .field > label:first-child { display: block; font-size: .76rem; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.ep .field:has(> select), .ep .field:has(> input[type=number]), .ep .field:has(> input[type=datetime-local]), .ep .field:has(> .dimc), .ep .field:has(> div > input[type=color]) { display: grid; grid-template-columns: 40% 1fr; align-items: center; gap: 10px; }
.ep .field:has(> select) > label, .ep .field:has(> .dimc) > label, .ep .field:has(> div > input[type=color]) > label, .ep .field:has(> input[type=number]) > label { margin: 0; }
.ep .input, .ep .select, .ep .textarea { font-size: .78rem; border-radius: 3px; padding: 6px 8px; min-height: 30px; background: var(--bg); border: 1px solid var(--line); }
.ep .select { appearance: none; -webkit-appearance: none; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px; background-size: 4px 4px; background-repeat: no-repeat; }
.ep .input:focus, .ep .select:focus, .ep .textarea:focus { outline: none; border-color: var(--brand); box-shadow: none; }
.ep .dimc { display: flex; align-items: center; gap: 8px; } .ep .dimc .input { width: 64px; flex: none; text-align: center; padding: 4px; } .ep .dimc .dsl { flex: 1; min-width: 0; accent-color: var(--brand); height: 4px; }
/* interruptor sí/no */
.ep .chk.epsw { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: .78rem; color: var(--text-2); cursor: pointer; }
.ep .chk.epsw input.cb { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 22px; margin: 0; border-radius: 99px; background: rgba(127,127,127,.35); cursor: pointer; transition: background .2s; }
.ep .chk.epsw input.cb::before { content: 'NO'; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font: 700 8px/1 inherit; color: rgba(255,255,255,.85); }
.ep .chk.epsw input.cb::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ep .chk.epsw input.cb:checked { background: var(--brand); } .ep .chk.epsw input.cb:checked::before { content: 'SÍ'; right: auto; left: 8px; } .ep .chk.epsw input.cb:checked::after { transform: translateX(24px); }
/* fila de cuatro lados (relleno, margen, borde, esquinas) */
.ep .frow.quad { display: grid; grid-template-columns: repeat(4, 1fr) 34px; gap: 4px; align-items: start; } .ep .frow.quad .field { margin: 0; display: block; } .ep .frow.quad .field > label { font-size: .62rem; text-align: center; order: 2; margin: 3px 0 0 !important; } .ep .frow.quad .field { display: flex; flex-direction: column; } .ep .frow.quad .input { width: 100%; text-align: center; padding: 4px 2px; }
.ep .frow .lnk { height: 30px; width: 30px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); cursor: pointer; display: grid; place-items: center; } .ep .frow .lnk.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ep .frow:not(.quad) { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; }
.ep .lbl-t { font-size: .72rem; }
.ep .clip-bar { gap: 4px; } .ep .clip-bar .btn { font-size: .68rem; padding: 4px 8px; }
.lpb-right .lpb-empty { padding: 30px 20px; }
.ep-pre { padding: 12px 16px 2px; border-bottom: 1px solid var(--line); } .ep-pre:empty { display: none; }
.stg { margin: 0 0 14px; } .stg-t { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 12px; } .stg-t button { flex: 1; padding: 7px 4px; border: 0; background: var(--bg); color: var(--text-2); font: inherit; font-size: .74rem; cursor: pointer; border-right: 1px solid var(--line); } .stg-t button:last-child { border-right: 0; } .stg-t button.on { background: var(--brand); color: #fff; } .stg-p { display: none; } .stg-p.on { display: block; }
.ep .frow .field { display: block !important; } .ep .frow:not(.quad) .field > label { margin: 0 0 5px !important; }

/* ───────── Editor a pantalla completa (estilo Elementor Pro): barra superior, panel izquierdo, lienzo y «Estructura» ───────── */
[hidden] { display: none !important; }
.lpb.lpv { position: fixed; inset: 0; z-index: 100; margin: 0; height: auto; min-height: 0; background: var(--bg); display: flex; flex-direction: column; }
.lpv .lpb-top { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 44px; padding: 0 10px 0 0; background: var(--lp-d1); color: var(--lp-t2); flex-wrap: nowrap; }
.lpv .lpb-top .tl, .lpv .lpb-top .tr { display: flex; align-items: center; gap: 2px; min-width: 0; } .lpv .lpb-top .tr { justify-content: flex-end; gap: 4px; }
.lpv .lpb-top .tc { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.tb-home { width: 44px; height: 44px; display: grid; place-items: center; flex: none; } .tb-home img { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2, #fc673c)); object-fit: contain; }
.tb-b { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 4px; color: var(--lp-t2); cursor: pointer; padding: 0; flex: none; transition: background .12s, color .12s; } .tb-b:hover { background: rgba(255, 255, 255, .09); color: #fff; } .tb-b.on { background: var(--lp-d3); color: #fff; }
.tb-name { display: flex; align-items: center; gap: 2px; padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .14); color: #fff; } .tb-name i { display: grid; place-items: center; opacity: .7; }
.lpv .lpb-top .lpb-name { max-width: 170px; width: 150px; min-width: 70px; padding: 5px 6px; border: 0; border-radius: 4px; background: transparent; color: #fff; font: 600 .8rem system-ui; text-overflow: ellipsis; } .lpv .lpb-top .lpb-name:hover, .lpv .lpb-top .lpb-name:focus { background: var(--lp-d3); outline: none; }
.devs { display: flex; height: 44px; } .devs button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--lp-t3); cursor: pointer; padding: 0; } .devs button:hover { color: #fff; } .devs button.on { color: #fff; background: rgba(255, 255, 255, .06); } .devs button.on::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px; background: #fff; border-radius: 2px 2px 0 0; }
#save-st { color: var(--lp-t3); font-size: .72rem; margin-right: 6px; white-space: nowrap; }
.pubb { height: 44px; margin-left: 8px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--grad); color: #fff; font: 700 .84rem system-ui; cursor: pointer; flex: none; } .pubb:hover { filter: brightness(1.1); } .pubb svg { width: 16px; height: 16px; } .pubb.on { background: color-mix(in srgb, var(--ok) 20%, var(--lp-d1)); color: var(--ok); } .pubb.on:hover { filter: brightness(1.15); }
.lpv .lpb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; padding: 0; }
.lpv .lpb-left { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 0; border-radius: 0; border-right: 1px solid var(--line); background: var(--bg); }
.lpb-pn, .lpl-ed { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lpl-ed .ep { display: flex; flex-direction: column; height: 100%; min-height: 0; font-size: .8rem; } .lpl-ed.flash { animation: flashp .9s; }
.pn-hd { flex: none; height: 48px; display: grid; place-items: center; background: var(--lp-d2); color: #fff; font-size: .92rem; } .pn-hd b { font-weight: 700; letter-spacing: .01em; }
.pn-tabs { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(127, 127, 127, .14); border-bottom: 1px solid var(--line); } .pn-tabs button { padding: 11px 4px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--text-2); font: 600 .74rem system-ui; cursor: pointer; } .pn-tabs button:hover { color: var(--text); } .pn-tabs button.on { color: var(--text); border-bottom-color: var(--brand); background: var(--glass); }
.pn-body { flex: 1; min-height: 0; overflow: auto; padding: 0 0 16px; scrollbar-width: thin; } .pn-body.pad { padding: 14px 16px 20px; }
.pn-search { position: relative; margin: 12px 12px 4px; } .pn-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; } .pn-search input { width: 100%; box-sizing: border-box; padding: 8px 10px 8px 30px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--text); font: italic .76rem system-ui; } .pn-search input:focus { outline: none; border-color: var(--brand); font-style: normal; }
.pn-g { padding: 4px 12px 10px; border-bottom: 1px solid var(--line); } .pn-g:last-child { border-bottom: 0; }
.pn-gh { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 0 8px; border: 0; background: none; color: var(--text); font: 700 .78rem system-ui; text-align: left; cursor: pointer; } .pn-gh i { width: 10px; font-style: normal; font-size: .7rem; color: var(--text-2); }
.pn-g .ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 0 4px; } .pn-g .ptile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 78px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--text-2); cursor: grab; transform: none; transition: border-color .12s, color .12s, background .12s; } .pn-g .ptile:hover { border-color: var(--brand); color: var(--text); background: var(--hover); transform: none; } .pn-g .ptile .pi { display: grid; place-items: center; height: 30px; font-size: 1.3rem; } .pn-g .ptile small { font-size: .68rem; line-height: 1.15; text-align: center; color: inherit; }
.pn-g .plist { padding: 0 0 4px; }
/* lienzo */
.lpv .lpb-mid { position: relative; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: color-mix(in srgb, var(--text) 7%, var(--bg)); }
.lpv .lpb-mid .lpb-frame { border-radius: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); } #prev { position: relative; transform-origin: 0 0; }
/* tarjeta para elegir Flexbox / Grid y la estructura */
.spk { position: absolute; left: 0; right: 0; top: 52px; display: none; justify-content: center; z-index: 7; pointer-events: none; padding: 0 316px 0 16px; } .spk.on { display: flex; }
.spk-box { position: relative; pointer-events: auto; width: min(660px, 100%); box-sizing: border-box; padding: 22px 28px 26px; text-align: center; background: #fff; color: #4a4d52; border: 1px dashed #a9adb3; box-shadow: 0 10px 36px rgba(0, 0, 0, .2); font-family: system-ui; } .spk-box p { margin: 0 0 18px; font-size: .88rem; color: #4a4d52; }
.spk-x, .spk-b { position: absolute; top: 10px; border: 0; background: none; color: #55595f; cursor: pointer; padding: 4px; line-height: 1; } .spk-x { right: 12px; } .spk-b { left: 12px; font-size: 1.7rem; top: 4px; } .spk-x:hover, .spk-b:hover { color: #111; }
.spk-lay { display: flex; justify-content: center; gap: 34px; } .spk-lay button { display: grid; justify-items: center; gap: 8px; border: 0; background: none; color: #4a4d52; cursor: pointer; font: inherit; } .spk-lay small { font-size: .74rem; }
.spk-fx, .spk-gd { width: 68px; height: 68px; display: grid; gap: 3px; } .spk-fx { grid-template: 1fr 1fr / 2fr 1.4fr; } .spk-fx i { background: #d6d9dd; } .spk-fx i:first-child { grid-row: 1 / 3; } .spk-gd { grid-template: 1fr 1fr / 1fr 1fr; gap: 0; border: 1px dashed #b6bac0; } .spk-gd i { border: 1px dashed #cdd0d5; }
.spk-lay button:hover .spk-fx i { background: #c4c8cd; } .spk-lay button:hover .spk-gd { border-color: #888; }
.spk-st { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; } .spk-st button { border: 0; background: none; padding: 0; cursor: pointer; } .spk-st .smini { width: 70px; height: 34px; padding: 0; gap: 2px; border: 0; border-radius: 0; background: none; } .spk-st .smini i { background: #d6d9dd; border-radius: 0; min-height: 0; } .spk-st button:hover .smini i { background: #bfc4ca; } .spk-st .sarrow { color: #666; font-size: .9rem; }
/* panel flotante «Estructura» */
.lps { position: absolute; right: 12px; top: 12px; width: 272px; max-height: min(600px, calc(100% - 24px)); display: flex; flex-direction: column; z-index: 6; overflow: hidden; border-radius: 6px; background: var(--lp-d2); color: var(--lp-t1); box-shadow: 0 12px 44px rgba(0, 0, 0, .5); font-size: .78rem; color-scheme: dark; --text: #e6e8eb; --text-2: #aeb4bb; --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18); --hover: rgba(255, 255, 255, .06); --bg: var(--lp-d2); --glass: rgba(255, 255, 255, .05); --card-solid: var(--lp-d3); }
.lps-hd { flex: none; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; } .lps-hd b { font-size: .78rem; font-weight: 600; } .lps .ep-ib { width: 30px; height: 30px; }
.lps-b { flex: 1 1 auto; min-height: 60px; overflow: auto; padding: 2px 0 0; scrollbar-width: thin; }
.lps .lpb-item.tn { display: block; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tn-r { display: flex; align-items: center; gap: 3px; height: 30px; padding-right: 6px; cursor: pointer; color: var(--lp-t1); } .tn-r:hover { background: var(--lp-d3); } .tn.on > .tn-r { background: var(--lp-sel); color: #fff; }
.tn .grip { display: grid; place-items: center; width: 14px; color: var(--lp-t3); cursor: grab; } .tn .grip svg { width: 12px; height: 12px; }
.tn-c { width: 16px; height: 22px; border: 0; background: none; color: var(--lp-t3); font-size: .7rem; padding: 0; cursor: pointer; } .tn-c.nc { visibility: hidden; }
.tn .ti { display: grid; place-items: center; width: 18px; color: var(--lp-t2); background: none; } .tn .ti svg { width: 15px; height: 15px; } .tn .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tn .tx b { font-weight: 500; font-size: .78rem; }
.tn .acts { display: none; gap: 0; } .tn-r:hover .acts { display: flex; } .tn .acts button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; color: var(--lp-t3); cursor: pointer; padding: 0; } .tn .acts button:hover { color: #fff; } .tn .acts svg { width: 13px; height: 13px; } .tn.off > .tn-r .tx { opacity: .45; }
.tn-cell { font-size: .68rem; color: var(--lp-t3); padding: 5px 0 2px; text-transform: uppercase; letter-spacing: .06em; }
.lps-foot { display: flex; gap: 6px; padding: 10px 10px 8px; } .lps .btn.sm { background: var(--lp-d3); color: var(--lp-t1); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; } .lps .btn.sm:hover { background: var(--lp-sel); }
.lps-empty { display: grid; justify-items: center; gap: 10px; padding: 18px 16px 6px; text-align: center; color: var(--lp-t3); } .lps-empty svg { color: var(--lp-t3); } .lps-empty b { color: #fff; font-size: .9rem; line-height: 1.25; } .lps-empty p { margin: 0; font-size: .7rem; line-height: 1.45; }
.lps .lpb-ai { margin: 0; border-radius: 0; flex: none; }
@media (max-width: 1280px) { .lpv .lpb-body { grid-template-columns: 280px minmax(0, 1fr); } .spk { padding-right: 16px; } }
@media (max-width: 1024px) {
  .lpv .lpb-top { grid-template-columns: auto 1fr auto; height: auto; min-height: 44px; flex-wrap: wrap; padding: 0 6px 0 0; row-gap: 0; }
  .lpv .lpb-top .tc { order: 3; grid-column: 1 / -1; justify-content: space-between; padding: 0 8px 4px; } .lpv .lpb-top .lpb-name { width: 120px; max-width: 40vw; } .devs { height: 38px; } .devs button { height: 38px; width: 38px; }
  .lpv .lpb-tabs-m { display: flex; margin: 0; padding: 6px 8px; background: var(--bg); } .lpv .lpb-body { display: block; overflow: auto; position: relative; } .lpv .lpb-body[data-m="edit"] .lpb-mid { display: none; } .lpv .lpb-body[data-m="prev"] .lpb-left { display: none; } .lpv .lpb-left { max-height: none; height: 100%; border-right: 0; } .lpv .lpb-mid { height: 100%; } .lps { right: 8px; left: 8px; width: auto; top: 8px; }
  .spk { padding: 0 8px; top: 8px; } #save-st, .pubb svg { display: none; }
}

/* ───────── controles con íconos, formas de divisores y notas (paneles tipo Elementor) ───────── */
.ep .field.segf { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; } .ep .field.segf > label { margin: 0 !important; }
.ep .field.segf.wide { display: block !important; } .ep .field.segf.wide > label { margin-bottom: 6px !important; display: block; }
.seg-i { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; } .segf.wide .seg-i { display: flex; }
.seg-i button { width: 30px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; padding: 0; } .segf.wide .seg-i button { flex: 1; width: auto; } .seg-i button:last-child { border-right: 0; } .seg-i button:hover { color: var(--text); background: var(--hover); } .seg-i button.on { background: var(--brand); color: #fff; }
.ep .field.shapef { display: block !important; } .ep .field.shapef > label { display: block; margin-bottom: 6px !important; }
.shapes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .shp { height: 30px; padding: 0; border: 2px solid transparent; border-radius: 2px; background: none; cursor: pointer; overflow: hidden; } .shp svg { width: 100%; height: 100%; display: block; } .shp:hover { border-color: var(--line-strong); } .shp.on { border-color: var(--brand); }
.ep-note { margin: 2px 0 12px; padding: 10px 12px; border-left: 3px solid #f59e0b; background: rgba(245, 158, 11, .12); color: var(--text-2); font-size: .72rem; font-style: italic; line-height: 1.4; }
.ep-hint { margin: -4px 0 12px; font-size: .7rem; font-style: italic; color: var(--text-2); line-height: 1.4; }
.rsi { display: inline-grid; vertical-align: middle; margin-left: 6px; color: var(--text-2); opacity: .8; } .rsi svg { width: 13px; height: 13px; }
.pn-g .ptile small { text-transform: none; font-weight: 400; letter-spacing: 0; } .pn-g .ptile .pi { background: none; color: inherit; width: auto; border-radius: 0; box-shadow: none; }
.lps .tn .acts { display: none !important; } .lps .tn-r:hover .acts { display: flex !important; }
.spk-st { max-width: 560px; margin: 0 auto; }
.ep .sect-b .struct-cur, .ep .sect-b .cells-ed { margin-left: 0; margin-right: 0; }
.ep .field:has(> .dimc) { grid-template-columns: 34% minmax(0, 1fr); } .ep .dimc { min-width: 0; } .ep .dimc .dsl { min-width: 30px; width: auto; }
.frow-h { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 6px; font-size: .76rem; color: var(--text-2); } .ep .frow-h select { width: auto; min-width: 58px; min-height: 24px; padding: 1px 6px; font-size: .7rem; }
.ep .field.segf { flex-direction: row !important; }
.tn-r { position: relative; } .lps .tn .acts { position: absolute; right: 2px; top: 3px; bottom: 3px; align-items: center; background: var(--lp-d3); border-radius: 4px; padding: 0 2px; }
.lps #blist { display: block; } .lps .lpb-item.tn { display: block; width: 100%; box-sizing: border-box; } .lps .tn-r { width: 100%; box-sizing: border-box; }
.lps .lpb-item.tn { display: block !important; grid-template-columns: none; grid-template-areas: none; padding: 0; margin: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.lps .lpb-item.tn:hover { border: 0; }

/* ───────── colorimetría del CRM en el constructor ───────── */
.lpv { --lp-d1: #160a0c; --lp-d2: #1b0d0f; --lp-d3: #2a1416; --lp-sel: #3b161a; --lp-t1: #fff4ef; --lp-t2: #cbb3b0; --lp-t3: #8f7472; }
.lpv .ep-up, .lpv .ep-up:hover { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px var(--brand); }
.lpv .lps { --text: #fff4ef; --text-2: #cbb3b0; --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .17); --hover: rgba(255, 255, 255, .06); --bg: #160a0c; --glass: rgba(255, 255, 255, .05); --card-solid: #1b0d0f; background: var(--lp-d2); border: 1px solid rgba(255, 255, 255, .09); }
.lpv .tn.on > .tn-r { background: color-mix(in srgb, var(--brand) 24%, var(--lp-d2)); }
.lpv .seg-i button.on, .lpv .stg-t button.on { background: var(--grad); color: #fff; }
.lpv .spk-box { background: var(--bg); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow, 0 18px 50px -20px rgba(0, 0, 0, .5)); } .lpv .spk-box p, .lpv .spk-lay button { color: var(--text); } .lpv .spk-x, .lpv .spk-b { color: var(--text-2); } .lpv .spk-x:hover, .lpv .spk-b:hover { color: var(--text); }
.lpv .spk-fx i { background: color-mix(in srgb, var(--text) 24%, transparent); } .lpv .spk-gd, .lpv .spk-gd i { border-color: var(--line-strong); } .lpv .spk-st .smini i { background: color-mix(in srgb, var(--text) 24%, transparent); } .lpv .spk-st button:hover .smini i, .lpv .spk-lay button:hover .spk-fx i { background: color-mix(in srgb, var(--brand) 55%, transparent); } .lpv .spk-st .sarrow { color: var(--text-2); }
.ctxm { background: var(--glass-strong, #16090b); } .ctxm button:hover:not([disabled]), .ctxm button:focus-visible { background: var(--brand-soft); color: var(--brand); }
.lpv .hero-note, .lpv .ep-note { border-color: var(--brand-2); }
/* «Estructura»: abajo a la derecha, arrastrable desde su cabecera (doble clic = posición original) */
.lpv .lps { top: auto; bottom: 12px; right: 12px; } .lpv .lps-hd { cursor: grab; touch-action: none; user-select: none; } .lpv .lps.drag { box-shadow: 0 22px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px var(--brand); } .lpv .lps.drag .lps-hd { cursor: grabbing; }
@media (max-width: 1024px) { .lpv .lps { top: 8px; bottom: auto; } .lpv .lps-hd { cursor: default; } }
.lpv .spk { padding: 0 16px; }

/* ventana para elegir contenedor: centrada, con el fondo oscurecido y las estructuras en cuadrícula ordenada */
.lpv .spk { position: fixed; inset: 0; z-index: 140; display: none; place-items: center; padding: 20px; background: rgba(8, 3, 4, .68); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); pointer-events: auto; } .lpv .spk.on { display: grid; }
.lpv .spk-box { width: min(760px, 100%); padding: 30px 36px 36px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--glass-strong); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.lpv .spk-box p { margin: 0 0 24px; font-size: 1rem; font-weight: 600; }
.lpv .spk-lay { gap: 56px; } .lpv .spk-lay button { padding: 10px 14px; border-radius: 12px; } .lpv .spk-lay button:hover { background: var(--hover); }
.lpv .spk-st { display: grid; grid-template-columns: repeat(var(--c, 6), 84px); gap: 14px; justify-content: center; max-width: none; margin: 0 auto; } .lpv .spk-st button { width: 84px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 6px; } .lpv .spk-st .smini { width: 84px; height: 48px; padding: 0; }
.lpv .spk-st button:hover { outline: 2px solid var(--brand); outline-offset: 2px; }
.lpv .spk-x, .lpv .spk-b { top: 16px; } .lpv .spk-x { right: 18px; } .lpv .spk-b { left: 18px; top: 10px; }
@media (max-width: 760px) { .lpv .spk-st { grid-template-columns: repeat(4, 1fr); } .lpv .spk-st button, .lpv .spk-st .smini { width: 100%; } }
/* pie del panel: el botón GUARDAR con margen y sin desbordarse */
.lpv .ep-ft { padding: 8px 14px; gap: 0; } .lpv .ep-ft .ep-ib { width: 34px; height: 34px; } .lpv .ep-up { flex: none; height: 34px; padding: 0 20px; border-radius: 8px; margin-left: auto; }
/* íconos de la barra superior nítidos */
/* íconos a 24 px (escala 1:1 de su cuadrícula) con trazo de 2 px: caen justo sobre los píxeles y se ven nítidos */
.lpv .tb-b { width: 40px; height: 40px; } .lpv .tb-b svg, .lpv .devs button svg { width: 24px; height: 24px; stroke-width: 2; shape-rendering: geometricPrecision; }

/* ───────── ajustes de pulido (28 oct) ───────── */
/* interruptores sin texto interior: solo se ve apagado (gris, perilla a la izquierda) o encendido (color de la marca, perilla a la derecha) */
.ep .chk.epsw input.cb::before, .ep .chk.epsw input.cb:checked::before { content: none; display: none; }
.ep .chk.epsw input.cb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* lados enlazados/independientes: botón a la derecha de los cuatro campos y a su misma altura */
.ep .frow.quad { align-items: end; } .ep .frow.quad .input { height: 36px; box-sizing: border-box; } .ep .frow .lnk { height: 36px; width: 34px; align-self: end; margin-bottom: 0; } .ep .frow .lnk svg { width: 16px; height: 16px; }
/* Estructura: flechas de desplegar y de subir/bajar más grandes y claras */
.lps .tn-c { width: 20px; height: 24px; display: grid; place-items: center; color: var(--lp-t2); border-radius: 4px; } .lps .tn-c:hover { color: #fff; background: rgba(255, 255, 255, .08); } .lps .tn-c svg { width: 14px; height: 14px; stroke-width: 2.6; transition: transform .15s; } .lps .tn-c.open svg { transform: rotate(90deg); }
.lps .tn .acts button { width: 26px; height: 26px; border-radius: 5px; color: var(--lp-t2); } .lps .tn .acts button:hover { background: rgba(255, 255, 255, .12); color: #fff; } .lps .tn .acts svg { width: 16px; height: 16px; stroke-width: 2.2; shape-rendering: geometricPrecision; } .lps .tn .acts button[data-act="del"]:hover { color: #ff6b6b; }

/* ───────── selector de color: círculos, paleta, degradados y colores globales ───────── */
.clrf .clr-top { display: flex; gap: 8px; align-items: center; } .clrf .clr-top .input { flex: 1; min-width: 0; }
.clr-dot { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--c, transparent); border: 2px solid var(--line-strong); box-shadow: inset 0 0 0 2px var(--bg); cursor: pointer; overflow: hidden; }
.clr-dot.empty, .clr-dot[style*="--c:;"] { background: repeating-conic-gradient(#8884 0 25%, transparent 0 50%) 50% / 12px 12px; }
.clr-dot input { position: absolute; inset: -6px; width: 200%; height: 200%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.clr-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text-2); cursor: pointer; padding: 0; } .clr-x:hover { color: var(--brand); border-color: var(--brand); }
.clr-sec { margin: 10px 0 5px; font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3, var(--text-2)); font-weight: 700; }
.clr-pal { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.clr-pal button, .clr-g button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; display: grid; place-items: center; color: #fff; transition: transform .12s; } .clr-pal button:hover { transform: scale(1.15); }
.clr-pal button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.clr-pal.grad button { width: 30px; height: 30px; } .clr-pal.grad button.cus { color: #fff; }
.clr-g { position: relative; display: inline-grid; } .clr-g button { width: 28px; height: 28px; }
.clr-add { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line-strong) !important; background: none !important; box-shadow: none !important; color: var(--text-2) !important; } .clr-add:hover { color: var(--brand) !important; border-color: var(--brand) !important; }
.gc-row input[type=color] { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); padding: 0; overflow: hidden; cursor: pointer; background: none; } .gc-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .gc-row input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.gc-row .btn.sm { border-radius: 50%; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; }

/* celdas: arrastrar, mover, eliminar y añadir */
.cell-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .cell-row .cgrip { cursor: grab; display: grid; place-items: center; width: 18px; color: var(--text-3, var(--text-2)); } .cell-row .cgrip svg { width: 14px; height: 14px; }
.cell-row .cops { margin-left: auto; display: flex; gap: 2px; } .cell-row .cops button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; padding: 0; } .cell-row .cops button:hover:not(:disabled) { background: var(--hover); color: var(--brand); } .cell-row .cops button:disabled { opacity: .3; cursor: default; } .cell-row .cops svg { width: 14px; height: 14px; }
.cell-row.drag { opacity: .6; outline: 2px dashed var(--brand); border-radius: 8px; } .cells-ed .cnew { margin-top: 8px; width: 100%; justify-content: center; }
.clr-dot { display: block !important; width: 36px !important; height: 36px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box; }
.cell-row > .cops { order: 1; margin-left: auto; } .cell-row > :not(.cgrip):not(b):not(.cops) { order: 2; }

/* ───────── filas de color y tipografía con ventanitas (como Elementor) ───────── */
.ep .field.ecl { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; } .ep .field.ecl > label { margin: 0 !important; flex: 1; min-width: 0; }
.ecl-b { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; flex: none; } .ecl-btn, .ecl-sw { width: 30px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; } .ecl-btn + .ecl-btn, .ecl-btn + .ecl-sw { border-left: 1px solid var(--line-strong); }
.ecl-btn:hover { color: var(--text); background: var(--hover); } .ecl-btn.on { color: #fff; background: var(--brand); }
.ecl-sw::after { content: ''; width: 16px; height: 16px; border-radius: 3px; background: var(--c, transparent); box-shadow: 0 0 0 1px var(--line-strong); } .ecl-sw.empty::after { background: repeating-conic-gradient(#8886 0 25%, transparent 0 50%) 50% / 8px 8px; }
.tgr { margin: 0 0 14px; } .tgr-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--text-2); font-weight: 600; }
.tgr-b { display: none; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--text) 4%, transparent); } .tgr.open > .tgr-b { display: block; } .tgr-b .field:last-child, .tgr-b .frow:last-child { margin-bottom: 0; }
.ecp { position: fixed; z-index: 3000; background: #1b0d0f; color: #fff4ef; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7); font: 500 .76rem system-ui, sans-serif; }
.ecp-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); } .ecp-h b { font-size: .78rem; } .ecp-ic { display: inline-flex; gap: 2px; }
.ecp-i { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: #cbb3b0; cursor: pointer; font-size: 14px; padding: 0; } .ecp-i:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ecp-g { width: 224px; } .ecp-list { padding: 6px; max-height: 320px; overflow: auto; } .ecp-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; text-align: left; font: inherit; } .ecp-row:hover { background: rgba(255, 255, 255, .08); } .ecp-row.on { background: rgba(253, 5, 57, .22); }
.ecp-row i { width: 16px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); } .ecp-row i.f { box-shadow: none; font: 700 .8rem Georgia, serif; width: auto; } .ecp-row span { flex: 1; } .ecp-row small { color: #8f7472; font-size: .62rem; } .ecp-empty { padding: 12px; color: #8f7472; margin: 0; }
.ecp-p { width: 212px; padding-bottom: 12px; } .ecp-sv { position: relative; height: 118px; margin: 12px 12px 10px; border-radius: 4px; cursor: crosshair; touch-action: none; } .ecp-sv i, .ecp-hue i { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); transform: translate(-50%, -50%); pointer-events: none; }
.ecp-hue { position: relative; height: 10px; margin: 8px 12px 12px; border-radius: 6px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; touch-action: none; } .ecp-hue i { top: 50%; }
.ecp-val { display: flex; align-items: center; gap: 8px; padding: 0 12px; } .ecp-in { flex: 1; min-width: 0; height: 26px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; background: rgba(0, 0, 0, .3); color: #fff; font: 600 .7rem system-ui; } .ecp-md { display: inline-flex; gap: 6px; } .ecp-md button { border: 0; background: none; color: #8f7472; font: 700 .56rem system-ui; cursor: pointer; padding: 0; } .ecp-md button.on { color: #fff; }
.ep .field.ecl { flex-direction: row !important; align-items: center !important; } .ep .field.ecl > label { text-align: left !important; width: auto !important; display: block !important; }
.ecp-h b { white-space: nowrap; } .ecp-p { width: 232px; }
.tgr-b .field, .tgr-b .frow { margin-bottom: 10px; }

/* ───────── ventanita de color: transparencia, globales editables ───────── */
.ecp-alpha { position: relative; height: 10px; margin: 0 12px 12px; border-radius: 6px; background: repeating-conic-gradient(#8886 0 25%, transparent 0 50%) 50% / 8px 8px; cursor: pointer; touch-action: none; } .ecp-alpha u { position: absolute; inset: 0; border-radius: 6px; } .ecp-alpha i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); transform: translate(-50%, -50%); pointer-events: none; }
.ecp-gs { padding: 12px 12px 0; } .ecp-gs span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: #8f7472; margin-bottom: 6px; } .ecp-gs div { display: flex; flex-wrap: wrap; gap: 6px; } .ecp-gs button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; padding: 0; } .ecp-gs button:hover { transform: scale(1.15); }
.ecp-g { width: 270px; } .ecp-rw { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; } .ecp-rw:hover { background: rgba(255, 255, 255, .06); } .ecp-rw.on { background: rgba(253, 5, 57, .2); }
.ecp-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); cursor: pointer; padding: 0; }
.ecp-nm { flex: 1; min-width: 0; height: 24px; border: 1px solid transparent; border-radius: 4px; background: none; color: inherit; font: inherit; padding: 0 4px; } .ecp-nm:hover, .ecp-nm:focus { border-color: rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); outline: 0; }
.ecp-use { border: 0; background: none; color: #8f7472; font: 600 .62rem system-ui; cursor: pointer; padding: 2px 4px; border-radius: 4px; } .ecp-use:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ecp-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 16px); margin: 4px 8px 10px; height: 30px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 6px; background: none; color: #cbb3b0; font: 600 .72rem system-ui; cursor: pointer; } .ecp-add:hover { color: #fff; border-color: var(--brand, #fd0539); }
.ecp-i svg { width: 15px; height: 15px; }
/* Elementos › Widgets: íconos más grandes */
.pn-g .ptile { height: 98px !important; gap: 10px !important; } .pn-g .ptile .pi svg, .pn-g .ptile .pi img { width: 32px !important; height: 32px !important; } .pn-g .ptile .pi b { font-size: 1.6rem !important; line-height: 1; } .pn-g .ptile .pi { display: grid; place-items: center; height: 34px; }
.wghost { position: fixed; top: -200px; left: -200px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #1b0d0f; color: #fff4ef; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6), 0 0 0 2px #fd0539; font: 700 .85rem system-ui, sans-serif; z-index: 9999; transform: perspective(520px) rotateX(12deg) rotateZ(-3deg); } .wghost svg { width: 22px; height: 22px; }
.ecp-sub { padding: 8px 8px 4px; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #8f7472; font-weight: 700; }
.thc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; } .thc-i { display: grid; justify-items: center; gap: 2px; width: 54px; font-size: .62rem; } .thc-i i { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); } .thc-i b { font-weight: 600; } .thc-i small { color: var(--text-3, var(--text-2)); font-size: .54rem; }
/* colores globales en Ajustes/Globales: círculos completos y con el selector propio */
.gc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .gc-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--c); box-shadow: inset 0 0 0 2px var(--bg); cursor: pointer; padding: 0; }
.gc-row .gc-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text-2); display: grid; place-items: center; padding: 0; cursor: pointer; } .gc-row .gc-x:hover { color: var(--brand); border-color: var(--brand); } .gc-row .input { flex: 1; min-width: 0; }
/* Estructura: los subcontenedores se distinguen por nivel (franja de color a la izquierda) */
.lps .tn-r.d1 { box-shadow: inset 3px 0 0 #fd0539; } .lps .tn-r.d2 { box-shadow: inset 3px 0 0 #fc673c, inset 6px 0 0 #fd0539; } .lps .tn-r.d3, .lps .tn-r.d4 { box-shadow: inset 3px 0 0 #ffb199, inset 6px 0 0 #fc673c, inset 9px 0 0 #fd0539; }
.pp-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; } .pp-list li::marker { color: var(--brand); }

.ep .dimu .frow-h label { margin: 0; } .ep .ulab { font-size: .72rem; color: var(--text-2); padding-right: 8px; }
.ep .field.dimu { display: block; } .ep .field.dimu .frow-h { margin: 0 0 6px; } .ep .field.dimu .frow-h span:first-child { flex: 1; }

.lps-rs { position: absolute; left: 0; right: 0; top: 0; height: 9px; cursor: ns-resize; z-index: 4; touch-action: none; } .lps-rs:before { content: ''; position: absolute; left: 50%; top: 3px; width: 34px; height: 3px; margin-left: -17px; border-radius: 3px; background: rgba(255, 255, 255, .22); transition: background .15s; } .lps-rs:hover:before, .lps.drag .lps-rs:before { background: var(--brand, #fd0539); } @media (max-width: 1024px) { .lps-rs { display: none; } }

.rsi { cursor: pointer; } .rsi:hover { color: var(--brand, #fd0539); opacity: 1; }
.rs-pop { position: fixed; z-index: 2000; display: grid; gap: 2px; padding: 5px; border-radius: 8px; background: #1b0d0f; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); } .rs-pop button { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border: 0; border-radius: 6px; background: none; color: #d9c4c0; font: 600 .76rem inherit; cursor: pointer; text-align: left; white-space: nowrap; } .rs-pop button:hover { background: rgba(255, 255, 255, .08); color: #fff; } .rs-pop button.on { color: #fd0539; }

.lps .tn-cellrow .tx small { display: block; font-size: .62rem; color: var(--lp-t3); font-weight: 500; margin-top: -1px; } .lps .tn-cellrow .tx b { font-weight: 600; color: var(--lp-t2); } .lps .tn-cellrow.on .tx b { color: #fff; }

.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; } .ai-chip { border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); color: inherit; border-radius: 99px; padding: 4px 10px; font: 600 .72rem/1.2 inherit; cursor: pointer; } .ai-chip:hover { background: color-mix(in srgb, var(--brand) 24%, transparent); }
.dynb { border: 0; background: transparent; cursor: pointer; font-size: .8rem; margin-left: 6px; padding: 0 4px; border-radius: 6px; opacity: .55; }
.dynb:hover { opacity: 1; background: color-mix(in srgb, var(--brand) 14%, transparent); }
#dynm button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; }
.glb .glb-b { font-size: .8rem; font-weight: 600; color: var(--brand); align-self: center; }
.field:has(> .dynb){position:relative}.field > .dynb{position:absolute;right:0;top:-2px;margin:0}
/* círculos de color de cada estilo en «Plantillas»: el contenedor no debe heredar el .sw de los selectores de color */
.tpl-meta .sw { display: flex; flex-wrap: nowrap; gap: 6px; width: auto; height: auto; border: 0; border-radius: 0; overflow: visible; cursor: inherit; margin-top: 6px; }
.tpl-meta .sw:hover { transform: none; }
.tpl-meta .sw i { display: block; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 1px rgba(0,0,0,.35); }
/* tarjeta que flota bajo el cursor al arrastrar un accesorio desde la paleta (mismo efecto que en Proceso Comercial) */
.pghost { position: fixed; top: 0; left: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: linear-gradient(var(--field, #1b0d0f), var(--field, #1b0d0f)), var(--bg, #0e0506); color: var(--text, #fff4ef); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6), 0 0 0 2px var(--brand, #fd0539); font: 700 .85rem system-ui, sans-serif; pointer-events: none; z-index: 9999; will-change: transform; max-width: 260px; }
.pghost svg { width: 22px; height: 22px; } .pghost b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpv .ptile { touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
/* selector de «Diseño de la sección»: miniaturas con esquema de cada diseño */
.vfield > label { display: block; font-weight: 700; margin-bottom: 8px; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vopt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 12px; border: 1.5px solid var(--line-strong, rgba(255,255,255,.14)); background: transparent; color: var(--text-2, #cbb3b0); font: 600 .8rem system-ui, sans-serif; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.vopt svg { width: 100%; max-width: 84px; height: auto; } .vopt svg rect { fill: currentColor; opacity: .38; }
.vopt:hover { border-color: var(--brand, #fd0539); transform: translateY(-1px); }
.vopt.on { border-color: var(--brand, #fd0539); background: color-mix(in srgb, var(--brand, #fd0539) 14%, transparent); color: var(--text, #fff4ef); } .vopt.on svg rect { fill: var(--brand, #fd0539); opacity: .85; }
/* ───── Componentes › Globales: estilo visual, paleta, tipografía y formas ───── */
.gsec-h { margin: 22px 0 10px; } .gsec-h:first-child { margin-top: 4px; } .gsec-h b { display: block; font-size: 1rem; letter-spacing: .01em; } .gsec-h small { display: block; margin-top: 3px; color: var(--text-2, #cbb3b0); font-size: .78rem; line-height: 1.4; }
.thm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thm { display: flex; flex-direction: column; gap: 8px; padding: 7px 7px 9px; border-radius: 14px; border: 1.5px solid var(--line, rgba(255,255,255,.1)); background: transparent; color: var(--text, #fff4ef); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.thm > b { font-size: .78rem; font-weight: 700; padding: 0 3px; line-height: 1.2; }
.thm:hover { transform: translateY(-2px); border-color: var(--line-strong, rgba(255,255,255,.3)); } .thm.on { border-color: var(--brand, #fd0539); background: color-mix(in srgb, var(--brand, #fd0539) 12%, transparent); }
.thm-pv { position: relative; display: grid; gap: 4px; align-content: start; padding: 9px 9px 8px; height: 74px; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); }
.thm-pv i { display: block; border-radius: 3px; } .thm-t { width: 46%; height: 7px; } .thm-l { width: 82%; height: 4px; background: currentColor; opacity: .45; } .thm-l.s { width: 60%; opacity: .25; }
.thm-b { display: flex; gap: 4px; margin-top: 2px; } .thm-b u { display: block; width: 26px; height: 11px; border-radius: 99px; }
.thm-ck { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center; background: var(--brand, #fd0539); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.4); } .thm.on .thm-ck { display: grid; }
.pal-sub { margin: 16px 0 8px; font-weight: 700; font-size: .84rem; } .pal-sub small { font-weight: 400; color: var(--text-2, #cbb3b0); }
.pal-sug { display: flex; flex-wrap: wrap; gap: 6px; } .pal-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 99px; border: 1px solid var(--line-strong, rgba(255,255,255,.2)); background: transparent; color: var(--text, #fff4ef); font-size: .78rem; font-weight: 600; cursor: pointer; } .pal-chip i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.25); } .pal-chip:hover { border-color: var(--brand, #fd0539); }
.pal-box { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: color-mix(in srgb, var(--text, #fff) 3%, transparent); }
.pal-row { display: flex; align-items: center; gap: 8px; padding: 4px; min-width: 0; border-radius: 10px; } .pal-row:hover { background: color-mix(in srgb, var(--text, #fff) 5%, transparent); }
.pal-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); transition: transform .15s; } .pal-dot:hover { transform: scale(1.1); }
.pal-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pal-nm b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pal-nm small { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2, #cbb3b0); } .pal-nm .input { padding: 6px 9px; height: 34px; font-size: .84rem; }
.pal-hex { flex: 0 1 76px; min-width: 0; width: 76px; padding: 6px 4px; height: 34px; font: 600 .72rem ui-monospace, Consolas, monospace; text-transform: uppercase; text-align: center; }
.pal-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong, rgba(255,255,255,.2)); background: none; color: var(--text-2, #cbb3b0); display: grid; place-items: center; padding: 0; cursor: pointer; } .pal-x:hover:not(:disabled) { color: #fff; border-color: var(--brand, #fd0539); background: var(--brand, #fd0539); } .pal-x:disabled { opacity: .25; cursor: default; }
.pal-empty { margin: 4px 6px; font-size: .78rem; line-height: 1.4; }
.fnt-grid { display: grid; gap: 12px; } .fnt { padding: 12px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: color-mix(in srgb, var(--text, #fff) 3%, transparent); } .fnt > label { display: block; font-weight: 700; font-size: .82rem; margin-bottom: 7px; }
.fnt-s { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--text, #fff) 6%, transparent); overflow: hidden; } .fnt-s b { font-size: 1.9rem; line-height: 1; } .fnt-s span { font-size: .86rem; opacity: .8; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sld { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.1)); margin-bottom: 8px; } .sld-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; } .sld-h label { font-weight: 700; font-size: .82rem; } .sld-h b { font-size: .78rem; color: var(--brand, #fd0539); } .sld input[type=range] { width: 100%; } .sld small { display: block; margin-top: 4px; font-size: .72rem; }
