/* ============================================
   conv-agenda.css
   Estilos del módulo de Agenda
   Extraído de conv-agenda.js
============================================ */

/* ── BITÁCORA ──
   [v2026.10.24-1] conv-agenda.css
   2026-10-24 | Los servicios de «Por día» (.agv-chips) y los profesionales (.agv-profs) BAJAN a otra línea en vez de
     correr hacia el lado (Alberto, 24-10: «en un celular puedo ir desplazándome por los servicios, pero en un
     monitor normal no se puede… quizás deberían aparecer hacia abajo»). Era un scroll horizontal sin barra: con el
     dedo se mueve, con el mouse no. Ahora flex-wrap; un servicio de nombre largo parte su texto dentro del chip
     (.agv-chip con max-width 100 %). La tira de días (.agv-dias) queda como estaba: se recorre con ‹ ›.
   [v2026.10.13-1] conv-agenda.css
   2026-10-13 | La vista elegida de «Ver» (.agv-seg-b.on) va en violeta Heavensy (#9961FF), no en azul oscuro
     (Alberto, 13-10: «es negro cuando está seleccionado y no sienta bien»).
   [v2026.10.11-2] conv-agenda.css
   2026-10-11 (2) | LA AGENDA POR PROFESIONAL (vista previa aprobada por Alberto el 11-10; conv-agenda-vistas.js
     [v2026.10.11-1]): + .agv-*, «Ver» (.agv-seg, sus nombres cortos en la barra y largos en grande), los
     profesionales para filtrar (.agv-prof, solo sus caritas en la barra), las caritas (.agv-av, .agv-avs con
     «+N»), el buscador de servicios (.agv-busca), «Por profesional» (.agv-pr, sus servicios .agv-svc) y «Por
     día» (el día con ‹ › y el mes .agv-dia-cab, la tira .agv-dias / .agv-dia, el mes .agv-mes, los servicios
     .agv-chips, cada profesional .agv-col con su tiempo libre .agv-libre y .agv-no-atiende rayado). En
     «Por profesional», la próxima hora libre va bajo el nombre en la barra (.agv-pr-prox--sub) y a la derecha
     en grande (--lado). En la barra la vista tiene su propio scroll (.agv-cuerpo) y las tarjetas y los
     profesionales del día se pliegan; en grande, todo abierto (aquí y en conversaciones.css [v2026.10.11-1]).
     El mes de «Otra fecha»: sus días son botones (button.agenda-cal-cell) y el elegido va en lila lleno; la
     duración de un servicio no se parte en dos líneas. + .agenda-confirm-para / -con: para quién y con quién, en el
     recuadro de reservar. La hora pedida por voz también se marca en un cupo (.agenda-next-slot-pill
     .agenda-slot-btn--dicha). − El calendario «Ver más fechas» y los horarios del día por servicio ya no
     existen (sus reglas quedan: el mes de «Otra fecha» usa las mismas .agenda-cal-*).
   [v2026.10.11-1] conv-agenda.css
   2026-10-11 | + .agenda-slot-btn--dicha: la hora que se pidió por voz («… a las 10», conv-agenda.js [v2026.10.11-1]),
     marcada en lila para tocarla.
   [v2026.10.09-4] conv-agenda.css
   2026-10-09 (4) | «Avisarle al cliente» al cancelar (conv-agenda.js [v2026.10.09-4]): + .agcancel, el
     recuadro «¿Cancelar esta cita?» (rojo suave, con el interruptor y No / Sí, cancelar), y
     + .agenda-appt-cancelar, donde va bajo una cita de «Próximas citas».
   [v2026.10.09-3] conv-agenda.css
   2026-10-09 (3) | «Confirmar la hora» también desde el Calendario del panel (conv-agenda.js
     [v2026.10.09-3], agendaConfirmarCita): + .agconf-quien, de quién es la hora, en su línea bajo el
     título (el Calendario es de toda la empresa); + .agconf-error, por qué no se pudo confirmar, en el mismo
     naranjo de un monto mal escrito; + .agconf--enviando, los controles quietos mientras se confirma.
   [v2026.10.09-2] conv-agenda.css
   2026-10-09 (2) | «CONFIRMAR HORA» CON «¿CUÁNTO PAGÓ?» (conv-agenda.js [v2026.10.09-2]; vista previa aprobada
     por Alberto el 09-10): + .agconf, el recuadro verde de «Confirmar la hora» (su título, la nota de lo
     que leyó el comprobante .agconf-leido y los botones .agconf-no / .agconf-si, apagado si el monto
     está mal). Adentro, los mismos .agcobro de «Sin link».
   [v2026.10.09-1] conv-agenda.css
   2026-10-09 | EL RELOJ DE LA RESERVA, ENCUADRADO (conv-agenda.js [v2026.10.09-1]; vista previa aprobada
     por Alberto el 09-10: "que quepa bien en una sola línea y no se pase de los marcos"):
     · + .agenda-reloj: el recuadro del reloj. Su rótulo (.agenda-reloj-rotulo) y su cifra
       (.agenda-reloj-cifra, «23:59:59») nunca se parten. --bloque: recién reservada, rótulo arriba y
       cifra grande abajo. --aviso: el mismo, en los colores del aviso amarillo. .agenda-reloj-nota:
       lo que dice cuando llega la hora de una cita retenida hasta su inicio (ese sí se parte).
     · + .agenda-aviso-linea: la fecha y la hora del aviso, cada una en su línea con su ícono.
     · + .agenda-codigo: «Código de reserva» y debajo el código (antes una etiqueta suelta a la
       derecha de la fecha, con los estilos escritos en el HTML).
     · − .agenda-reservation-success-ttl y .agenda-countdown: ya no se usan.
   [v2026.10.08-1] conv-agenda.css
   2026-10-08 | RESERVAR SIN LINK Y EN OTRA HORA (conv-agenda.js [v2026.10.08-3]; vista previa aprobada
     por Alberto el 08-10):
     · .agcobro y sus partes: «¿Cómo paga?» y «¿Cuánto pagó?» con opciones como las de la modalidad
       (Con link morado, Sin link verde), el monto escrito (.agcobro-otro), la línea de lo que queda
       (.agcobro-saldo, en rojo si el monto está mal) y el interruptor «Avisarle al cliente»
       (.agcobro-avisar, .agcobro-sw).
     · .agenda-btn-confirm--ok: el botón en verde cuando la hora se confirma al reservar.
     · .agenda-otra-chip (punteado) y .agotra: la hora, los minutos y el motivo de «Otra hora».
     · .agenda-excep-row: «Fuera de las horas libres · motivo» en el recuadro.
   [v2026.10.04-1] conv-agenda.css
   2026-10-04 | Fuera el bloque «Selector de servicio» (.agenda-service-row, .agenda-service-select y
     .agenda-service-tag): lo usaba solo el modo concurrente de la agenda del chat, que se quitó
     (conv-agenda.js [v2026.10.04-2]); las otras dos clases ya no se usaban.
   [v2026.10.01-1] conv-agenda.css
   2026-10-01 | EL LINK DEL ABONO (conv-agenda.js [v2026.10.01-1]; vista previa aprobada por
     Alberto el 01-10): + .agenda-abono-aviso (lo que se le enviará al cliente, antes de
     reservar), .agenda-abono y sus partes (el monto, el estado del envío y los botones
     Reenviar / Copiar link / Cargar en el chat / Reintentar) y .agenda-reserva-detalle (el
     recuadro de una reserva recién hecha, que antes iba con estilos escritos en el HTML).
*/

/* ── Contenedor general ─────────────────── */
    #contactAgendaContainer {
        padding: 4px 0 2px 0;
        font-size: 12px;
        color: #374151;
    }

    /* ── Estado genérico ────────────────────── */
    .agenda-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 16px 0;
        color: #9961FF;
        font-size: 12px;
    }
    .agenda-state i { font-size: 18px; }
    .agenda-state--muted { color: #9ca3af; }
    .agenda-state--error { color: #ef4444; }

    /* ── Calendario ─────────────────────────── */
    .agenda-calendar {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 6px rgba(0,0,0,.07);
        overflow: hidden;
        margin-bottom: 8px;
    }
    .agenda-cal-header {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 5px 12px 5px;
        background: #EFF6FF;
        border-radius: 12px 12px 0 0;
        border-bottom: 1px solid #C9D9FF;
        margin-bottom: 0;
    }
    .agenda-cal-title {
        font-size: 13px;
        font-weight: 700;
        color: #7D84C1;
        flex: 1;
        text-align: center;
    }
    .agenda-cal-nav {
        background: none;
        border: none;
        cursor: pointer;
        color: #9961FF;
        padding: 2px 5px;
        border-radius: 4px;
        font-size: 11px;
        transition: background .15s;
    }
    .agenda-cal-nav:hover { background: #E1DEFF; }
    .agenda-cal-toggle-btn { margin-left: 2px; color: #9961FF; }
    .agenda-cal-toggle-btn:hover { color: #7D84C1; background: #E1DEFF; }

    .agenda-cal-days-row {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        padding: 4px 4px 0;
        margin-bottom: 0;
    }
    .agenda-cal-dayname {
        text-align: center;
        font-size: 10px;
        font-weight: 600;
        color: #9ca3af;
        padding: 2px 0;
    }
    .agenda-cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        padding: 0 4px 4px;
    }
    .agenda-cal-cell {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        border-radius: 5px;
        border: 1.5px solid transparent;
        cursor: pointer;
        color: #374151;
        transition: background .12s, color .12s;
        user-select: none;
    }
    .agenda-cal-cell:not(.agenda-cal-cell--past):not(.agenda-cal-cell--empty):hover {
        background:#eff6ff; border: 1px solid #C9D9FF;
    }
    .agenda-cal-cell--today {
        font-weight: 700;
        color: #7D84C1;
        border: 1.5px solid #C9D9FF !important;
    }
    .agenda-cal-cell--past {
        color: #d1d5db;
        cursor: default;
    }
    .agenda-cal-cell--selected {
        background: #eff6ff !important;
        color: #7D84C1 !important;
        font-weight: 700;
        border: 1px solid #C9D9FF !important;
    }
    .agenda-cal-cell--empty { cursor: default; }

    /* ── Slots ──────────────────────────────── */
    .agenda-slots-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
    }
    .agenda-slots-count {
        background: #e0f2fe;
        color: #0ea5e9;
        padding: 1px 7px;
        border-radius: 10px;
        font-size: 10px;
    }
    .agenda-slots-loading {
        text-align: center;
        color: #9ca3af;
        font-size: 11px;
        padding: 10px 0;
    }
    .agenda-slots-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 8px;
    }
    .agenda-slot-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4px 6px;
        width: 64px;
        flex-shrink: 0;
        border: 1.5px solid #e0e7ff;
        border-radius: 8px;
        background: #fff;
        font-size: 11px;
        color: #374151;
        cursor: pointer;
        text-align: center;
        transition: all .12s;
        position: relative;
        box-sizing: border-box;
    }
    .agenda-slot-btn:hover {
        border-color: #0ea5e9;
        color: #0ea5e9;
        background: #f0f9ff;
    }
    .agenda-slot-btn--selected {
        background: #0ea5e9 !important;
        color: #fff !important;
        border-color: #0ea5e9 !important;
        font-weight: 600;
    }

    /* ── Panel de confirmación ──────────────── */
    .agenda-confirm-panel {
        background: #EFF6FF;
        border: 1px solid #c4b5fd;
        border-radius: 8px;
        padding: 10px;
        margin-top: 4px;
        animation: agendaFadeIn .15s ease;
    }
    .agenda-confirm-panel--hidden { display: none; }
    .agenda-confirm-info { margin-bottom: 8px; }
    .agenda-confirm-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11.5px;
        color: #4b5563;
        margin-bottom: 3px;
    }
    .agenda-confirm-row i { color: #9961FF; width: 12px; }
    .agenda-notes-input {
        width: 100%;
        box-sizing: border-box;
        padding: 5px 8px;
        border: 1px solid #e5e7eb;
        border-radius: 5px;
        font-size: 11px;
        color: #374151;
        margin-bottom: 8px;
        outline: none;
    }
    .agenda-notes-input:focus { border-color: #9961FF; }
    .agenda-confirm-actions {
        display: flex;
        gap: 6px;
    }
    .agenda-btn-cancel-confirm {
        flex: 1;
        padding: 6px;
        border: 1px solid #e5e7eb;
        border-radius: 5px;
        background: #fff;
        font-size: 11px;
        color: #6b7280;
        cursor: pointer;
    }
    .agenda-btn-cancel-confirm:hover { background: #f9fafb; }
    .agenda-btn-confirm {
        flex: 2;
        padding: 6px;
        border: none;
        border-radius: 5px;
        background: #9961FF;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: background .12s;
    }
    .agenda-btn-confirm:hover:not(:disabled) { background: #7D84C1; }
    .agenda-btn-confirm:disabled { opacity: .6; cursor: default; }

    /* ── Éxito ──────────────────────────────── */
    .agenda-success {
        text-align: center;
        padding: 12px 8px;
        animation: agendaFadeIn .2s ease;
    }
    .agenda-success-icon { font-size: 28px; color: #22c55e; margin-bottom: 6px; }
    .agenda-success-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
    .agenda-success-detail { font-size: 11px; color: #6b7280; margin-bottom: 10px; line-height: 1.6; }
    .agenda-btn-new {
        padding: 6px 14px;
        border: 1px dashed #9961FF;
        border-radius: 6px;
        background: #fff;
        color: #9961FF;
        font-size: 11px;
        cursor: pointer;
        transition: background .12s;
    }
    .agenda-btn-new:hover { background: #EFF6FF; }

    /* ── Sin horarios + waitlist ────────────── */
    .agenda-no-slots {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 0;
        color: #9ca3af;
        font-size: 11px;
    }
    .agenda-no-slots i { font-size: 20px; }
    .agenda-btn-waitlist {
        padding: 5px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 5px;
        background: #fff;
        font-size: 11px;
        color: #6b7280;
        cursor: pointer;
        transition: all .12s;
    }
    .agenda-btn-waitlist:hover { border-color: #9961FF; color: #9961FF; }

    /* ── Hint ───────────────────────────────── */
    .agenda-hint {
        text-align: center;
        color: #9ca3af;
        font-size: 11px;
        padding: 10px 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    /* ── Error inline ───────────────────────── */
    .agenda-error-inline {
        margin-top: 6px;
        padding: 5px 8px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 5px;
        font-size: 11px;
        color: #dc2626;
        display: flex;
        gap: 5px;
        align-items: center;
    }
    .agenda-error-msg {
        text-align: center;
        color: #ef4444;
        font-size: 11px;
        padding: 8px 0;
        margin: 0;
    }

    .agenda-appts-list {
        max-height: 260px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #C9D9FF transparent;
        padding-right: 3px;
    }

    /* ── Citas del contacto ─────────────────── */
    .agenda-contact-appts {
        margin-top: 8px;
        border-top: 1px solid #f3f4f6;
        padding-top: 8px;
    }
    .agenda-appts-title {
        font-size: 11px;
        font-weight: 600;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 6px;
    }
    .agenda-appts-title i { color: #9961FF; }
    .agenda-appts-loading {
        text-align: center;
        color: #9ca3af;
        font-size: 11px;
        padding: 6px 0;
    }
    .agenda-appt-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 8px 5px 10px;
        border-radius: 6px;
        margin-bottom: 4px;
        background: #fff;
        border: 0.5px solid #f3f4f6;
        border-left: 3px solid #c4b5fd;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        transition: background .1s, box-shadow .1s;
    }
    .agenda-appt-item:hover {
        background: #fafafa;
        box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    }
    .agenda-appt-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 36px;
    }
    .agenda-appt-day {
        font-size: 11px;
        font-weight: 700;
        color: #9961FF;
        line-height: 1.2;
    }
    .agenda-appt-time {
        font-size: 10px;
        color: #9ca3af;
    }
    .agenda-appt-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .agenda-appt-service {
        font-size: 11px;
        color: #374151;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .agenda-appt-status {
        font-size: 10px;
        padding: 1px 6px;
        border-radius: 10px;
        display: inline-block;
        width: fit-content;
    }
    .agenda-status--scheduled   { background: #E1DEFF; color: #9961FF; }
    .agenda-status--confirmed   { background: #d1fae5; color: #059669; }
    .agenda-status--arrived     { background: #dbeafe; color: #2563eb; }
    .agenda-status--inprogress  { background: #fef3c7; color: #d97706; }
    .agenda-status--completed   { background: #f3f4f6; color: #6b7280; }
    .agenda-status--noshow      { background: #fee2e2; color: #dc2626; }
    .agenda-status--cancelled   { background: #f3f4f6; color: #9ca3af; }
    .agenda-appt-cancel-btn {
        background: none;
        border: none;
        color: #d1d5db;
        cursor: pointer;
        padding: 2px 4px;
        border-radius: 4px;
        font-size: 10px;
        transition: color .1s;
        flex-shrink: 0;
    }
    .agenda-appt-cancel-btn:hover { color: #ef4444; }


    /* ── Próximos cupos por servicio ────────── */
    .agenda-next-slots-section {
        margin-bottom: 0;
        max-height: 320px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #C9D9FF transparent;
        padding-right: 3px;
    }
    .agenda-next-slots-title {
        font-size: 10.5px;
        font-weight: 700;
        color: #9961FF;
        text-transform: uppercase;
        letter-spacing: .04em;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 8px;
    }
    .agenda-next-svc-block {
        margin-bottom: 8px;
    }
    .agenda-next-svc-name {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11.5px;
        font-weight: 600;
        color: #7D84C1;
        margin-bottom: 5px;
    }
    .agenda-next-svc-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .agenda-next-svc-name--toggle {
        cursor: pointer;
        user-select: none;
        border-radius: 5px;
        padding: 5px 8px;
        margin: 0;
        background: #EFF6FF;
        border: 0.5px solid #C9D9FF;
        transition: background .1s;
    }
    .agenda-next-svc-name--toggle:hover { background: #dce8ff; border-color: #9961FF; }
    .agenda-next-svc-chevron {
        font-size: 9px;
        color: #9ca3af;
        margin-left: auto;
        flex-shrink: 0;
    }
    .agenda-next-svc-duration {
        font-size: 10px;
        color: #9ca3af;
        font-weight: 400;
        margin-left: auto;
    }
    .agenda-next-slots-row {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        padding-top: 6px;
    }
    .agenda-next-loading {
        font-size: 11px;
        color: #9ca3af;
        padding: 4px 0;
    }
    .agenda-next-empty {
        font-size: 11px;
        color: #d1d5db;
        font-style: italic;
    }
    .agenda-next-slot-pill {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4px 6px;
        border: 1.5px solid #e0e7ff;
        border-top-width: 2px;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        transition: all .12s;
        width: 64px;
        flex-shrink: 0;
        position: relative;
        box-sizing: border-box;
    }
    .agenda-next-slot-pill:hover {
        border-color: #9961FF;
        background: #EFF6FF;
    }
    .agenda-next-slot-pill--selected {
        border-color: #9961FF !important;
        background: #9961FF !important;
    }
    .agenda-next-slot-pill--selected .agenda-next-slot-date,
    .agenda-next-slot-pill--selected .agenda-next-slot-time {
        color: #fff !important;
    }
    .agenda-next-slot-date {
        font-size: 9.5px;
        color: #9ca3af;
        line-height: 1.2;
    }
    .agenda-next-slot-time {
        font-size: 12px;
        font-weight: 700;
        color: #374151;
        line-height: 1.3;
    }

    /* ── Botón buscar otro día ──────────────── */
    .agenda-cal-toggle {
        margin: 2px 0 4px 0;
        text-align: center;
    }
    .agenda-btn-search-day {
        padding: 5px 14px;
        border: 1px solid #e0e7ff;
        border-radius: 999px;
        background: #fff;
        color: #7D84C1;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: all .12s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .agenda-btn-search-day:hover {
        background: #f5f3ff;
        border-color: #c4b5fd;
        color: #9961FF;
    }


    /* ── Multi-especialista ─────────────────── */
    .agenda-specialists-wrapper {
        margin-top: 4px;
        border-left: 2px solid #e5e7eb;
        margin-left: 8px;
        padding-left: 8px;
    }
    .agenda-specialist-block {
        margin-bottom: 8px;
    }
    .agenda-specialist-header {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 3px 0;
        margin-bottom: 4px;
        cursor: default;
    }
    .agenda-specialist-avatar {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        color: #fff;
        font-weight: 700;
        flex-shrink: 0;
    }
    .agenda-specialist-name {
        font-size: 11px;
        color: #374151;
        flex: 1;
        font-weight: 500;
    }
    .agenda-specialist-chev {
        font-size: 8px;
        color: #d1d5db;
    }
    .agenda-specialist-slots {
        margin-left: 0;
        gap: 4px;
    }

    /* ── Contexto servicio/especialista en slots ── */
    .agenda-slots-context {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 8px 6px;
        font-size: 10.5px;
        flex-wrap: wrap;
    }
    .agenda-slots-svc-name {
        font-weight: 600;
        color: #7c3aed;
    }
    .agenda-slots-spec-name {
        font-weight: 600;
        font-size: 10px;
        background: #f5f3ff;
        border-radius: 999px;
        padding: 1px 8px;
    }

    /* ── Header especialista en grid de slots ── */
    .agenda-slots-spec-header {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 2px 3px;
        font-size: 10.5px;
    }
    .agenda-slots-spec-dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        display: inline-block;
        flex-shrink: 0;
    }
    .agenda-slots-spec-label {
        font-weight: 700;
        font-size: 10.5px;
    }

    /* ── Nombre especialista en slot ── */
    .agenda-next-slot-spec,
    .agenda-slot-spec-txt {
        font-size: 8.5px;
        font-weight: 700;
        margin-top: 2px;
        width: 52px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
    .agenda-slot-time-txt {
        font-size: 12px;
        font-weight: 700;
        color: #374151;
    }
    /* Tooltip bonito para slots */
    .agenda-slot-tt {
        display: none;
        position: absolute;
        bottom: calc(100% + 6px);
        left: 50%; transform: translateX(-50%);
        background: white; color: #374151;
        border: 0.5px solid #e0e7ff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        font-size: 10px; font-weight: 500;
        padding: 3px 9px; border-radius: 6px;
        white-space: nowrap; pointer-events: none; z-index: 99;
    }
    .agenda-slot-tt::after {
        content: ''; position: absolute;
        top: 100%; left: 50%; transform: translateX(-50%);
        border: 4px solid transparent; border-top-color: white;
    }
    .agenda-next-slot-pill:hover .agenda-slot-tt,
    .agenda-slot-btn:hover .agenda-slot-tt { display: block; }

    .agenda-next-slot-pill--sm {
        min-width: 58px !important;
        padding: 3px 5px !important;
    }
    .agenda-next-slot-pill--sm .agenda-next-slot-date { font-size: 9px !important; }
    .agenda-next-slot-pill--sm .agenda-next-slot-time { font-size: 11px !important; }

    /* ── Confirm inline citas ──────────────── */
    .agenda-appt-confirm-inline {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 6px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 6px;
        font-size: 11px;
        color: #dc2626;
        margin-top: 4px;
        animation: agendaFadeIn .15s ease;
    }
    .agenda-appt-confirm-inline span { flex: 1; }
    .agenda-appt-confirm-yes {
        padding: 2px 8px;
        background: #dc2626;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 11px;
        cursor: pointer;
        font-weight: 600;
    }
    .agenda-appt-confirm-yes:hover { background: #b91c1c; }
    .agenda-appt-confirm-no {
        padding: 2px 8px;
        background: #fff;
        color: #6b7280;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        font-size: 11px;
        cursor: pointer;
    }
    .agenda-appt-confirm-no:hover { background: #f9fafb; }
    /* [09-10-2026 (4)] Cancelar una cita: bajo ella, el recuadro «¿Cancelar esta cita?» (.agcancel) con
       «Avisarle al cliente»; el mismo del aviso de una reserva que espera su pago. */
    .agenda-appt-cancelar { margin: -1px 0 6px; animation: agendaFadeIn .15s ease; }
    .agcancel { margin-top: 6px; background: #fef2f2; border: 0.5px solid #fecaca; border-radius: 8px; padding: 8px 9px; font-size: 11px; }
    .agenda-appt-cancelar .agcancel { margin-top: 0; }
    .agcancel-tit { color: #991b1b; font-weight: 700; display: flex; align-items: center; gap: 5px; }
    .agcancel .agcobro-avisar { margin: 7px 0 8px; }
    .agcancel-btns { display: flex; gap: 6px; }
    .agcancel-btns button { flex: 1; padding: 4px 0; font-size: 11px; border-radius: 6px; cursor: pointer; font-family: inherit; }
    .agcancel-no { color: #6b7280; background: #fff; border: 0.5px solid #e5e7eb; }
    .agcancel-si { font-weight: 600; background: #ef4444; color: #fff; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
    .agcancel-si:hover:not(:disabled) { background: #dc2626; }
    .agcancel-si:disabled, .agcancel-no:disabled { opacity: .5; cursor: default; }


    /* ── Reserva success ────────────────────── */
    .agenda-pending-banner {
            transition: opacity 0.35s ease, max-height 0.4s ease, margin-bottom 0.35s ease, padding 0.35s ease;
            overflow: hidden;
        }
        .agenda-pending-banner.hiding {
            opacity: 0;
            max-height: 0 !important;
            margin-bottom: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }
        .agenda-slot-btn {
            transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
        }
        .agenda-slot-btn:active { transform: scale(0.97); }
        .agenda-reservation-success {
        text-align: center;
        padding: 8px 8px 10px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 10px;
        margin-bottom: 8px;
    }
    .agenda-reservation-success-icon {
        font-size: 22px;
        color: #10b981;
        margin-bottom: 3px;
    }
    .agenda-reservation-success-title {
        font-size: 12px;
        font-weight: 700;
        color: #065f46;
        margin-bottom: 6px;
    }
    /* ── El reloj de la reserva  [09-10-2026] ── */
    .agenda-reloj {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        background: #fff;
        border-radius: 8px;
        padding: 6px 8px 5px;
        text-align: center;
    }
    .agenda-reloj-rotulo {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 10.5px;
        white-space: nowrap;
    }
    .agenda-reloj-cifra {
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        letter-spacing: .3px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .agenda-reloj-nota { font-size: 10.5px; line-height: 1.4; }
    .agenda-reloj--bloque { border: 1px solid #bbf7d0; margin: 0 0 6px; color: #6b7280; }
    .agenda-reloj--bloque .agenda-reloj-cifra { font-size: 18px; color: #10b981; }
    .agenda-reloj--aviso { border: 1px solid #fde047; margin-top: 6px; color: #92400e; }
    .agenda-reloj--aviso .agenda-reloj-cifra { font-size: 15px; color: #10b981; }
    /* ── El aviso «Reserva pendiente de confirmación»: cada dato en su línea  [09-10-2026] ── */
    .agenda-aviso-linea { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; }
    .agenda-aviso-linea i { width: 12px; flex-shrink: 0; text-align: center; font-size: 10px; color: #ca8a04; }
    .agenda-aviso-linea span { min-width: 0; overflow-wrap: anywhere; }
    .agenda-aviso-hora { font-weight: 700; color: #111827; }
    .agenda-codigo {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px dashed #fde68a;
    }
    .agenda-codigo > i { width: 12px; flex-shrink: 0; text-align: center; font-size: 10px; color: #ca8a04; margin-top: 2px; }
    .agenda-codigo-dato { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
    .agenda-codigo-rotulo { font-size: 10px; color: #92400e; white-space: nowrap; }
    .agenda-codigo b {
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #713f12;
        background: #fff;
        border: 1px solid #fde047;
        border-radius: 5px;
        padding: 0 5px;
        white-space: nowrap;
    }
    .agenda-reservation-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .agenda-btn-confirm-payment {
        padding: 7px 12px;
        background: #10b981;
        color: #fff;
        border: none;
        border-radius: 7px;
        font-size: 11.5px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        transition: background .12s;
    }
    .agenda-btn-confirm-payment:hover { background: #059669; }
    .agenda-btn-confirm-payment:disabled { opacity: .6; cursor: default; }
    .agenda-btn-banner-sm-cancel {
        flex: 1;
        padding: 5px 6px;
        font-size: 10px;
        font-weight: 500;
        color: #9ca3af;
        background: #fff;
        border: 0.5px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: background .12s, color .12s, border-color .12s;
    }
    .agenda-btn-banner-sm-cancel:hover {
        background: #fee2e2;
        color: #ef4444;
        border-color: #fca5a5;
    }
    .agenda-btn-send-msg {
        padding: 6px 12px;
        background: #E1DEFF;
        color: #9961FF;
        border: 1px solid #c4b5fd;
        border-radius: 7px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        transition: all .12s;
    }
    .agenda-btn-send-msg:hover { background: #ddd6fe; }
    .agenda-waiting-payment {
        font-size: 11px;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 6px;
    }
    /* ── El link del abono  [01-10-2026] ── */
    .agenda-abono-aviso {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin: 6px 0 2px;
        padding: 6px 8px;
        background: #f5f3ff;
        border: 1px solid #ddd6fe;
        border-radius: 7px;
        font-size: 10.5px;
        line-height: 1.4;
        color: #6d28d9;
        text-align: left;
    }
    .agenda-abono-aviso i { margin-top: 2px; }
    .agenda-abono {
        background: #fff;
        border: 1px solid #ddd6fe;
        border-radius: 8px;
        padding: 8px 10px;
        text-align: left;
        margin: 0 0 6px;
    }
    .agenda-abono:empty { display: none; }
    .agenda-abono-monto {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 11.5px;
        color: #374151;
    }
    .agenda-abono-monto i { color: #9961FF; width: 12px; }
    .agenda-abono-monto b { margin-left: auto; font-size: 12.5px; color: #1E2A5E; }
    .agenda-abono-estado {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 10.5px;
        line-height: 1.4;
        margin-top: 6px;
        padding: 5px 7px;
        border-radius: 6px;
    }
    .agenda-abono-estado i { margin-top: 2px; }
    .agenda-abono-estado--ok    { background: #ecfdf5; color: #047857; }
    .agenda-abono-estado--envio { background: #f5f3ff; color: #6d28d9; }
    .agenda-abono-estado--aviso { background: #fffbeb; color: #92400e; }
    .agenda-abono-botones { display: flex; gap: 6px; margin-top: 6px; }
    .agenda-abono-btn {
        flex: 1;
        padding: 5px 6px;
        font-size: 10.5px;
        font-weight: 600;
        color: #9961FF;
        background: #fff;
        border: 1px solid #c4b5fd;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: background .12s;
    }
    .agenda-abono-btn:hover { background: #f5f3ff; }
    .agenda-reserva-detalle {
        background: #fff;
        border: 1px solid #bbf7d0;
        border-radius: 8px;
        padding: 7px 10px 3px;
        text-align: left;
        font-size: 11px;
        color: #374151;
        margin: 4px 0 6px;
    }
    .agenda-ttl-row {
        background: #fffbeb;
        border-radius: 5px;
        padding: 4px 6px;
        font-size: 10.5px;
        color: #92400e;
    }

    /* ── Animación ──────────────────────────── */
    @keyframes agendaFadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ── Reservar sin link y en otra hora  [08-10-2026] ── */
    .agcobro { margin: 2px 0 4px; }
    .agcobro-fila { margin: 6px 0; }
    .agcobro-tit { font-size: 10px; font-weight: 700; color: #7D84C1; text-transform: uppercase; letter-spacing: .06em;
        margin: 0 0 5px; display: flex; align-items: center; gap: 6px; }
    .agcobro-tit i { color: #9961FF; font-size: 10.5px; }
    .agcobro-ops { display: flex; gap: 5px; flex-wrap: wrap; }
    .agcobro-op { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
        border: 1px solid #e3e0ef; background: #fff; font: 600 11px 'DM Sans', 'Poppins', sans-serif; color: #4b5068;
        cursor: pointer; line-height: 1.3; transition: border-color .15s, background .15s, color .15s; }
    .agcobro-op i { font-size: 10px; color: var(--c); }
    .agcobro-op--link { --c: #9961FF; --bg: #f3edff; }
    .agcobro-op--sin  { --c: #047857; --bg: #ecfdf5; }
    .agcobro-op:hover { border-color: var(--c); }
    .agcobro-op.on { background: var(--bg); border-color: var(--c); color: var(--c); box-shadow: 0 1px 4px rgba(30, 25, 80, .08); }
    .agcobro-op:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
    .agcobro-otro { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
    .agcobro-otro span { font-size: 11px; color: #4b5563; }
    .agcobro-otro-input { width: 96px; padding: 3px 7px; border: 1px solid #c4b5fd; border-radius: 5px;
        font: 600 11px 'DM Sans', sans-serif; color: #374151; outline: none; }
    .agcobro-otro-input:focus { border-color: #9961FF; }
    .agcobro-saldo { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 4px; padding: 6px 8px; background: #ecfdf5;
        border: 1px solid #bbf7d0; border-radius: 7px; font-size: 10.5px; line-height: 1.4; color: #047857; }
    .agcobro-saldo:empty { display: none; }
    .agcobro-saldo i { margin-top: 2px; }
    .agcobro-saldo--error { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
    .agcobro-avisar { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 8px; cursor: pointer; user-select: none; }
    .agcobro-avisar:focus-visible { outline: 2px solid #9961FF; outline-offset: 2px; border-radius: 6px; }
    .agcobro-sw { width: 28px; height: 16px; border-radius: 999px; background: #d1d5db; position: relative; flex-shrink: 0;
        margin-top: 1px; transition: background .15s; }
    .agcobro-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
        background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
    .agcobro-avisar.on .agcobro-sw { background: #9961FF; }
    .agcobro-avisar.on .agcobro-sw::after { left: 14px; }
    .agcobro-avisar b { font-size: 11px; color: #374151; display: block; }
    .agcobro-avisar small { font-size: 10px; color: #8a90a6; line-height: 1.35; display: block; }
    /* ── «Confirmar la hora» con «¿Cuánto pagó?»  [09-10-2026] ── */
    .agconf { margin-top: 6px; background: #f0fdf4; border: 0.5px solid #bbf7d0; border-radius: 8px; padding: 8px 9px; font-size: 11px; }
    .agconf-tit { color: #166534; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
    .agconf-leido { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.35; color: #92400e;
        background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 4px 7px; margin-bottom: 6px; }
    .agconf-leido i { margin-top: 2px; }
    .agconf .agcobro-avisar { margin-bottom: 6px; }
    .agconf-btns { display: flex; gap: 6px; }
    .agconf-btns button { flex: 1; padding: 4px 0; font-size: 11px; border-radius: 6px; cursor: pointer; font-family: inherit; }
    .agconf-no { color: #6b7280; background: #fff; border: 0.5px solid #e5e7eb; }
    .agconf-si { font-weight: 600; background: #10b981; color: #fff; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
    .agconf-si:disabled { opacity: .5; cursor: default; }
    .agconf-no:disabled { opacity: .5; cursor: default; }
    /* [09-10-2026 (3)] Desde el Calendario: de quién es, por qué no se pudo y mientras se confirma */
    .agconf-quien { display: flex; align-items: center; gap: 5px; min-width: 0; margin: -2px 0 6px; font-size: 10.5px; font-weight: 600; color: #4b7a5c; }
    .agconf-quien i { font-size: 9px; opacity: .8; }
    .agconf-quien span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .agconf-error { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; padding: 6px 8px; background: #fff7ed;
        border: 1px solid #fed7aa; border-radius: 7px; font-size: 10.5px; line-height: 1.4; color: #c2410c; }
    .agconf-error[hidden] { display: none; }
    .agconf-error i { margin-top: 2px; }
    .agconf--enviando .agcobro { pointer-events: none; opacity: .6; }
    .agenda-btn-confirm--ok { background: #10b981; }
    .agenda-btn-confirm--ok:hover:not(:disabled) { background: #059669; }

    .agenda-slot-btn.agenda-otra-chip { width: auto; padding: 4px 8px; white-space: nowrap; border-style: dashed;
        border-color: var(--otra-color, #c4b5fd); color: #9961FF; background: #fbf9ff; font-weight: 600; }
    .agenda-slot-btn.agenda-otra-chip i { font-size: 9px; }
    .agotra-tit { font-size: 11px; font-weight: 700; color: #1E2A5E; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
    .agotra-tit i { color: #9961FF; }
    .agotra-rot { font-size: 10px; font-weight: 700; color: #7D84C1; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 4px; }
    .agotra-horas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
    .agotra-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .agotra-hc { padding: 3px 0; border: 1px solid #e3e0ef; border-radius: 6px; background: #fff;
        font: 600 10.5px 'DM Sans', sans-serif; color: #4b5068; cursor: pointer; }
    .agotra-hc:hover { border-color: #9961FF; }
    .agotra-hc.on { background: #9961FF; border-color: #9961FF; color: #fff; }
    .agotra-motivo { margin: 0 0 4px; }
    .agotra-falta { display: flex; font-size: 10.5px; color: #c2410c; margin: 2px 0 6px; gap: 5px; align-items: center; }
    .agotra-falta[hidden] { display: none; }
    .agenda-excep-row { background: #fff7ed; border-radius: 5px; padding: 4px 6px; font-size: 10.5px; color: #9a3412; }
    .agenda-excep-row i { color: #ea580c !important; }

    /* [v2026.10.11-1] La hora que se pidió por voz: marcada para tocarla (no se reserva sola). */
    .agenda-slot-btn.agenda-slot-btn--dicha { border-color: #9961FF; background: #f5f0ff; color: #6d28d9; font-weight: 700;
        box-shadow: 0 0 0 3px rgba(153,97,255,.25); animation: agendaDicha 1.4s ease 3; }
    @keyframes agendaDicha { 0%, 100% { box-shadow: 0 0 0 3px rgba(153,97,255,.25); } 50% { box-shadow: 0 0 0 7px rgba(153,97,255,.08); } }

    /* ══ [v2026.10.11-2] LAS TRES VISTAS DE LA AGENDA (conv-agenda-vistas.js) ══
       En la barra por defecto; en grande, lo de .conv-ampliado más abajo. */
    .agv-barra { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
    .agv-ver { display: flex; align-items: center; gap: 7px; min-width: 0; }
    .agv-ver-t { display: none; font: 700 10px 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .07em; color: #9ca3af; }
    .agv-seg { display: flex; flex: 1; min-width: 0; border: 1px solid #e0e7ff; border-radius: 999px; overflow: hidden; background: #fff; }
    .agv-seg-b { flex: 1; border: 0; background: #fff; color: #7D84C1; padding: 5px 4px; font: 600 10.5px 'DM Sans', sans-serif;
        cursor: pointer; display: inline-flex; gap: 4px; align-items: center; justify-content: center; white-space: nowrap; min-width: 0; }
    .agv-seg-b i { font-size: 9.5px; }
    .agv-seg-b span { overflow: hidden; text-overflow: ellipsis; }
    .agv-seg-b:hover { background: #f5f3ff; color: #9961FF; }
    .agv-seg-b.on { background: #9961FF; color: #fff; }   /* [13-10-2026] violeta Heavensy, no azul oscuro */
    .agv-seg-b:focus-visible { outline: 2px solid #c4b5fd; outline-offset: -2px; }
    .agv-l-largo { display: none; }
    .agv-profs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 1px 1px 3px; }   /* [24-10-2026] baja, no corre al lado */
    .agv-profs::-webkit-scrollbar { display: none; }
    .agv-prof { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border: 1px solid #C9D9FF; background: #EFF6FF;
        color: #7D84C1; border-radius: 999px; padding: 2px; font: 600 11px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; }
    .agv-prof--todos { padding: 3px 10px; }
    .agv-prof:hover { border-color: #9961FF; }
    .agv-prof.on { background: #fff; color: var(--agv-c, #1E2A5E); border-color: var(--agv-c, #c4b5fd); box-shadow: 0 0 0 2px rgba(153,97,255,.16); }
    .agv-prof--todos.on { color: #7c3aed; border-color: #c4b5fd; }
    .agv-prof-n { display: none; }
    .agv-av { width: 20px; height: 20px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; flex-shrink: 0;
        font: 700 8px 'Poppins', 'DM Sans', sans-serif; letter-spacing: .02em; }
    .agv-av--g { width: 28px; height: 28px; font-size: 10px; }
    .agv-avs { display: inline-flex; margin-left: auto; flex-shrink: 0; }
    .agv-avs .agv-av { width: 18px; height: 18px; font-size: 7px; border: 1.5px solid #fff; margin-left: -6px; }
    .agv-avs .agv-av:first-child { margin-left: 0; }
    .agv-av--mas { background: #e5e7eb; color: #6b7280; }
    .agenda-next-svc-name--toggle .agv-avs + .agenda-next-svc-duration { margin-left: 6px; }
    .agenda-next-svc-name--toggle .agenda-next-svc-duration { white-space: nowrap; flex-shrink: 0; }
    .agv-svc-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .agv-quien { display: none; color: #9ca3af; font-weight: 500; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .agv-cuerpo { max-height: 440px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #C9D9FF transparent; padding-right: 3px; }
    .agv-cuerpo .agenda-next-slots-section { max-height: none; overflow: visible; padding-right: 0; }
    .agv-busca { display: flex; align-items: center; gap: 7px; border: 1px solid #e0e7ff; border-radius: 9px; padding: 5px 9px; background: #fff;
        color: #9ca3af; font-size: 11px; margin-bottom: 8px; }
    .agv-busca:focus-within { border-color: #c4b5fd; box-shadow: 0 0 0 2px rgba(153,97,255,.12); }
    .agv-busca input { border: 0; outline: 0; font: 12px 'DM Sans', sans-serif; color: #1E2A5E; width: 100%; background: transparent; min-width: 0; }
    .agv-busca-vacio { padding: 4px 2px 8px; }
    .agenda-next-svc-block[hidden], .agv-busca-vacio[hidden] { display: none; }
    .agenda-specialists-wrapper.agv-uno { border-left: 0; margin-left: 0; padding-left: 0; }
    .agenda-specialist-header .agv-av { width: 20px; height: 20px; font-size: 8px; }
    .agv-link { border: 0; background: none; padding: 0; color: #7c3aed; font: 600 10.5px 'DM Sans', sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
    .agv-link:hover { color: #9961FF; }
    .agv-sin-horas { font-size: 10.5px; color: #6b7280; padding: 5px 0 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
    .agv-pill-jornada { font-weight: 700; }
    .agenda-next-slot-pill.agenda-slot-btn--dicha { border-color: #9961FF !important; box-shadow: 0 0 0 3px rgba(153,97,255,.25); animation: agendaDicha 1.4s ease 3; }
    .agenda-confirm-con .agv-av { width: 18px; height: 18px; font-size: 7px; }
    .agenda-confirm-para strong, .agenda-confirm-con strong { color: #1E2A5E; }

    /* Por profesional */
    .agv-pr { border: 1px solid #e8ebf7; border-radius: 12px; background: #fff; margin-bottom: 8px; overflow: hidden; }
    .agv-pr-cab, .agv-col-cab { display: flex; align-items: center; gap: 8px; padding: 7px 9px; cursor: pointer; user-select: none; }
    .agv-pr-cab:hover, .agv-col-cab:hover { background: #fafbff; }
    .agv-pr-cab:focus-visible, .agv-col-cab:focus-visible { outline: 2px solid #c4b5fd; outline-offset: -2px; }
    .agv-pr-t { min-width: 0; flex: 1; }
    .agv-pr-t > b { display: block; font-size: 12px; color: #1E2A5E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .agv-pr-t small { display: block; font-size: 10px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .agv-pr-prox { font-size: 9.5px; color: #9ca3af; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
    .agv-pr-prox b { color: #059669; }
    .agv-pr-prox--sub { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
    .agv-pr-prox--lado { display: none; }
    .agv-chev { font-size: 9px; color: #9ca3af; transition: transform .2s ease; flex-shrink: 0; }
    .agv-pr:not(.abierta) .agv-chev, .agv-col.cerrada .agv-chev { transform: rotate(-90deg); }
    .agv-pr-cuerpo, .agv-col-cuerpo { padding: 2px 9px 9px; border-top: 1px solid #f1f2f8; }
    .agv-pr:not(.abierta) .agv-pr-cuerpo, .agv-col.cerrada .agv-col-cuerpo { display: none; }
    /* En grande, todo abierto (la ventana grande mueve la sección: .conv-ampliado) */
    .conv-ampliado .agv-pr:not(.abierta) .agv-pr-cuerpo, .conv-ampliado .agv-col.cerrada .agv-col-cuerpo { display: block; }
    .agv-svc { padding: 7px 0 2px; }
    .agv-svc + .agv-svc { border-top: 1px dashed #eef0f6; }
    .agv-svc-cab { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #4b5068; min-width: 0; }
    .agv-svc .agenda-next-slots-row { padding-top: 4px; }

    /* Por día */
    .agv-dia-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
    .agv-dia-cab .agv-dia-tit { flex: 1; min-width: 0; margin: 0; }
    .agv-dia-nav { display: flex; gap: 4px; flex-shrink: 0; }
    .agv-dias { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 1px 0 3px; margin-bottom: 7px; }
    .agv-dias::-webkit-scrollbar { display: none; }
    .agv-dia { flex-shrink: 0; border: 1px solid #C9D9FF; background: #fff; border-radius: 9px; padding: 3px 0; width: 40px; text-align: center; cursor: pointer; }
    .agv-dia small { display: block; font-size: 9px; color: #9ca3af; text-transform: capitalize; font-weight: 600; line-height: 1.3; }
    .agv-dia b { font: 700 12.5px 'Poppins', 'DM Sans', sans-serif; color: #374151; }
    .agv-dia:hover { border-color: #9961FF; }
    .agv-dia.on { background: #9961FF; border-color: #9961FF; }
    .agv-dia.on small, .agv-dia.on b { color: #fff; }
    .agv-dia.cerrado:not(.on) { opacity: .45; }
    .agv-tira-nav, .agv-tira-mes { flex-shrink: 0; width: 24px; height: 24px; border: 1px solid #e0e7ff; background: #fff; color: #9961FF;
        border-radius: 8px; cursor: pointer; font-size: 10px; display: grid; place-items: center; padding: 0; }
    .agv-tira-nav:disabled { color: #d1d5db; cursor: default; }
    .agv-tira-mes.on, .agv-tira-mes:hover, .agv-tira-nav:not(:disabled):hover { background: #f5f0ff; border-color: #c4b5fd; }
    .agv-mes { margin-bottom: 8px; }
    .agv-mes .agenda-calendar { margin: 0; }
    .agv-mes .agenda-cal-nav:disabled { opacity: .35; cursor: default; }
    .agv-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; padding-bottom: 2px; }   /* [24-10-2026] baja, no corre al lado */
    .agv-chips::-webkit-scrollbar { display: none; }
    .agv-chip { flex-shrink: 0; border: .5px solid #C9D9FF; background: #EFF6FF; color: #7D84C1; border-radius: 999px; padding: 3px 9px;
        font: 600 10.5px 'DM Sans', sans-serif; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap;
        max-width: 100%; }
    .agv-chips .agv-chip { white-space: normal; text-align: left; }   /* [24-10-2026] un nombre largo parte dentro del chip */
    .agv-chip:hover { border-color: #9961FF; }
    .agv-chip.on { background: #fff; color: #7c3aed; border: 1px solid #c4b5fd; }

    .agv-cols { display: grid; gap: 8px; align-items: start; }
    .agv-col { border: 1px solid #e8ebf7; border-radius: 12px; background: #fff; overflow: hidden; min-width: 0; }
    .agv-libre { display: inline-block; margin-top: 2px; font-size: 9.5px; font-weight: 700; background: #ecfdf5; color: #059669;
        border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
    .agv-libre.no { background: #f3f4f6; color: #9ca3af; }
    .agv-no-atiende { margin: 8px 0 2px; border-radius: 8px; padding: 9px; text-align: center; font-size: 10.5px; color: #6b7280;
        background: repeating-linear-gradient(-45deg, #f6f7fb 0 6px, #eef0f6 6px 12px); }
    .agv-mas { font-size: 10px; color: #9ca3af; align-self: center; }
    .agv-espera { margin: 4px 0 0; display: inline-flex; gap: 5px; align-items: center; font-size: 10px; }
    .agv-espera-ok { color: #059669; font-size: 10px; }
    .agv-espera-ya { color: #b45309; font-size: 10px; }
    .agv-cargando, .agv-vacio, .agv-error { padding: 14px 8px; text-align: center; font-size: 11px; color: #9ca3af; }
    .agv-error { color: #c2410c; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
    .agv-fuera { margin-top: 6px; font-size: 10.5px; color: #9ca3af; font-style: italic; }
    .agv-col .agenda-confirm-panel, .agv-pr .agenda-confirm-panel { margin: 8px 0 4px; }
    button.agenda-cal-cell { background: none; font: inherit; font-size: 11px; padding: 0; min-width: 0; }
    .agenda-cal-cell--selected { background: #9961FF !important; color: #fff !important; border-color: #9961FF !important; }
