/* =============================================
   CLICK CONVERT PRO — Design System
   ============================================= */

/* --- Variables de marca --- */
:root {
  --cc-primary:     #1e4080;   /* Azul oscuro */
  --cc-primary-dk:  #152d5c;   /* Azul más oscuro (hover) */
  --cc-secondary:   #00b4a6;   /* Teal */
  --cc-secondary-dk:#008f83;
  --cc-accent:      #f5d800;   /* Amarillo */
  --cc-accent-dk:   #d4bb00;
  --cc-gray:        #6b7a8d;
  --cc-dark:        #1a2e4a;
  --cc-light-bg:    #f0f4f8;
  --cc-white:       #ffffff;
  --cc-border:      #d8e2ef;
  --cc-text:        #2c3e50;
  --cc-text-muted:  #7f8fa4;

  --cc-sidebar-width: 240px;
  --cc-navbar-height: 60px;
  --cc-radius:        10px;
  --cc-radius-lg:     16px;
  --cc-shadow:        0 2px 12px rgba(30,64,128,.10);
  --cc-shadow-lg:     0 8px 32px rgba(30,64,128,.16);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--cc-light-bg);
  color: var(--cc-text);
  font-size: 0.94rem;
}

a { color: var(--cc-primary); text-decoration: none; }
a:hover { color: var(--cc-secondary); }

/* --- Navbar --- */
.cc-navbar {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-dark) 100%);
  height: var(--cc-navbar-height);
  padding: 0 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.cc-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cc-white) !important;
  letter-spacing: -0.3px;
}

.cc-navbar .navbar-brand img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}

.cc-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: 0.9rem;
}
.cc-navbar .nav-link:hover { color: var(--cc-accent) !important; }

.cc-navbar .btn-accent,
.btn-accent {
  background: var(--cc-accent);
  color: var(--cc-primary);
  border: none;
  font-weight: 700;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.85rem;
  transition: background .2s;
}
.cc-navbar .btn-accent:hover,
.btn-accent:hover { background: var(--cc-accent-dk); }

.cc-role-badge {
  background: rgba(0,180,166,.25);
  color: var(--cc-secondary);
  border: 1px solid rgba(0,180,166,.4);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Sidebar --- */
.cc-sidebar {
  width: var(--cc-sidebar-width);
  min-height: calc(100vh - var(--cc-navbar-height));
  background: var(--cc-white);
  border-right: 1px solid var(--cc-border);
  padding: 1.25rem 0.75rem;
  position: sticky;
  top: var(--cc-navbar-height);
  height: calc(100vh - var(--cc-navbar-height));
  overflow-y: auto;
}

.cc-sidebar .nav-link {
  color: var(--cc-gray);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
  margin-bottom: 2px;
}

.cc-sidebar .nav-link:hover {
  background: rgba(30,64,128,.07);
  color: var(--cc-primary);
}

.cc-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: var(--cc-white) !important;
  box-shadow: var(--cc-shadow);
}

.cc-sidebar-sub {
  margin-left: 18px;
  font-size: 0.82rem !important;
  padding: 5px 12px !important;
  color: var(--cc-text-muted) !important;
  border-left: 2px solid var(--cc-border);
  border-radius: 0 6px 6px 0 !important;
}
.cc-sidebar-sub:hover { border-left-color: var(--cc-secondary) !important; }
.cc-sidebar-sub.active { border-left-color: var(--cc-secondary) !important; }

.cc-sidebar .nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.cc-sidebar-section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cc-text-muted);
  padding: 12px 12px 4px;
}

/* --- Main content --- */
.cc-main {
  flex: 1;
  padding: 1.75rem;
  min-height: calc(100vh - var(--cc-navbar-height));
}

.cc-page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cc-primary);
  margin-bottom: 1.25rem;
}

/* --- Cards --- */
.cc-card {
  background: var(--cc-white);
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
}

.cc-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cc-border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cc-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-card-body { padding: 1.25rem; }

/* Stat cards */
.cc-stat-card {
  background: var(--cc-white);
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .18s, box-shadow .18s;
}
.cc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
}

.cc-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cc-stat-icon.primary   { background: rgba(30,64,128,.12);  color: var(--cc-primary); }
.cc-stat-icon.secondary { background: rgba(0,180,166,.12);  color: var(--cc-secondary); }
.cc-stat-icon.accent    { background: rgba(245,216,0,.18);  color: #a08900; }
.cc-stat-icon.gray      { background: rgba(107,122,141,.12); color: var(--cc-gray); }

.cc-stat-label { font-size: 0.78rem; color: var(--cc-text-muted); font-weight: 500; }
.cc-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--cc-primary); line-height: 1.1; }

/* --- Buttons --- */
.btn-cc-primary {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: var(--cc-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 22px;
  transition: opacity .2s, transform .15s;
}
.btn-cc-primary:hover { opacity: .9; transform: translateY(-1px); color: var(--cc-white); }

.btn-cc-secondary {
  background: transparent;
  color: var(--cc-primary);
  border: 2px solid var(--cc-primary);
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 20px;
  transition: all .2s;
}
.btn-cc-secondary:hover {
  background: var(--cc-primary);
  color: var(--cc-white);
}

.btn-cc-teal {
  background: var(--cc-secondary);
  color: var(--cc-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 18px;
  transition: background .2s;
}
.btn-cc-teal:hover { background: var(--cc-secondary-dk); color: var(--cc-white); }

/* --- Badges --- */
.badge-connected {
  background: rgba(0,180,166,.15);
  color: var(--cc-secondary);
  border: 1px solid rgba(0,180,166,.35);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-phase {
  background: rgba(107,122,141,.12);
  color: var(--cc-gray);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}

/* --- Auth pages (login/register) --- */
.cc-auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-dark) 40%, var(--cc-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cc-auth-card {
  background: var(--cc-white);
  border-radius: var(--cc-radius-lg);
  box-shadow: var(--cc-shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.cc-auth-card-header {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-dark));
  padding: 2rem;
  text-align: center;
  color: var(--cc-white);
}

.cc-auth-card-header img { height: 70px; margin-bottom: 10px; }
.cc-auth-card-header h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.cc-auth-card-header p { opacity: .75; font-size: 0.87rem; margin: 4px 0 0; }

.cc-auth-body { padding: 2rem; }

.cc-form-label { font-weight: 600; font-size: 0.85rem; color: var(--cc-primary); margin-bottom: 4px; }

.cc-form-control {
  border: 1.5px solid var(--cc-border);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.cc-form-control:focus {
  border-color: var(--cc-secondary);
  box-shadow: 0 0 0 3px rgba(0,180,166,.15);
}

/* --- Messages --- */
.cc-alert {
  border-radius: var(--cc-radius);
  border-left: 4px solid;
  font-size: 0.88rem;
  padding: 10px 14px;
}
.cc-alert-success { background: #edfaf8; border-color: var(--cc-secondary); color: #006b63; }
.cc-alert-error   { background: #fef0f0; border-color: #e74c3c; color: #c0392b; }
.cc-alert-info    { background: #edf2ff; border-color: var(--cc-primary); color: var(--cc-primary); }
.cc-alert-warning { background: #fffbea; border-color: var(--cc-accent); color: #8a7000; }

/* --- Connect account cards --- */
.cc-connect-card {
  border: 1.5px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .2s, box-shadow .2s;
  background: var(--cc-white);
}
.cc-connect-card:hover {
  border-color: var(--cc-secondary);
  box-shadow: 0 2px 10px rgba(0,180,166,.12);
}

.cc-connect-card img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

/* --- Feature preview cards --- */
.cc-feature-card {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform .18s, box-shadow .18s;
}
.cc-feature-card:hover { transform: translateY(-3px); box-shadow: var(--cc-shadow-lg); }
.cc-feature-card .icon { font-size: 2.2rem; margin-bottom: .75rem; }

/* --- Onboarding banner --- */
.cc-onboarding {
  background: linear-gradient(135deg, rgba(0,180,166,.1), rgba(30,64,128,.08));
  border: 1.5px solid rgba(0,180,166,.3);
  border-radius: var(--cc-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cc-onboarding .icon { font-size: 1.4rem; color: var(--cc-secondary); flex-shrink: 0; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cc-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cc-gray); }

/* --- Bottom Navigation (mobile) --- */
.cc-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cc-white);
  border-top: 1px solid var(--cc-border);
  box-shadow: 0 -2px 14px rgba(30,64,128,.14);
  z-index: 1029;
  height: 66px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cc-bottom-nav-items {
  display: flex;
  align-items: stretch;
  height: 100%;
  justify-content: space-around;
  padding: 0 0.25rem;
}

.cc-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--cc-gray);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 8px;
  transition: color .15s;
  flex: 1;
  max-width: 76px;
  min-width: 44px;
  min-height: 44px;
}

.cc-bottom-nav-item i {
  font-size: 1.5rem;
  line-height: 1;
}

.cc-bottom-nav-item.active { color: var(--cc-primary); }
.cc-bottom-nav-item.active i {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cc-bottom-nav-item:hover { color: var(--cc-primary); }

/* --- Responsive --- */
@media (max-width: 767.98px) {
  .cc-sidebar { display: none !important; }
  .cc-main    { padding: 1rem 0.875rem 5rem; }
  .cc-bottom-nav { display: flex; align-items: stretch; }

  /* Stat cards: tighter on mobile */
  .cc-stat-card {
    padding: 0.875rem 0.75rem;
    gap: 0.625rem;
  }
  .cc-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
  }
  .cc-stat-value { font-size: 1.3rem; }
  .cc-stat-label { font-size: 0.72rem; }

  /* Page title */
  .cc-page-title { font-size: 1.15rem; margin-bottom: 0.875rem; }

  /* Cards */
  .cc-card-body { padding: 1rem; }
  .cc-card-header { padding: 0.875rem 1rem; font-size: 0.88rem; }

  /* Auth */
  .cc-auth-bg { padding: 1rem; }
  .cc-auth-body { padding: 1.5rem 1.25rem; }

  /* Onboarding banner */
  .cc-onboarding { padding: 0.875rem 1rem; gap: 8px; }

  /* Tables: horizontal scroll */
  .cc-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Buttons full width on xs when stacked */
  .btn-mobile-full { width: 100%; }

  /* Navbar brand text: hide on very small screens */
  .cc-navbar .navbar-brand span { display: none; }
}

@media (min-width: 768px) {
  .cc-bottom-nav { display: none !important; }
}

/* Tablet (768–991px): slim sidebar */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root { --cc-sidebar-width: 200px; }
  .cc-main { padding: 1.25rem; }
  .cc-stat-value { font-size: 1.4rem; }
}

/* =============================================
   WHATSAPP DEMO — crm/whatsapp_demo.html
   ============================================= */

.wa-demo-banner {
  background: linear-gradient(135deg, #0a1628 0%, #064e3b 60%, #065f46 100%);
  padding: 2.25rem 1.75rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.wa-demo-banner::before {
  content: '';
  position: absolute;
  left: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(37,211,102,.08);
  pointer-events: none;
}
.wa-demo-banner::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(37,211,102,.06);
  pointer-events: none;
}
.wa-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37,211,102,.15);
  border: 1px solid rgba(37,211,102,.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .72rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .875rem;
}
.wa-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 1.5s infinite;
}
@keyframes wa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.wa-demo-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0 0 .4rem;
}
.wa-demo-sub { font-size: .9rem; opacity: .72; margin: 0; max-width: 540px; }

/* Steps */
.wa-steps { display: flex; flex-direction: column; gap: 0; }
.wa-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-border);
}
.wa-step:last-child { border-bottom: none; }
.wa-step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-weight: 800;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37,211,102,.35);
}
.wa-step-title { font-weight: 700; font-size: .92rem; color: var(--cc-primary); margin-bottom: 2px; }
.wa-step-desc  { font-size: .8rem; color: var(--cc-text-muted); line-height: 1.45; }

/* Feature pills */
.wa-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.wa-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,211,102,.08);
  border: 1px solid rgba(37,211,102,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .77rem;
  font-weight: 600;
  color: #065f46;
}

/* Vendor notification card */
.wa-notif-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  padding: 14px 16px;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}
.wa-notif-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #25d366;
  border-radius: 4px 0 0 4px;
}
.wa-notif-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--cc-text-muted);
  margin-bottom: 8px;
}
.wa-notif-msg {
  background: #f0fdf4;
  border-radius: 0 10px 10px 10px;
  padding: 10px 12px;
  font-size: .82rem;
  color: #1a2e4a;
  line-height: 1.5;
}
.wa-notif-time { font-size: .68rem; color: var(--cc-text-muted); text-align: right; margin-top: 4px; }

/* Phone scene */
.wa-phone-scene {
  perspective: 900px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 0;
}
.wa-phone-wrap {
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.28));
}
.wa-phone-wrap:hover { transform: rotateY(0deg) rotateX(0deg); }
.wa-phone {
  width: 290px;
  background: #111;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 0 1px rgba(0,0,0,.6);
}
.wa-screen {
  border-radius: 30px;
  overflow: hidden;
  height: 570px;
  display: flex;
  flex-direction: column;
  background: #e5ddd5;
}

/* WhatsApp UI */
.wa-wapp-header {
  background: #075e54;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wa-wapp-status-bar {
  background: #054c44;
  padding: 4px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.wa-wapp-status-bar span { color: rgba(255,255,255,.7); font-size: .58rem; }
.wa-contact-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: white;
  flex-shrink: 0;
}
.wa-contact-info-name { font-size: .82rem; font-weight: 700; color: white; line-height: 1.2; }
.wa-contact-info-sub  { font-size: .62rem; color: rgba(255,255,255,.7); }
.wa-header-icons { margin-left: auto; display: flex; gap: 14px; color: rgba(255,255,255,.8); font-size: .9rem; }

/* Messages */
.wa-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a0a0a0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wa-bubble {
  max-width: 82%;
  border-radius: 8px;
  padding: 7px 10px 5px;
  font-size: .75rem;
  line-height: 1.45;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  word-break: break-word;
}
.wa-bubble.show { opacity: 1; transform: translateY(0); }
.wa-bubble.in {
  background: white;
  border-radius: 0 8px 8px 8px;
  align-self: flex-start;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.wa-bubble.out {
  background: #dcf8c6;
  border-radius: 8px 0 8px 8px;
  align-self: flex-end;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.wa-bubble.sys {
  background: rgba(255,255,255,.75);
  border-radius: 8px;
  align-self: center;
  color: #5a6a72;
  font-size: .65rem;
  padding: 4px 12px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.wa-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
}
.wa-time { font-size: .58rem; color: #8696a0; }
.wa-ticks { color: #53bdeb; font-size: .65rem; }
.wa-typing-wrap { align-self: flex-start; opacity: 0; transition: opacity .3s; }
.wa-typing-wrap.show { opacity: 1; }
.wa-typing-bubble {
  background: white;
  border-radius: 0 8px 8px 8px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.wa-typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #90a0a7;
  animation: wa-typing-anim 1.2s infinite;
}
.wa-typing-dot:nth-child(2) { animation-delay: .2s; }
.wa-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes wa-typing-anim {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-5px); }
}

/* Input bar */
.wa-input-row {
  background: #f0f0f0;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wa-input-field {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: .7rem;
  color: #aaa;
}
.wa-send-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #075e54;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .8rem;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .wa-phone-wrap { transform: none; }
  .wa-phone      { width: 260px; }
  .wa-screen     { height: 500px; }
}
@media (max-width: 767.98px) {
  .wa-demo-banner  { padding: 1.5rem 1rem; }
  .wa-demo-title   { font-size: 1.3rem; }
  .wa-phone        { width: 240px; }
  .wa-screen       { height: 460px; }
}

/* =============================================
   CRM — Contact list & detail
   ============================================= */

/* Banner */
.crm-banner {
  background: linear-gradient(135deg, #1a2e4a 0%, var(--cc-primary) 60%, #1a5276 100%);
  padding: 1.75rem 1.75rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.crm-banner::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(0,180,166,.12);
  pointer-events: none;
}
.crm-banner-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .35rem;
}
.crm-banner-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 .3rem;
  letter-spacing: -.3px;
}
.crm-banner-sub { font-size: .85rem; opacity: .72; margin: 0; }
.crm-btn-outline {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .18s;
}
.crm-btn-outline:hover { background: rgba(255,255,255,.22); color: white; }
.crm-btn-primary {
  background: var(--cc-secondary);
  border: none;
  color: white;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .18s;
}
.crm-btn-primary:hover { opacity: .88; color: white; }

/* Stage chip bar */
.crm-stage-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crm-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--cc-border);
  background: white;
  color: var(--cc-gray);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.crm-stage-chip:hover { border-color: var(--cc-secondary); color: var(--cc-secondary); }
.crm-stage-chip.active { background: var(--cc-primary); border-color: var(--cc-primary); color: white; }
.crm-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.crm-chip-count { opacity: .65; font-weight: 400; }

/* Stage dot colors */
.crm-dot-new         { background: #3b82f6; }
.crm-dot-contacted   { background: #8b5cf6; }
.crm-dot-qualified   { background: #f59e0b; }
.crm-dot-proposal    { background: #06b6d4; }
.crm-dot-negotiation { background: #f97316; }
.crm-dot-won         { background: #10b981; }
.crm-dot-lost        { background: #ef4444; }

/* Search bar */
.crm-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 400px;
}
.crm-search-icon {
  position: absolute;
  left: 12px;
  color: var(--cc-text-muted);
  font-size: .9rem;
  pointer-events: none;
}
.crm-search-input {
  width: 100%;
  border: 1.5px solid var(--cc-border);
  border-radius: 10px;
  padding: 9px 36px 9px 36px;
  font-size: .875rem;
  outline: none;
  background: white;
  transition: border-color .18s;
}
.crm-search-input:focus { border-color: var(--cc-secondary); box-shadow: 0 0 0 3px rgba(0,180,166,.1); }
.crm-search-clear {
  position: absolute;
  right: 10px;
  color: var(--cc-text-muted);
  font-size: .9rem;
  text-decoration: none;
}
.crm-search-clear:hover { color: var(--cc-primary); }

/* Contact list rows */
.crm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crm-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--cc-text);
  transition: box-shadow .18s, border-color .18s, transform .12s;
}
.crm-contact-row:hover {
  border-color: var(--cc-secondary);
  box-shadow: 0 4px 16px rgba(0,180,166,.12);
  transform: translateY(-1px);
  color: var(--cc-text);
}

/* Avatar */
.crm-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact info */
.crm-contact-info { flex: 1; min-width: 0; }
.crm-contact-name  { font-weight: 700; font-size: .92rem; color: var(--cc-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-contact-company { font-size: .75rem; color: var(--cc-text-muted); }
.crm-contact-email { font-size: .78rem; color: var(--cc-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-contact-meta  { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.crm-contact-date  { font-size: .75rem; color: var(--cc-text-muted); flex-shrink: 0; }
.crm-contact-arrow { color: var(--cc-border); font-size: .85rem; flex-shrink: 0; transition: color .15s; }
.crm-contact-row:hover .crm-contact-arrow { color: var(--cc-secondary); }

/* Stage badges */
.crm-stage-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.crm-stage-new         { background: #eff6ff; color: #2563eb; }
.crm-stage-contacted   { background: #f5f3ff; color: #7c3aed; }
.crm-stage-qualified   { background: #fffbeb; color: #d97706; }
.crm-stage-proposal    { background: #ecfeff; color: #0891b2; }
.crm-stage-negotiation { background: #fff7ed; color: #ea580c; }
.crm-stage-won         { background: #ecfdf5; color: #059669; }
.crm-stage-lost        { background: #fef2f2; color: #dc2626; }

.crm-deal-value { font-size: .78rem; font-weight: 700; color: var(--cc-secondary); }

/* Empty state */
.crm-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--cc-text-muted);
}
.crm-empty-icon { font-size: 3rem; opacity: .2; margin-bottom: .75rem; }
.crm-empty-title { font-weight: 700; font-size: 1rem; color: var(--cc-primary); margin-bottom: .35rem; }
.crm-empty-sub { font-size: .875rem; }

/* ── Contact Detail ─────────────────────────────────────────────────── */

/* Hero card */
.crm-hero-card {
  background: linear-gradient(135deg, var(--cc-primary) 0%, #1a5276 100%);
  border-radius: var(--cc-radius-lg);
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.crm-hero-card::after {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(0,180,166,.15);
  pointer-events: none;
}
.crm-hero-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.crm-hero-name    { font-size: 1.3rem; font-weight: 800; letter-spacing: -.2px; }
.crm-hero-company { font-size: .85rem; opacity: .75; }
.crm-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }
.crm-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.35);
  color: white;
  background: rgba(255,255,255,.12);
  transition: background .15s;
}
.crm-hero-btn:hover { background: rgba(255,255,255,.22); color: white; }
.crm-hero-btn.whatsapp { background: #25d366; border-color: #25d366; }
.crm-hero-btn.whatsapp:hover { background: #1db954; }
.crm-hero-btn.edit { background: rgba(255,255,255,.18); }

/* Pipeline stepper */
.crm-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.crm-step-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.crm-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.crm-step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  border: 2px solid var(--cc-border);
  background: white;
  color: var(--cc-text-muted);
  transition: all .2s;
}
.crm-step-btn.done .crm-step-circle   { background: var(--cc-secondary); border-color: var(--cc-secondary); color: white; }
.crm-step-btn.active .crm-step-circle { background: var(--cc-primary);   border-color: var(--cc-primary);   color: white; box-shadow: 0 0 0 4px rgba(30,64,128,.15); }
.crm-step-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--cc-text-muted);
  white-space: nowrap;
  max-width: 64px;
  text-align: center;
  line-height: 1.2;
}
.crm-step-btn.done .crm-step-label   { color: var(--cc-secondary); }
.crm-step-btn.active .crm-step-label { color: var(--cc-primary); font-weight: 700; }
.crm-step-btn.lost .crm-step-circle  { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.crm-step-btn.lost .crm-step-label   { color: #ef4444; }
.crm-step-line {
  flex: 1;
  height: 2px;
  background: var(--cc-border);
  margin: 0 2px;
  margin-bottom: 22px;
  min-width: 8px;
  transition: background .2s;
}
.crm-step-line.done { background: var(--cc-secondary); }

/* Info card rows */
.crm-info-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--cc-border);
  font-size: .875rem;
}
.crm-info-row:last-child { border-bottom: none; }
.crm-info-label { color: var(--cc-text-muted); min-width: 90px; flex-shrink: 0; font-size: .8rem; }
.crm-info-value { color: var(--cc-text); word-break: break-word; }

/* Activity timeline */
.crm-timeline { position: relative; padding-left: 28px; }
.crm-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--cc-border);
  border-radius: 2px;
}
.crm-timeline-item { position: relative; margin-bottom: 16px; }
.crm-timeline-dot {
  position: absolute;
  left: -22px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--cc-border);
}
.crm-dot-type-note      { background: var(--cc-primary); }
.crm-dot-type-call      { background: #3b82f6; }
.crm-dot-type-email     { background: #8b5cf6; }
.crm-dot-type-whatsapp  { background: #25d366; }
.crm-dot-type-meeting   { background: #f59e0b; }
.crm-dot-type-stage_change { background: var(--cc-secondary); }
.crm-timeline-card {
  background: white;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.crm-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.crm-timeline-type {
  font-size: .75rem;
  font-weight: 700;
  color: var(--cc-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.crm-timeline-date { font-size: .72rem; color: var(--cc-text-muted); }
.crm-timeline-content { font-size: .855rem; color: #4a5568; line-height: 1.5; }

/* Activity form */
.crm-activity-form {
  background: var(--cc-light-bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .crm-banner         { padding: 1.25rem 1rem; }
  .crm-banner-title   { font-size: 1.25rem; }
  .crm-stage-bar      { gap: 5px; }
  .crm-stage-chip     { font-size: .72rem; padding: 4px 10px; }
  .crm-step-label     { font-size: .58rem; max-width: 48px; }
  .crm-step-circle    { width: 26px; height: 26px; font-size: .65rem; }
  .crm-hero-avatar    { width: 48px; height: 48px; font-size: 1.2rem; }
  .crm-hero-name      { font-size: 1.1rem; }
}

/* =============================================
   FUNNEL CREATE — Wizard split-screen
   ============================================= */

.fc-banner {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-dark) 55%, #0d3d6e 100%);
  padding: 2rem 1.75rem 1.75rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.fc-banner::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(0,180,166,.15);
  pointer-events: none;
}
.fc-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: .73rem;
  font-weight: 600;
  margin-bottom: .75rem;
  letter-spacing: .3px;
}
.fc-banner-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  letter-spacing: -.4px;
}
.fc-banner-sub {
  font-size: .88rem;
  opacity: .78;
  margin: 0;
}

.fc-body { padding: 0; }

.fc-form-col {
  padding: 1.75rem;
  border-right: 1px solid var(--cc-border);
}
.fc-preview-col {
  background: var(--cc-light-bg);
  padding: 1.75rem;
}
.fc-preview-sticky {
  position: sticky;
  top: calc(var(--cc-navbar-height) + 16px);
}

/* Section labels */
.fc-section { margin-bottom: 1.5rem; }
.fc-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--cc-primary);
  margin-bottom: 1.25rem;
}
.fc-section-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: white;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-divider { height: 1px; background: var(--cc-border); margin: 1.5rem 0; }

/* Type cards */
.fc-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: .5rem;
}
.fc-type-card {
  border: 2px solid var(--cc-border);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: white;
  user-select: none;
}
.fc-type-card:hover { border-color: var(--cc-secondary); background: rgba(0,180,166,.04); }
.fc-type-card.active {
  border-color: var(--cc-primary);
  background: rgba(30,64,128,.05);
  box-shadow: 0 0 0 3px rgba(30,64,128,.1);
}
.fc-type-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.fc-type-name { font-weight: 700; font-size: .83rem; color: var(--cc-primary); }
.fc-type-desc { font-size: .7rem; color: var(--cc-text-muted); margin-top: 2px; line-height: 1.3; }

/* Char counter */
.fc-char-count { font-size: .73rem; color: var(--cc-text-muted); font-weight: 400; }
.fc-char-bar { height: 3px; background: var(--cc-border); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.fc-char-bar-fill { height: 100%; width: 0; transition: width .2s, background .3s; border-radius: 2px; background: var(--cc-secondary); }

/* Submit */
.fc-submit-area {
  padding-top: 1.5rem;
  border-top: 1px solid var(--cc-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fc-submit-btn {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-secondary) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(30,64,128,.25);
}
.fc-submit-btn:hover  { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,64,128,.32); }
.fc-submit-btn:active { transform: translateY(0); }
.fc-cancel-link { color: var(--cc-text-muted); font-size: .875rem; text-decoration: none; }
.fc-cancel-link:hover { color: var(--cc-primary); }

/* Preview panel */
.fc-preview-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--cc-text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fc-preview-phone {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cc-shadow-lg);
  border: 1px solid var(--cc-border);
}
.fc-preview-hero {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-secondary) 100%);
  color: white;
  padding: 22px 16px 18px;
  text-align: center;
  transition: background .4s;
}
.fc-preview-badge {
  font-size: .62rem;
  font-weight: 700;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 8px;
  display: inline-block;
  letter-spacing: .3px;
}
.fc-preview-headline {
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 7px;
  min-height: 2.5em;
  transition: opacity .2s;
}
.fc-preview-sub {
  font-size: .68rem;
  opacity: .82;
  margin-bottom: 10px;
  line-height: 1.4;
}
.fc-preview-cta-pill {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: .68rem;
  font-weight: 700;
  display: inline-block;
}
.fc-preview-form-mock { padding: 14px; }
.fc-mock-input {
  background: var(--cc-light-bg);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: .67rem;
  color: #a0aec0;
  margin-bottom: 6px;
  border: 1px solid var(--cc-border);
}
.fc-mock-btn {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: white;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  transition: background .4s;
}
.fc-preview-tip {
  font-size: .75rem;
  color: var(--cc-text-muted);
  margin-top: .875rem;
  padding: 10px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--cc-border);
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .fc-form-col    { border-right: none; border-bottom: 1px solid var(--cc-border); }
  .fc-preview-sticky { position: static; }
  .fc-banner-title   { font-size: 1.3rem; }
}
@media (max-width: 767.98px) {
  .fc-banner        { padding: 1.25rem 1rem 1.1rem; }
  .fc-form-col      { padding: 1.25rem 1rem; }
  .fc-preview-col   { padding: 1.25rem 1rem; }
  .fc-type-icon     { font-size: 1.3rem; }
  .fc-submit-btn    { width: 100%; justify-content: center; }
  .fc-submit-area   { flex-direction: column; align-items: stretch; }
  .fc-cancel-link   { text-align: center; }
}

/* =============================================
   LANDING CUSTOMIZE — Paso 2 de personalización
   ============================================= */

/* Step trail */
.lp-step-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-step {
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lp-step.done {
  background: rgba(0,180,166,.12);
  color: var(--cc-secondary);
}
.lp-step.active {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: white;
}
.lp-step-arrow { color: var(--cc-text-muted); font-size: .75rem; }

/* Skip button */
.lp-skip-btn {
  white-space: nowrap;
}

/* Accordion custom */
.lp-accordion { border-radius: var(--cc-radius-lg); overflow: hidden; box-shadow: var(--cc-shadow); }
.lp-accordion-item { border: none; border-bottom: 1px solid var(--cc-border); }
.lp-accordion-item:last-child { border-bottom: none; }
.lp-accordion-btn {
  background: var(--cc-white);
  color: var(--cc-primary);
  font-weight: 600;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none !important;
}
.lp-accordion-btn:not(.collapsed) {
  background: linear-gradient(90deg, rgba(30,64,128,.06) 0%, transparent 100%);
  color: var(--cc-primary);
}
.lp-accordion-btn::after { margin-left: auto; }
.lp-sec-icon { font-size: 1rem; color: var(--cc-secondary); flex-shrink: 0; }
.lp-sec-hint {
  font-size: .73rem;
  color: var(--cc-text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* Benefit row */
.lp-benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lp-benefit-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: white;
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 28px;
}

/* Testimonial card in form */
.lp-testimonial-card { background: var(--cc-light-bg); border-radius: 10px; padding: 16px; }
.lp-testimonial-num {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--cc-secondary);
}

/* Color input */
.lp-color-input {
  width: 56px;
  height: 40px;
  border: 1.5px solid var(--cc-border);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  display: block;
}

/* Checkbox row */
.lp-check-wrap { display: flex; align-items: center; }
.lp-check-wrap input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--cc-secondary); cursor: pointer; }

/* Preview panel */
.lp-preview-panel {
  background: var(--cc-white);
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--cc-navbar-height) + 16px);
}
.lp-preview-panel-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--cc-border);
  font-weight: 600;
  font-size: .88rem;
  color: var(--cc-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lp-preview-panel-body { padding: 1.25rem; }

/* Mini hero preview */
.lp-mini-hero {
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  color: white;
  transition: background .3s;
}
.lp-mini-headline { font-size: .82rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.lp-mini-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  color: white;
  transition: background .3s;
}

/* Color swatches */
.lp-color-swatch-row { display: flex; gap: 10px; justify-content: center; }
.lp-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  transition: background .3s;
}

/* Info box */
.lp-info-box {
  background: rgba(0,180,166,.07);
  border: 1px solid rgba(0,180,166,.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .8rem;
  color: var(--cc-text);
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .lp-step-trail { gap: 5px; }
  .lp-step { font-size: .72rem; padding: 3px 10px; }
  .lp-skip-btn { width: 100%; justify-content: center; margin-top: 8px; }
  .lp-preview-panel { position: static; margin-top: 1rem; }
  .lp-accordion-btn { font-size: .85rem; }
  .lp-sec-hint { display: none; }
}

/* =============================================
   BOTTOM NAV — botón "Más" y Drawer
   ============================================= */

.cc-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Overlay oscuro */
#cc-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,.45);
  z-index: 1040;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
#cc-drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* Drawer panel */
#cc-more-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cc-white);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(30,64,128,.18);
  z-index: 1041;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1,.6,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-height: 85vh;
  overflow-y: auto;
}
#cc-more-drawer.open {
  transform: translateY(0);
}

/* Handle */
.cc-drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--cc-border);
  border-radius: 4px;
  margin: 12px auto 0;
  cursor: pointer;
}

/* Usuario */
.cc-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--cc-border);
}
.cc-drawer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-drawer-user-info { flex: 1; min-width: 0; }
.cc-drawer-user-name  { font-weight: 700; font-size: .88rem; color: var(--cc-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-drawer-user-email { font-size: .72rem; color: var(--cc-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-drawer-close {
  background: var(--cc-light-bg);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-gray);
  font-size: .85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.cc-drawer-close:hover { background: var(--cc-border); }

/* Grid de ítems */
.cc-drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 12px 20px;
}
.cc-drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--cc-text);
  font-size: .72rem;
  font-weight: 600;
  transition: background .15s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.cc-drawer-item:hover, .cc-drawer-item:active {
  background: var(--cc-light-bg);
  color: var(--cc-primary);
}
.cc-drawer-item.active { color: var(--cc-primary); }
.cc-drawer-item.active .cc-drawer-icon {
  box-shadow: 0 0 0 2px rgba(30,64,128,.2);
}
.cc-drawer-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  transition: transform .15s;
}
.cc-drawer-item:active .cc-drawer-icon { transform: scale(.93); }
.cc-drawer-logout { color: #ef4444; }
.cc-drawer-logout:hover { background: #fef2f2; color: #ef4444; }
