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, 1fr);
    gap: 5px;
}

.calendar-header {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 12px 5px;
    font-weight: bold;
    border-radius: 5px;
}

.calendar-day {
    min-height: 110px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .calendar-day strong {
        font-size: 18px;
    }
/* 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;
}

/*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;
}
.btn-volver {
    display: inline-block;
    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);
    }

/* 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;
}
