/* ==========================================
   CONFIGURACIÓN GENERAL
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}


/* ==========================================
   CONTENEDOR PRINCIPAL
========================================== */


.app {
    display: none;
    min-height: 100vh;
}

.app.autenticada {
    display: flex;
}



/* ==========================================
   BARRA LATERAL
========================================== */

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
}


/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 30px;
}


.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}


.logo h1 {
    font-size: 22px;
    color: #111827;
}


.logo span {
    font-size: 12px;
    color: #6b7280;
}


/* ==========================================
   MENÚ
========================================== */

.menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.menu-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}


.menu-item:hover {
    background: #f3f6fb;
    color: #2563eb;
}


.menu-item.active {
    background: #eaf2ff;
    color: #2563eb;
    font-weight: bold;
}


.sidebar-bottom {
    margin-top: auto;
}


/* ==========================================
   CONTENIDO PRINCIPAL
========================================== */

.main-content {
    flex: 1;
    padding: 28px 32px;
    overflow-x: hidden;
}



/* ==========================================
   BARRA SUPERIOR - ESTILO DOFI
========================================== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.topbar h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.9px;
    line-height: 1.2;
    color: #1c2da8;
    margin-bottom: 6px;
}

.topbar p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #64749f;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dfe7fa;
    padding: 10px 15px;
    border-radius: 22px;
    color: #182b78;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(30, 50, 130, 0.04);
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #22bd61;
    border-radius: 50%;
    display: inline-block;
}

.notification {
    width: 44px;
    height: 44px;
    border: 1px solid #f6c9e3;
    border-radius: 14px;
    background: #fde7f4;
    color: #1c2da8;
    cursor: pointer;
    font-size: 20px;
}


/* ==========================================
   TARJETAS DE RESUMEN - ESTILO DOFI
========================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5ebfa;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 7px 22px rgba(35, 55, 130, 0.06);
}

.stat-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    background: #fce5f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.stat-card span {
    display: block;
    color: #596a9a;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-card strong {
    display: block;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    color: #1c2da8;
}



/* ==========================================
   GRID PRINCIPAL
========================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}



/* ==========================================
   TARJETAS - ESTILO DOFI
========================================== */

.card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e3eafa;
    border-radius: 20px;
    box-shadow: 0 7px 22px rgba(35, 55, 130, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.card-header h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 5px;
    color: #1c2da8;
}

.card-header span {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #64749f;
}



/* ==========================================
   MAPA
========================================== */

.map-card {
    overflow: hidden;
}


.map-button {
    border: 1px solid #dbe3ef;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #4b5563;
}


.map-placeholder {
    height: 360px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #e9f4ec 25%,
            #dcecf4 25%,
            #dcecf4 50%,
            #edf5e8 50%,
            #edf5e8 75%,
            #dcecf4 75%
        );
    background-size: 90px 90px;
}


.map-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}


.map-icon {
    font-size: 38px;
    margin-bottom: 8px;
}


.map-message h3 {
    margin-bottom: 7px;
}


.map-message p {
    color: #6b7280;
    font-size: 13px;
}


.map-marker {
    position: absolute;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


.marker-one {
    top: 70px;
    left: 22%;
}


.marker-two {
    bottom: 80px;
    right: 25%;
}


.marker-three {
    top: 120px;
    right: 12%;
}


/* ==========================================
   AGENTE DOFI
========================================== */

.agent-card {
    padding-bottom: 20px;
}


.agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 12px;
}


.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}


.agent-header h3 {
    color: #111827;
    margin-bottom: 4px;
}


.agent-header span {
    color: #6b7280;
    font-size: 12px;
}


.agent-status {
    margin: 0 20px 18px;
    padding: 9px 12px;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}


.agent-message,
.agent-reason {
    margin: 0 20px 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
}


.agent-message strong,
.agent-reason strong {
    font-size: 13px;
}


.agent-message p {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    margin-top: 8px;
}


.agent-reason ul {
    list-style: none;
    margin-top: 9px;
}


.agent-reason li {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 7px;
}


.agent-button {
    width: calc(100% - 40px);
    margin: 0 20px;
    border: none;
    background: #2563eb;
    color: white;
    padding: 11px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: bold;
}


.agent-button:hover {
    background: #1d4ed8;
}


/* ==========================================
   PEDIDOS
========================================== */

.orders-card {
    overflow: hidden;
}


.primary-button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}


.primary-button:hover {
    background: #1d4ed8;
}


.orders-table {
    width: 100%;
}


.table-row {

    display: grid;

    grid-template-columns: 1fr 1.5fr 1.3fr 1fr 1fr;

    align-items: center;

    padding: 15px 20px;

    border-top: 1px solid #edf0f4;

    font-size: 13px;

    column-gap: 10px;
}


.table-header {
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    font-weight: bold;
}


.badge {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}


.badge.warning {
    background: #fff7ed;
    color: #c2410c;
}


.badge.success {
    background: #f0fdf4;
    color: #15803d;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .sidebar {
        width: 210px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 750px) {

    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }

    .logo {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .logo > div:last-child {
        display: none;
    }

    .menu-item {
        justify-content: center;
    }

    .menu-item span {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        gap: 15px;
    }

    .status {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

}
/* ==========================================
   FORMULARIO NUEVO PEDIDO
   ========================================== */

.new-order-form {
    margin-top: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* ==========================================
   ENCABEZADO
   ========================================== */

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.form-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}


/* ==========================================
   SECCIONES
   ========================================== */

.form-section {
    margin-bottom: 22px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.form-section-title {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}


/* ==========================================
   GRID
   ========================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* ==========================================
   CAMPOS
   ========================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group small {
    font-size: 11px;
    color: #6b7280;
}


/* ==========================================
   ACCIONES
   ========================================== */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}


/* ==========================================
   BOTÓN SECUNDARIO
   ========================================== */

.secondary-button {
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.secondary-button:hover {
    background: #f3f4f6;
}


/* ==========================================
   BOTÓN PRINCIPAL
   ========================================== */

.form-actions .primary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.form-actions .primary-button:hover {
    background: #1d4ed8;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

}
/* ==========================================
   FORMULARIO NUEVO PEDIDO
   ========================================== */

.new-order-form {
    margin-top: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* ==========================================
   ENCABEZADO
   ========================================== */

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.form-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}


/* ==========================================
   SECCIONES
   ========================================== */

.form-section {
    margin-bottom: 22px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.form-section-title {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}


/* ==========================================
   GRID
   ========================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* ==========================================
   CAMPOS
   ========================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group small {
    font-size: 11px;
    color: #6b7280;
}


/* ==========================================
   ACCIONES
   ========================================== */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}


/* ==========================================
   BOTÓN SECUNDARIO
   ========================================== */

.secondary-button {
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.secondary-button:hover {
    background: #f3f4f6;
}


/* ==========================================
   BOTÓN PRINCIPAL
   ========================================== */

.form-actions .primary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.form-actions .primary-button:hover {
    background: #1d4ed8;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

}
/* ==========================================
   CHAT DOFI IA
========================================== */

.dofi-chat {
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.dofi-chat-titulo {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.dofi-chat-mensajes {
    height: 220px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.dofi-mensaje {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.4;
}

.dofi-mensaje.dofi {
    background: #eef2ff;
}

.dofi-mensaje.usuario {
    background: #e8f5e9;
}

.dofi-chat-controles {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dofi-chat-controles input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
}

.dofi-chat-controles input:focus {
    border-color: #6366f1;
}

.dofi-chat-controles button {
    width: 44px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}
/* ==========================================
   VOZ DOFI IA
========================================== */

#dofiChatVoz {
    width: 44px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

#dofiChatVoz.escuchando {
    animation: dofiPulsoVoz 1s infinite;
}

@keyframes dofiPulsoVoz {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }

}
/* ==========================================
   CONFIGURACIÓN DE VOZ DOFI
========================================== */

.dofi-voz-config {
    margin-top: 12px;
}

.dofi-voz-titulo {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dofi-voz-controles {
    display: flex;
    gap: 8px;
}

#dofiVozSeleccionada {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 12px;
}

#dofiProbarVoz {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}
/* ==========================================
   REDISEÑO DOFI DESPACHO
   Paleta azul intenso + rosa pastel
========================================== */

:root {
    --dofi-azul: #1729A5;
    --dofi-azul-hover: #101F83;
    --dofi-rosa: #FAD8ED;
    --dofi-rosa-hover: #F3C2E1;
    --dofi-fondo: #F1F5FF;
    --dofi-blanco: #FFFFFF;
    --dofi-texto: #20264A;
    --dofi-texto-suave: #78809B;
    --dofi-borde: #E5EAF5;
    --dofi-sombra: 0 5px 20px rgba(35, 53, 125, 0.07);
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--dofi-fondo);
    color: var(--dofi-texto);
}

.app {
    background: var(--dofi-fondo);
}

/* Barra lateral azul */

.sidebar {
    background: var(--dofi-azul);
    border-right: none;
    color: var(--dofi-blanco);
    box-shadow: 4px 0 20px rgba(23, 41, 165, 0.10);
}

.logo h1,
.logo span {
    color: var(--dofi-blanco);
}

.logo-icon {
    background: var(--dofi-rosa);
    color: var(--dofi-azul);
    border-radius: 14px;
}

/* Menú */

.menu-item {
    color: #E2E7FF;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--dofi-blanco);
}

.menu-item.active {
    background: var(--dofi-rosa);
    color: var(--dofi-azul);
    font-weight: 700;
}

.sidebar-bottom .menu-item {
    color: #E2E7FF;
}

/* Área principal */

.main-content {
    background: var(--dofi-fondo);
    min-width: 0;
}

.topbar h2 {
    color: var(--dofi-azul);
    font-weight: 750;
    letter-spacing: -0.5px;
}

.topbar p {
    color: var(--dofi-texto-suave);
}

/* Indicadores */

.stats {
    gap: 18px;
}

.stat-card,
.card,
.agent-card {
    background: var(--dofi-blanco);
    border: 1px solid var(--dofi-borde);
    border-radius: 18px;
    box-shadow: var(--dofi-sombra);
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 26px rgba(35, 53, 125, 0.11);
}

.stat-card strong {
    color: var(--dofi-azul);
}

/* Tarjetas y encabezados */

.card {
    overflow: hidden;
}

.card-header {
    border-bottom-color: var(--dofi-borde);
}

.card-header h3,
.agent-header h3 {
    color: var(--dofi-texto);
}

/* Botones principales */

.primary-button,
.form-actions .primary-button {
    background: var(--dofi-azul);
    color: var(--dofi-blanco);
    border: none;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button:hover,
.form-actions .primary-button:hover {
    background: var(--dofi-azul-hover);
    transform: translateY(-1px);
}

/* Panel del agente */

.agent-card {
    padding: 20px;
}

.agent-avatar {
    background: var(--dofi-rosa);
    color: var(--dofi-azul);
}

.agent-message {
    background: #F3F5FF;
    border-radius: 12px;
}

.agent-reason {
    border-color: var(--dofi-borde);
}

/* Chat */

.dofi-chat {
    border-top-color: var(--dofi-borde);
}

.dofi-chat-titulo {
    color: var(--dofi-azul);
}

.dofi-chat-mensajes {
    background: #F7F8FF;
    border-color: var(--dofi-borde);
    border-radius: 12px;
}

.dofi-mensaje.dofi {
    background: #E9EDFF;
    color: var(--dofi-texto);
}

.dofi-mensaje.usuario {
    background: var(--dofi-rosa);
    color: var(--dofi-texto);
}

.dofi-chat-controles input:focus {
    border-color: var(--dofi-azul);
    box-shadow: 0 0 0 3px rgba(23, 41, 165, 0.10);
}

.dofi-chat-controles button,
#dofiChatVoz,
#dofiProbarVoz {
    background: var(--dofi-azul);
    color: var(--dofi-blanco);
    border-radius: 10px;
}

/* Formularios */

.new-order-form,
.form-section {
    border-color: var(--dofi-borde);
}

input,
select,
textarea {
    accent-color: var(--dofi-azul);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--dofi-azul);
    outline-color: var(--dofi-azul);
}

/* Tablas */

.orders-table,
table {
    border-color: var(--dofi-borde);
}

thead th {
    background: #F3F5FF;
    color: var(--dofi-azul);
}

/* Estado y superficies */

.status {
    border-color: var(--dofi-borde);
    border-radius: 12px;
}

.dofi-voz-config {
    background: transparent;
}

@media (max-width: 900px) {
    .main-content {
        padding: 20px;
    }

    .sidebar {
        width: 210px;
    }
}

@media (max-width: 700px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 14px;
    }

    .main-content {
        padding: 16px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   AJUSTE DE DISTRIBUCIÓN — REFERENCIA DOFI
========================================== */

.main-content {
    padding: 20px 28px;
}

.topbar {
    margin-bottom: 22px;
}

.topbar h2 {
    font-size: 32px;
}

.stats {
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    min-height: 104px;
    padding: 18px 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(330px, 0.95fr);
    gap: 16px;
    align-items: stretch;
}

.map-card {
    min-width: 0;
    border-radius: 20px;
}

.map-card .dofi-mapa-contenedor {
    width: 100%;
    min-width: 0;
}

.agent-card {
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
}

.agent-header {
    margin-bottom: 12px;
}

.agent-status {
    margin-bottom: 14px;
}

.agent-message,
.agent-reason {
    margin-bottom: 12px;
    border-radius: 14px;
}

.dofi-chat {
    margin-top: 14px;
    padding-top: 12px;
}

.dofi-chat-mensajes {
    height: 190px;
    min-height: 140px;
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr);
    }
}

@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .agent-card {
        width: 100%;
    }

    .dofi-chat-mensajes {
        height: 220px;
    }
}

@media (max-width: 700px) {
    .main-content {
        padding: 14px;
    }

    .topbar h2 {
        font-size: 25px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        min-width: 0;
    }
}

/* ==========================================
   IDENTIDAD VISUAL DOFI
========================================== */

.sidebar .logo {
    min-height: 145px;
    padding: 12px 8px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .logo-icon {
    width: 112px;
    height: 74px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-family: Georgia, serif;
    font-size: 65px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
}

.sidebar .logo h1 {
    color: #FFFFFF;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.sidebar .logo span {
    display: block;
    margin-top: 5px;
    color: #FFFFFF;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
    white-space: normal;
}

/* Ocultar el recuadro flotante del mapa */
.dofi-mapa-info {
    display: none !important;
}

/* Iconos de las tarjetas: estilo de referencia Dofi */
.stat-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 50%;
    background: #FCE5F3;
    color: #1729A5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    box-shadow: none;
}

.stat-card {
    gap: 16px;
    min-height: 104px;
    align-items: center;
}

.stat-card span {
    color: #465582;
}

.stat-card strong {
    color: #1729A5;
    font-size: 30px;
    line-height: 1.1;
}

/* ==========================================
   DOMINIC — PERSONAJE ANIMADO DE DOFI
========================================== */

.agent-avatar.dominic-avatar {
    position: relative;
    width: 104px;
    height: 104px;
    min-width: 104px;
    border-radius: 24px;
    background: #fff4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

/* Imagen original: no deformar el personaje */
.dominic-avatar img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: dominic-respirar 3s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Halo rosado detrás del personaje */
.dominic-avatar::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.18);
    filter: blur(10px);
    animation: dominic-halo 3s ease-in-out infinite;
}

/* Destello discreto */
.dominic-brillo {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff78c8;
    box-shadow: 0 0 12px rgba(255, 120, 200, 0.8);
    animation: dominic-destello 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dominic-respirar {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.015);
    }
}

@keyframes dominic-halo {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes dominic-destello {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Respetar las preferencias de movimiento del usuario */
@media (prefers-reduced-motion: reduce) {
    .dominic-avatar img,
    .dominic-avatar::before,
    .dominic-brillo {
        animation: none;
    }
}
/* DOMINIC: PRESENTACIÓN DEL PERSONAJE */

.agent-header {
    align-items: center;
    gap: 18px;
    padding: 20px 20px 16px;
}

.agent-avatar.dominic-avatar {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    min-width: 116px;
    border-radius: 26px;
    background: linear-gradient(145deg, #fff0f8, #f1f3ff);
    border: 1px solid #f5d9eb;
    box-shadow: 0 8px 20px rgba(23, 41, 165, 0.08);
}

.agent-header > div:last-child {
    min-width: 0;
}

.agent-header h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
}

.agent-header > div:last-child > span {
    display: block;
    line-height: 1.5;
}

/* ==========================================
   DOMINIC ANIMADO - AGENTE DOFI
========================================== */

.agent-avatar.dominic-avatar {
    width: 112px;
    height: 112px;
    min-width: 112px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #fff9f4;
    border: 1px solid #f7d7eb;
    box-shadow: 0 6px 18px rgba(23, 41, 165, 0.08);
}

.dominic-animacion {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 600px) {
    .agent-avatar.dominic-avatar {
        width: 88px;
        height: 88px;
        min-width: 88px;
    }
}

/* =========================================
   DOFI - TABLA COMPACTA DE PEDIDOS PENDIENTES
   ========================================= */

.orders-card:has(#listaPedidos) {
    min-width: 0;
}

.orders-card:has(#listaPedidos) .orders-table {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8a8c5 #fff3f8;
    border-radius: 10px;
}

/* Mantener visible el encabezado al desplazarse */
.orders-card:has(#listaPedidos) .table-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fcecf4;
}

/* Reducir la altura de las filas */
.orders-card:has(#listaPedidos) .table-row {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 8px;
    font-size: 12px;
    box-sizing: border-box;
}

/* Evitar que el contenido ensanche la tarjeta */
.orders-card:has(#listaPedidos) .table-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Reducir el espacio inferior de la tarjeta */
.orders-card:has(#listaPedidos) {
    padding-bottom: 14px;
}

/* =========================================
   DOFI - TABLA COMPACTA DE ASIGNACIONES
   ========================================= */

.orders-card:has(#listaAsignaciones) {
    min-width: 0;
    padding-bottom: 14px;
}

.orders-card:has(#listaAsignaciones) .orders-table {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8a8c5 #fff3f8;
    border-radius: 10px;
}

/* Mantener encabezados visibles */
.orders-card:has(#listaAsignaciones) .table-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fcecf4;
}

/* Filas más pequeñas */
.orders-card:has(#listaAsignaciones) .table-row {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 8px;
    font-size: 12px;
    box-sizing: border-box;
}

/* Evitar que el contenido ensanche la tabla */
.orders-card:has(#listaAsignaciones) .table-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ==========================================
   DOFI - TABLA DE DOMICILIARIOS
   ========================================== */

#seccionDomiciliarios .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 10px;
}

#seccionDomiciliarios .orders-table {
    width: 100%;
    min-width: 850px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

#seccionDomiciliarios .orders-table th,
#seccionDomiciliarios .orders-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f7;
    font-size: 13px;
}

#seccionDomiciliarios .orders-table th {
    background: #f0f3ff;
    color: #172b8f;
    font-weight: 700;
    white-space: nowrap;
}

#seccionDomiciliarios .orders-table td:nth-child(1),
#seccionDomiciliarios .orders-table td:nth-child(3),
#seccionDomiciliarios .orders-table td:nth-child(4) {
    white-space: nowrap;
}

#seccionDomiciliarios .domiciliario-observaciones {
    min-width: 140px;
    max-width: 220px;
    overflow-wrap: anywhere;
}

#seccionDomiciliarios .domiciliario-vacio {
    text-align: center;
    padding: 24px;
    color: #697386;
}

#seccionDomiciliarios .domiciliario-estado {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

#seccionDomiciliarios .domiciliario-activo {
    color: #176b3a;
    background: #e4f7eb;
}

#seccionDomiciliarios .domiciliario-inactivo {
    color: #8a4c14;
    background: #fff0d8;
}

#seccionDomiciliarios .domiciliario-acciones {
    min-width: 250px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#seccionDomiciliarios .domiciliario-acciones button {
    margin: 0;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Formulario de registro */
#seccionDomiciliarios #formularioDomiciliario {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e6eaf3;
    border-radius: 12px;
    background: #fff;
}

#seccionDomiciliarios .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

#seccionDomiciliarios .form-group {
    min-width: 0;
}

#seccionDomiciliarios .form-group input,
#seccionDomiciliarios .form-group select {
    box-sizing: border-box;
    width: 100%;
}

#seccionDomiciliarios .form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 650px) {
    #seccionDomiciliarios .form-grid {
        grid-template-columns: 1fr;
    }

    #seccionDomiciliarios #formularioDomiciliario {
        padding: 12px;
    }
}

/* ==========================================
   DOFI DESPACHO - TIPOGRAFÍA DEL ENCABEZADO
   ========================================== */

/* Cargar la fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Título y descripción de la parte superior */
.topbar h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.25;
}

.topbar p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.1px;
}

/* Marca Dofi en la parte superior del menú */
.sidebar .logo h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.sidebar .logo span {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Textos del menú lateral */
.sidebar .menu-item {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* ==========================================
   DOFI DESPACHO - ESTILO DE REFERENCIA
   ========================================== */

:root {
    --dofi-azul: #1d2ca8;
    --dofi-azul-oscuro: #17258f;
    --dofi-rosa: #fce0f0;
    --dofi-fondo: #f1f5ff;
    --dofi-texto: #172b70;
    --dofi-borde: #e2e9f8;
    --dofi-sombra: 0 8px 24px rgba(30, 50, 130, 0.07);
}

/* Tipografía general */
body,
button,
input,
select,
textarea {
    font-family: 'Inter', Arial, sans-serif;
}

body {
    color: var(--dofi-texto);
    background: var(--dofi-fondo);
}

/* Menú lateral */
.sidebar {
    background: linear-gradient(
        180deg,
        #1b29a0 0%,
        #19268f 100%
    );
}

.sidebar .logo {
    padding: 22px 16px 28px;
    min-height: 125px;
    box-sizing: border-box;
}

.sidebar .logo h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.sidebar .logo span {
    font-size: 12px;
    line-height: 1.2;
}

.sidebar .menu {
    gap: 7px;
}

.sidebar .menu-item {
    min-height: 48px;
    padding: 11px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.sidebar .menu-item.active {
    color: var(--dofi-azul-oscuro);
    background: linear-gradient(
        100deg,
        #fff0f8,
        #f9d9ed
    );
    font-weight: 700;
}

/* Encabezado superior */
.topbar {
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar h2 {
    color: var(--dofi-azul-oscuro);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.9px;
    margin-bottom: 5px;
}

.topbar p {
    color: #64749f;
    font-size: 14px;
    line-height: 1.5;
}

/* Tarjetas y paneles */
.card,
.stat-card,
.orders-card,
.agent-card {
    border: 1px solid rgba(224, 232, 249, 0.9);
    border-radius: 20px;
    box-shadow: var(--dofi-sombra);
}

/* Tarjetas de indicadores */
.stat-card {
    padding: 18px 20px;
    gap: 14px;
}

.stat-card h3,
.stat-card p {
    color: #53658f;
}

.stat-card .stat-value,
.stat-card strong {
    color: var(--dofi-azul-oscuro);
    font-weight: 800;
}

/* Botones */
.primary-button {
    background: var(--dofi-azul);
    border-radius: 12px;
    font-weight: 600;
}

.secondary-button {
    border-radius: 10px;
    border-color: #d7dfef;
    font-weight: 500;
}

/* Tabla de domiciliarios */
#seccionDomiciliarios .orders-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
}

#seccionDomiciliarios .orders-table th {
    background: #f0f3ff;
    color: var(--dofi-azul-oscuro);
    font-weight: 700;
}

#seccionDomiciliarios .orders-table td {
    background: #fff;
    color: #34446f;
    padding: 12px;
    border-bottom: 1px solid #edf0f8;
}

#seccionDomiciliarios .orders-table tbody tr:hover td {
    background: #fafbff;
}

/* Formulario de domiciliarios */
#seccionDomiciliarios #formularioDomiciliario {
    border: 1px solid var(--dofi-borde);
    border-radius: 18px;
    box-shadow: var(--dofi-sombra);
}

#seccionDomiciliarios .form-group label {
    color: #465782;
    font-weight: 600;
    font-size: 13px;
}

#seccionDomiciliarios .form-group input,
#seccionDomiciliarios .form-group select {
    min-height: 42px;
    border: 1px solid #d8dfed;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 800px) {
    .topbar h2 {
        font-size: 24px;
    }

    .sidebar .menu-item {
        font-size: 13px;
    }

    #seccionDomiciliarios .table-container {
        overflow-x: auto;
    }
}

/* ==========================================
   FIBI - NOTIFICACIÓN TEMPORAL
   ========================================== */

.fibi-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(350px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 12px 14px;
    background: #fff8fc;
    border: 1px solid #f2c9df;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(29, 44, 168, 0.15);
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.fibi-toast.fibi-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.fibi-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fce5f3;
}

.fibi-mensaje {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.fibi-mensaje strong {
    color: #1c2da8;
    font-size: 13px;
    font-weight: 700;
}

.fibi-mensaje span {
    color: #596582;
    font-size: 12px;
    line-height: 1.45;
}

.fibi-cerrar {
    align-self: flex-start;
    border: 0;
    padding: 0 2px;
    background: transparent;
    color: #7b6380;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .fibi-toast {
        right: 12px;
        bottom: 12px;
    }
}


/* ==========================================
   BIENVENIDA DE DOFI DESPACHO
========================================== */

.bienvenida-dofi {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, #f9c8e5, transparent 45%),
        radial-gradient(circle at bottom right, #b9d9ff, transparent 45%),
        #f8f5fc;
}

.bienvenida-dofi.oculta {
    display: none;
}

.bienvenida-contenido {
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.bienvenida-marca {
    color: #243b73;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
}

.video-bienvenida {
    display: block;
    width: 100%;
    max-height: 65vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #20233a;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgb(43 37 83 / 18%);
}

#textoBienvenidaDofi {
    margin: 0;
    color: #28365e;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
}

#iniciarBienvenidaDofi,
#saltarBienvenidaDofi {
    border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}

#iniciarBienvenidaDofi {
    color: white;
    background: #3159a8;
}

#saltarBienvenidaDofi {
    color: #3159a8;
    background: #ffffff;
    border: 1px solid #d5dff5;
}

@media (max-width: 600px) {
    .bienvenida-dofi {
        padding: 12px;
    }

    .video-bienvenida {
        max-height: 55vh;
        border-radius: 12px;
    }
}

/* INICIO DE SESIÓN */
.pantalla-login {
    position: fixed;
    inset: 0;
    z-index: 99998;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, #f9c8e5, transparent 45%),
        radial-gradient(circle at bottom right, #b9d9ff, transparent 45%),
        #f8f5fc;
}

.pantalla-login:not([hidden]) {
    display: flex;
}

.login-tarjeta {
    width: min(420px, 100%);
    padding: 32px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgb(43 37 83 / 18%);
}

.login-marca {
    margin-bottom: 18px;
    color: #3159a8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.login-tarjeta h2 {
    margin-bottom: 8px;
    color: #243b73;
}

.login-tarjeta > p {
    color: #667085;
    line-height: 1.5;
}

#formularioLogin {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

#formularioLogin label {
    font-weight: 600;
    color: #28365e;
}

#formularioLogin input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #d5dff5;
    border-radius: 10px;
    font: inherit;
}

#btnIniciarSesion {
    margin-top: 8px;
    padding: 13px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #3159a8;
    font-weight: 700;
    cursor: pointer;
}

#btnIniciarSesion:disabled {
    opacity: 0.65;
    cursor: wait;
}

#mensajeLogin {
    min-height: 20px;
    margin: 0;
    color: #b42318;
    font-size: 14px;
}


/* ==========================================
   NUEVA BIENVENIDA: FIBI + DOMINIC
========================================== */

.bienvenida-dofi {
    box-sizing: border-box;
    padding: 32px;
    background:
        radial-gradient(circle at 12% 20%, #ffd8ef, transparent 42%),
        radial-gradient(circle at 88% 75%, #c7e2ff, transparent 44%),
        #f8f5fc;
}

.bienvenida-contenido {
    width: min(1320px, 100%);
    gap: 24px;
}

.bienvenida-encabezado {
    text-align: center;
}

.bienvenida-encabezado h1 {
    margin: 14px 0 8px;
    color: #243b73;
    font-size: clamp(25px, 3vw, 38px);
}

.bienvenida-encabezado p {
    margin: 0;
    color: #536487;
    font-size: 16px;
}

.bienvenida-personajes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.personaje-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 22px;
    background: rgb(255 255 255 / 72%);
    box-shadow: 0 14px 35px rgb(43 37 83 / 12%);
}

.personaje-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.personaje-titulo h2 {
    margin: 0;
    color: #243b73;
    font-size: 23px;
}

.personaje-titulo p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.personaje-indicador {
    width: 12px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #ed80bd;
}

.personaje-dominic .personaje-indicador {
    background: #559af5;
}

.video-personaje {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #20233a;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgb(43 37 83 / 15%);
}

.bienvenida-controles {
    box-sizing: border-box;
    width: min(780px, 100%);
    padding: 22px;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 20px;
    background: rgb(255 255 255 / 75%);
    text-align: center;
}

.bienvenida-controles > p {
    margin: 0 0 20px;
    color: #243b73;
    font-size: 18px;
    font-weight: 600;
}

.bienvenida-botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.bienvenida-botones button {
    min-width: 220px;
    min-height: 48px;
    border: 1px solid #3159a8;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#iniciarBienvenidaDofi {
    color: white;
    background: #3159a8;
}

#saltarBienvenidaDofi {
    color: #244b9b;
    background: white;
}

.bienvenida-botones button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .bienvenida-dofi {
        padding: 20px 14px;
    }

    .bienvenida-personajes {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .personaje-panel {
        padding: 12px;
    }

    .bienvenida-controles {
        padding: 18px 12px;
    }

    .bienvenida-botones {
        flex-direction: column;
    }

    .bienvenida-botones button {
        width: 100%;
    }
}

/* ==========================================
   PANEL AGENTE DOFI - NUEVO DISEÑO
========================================== */

#seccionAgente.agent-dashboard {
    padding: 24px;
    border: 1px solid var(--dofi-borde, #e5e7f2);
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

/* Cabecera principal */

.agent-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px;
    margin-bottom: 22px;
    border-radius: 17px;
    background: linear-gradient(120deg, #1729a5 0%, #3448cf 65%, #6977ed 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.agent-hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    right: 65px;
    top: -110px;
    box-shadow: 0 0 0 25px rgba(255, 255, 255, 0.04),
                0 0 0 50px rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

.agent-hero-info {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.agent-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #e0e5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.agent-live-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ff9bc8;
    box-shadow: 0 0 0 4px rgba(255, 155, 200, 0.18);
}

.agent-hero h2 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.8px;
}

.agent-hero p {
    margin: 0;
    max-width: 520px;
    color: #e8ebff;
    font-size: 13px;
    line-height: 1.7;
}

.agent-hero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    min-width: 76px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 39px;
    box-shadow: 0 10px 30px rgba(12, 20, 91, 0.15);
    z-index: 1;
}

/* Tarjetas de resumen */

.agent-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.agent-overview-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e8eaf5;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(23, 41, 165, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(23, 41, 165, 0.09);
}

.agent-overview-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
}

.agent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #e9edff;
    color: #1729a5;
    font-size: 20px;
}

.agent-icon-pink {
    background: #fff0f7;
    color: #d94c91;
}

.agent-icon-blue {
    background: #edf3ff;
    color: #4059d7;
}

.agent-overview-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.agent-state-value,
.agent-static-value {
    display: block;
    margin-bottom: 8px;
    color: #1729a5;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.agent-overview-caption {
    display: block;
    color: #858ba0;
    font-size: 11px;
    line-height: 1.5;
}

/* Paneles de actividad y decisiones */

.agent-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.agent-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7e9f4;
    border-radius: 16px;
    background: #ffffff;
}

.agent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 20px;
    border-bottom: 1px solid #eff0f7;
    background: #fcfcff;
}

.agent-panel-header h3 {
    margin: 0 0 5px;
    color: #20274a;
    font-size: 15px;
    font-weight: 750;
}

.agent-panel-header p {
    margin: 0;
    color: #858ba0;
    font-size: 11px;
    line-height: 1.5;
}

.agent-panel-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #e9edff;
    color: #1729a5;
    font-size: 21px;
}

.agent-panel-symbol-pink {
    background: #fff0f7;
    color: #d94c91;
}

.agent-panel-body {
    padding: 18px;
    min-height: 155px;
    overflow-wrap: anywhere;
}

.agent-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 125px;
    padding: 12px;
    text-align: center;
}

.agent-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #f0f2ff;
    color: #4053c7;
    font-size: 23px;
}

.agent-empty-state strong {
    margin-bottom: 7px;
    color: #333957;
    font-size: 12px;
}

.agent-empty-state p {
    max-width: 270px;
    margin: 0;
    color: #858ba0;
    font-size: 11px;
    line-height: 1.7;
}

/* Adaptación a pantallas pequeñas */

@media (max-width: 900px) {
    .agent-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agent-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #seccionAgente.agent-dashboard {
        padding: 13px;
        border-radius: 15px;
    }

    .agent-hero {
        padding: 20px;
    }

    .agent-hero-avatar {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 16px;
        font-size: 29px;
    }

    .agent-overview {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .agent-overview-card {
        padding: 16px;
    }

    .agent-panel-header {
        padding: 16px;
    }
}


/* ==========================================
   DECISIONES Y ASIGNACIONES DE DOFI
========================================== */

#decisionesAgenteDofi {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px !important;
    background: #ffffff;
}

.agent-decisions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agent-decisions-title {
    margin: 0 0 6px;
    color: #20274a;
    font-size: 16px;
    font-weight: 800;
}

.agent-decisions-subtitle {
    margin: 0;
    color: #858ba0;
    font-size: 12px;
    line-height: 1.6;
}

.agent-decisions-count {
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 20px;
    background: #e9edff;
    color: #1729a5;
    font-size: 11px;
    font-weight: 750;
}

.agent-context-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.agent-context-metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border: 1px solid #eceefa;
    border-radius: 13px;
    background: #f8f9ff;
}

.agent-context-metric strong {
    color: #1729a5;
    font-size: 25px;
    line-height: 1.2;
}

.agent-context-metric span {
    color: #777e97;
    font-size: 11px;
}

.agent-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.agent-assignment {
    display: flex;
    align-items: stretch;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e9ebf5;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease;
}

.agent-assignment:hover {
    border-color: #cbd2ff;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(23, 41, 165, 0.06);
}

.agent-assignment-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #e9edff;
    color: #1729a5;
    font-size: 12px;
    font-weight: 800;
}

.agent-assignment:nth-child(even) .agent-assignment-marker {
    background: #fff0f7;
    color: #d94c91;
}

.agent-assignment-content {
    flex: 1;
    min-width: 0;
}

.agent-assignment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 13px;
}

.agent-assignment-name {
    margin: 2px 0 0;
    color: #252b49;
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.agent-assignment-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f0f1f6;
    color: #666d82;
    font-size: 10px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.agent-assignment-status.is-positive {
    background: #e8f8ef;
    color: #218452;
}

.agent-assignment-status.is-pending {
    background: #fff4df;
    color: #9b6814;
}

.agent-assignment-detail {
    padding-top: 11px;
    border-top: 1px solid #f0f1f7;
}

.agent-assignment-detail-label {
    color: #8b90a5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.agent-assignment-orders {
    margin: 6px 0 0;
    color: #555d78;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.agent-assignment-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 28px 15px;
    border: 1px dashed #d9def2;
    border-radius: 14px;
    background: #fafaff;
    text-align: center;
}

.agent-assignment-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #e9edff;
    color: #3448cf;
    font-size: 24px;
}

.agent-assignment-empty strong {
    margin-bottom: 7px;
    color: #303653;
    font-size: 13px;
}

.agent-assignment-empty p {
    max-width: 290px;
    margin: 0;
    color: #858ba0;
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 560px) {
    #decisionesAgenteDofi {
        padding: 14px !important;
    }

    .agent-decisions-heading {
        align-items: flex-start;
    }

    .agent-assignment {
        gap: 10px;
        padding: 12px;
    }

    .agent-assignment-top {
        flex-direction: column;
    }
}

/* ==========================================
   AJUSTE VISUAL DE DECISIONES DE DOFI
========================================== */

#decisionesAgenteDofi {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px !important;
    color: #252b49;
    font-size: 13px;
    line-height: 1.5;
}

#decisionesAgenteDofi .agent-decisions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#decisionesAgenteDofi .agent-decisions-title {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.4;
    color: #20274a;
}

#decisionesAgenteDofi .agent-decisions-subtitle {
    margin: 0;
    color: #858ba0;
    line-height: 1.6;
}

#decisionesAgenteDofi .agent-context-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#decisionesAgenteDofi .agent-context-metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border: 1px solid #e8eaf5;
    border-radius: 13px;
    background: #f8f9ff;
}

#decisionesAgenteDofi .agent-context-metric strong {
    font-size: 25px;
    line-height: 1.3;
    color: #1729a5;
}

#decisionesAgenteDofi .agent-context-metric span {
    font-size: 11px;
    line-height: 1.5;
    color: #777e97;
}

#decisionesAgenteDofi .agent-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#decisionesAgenteDofi .agent-assignment {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border: 1px solid #e8eaf5;
    border-radius: 14px;
    background: #ffffff;
}

#decisionesAgenteDofi .agent-assignment-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #e9edff;
    color: #1729a5;
    font-size: 12px;
    font-weight: 800;
}

#decisionesAgenteDofi .agent-assignment-content {
    flex: 1;
    min-width: 0;
}

#decisionesAgenteDofi .agent-assignment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

#decisionesAgenteDofi .agent-assignment-name {
    margin: 0;
    color: #252b49;
    font-size: 13px;
    line-height: 1.5;
}

#decisionesAgenteDofi .agent-assignment-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f0f1f6;
    color: #666d82;
    font-size: 10px;
    line-height: 1.4;
}

#decisionesAgenteDofi .agent-assignment-detail {
    padding-top: 12px;
    border-top: 1px solid #eff0f7;
}

#decisionesAgenteDofi .agent-assignment-detail-label {
    display: block;
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #858ba0;
}

#decisionesAgenteDofi .agent-assignment-orders {
    margin: 0;
    color: #555d78;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    #decisionesAgenteDofi .agent-context-summary {
        grid-template-columns: 1fr;
    }

    #decisionesAgenteDofi .agent-assignment-top {
        align-items: flex-start;
        flex-direction: column;
    }
}



.agent-refresh-button.is-loading {
    animation: dofi-girar 0.7s linear infinite !important;
    transform-origin: center center;
    will-change: transform;
}

@keyframes dofi-girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ==========================================
   ACCIONES DE PEDIDOS (quitar domiciliario / eliminar)
   ========================================== */
.orders-card:has(#listaPedidos) .table-row {
    grid-template-columns: .8fr 1.3fr 1.4fr .7fr 1fr 64px;
}
.pedido-acciones {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}
.pedido-accion {
    border: 1px solid #ece6f1;
    background: #fff;
    border-radius: 8px;
    width: 26px;
    height: 26px;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}
.pedido-accion:hover { background: #f4f2fb; }
.pedido-accion-borrar:hover { background: #fde8ef; border-color: #f3cadb; }


/* ==========================================
   RUTAS EN VIVO (desde la base de datos)
   ========================================== */
.ruta-tarjeta { margin-bottom: 14px; padding: 16px 18px; }
.ruta-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ruta-cabecera h3 { margin: 0; }
.ruta-app { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: #f1eff6; color: #6b6690; }
.ruta-app-ok { background: #e3f6ec; color: #1f8a5b; }
.ruta-app-alerta { background: #fff4dc; color: #a06a00; }
.ruta-resumen { margin: 8px 0; color: #6b6690; font-size: 13px; }
.ruta-pedidos { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.ruta-estado { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; background: #f1eff6; }
.ruta-estado-asignado { background: #fde8ef; color: #c62f6f; }
.ruta-estado-aceptado { background: #e8e8fb; color: #25249b; }
.ruta-estado-en_ruta { background: #e3f6ec; color: #1f8a5b; }
.ruta-libre { color: #6b6690; font-size: 13px; margin: 4px 0 0; }
.rutas-aviso { background: #fff4dc; color: #7a5200; padding: 10px 14px; border-radius: 12px; font-weight: 600; }


/* ==========================================
   CONFIGURACIÓN Y REPORTES
   ========================================== */
.config-bloque { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee8f2; }
.config-bloque h4 { margin: 0 0 10px; color: #25249b; }
.config-bloque h4 small { color: #6b6690; font-weight: 600; margin-left: 8px; }
.config-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #eee8f2; }
.config-textos { display: grid; gap: 2px; }
.config-textos small { color: #6b6690; }
.config-fila input[type="number"], .config-fila input[type="time"] { width: 120px; padding: 8px 10px; border: 1px solid #e3dcea; border-radius: 10px; }
.config-fila input[type="checkbox"] { width: 22px; height: 22px; accent-color: #f34c9c; }
.config-acciones { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.config-aviso { font-size: 13px; color: #6b6690; }
.config-aviso.ok { color: #1f8a5b; }
.config-aviso.error { color: #c62f6f; }
.config-ayuda { color: #6b6690; font-size: 13px; }
.config-ayuda code { background: #f4f2fb; padding: 1px 6px; border-radius: 6px; }
#textoBarrios { width: 100%; box-sizing: border-box; border: 1px solid #e3dcea; border-radius: 12px; padding: 10px 12px; font: inherit; }
.barrios-tabla { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.barrio-fila { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #eee8f2; border-radius: 12px; background: #fff; }
.barrio-nombre { flex: 1; font-weight: 600; }
.barrio-fila input { width: 100px; padding: 6px 8px; border: 1px solid #e3dcea; border-radius: 8px; }
.barrio-fila input.guardado { border-color: #1f8a5b; background: #e3f6ec; }
.barrio-quitar { border: 0; background: transparent; color: #c62f6f; cursor: pointer; font-size: 14px; }
.config-vacio { color: #6b6690; }
.reporte-controles { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.reporte-controles label { display: grid; gap: 4px; font-size: 13px; color: #6b6690; }
.reporte-controles input { padding: 8px 10px; border: 1px solid #e3dcea; border-radius: 10px; }
.reporte-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.reporte-kpi { background: #fff8f1; border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.reporte-kpi span { color: #6b6690; font-size: 12px; }
.reporte-kpi strong { color: #25249b; font-size: 22px; }
.reporte-estados { color: #6b6690; font-size: 13px; text-transform: capitalize; }
.reporte-alerta { background: #fff4dc; color: #7a5200; padding: 10px 14px; border-radius: 12px; font-size: 13px; }
.reporte-domiciliario { border: 1px solid #eee8f2; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.reporte-domiciliario summary { cursor: pointer; }
.reporte-pago { color: #1f8a5b; }
.reporte-sin-tarifa { color: #c62f6f; font-size: 12px; }
.reporte-liquidado { color: #1f8a5b; font-size: 12px; }
.reporte-pedidos, .reporte-barrios { margin: 8px 0 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; }

.orders-card:has(#listaPedidos) .table-row { grid-template-columns: .8fr 1.3fr 1.4fr .7fr 1fr 92px; }
.pedido-accion-confirmar:hover { background: #e3f6ec; border-color: #bfe6d1; }

.ruta-entregados { margin-top: 10px; }
.ruta-entregados summary { cursor: pointer; color: #1f8a5b; font-weight: 600; }


/* ==========================================
   SOPORTE (bandeja de Dominic)
   ========================================== */
.menu-contador { margin-left: auto; background: #f34c9c; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.soporte-grupo { margin-top: 16px; }
.soporte-grupo h4 { margin: 0 0 8px; color: #25249b; }
.soporte-item { border: 1px solid #eee8f2; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; display: grid; gap: 6px; }
.soporte-item header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.soporte-item small { color: #6b6690; }
.soporte-etiqueta { border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: #f4f2fb; color: #25249b; }
.soporte-etiqueta.por_confirmar_domicilio, .soporte-etiqueta.reclamo, .soporte-etiqueta.sin_cobertura { background: #fff4dc; color: #7a5200; }
.soporte-etiqueta.pagado { background: #e3f6ec; color: #1f8a5b; }
.soporte-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.soporte-acciones button { border: 1px solid #e3dcea; background: #fff; border-radius: 10px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.soporte-acciones button.principal { background: #25249b; border-color: #25249b; color: #fff; }
.soporte-acciones button.peligro { color: #c62f6f; }
.soporte-vacio { color: #6b6690; }

.soporte-comprobante { border-left: 3px solid #25249b; padding: 6px 10px; background: #f8f7fd; border-radius: 8px; display: grid; gap: 3px; }
.soporte-alerta { color: #a15c00; font-size: 13px; }
.soporte-ok { color: #1f8a5b; font-size: 13px; }
