/* ══════════════════════════════════════════════════════════════════════
   LEVELUPERU · app.css — capa de producto del área de clientes (2026-11)
   ----------------------------------------------------------------------
   Se carga DESPUES de main.css y usa sus tokens (--bg, --bg2, --bg3,
   --border, --text-head, --text-body, --text-muted, --yellow,
   --yellow-ink, --yellow-bg, --green, --red, --blue, --r-sm...).
   Prefijo de clases: lx-  (nada de aqui depende de Bootstrap).
   Principios: una accion principal por pantalla, estado siempre visible,
   accesos directos a lo que el cliente usa (cPanel, pagar, soporte),
   superficies planas con una sola profundidad, movimiento sutil.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --lx-r: 16px; --lx-r-sm: 10px; --lx-gap: 16px;
  --lx-shadow: 0 1px 2px rgba(0,0,0,.18), 0 8px 24px -12px rgba(0,0,0,.35);
  --lx-ok: var(--green); --lx-warn: #F59E0B; --lx-err: var(--red);
  --lx-ok-bg: var(--green-bg); --lx-warn-bg: rgba(245,158,11,.12); --lx-err-bg: var(--red-bg);
  --lx-surface: var(--bg2); --lx-surface-2: var(--bg3);
  --lx-t: .18s cubic-bezier(.2,.7,.2,1);
}
:root[data-theme="light"] {
  --lx-shadow: 0 1px 2px rgba(10,10,10,.06), 0 10px 30px -16px rgba(10,10,10,.18);
  --lx-surface: #FFFFFF; --lx-surface-2: #F4F4F0;
  --lx-warn: #B45309; --lx-warn-bg: rgba(217,119,6,.12);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --lx-shadow: 0 1px 2px rgba(10,10,10,.06), 0 10px 30px -16px rgba(10,10,10,.18);
    --lx-surface: #FFFFFF; --lx-surface-2: #F4F4F0;
    --lx-warn: #B45309; --lx-warn-bg: rgba(217,119,6,.12);
  }
}

/* ── Página ───────────────────────────────────────────────────────── */
.lx-page { display: flex; flex-direction: column; gap: 22px; }
.lx-page *, .lx-page *::before, .lx-page *::after { box-sizing: border-box; }
.lx-page p { margin: 0; }

/* ── Hero de página ───────────────────────────────────────────────── */
.lx-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lx-hero-text { min-width: 0; }
.lx-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.lx-eyebrow .lx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-bg); }
.lx-title { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--text-head); margin: 0; }
.lx-title small { display: block; font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; margin-top: 6px; }
.lx-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Botones ──────────────────────────────────────────────────────── */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform var(--lx-t), background var(--lx-t), border-color var(--lx-t), color var(--lx-t), box-shadow var(--lx-t); line-height: 1; }
.lx-btn:active { transform: translateY(1px); }
.lx-btn svg, .lx-btn i { width: 16px; height: 16px; flex: none; font-size: 15px; }
.lx-btn-primary { background: var(--yellow) !important; color: #0A0A0A !important; border-color: var(--yellow) !important; box-shadow: 0 6px 18px -8px rgba(255,230,0,.6); }
.lx-btn-primary:hover { background: #E6CF00 !important; border-color: #E6CF00 !important; color: #0A0A0A !important; }
.lx-btn-dark { background: var(--text-head) !important; color: var(--bg) !important; border-color: var(--text-head) !important; }
.lx-btn-dark:hover { opacity: .9; }
.lx-btn-ghost { background: transparent !important; color: var(--text-head) !important; border-color: var(--border-hi) !important; }
.lx-btn-ghost:hover { border-color: var(--yellow-ink) !important; background: var(--yellow-bg) !important; color: var(--text-head) !important; }
.lx-btn-soft { background: var(--lx-surface-2) !important; color: var(--text-head) !important; border-color: transparent !important; }
.lx-btn-soft:hover { background: var(--bg4) !important; color: var(--text-head) !important; }
.lx-btn-danger { background: var(--lx-err-bg) !important; color: var(--lx-err) !important; border-color: transparent !important; }
.lx-btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.lx-btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.lx-btn-block { width: 100%; }
.lx-btn[disabled], .lx-btn.is-disabled { opacity: .45; pointer-events: none; }
.lx-btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* ── Tarjetas ─────────────────────────────────────────────────────── */
.lx-card { background: var(--lx-surface); border: 1px solid var(--border); border-radius: var(--lx-r); box-shadow: var(--lx-shadow); overflow: hidden; }
.lx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.lx-card-h h2, .lx-card-h h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.lx-card-h h2 i, .lx-card-h h3 i { color: var(--yellow-ink); }
.lx-card-h a { font-size: 12.5px; font-weight: 700; color: var(--yellow-ink); text-decoration: none; }
.lx-card-h a:hover { text-decoration: underline; }
.lx-card-b { padding: 16px 20px 20px; }
.lx-card-f { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--lx-surface-2); font-size: 12.5px; color: var(--text-muted); }
.lx-card.is-flat { box-shadow: none; }

/* ── Grid util ────────────────────────────────────────────────────── */
.lx-grid { display: grid; gap: var(--lx-gap); }
.lx-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.lx-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.lx-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.lx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .lx-layout { grid-template-columns: minmax(0, 1fr); } }
.lx-layout > *, .lx-stack, .lx-stack > *, .lx-service, .lx-service-actions { min-width: 0; }
@media (max-width: 900px) { .lx-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .lx-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .lx-grid-2, .lx-grid-3, .lx-grid-4 { grid-template-columns: minmax(0, 1fr); } .lx-title { font-size: 24px; } }

/* ── Estado (pill) ────────────────────────────────────────────────── */
.lx-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lx-pill-ok { background: var(--lx-ok-bg); color: var(--lx-ok); }
.lx-pill-warn { background: var(--lx-warn-bg); color: var(--lx-warn); }
.lx-pill-err { background: var(--lx-err-bg); color: var(--lx-err); }
.lx-pill-muted { background: var(--lx-surface-2); color: var(--text-muted); }
.lx-pill-info { background: var(--blue-bg); color: var(--blue); }

/* ── Banner de salud / alertas ────────────────────────────────────── */
.lx-health { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--lx-r); border: 1px solid var(--border); background: var(--lx-surface); }
.lx-health-ok { border-color: rgba(34,197,94,.3); }
.lx-health-warn { border-color: rgba(245,158,11,.4); }
.lx-health-err { border-color: rgba(239,68,68,.4); }
.lx-health-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 17px; }
.lx-health-ok .lx-health-ico { background: var(--lx-ok-bg); color: var(--lx-ok); }
.lx-health-warn .lx-health-ico { background: var(--lx-warn-bg); color: var(--lx-warn); }
.lx-health-err .lx-health-ico { background: var(--lx-err-bg); color: var(--lx-err); }
.lx-health-txt { flex: 1; min-width: 0; }
.lx-health-txt strong { display: block; color: var(--text-head); font-size: 14px; }
.lx-health-txt span { color: var(--text-muted); font-size: 12.5px; }
.lx-alerts { display: flex; flex-direction: column; gap: 8px; }
.lx-alert { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 13px; color: var(--text-head); border: 1px solid transparent; }
.lx-alert-warn { background: var(--lx-warn-bg); border-color: rgba(245,158,11,.25); }
.lx-alert-err { background: var(--lx-err-bg); border-color: rgba(239,68,68,.25); }
.lx-alert i { flex: none; }
.lx-alert-warn i { color: var(--lx-warn); } .lx-alert-err i { color: var(--lx-err); }
.lx-alert span { flex: 1; }
.lx-alert a { font-weight: 700; color: var(--text-head); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ── Señales (KPIs) ───────────────────────────────────────────────── */
.lx-signals { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 900px) { .lx-signals { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.lx-signal { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--lx-surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none !important; color: inherit; transition: border-color var(--lx-t), transform var(--lx-t); }
.lx-signal:hover { border-color: var(--yellow-ink); transform: translateY(-1px); }
.lx-signal-n { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--text-head); line-height: 1; }
.lx-signal-l { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.lx-signal-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; flex: none; background: var(--lx-surface-2); color: var(--text-head); }
.lx-signal.is-warn .lx-signal-ico { background: var(--lx-warn-bg); color: var(--lx-warn); }
.lx-signal.is-err .lx-signal-ico { background: var(--lx-err-bg); color: var(--lx-err); }
.lx-signal.is-ok .lx-signal-ico { background: var(--lx-ok-bg); color: var(--lx-ok); }

/* ── Tarjeta de servicio ──────────────────────────────────────────── */
.lx-services { display: grid; gap: 12px; }
.lx-service { background: var(--lx-surface); border: 1px solid var(--border); border-radius: var(--lx-r); padding: 18px 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 20px; align-items: center; transition: border-color var(--lx-t), box-shadow var(--lx-t); }
.lx-service:hover { border-color: var(--border-hi); box-shadow: var(--lx-shadow); }
.lx-service.is-suspended { border-color: rgba(239,68,68,.35); }
.lx-service-main { min-width: 0; display: flex; gap: 14px; align-items: center; }
.lx-service-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--lx-surface-2); display: grid; place-items: center; font-size: 18px; color: var(--text-head); flex: none; }
.lx-service.is-suspended .lx-service-ico { background: var(--lx-err-bg); color: var(--lx-err); }
.lx-service-t { min-width: 0; }
.lx-service-t .d { font-size: 16px; font-weight: 800; color: var(--text-head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 10px; }
.lx-service-t .p { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lx-service-t .p b { color: var(--text-body); font-weight: 600; }
.lx-service-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lx-due { font-size: 12px; font-weight: 700; }
.lx-due-soon { color: var(--lx-warn); } .lx-due-over { color: var(--lx-err); }
@media (max-width: 560px) { .lx-service-actions .lx-btn { flex: 1 1 auto; } }

/* ── Listas compactas (facturas, tickets, dominios) ───────────────── */
.lx-list { display: flex; flex-direction: column; }
.lx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); text-decoration: none !important; color: inherit; }
.lx-row:first-child { border-top: 0; }
.lx-row-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--lx-surface-2); display: grid; place-items: center; color: var(--text-head); font-size: 13px; flex: none; }
.lx-row-t { flex: 1; min-width: 0; }
.lx-row-t b { display: block; color: var(--text-head); font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-row-t span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.lx-row-r { text-align: right; flex: none; }
.lx-row-r b { display: block; color: var(--text-head); font-size: 13.5px; font-weight: 800; }
.lx-row-r span { font-size: 11.5px; color: var(--text-muted); }
.lx-empty { padding: 26px 16px; text-align: center; color: var(--text-muted); font-size: 13px; border: 1px dashed var(--border-hi); border-radius: 12px; }
.lx-empty i { display: block; font-size: 22px; margin-bottom: 8px; color: var(--yellow-ink); }
.lx-empty .lx-btn { margin-top: 12px; }

/* ── Acciones rápidas ─────────────────────────────────────────────── */
.lx-quick { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.lx-quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--lx-surface-2); color: var(--text-head); font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background var(--lx-t), transform var(--lx-t); }
.lx-quick a:hover { background: var(--yellow-bg); transform: translateY(-1px); }
.lx-quick a i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--lx-surface); color: var(--yellow-ink); font-size: 13px; flex: none; }

/* ── Anillo de uso (SVG) ──────────────────────────────────────────── */
.lx-ring { position: relative; width: 96px; height: 96px; }
.lx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lx-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.lx-ring .bg { stroke: var(--lx-surface-2); }
.lx-ring .fg { stroke: var(--yellow); transition: stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1); }
.lx-ring.is-warn .fg { stroke: var(--lx-warn); } .lx-ring.is-err .fg { stroke: var(--lx-err); }
.lx-ring-v { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--text-head); }
.lx-usage { display: flex; gap: 20px; align-items: center; }
.lx-usage-i { display: flex; align-items: center; gap: 14px; }
.lx-usage-i .l { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.lx-usage-i .n { font-size: 14px; color: var(--text-head); font-weight: 700; margin-top: 2px; }

/* ── Mosaico de accesos (cPanel) ──────────────────────────────────── */
.lx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lx-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: 12px; background: var(--lx-surface-2); color: var(--text-head); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none !important; border: 1px solid transparent; transition: border-color var(--lx-t), background var(--lx-t), transform var(--lx-t); cursor: pointer; }
.lx-tile:hover { border-color: var(--yellow-ink); background: var(--yellow-bg); transform: translateY(-1px); }
.lx-tile i { font-size: 18px; color: var(--yellow-ink); }

/* ── Chips de meta ────────────────────────────────────────────────── */
.lx-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lx-meta div { font-size: 12.5px; color: var(--text-muted); }
.lx-meta div b { display: block; color: var(--text-head); font-size: 14px; font-weight: 700; margin-top: 2px; }

/* ── Tabs simples ─────────────────────────────────────────────────── */
.lx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.lx-tabs a { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; white-space: nowrap; }
.lx-tabs a.active, .lx-tabs a:hover { color: var(--text-head); border-color: var(--yellow); }

/* ── Conversación (tickets) ───────────────────────────────────────── */
.lx-thread { display: flex; flex-direction: column; gap: 14px; }
.lx-msg { display: flex; gap: 12px; max-width: 86%; }
.lx-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.lx-msg-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; background: var(--lx-surface-2); color: var(--text-head); }
.lx-msg.is-staff .lx-msg-av { background: var(--yellow); color: #0A0A0A; }
.lx-msg-b { min-width: 0; }
.lx-msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.lx-msg.is-me .lx-msg-meta { justify-content: flex-end; }
.lx-msg-meta b { color: var(--text-head); font-weight: 700; }
.lx-msg-bubble { background: var(--lx-surface); border: 1px solid var(--border); border-radius: 16px; border-top-left-radius: 6px; padding: 12px 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-body); overflow-wrap: anywhere; }
.lx-msg.is-me .lx-msg-bubble { border-top-left-radius: 16px; border-top-right-radius: 6px; background: var(--yellow-bg); border-color: rgba(255,230,0,.35); color: var(--text-head); }
.lx-msg.is-staff .lx-msg-bubble { background: var(--lx-surface); }
.lx-msg-bubble p { margin: 0 0 8px; } .lx-msg-bubble p:last-child { margin: 0; }
.lx-msg-bubble a { color: var(--yellow-ink); }
.lx-attach { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lx-attach a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--lx-surface-2); font-size: 12px; font-weight: 600; color: var(--text-head); text-decoration: none !important; }
.lx-composer { position: sticky; bottom: 12px; background: var(--lx-surface); border: 1px solid var(--border-hi); border-radius: var(--lx-r); box-shadow: var(--lx-shadow); padding: 12px; }
.lx-composer textarea { width: 100%; min-height: 110px; resize: vertical; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 8px !important; font-size: 14px !important; color: var(--text-head) !important; }
.lx-composer textarea:focus { outline: none; }
.lx-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.lx-composer-bar .lx-file { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.lx-composer-bar input[type="file"] { font-size: 12px; color: var(--text-muted); max-width: 260px; }
.lx-status-strip { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.lx-status-strip b { color: var(--text-head); }

/* ── Formularios ──────────────────────────────────────────────────── */
.lx-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lx-field label { font-size: 12.5px; font-weight: 700; color: var(--text-head); }
.lx-field .hint { font-size: 11.5px; color: var(--text-muted); }
.lx-field input, .lx-field select, .lx-field textarea { width: 100%; }
.lx-choice { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.lx-choice a, .lx-choice label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--lx-surface); color: var(--text-head); text-decoration: none !important; cursor: pointer; transition: border-color var(--lx-t), background var(--lx-t), transform var(--lx-t); }
.lx-choice a:hover, .lx-choice label:hover { border-color: var(--yellow-ink); background: var(--yellow-bg); transform: translateY(-1px); }
.lx-choice i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--lx-surface-2); color: var(--yellow-ink); font-size: 15px; flex: none; }
.lx-choice b { display: block; font-size: 14px; font-weight: 800; }
.lx-choice span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lx-seg { display: inline-flex; background: var(--lx-surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.lx-seg label { padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; margin: 0; }
.lx-seg input { display: none; }
.lx-seg input:checked + span, .lx-seg label.active { background: var(--lx-surface); color: var(--text-head); box-shadow: 0 1px 2px rgba(0,0,0,.15); border-radius: 8px; }
.lx-seg label span { display: block; padding: 7px 12px; margin: -7px -12px; border-radius: 8px; }

/* ── Tabla limpia (facturas) ──────────────────────────────────────── */
.lx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lx-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.lx-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--text-body); vertical-align: middle; }
.lx-table tr:last-child td { border-bottom: 0; }
.lx-table tr:hover td { background: var(--lx-surface-2); }
.lx-table td b { color: var(--text-head); font-weight: 700; }
.lx-table .r { text-align: right; }
@media (max-width: 640px) { .lx-table thead { display: none; } .lx-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--border); } .lx-table td { border: 0; padding: 2px 8px; } .lx-table td.r { text-align: right; } }

/* ── Utilidades ───────────────────────────────────────────────────── */
.lx-muted { color: var(--text-muted); }
.lx-strong { color: var(--text-head); font-weight: 700; }
.lx-sep { height: 1px; background: var(--border); margin: 14px 0; }
.lx-stack { display: flex; flex-direction: column; gap: var(--lx-gap); }
.lx-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lx-hide-sm { }
@media (max-width: 560px) { .lx-hide-sm { display: none !important; } .lx-hero-actions .lx-btn { flex: 1 1 100%; } }
/* Ocultar el "Powered by WHMCompleteSolution" solo si la licencia lo permite: se deja visible. */
.lx-page + .powered-by { font-size: 11px; }
/* WHMCS pone el contenido en .main-content (six); el shell del tema lo
   envuelve en .lvl-main. Las páginas lx no quieren la tarjeta blanca
   externa que main.css da a .page-body > .lvl-main > *. */
.lvl-main > .lx-page { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* ── Shell: las páginas lx ocupan todo el ancho (sin el sidebar de WHMCS) ── */
.lvl-content-wrap.has-sidebar:has(> .lvl-main > .lx-page) > .lvl-sidebar { display: none; }
.lvl-content-wrap:has(> .lvl-main > .lx-page) { display: block; }
/* Las tarjetas de servicio se apilan según el ancho de su contenedor */
.lx-services { container-type: inline-size; }
@container (max-width: 760px) {
  .lx-service { grid-template-columns: minmax(0, 1fr); }
  .lx-service-actions { justify-content: flex-start; }
}
.lx-service-t .d { white-space: normal; }

/* ── Módulo cPanel dentro de la tarjeta "Herramientas" ───────────── */
.lx-module #cPanelPackagePanel, .lx-module #cPanelUsagePanel { display: none !important; }
.lx-module .row { margin: 0; }
.lx-module [class*="col-"] { padding: 0; width: 100%; float: none; }
.lx-module .panel, .lx-module .card { background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 0 0 18px !important; }
.lx-module .panel-heading, .lx-module .card-header { background: transparent !important; border: 0 !important; padding: 0 0 10px !important; }
.lx-module .panel-title { font-size: 12px !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted) !important; }
.lx-module .panel-body, .lx-module .card-body { padding: 0 !important; background: transparent !important; }
/* accesos directos del módulo → mosaico */
.lx-module .panel-body > .row, .lx-module .card-body > .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lx-module .panel-body > .row > [class*="col-"] { width: auto; }
.lx-module .panel-body > .row > [class*="col-"] > a,
.lx-module .panel-body > .row > [class*="col-"] > form button,
.lx-module .panel-body > .row > [class*="col-"] > .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px !important; border-radius: 12px !important; background: var(--lx-surface-2) !important; border: 1px solid transparent !important; color: var(--text-head) !important; font-size: 12px !important; font-weight: 700 !important; text-align: center; text-decoration: none !important; height: 100%; }
.lx-module .panel-body > .row > [class*="col-"] > a:hover { border-color: var(--yellow-ink) !important; background: var(--yellow-bg) !important; }
.lx-module .panel-body > .row > [class*="col-"] > a img { width: 28px; height: 28px; object-fit: contain; }
.lx-module .panel-body > .row > [class*="col-"] > a i { font-size: 18px; color: var(--yellow-ink); }
.lx-module .btn-primary, .lx-module .btn-success { background: var(--yellow) !important; border-color: var(--yellow) !important; color: #0A0A0A !important; }
.lx-module .form-control { max-width: 100%; }
.lx-module #cPanelWordPress .row { display: block; }
body:has(.lx-page) .lvl-page-head { display: none; }
.lx-module form[action="clientarea.php"] input.modulebutton { display: none; } /* botones de login del módulo: ya están en el hero */
.lx-module .alert { border-radius: 12px; }
#tabChangepw .progress { height: 6px; border-radius: 999px; background: var(--lx-surface-2); box-shadow: none; margin: 8px 0 0; }
#tabChangepw .alert-info { background: var(--lx-surface-2) !important; border: 0 !important; color: var(--text-muted) !important; font-size: 12px !important; padding: 10px 12px !important; border-radius: 10px !important; margin: 10px 0 0 !important; }
#tabChangepw .alert-info code { background: var(--lx-surface); color: var(--text-head); border-radius: 4px; padding: 1px 4px; }
#tabChangepw br { display: none; }
.lx-module > .row { display: flex; flex-direction: column; }
.lx-module #cPanelExtrasPurchasePanel { order: 9; }
.lx-module .panel-body.text-center, .lx-module .card-body.text-center { text-align: left !important; }
.lx-module .mx-auto { margin: 0 !important; }
.lx-module .panel-body > .row > [class*="col-"]:empty { display: none; }
/* ── Tickets: valoración y editor markdown dentro de la burbuja/compositor ── */
.lx-rate { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.lx-rate .rating, .lx-rate .rating-done { display: inline-flex; direction: rtl; }
.lx-rate .star { width: 16px; height: 16px; cursor: pointer; opacity: .45; }
.lx-rate .star:hover, .lx-rate .star:hover ~ .star, .lx-rate .star.active { opacity: 1; }
.lx-composer .markdown-editor-status, .lx-composer .editor-toolbar { border-radius: 10px; }
.lx-composer .CodeMirror { border: 0; background: transparent; min-height: 120px; color: var(--text-head); }
.lx-msg-bubble img { max-width: 100%; height: auto; border-radius: 8px; }
.lx-msg-bubble pre, .lx-msg-bubble code { background: var(--lx-surface-2); border-radius: 6px; font-size: 12.5px; }
.lx-msg-bubble blockquote { border-left: 3px solid var(--yellow); margin: 8px 0; padding: 4px 12px; color: var(--text-muted); }
.lx-thread .markdown-content .message > p:first-child { margin-top: 0; }
#lx-ticket-form .well { background: var(--lx-surface-2); border: 0; border-radius: 12px; padding: 14px; }
.lx-rate .star::before { content: "\2605"; font-size: 15px; color: var(--yellow-ink); line-height: 1; }
.lx-rate .star { width: auto; height: auto; }
.lx-status-strip { gap: 8px 14px; }
@media (max-width: 760px) { .lx-composer { position: static; } .lx-msg { max-width: 100%; } }

.lx-card-h { flex-wrap: wrap; }
.lx-card-h h2, .lx-card-h h3 { white-space: nowrap; }
.lx-service-t .d { flex-wrap: wrap; }
.lx-module #cPanelBillingOverviewPanel { display: none !important; }
#tabChangepw .alert-info { display: block !important; }
#tabChangepw .alert-info strong { display: inline; font-weight: 700; }
.lx-module #cPanelQuickEmailPanel .form-control { margin-bottom: 8px; }
#tabChangepw.lx-card { max-width: none !important; width: auto !important; margin: 0 !important; }

/* Carrito en la barra: contador (3-nov-2026) */
.nav-icon-btn { position: relative; }
.nav-cart-count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #FFE600; color: #0A0A0A; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; pointer-events: none; }

/* ── Personas (3-nov-2026): login con foto, tarjeta humana en el panel ── */
.auth-brand { background-image: linear-gradient(165deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.82) 55%, rgba(13,14,16,.97) 100%), url(../img/people/p9.jpg?v=2); background-size: cover; background-position: 60% 30%; }
.auth-brand::before { display: none; }
.auth-brand h2, .auth-brand p, .auth-brand-content div { color: #fff !important; }
.auth-brand-content i { color: #FFE600 !important; }
.auth-brand-logo span { color: rgba(255,255,255,.85) !important; }

.lx-people { display: grid; grid-template-columns: 150px 1fr; gap: 0; overflow: hidden; }
.lx-people img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; object-position: center 30%; display: block; }
.lx-people-b { padding: 18px 20px; }
.lx-people-b h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: var(--text-head); }
.lx-people-b p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.lx-people-b .lx-btn { margin-right: 6px; }
@media (max-width: 560px) { .lx-people { grid-template-columns: minmax(0, 1fr); } .lx-people img { min-height: 0; height: 150px; } }

/* Login en móvil: banda corta con la foto en vez de ocultarla (3-nov-2026) */
@media (max-width: 700px) {
  .auth-layout { min-height: auto; }
  .auth-brand { display: flex !important; min-height: 210px; padding: 20px 22px; border-right: 0; border-bottom: 1px solid var(--border); background-position: 55% 25%; }
  .auth-brand h2 { font-size: 22px; }
  .auth-brand p { font-size: 13px; }
  .auth-brand-content > div { display: none !important; }
  .auth-form-pane { align-items: flex-start; padding: 28px 22px 40px; }
}
@media (max-width: 560px) { .lx-row-t b { white-space: normal; } .lx-row { flex-wrap: wrap; } }
/* Bootstrap 3 mete ::before/::after (display:table) en .row; dentro de una grilla ocupan una celda */
.cpanel-feature-row::before, .cpanel-feature-row::after, .lx-module .row::before, .lx-module .row::after { display: none !important; content: none !important; }
