html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.form-check-inline {
    margin-right: 1.5rem;
}

.ponderacion-input {
    max-width: 80px;
}

.pointer {
    cursor: pointer;
}

.small-text {
    font-size: 0.9em;
    color: #555;
}

textarea {
    resize: vertical;
}

.alt-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.alt-item input {
    flex-grow: 1;
}

.container {
    max-height: none;
    margin: 0 auto;
    padding: 1rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.container2 {
    max-height: none;
    margin: 0 auto;
    padding: 20px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

footer {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 10vh;
    max-height: 10vh;
    padding-left: 1rem;
    background-color: #212529;
    color: white;
}

.escala-evaluacion li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.escala-evaluacion .nivel {
    width: 200px;
    flex-shrink: 0;
    font-weight: bold;
}

body.pagina-login {
    position: relative;
    overflow: hidden;
}

body.pagina-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/iniciosesion3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.08);
    background-blend-mode: multiply;

    z-index: -1;
}

body.pagina-login .container {
    position: relative;
    z-index: 1;
}

.rating-group {

    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.rating-group label.btn {
    border-radius: 0.3rem;
    transition: all 0.15s ease-out;
}

.rating-group label.btn:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#evaluacionesTable td:last-child {
    white-space: nowrap;
    vertical-align: middle;
}

nav.navbar {
    position: relative;
    min-height: 10vh;
    z-index: 1050;
}

@media (max-width: 991.98px) {

    .navbar-collapse.collapse.show,
    .navbar-collapse.collapsing {

        background-color: #212529;
        /* (Este es el color de 'bg-dark') */
        padding: 15px;
        border-radius: 0.25rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
        margin-top: 5px;
    }
}

.celda-acciones-preguntas .btn {
    display: block;
    width: 90px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: 0;
}

.celda-acciones-preguntas .btn:last-child {
    margin-bottom: 0;
}

.breadcrumb {
    --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' fill='currentColor' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.breadcrumb-item+.breadcrumb-item::before {
    vertical-align: .2em;
}

.breadcrumb-item a {
    color: #084685;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2810f8;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #084685 !important;
    font-weight: 600;
}

.modo {
    margin-right: 15px;
}

.btn[disabled] {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.btn[disabled]:hover {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.hover-card:hover {
    transform: translateY(-8px);
    transition: all 0.3s ease;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.bg-gradient {
    border-radius: 1rem;
}

.card {
    transition: all 0.3s ease;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(218, 20, 20, 0.1) !important;
}

.card {
    transition: all 0.3s ease;
}

.min-vh-100 {
    min-height: calc(100vh - 120px);
}

.inicio-container {
    padding-left: 10vw;
    padding-right: 10vw;
}

.card-flotante {
    position: fixed;
    bottom: 20px;
    /* o top: 20px */
    right: 20px;
    z-index: 1050;
    width: 220px;
}

.link-sin-estilo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-navbar {
    height: 40px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    vertical-align: middle;
    display: inline-block;
}

@media screen and (max-width: 768px) {
    .logo-navbar {
        height: 30px;
        width: auto;
        object-fit: contain;
        object-position: left center;
        margin-right: 10px;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 0;
        border: 0;
        vertical-align: middle;
        display: inline-block;
    }
}

.navbar {
    max-width: 100vw;
}

.navbar-text {
    white-space: normal !important;
}

/* ── Selector de cuentas (navbar) ─────────────────────────── */
.cuenta-selector {
    display: flex;
    align-items: center;
    margin-right: 0.35rem;
}

.cuenta-selector__trigger {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem !important;
    max-width: 230px;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 11px !important;
    color: #ffffff !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cuenta-selector__trigger:hover,
.cuenta-selector__trigger:focus,
.cuenta-selector__trigger.show {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 122, 0, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14);
    color: #ffffff !important;
}

.cuenta-selector__trigger::after {
    display: none;
}

.cuenta-selector__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff7a00 0%, #ff9a33 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
}

.cuenta-selector__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.cuenta-selector__label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cuenta-actual {
    max-width: 130px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.cuenta-actual--empty {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-style: italic;
}

.cuenta-selector__chevron {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-left: 0.1rem;
    border-right: 1.5px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.cuenta-selector__trigger.show .cuenta-selector__chevron {
    transform: rotate(225deg) translateY(1px);
}

.cuenta-selector__menu {
    min-width: 272px;
    padding: 0 !important;
    margin-top: 0.55rem !important;
    border: 1px solid #e4e9f2 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(10, 30, 94, 0.16),
        0 4px 14px rgba(0, 0, 0, 0.07);
}

.cuenta-selector__header {
    padding: 0.9rem 1rem 0.75rem;
    background: linear-gradient(135deg, #0a1e5e 0%, #152d75 100%);
    list-style: none;
}

.cuenta-selector__header-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.cuenta-selector__header-sub {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.cuenta-selector__list {
    list-style: none;
    padding: 0.35rem 0;
    max-height: 220px;
    overflow-y: auto;
}

.cuenta-selector__list::-webkit-scrollbar {
    width: 4px;
}

.cuenta-selector__list::-webkit-scrollbar-thumb {
    background: #c5cde8;
    border-radius: 4px;
}

.cuenta-switch {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.62rem 1rem !important;
    font-size: 0.875rem;
    color: #1e293b !important;
    background: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cuenta-switch:hover,
.cuenta-switch:focus {
    background: #f4f7fc !important;
    color: #0a1e5e !important;
}

.cuenta-switch--active,
.cuenta-switch--active:hover,
.cuenta-switch--active:focus {
    background: rgba(255, 122, 0, 0.09) !important;
    border-left-color: #ff7a00 !important;
    color: #0a1e5e !important;
}

.cuenta-switch__num {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.cuenta-switch__badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: #ff7a00;
    color: #ffffff;
}

.cuenta-selector__empty {
    list-style: none;
    padding: 1rem 1rem 0.85rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.cuenta-selector__footer {
    list-style: none;
    padding: 0.3rem 0;
    background: #f8fafc;
    border-top: 1px solid #e8edf5;
}

.cuenta-selector__action {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 1rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #0a1e5e !important;
    border-radius: 0 !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.cuenta-selector__action:hover,
.cuenta-selector__action:focus {
    background: #eef2fb !important;
    color: #ff7a00 !important;
}

.cuenta-selector__action--primary {
    color: #ff7a00 !important;
}

.cuenta-selector__action--primary:hover,
.cuenta-selector__action--primary:focus {
    background: rgba(255, 122, 0, 0.08) !important;
    color: #e56d00 !important;
}

.cuenta-selector__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(10, 30, 94, 0.07);
    font-size: 0.85rem;
    line-height: 1;
}

.cuenta-selector__action--primary .cuenta-selector__action-icon {
    background: rgba(255, 122, 0, 0.12);
}

@media (min-width: 900px) and (max-width: 1350px) {
    .navbar-brand span {
        display: none;
    }

    .cuenta-selector__trigger {
        max-width: 190px;
    }

    .cuenta-actual {
        max-width: 100px;
    }
}

@media (max-width: 1199.98px) {
    .cuenta-selector {
        width: 100%;
        margin: 0.25rem 0 0.5rem;
    }

    .cuenta-selector__trigger {
        max-width: 100%;
        width: 100%;
    }

    .cuenta-actual {
        max-width: none;
    }

    .cuenta-selector__menu {
        width: calc(100% - 1rem);
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    nav.navbar {
        min-height: auto;
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #212529;
        z-index: 1050;
    }
}

.navbar-nav {
    width: 100%;
}

.navbar-nav .nav-item {
    padding: 0.3rem 0;
}

.table-copelec {
    --bs-table-bg: #ff7800;
    --bs-table-striped-bg: #ff8c1a;
    --bs-table-hover-bg: #e66d00;
    --bs-table-border-color: #e66d00;
    --bs-table-color: #ffffff;
}

.table-copelec {
    background-color: #ff7800 !important;
    color: #ffffff !important;
    border-color: #e66d00 !important;
}

.color-copelec {
    color: #ff7800;
}

.color-divcopelec {
    background-color: #ff7800;
    color: #ffffff;
}

.bg-copelec {
    background-color: #ff7800;
}

.btn-outline-copelec {
    background-color: #ffffff;
    color: #ff7800;
    border: 1px solid #ff7800;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    /* igual a Bootstrap */
    transition: all 0.2s ease-in-out;
}

.btn-outline-copelec:hover {
    background-color: #ff7800;
    color: #ffffff;
    border-color: #ff7800;
}

.btn-copelec {
    background-color: #ff7800;
    color: #ffffff;
    border: 1px solid #ff7800;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    /* igual a Bootstrap */
    transition: all 0.2s ease-in-out;
}

.btn-copelec:hover {
    background-color: #e66c00;
    /* un poco más oscuro */
    border-color: #e66c00;
    color: #ffffff;
}

.btn-copelec:active,
.btn-copelec:focus {
    background-color: #cc5f00;
    border-color: #cc5f00;
    box-shadow: 0 0 0 0.25rem rgba(255, 120, 0, 0.35);
    color: #ffffff;
}

.btn-copelec:disabled {
    background-color: #ffb680;
    border-color: #ffb680;
    color: #ffffff;
    opacity: 0.7;
}

.color-copelec3 {
    color: #1b5e20;
}

.color-copelec2 {
    color: #b71c1c;
}

.panel-login {
    position: relative;
    z-index: 1;
}


html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    width: 100%;
}

body {
    height: 100%;
    margin: 0;
    background-color: #f2f2f2;
}

.card-img-fixed {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.card-img-fixed2 {
    height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.input-custom {
    border-radius: 20px;
    border: 1.5px solid #ff7800;
}

.input-custom:focus {
    border-color: #ff7800;
    box-shadow: 0 0 3px #ff7800;
}


body.pagina-login {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.pagina-login {
        overflow-y: auto;
    }
}

.imagen-login {
    position: fixed;
    inset: 0;
    background-color: #ff7800;
    background-image: url('../img/fondo.png');
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;

}

/* --- Contenedor externo --- */
.vh-100 {
    min-height: 100vh !important;
    height: auto !important;
}

/* --- LADO IZQUIERDO --- */
.shape-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 74, 252, 0.651), rgba(25, 74, 253, 0.9));
    z-index: 2;
}

.contenido-agrupado {
    margin-top: 10vh;
}

.contenedor-titulo {
    display: flex;
    align-items: flex-start;
    margin-top: 15vh;
    margin-left: 5vw;
    margin-bottom: 20px;
}

.triangulo-titulo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #ff7800;
    clip-path: path('M 5,5 Q 0,5 0,10 L 0,50 Q 0,55 5,55 L 50,33 Q 55,30 50,27 Z');
}

.titulo-izquierda {
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 600;
    color: #ffffff;
    margin-left: 15px;
    line-height: 0.85;
}

.linea-login-container {
    transform: translateY(-60px);
    position: absolute;
}

.linea-login {
    width: 94%;
    height: 59vh;
}

.slogan-login {
    margin-top: 35vh;
    background-color: #ff7800;
    border-radius: 0 30px 30px 0;
    padding: 20px 30px 20px 20px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
}

.triangulo-slogan {
    width: 20px;
    height: 20px;
    background: #ffffff;
    flex-shrink: 0;
    clip-path: path('M 2,2 Q 0,2 0,4 L 0,16 Q 0,18 2,18 L 16,11 Q 18,10 16,9 Z');
    margin-top: 2px;
}

.slogan-texto {
    font-size: 1.7rem;
    font-weight: 400;
    color: #ffffff;
    margin-left: 10px;
    margin-bottom: 0;
    white-space: nowrap;
}

/* --- LADO DERECHO --- */
.shape-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: transparent;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shape-right-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.margen-card-login {
    margin-right: 8vw;
}

/* =====================
   TABLET (≤ 1024px)
   ===================== */
@media (max-width: 1024px) {
    .shape-left {
        width: 65%;
    }

    .shape-right {
        width: 65%;
    }

    .titulo-izquierda {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
    }

    .margen-card-login {
        margin-right: 4vw;
        max-width: 360px !important;
    }

    .slogan-login {
        margin-top: 28vh;
    }
}

/* =====================
   MOBILE (≤ 768px)
   ===================== */
@media (max-width: 768px) {

    /* Apilamos verticalmente */
    .d-flex.justify-content-center.align-items-center.vh-100 {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    /* Lado izquierdo ocupa solo la parte superior */
    .shape-left {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 220px;
        padding-bottom: 2rem;
        clip-path: none !important;
    }

    .contenido-agrupado {
        margin-top: 0;
    }

    .contenedor-titulo {
        margin-top: 2rem;
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .titulo-izquierda {
        font-size: 2rem;
        line-height: 1;
    }

    .triangulo-titulo {
        width: 40px;
        height: 40px;
    }

    .linea-login-container,
    .slogan-login {
        display: none;
        /* ocultar línea decorativa en mobile */
    }

    .slogan-login {
        margin-top: 1.5rem;
        margin-left: 0;
        border-radius: 0 20px 20px 0;
        padding: 12px 20px 12px 1.5rem;
    }

    .slogan-texto {
        font-size: 1.4rem;
        white-space: normal;
    }

    /* Lado derecho ocupa el resto */
    .shape-right {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 60vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
    }

    /* SVG de curva se oculta, fondo plano naranja */
    .shape-right-svg {
        display: none;
    }

    .shape-right::before {
        content: '';
        position: absolute;
        inset: 0;
        background: #ff7800;
        z-index: -1;
    }

    .margen-card-login {
        margin-right: 0 !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Card más compacta en mobile */
    .card.shadow-lg.p-5 {
        padding: 1.5rem !important;
    }
}

/* =====================
   MOBILE PEQUEÑO (≤ 420px)
   ===================== */
@media (max-width: 420px) {
    .titulo-izquierda {
        font-size: 1.6rem;
    }

    .slogan-texto {
        font-size: 1.2rem;
    }

    .shape-right {
        padding: 1.5rem 0.75rem;
    }

    .margen-card-login {
        max-width: 100% !important;
    }

    .slogan-login {
        transform: translateY(-30px);
    }
}

.bg-azulcopelec {
    background-color: #0A1E5E;
}

.navsalir {
    background: #FF7A00;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}
.nav-user-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}
.nav-user-pill {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 14px;
}

.cuenta-switch{
    text-align: center;
    background: #FF7A00;
}

/* Modal Buscar Cuenta */
#modalCuentas .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

#modalCuentas #contenedorResultados .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f2f5;
    padding: 12px 20px;
    font-size: 14px;
    color: #2c3e60;
    transition: background 0.15s ease, padding-left 0.15s ease;
    cursor: pointer;
}

#modalCuentas #contenedorResultados .list-group-item:hover {
    background: #f0f4ff;
    padding-left: 26px;
    color: #0d1b4b;
}

#modalCuentas #contenedorResultados .list-group-item strong {
    color: #0d1b4b;
    font-weight: 600;
    background: #e8edff;
    padding: 1px 7px;
    border-radius: 6px;
    margin-right: 6px;
    font-size: 13px;
}

#modalCuentas #contenedorResultados .list-group-item:last-child {
    border-bottom: none;
}

/* Scrollbar del body del modal */
#modalCuentas .modal-body::-webkit-scrollbar {
    width: 5px;
}
#modalCuentas .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#modalCuentas .modal-body::-webkit-scrollbar-thumb {
    background: #c5cde8;
    border-radius: 10px;
}

/* Input focus */
#txtBuscarCuenta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 27, 75, 0.15) !important;
}

.btn-outline-copelec.active {
    background-color: #ff7800;
    color: #ffffff;
}

@media (max-width: 768px) {
    .container2{
        padding: 15px !important;
    }
    .inicio-container{
        padding: 15px !important;
    }
    .navbar-brand {
        font-size: MEDIUM;
    }
  }

  