/* ============================================================
   ZYRA CRM — Panel de Llamadas: 3 columnas + mobile tabs
   Mobile-first: columna central (script) visible por defecto
   ============================================================ */

/* ── CONTENEDOR 3 COLUMNAS ── */
.calls-panel {
  display: grid;
  grid-template-columns: 25% 45% 30%;
  grid-template-areas: "ficha script llamada";
  gap: 0;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.col-ficha   { grid-area: ficha;   overflow-y: auto; border-right: 1px solid var(--border); }
.col-script  { grid-area: script;  overflow-y: auto; background: #fff; }
.col-llamada { grid-area: llamada; overflow-y: auto; border-left: 1px solid var(--border); }

.col-inner { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }

/* ── FICHA CLIENTE ── */
.avatar-grande {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--sidebar); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; flex-shrink: 0;
}
.cliente-nombre { font-size: 1.1rem; font-weight: 700; margin: 0; }
.cliente-telefono { color: var(--muted); font-size: .9rem; }
.cliente-header { display: flex; align-items: center; gap: .85rem; }

.tag-condicion {
  display: inline-block; padding: .25em .8em;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: #ede0f8; color: var(--sidebar);
}
.tag-condicion.diabetes      { background: #fce7f3; color: #9d174d; }
.tag-condicion.hipertension  { background: #fee2e2; color: #991b1b; }
.tag-condicion.prostata      { background: #dbeafe; color: #1d4ed8; }
.tag-condicion.articulaciones{ background: #d1fae5; color: #065f46; }

.score-badge {
  padding: .2em .65em; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.score-A { background: #d1f5ea; color: #0d6b4a; }
.score-B { background: #fef3c7; color: #92400e; }
.score-C { background: #e9e9e7; color: #4a4a47; }

.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ficha-item { display: flex; flex-direction: column; gap: .15rem; }
.ficha-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.ficha-value { font-size: .95rem; font-weight: 500; }

.btn-llamar-ahora {
  background: var(--accent); color: #fff;
  width: 100%; padding: .9rem; border-radius: var(--radius);
  font-size: 1.05rem; font-weight: 700; border: none; cursor: pointer;
  transition: opacity .15s;
}
.btn-llamar-ahora:hover { opacity: .88; }
.btn-llamar-ahora:disabled { opacity: .45; cursor: not-allowed; }

/* ── COLA DE LEADS ── */
.cola-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; border-bottom: 1px solid var(--border); margin-bottom: .5rem;
}
.cola-header h4 { font-size: .9rem; font-weight: 700; margin: 0; }

.lead-cola-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .75rem; border-radius: var(--radius); cursor: pointer;
  transition: background .15s; gap: .5rem;
}
.lead-cola-item:hover  { background: #f0eaf8; }
.lead-cola-item.activo { background: #ede0f8; border-left: 3px solid var(--sidebar); }
.lead-cola-info { min-width: 0; }
.lead-cola-nombre {
  font-size: .9rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lead-cola-sub { font-size: .75rem; color: var(--muted); }

.paginacion {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .5rem 0; margin-top: .25rem;
}
.btn-pag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .3rem .7rem;
  font-size: .82rem; cursor: pointer; font-family: inherit; font-weight: 600;
}
.btn-pag:disabled { opacity: .4; cursor: not-allowed; }
.pag-info { font-size: .8rem; color: var(--muted); }

/* ── TOGGLE MODO ── */
.modo-toggle {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; background: var(--bg);
  border-radius: var(--radius); font-size: .85rem;
}
.modo-toggle label { cursor: pointer; font-weight: 500; }
input[type="checkbox"].toggle-switch { accent-color: var(--sidebar); width: 1.1rem; height: 1.1rem; }

/* ── COLUMNA CENTRAL: Script ── */
.etapa-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.etapa-num {
  background: var(--sidebar); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.etapa-titulo { font-size: .95rem; font-weight: 700; }
.badge-ia {
  background: #ede0f8; color: #4A1A6B;
  font-size: .7rem; font-weight: 700;
  padding: .15em .55em; border-radius: 999px;
}

.script-texto {
  font-size: 18px; line-height: 1.7;
  padding: 1.25rem; background: #fff;
  min-height: 180px; border-bottom: 1px solid var(--border);
}
.script-texto .var-cliente    { color: var(--sidebar); font-weight: 700; }
.script-texto .var-reemplazada { color: #4A1A6B; font-weight: 500; }
.script-texto .var-vacia        { color: var(--muted); font-style: italic; }

.btn-siguiente-etapa {
  background: var(--sidebar); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; border: none; cursor: pointer;
  display: flex; align-items: center; gap: .5rem; transition: opacity .15s;
  margin: .75rem 1rem;
}
.btn-siguiente-etapa:hover    { opacity: .88; }
.btn-siguiente-etapa:disabled { opacity: .4; cursor: not-allowed; }

/* ── FORMULARIO DE PEDIDO ── */
.pedido-form { padding: .75rem 1rem; border-top: 1px solid var(--border); }
.pedido-form h4 { font-size: .9rem; font-weight: 700; margin-bottom: .6rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .5rem; }
.form-row.full { grid-template-columns: 1fr; }
.form-row input, .form-row select { font-size: .9rem; padding: .55rem .75rem; }

.paquete-selector {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem;
}
.paquete-btn {
  padding: .4rem .8rem; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--bg); font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s; font-family: inherit;
}
.paquete-btn.seleccionado {
  border-color: var(--sidebar); background: #ede0f8; color: var(--sidebar);
}

.cross-sell-box {
  background: #fef3c7; border: 1px solid #fbbf24;
  border-radius: var(--radius); padding: .75rem;
  margin: .5rem 1rem;
}
.cross-sell-box p  { font-size: .85rem; margin-bottom: .4rem; }
.btn-cross-sell {
  background: #f59e0b; color: #fff;
  border: none; border-radius: var(--radius);
  padding: .5rem 1rem; font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity .15s;
}
.btn-cross-sell:hover { opacity: .88; }

/* ── COLUMNA DERECHA: Cronómetro ── */
.cronometro-wrap { text-align: center; padding: 1rem; }
.timer-grande {
  font-size: 4rem; font-weight: 700; letter-spacing: .08em;
  line-height: 1; padding: .4rem 0 .6rem; transition: color .4s;
}
.semaforo-verde    { color: #5DCAA5; }
.semaforo-amarillo { color: #D4A017; }
.semaforo-naranja  { color: #D85A30; }
.semaforo-rojo     { color: #B91C1C; animation: titilar 1s ease-in-out infinite; }

@keyframes titilar { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.semaforo-fases {
  display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin-top: .25rem;
}
.fase-chip {
  font-size: .7rem; font-weight: 700; padding: .18em .55em; border-radius: 999px;
}
.fase-chip.verde    { background: #d1f5ea; color: #0d6b4a; }
.fase-chip.amarillo { background: #fef3c7; color: #92400e; }
.fase-chip.naranja  { background: #ffe4d6; color: #993c18; }
.fase-chip.rojo     { background: #fee2e2; color: #991b1b; }

/* ── ÍNDICE DE ETAPAS ── */
.etapas-indice { padding: .5rem 1rem; }
.etapas-indice h4 { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.etapa-item-nav {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem; border-radius: var(--radius);
  cursor: pointer; transition: background .12s; font-size: .85rem;
}
.etapa-item-nav:hover   { background: #f0eaf8; }
.etapa-item-nav.activa  { background: #ede0f8; font-weight: 700; color: var(--sidebar); }
.etapa-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; flex-shrink: 0; background: #fff;
}
.etapa-item-nav.activa  .etapa-dot { background: var(--sidebar); border-color: var(--sidebar); color: #fff; }
.etapa-item-nav.completada .etapa-dot { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── MINI STATS BAR ── */
.mini-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .5rem 1rem;
}
.mini-stat {
  background: var(--bg); border-radius: var(--radius);
  padding: .5rem .6rem; text-align: center;
  border-left: 3px solid var(--border);
}
.mini-stat.verde  { border-left-color: var(--accent); }
.mini-stat.gris   { border-left-color: var(--muted); }
.mini-stat.naranja{ border-left-color: var(--alert); }
.mini-stat.morado { border-left-color: var(--sidebar); }
.mini-num   { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.mini-label { font-size: .68rem; color: var(--muted); }
.meta-mini  { height: 4px; background: var(--border); border-radius: 2px; margin-top: .3rem; }
.meta-mini-fill { height: 100%; background: var(--sidebar); border-radius: 2px; transition: width .4s; }

/* ── BOTONES RESULTADO ── */
.resultado-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .75rem 1rem;
}
.btn-res {
  padding: .85rem .5rem; border-radius: var(--radius);
  font-size: .88rem; font-weight: 700; border: none; cursor: pointer;
  font-family: inherit; transition: opacity .15s;
}
.btn-res:hover    { opacity: .88; }
.btn-res:disabled { opacity: .4; cursor: not-allowed; }
.btn-venta        { background: var(--accent);  color: #fff; }
.btn-cancelado    { background: var(--alert);   color: #fff; }
.btn-no-contesta  { background: var(--muted);   color: #fff; }
.btn-aplazar      { background: var(--sidebar); color: #fff; }

/* ── MOBILE TABS (< 768px) ── */
.mobile-tabs {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--sidebar); z-index: 100;
  height: 56px;
}
.mobile-tabs-inner {
  display: flex; height: 100%;
}
.tab-btn {
  flex: 1; background: none; border: none; color: rgba(255,255,255,.65);
  font-size: .78rem; font-weight: 600; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; transition: color .15s, background .15s;
}
.tab-btn.activo { color: #fff; background: rgba(255,255,255,.12); }
.tab-icon { font-size: 1.1rem; line-height: 1; }

/* ── PANEL DE OBJECIONES IA ── */
#panel-objeciones { padding: .5rem 1rem; }

.btn-activar-obj {
  background: #4A1A6B; color: #fff;
  border: none; border-radius: var(--radius);
  padding: .55rem 1rem; font-size: .88rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
  display: flex; align-items: center; gap: .4rem;
}
.btn-activar-obj:hover    { opacity: .88; }
.btn-activar-obj:disabled { opacity: .5; cursor: not-allowed; }

.obj-panel {
  background: #fff; border-left: 3px solid #4A1A6B;
  border-radius: 8px; padding: 12px; font-size: 14px;
  margin-top: .6rem; display: flex; flex-direction: column; gap: .6rem;
}

#obj-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .55rem .75rem; font-size: .88rem; font-family: inherit;
  resize: vertical; min-height: 60px; box-sizing: border-box;
}
#obj-textarea:focus { outline: none; border-color: #4A1A6B; }

.btn-generar-obj {
  background: #4A1A6B; color: #fff; border: none;
  border-radius: var(--radius); padding: .55rem 1rem;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: inherit; align-self: flex-start; transition: opacity .15s;
}
.btn-generar-obj:hover { opacity: .88; }

.obj-spinner {
  display: flex; align-items: center; gap: .75rem;
  padding: .4rem 0; color: var(--muted); font-size: .9rem;
}
.spinner {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: #4A1A6B;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.obj-card {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .55rem .65rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fafaf9;
}
.obj-num {
  background: #4A1A6B; color: #fff; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.obj-texto { flex: 1; font-size: .88rem; line-height: 1.5; margin: 0; }
.btn-usar-obj {
  background: #ede0f8; color: #4A1A6B; border: none;
  border-radius: var(--radius); padding: .3rem .65rem;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.btn-usar-obj:hover { background: #d8c0f0; }

/* ── CALCULADORA DE PEDIDO ── */
.pedido-calculadora {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}
.calc-main-title {
  font-size: .95rem; font-weight: 700; margin-bottom: 1rem;
}
.calc-section { margin-bottom: 1.5rem; }
.calc-section-title { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.calc-nota-escala {
  font-size: .75rem; color: #92400e;
  background: #FFFBEB; border: 1px solid #FCD34D;
  border-radius: 6px; padding: .35rem .65rem; margin-bottom: .75rem;
}
.calc-placeholder { color: var(--muted); font-size: .85rem; }

/* Tarjetas de paquete */
.calc-paquetes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
}
.calc-paquete-card {
  position: relative; margin-top: 12px;
  border: 1.5px solid #E5E7EB; border-radius: 12px; background: #fff;
  padding: .75rem .4rem .6rem; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.calc-paquete-card:hover { border-color: #4A1A6B; }
.calc-paquete-card.seleccionado { border: 2px solid #4A1A6B; background: #F5F0FF; }
.calc-paquete-qty { font-size: 1.5rem; font-weight: 700; color: #2C2C2A; line-height: 1.1; }
.calc-paquete-label { font-size: .7rem; color: var(--muted); margin-bottom: .2rem; }
.calc-paquete-precio { font-size: .76rem; font-weight: 700; color: #4A1A6B; }

/* Badges sobre tarjetas */
.badge-paquete {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: .62rem; font-weight: 700; padding: .18em .55em;
  border-radius: 999px; white-space: nowrap;
}
.badge-mas-vendido { background: #FFD700; color: #6B4E00; }
.badge-mejor-valor { background: #5DCAA5; color: #fff; }

/* Cross-sell Detox */
.calc-detox-box {
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: 12px;
  padding: .75rem; transition: background .15s, border-color .15s;
}
.calc-detox-box.activo { background: #FFFBEB; border-color: #F59E0B; }
.calc-detox-label {
  display: flex; align-items: flex-start; gap: .65rem; cursor: pointer;
}
.calc-detox-label input[type="checkbox"] {
  margin-top: .2rem; accent-color: #4A1A6B;
  width: 1.1rem; height: 1.1rem; flex-shrink: 0;
}
.calc-detox-info { font-size: .85rem; line-height: 1.5; }
.detox-precio-especial { color: #92400e; }

/* Frascos adicionales */
.calc-adic-row {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.calc-adic-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #E5E7EB;
  background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s; flex-shrink: 0;
}
.calc-adic-btn:hover:not(:disabled) { border-color: #4A1A6B; color: #4A1A6B; }
.calc-adic-btn:disabled { opacity: .4; cursor: not-allowed; }
.calc-adic-num { font-size: 1.2rem; font-weight: 700; min-width: 2ch; text-align: center; }
.calc-adic-texto { font-size: .8rem; color: var(--muted); }

/* Resumen del pedido */
.calc-resumen {
  background: #F5F0FF; border: 1.5px solid #4A1A6B; border-radius: 12px;
  padding: 1rem;
}
.calc-envio-badge {
  background: #5DCAA5; color: #fff; font-size: .82rem; font-weight: 700;
  padding: .28em .8em; border-radius: 999px; display: inline-block; margin-bottom: .75rem;
}
.calc-desglose { margin-bottom: .6rem; }
.calc-desglose-row {
  display: flex; justify-content: space-between;
  font-size: .84rem; padding: .22rem 0;
  border-bottom: 1px solid rgba(74,26,107,.12);
}
.calc-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: .6rem; margin-top: .1rem;
}
.calc-total-label { font-size: .9rem; font-weight: 700; color: #4A1A6B; }
.calc-total-valor { font-size: 28px; font-weight: 700; color: #4A1A6B; }
.calc-confirmar-btn {
  background: #5DCAA5; color: #fff; border: none; border-radius: var(--radius);
  padding: .75rem 1.25rem; font-size: .95rem; font-weight: 700;
  cursor: pointer; font-family: inherit; width: 100%; margin-top: .75rem;
  transition: opacity .15s;
}
.calc-confirmar-btn:hover { opacity: .88; }

/* ── VERIFICACIÓN DE COBERTURA ── */
.cobertura-placeholder { color: var(--muted); font-size: .85rem; }

.cobertura-panel {
  background: #fff;
  border-left: 3px solid #E5E7EB;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: .75rem;
  transition: border-color .2s;
}
.cobertura-panel[data-estado="verde"]  { border-left-color: #5DCAA5; }
.cobertura-panel[data-estado="naranja"]{ border-left-color: #F59E0B; }
.cobertura-panel[data-estado="rojo"]   { border-left-color: #D85A30; }

.cobertura-titulo {
  font-size: .9rem; font-weight: 700; color: #374151; margin-bottom: .65rem;
}

.cobertura-busqueda-wrap { position: relative; }

.cobertura-input {
  width: 100%; padding: .55rem .75rem; font-size: .9rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; box-sizing: border-box;
}
.cobertura-input:focus { outline: none; border-color: #4A1A6B; }

.cobertura-dropdown {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 50;
  max-height: 220px; overflow-y: auto;
}
.cobertura-dropdown-item {
  padding: .55rem .75rem; font-size: .88rem; cursor: pointer;
  border-bottom: 1px solid #f0f0ee; transition: background .12s;
}
.cobertura-dropdown-item:last-child { border-bottom: none; }
.cobertura-dropdown-item:hover { background: #f0eaf8; }
.cobertura-dropdown-empty { color: var(--muted); cursor: default; }
.cobertura-dropdown-empty:hover { background: none; }

.cobertura-mx-row {
  display: flex; gap: .5rem; align-items: center;
}
.cobertura-mx-row .cobertura-input { flex: 1; max-width: 180px; }

.btn-verificar-cp {
  background: #4A1A6B; color: #fff; border: none;
  border-radius: var(--radius); padding: .55rem 1rem;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity .15s; white-space: nowrap;
}
.btn-verificar-cp:hover    { opacity: .88; }
.btn-verificar-cp:disabled { opacity: .5; cursor: not-allowed; }

.cobertura-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35em .8em; border-radius: 999px;
  font-size: .83rem; font-weight: 700; margin-top: .6rem;
}
.cobertura-badge-verde  { background: #d1f5ea; color: #065f46; }
.cobertura-badge-naranja{ background: #fef3c7; color: #92400e; }
.cobertura-badge-rojo   { background: #fee2e2; color: #991b1b; }

.btn-google-maps {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #4A1A6B; color: #fff; text-decoration: none;
  border-radius: var(--radius); padding: .5rem 1rem;
  font-size: .84rem; font-weight: 700; margin-top: .55rem;
  transition: opacity .15s;
}
.btn-google-maps:hover { opacity: .88; }
.maps-hint {
  font-size: .75rem; color: var(--muted); margin: .3rem 0 0;
}

.envio-label {
  font-size: .8rem; font-weight: 700; color: var(--muted);
  display: block; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em;
}
#envio-observaciones {
  width: 100%; padding: .55rem .75rem; font-size: .88rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; resize: vertical; box-sizing: border-box;
}
#envio-observaciones:focus { outline: none; border-color: #4A1A6B; }

/* ── MX modo ciudad: enlace toggle ── */
.link-buscar-ciudad {
  display: inline-block;
  font-size: .78rem;
  color: var(--sidebar);
  text-decoration: underline;
  margin-top: .4rem;
  cursor: pointer;
  transition: opacity .15s;
}
.link-buscar-ciudad:hover { opacity: .7; }

@media (max-width: 767px) {
  .calls-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "ficha";
    height: calc(100vh - 120px);
  }
  .col-ficha, .col-script, .col-llamada {
    display: none;
    grid-area: unset;
    border: none;
    height: 100%;
    overflow-y: auto;
  }
  .col-script { display: flex; flex-direction: column; }
  .calls-panel[data-tab="ficha"]   .col-ficha   { display: flex; flex-direction: column; }
  .calls-panel[data-tab="ficha"]   .col-script  { display: none; }
  .calls-panel[data-tab="script"]  .col-script  { display: flex; flex-direction: column; }
  .calls-panel[data-tab="llamada"] .col-llamada { display: flex; flex-direction: column; }
  .calls-panel[data-tab="llamada"] .col-script  { display: none; }
  .mobile-tabs { display: block; }
  .calc-paquetes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── NOTA DEL SUPERVISOR (Sesión 10) ── */
.nota-agente {
  margin: .75rem 0;
  padding: .6rem .9rem;
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #374151;
  font-style: italic;
}
.nota-agente-titulo {
  display: block;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #B45309;
  margin-bottom: .3rem;
}

/* ── ANALIZADOR DE SÍNTOMAS IA (Sesión 10) ── */
.sintomas-panel {
  margin: .75rem 0;
  padding: .85rem 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}
.sintomas-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .88rem;
  font-family: inherit;
  resize: vertical;
  background: #fff;
}
.btn-analizar-sintomas {
  margin-top: .5rem;
  background: #6B7280;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .45rem 1rem;
  font-size: .85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background .15s;
}
.btn-analizar-sintomas:hover { background: #4B5563; }
.sintomas-spinner {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .5rem; color: var(--muted); font-size: .85rem;
}
.sintomas-resultado {
  margin-top: .75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.sintomas-hallazgo {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .85rem;
}
.sintomas-sugerencia {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .85rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.sintomas-medico-badge {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: .4rem .75rem;
  font-size: .82rem;
  font-weight: 700;
}
.btn-sugerir-producto {
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: .25rem .65rem;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sugerir-producto:disabled { background: #A78BFA; cursor: default; }

/* ── TOAST (Sesión 10) ── */
.zyra-toast {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.zyra-toast-success { background: #059669; }
.zyra-toast-error   { background: #DC2626; }
.zyra-toast-visible { opacity: 1; transform: translateY(0); }
