/* ==========================================================================
   GREEN TAG CONSTRUCTION — NEO-BENTO LIME & CARBON WORKSPACE (FULL)
   ========================================================================== */
:root {
  --canvas: #f2f3f5;
  --surface: #ffffff;
  --carbon: #111214;
  --carbon-soft: #1e2024;
  --lime: #d2ff52;
  --lime-hover: #c5f73b;
  --ink: #141518;
  --muted: #7c8089;
  --line: #e4e6eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.035);
}

*, *::before, *::after { box-sizing: border-box; }
body, body * { font-size: 13.5px !important; }
body {
  margin: 0 !important;
  background: var(--canvas) !important;
  color: var(--ink) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* --- LOGIN SCREEN MINIMALISTA CENTRADO --- */
.auth-screen[hidden],
.app-shell[hidden],
.password-recovery[hidden],
.auth-form[hidden] {
  display: none !important;
}

.auth-screen {
  min-height: 100vh !important;
  width: 100% !important;
  background: #fafafa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.auth-card {
  width: 100% !important;
  max-width: 410px !important;
  background: #ffffff !important;
  border: 1px solid #efefef !important;
  border-radius: 28px !important;
  padding: 44px 36px 36px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.auth-icon-box {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid #f0f0f2 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
  padding: 10px !important;
}

.auth-icon-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.auth-heading {
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  color: #111214 !important;
  margin: 0 0 8px !important;
}

.auth-sub {
  font-size: 13px !important;
  color: #8e929b !important;
  margin: 0 0 26px !important;
  line-height: 1.45 !important;
}

.auth-sub strong {
  color: #141518 !important;
  font-weight: 600 !important;
}

.auth-form {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
}

.auth-input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  border: 1px solid #e6e8ec !important;
  background: #ffffff !important;
  color: #141518 !important;
  font-size: 13.5px !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.auth-input::placeholder { color: #a1a5ae !important; }
.auth-input:focus {
  border-color: #141518 !important;
  box-shadow: 0 0 0 3px rgba(210, 255, 82, 0.45) !important;
}

.auth-btn-black {
  width: 100% !important;
  height: 44px !important;
  margin-top: 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #0a0a0c !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, background 0.15s ease !important;
}

.auth-btn-black:hover {
  background: #1c1e22 !important;
  transform: translateY(-1px);
}

.auth-text-link {
  margin-top: 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: #141518 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.auth-text-link:hover { text-decoration: underline !important; }

.auth-divider {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 22px 0 18px !important;
  color: #b4b8c2 !important;
  font-size: 11.5px !important;
}
.auth-divider::before,
.auth-divider::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: #ededf0 !important;
}

.auth-error {
  color: #dc2626 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.auth-error:empty { display: none !important; }

.auth-legal {
  font-size: 11px !important;
  color: #a1a5ae !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.password-recovery { width: 100% !important; }

/* --- UTILIDADES GENERALES --- */
.empty-state { display: none !important; }
.empty-state.show {
  display: block !important;
  background: var(--surface) !important;
  border: 1px dashed var(--line) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  text-align: center !important;
  margin-top: 8px !important;
}

.page { display: none !important; }
.page.active { display: block !important; }

.toast {
  position: fixed !important;
  bottom: 24px !important;
  right: 28px !important;
  left: auto !important;
  background: #141518 !important;
  color: #d2ff52 !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
  transition: all 0.2s ease !important;
  z-index: 9999 !important;
}
.toast.show { opacity: 1 !important; transform: translateY(0) !important; }
.toast.error { background: #991b1b !important; color: #ffffff !important; }

/* --- TOPBAR CON PÍLDORA YOUR SCHEDULE --- */
.neo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px 6px;
  max-width: 1680px;
  margin: 0 auto;
}

.neo-brand img { height: 34px; width: auto; object-fit: contain; display: block; }

.schedule-pill-bar {
  flex: 1;
  max-width: 980px;
  height: 50px;
  background: var(--carbon);
  border-radius: 999px;
  padding: 5px 7px 5px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(17, 18, 20, 0.14);
}

.schedule-pill-left { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sched-title { color: #ffffff; font-weight: 500; font-size: 14px !important; }
.sched-date-chip { background: rgba(255, 255, 255, 0.1); color: #d4d6dc; padding: 4px 10px; border-radius: 999px; font-size: 12px !important; }

.schedule-lime-track {
  flex: 1;
  height: 38px;
  background: var(--lime);
  border-radius: 999px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.15s ease;
}
.schedule-lime-track:hover { background: var(--lime-hover); }

.lime-slot { display: flex; align-items: center; gap: 8px; color: var(--carbon); font-weight: 600; font-size: 12.5px !important; white-space: nowrap; }
.lime-slot.active-now { background: rgba(255, 255, 255, 0.55); padding: 4px 12px; border-radius: 999px; }
.now-badge { background: var(--carbon); color: var(--lime); font-size: 10.5px !important; padding: 2px 7px; border-radius: 999px; }
.mini-av { width: 22px; height: 22px; border-radius: 50%; background: #ffffff; color: var(--carbon); font-size: 10.5px !important; font-weight: 700; display: grid; place-items: center; }
.mini-av.dark { background: var(--carbon); color: #fff; }
.sched-expand-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--carbon-soft); color: #fff; display: grid; place-items: center; flex: 0 0 36px; }

.neo-top-right { display: flex; align-items: center; gap: 10px; }
.neo-circle-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.neo-circle-btn em { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }

.neo-user-pill .avatar, #top-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  background: var(--carbon) !important;
  color: var(--lime) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- RIEL LATERAL CONSTANTE --- */
.neo-body { display: flex; gap: 22px; padding: 14px 28px 30px; max-width: 1680px; margin: 0 auto; }
.neo-rail { width: 54px; flex: 0 0 54px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding-top: 72px; }
.rail-group, .rail-bottom { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #6b7280 !important; display: grid; place-items: center; transition: all 0.15s ease; }
.rail-btn svg { width: 18px !important; height: 18px !important; stroke: currentColor !important; fill: none !important; stroke-width: 1.75 !important; stroke-linecap: round !important; stroke-linejoin: round !important; transition: transform 0.15s ease; }
.rail-btn:hover { background: #f3f4f6 !important; color: #141518 !important; }
.rail-btn:hover svg { transform: scale(1.06); }
.rail-btn.active { background: #141518 !important; color: #d2ff52 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important; }
.neo-main { flex: 1; min-width: 0; }

/* --- BOTONES DIVIDIDOS CON CORTE DIAGONAL --- */
.button.primary.dark-cta,
.new-task-pill,
.new-lead-outline-pill,
.cal-add-btn,
.nlm-btn-save,
.tm-add-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  padding: 0 48px 0 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1c2222 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 16px rgba(28, 34, 34, 0.14) !important;
  overflow: visible !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.button.primary.dark-cta::before,
.new-task-pill::before,
.new-lead-outline-pill::before,
.cal-add-btn::before,
.nlm-btn-save::before,
.tm-add-btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 33px;
  width: 10px;
  height: 100%;
  background: inherit;
  transform: skewX(-14deg);
  border-radius: 0 6px 6px 0;
  pointer-events: none;
}

.button.primary.dark-cta::after,
.new-task-pill::after,
.new-lead-outline-pill::after,
.cal-add-btn::after,
.nlm-btn-save::after,
.tm-add-btn::after {
  content: "→";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 100%;
  background: #d2ff52;
  color: #1c2222;
  font-size: 14px !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 12px 12px 6px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  transition: transform 0.15s ease, background 0.15s ease;
}

.new-lead-outline-pill {
  background: #d2ff52 !important;
  color: #1c2222 !important;
  box-shadow: 0 6px 16px rgba(210, 255, 82, 0.25) !important;
}
.new-lead-outline-pill::after {
  background: #1c2222 !important;
  color: #ffffff !important;
}

.button.primary.dark-cta:hover,
.new-task-pill:hover,
.new-lead-outline-pill:hover,
.cal-add-btn:hover,
.nlm-btn-save:hover,
.tm-add-btn:hover {
  transform: translateY(-1px);
}

.button.primary.dark-cta:hover::after,
.new-task-pill:hover::after,
.new-lead-outline-pill:hover::after,
.cal-add-btn:hover::after,
.nlm-btn-save:hover::after,
.tm-add-btn:hover::after {
  transform: translateX(2px);
}

/* --- HERO WORKSPACE --- */
.workspace-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 6px 0 24px; }
.hero-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.back-circle-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.hero-title { font-size: 36px !important; font-weight: 400 !important; letter-spacing: 0.5px; margin: 0; color: var(--ink); }
.hero-kpis { display: flex; align-items: center; gap: 28px; }
.hero-kpi { display: flex; align-items: center; gap: 8px; }
.hero-kpi > strong { font-size: 38px !important; font-weight: 400 !important; letter-spacing: -1px; line-height: 1; }
.kpi-meta { display: flex; flex-direction: column; gap: 2px; }
.kpi-meta small { color: var(--muted); font-size: 12px !important; }
.kpi-badge { font-size: 10px !important; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.kpi-badge.green { background: #dcfce7; color: #15803d; }
.kpi-badge.lime { background: var(--lime); color: var(--carbon); }
.kpi-badge.coral { background: #fee2e2; color: #b91c1c; }

/* --- BENTO DASHBOARD & WIDGETS --- */
.bento-section { margin-bottom: 24px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.section-title-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-title-group h2 { font-size: 20px !important; font-weight: 500 !important; margin: 0; }
.count-underline { color: var(--muted); border-bottom: 1px solid #c4c7ce; padding-bottom: 1px; font-size: 13px !important; }
.inline-search-chip { height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; color: var(--muted); }
.inline-search-chip input { border: 0; outline: 0; background: transparent; width: 130px; }
.filter-pills-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.f-pill { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.75); color: var(--muted); font-size: 12px !important; font-weight: 500; }
.f-pill.active { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); }

.leads-cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.neo-lead-card { background: var(--surface); border-radius: 22px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.lead-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lead-card-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f0f2f5; color: var(--carbon); font-weight: 700; display: grid; place-items: center; }
.card-arrow-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fafafa; color: var(--ink); display: grid; place-items: center; }
.neo-lead-card h3 { font-size: 16px !important; font-weight: 600 !important; margin: 0 0 4px; color: var(--ink); }
.lead-card-sub { color: var(--muted); font-size: 12px !important; margin: 0 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.source-chip { background: #f3f4f6; color: var(--ink); padding: 4px 10px; border-radius: 999px; font-size: 11px !important; font-weight: 500; }
.interest-dots { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.interest-dots small { font-size: 10.5px !important; color: var(--muted); }
.dots-row { display: flex; gap: 3px; }
.dots-row i { width: 7px; height: 7px; border-radius: 50%; background: #e5e7eb; display: block; }
.dots-row i.on { background: #f59e0b; }
.dots-row i.on.hot { background: #22c55e; }

.bento-widgets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.neo-widget-card { background: #ffffff; border: 1px solid #e4e6eb; border-radius: 24px; padding: 20px 22px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.035); display: flex; flex-direction: column; gap: 16px; }
.nw-head { display: flex; align-items: baseline; justify-content: space-between; }
.nw-head h3 { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.3px; margin: 0; color: #141518; }
.nw-count { font-size: 13px !important; font-weight: 500; color: #8e929b; }
.nw-list { display: grid; gap: 14px; }
.nw-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 12px; border-left: 3px solid #141518; cursor: pointer; transition: transform 0.12s ease; }
.nw-item:hover { transform: translateX(2px); }
.nw-item.lime-bar { border-left-color: #84cc16; }
.nw-item.blue-bar { border-left-color: #3b82f6; }
.nw-item.amber-bar { border-left-color: #f59e0b; }
.nw-item-main { min-width: 0; }
.nw-item-main strong { display: block; font-size: 13.5px !important; font-weight: 600; color: #141518; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-item-main small { display: block; font-size: 12px !important; color: #8e929b; margin-top: 2px; }
.nw-item-right { text-align: right; white-space: nowrap; flex: 0 0 auto; }
.nw-item-right span { display: block; font-size: 11.5px !important; font-weight: 600; color: #6b7280; }
.nw-item-right small { display: block; font-size: 11px !important; color: #9ca3af; }
.nw-empty { font-size: 12.5px !important; color: #9ca3af; padding: 8px 0; }

.tasks-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.neo-task-card { background: var(--surface); border-radius: 24px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.neo-task-card.is-lime { background: var(--lime); border-color: #c2f042; }
.task-card-header { display: flex; align-items: center; justify-content: space-between; }
.task-assignee-info { display: flex; align-items: center; gap: 10px; }
.task-assignee-info strong { display: block; font-size: 13.5px !important; }
.task-assignee-info small { display: block; font-size: 11.5px !important; opacity: 0.7; }
.task-card-body h4 { font-size: 17px !important; font-weight: 600 !important; margin: 0 0 6px; }
.task-card-meta { font-size: 12px !important; opacity: 0.75; }
.task-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255, 255, 255, 0.75); padding: 8px 12px; border-radius: 16px; }
.task-status-pill { border: 0; background: transparent; font-weight: 600; color: var(--ink); cursor: pointer; }
.task-done-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--carbon); color: var(--lime); display: grid; place-items: center; }

.weather-strip-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; padding-bottom: 18px; }
.weather-mini-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-height: 74px; padding: 14px 22px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; }
.weather-mini-box small { display: block; font-size: 10.5px !important; color: var(--muted); font-weight: 600; }
.weather-mini-box > div:first-child strong { display: block; font-size: 15px !important; margin-top: 3px; }
.weather-mini-box .weather-reading { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.weather-mini-box .weather-reading strong { font-size: 24px !important; font-weight: 600; }

/* --- LEADS DIRECTORY & WORK ORDERS --- */
.ld-board { background: #ffffff; border-radius: 26px; border: 1px solid #e4e6eb; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035); padding: 24px 28px 20px; }
.ld-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ld-title-wrap { display: flex; align-items: center; gap: 10px; }
.ld-title-wrap h1 { font-size: 24px !important; font-weight: 600 !important; letter-spacing: -0.5px; margin: 0; color: #141518; }
.ld-more-dots, .ld-info-badge { color: #8e929b; font-size: 13px !important; }
.ld-info-badge { width: 22px; height: 22px; border-radius: 50%; background: #f3f4f6; display: inline-grid; place-items: center; }
.ld-tabs-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef0f4; margin-bottom: 16px; }
.ld-tabs { display: flex; align-items: center; gap: 18px; }
.ld-tab { border: 0; background: transparent; padding: 10px 4px; color: #7c8089; font-weight: 500; font-size: 13px !important; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ld-tab.active { color: #141518; font-weight: 600; border-bottom-color: #141518; }
.ld-view-meta { color: #8e929b; font-size: 12.5px !important; }
.ld-filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ld-filter-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ld-search-box { height: 36px; width: 230px; padding: 0 12px; background: #f6f7f9; border: 1px solid #eceef2; border-radius: 9px; display: flex; align-items: center; gap: 8px; color: #7c8089; }
.ld-search-box input { border: 0; outline: 0; background: transparent; width: 100%; color: #141518; }
.ld-status-dropdown { position: relative; }
.ld-drop-trigger, .ld-select-pill, .ld-manage-pill { height: 36px; padding: 0 13px; background: #ffffff; border: 1px solid #e4e6eb; border-radius: 9px; color: #141518; font-weight: 500; font-size: 12.5px !important; display: inline-flex; align-items: center; gap: 8px; outline: 0; }
.ld-drop-menu { position: absolute; top: 42px; left: 0; width: 210px; background: #ffffff; border: 1px solid #e4e6eb; border-radius: 14px; padding: 8px; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12); z-index: 40; display: grid; gap: 4px; }
.ld-drop-menu[hidden] { display: none !important; }
.ld-check-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 12.5px !important; font-weight: 500; color: #1f2937; }
.ld-check-item:hover { background: #f5f6f8; }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ld-dot.blue { background: #2563eb; } .ld-dot.purple { background: #7c3aed; } .ld-dot.amber { background: #d97706; } .ld-dot.green { background: #16a34a; } .ld-dot.red { background: #dc2626; }
.ld-clear-link { border: 0; background: transparent; color: #7c8089; text-decoration: underline; font-size: 12.5px !important; padding: 0 6px; }

.ld-table { width: 100%; border-collapse: collapse; }
.ld-table thead { background: #f8f9fb; }
.ld-table th { padding: 11px 14px; font-size: 11px !important; font-weight: 600 !important; color: #8e929b !important; border-top: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; text-align: left; white-space: nowrap; }
.ld-table td { padding: 14px; border-bottom: 1px solid #f2f3f6 !important; vertical-align: middle; }
.ld-table tbody tr:hover { background: #fafbfc; }
.ld-id-code { font-weight: 700; color: #141518; letter-spacing: 0.3px; }
.ld-addr-only strong { display: block; font-weight: 600; color: #141518; }
.ld-addr-only small { display: block; font-size: 11.5px !important; color: #7c8089; margin-top: 2px; }

.ld-stepper { display: flex; align-items: center; width: 165px; }
.ld-step-node { width: 22px; height: 22px; border-radius: 50%; background: #f1f2f5; color: #9ca3af; font-size: 10px !important; display: grid; place-items: center; flex: 0 0 22px; }
.ld-step-node.done { background: #141518; color: #ffffff; }
.ld-step-node.active { background: #141518; color: #d2ff52; box-shadow: 0 0 0 3px rgba(210, 255, 82, 0.45); }
.ld-step-line { flex: 1; height: 2px; background: #e5e7eb; }
.ld-step-line.done { background: #141518; }

.ld-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px !important; font-weight: 600; border: 0; cursor: pointer; }
.ld-status-pill.s-new { background: #eff6ff; color: #1d4ed8; }
.ld-status-pill.s-contacted { background: #f3e8ff; color: #6d28d9; }
.ld-status-pill.s-follow { background: #fef3c7; color: #b45309; }
.ld-status-pill.s-contracted { background: #dcfce7; color: #15803d; }
.ld-status-pill.s-dnc { background: #fee2e2; color: #b91c1c; }

.ld-county-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; background: #f3f4f6; color: #1f2937; font-size: 12px !important; font-weight: 600; }
.ld-act-btn { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid #e4e6eb; background: #ffffff; color: #141518; font-size: 12px !important; font-weight: 600; transition: all 0.15s ease; }
.ld-act-btn:hover { background: #141518; color: #d2ff52; border-color: #141518; }
.ld-act-btn.danger:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.wo-actions-row { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: nowrap; }

/* --- CALENDARIO SEMANAL COMPACTO --- */
.cal-board {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e4e6eb;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
  overflow: hidden;
  max-height: calc(100vh - 105px);
  display: flex;
  flex-direction: column;
}
.cal-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 22px; border-bottom: 1px solid #eef0f4; flex: 0 0 auto; }
.cal-header-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cal-header-left h1 { font-size: 18px !important; font-weight: 600 !important; margin: 0; color: #141518; }
.cal-cat-pills { display: flex; align-items: center; gap: 5px; }
.cal-pill { height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: #f5f6f8; color: #6b7280; font-size: 11.5px !important; font-weight: 500; }
.cal-pill.active { background: #141518; color: #ffffff; font-weight: 600; }
.cal-header-right { display: flex; align-items: center; gap: 8px; }
.cal-week-nav { display: flex; align-items: center; background: #f5f6f8; border-radius: 999px; padding: 2px; }
.cal-nav-btn { height: 26px; padding: 0 10px; border: 0; background: transparent; border-radius: 999px; font-weight: 600; font-size: 12px !important; color: #374151; }
.cal-grid-wrap { width: 100%; overflow: auto; flex: 1; }
.cal-grid { display: grid; grid-template-columns: 58px repeat(7, minmax(120px, 1fr)); min-width: 920px; }
.cal-day-head { padding: 8px 6px; text-align: center; border-bottom: 1px solid #eef0f4; border-left: 1px solid #f2f3f6; background: #fafbfc; position: sticky; top: 0; z-index: 5; }
.cal-day-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px !important; font-weight: 500; color: #6b7280; }
.cal-day-head.is-today .cal-day-pill { background: #141518; color: #ffffff; font-weight: 600; }
.cal-time-cell { padding: 6px 8px; text-align: right; font-size: 11px !important; color: #9ca3af; border-bottom: 1px solid #f2f3f6; min-height: 46px; }
.cal-slot-cell { padding: 3px 4px; border-left: 1px solid #f2f3f6; border-bottom: 1px solid #f2f3f6; min-height: 46px; cursor: pointer; }
.cal-slot-cell:hover { background: #f9fafb; }
.cal-event-card { border-radius: 9px; padding: 5px 8px; margin-bottom: 3px; cursor: pointer; }
.cal-event-card.cat-site { background: #e9e4ff; color: #3b2d71; }
.cal-event-card.cat-estimate { background: #dff1ff; color: #1e486b; }
.cal-event-card.cat-inspection { background: #dcfce7; color: #165b33; }
.cal-event-card.cat-followup { background: #ffedd5; color: #7c2d12; }
.cal-ev-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 11px !important; }
.cal-ev-id { font-size: 9.5px !important; background: rgba(255, 255, 255, 0.7); padding: 0 4px; border-radius: 4px; }
.cal-ev-time { font-size: 10px !important; opacity: 0.85; }

/* --- PROJECT CLOUD: TARJETAS CRM PIPELINE + CLOUD STORAGE --- */
.crm-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.crm-proj-card { background: #ffffff; border: 1px solid #e4e6eb; border-radius: 20px; padding: 18px 20px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03); display: flex; flex-direction: column; gap: 14px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.crm-proj-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06); }
.crm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #f2f3f6; }
.crm-card-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crm-card-icon { width: 34px; height: 34px; border-radius: 10px; background: #141518; color: #d2ff52; font-weight: 700; display: grid; place-items: center; flex: 0 0 34px; }
.crm-card-brand strong { font-size: 14.5px !important; font-weight: 700; color: #141518; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-card-num { font-size: 12px !important; color: #8e929b; font-weight: 600; white-space: nowrap; }
.crm-card-rows { display: grid; gap: 9px; }
.crm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px !important; }
.crm-row-label { color: #8e929b; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.crm-row-val { color: #141518; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.crm-pill-val { background: #f4f5f7; padding: 2px 9px; border-radius: 6px; font-size: 11.5px !important; font-weight: 600; }
.crm-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f2f3f6; }
.crm-doc-count { font-size: 12px !important; color: #7c8089; font-weight: 500; }
.crm-card-actions { display: flex; align-items: center; gap: 6px; }

.cloud-shell { display: grid; grid-template-columns: 230px 1fr; background: #ffffff; border: 1px solid #e4e6eb; border-radius: 26px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); overflow: hidden; min-height: 560px; }
.cloud-sidebar { background: #fafbfc; border-right: 1px solid #eef0f4; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.cloud-back-btn { border: 1px solid #e4e6eb; background: #ffffff; color: #141518; border-radius: 10px; padding: 8px 12px; font-weight: 600; text-align: left; }
.cloud-back-btn:hover { background: #141518; color: #d2ff52; }
.cloud-proj-badge { font-weight: 700; font-size: 14px !important; color: #141518; padding: 10px 12px; background: #f1f2f5; border-radius: 12px; line-height: 1.35; }
.cloud-nav-label { font-size: 10.5px !important; font-weight: 700; color: #9ca3af; letter-spacing: 0.7px; padding: 6px 8px 0; }
.cloud-nav { display: grid; gap: 3px; }
.cloud-nav-item { border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 10px; color: #52525b; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cloud-nav-item:hover { background: #eef0f4; color: #141518; }
.cloud-nav-item.active { background: #e0f2fe; color: #0369a1; font-weight: 600; }
.cloud-main { padding: 22px 26px; }
.cloud-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #eef0f4; margin-bottom: 18px; }
.cloud-breadcrumb { display: flex; align-items: center; gap: 8px; color: #8e929b; }
.cloud-breadcrumb strong { color: #141518; }
.cloud-top-actions { display: flex; align-items: center; gap: 10px; }
.cloud-section-tag { display: inline-block; background: #f3f4f6; color: #6b7280; font-size: 11px !important; font-weight: 600; padding: 3px 10px; border-radius: 6px; margin-bottom: 12px; }
.cloud-folders-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cloud-folder-card { background: #fafbfc; border: 1px solid #eceef2; border-radius: 16px; padding: 16px; text-align: center; cursor: pointer; transition: all 0.15s ease; }
.cloud-folder-card:hover { background: #f0f9ff; border-color: #bae6fd; transform: translateY(-2px); }
.cloud-folder-graphic { width: 68px; height: 52px; margin: 0 auto 10px; border-radius: 10px; background: #fbbf24; box-shadow: 0 6px 14px rgba(251, 191, 36, 0.25); }
.cloud-folder-graphic.blue { background: #60a5fa; box-shadow: 0 6px 14px rgba(96, 165, 250, 0.25); }
.cloud-folder-card strong { display: block; color: #141518; font-size: 13px !important; }
.cloud-folder-card small { color: #8e929b; font-size: 11px !important; }
.cloud-files-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cloud-file-card { border: 1px solid #eceef2; border-radius: 16px; padding: 16px 14px; text-align: center; background: #ffffff; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.file-ext-badge { width: 54px; height: 64px; border-radius: 12px; background: #141518; color: #d2ff52; font-weight: 700; font-size: 14px !important; display: grid; place-items: center; border: 2px solid #38bdf8; }
.file-ext-badge.pdf { background: #7f1d1d; color: #fecaca; border-color: #f87171; }
.file-ext-badge.img { background: #064e3b; color: #a7f3d0; border-color: #34d399; }
.file-ext-badge.xls { background: #14532d; color: #bbf7d0; border-color: #4ade80; }
.cloud-file-name { font-weight: 600; font-size: 12.5px !important; color: #141518; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cloud-file-actions { display: flex; gap: 6px; margin-top: 4px; }

.cloud-dropzone { border: 2px dashed #cbd5e1; border-radius: 18px; background: #f8fafc; padding: 28px 20px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cloud-dropzone:hover, .cloud-dropzone.is-dragging { border-color: #141518; background: #f1f5f9; }
.cloud-dz-icon { font-size: 26px !important; color: #334155; }
.cloud-selected-list { display: grid; gap: 8px; }
.cloud-up-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid #e4e6eb; border-radius: 12px; background: #ffffff; }

/* --- MODAL NEO-BENTO --- */
.neo-lead-modal { border: 1px solid #e4e6eb !important; border-radius: 26px !important; padding: 0 !important; width: min(580px, calc(100% - 24px)) !important; background: #ffffff !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important; overflow: hidden !important; }
.neo-lead-modal::backdrop { background: rgba(17, 18, 20, 0.45) !important; backdrop-filter: blur(4px) !important; }
.neo-lead-modal form { padding: 0 !important; }
.nlm-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; background: #fafbfc; border-bottom: 1px solid #eef0f4; }
.nlm-title-group { display: flex; align-items: center; gap: 14px; }
.nlm-avatar-badge { width: 42px; height: 42px; border-radius: 14px; background: #141518; color: #d2ff52; font-size: 16px !important; font-weight: 700; display: grid; place-items: center; }
.nlm-kicker { display: block; font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.8px; color: #7c8089; margin-bottom: 2px; }
.nlm-header h2 { font-size: 19px !important; font-weight: 700 !important; margin: 0 !important; color: #141518; }
.nlm-close-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e4e6eb; background: #ffffff; color: #52525b; font-size: 18px !important; display: grid; place-items: center; }
.nlm-close-btn:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.nlm-body { padding: 18px 26px; display: grid; gap: 16px; }
.nlm-status-box { background: #f6f7f9; border: 1px solid #eceef2; border-radius: 16px; padding: 12px 14px; }
.nlm-label { display: block; font-size: 11px !important; font-weight: 700; color: #7c8089; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.nlm-status-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.nlm-s-pill { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid #e4e6eb; background: #ffffff; color: #52525b; font-size: 11.5px !important; font-weight: 600; }
.nlm-s-pill.active { background: #141518; color: #d2ff52; border-color: #141518; }
.nlm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nlm-field { display: flex; flex-direction: column; gap: 6px; }
.nlm-field.full { grid-column: 1 / -1; }
.nlm-field span { font-size: 12px !important; font-weight: 600; color: #374151; }
.nlm-field span b { color: #16a34a; }
.nlm-field input, .nlm-field textarea, .nlm-select { width: 100%; border: 1px solid #e2e5ec; border-radius: 12px; padding: 10px 13px; background: #ffffff; color: #141518; font-size: 13.5px !important; outline: 0; }
.nlm-field input:focus, .nlm-field textarea:focus, .nlm-select:focus { border-color: #141518; box-shadow: 0 0 0 3px rgba(210, 255, 82, 0.45); }
.nlm-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 26px; background: #fafbfc; border-top: 1px solid #eef0f4; }
.nlm-btn-cancel, .nlm-btn-print { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #e4e6eb; background: #ffffff; color: #52525b; font-weight: 600; }

@media (max-width: 1200px) {
  .leads-cards-grid, .crm-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tasks-cards-grid, .cloud-folders-row, .cloud-files-grid, .bento-widgets-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-pill-bar { display: none; }
}

@media (max-width: 760px) {
  .neo-body { flex-direction: column; padding: 12px 16px; }
  .neo-rail { width: 100%; flex: none; padding-top: 0; }
  .rail-group { flex-direction: row; justify-content: center; width: 100%; }
  .rail-bottom { display: none; }
  .cloud-shell { grid-template-columns: 1fr; }
  .leads-cards-grid, .tasks-cards-grid, .weather-strip-bento, .bento-widgets-grid, .crm-cards-grid, .nlm-grid { grid-template-columns: 1fr; }
}
