/* Aira Recepción · estilos propios (prefijo rec-) */
.rec-controles { display: grid; gap: 14px; padding: 16px 18px; }
.rec-ctl-fila { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec-acciones { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.rec-ico { display: inline-flex; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.rec-ico svg { width: 15px; height: 15px; }
.rec-escenarios { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-escenario { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--linea); background: rgba(255, 255, 255, .03); color: var(--texto-2); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; text-align: left; }
.rec-escenario:hover { border-color: var(--linea-2); color: #fff; transform: translateY(-1px); }
.rec-escenario .n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--gris-3); color: var(--texto-2); flex: none; }
.rec-escenario.on { border-color: color-mix(in srgb, var(--acento) 55%, transparent); background: color-mix(in srgb, var(--acento) 13%, transparent); color: #fff; }
.rec-escenario.on .n { background: var(--acento); color: #04101c; }
.rec-escenario.on.sonando .n { animation: rec-latido 1.4s ease-in-out infinite; }
@keyframes rec-latido { 50% { transform: scale(1.15); } }
.rec-esc-desc { font-size: 13.5px; color: var(--mut); min-height: 20px; }
.rec-esc-desc b { color: var(--texto-2); font-weight: 600; }
.rec-controles.pruebe .rec-escenarios, .rec-controles.pruebe #rec-canal, .rec-controles.pruebe #rec-play, .rec-controles.pruebe #rec-stop { display: none; }

.rec-demo { display: grid; grid-template-columns: minmax(0, 372px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rec-col-tel { display: grid; gap: 12px; position: sticky; top: 118px; }
.rec-col-sis { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 960px) { .rec-demo { grid-template-columns: 1fr; } .rec-col-tel { position: static; } }

/* Teléfono */
#rec-tel .telefono-pantalla { min-height: 640px; }
#rec-tel .transcripcion { max-height: 330px; min-height: 330px; }
.rec-tel-vacio { margin: auto; text-align: center; color: var(--mut); font-size: 13px; display: grid; gap: 10px; justify-items: center; padding: 10px 18px; }
.rec-tel-vacio b { color: #fff; font-size: 15px; }
.rec-tel-vacio .btn { margin-top: 4px; }
#rec-tel .avatar.cliente { background: linear-gradient(140deg, #f5f5f7, #b9c2cf); color: #0b0f17; }
.rec-ondas-cli i { background: #f5f5f7 !important; }
.rec-timbre .avatar { animation: rec-timbre 1s ease-in-out infinite; }
@keyframes rec-timbre { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-3deg); } }
.burbuja .rec-accion { display: block; margin-top: 6px; font-size: 11.5px; color: #93c5fd; }
.burbuja.sistema.rec-ok { color: #6ee7b7; }

/* WhatsApp */
.rec-wa-cab-txt { min-width: 0; }
.rec-wa-cab-txt b, .rec-wa-cab-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wa-msj.rec-sis { align-self: center; background: rgba(255, 255, 255, .06); color: #8696a0; font-size: 11.5px; padding: 4px 10px; border-radius: 8px; max-width: 92%; text-align: center; }
.wa-msj.rec-sis time { display: none; }
.rec-wa-tarjeta { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .22); border-left: 3px solid #25d366; font-size: 12.5px; display: grid; gap: 2px; }
.rec-wa-tarjeta b { font-size: 13px; }
.wa-msj .wa-opciones span { cursor: default; }
.wa-msj.rec-clic .wa-opciones span { cursor: pointer; }
.wa-msj.rec-clic .wa-opciones span:hover { color: #8fd8ff; }
.rec-wa-vacio { margin: auto; text-align: center; color: #8696a0; font-size: 13px; padding: 20px; display: grid; gap: 8px; justify-items: center; }
.rec-wa-vacio b { color: #e9edef; font-size: 15px; }
.rec-mic { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #2a3942 !important; color: #e9edef; cursor: pointer; display: grid; place-items: center; flex: none; }
.rec-mic svg { width: 20px; height: 20px; }
.rec-mic.escuchando { background: #ff3b30 !important; animation: rec-latido 1s infinite; }
.rec-sugerencias { padding: 0; justify-content: center; }

/* Agenda */
.rec-agenda-panel .panel-cab { align-items: flex-start; }
.rec-agenda-env { overflow-x: auto; border: 1px solid var(--linea); border-radius: 14px; scrollbar-width: thin; }
.rec-agenda { --fila: 22px; --gutter: 46px; min-width: 620px; position: relative; display: grid; grid-template-columns: var(--gutter) repeat(6, minmax(0, 1fr)); font-size: 11.5px; }
.rec-ag-cab { position: sticky; top: 0; z-index: 2; padding: 8px 4px; text-align: center; background: #17171d; border-bottom: 1px solid var(--linea); border-left: 1px solid var(--linea); color: var(--texto-2); font-weight: 600; line-height: 1.15; }
.rec-ag-cab small { display: block; color: var(--mut); font-weight: 500; font-size: 10.5px; }
.rec-ag-cab.hoy { color: #fff; }
.rec-ag-cab.hoy small { color: var(--acento); font-weight: 700; }
.rec-ag-esq { border-left: 0; }
.rec-ag-horas { position: relative; }
.rec-ag-horas span { position: absolute; right: 6px; transform: translateY(-50%); color: var(--mut); font-variant-numeric: tabular-nums; font-size: 10.5px; }
.rec-ag-col { position: relative; border-left: 1px solid var(--linea); background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--fila) * 2 - 1px), rgba(255, 255, 255, .07) calc(var(--fila) * 2 - 1px) calc(var(--fila) * 2)), repeating-linear-gradient(to bottom, transparent 0 calc(var(--fila) - 1px), rgba(255, 255, 255, .03) calc(var(--fila) - 1px) var(--fila)); }
.rec-ag-cerrado { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 6px, transparent 6px 12px); pointer-events: none; }
.rec-ag-cerrado.alm { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 4px, transparent 4px 10px); }
.rec-ag-ahora { position: absolute; left: -1px; right: 0; height: 2px; background: var(--rojo); z-index: 3; pointer-events: none; }
.rec-ag-ahora::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); }
.rec-cita { position: absolute; margin: 0; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; color: var(--texto); padding: 2px 5px 2px 6px; font: inherit; font-size: 10.5px; line-height: 1.2; cursor: default; white-space: normal; z-index: 1; box-shadow: 0 0 0 1px #131318; transition: opacity .3s, transform .3s; }
.rec-cita .rc-n { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-cita .rc-s { display: block; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-cita .rc-d { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.rec-cita.pend { background: color-mix(in srgb, var(--acento) 18%, #14161d); }
.rec-cita.ok { background: rgba(52, 211, 153, .15); border-color: var(--verde); }
.rec-cita.mover { background: rgba(251, 191, 36, .2); border-color: var(--ambar); animation: rec-parpadeo 1.1s ease-in-out infinite; }
.rec-cita.urg { background: rgba(248, 113, 113, .2); border-color: var(--rojo); }
.rec-cita.foco { z-index: 4; box-shadow: 0 0 0 2px #fff, 0 10px 30px -6px color-mix(in srgb, var(--acento) 70%, transparent); }
.rec-cita.sale { opacity: 0; transform: scale(.85); }
@keyframes rec-parpadeo { 50% { opacity: .65; } }
.rec-dot, .rc-d { background: var(--acento); }
.rec-dot.r, .rc-d.r { background: var(--violeta); }
.rec-leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--mut); }
.rec-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rec-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; border-left: 3px solid; }
.rec-sw.ok { background: rgba(52, 211, 153, .2); border-color: var(--verde); }
.rec-sw.pend { background: color-mix(in srgb, var(--acento) 22%, #14161d); border-color: var(--acento); }
.rec-sw.mov { background: rgba(251, 191, 36, .2); border-color: var(--ambar); }
.rec-sw.urg { background: rgba(248, 113, 113, .2); border-color: var(--rojo); }
.rec-sw.g1 { background: #3a93e8; border: 0; }
.rec-sw.g2 { background: #e8892e; border: 0; }

/* Registro */
.rec-eventos { max-height: 280px; overflow-y: auto; min-height: 120px; }
.rec-eventos .vacio { margin: 6px 0; }

/* KPIs */
.rec-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rec-kpis .k-val.rec-salta { animation: rec-salto .6s ease; }
@keyframes rec-salto { 40% { transform: translateY(-3px) scale(1.06); } }
.rec-kpis .kpi { transform-origin: left center; }
@media (max-width: 1040px) { .rec-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rec-kpis .kpi:last-child { grid-column: 1 / -1; } }

/* Gráfico */
.rec-grafico { position: relative; margin-top: 10px; }
.rec-grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.rec-grafico .rg-barra rect { transition: opacity .2s; }
.rec-grafico .rg-barra:hover rect { opacity: .82; }
.rec-grafico .rg-barra.nuevo rect { animation: rec-barra .9s ease; transform-box: fill-box; transform-origin: bottom; }
@keyframes rec-barra { 0% { transform: scaleY(.4); } 60% { transform: scaleY(1.08); } 100% { transform: none; } }
.rec-tip { position: absolute; pointer-events: none; background: rgba(28, 28, 35, .96); border: 1px solid var(--linea-2); border-radius: 10px; padding: 7px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s; z-index: 5; }
.rec-tip.on { opacity: 1; }
.rec-tip b { display: block; }
.rec-leyenda-graf { margin-top: 0; }

/* Calculadora */
.rec-calc-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rec-calc-res { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 16px; }
.rec-calc-res > div { padding: 14px 16px; border-radius: 16px; background: var(--gris-2); border: 1px solid var(--linea); display: grid; gap: 2px; }
.rec-calc-res span { font-size: 12.5px; }
.rec-calc-res b { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rec-calc-total { background: linear-gradient(160deg, color-mix(in srgb, var(--acento) 20%, #1c1c23), #1c1c23 75%) !important; border-color: color-mix(in srgb, var(--acento) 40%, transparent) !important; }
.rec-calc-total b { color: #fff; }
@media (max-width: 520px) { .rec-calc-campos, .rec-calc-res { grid-template-columns: 1fr; } }

/* Configuración */
.rec-cfg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .rec-cfg { grid-template-columns: 1fr; } }
.rec-cfg-horario { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .rec-cfg-horario { grid-template-columns: 1fr 1fr; } }
.rec-cfg-sw { display: grid; gap: 12px; }
.rec-fijo { opacity: .85; cursor: default; }
.rec-fijo input { cursor: not-allowed; }
.rec-recordatorio { max-width: 260px; }
.rec-servicios td { padding: 7px 10px; }
.rec-servicios .entrada { padding: 7px 9px; font-size: 13px; border-radius: 9px; }
.rec-servicios input.entrada { max-width: 110px; text-align: right; margin-left: auto; display: block; font-variant-numeric: tabular-nums; }
.rec-servicios select.entrada { min-width: 86px; }
.rec-servicios .entrada.cambio { border-color: var(--verde); }
.rec-sub { font-size: 16px; font-weight: 650; }

@media (max-width: 560px) {
  .rec-acciones { margin-left: 0; width: 100%; }
  .rec-escenario { font-size: 13px; padding: 8px 11px; }
  #rec-tel .telefono-pantalla { min-height: 600px; }
}

/* Selector de tipo de negocio */
.rec-negocios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rec-neg { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; border: 1px solid var(--linea); background: var(--gris-1); color: var(--texto-2); cursor: pointer; text-align: left; transition: border-color .18s, background .18s, transform .18s; min-width: 0; }
.rec-neg:hover { border-color: var(--linea-2); transform: translateY(-1px); color: #fff; }
.rec-neg .rn-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #0b0b0f); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.rec-neg .rn-ico svg { width: 22px; height: 22px; }
.rec-neg .rn-txt { display: grid; gap: 1px; min-width: 0; }
.rec-neg b { font-size: 15px; font-weight: 650; color: var(--texto); }
.rec-neg small { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-neg.on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #131318), #131318 75%); box-shadow: 0 16px 40px -24px var(--c); }
@media (max-width: 760px) { .rec-negocios { grid-template-columns: 1fr; } .rec-neg { padding: 10px 14px; } }
.rec-ley-doc { display: contents; }
.rec-ley-doc > span { display: inline-flex; align-items: center; gap: 6px; }
.rec-hueco { position: absolute; z-index: 1; border: 1.5px dashed var(--acento); border-radius: 7px; display: grid; place-items: center; color: var(--acento); font-weight: 700; font-size: 11px; background: color-mix(in srgb, var(--acento) 8%, transparent); animation: rec-parpadeo 1.4s ease-in-out infinite; }

/* Ajustes: el registro usa .aviso como tipo de punto (choca con el aviso flotante de suite.css) */
.rec-eventos .evento .punto.aviso { display: block; padding: 0; gap: 0; width: 10px; height: 10px; margin-top: 5px; border: 0; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 3px rgba(251, 191, 36, .2); backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; font-size: 0; }
.rec-eventos .evento .punto.alerta, .rec-eventos .evento .punto.ok { display: block; }
.wa-msj { min-width: 76px; }
.rec-ag-horas span:first-child { transform: none; }
