/* =========================================================
   CLIENT PORTAL
   GUÍA DE ACCESO Y USO
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    overflow-x: hidden;
}


/* =========================================================
   PÁGINA
   ========================================================= */

.help-page {
    min-height: 100vh;
    margin: 0;

    background: #f4f7fb;
    color: #212529;
}

.help-wrapper {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER GENERAL
   ========================================================= */

.help-header {
    width: 100%;

    padding: 12px 22px;

    background:
        linear-gradient(
            135deg,
            #1e3c72,
            #193261
        );

    color: #ffffff;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .12);
}

.help-logo {
    width: 48px;
    height: auto;

    display: block;
}

.help-header-title {
    color: #ffffff;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.help-header-subtitle {
    margin-top: 1px;

    color: rgba(255, 255, 255, .75);

    font-size: 12px;
    line-height: 1.2;
}


/* =========================================================
   SELECTOR DE IDIOMA
   ========================================================= */

.help-header .auth-lang-switch {
    position: static;

    display: flex;
    align-items: center;
}

.help-header .auth-lang-switch a {
    margin-left: 8px;
    padding: 4px 8px;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 6px;

    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.help-header .auth-lang-switch a:hover {
    background: rgba(255, 255, 255, .10);

    border-color: rgba(255, 255, 255, .7);

    color: #ffffff;
}

.help-header .auth-lang-switch a.active {
    background: #ffffff;
    color: #1e3c72;

    font-weight: 700;
}


/* =========================================================
   BOTÓN IR AL PORTAL
   ========================================================= */

.help-header .btn-outline-light {
    white-space: nowrap;
}

.help-header .btn-outline-light:hover {
    color: #1e3c72;
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.help-main {
    flex: 1;

    display: flex;
    align-items: flex-start;

    padding: 35px 0;
}

#helpCarousel {
    position: relative;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/* =========================================================
   INDICADOR DE PROGRESO
   ========================================================= */

.help-progress {
    margin-bottom: 12px;

    color: #6c757d;

    font-size: 13px;
    text-align: right;
}


/* =========================================================
   SLIDE GENERAL
   ========================================================= */

.help-slide {
    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 40px;

    background: #ffffff;

    border: 1px solid #e3e8ef;
    border-radius: 14px;

    box-shadow:
        0 6px 22px
        rgba(0, 0, 0, .07);
}

.help-slide-wide {
    width: 100%;
    max-width: 1000px;
}


/* =========================================================
   SLIDE 1 - BIENVENIDA
   ========================================================= */

.help-slide-content {
    width: 100%;
    max-width: 900px;

    text-align: center;
}

.help-slide-icon {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #edf3fb;
    color: #1e3c72;

    font-size: 32px;
}

.help-slide h1 {
    margin: 0 0 18px;

    color: #173a59;

    font-weight: 700;
}

.help-lead {
    margin: 0;

    color: #5f6b76;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   ENCABEZADO DE SECCIONES
   SLIDES 2 EN ADELANTE
   ========================================================= */

.help-section-header {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 18px;
}

.help-section-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 56px;

    border-radius: 50%;

    background: #edf3fb;
    color: #1e3c72;

    font-size: 24px;
    line-height: 1;
}

.help-section-heading {
    min-width: 0;
}

.help-section-title {
    margin: 0 0 4px;

    color: #173a59;

    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.help-section-description {
    margin: 0;

    color: #5f7d95;

    font-size: 0.88rem;
    line-height: 1.35;
}


/* =========================================================
   BADGE NUMÉRICO COMÚN
   ========================================================= */

.help-step-badge {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    border-radius: 50%;

    background: #1e3c72;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   SLIDE 2 - ACCESO
   ========================================================= */

.help-access-steps-compact {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.help-access-step-compact {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #3f4a55;

    font-size: 14px;
    line-height: 1.4;
}

.help-access-step-compact strong {
    color: #212529;
}


/* =========================================================
   PUNTOS COMPACTOS
   SLIDES 3 EN ADELANTE
   ========================================================= */

.help-navigation-points,
.help-document-points,
.help-sent-documents-points,
.help-upload-points {
    display: grid;

    gap: 10px 18px;
}


/* Slide 3 - Conociendo el portal */

.help-navigation-points {
    grid-template-columns:
        repeat(2, 1fr);
}


/* Slides con tres pasos */

.help-document-points,
.help-sent-documents-points,
.help-upload-points {
    grid-template-columns:
        repeat(3, 1fr);
}


/* Punto individual común */

.help-navigation-point,
.help-document-point,
.help-sent-documents-point,
.help-upload-point {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #3f4a55;

    font-size: 14px;
    line-height: 1.4;
}

.help-navigation-point strong,
.help-document-point strong,
.help-sent-documents-point strong,
.help-upload-point strong {
    color: #212529;
}


/* =========================================================
   IMÁGENES DE TODOS LOS SLIDES
   ========================================================= */

.help-slide-image {
    width: 100%;
    max-width: 950px;
    height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    padding: 10px;

    overflow: hidden;

    background: #eef3f8;

    border: 1px solid #d8e0e8;
    border-radius: 10px;

    box-shadow:
        0 2px 8px
        rgba(30, 60, 114, .06);
}


/*
   Imagen interna:
   - mantiene proporción
   - no se recorta
   - no se deforma
   - no agrega un segundo borde
*/

.help-slide-image .help-screenshot {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border: 0;
    border-radius: 6px;

    background: transparent;
}


/* =========================================================
   NOTAS
   ========================================================= */

.help-note {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 10px 14px;

    background: #f5f8fc;

    border-left: 4px solid #1e3c72;
    border-radius: 6px;

    color: #52606d;

    font-size: 13px;
    line-height: 1.4;
}

.help-note i {
    flex: 0 0 auto;

    margin-top: 1px;

    color: #1e3c72;
}


/* =========================================================
   SLIDE - CUESTIONARIOS
   ========================================================= */

.help-questionnaire-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px 18px;
}

.help-questionnaire-point {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #3f4a55;

    font-size: 14px;
    line-height: 1.4;
}

.help-questionnaire-point strong {
    color: #212529;
}


/* =========================================================
   SLIDE FINAL
   ========================================================= */

.help-slide-finish .help-slide-content {
    max-width: 900px;
}

.help-finish-message {
    margin: 0;

    color: #173a59;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}


/* =========================================================
   NAVEGACIÓN LATERAL DEL CARRUSEL
   DESKTOP
   ========================================================= */

.help-side-nav {
    position: fixed;
    top: 50vh;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: 1px solid #d6dee8;
    border-radius: 50%;

    background: #ffffff;
    color: #1e3c72;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, .12);

    font-size: 20px;

    cursor: pointer;

    z-index: 1000;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.help-side-nav:hover:not(:disabled) {
    background: #1e3c72;
    color: #ffffff;

    border-color: #1e3c72;

    transform:
        translateY(-50%)
        scale(1.05);
}

.help-side-nav:disabled {
    opacity: .25;

    cursor: default;
}


/* Flecha izquierda */

.help-side-nav-prev {
    left: 24px;
}


/* Flecha derecha */

.help-side-nav-next {
    right: 24px;
}


/* =========================================================
   INDICADORES DE SLIDE
   ========================================================= */

.help-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 14px;
}

.help-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #bac3cd;

    cursor: pointer;

    transition:
        width .2s ease,
        background-color .2s ease;
}

.help-dot.active {
    width: 22px;

    border-radius: 8px;

    background: #1e3c72;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    /* -----------------------------------------------------
       Header
       ----------------------------------------------------- */

    .help-header {
        padding: 10px 12px;
    }

    .help-logo {
        width: 42px;
    }

    .help-header-title {
        font-size: 15px;
    }

    .help-header-subtitle {
        font-size: 11px;
    }

    .help-header .auth-lang-switch a {
        margin-left: 5px;
        padding: 3px 6px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       Contenido
       ----------------------------------------------------- */

    .help-main {
        padding: 20px 10px;
    }

    .help-slide {
        min-height: 450px;

        padding: 24px 18px;
    }


    /* -----------------------------------------------------
       Encabezados de sección
       ----------------------------------------------------- */

    .help-section-header {
        align-items: flex-start;

        gap: 12px;

        margin-bottom: 16px;
    }

    .help-section-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        font-size: 20px;
    }

    .help-section-title {
        font-size: 1.25rem;
    }

    .help-section-description {
        font-size: 0.84rem;
        line-height: 1.35;
    }


    /* -----------------------------------------------------
       Puntos compactos
       ----------------------------------------------------- */

    .help-access-step-compact,
    .help-navigation-point,
    .help-document-point,
    .help-sent-documents-point,
    .help-upload-point,
    .help-questionnaire-point {
        font-size: 13px;
    }

    .help-navigation-points,
    .help-document-points,
    .help-sent-documents-points,
    .help-upload-points,
    .help-questionnaire-points {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       Imágenes
       ----------------------------------------------------- */

    .help-slide-image {
        height: auto;

        padding: 7px;

        overflow: visible;
    }

    .help-slide-image .help-screenshot {
        width: 100%;
        height: auto;

        max-height: none;
    }


    /* -----------------------------------------------------
       Navegación
       En móvil vuelve debajo del carrusel
       ----------------------------------------------------- */

    .help-side-nav {
        position: absolute;

        top: auto;
        bottom: -58px;

        transform: none;
    }

    .help-side-nav:hover:not(:disabled) {
        transform: scale(1.05);
    }

    .help-side-nav-prev {
        left: 10px;
    }

    .help-side-nav-next {
        right: 10px;
    }

    .help-dots {
        margin-top: 18px;
        margin-bottom: 48px;
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 575.98px) {

    /* -----------------------------------------------------
       Header
       ----------------------------------------------------- */

    .help-header > .container-fluid > .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .help-header .auth-lang-switch {
        flex-wrap: wrap;
    }


    /* -----------------------------------------------------
       Slide
       ----------------------------------------------------- */

    .help-slide {
        padding: 20px 15px;
    }


    /* -----------------------------------------------------
       Slide inicial
       ----------------------------------------------------- */

    .help-slide-icon {
        width: 62px;
        height: 62px;

        font-size: 27px;
    }

    .help-lead {
        font-size: 15px;
    }


    /* -----------------------------------------------------
       Encabezados
       ----------------------------------------------------- */

    .help-section-header {
        gap: 10px;
    }

    .help-section-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        font-size: 18px;
    }

    .help-section-title {
        font-size: 1.15rem;
    }

    .help-section-description {
        font-size: 0.82rem;
    }
}

.help-restart-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-top: 22px;
    padding: 8px 14px;

    color: #1e3c72;

    border: 1px solid #d6dee8;
    border-radius: 8px;

    background: #ffffff;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.help-restart-link:hover {
    background: #1e3c72;
    color: #ffffff;

    border-color: #1e3c72;
}

.help-restart-link i {
    font-size: 15px;
}