html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 9px;
}

.calendar-header {
    background-color: #1b3550;
    color: white;
    text-align: center;
    padding: 13px 5px;
    font-weight: bold;
    border-radius: 8px;
}

.calendar-day {
    min-height: 125px;
    padding: 12px;
    border: 1px solid #1b3550;
    border-radius: 10px;
    background-color: #e9edf2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .calendar-day:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
    }

    .calendar-day strong {
        color: white;
        font-size: 19px;
    }


    /* Tarjetas alternadas */
    .calendar-day:nth-child(2n) {
        background-color: #e9edf2;
    }

    .calendar-day:nth-child(2n + 1) {
        background-color: #dfe7f0;
    }

    /* Números de los días */
    .calendar-day strong {
        color: #24476b;
    }

.menu-agente {
    width: 100%;
    padding: 8px;
    border: 1px solid #d5dfeb;
    border-radius: 7px;
    background-color: white;
    color: #24476b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .menu-agente:focus {
        outline: none;
        border-color: #8eb5df;
        box-shadow: 0 0 0 3px rgba(142, 181, 223, 0.35);
    }

@media (max-width: 768px) {
    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        min-height: 100px;
        padding: 6px;
    }

    .menu-agente {
        font-size: 11px;
        padding: 5px 2px;
    }

    .calendar-header {
        font-size: 11px;
        padding: 8px 2px;
    }
}

.titulo-calendario {
    background-color: #1b3550;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

.boton-calendario {
    background-color: #24476b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .boton-calendario:hover {
        background-color: #1b3550;
        transform: translateY(-2px);
        box-shadow: 0 3px 7px rgba(0,0,0,0.2);
    }

.boton-actualizar {
    background-color: #1b3550;
    color: white;
    border: 1px solid #1b3550;
    border-radius: 9px;
    padding: 11px 22px;
    font-weight: bold;
    transition: all 0.2s ease;
}

    .boton-actualizar:hover {
        background-color: #315d86;
        box-shadow: 0 4px 9px rgba(0,0,0,0.2);
    }

/* D E M P E Ñ O  */

.promedio {
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
}

.verde {
    background-color: #b7e4c7;
    color: #1b4332;
}

.amarillo {
    background-color: #fff3b0;
    color: #7f6000;
}

.rojo {
    background-color: #f4acac;
    color: #7f1d1d;
}

.sin-datos {
    background-color: #e0e0e0;
    color: #555;
}


.contenedor-desempeno {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
    margin-top: 30px;
}

.lista-kpis .promedio {
    margin: 0;
    padding: 5px 12px;
}

    .lista-kpis .promedio h3 {
        font-size: 16px;
        margin: 2px 0;
    }

    .lista-kpis .promedio p {
        font-size: 14px;
        margin: 2px 0;
    }

    .lista-kpis .promedio {
        margin: 0;
        padding: 12px;
    }

.promedio-general {
    border-radius: 15px;
    padding: 30px;
    background-color: #24476b;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 350px;
}


.filtros-desempeno {
    display: flex;
    align-items: end;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    margin-top: 20px;
}

.filtro {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

    .filtro label {
        font-weight: bold;
        color: #24476b;
    }

    .filtro select,
    .filtro input {
        width: 100%;
        padding: 10px;
        border: 1px solid #b8c5d1;
        border-radius: 8px;
        background-color: #f8fafc;
        color: #24476b;
        font-size: 15px;
        outline: none;
    }

        .filtro select:focus,
        .filtro input:focus {
            border-color: #24476b;
            box-shadow: 0 0 4px #24476b55;
        }

/* ESTRUCTURA DEL MENU */
.menu-principal {
    display: flex;
    min-height: 75vh;
    gap: 40px;
    align-items: center;
    padding: 30px;
    background-color: #E4E4E4;
}

.menu-izquierdo {
    flex: 1;
    transform: translateY(32px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.botones-principales {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.boton-grande {
    display: block;
    padding: 30px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 15px;
    background-color: #24476b;
    color: white;
}

.boton-desempeno {
    display: block;
    padding: 15px;
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    background-color: #24476b;
    color: white;
}

.botones-secundarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 8px;
}

.boton-pequeno {
    display: block;
    padding: 18px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    background-color: #24476b;
    color: white;
    font-weight: bold;
}

.menu-derecho {
    flex: 1;
    text-align: center;
    padding: 40px;
    transform: translateY(65px);
}
.logo-empresa {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    transform: translateY(35px);
}

.botones-intermedios {
    display: flex;
    gap: 8px;
}

.boton-intermedio {
    display: block;
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    background-color: #24476b;
    color: white;
}

body {
    background-color: #E4E4E4;
}

.navbar,
footer {
    display: none;
}

main {
    padding-top: 35px;
}

.menu-principal {
    position: relative;
}

.boton-sesion-arriba {
    position: absolute;
    top: 20px;
    right: 30px;
    padding: 12px 20px;
    z-index: 100;
    min-width: 140px;
}

.boton-sesion-abajo {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 100;
}

    .boton-sesion-abajo button {
        cursor: pointer;
        border: none;
        min-width: 140px;
    }

/*Evaluaciones*/
.radio-resultado {
    display: none;
}

.boton-resultado {
    cursor: pointer;
}

.radio-resultado:checked + span {
    outline: 3px solid #24476b;
    outline-offset: 3px;
}

.fila-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.nombre-kpi {
    flex: 1;
    font-weight: bold;
    color: #24476b;
}

.botones-resultados {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boton-resultado {
    margin: 0;
}

    .boton-resultado .btn {
        min-width: 105px;
        border-radius: 8px;
        font-weight: 600;
        border: 2px solid transparent;
        transition: all 0.2s ease;
    }

    .boton-resultado .btn-danger {
        background-color: #d9534f;
    }

    .boton-resultado .btn-warning {
        background-color: #f0c94d;
        color: #594600;
    }

    .boton-resultado .btn-success {
        background-color: #39865a;
    }

/* Resultado seleccionado */
.radio-resultado:checked + .btn {
    outline: 3px solid #24476b;
    outline-offset: 3px;
    transform: translateY(-2px);
}

.fila-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background-color: white;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #dce3e9;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

    .fila-kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.10);
    }

.nombre-kpi {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #24476b;
}

.botones-resultados {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boton-resultado {
    margin: 0;
}

/* B O T O N  V O L V E R */
.btn-volver {
    display: inline-block;
    float: right;
    padding: 9px 16px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: white;
    color: #24476b;
    border: 1px solid #b8c5d1;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-volver:hover {
        background-color: #24476b;
        color: white;
        transform: translateX(-3px);
    }

.encabezado-pagina {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* E V E N T O S */

.selector-clientes {
    position: relative;
}

.opciones-clientes {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #b8c5d1;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.opcion-cliente {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    cursor: pointer;
}

    .opcion-cliente:hover {
        background-color: #edf2f7;
    }

.clientes-elegidos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.etiqueta-cliente {
    background-color: #24476b;
    color: white;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
}

/* A G E N T E S */

.contenedor-agentes {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(230px, 1fr);
    gap: 22px;
    align-items: start;
}

.panel-agentes {
    background-color: white;
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);
}

.titulo-panel-agentes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .titulo-panel-agentes h3 {
        color: #1b3550;
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .titulo-panel-agentes p {
        color: #68788a;
        margin: 0;
        font-size: 13px;
    }

.contador-agentes {
    background-color: #dfe7f0;
    color: #24476b;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.tabla-agentes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .tabla-agentes th {
        background-color: #1b3550;
        color: white;
        padding: 13px 10px;
        text-align: left;
        font-size: 13px;
    }

        .tabla-agentes th:first-child {
            border-radius: 7px 0 0 0;
        }

        .tabla-agentes th:last-child {
            border-radius: 0 7px 0 0;
        }

    .tabla-agentes td {
        padding: 13px 10px;
        border-bottom: 1px solid #e5eaf0;
        color: #34495e;
        font-size: 13px;
    }

    .tabla-agentes tbody tr:nth-child(even) {
        background-color: #f0f3f7;
    }

    .tabla-agentes tbody tr:hover {
        background-color: #e4ebf3;
    }

.acciones-agente {
    display: flex;
    gap: 7px;
    align-items: center;
}

    .acciones-agente form {
        margin: 0;
    }

.btn-editar-agente,
.btn-eliminar-agente {
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-editar-agente {
    background-color: #dfe7f0;
    color: #24476b;
}

    .btn-editar-agente:hover {
        background-color: #cbd9e8;
        color: #1b3550;
    }

.btn-eliminar-agente {
    background-color: #f5e5e5;
    color: #a33d3d;
}

    .btn-eliminar-agente:hover {
        background-color: #edd0d0;
    }

.tarjeta-agregar-agente {
    background-color: #1b3550;
    color: white;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.13);
}

.icono-agregar-agente {
    width: 55px;
    height: 55px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background-color: #dfe7f0;
    color: #24476b;
    font-size: 35px;
    line-height: 53px;
    font-weight: 300;
}

.tarjeta-agregar-agente h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tarjeta-agregar-agente p {
    color: #d5dfeb;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.boton-agregar-agente {
    display: block;
    background-color: white;
    color: #24476b;
    padding: 11px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .boton-agregar-agente:hover {
        background-color: #dfe7f0;
        color: #1b3550;
        transform: translateY(-2px);
    }

.sin-agentes {
    text-align: center;
    color: #68788a;
    padding: 20px;
}

@media (max-width: 850px) {
    .contenedor-agentes {
        grid-template-columns: 1fr;
    }
}

/* A G E N T E */

.formulario-agente {
    max-width: 650px;
    margin: 25px auto;
    padding: 30px;
    background-color: white;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.encabezado-formulario {
    text-align: center;
    margin-bottom: 28px;
}

.icono-formulario {
    width: 55px;
    height: 55px;
    line-height: 53px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background-color: #dfe7f0;
    color: #24476b;
    font-size: 35px;
}

.encabezado-formulario h3 {
    color: #1b3550;
    font-weight: bold;
}

.encabezado-formulario p {
    color: #68788a;
    font-size: 14px;
}

.formulario-agente .form-label {
    color: #24476b;
    font-weight: 600;
}

.formulario-agente .form-control {
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #d5dce5;
}

    .formulario-agente .form-control:focus {
        border-color: #8eb5df;
        box-shadow: 0 0 0 3px rgba(142, 181, 223, 0.25);
    }

.selector-kpis {
    position: relative;
}

.boton-selector-kpis {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 13px;
    background-color: #f0f3f7;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    color: #24476b;
    cursor: pointer;
    text-align: left;
}

.lista-kpis {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

    .lista-kpis.mostrar {
        display: block;
    }

.opcion-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    margin: 0;
    color: #34495e;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .opcion-kpi:hover {
        background-color: #e9edf2;
    }

.checkbox-kpi {
    accent-color: #24476b;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ayuda-kpis {
    display: block;
    margin-top: 7px;
    color: #68788a;
}

.botones-formulario {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.boton-cancelar,
.boton-guardar-agente {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.boton-cancelar {
    background-color: #e9edf2;
    color: #24476b;
}

    .boton-cancelar:hover {
        background-color: #dfe7f0;
        color: #1b3550;
    }

.boton-guardar-agente {
    background-color: #1b3550;
    color: white;
    border: none;
}

    .boton-guardar-agente:hover {
        background-color: #315d86;
        transform: translateY(-2px);
    }

@media (max-width: 576px) {
    .formulario-agente {
        padding: 20px;
    }

    .botones-formulario {
        flex-direction: column;
    }

    .boton-cancelar,
    .boton-guardar-agente {
        text-align: center;
    }
}


/* ATENCIONES: aprovechar todo el ancho */
.tabla-atenciones {
    width: 100%;
    min-width: 1100px;
}

/* Separación entre fecha y botón */
.filtros-atenciones {
    display: flex;
    align-items: end;
    gap: 22px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.campo-fecha {
    flex: 0 1 280px;
    min-width: 220px;
}

.contenedor-atenciones {
    width: 100%;
    max-width: none;
}



/* La tarjeta superior conserva el diseño original */
.contenedor-agentes:not(.contenedor-tabla-atenciones) {
    grid-template-columns: minmax(0, 2.3fr) minmax(230px, 1fr);
}

/* La tabla ocupa todo el ancho */
.contenedor-tabla-atenciones {
    display: block;
    width: 100%;
}

    .contenedor-tabla-atenciones .panel-agentes {
        width: 100%;
        box-sizing: border-box;
    }

    .contenedor-tabla-atenciones .table-responsive {
        width: 100%;
    }

    .contenedor-tabla-atenciones .tabla-atenciones {
        width: 100%;
        min-width: 1100px;
    }

/* C O L O R  D I U R N O  &  N O C T U R N O */
.turno-diurno {
    background-color: #ffe0b2;
    border-color: #ffb74d;
}

.turno-nocturno {
    background-color: #b3e5fc;
    border-color: #4fc3f7;
}

/* C U E N T A */

.cuenta-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    width: 100%;
    min-height: 650px;
    max-width: 1150px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 18px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.10);
}

/* Imagen izquierda */

.cuenta-imagen {
    min-height: 650px;
    overflow: hidden;
    background-color: #24476b;
}

    .cuenta-imagen img {
        width: 100%;
        height: 100%;
        min-height: 650px;
        display: block;
        object-fit: cover;
        object-position: center;
    }

/* Panel derecho */

.cuenta-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 55px;
    background-color: #F7F6F2;
}

.cuenta-formulario {
    width: 100%;
    max-width: 400px;
}

    .cuenta-formulario h2 {
        color: #24476b;
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 10px;
    }

.cuenta-subtitulo {
    color: #777;
    margin-bottom: 35px;
}

/* Campos */

.cuenta-formulario .form-label {
    color: #24476b;
    font-weight: 600;
}

.cuenta-input {
    min-height: 48px;
    border: 1px solid #D5D2C9;
    border-radius: 9px;
    padding: 12px;
}

    .cuenta-input:focus {
        border-color: #24476b;
        box-shadow: 0 0 0 0.2rem rgba(36,71,107,0.15);
    }

/* Botón */

.cuenta-boton {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: #24476b;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .cuenta-boton:hover {
        background-color: #193550;
    }

/* Adaptación a pantallas pequeñas */

@media (max-width: 768px) {
    .cuenta-layout {
        grid-template-columns: 1fr;
        margin: 10px auto;
    }

    .cuenta-imagen {
        min-height: 220px;
        height: 220px;
    }

        .cuenta-imagen img {
            min-height: 220px;
            height: 220px;
        }

    .cuenta-panel {
        padding: 35px 25px;
    }
}

.boton-usuarios-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    padding: 12px 20px;
    min-width: 170px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    background-color: #24476b;
    color: white;
    font-weight: bold;
    z-index: 100;
}

    .boton-usuarios-menu:hover {
        background-color: #193550;
        color: white;
    }

.boton-permisos {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
}
