/* ============================================================
   Mkaddesh Academy — capa visual "demo Lovable" (jul 2026)
   Clases con prefijo ak- para el nuevo shell y el AgentHub.
   Convive con app.css mientras migran las páginas interiores.
   ============================================================ */

:root {
  /* Esquinas rectas: 3-8 px como techo. Es lo que hace que se lea
     herramienta de trabajo y no aplicación de moda. */
  --ak-radius: 4px;
  --ak-radius-lg: 5px;
  --ak-radius-xl: 6px;
  --ak-radius-2xl: 8px;
  --ak-gradient-primary: var(--primary);
  --ak-shadow-elevated: 0 1px 2px rgba(17, 17, 17, .05), 0 14px 34px -22px rgba(17, 17, 17, .32);
  --ak-shadow-primary: 0 1px 2px rgba(217, 31, 39, .26);
}

/* ---------- Shell ---------- */
.ak-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.ak-main-col {
  padding-left: 240px;
}

.ak-main {
  padding: 22px 24px 48px;
}

.ak-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.ak-content > * + * {
  margin-top: 0;
}

.ak-content-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

@media (min-width: 1280px) {
  .ak-content.has-right-panel {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* ---------- Sidebar ---------- */
.ak-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 240px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
  border-right: 1px solid var(--ink-line);
}

.ak-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--ink-line);
}

.ak-brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  flex: 0 0 auto;
}

.ak-brand-mark .icon-svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.ak-brand-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  line-height: 1.15;
  color: #fff;
}

.ak-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .42);
}

.ak-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.ak-nav::-webkit-scrollbar { display: none; }

.ak-nav-label {
  padding: 14px 10px 5px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .32);
}

.ak-nav a,
.ak-nav summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
  transition: color .15s ease, background .15s ease;
  cursor: pointer;
  list-style: none;
}

.ak-nav summary::-webkit-details-marker { display: none; }

.ak-nav a:hover,
.ak-nav summary:hover {
  color: #fff;
  background: var(--ink-soft);
}

/* El activo se marca con el rojo de la marca, en sólido. */
.ak-nav a.active {
  color: #fff;
  background: var(--primary);
  font-weight: 600;
}

.ak-nav a.active:hover { background: var(--primary); }

.ak-nav a.active .icon-svg {
  color: #fff;
  stroke-width: 2.1;
}

.ak-nav .icon-svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

/* Grupos desplegables */
.ak-nav-group {
  margin-top: 4px;
}

.ak-nav-group summary {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  padding: 9px 12px 7px;
}

.ak-nav-group summary .ak-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.ak-nav-group[open] summary .ak-chevron {
  transform: rotate(90deg);
}

.ak-nav-group-items {
  display: grid;
  gap: 2px;
  padding-left: 4px;
}

.ak-nav-badge {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--amber);
  color: var(--ink);
  border: none;
}

.ak-nav a.active .ak-nav-badge { background: #fff; color: var(--primary); }

.ak-sidebar-footer {
  padding: 10px 8px 14px;
  border-top: 1px solid var(--ink-line);
  display: grid;
  gap: 1px;
}

.ak-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  transition: color .15s ease, background .15s ease;
}

.ak-sidebar-footer a:hover { color: #fff; background: var(--ink-soft); }
.ak-sidebar-footer form { margin: 0; }
.ak-sidebar-footer button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s ease;
}
.ak-sidebar-footer button:hover { color: #fff; }
.ak-sidebar-footer .icon-svg { width: 15px; height: 15px; stroke-width: 1.8; }

/* ---------- Topbar ---------- */
.ak-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ak-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px;
}

.ak-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  padding: 8px;
  margin-left: -8px;
  cursor: pointer;
}

.ak-menu-btn .icon-svg { width: 20px; height: 20px; }

.ak-topbar-brand {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.ak-topbar-brand .ak-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.ak-search {
  position: relative;
  flex: 1;
  max-width: 640px;
}

.ak-search .icon-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.ak-search input {
  width: 100%;
  height: 34px;
  padding: 0 14px 0 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ak-search input::placeholder { color: var(--muted-2); }

.ak-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 31, 39, .15);
}

.ak-search .icon-svg { left: 13px; width: 14px; height: 14px; }

.ak-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s ease;
  white-space: nowrap;
}

.ak-cta:hover { background: #C21B22; }
.ak-cta .icon-svg { width: 14px; height: 14px; }

.ak-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}

.ak-bell:hover { background: var(--surface-2); color: var(--text); }
.ak-bell .icon-svg { width: 17px; height: 17px; stroke-width: 1.8; }

.ak-bell .ak-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--surface);
}

.ak-avatar-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .15s ease;
}

.ak-avatar-chip:hover { border-color: var(--border-strong); }

.ak-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.ak-avatar-chip span { font-size: 14px; font-weight: 500; }

/* ---------- Cards base ---------- */
.ak-card {
  border-radius: var(--ak-radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ak-card-elevated {
  box-shadow: var(--ak-shadow-elevated);
}

/* ---------- Section header ---------- */
.ak-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ak-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ak-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ak-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--primary-wash);
  border: 1px solid rgba(217, 31, 39, .25);
  color: var(--primary-glow);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ak-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  animation: ak-pulse 2s infinite;
}

@keyframes ak-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ---------- Hero ---------- */
.ak-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--ak-radius-2xl);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: var(--ak-shadow-elevated);
}

.ak-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.ak-hero-overlay-1 { position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 40%, rgba(0,0,0,.3) 100%); }
.ak-hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(0deg, #0B0B0D 0%, rgba(11,11,13,.5) 45%, transparent 100%); }
.ak-hero-overlay-3 { position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(217,31,39,.12) 0%, transparent 60%); }

.ak-hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  padding: 72px 48px 64px;
}

.ak-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .7);
}

.ak-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  animation: ak-pulse 2s infinite;
}

.ak-hero h1 {
  margin: 30px 0 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
}

.ak-hero h1 .ak-accent {
  position: relative;
  color: var(--primary-glow);
}

.ak-hero h1 .ak-accent::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4px;
  height: 12px;
  background: rgba(217, 31, 39, .2);
  transform: skewX(-6deg);
  border-radius: 3px;
  z-index: -1;
}

.ak-hero-sub {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

.ak-hero-sub strong { color: rgba(255, 255, 255, .9); font-weight: 500; }

.ak-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

.ak-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--ak-gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--ak-shadow-primary);
  transition: filter .3s ease, transform .3s ease;
}

.ak-btn-primary:hover { filter: brightness(1.1); transform: scale(1.02); }
.ak-btn-primary:active { transform: scale(.98); }
.ak-btn-primary .icon-svg { width: 16px; height: 16px; }

.ak-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  font-weight: 500;
  transition: background .3s ease, border-color .3s ease;
}

.ak-btn-glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.ak-btn-glass .icon-svg { width: 16px; height: 16px; color: var(--primary-glow); }

.ak-hero-motto {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.ak-hero-motto p {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: rgba(255, 255, 255, .3);
}

.ak-hero-motto::before,
.ak-hero-motto::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2));
}

.ak-hero-motto::after { background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, .2)); }

.ak-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 38px;
}

.ak-hero-stats > div + div { position: relative; }

.ak-stat-num { font-size: 24px; font-weight: 700; color: #fff; }
.ak-stat-num.accent { color: var(--primary-glow); }
.ak-stat-label {
  margin-top: 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .3);
}

.ak-stat-sep { width: 1px; height: 32px; background: rgba(255, 255, 255, .1); }

/* ---------- Continuar aprendiendo ---------- */
.ak-continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.ak-course-card {
  display: flex;
  gap: 16px;
  min-height: 176px;
  padding: 16px;
  border-radius: var(--ak-radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s ease, background .2s ease;
  overflow: hidden;
  cursor: pointer;
}

.ak-course-card:hover {
  border-color: rgba(217, 31, 39, .4);
  background: var(--surface-2);
}

.ak-course-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 128px;
  height: 144px;
  border-radius: var(--ak-radius);
  overflow: hidden;
}

.ak-course-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ak-course-card:hover .ak-course-thumb img { transform: scale(1.05); }

.ak-course-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  transition: background .2s ease;
}

.ak-course-card:hover .ak-course-thumb::after { background: rgba(0, 0, 0, .1); }

.ak-course-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.ak-course-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--primary-glow);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ak-course-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ak-course-last {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ak-course-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; }

.ak-progress-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.ak-progress-meta strong { color: var(--text); font-weight: 500; }

.ak-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.ak-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ak-gradient-primary);
  transition: width .7s ease;
}

.ak-pill-btn {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 32px;
  border-radius: 999px;
  background: rgba(217, 31, 39, .15);
  color: var(--primary-glow);
  font-size: 11px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}

.ak-pill-btn:hover { background: var(--primary); color: #fff; }

/* ---------- Carrusel de rutas (pósters) ---------- */
.ak-paths-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
}

.ak-paths-row::-webkit-scrollbar { display: none; }

.ak-path-card {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  height: 380px;
  border-radius: var(--ak-radius-xl);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  box-shadow: var(--ak-shadow-elevated);
  transition: border-color .3s ease;
}

.ak-path-card:hover { border-color: rgba(217, 31, 39, .5); }

.ak-path-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.ak-path-card:hover img { transform: scale(1.1); }

.ak-path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 100%);
}

.ak-path-top {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ak-level {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
  border: 1px solid;
}

.ak-level-basic { background: rgba(16, 185, 129, .15); color: #6ee7b7; border-color: rgba(16, 185, 129, .3); }
.ak-level-intermediate { background: rgba(245, 158, 11, .15); color: #fcd34d; border-color: rgba(245, 158, 11, .3); }
.ak-level-advanced,
.ak-level-leadership { background: rgba(217, 31, 39, .18); color: var(--primary-glow); border-color: rgba(217, 31, 39, .4); }

.ak-path-count {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  font-size: 10px;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .1);
}

.ak-path-bottom {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.ak-path-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--primary-glow);
  font-weight: 600;
  margin-bottom: 8px;
}

.ak-path-bottom h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.ak-path-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
}

.ak-path-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ak-path-meta .icon-svg { width: 12px; height: 12px; }

.ak-path-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--ak-shadow-primary);
  transition: filter .2s ease;
}

.ak-path-btn:hover { filter: brightness(1.1); }

/* ---------- Masterclasses ---------- */
.ak-master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ak-master-card {
  position: relative;
  border-radius: var(--ak-radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  box-shadow: var(--ak-shadow-elevated);
  transition: border-color .3s ease;
}

.ak-master-card:hover { border-color: rgba(217, 31, 39, .5); }

.ak-master-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.ak-master-card:hover img { transform: scale(1.08); }

.ak-master-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.05) 100%);
}

.ak-master-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 31, 39, .85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ak-master-bottom {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
}

.ak-master-bottom h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.ak-master-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Panel derecho ---------- */
.ak-right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ak-panel-card {
  border-radius: var(--ak-radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
}

.ak-panel-card.elevated { box-shadow: var(--ak-shadow-elevated); }

.ak-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.ak-panel-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
}

.ak-ring-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ak-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--surface-2);
  flex: 0 0 auto;
}

.ak-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ak-ring strong { font-size: 14px; font-weight: 700; }

.ak-ring-label { min-width: 0; }
.ak-ring-label small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.ak-ring-label strong { font-size: 14px; font-weight: 600; }

.ak-panel-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ak-panel-list li { display: flex; align-items: center; gap: 12px; }
.ak-panel-list .icon-svg { width: 16px; height: 16px; color: var(--primary-glow); flex: 0 0 auto; }
.ak-panel-list .gold { color: #fbbf24; }
.ak-panel-list span { color: var(--muted); flex: 1; }
.ak-panel-list strong { font-weight: 600; }

.ak-panel-note {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--ak-radius);
  border: 1px solid rgba(217, 31, 39, .3);
  background: linear-gradient(135deg, rgba(217, 31, 39, .15), rgba(217, 31, 39, .05) 60%, transparent);
  font-size: 12px;
  line-height: 1.5;
}

.ak-panel-note strong { color: var(--primary-glow); }

.ak-reco-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.ak-reco-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ak-reco-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--border);
}

.ak-reco-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ak-reco-item:hover .ak-reco-thumb img { transform: scale(1.1); }

.ak-reco-body { flex: 1; min-width: 0; }
.ak-reco-body strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition: color .2s ease;
}
.ak-reco-item:hover .ak-reco-body strong { color: var(--primary-glow); }
.ak-reco-body small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

/* ---------- Testimonios ---------- */
.ak-testimonials {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.ak-testimonials::-webkit-scrollbar { display: none; }

.ak-testimonial {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
  border-radius: var(--ak-radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.ak-testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ak-testimonial-head img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(217, 31, 39, .4);
}

.ak-testimonial-head strong { display: block; font-size: 14px; }
.ak-testimonial-head small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }

.ak-testimonial p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Widget Sara (próximamente) ---------- */
.ak-assistant {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid rgba(217, 31, 39, .35);
  box-shadow: var(--ak-shadow-elevated);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ak-assistant img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.ak-assistant strong { display: block; font-size: 12px; }
.ak-assistant small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Mobile ---------- */
.ak-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(17, 19, 21, .95);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}

.ak-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.ak-mobile-nav a.active { color: var(--primary-glow); }
.ak-mobile-nav .icon-svg { width: 20px; height: 20px; stroke-width: 1.8; }
.ak-mobile-nav a.active .icon-svg { stroke-width: 2.4; }

.ak-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(17, 17, 17, .45);
}

@media (max-width: 1023px) {
  .ak-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 50;
  }

  .ak-shell.nav-open .ak-sidebar { transform: translateX(0); }
  .ak-shell.nav-open .ak-sidebar-backdrop { display: block; }

  .ak-main-col { padding-left: 0; }
  .ak-main { padding: 16px 16px 48px; }
  .ak-topbar-inner { padding: 0 16px; }
  .ak-menu-btn { display: block; }
  .ak-topbar-brand { display: flex; }
  .ak-cta { display: none; }
  .ak-avatar-chip span { display: none; }
  .ak-mobile-nav { display: grid; }
  .ak-hero-content { padding: 48px 24px 40px; }
  .ak-hero-stats { gap: 20px; }
  .ak-paths-row { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .ak-assistant { bottom: 84px; right: 12px; }
  .ak-content.has-right-panel { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   CRM — componentes propios (KPI, pipeline kanban, pills, leads)
   ============================================================ */

/* KPI cards */
.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.crm-kpi {
  padding: 20px 22px;
  border-radius: var(--ak-radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}
.crm-kpi .kpi-label {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.crm-kpi .kpi-label .icon-svg { width: 14px; height: 14px; color: var(--primary); }
.crm-kpi .kpi-value {
  font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-top: 8px;
  letter-spacing: -.015em; font-variant-numeric: tabular-nums;
}
.crm-kpi .kpi-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* El KPI que exige atención lleva una franja roja al costado, no un fondo. */
.crm-kpi.accent { border-left: 3px solid var(--primary); }

/* Encabezado de página */
.crm-page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.crm-page-head h1 { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.crm-page-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Pipeline kanban */
.crm-kanban {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: thin;
}
.crm-col {
  flex: 0 0 288px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--ak-radius-lg); max-height: calc(100vh - 220px);
}
.crm-col-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); border-radius: var(--ak-radius-lg) var(--ak-radius-lg) 0 0;
}
.crm-col-head strong {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.crm-col-head .col-count {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--surface-3); padding: 2px 8px; border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.crm-col-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 60px; }
.crm-col.accent .crm-col-head { border-bottom-color: var(--primary); }
.crm-col.accent .crm-col-head strong { color: var(--primary-glow); }

/* Tarjeta de lead */
.crm-lead-card {
  display: block; padding: 12px; border-radius: var(--ak-radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .15s ease; cursor: pointer;
}
.crm-lead-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.crm-lead-card .lead-top { display: flex; align-items: center; gap: 10px; }
.crm-lead-avatar {
  width: 32px; height: 32px; border-radius: 3px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--ink);
}
.crm-lead-card .lead-name { font-size: 14px; font-weight: 600; }
.crm-lead-card .lead-phone { font-size: 12px; color: var(--muted); }
.crm-lead-card .lead-msg {
  margin-top: 10px; font-size: 12px; color: var(--muted-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.crm-lead-card .lead-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Pills de estado / temperatura — EL SEMÁFORO.
   Color sólido, no tinte: se tiene que leer de un vistazo desde lejos.
     rojo    = falla o urge
     amarillo= a medias, esperando
     verde   = logrado
     negro   = informativo (era azul)
     gris    = neutro, sin dato */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 2px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; border: 1px solid transparent;
  white-space: nowrap;
}
.pill-hot { background: var(--primary); color: #fff; }
.pill-warm { background: var(--amber); color: var(--ink); }
.pill-cold { background: var(--surface-3); color: #4B5158; border-color: var(--border); }
.pill-green { background: var(--green); color: #fff; }
.pill-gold { background: var(--ink); color: #fff; }

/* Tabla en tarjeta */
.crm-table-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--ak-radius); overflow: hidden;
}
.crm-table-card table td:first-child, .crm-table-card table th:first-child { padding-left: 18px; }
.crm-table-card table { min-width: 620px; }
/* Ninguna tabla empuja la página de lado: se desplaza dentro de su tarjeta. */
.crm-table-card { overflow-x: auto; }

/* Estado vacío */
.crm-empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: var(--ak-radius);
  background: var(--surface);
}
.crm-empty .icon-svg { width: 40px; height: 40px; opacity: .4; margin-bottom: 14px; }

/* Ajuste CRM: iconos del sidebar más visibles que en la academia */
.ak-nav a .icon-svg { opacity: .92; }
.ak-nav a:hover .icon-svg, .ak-nav a.active .icon-svg { opacity: 1; }
.crm-kpi .kpi-label .icon-svg { opacity: 1; }

/* ============================================================
   CRM C3 — capa de componentes: formularios, detalle, tablas,
   auth y landing pública (identidad Mkaddesh negro/rojo/dorado)
   ============================================================ */

/* ---------- Tarjeta genérica ---------- */
.crm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--ak-radius); padding: 20px;
}
.crm-card + .crm-card { margin-top: 16px; }
.crm-card > h2 {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.crm-card > h2 .icon-svg { width: 14px; height: 14px; color: var(--primary); }
.crm-card .card-sub { font-size: 12.5px; color: var(--muted); margin: -10px 0 16px; }

/* ---------- Volver ---------- */
.crm-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 18px; transition: color .15s ease;
}
.crm-back:hover { color: var(--text); }
.crm-back .icon-svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* ---------- Formularios ---------- */
.crm-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px;
}
.crm-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .crm-form-grid { grid-template-columns: 1fr; } }

.crm-field label {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 6px;
}
.crm-field input, .crm-field textarea, .crm-field select { background: var(--surface); }
.crm-field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 34px; cursor: pointer;
}
input[type="checkbox"] {
  width: 18px; height: 18px; padding: 0; accent-color: var(--primary);
  cursor: pointer; flex: 0 0 auto;
}
input[type="file"] { padding: 9px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
input[type="file"]::file-selector-button {
  margin-right: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 12px;
  font-weight: 600; padding: 6px 12px; cursor: pointer;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }

.crm-check {
  display: inline-flex !important; align-items: center; gap: 10px;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important; font-weight: 500; color: var(--text) !important;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; margin: 0;
}
.crm-form-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* Switch (ajustes) */
.crm-switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 42px; height: 24px; }
.crm-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.crm-switch .track {
  width: 100%; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border-strong); transition: background .2s ease, border-color .2s ease;
}
.crm-switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 999px; background: #fff; opacity: 1;
  box-shadow: 0 1px 2px rgba(17,17,17,.3);
  transition: transform .2s ease;
}
.crm-switch input:checked + .track {
  background: var(--primary);
  border-color: var(--primary);
}
.crm-switch input:checked + .track::after { transform: translateX(18px); opacity: 1; }

.crm-setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.crm-setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.crm-setting-row .s-title { font-size: 14px; font-weight: 600; }
.crm-setting-row .s-desc { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Código / API key */
.crm-code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px;
  background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 13px 16px; color: #FFDE1B; word-break: break-all;
}

/* ---------- Botones extra ---------- */
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn.danger-outline {
  background: var(--surface); color: var(--primary-glow);
  border: 1px solid rgba(217,31,39,.40);
}
.btn.danger-outline:hover { background: var(--primary-wash); border-color: var(--primary); }
.btn.gold-outline {
  background: var(--surface); color: var(--gold);
  border: 1px solid #E4D08A;
}
.btn.gold-outline:hover { background: var(--amber-wash); }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-actions form { margin: 0; }

/* ---------- Detalle de lead ---------- */
/* La cabecera del lead va en negro: ancla la pantalla y separa la
   identidad del cliente de los datos editables de abajo. */
.lead-hero {
  position: relative; overflow: hidden;
  border-radius: var(--ak-radius); border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  padding: 20px 24px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lead-hero .lh-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lead-hero .lh-avatar {
  width: 52px; height: 52px; border-radius: var(--radius); flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff;
  background: var(--primary);
}
.lead-hero .lh-kicker {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: #FF6B72;
}
.lead-hero h1 { font-size: 24px; font-weight: 700; margin: 3px 0 4px; color: #fff; }
.lead-hero .lh-phone { font-size: 13px; color: rgba(255,255,255,.58); }
.lead-hero .lh-pills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lead-hero .lh-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Score ring */
.score-card { display: flex; align-items: center; gap: 18px; }
.score-ring {
  --pct: 0; width: 92px; height: 92px; border-radius: 999px; flex: 0 0 auto;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--primary-glow) calc(var(--pct) * 1%), var(--surface-3) 0);
  display: grid; place-items: center;
}
.score-ring.gold {
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--surface-3) 0);
}
.score-ring.green {
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--green) calc(var(--pct) * 1%), var(--surface-3) 0);
}
.score-ring b {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.score-ring b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.score-meta .sm-label {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.score-meta .sm-value { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-top: 3px; }
.score-meta .sm-reason { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; max-width: 520px; }

.crm-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .crm-detail-grid { grid-template-columns: 1fr; } }
.crm-detail-grid .col-stack { display: flex; flex-direction: column; gap: 18px; }
.crm-detail-grid .col-stack .crm-card + .crm-card { margin-top: 0; }

/* Pares dato/valor */
.crm-dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; margin: 0; }
@media (max-width: 560px) { .crm-dl { grid-template-columns: 1fr; } }
.crm-dl .dl-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 13px;
}
.crm-dl dt {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.crm-dl dd { margin: 5px 0 0; font-size: 13.5px; font-weight: 600; }

.crm-quote {
  margin-top: 16px; padding: 13px 15px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  font-size: 13px; color: #4B5158; line-height: 1.55; font-style: italic;
}

/* Timeline */
.crm-timeline { position: relative; padding-left: 22px; }
.crm-timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border); border-radius: 2px;
}
.crm-event { position: relative; padding-bottom: 16px; }
.crm-event:last-child { padding-bottom: 0; }
.crm-event::before {
  content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px;
  border-radius: 999px; background: var(--surface);
  border: 3px solid var(--primary);
}
.crm-event .ev-type { font-size: 12.5px; font-weight: 700; }
.crm-event .ev-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.crm-event .ev-date { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Perfil / avatares grandes ---------- */
.crm-id-card { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.crm-id-card .big-avatar {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 21px; font-weight: 700; color: #fff;
  background: var(--ink);
}
.crm-id-card .id-name { font-size: 17px; font-weight: 700; }
.crm-id-card .id-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Métricas ---------- */
.crm-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ============================================================
   AUTH — login / registro / recuperación (páginas públicas)
   ============================================================ */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-brand { display: none; } }

/* El panel de marca se queda negro: es el único lugar donde el contraste
   fuerte ayuda. La tarjeta de entrada, en cambio, es blanca. */
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; gap: 40px; padding: 48px 54px;
  background:
    radial-gradient(620px 400px at 14% 14%, rgba(217,31,39,.34), transparent 66%),
    radial-gradient(520px 360px at 86% 88%, rgba(217,31,39,.16), transparent 64%),
    var(--ink);
  color: #fff;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(620px 480px at 30% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(620px 480px at 30% 25%, #000 30%, transparent 75%);
}
.auth-logo { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-logo .mark {
  width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.auth-logo .mark .icon-svg { width: 20px; height: 20px; }
.auth-logo .name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; line-height: 1.2; color: #fff;
}
.auth-logo .name small {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em;
  color: rgba(255,255,255,.45); text-transform: uppercase;
}

.auth-hero { position: relative; z-index: 1; }
.auth-hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--amber); margin-bottom: 16px;
}
.auth-hero .kicker::before { content: ""; width: 24px; height: 2px; background: var(--amber); }
.auth-hero h1 {
  font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.08;
  letter-spacing: -.02em; text-transform: uppercase; color: #fff; text-wrap: balance;
}
.auth-hero h1 .grad { color: #FF6B72; }
.auth-hero p { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 430px; }

.auth-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.auth-points .pt { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.auth-points .pt .icon-svg { width: 15px; height: 15px; color: #FF6B72; flex: 0 0 auto; }
.auth-points .pt b { color: #fff; font-weight: 600; }

.auth-panel {
  display: flex; align-items: center; justify-content: center; padding: 48px 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 396px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--ak-radius-xl);
  padding: 30px; box-shadow: var(--shadow);
}
.auth-card .a-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: -.005em;
}
.auth-card .a-sub { font-size: 13.5px; color: var(--muted); margin: 7px 0 22px; }
.auth-card .a-sub a { color: var(--primary-glow); font-weight: 600; }
.auth-card .a-sub a:hover { text-decoration: underline; }
.auth-card form { display: flex; flex-direction: column; gap: 15px; }
.auth-card .crm-field input { background: var(--surface); height: 42px; }
.auth-card form .btn { width: 100%; height: 42px; font-size: 14px; margin-top: 4px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.auth-row .crm-check { font-size: 13px !important; color: var(--muted) !important; }
.auth-row a { color: var(--muted); font-weight: 600; }
.auth-row a:hover { color: var(--primary-glow); }
.auth-foot { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-msg { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.auth-msg + .auth-msg { margin-top: 10px; }
.auth-errors {
  background: var(--primary-wash); border: 1px solid rgba(217,31,39,.32);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: #8E1219;
}
.auth-errors ul { margin: 0; padding-left: 18px; }
.auth-errors p { margin: 0; }

/* ============================================================
   LANDING pública
   ============================================================ */
.pub-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: var(--ink); color: #fff;
  border-bottom: 1px solid var(--ink-line);
}
.pub-nav .links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.62); }
.pub-nav .links a:hover { color: #fff; }
@media (max-width: 720px) { .pub-nav .links { display: none; } }
.pub-nav .actions { display: flex; align-items: center; gap: 10px; }
.pub-nav .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.pub-nav .btn.secondary:hover { background: var(--ink-soft); border-color: rgba(255,255,255,.4); }

.pub-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 9vw, 104px) 20px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.pub-hero > * { position: relative; }
.pub-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold); border: 1px solid #E4D08A; border-radius: 2px;
  padding: 6px 12px; background: var(--amber-wash); margin-bottom: 22px;
}
.pub-hero h1 {
  font-size: clamp(34px, 5.6vw, 62px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.025em; max-width: 900px; margin: 0 auto;
  text-transform: uppercase; text-wrap: balance;
}
.pub-hero h1 .grad { color: var(--primary); }
.pub-hero .sub {
  margin: 20px auto 0; max-width: 620px; font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted); line-height: 1.65;
}
.pub-hero .cta-row { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pub-hero .cta-row .btn { height: 46px; padding: 0 26px; font-size: 14.5px; }

/* Mock del producto en el hero */
/* El mock del hero enseña el producto real: menú negro, lienzo claro. */
.pub-mock {
  position: relative; max-width: 980px; margin: clamp(36px, 5vw, 64px) auto 0;
  border-radius: var(--ak-radius-2xl) var(--ak-radius-2xl) 0 0;
  border: 1px solid var(--border-strong); border-bottom: none;
  background: var(--surface); box-shadow: 0 -2px 40px -18px rgba(17,17,17,.35);
  overflow: hidden; text-align: left;
}
.pub-mock .m-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--ink); border-bottom: 1px solid var(--ink-line);
}
.pub-mock .m-bar i { width: 9px; height: 9px; border-radius: 999px; background: #3A3A3A; }
.pub-mock .m-bar i:first-child { background: var(--primary); }
.pub-mock .m-bar span {
  margin-left: 10px; font-size: 11px; color: rgba(255,255,255,.45);
  font-family: ui-monospace, Consolas, monospace;
}
.pub-mock .m-body { display: grid; grid-template-columns: 170px 1fr; min-height: 320px; background: var(--bg); }
@media (max-width: 720px) { .pub-mock .m-body { grid-template-columns: 1fr; } .pub-mock .m-side { display: none; } }
.pub-mock .m-side { padding: 12px 8px; background: var(--ink); }
.pub-mock .m-side .s-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 3px;
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.6);
}
.pub-mock .m-side .s-item.on { background: var(--primary); color: #fff; }
.pub-mock .m-side .s-item i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .6; }
.pub-mock .m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
@media (max-width: 560px) { .pub-mock .m-cols { grid-template-columns: 1fr; } }
.pub-mock .m-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px; }
.pub-mock .m-col .c-head {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 3px 5px 9px; display: flex; justify-content: space-between;
}
.pub-mock .m-lead {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 8px 9px; margin-bottom: 7px;
}
.pub-mock .m-lead .l-name { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
.pub-mock .m-lead .l-name i {
  width: 17px; height: 17px; border-radius: 2px; flex: 0 0 auto; background: var(--ink);
}
.pub-mock .m-lead .l-line { height: 5px; border-radius: 2px; background: var(--surface-3); margin-top: 7px; width: 80%; }
.pub-mock .m-lead .l-pill {
  display: inline-block; margin-top: 8px; font-size: 8.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; border-radius: 2px; padding: 2.5px 7px;
}
.pub-mock .m-lead .l-pill.hot { background: var(--primary); color: #fff; }
.pub-mock .m-lead .l-pill.warm { background: var(--amber); color: var(--ink); }
.pub-mock .m-lead .l-pill.ai { background: var(--green); color: #fff; }

/* Secciones landing */
.pub-section { padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.pub-section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(32px, 5vw, 56px); }
.pub-section-head .pk {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--primary-glow); margin-bottom: 12px;
}
.pub-section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: -.018em;
  text-transform: uppercase; text-wrap: balance;
}
.pub-section-head p { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.6; }

.pub-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pub-feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--ak-radius); padding: 24px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pub-feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.pub-feature .f-icon {
  width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--primary); margin-bottom: 15px;
}
.pub-feature .f-icon .icon-svg { width: 18px; height: 18px; color: #fff; }
.pub-feature .f-icon.gold { background: var(--amber); }
.pub-feature .f-icon.gold .icon-svg { color: var(--ink); }
.pub-feature h3 { font-size: 15.5px; font-weight: 700; }
.pub-feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; }

/* El bloque de cierre va en negro: es el único momento de la landing
   que se permite gritar. */
.pub-cta {
  text-align: center; border-radius: var(--ak-radius-2xl); border: 1px solid var(--ink);
  background:
    radial-gradient(560px 260px at 50% -20%, rgba(217,31,39,.34), transparent 66%),
    var(--ink);
  color: #fff;
  padding: clamp(44px, 6vw, 68px) 24px;
}
.pub-cta h2 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em;
  text-transform: uppercase; color: #fff;
}
.pub-cta p { color: rgba(255,255,255,.62); margin: 12px auto 24px; max-width: 480px; font-size: 15px; line-height: 1.6; }

.pub-footer {
  border-top: 1px solid var(--border); padding: 26px clamp(18px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.pub-footer .links { display: flex; gap: 18px; }
.pub-footer a:hover { color: var(--primary-glow); }

/* Página de texto legal / prosa pública */
.pub-prose { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 20px; }
.pub-prose h1 { font-size: 28px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.pub-prose h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.pub-prose p, .pub-prose li { font-size: 14.5px; color: #3B4046; line-height: 1.75; }

/* Regla base de iconos (heredada de app.css de la academia; faltaba en el CRM) */
.icon-svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.btn .icon-svg { width: 15px; height: 15px; }

/* ============================================================
   Llamadas de venta — ficha en vivo
   ============================================================ */
/* La barra de la llamada va en negro y con el cronómetro grande:
   es lo único que la vendedora mira de reojo mientras habla. */
.call-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding: 16px 22px; margin-bottom: 16px;
  border-radius: var(--ak-radius); border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
}
.call-bar .cb-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.call-bar .lh-avatar {
  width: 46px; height: 46px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--primary);
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff;
  flex: 0 0 auto;
}
.call-bar .lh-kicker {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: #FF6B72;
}
.call-bar h1 { font-size: 21px; font-weight: 700; margin: 2px 0 4px; color: #fff; }
.call-bar .cb-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.72);
}
.call-bar .cb-phone:hover { color: #fff; }
.call-bar .cb-phone .icon-svg { width: 14px; height: 14px; }
.call-bar .cb-meta { text-align: right; }
.cb-timer {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.015em; line-height: 1;
}
.cb-saved { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 5px; }
.cb-saved.saving { color: var(--amber); }
.cb-saved.ok { color: #5BD48E; font-weight: 600; }
.cb-saved.err { color: #FF8A90; font-weight: 700; }
.cb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Aviso de condición grave: amarillo, porque no es un error del sistema
   sino una instrucción de qué hacer. */
.call-alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; margin-bottom: 16px; border-radius: var(--radius);
  background: var(--amber-wash); border: 1px solid #F2DE7A;
  border-left: 3px solid var(--amber);
  font-size: 13.5px; line-height: 1.55; color: var(--text);
}
.call-alert .icon-svg { color: var(--gold); margin-top: 2px; }

.crm-note {
  margin: 16px 0 0; padding: 11px 13px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}

/* Selector de canal del consentimiento */
.canal-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.canal-opt {
  margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important;
  display: flex !important; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 6px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-body) !important;
  font-size: 13px !important; font-weight: 600; color: var(--muted) !important;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.canal-opt input { width: 15px; height: 15px; accent-color: var(--primary); }
.canal-opt:has(input:checked) {
  border-color: var(--primary); color: var(--text) !important;
  background: var(--primary-wash);
}

/* Lista de envíos de consentimiento */
.consent-list { display: flex; flex-direction: column; gap: 9px; }
.consent-row {
  padding: 11px 13px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .2s ease, background .2s ease;
}
/* Firmado: verde, y se nota sin tener que leerlo. */
.consent-row.firmado {
  border-color: rgba(0,145,75,.35); border-left: 3px solid var(--green);
  background: var(--green-wash);
}
.consent-row .cr-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.consent-row .cr-doc { font-size: 13px; font-weight: 700; }
.consent-row .cr-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.consent-row .cr-error { color: var(--primary-glow); font-weight: 600; }
.consent-row .cr-link a {
  display: inline-block; margin-top: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--green);
}

/* ============================================================
   Fase 2 y 3 — marcador, bóveda, sugerencias y ficha de batalla
   ============================================================ */

/* ---------- Softphone ---------- */
.softphone .sp-estado {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 9px 12px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.softphone .sp-punto {
  width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto;
  background: var(--muted-2);
}
.softphone [data-estado="listo"] { color: var(--green); border-color: rgba(0,145,75,.3); background: var(--green-wash); }
.softphone [data-estado="listo"] .sp-punto { background: var(--green); }
.softphone [data-estado="llamando"] { color: var(--gold); border-color: #F2DE7A; background: var(--amber-wash); }
.softphone [data-estado="llamando"] .sp-punto { background: var(--amber); animation: sp-latido 1s infinite; }
.softphone [data-estado="en_curso"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.softphone [data-estado="en_curso"] .sp-punto { background: var(--green); animation: sp-latido 1.4s infinite; }
.softphone [data-estado="error"] { color: var(--primary-glow); border-color: rgba(217,31,39,.35); background: var(--primary-wash); }
.softphone [data-estado="error"] .sp-punto { background: var(--primary); }

@keyframes sp-latido { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .softphone .sp-punto { animation: none !important; }
}

.softphone .sp-numero {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-top: 14px; font-variant-numeric: tabular-nums;
}
.softphone .sp-desde { font-size: 12px; color: var(--muted); margin-top: 2px; }
.softphone .sp-botones { display: flex; gap: 8px; margin-top: 6px; }
.softphone .sp-error:not(:empty) {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--radius);
  background: var(--primary-wash); border: 1px solid rgba(217,31,39,.3);
  border-left: 3px solid var(--primary);
  font-size: 12.5px; color: #8E1219; line-height: 1.5;
}

/* ---------- Sugerencias de la IA ---------- */
.sug-card { border-left: 3px solid var(--amber); }
.sug-list { display: flex; flex-direction: column; gap: 10px; }
.sug {
  padding: 12px 13px; border-radius: var(--radius);
  background: var(--amber-wash); border: 1px solid #F2DE7A;
  transition: opacity .2s ease;
}
.sug-campo {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--gold);
}
.sug-valor { font-size: 14px; font-weight: 700; margin-top: 4px; word-break: break-word; }
.sug-cita {
  font-size: 12px; color: #5B5230; margin-top: 6px; line-height: 1.5; font-style: italic;
}
.sug-acciones { display: flex; gap: 7px; margin-top: 11px; }
.sug-acciones .btn { flex: 1; }

/* Campo que acaba de recibir una sugerencia aceptada */
.campo-aceptado {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(0,145,75,.15) !important;
}

/* ---------- Bóveda en la ficha del lead ---------- */
.vault-card { border-left: 3px solid var(--ink); }
.vault-rows { display: flex; flex-direction: column; gap: 9px; }
.vault-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.vault-row .vr-label {
  display: block; font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.vault-row .vr-value {
  display: block; margin-top: 3px; font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.vault-row .vr-revelado { color: var(--primary-glow); }
.vault-row .vr-error { font-size: 12px; font-weight: 500; color: var(--primary-glow); }

/* ---------- Ficha de batalla ---------- */
.brief-texto { font-size: 14.5px; line-height: 1.7; margin: 0; color: #2A2F35; }
.brief-apertura {
  margin: 0; padding: 15px 17px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-size: 15.5px; line-height: 1.65; font-style: italic;
}
.obj-list { display: flex; flex-direction: column; gap: 12px; }
.obj {
  padding: 13px 15px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}
.obj .obj-dice { font-size: 13.5px; font-weight: 700; font-style: italic; }
.obj .obj-respondes { font-size: 13.5px; color: #3B4046; margin-top: 7px; line-height: 1.6; }

/* ---------- Alta en caliente (llamada entrante) ---------- */
.entrante-caja {
  max-width: 520px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--ak-radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.entrante-caja .entrada-grande {
  height: 54px; font-size: 22px; font-weight: 700;
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* Cronómetro sin llamada activa: se ve, pero no finge que corre. */
.cb-timer.apagado { color: rgba(255, 255, 255, .3); }
