.sidip-numeral-card {
    width: 100%;
    min-height: 132px;
    padding: 14px 12px;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    margin-bottom: 16px;
}

.sidip-numeral-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.sidip-numeral-icon {
    flex: 0 0 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidip-numeral-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sidip-numeral-content {
    flex: 1;
    min-width: 0;
}

.sidip-numeral-number {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.sidip-numeral-title {
    display: block;
    font-size: 0.73rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

.sidip-numeral-arrow {
    flex: 0 0 auto;
    font-size: 1.2rem;
    color: #94a3b8;
}

/* ===================== TEXTO INSTITUCIONAL ===================== */

.sidip-info-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    color: #475569;

    font-size: 0.90rem;
    line-height: 1.6;

    text-align: center;
}

.sidip-info-text-primary {
    margin-top: 10px;
    margin-bottom: 14px;
}

.sidip-info-text-secondary {
    margin-top: 0;
    margin-bottom: 0;

    color: #64748b;

    font-size: 0.86rem;
}

/* ===================== BLOQUE INSTITUCIONAL ===================== */

.sidip-info-card {
    max-width: 1000px;
    margin: 20px auto 24px auto;
    padding: 22px 28px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sidip-info-title {
    display: block;

    margin-bottom: 6px;

    color: #0f172a;

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;

    text-align: center;
}

.sidip-info-subtitle {
    display: block;

    margin-bottom: 12px;

    color: #475569;

    font-size: 0.82rem;
    font-weight: 700;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===================== FILTROS ===================== */

.sidip-filter-group {
    padding: 4px 10px 10px 10px;
}

.sidip-filter-label {
    display: block;
    margin-bottom: 7px;

    color: #1f2937;

    font-size: 0.85rem;
    font-weight: 600;

    line-height: 1.2;
}

select.sidip-filter-select,
.sidip-filter-select select {
    width: 100% !important;
    min-height: 44px !important;

    padding: 8px 38px 8px 12px !important;

    background-color: #ffffff !important;
    color: #334155 !important;

    border: 1px solid #d6dde7 !important;
    border-radius: 8px !important;

    font-size: 0.88rem !important;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

select.sidip-filter-select:hover,
.sidip-filter-select select:hover {
    border-color: #94a3b8 !important;
}

select.sidip-filter-select:focus,
.sidip-filter-select select:focus {
    outline: none !important;

    border-color: #2563eb !important;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* ===================== BOTON DE CONSULTA ===================== */

.sidip-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    background: #2a3b69;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

.sidip-search-button:hover {
    background: #6379c0;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.15);
}


/* ===================== INFORMACION ACTUALIZADA ===================== */

.sidip-update-info {
    display: block;
    margin: 12px 0 8px 0;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/*===============================================================*/
/*=============================MOVIL=============================*/
/*===============================================================*/

@media (max-width: 600px) {

    .sidip-numeral-card {
        min-height: 78px;
        padding: 10px 12px;
        gap: 12px;
        border-radius: 8px;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .sidip-numeral-icon {
        flex-basis: 40px;
    }

    .sidip-numeral-icon img {
        width: 38px;
        height: 38px;
    }

    .sidip-numeral-content {
        text-align: left;
    }

    .sidip-numeral-number {
        display: block;
        margin: 0 0 3px 0;
        font-size: 1rem;
    }

    .sidip-numeral-title {
        display: block;
        font-size: 0.80rem;
        line-height: 1.25;
    }

    .sidip-numeral-arrow {
        font-size: 1.2rem;
    }

    .sidip-resultados-info {
        margin-bottom: 14px;
    }

    .sidip-search-button {
        min-height: 40px;
        padding: 9px 18px;
        font-size: 0.86rem;
    }

    .sidip-update-info {
        margin: 14px 0 10px 0;
        padding: 0 8px;
        font-size: 0.84rem;
        line-height: 1.45;
        text-align: left;
    }

    .sidip-filter-group {
        padding: 3px 0 10px 0;
    }

    .sidip-filter-label {
        margin-bottom: 6px;
        font-size: 0.84rem;
    }

    select.sidip-filter-select,
    .sidip-filter-select select {
        min-height: 42px !important;
        font-size: 0.86rem !important;
    }

    .sidip-info-card {
        margin: 14px 0 18px 0;
        padding: 18px 16px;
    }

    .sidip-info-title {
        font-size: 1rem;
    }

    .sidip-info-subtitle {
        font-size: 0.78rem;
    }

    .sidip-info-text {
        font-size: 0.86rem;
        line-height: 1.55;

        text-align: left;
    }

    .sidip-info-text-primary {
        margin-top: 10px;
        margin-bottom: 14px;
    }

    .sidip-info-text-secondary {
        font-size: 0.82rem;
    }
}


/*=================================================================*/
/*==========================SIDEBAR SIDIP==========================*/
/*=================================================================*/

#main-aside {
    background: #111827 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow: 4px 0 18px rgba(15, 23, 42, 0.08);

    overflow-x: hidden;
}

/* ===================== MARCA SIDIP ===================== */

#main-aside .aside-tools {
    min-height: 64px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    background: #0f172a !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#main-aside .aside-tools-label {
    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 700;

    letter-spacing: 0.02em;
}

#main-aside .aside-tools-label b {
    color: #60a5fa;
}


/* ===================== CONTENIDO DEL MENU ===================== */

#main-aside .menu {
    padding: 18px 10px;
}


/* ===================== TITULOS ===================== */

#main-aside .menu-label {
    margin: 0 10px 8px 10px;

    color: #94a3b8 !important;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


/* ===================== LINKS ===================== */

#main-aside .menu-list {
    margin-bottom: 18px;
}

#main-aside .menu-list li {
    margin: 3px 0;
}

#main-aside .menu-list a {
    min-height: 44px;

    display: flex;
    align-items: center;

    padding: 9px 10px;

    color: #e5e7eb !important;

    border-radius: 8px;

    font-size: 0.88rem;
    font-weight: 500;

    text-decoration: none !important;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}


/* ===================== ICONOS ===================== */

#main-aside .menu-list a .icon {
    width: 34px !important;
    min-width: 34px;

    margin-right: 4px;

    color: #94a3b8;

    transition: color 0.18s ease;
}


/* ===================== HOVER ===================== */

#main-aside .menu-list a:hover {
    background: rgba(59, 130, 246, 0.12) !important;

    color: #ffffff !important;

    transform: translateX(2px);
}

#main-aside .menu-list a:hover .icon {
    color: #60a5fa;
}


/* ===================== TEXTO ===================== */

#main-aside .menu-item-label {
    line-height: 1.25;
}


/* Evitamos los <br> existentes causando demasiado espacio */

#main-aside .menu-list + br {
    display: none;
}


/* =========================================================
   SIDEBAR + OVERLAY MOVIL
   ========================================================= */

@media screen and (max-width: 1023px) {

    /* =====================================================
       SIDEBAR CERRADO
       ===================================================== */

    #main-aside {
        position: fixed !important;

        top: 0 !important;
        bottom: 0 !important;

        left: -280px !important;

        width: 280px !important;
        height: 100vh !important;

        display: block !important;

        background: #111827 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        z-index: 1200 !important;

        transition: left 0.25s ease !important;

        box-shadow: 8px 0 30px rgba(15, 23, 42, 0.30);
    }


    /* =====================================================
       SIDEBAR ABIERTO

       No importa si GeneXus/Bulma coloca la clase en:
       html, #html-content, body u otro contenedor padre.
       ===================================================== */

    .has-aside-mobile-expanded #main-aside {
        left: 0 !important;
    }


    /* =====================================================
       EVITAR QUE LA PAGINA SE DESPLACE
       ===================================================== */

    .has-aside-mobile-expanded #app,
    .has-aside-mobile-expanded #body-content,
    .has-aside-mobile-expanded #navbar-main {
        margin-left: 0 !important;
        transform: none !important;
    }


    #app,
    #body-content,
    #navbar-main {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* =====================================================
       OVERLAY
       ===================================================== */

    .sidip-overlay {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        background: rgba(15, 23, 42, 0.45) !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        z-index: 1100 !important;

        transition:
            opacity 0.20s ease,
            visibility 0.20s ease;
    }


    /* Overlay visible al abrir menú */

    .has-aside-mobile-expanded .sidip-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }


    /* =====================================================
       NAVBAR
       ===================================================== */

    #navbar-main {
        z-index: 1000 !important;
    }


    /* =====================================================
       AJUSTES INTERNOS SIDEBAR MOVIL
       ===================================================== */

    #main-aside .aside-tools {
        min-height: 58px;
        padding: 0 16px;
    }

    #main-aside .menu {
        padding: 16px 10px;
    }

    #main-aside .menu-list a {
        min-height: 46px;

        padding: 10px;

        font-size: 0.90rem;
    }

    #main-aside .menu-list a .icon {
        width: 34px !important;
        min-width: 34px;
    }
}

@media screen and (max-width: 1023px) {

    .jb-aside-mobile-toggle {
        position: fixed !important;

        top: 8px;
        left: 8px;

        width: 44px;
        height: 44px;

        display: flex !important;
        align-items: center;
        justify-content: center;

        padding: 0 !important;

        z-index: 1300 !important;

        background: #ffffff !important;

        border-radius: 8px;

        transition:
            left 0.25s ease,
            background-color 0.2s ease;

        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .has-aside-mobile-expanded .jb-aside-mobile-toggle {
        left: 292px;
    }
}

@media screen and (max-width: 1023px) {

    #navbar-main {
        position: fixed !important;
        min-height: 60px !important;
    }

    /* Logo centrado respecto a toda la pantalla */
    #navbar-main .navbar-brand > img {
        position: fixed !important;

        top: 30px !important;
        left: 50% !important;

        transform: translate(-50%, -50%) !important;

        height: 52px !important;
        width: auto !important;

        margin: 0 !important;

        z-index: 1050 !important;
    }

    /* Botón hamburguesa */
    .jb-aside-mobile-toggle {
        top: 8px !important;
        left: 8px !important;

        width: 44px !important;
        height: 44px !important;
    }

    /* Cuando el menú está abierto */
    .has-aside-mobile-expanded .jb-aside-mobile-toggle {
        left: 292px !important;
    }
}

/* =========================================================
   NAVBAR DESKTOP
   ========================================================= */

@media screen and (min-width: 1024px) {

    #navbar-main {
        position: fixed !important;

        top: 0 !important;
        left: 14rem !important;
        right: 0 !important;

        width: calc(100% - 14rem) !important;
        min-height: 64px !important;

        padding: 0 20px !important;

        background: #ffffff !important;

        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);

        display: flex !important;
        align-items: center !important;

        z-index: 1000 !important;
    }

    #navbar-main .navbar-brand {
        min-height: 64px !important;

        display: flex !important;
        align-items: center !important;
    }

    #navbar-main .navbar-brand > img {
        height: 46px !important;
        width: auto !important;

        object-fit: contain;

        margin: 0 !important;
    }

    #navbar-main .navbar-menu {
        background: transparent !important;
        box-shadow: none !important;

        min-height: 64px;

        align-items: center;
    }

    #navbar-main .navbar-end {
        display: flex;
        align-items: center;

        min-height: 64px;
    }

    #navbar-main .navbar-item {
        color: #334155 !important;

        min-height: 44px;

        border-radius: 8px;

        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    #navbar-main .navbar-item:hover {
        background: #f1f5f9 !important;
        color: #0f172a !important;
    }
}

/* =========================================================
   TITULO DE PAGINA / HERO
   ========================================================= */

.hero.is-hero-bar {
    background: transparent !important;
    box-shadow: none !important;
}

.hero.is-hero-bar .hero-body {
    padding: 18px 24px !important;
}

.hero.is-hero-bar .level {
    margin-bottom: 0 !important;
}

.hero.is-hero-bar .title {
    margin: 0 !important;

    color: #0f172a !important;

    font-size: 1.65rem !important;
    font-weight: 700 !important;

    line-height: 1.2 !important;

    letter-spacing: -0.02em;
}

@media screen and (min-width: 1024px) {

    .hero.is-hero-bar {
        margin: 14px 20px 0 20px;

        background: #ffffff !important;

        border: 1px solid #e5e7eb;
        border-radius: 10px;

        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }

}

@media screen and (max-width: 1023px) {

    .hero.is-hero-bar {
        margin: 12px 14px 0 14px;

        background: #ffffff !important;

        border: 1px solid #e5e7eb;
        border-radius: 10px;
    }

    .hero.is-hero-bar .hero-body {
        padding: 16px 18px !important;
    }

    .hero.is-hero-bar .title {
        font-size: 1.35rem !important;
    }

}

/* =========================================================
   CABECERA SIDIP
   ========================================================= */

#main-aside .aside-tools {
    min-height: 72px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #16213a 100%
        ) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

#main-aside .aside-tools-label {
    width: 100%;

    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 800;

    letter-spacing: 0.03em;

    position: relative;

    padding-left: 14px;
}

#main-aside .aside-tools-label::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 4px;
    height: 28px;

    transform: translateY(-50%);

    background: #60a5fa;

    border-radius: 999px;
}

#main-aside .aside-tools-label span {
    display: inline-flex;
    align-items: center;
}

#main-aside .aside-tools-label b {
    color: #60a5fa;
    font-weight: 900;
}

/* =========================================================
   PAGINA DE AYUDA
   ========================================================= */

.sidip-help {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 36px 24px;
}


/* ===================== INTRODUCCION ===================== */

.sidip-help-intro {
    max-width: 980px;
    margin: 0 auto 28px auto;

    text-align: center;
}

.sidip-help-title {
    margin: 0 0 14px 0;

    color: #0f172a;

    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.02em;
}

.sidip-help-text {
    margin: 0;

    color: #475569;

    font-size: 0.95rem;
    line-height: 1.7;
}


/* ===================== TARJETAS ===================== */

.sidip-help-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 24px;
}

.sidip-help-card {
    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.sidip-help-card-title {
    margin: 0 0 10px 0;

    color: #1e3a5f;

    font-size: 0.95rem;
    font-weight: 800;

    line-height: 1.3;
}

.sidip-help-card-text {
    margin: 0;

    color: #475569;

    font-size: 0.90rem;
    line-height: 1.65;
}


/* ===================== IMPORTANTE ===================== */

.sidip-help-important {
    padding: 24px 28px;

    background: #f8fafc;

    border: 1px solid #dbe4ef;
    border-left: 4px solid #2a3b69;

    border-radius: 10px;
}

.sidip-help-important-title {
    margin: 0 0 10px 0;

    color: #0f172a;

    font-size: 0.95rem;
    font-weight: 800;
}

.sidip-help-important-text {
    margin: 0;

    color: #475569;

    font-size: 0.90rem;
    line-height: 1.7;
}


/* ===================== MOVIL ===================== */

@media screen and (max-width: 767px) {

    .sidip-help {
        padding: 20px 16px 28px 16px;
    }

    .sidip-help-intro {
        margin-bottom: 22px;

        text-align: left;
    }

    .sidip-help-title {
        text-align: center;

        font-size: 1.1rem;
    }

    .sidip-help-text {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .sidip-help-grid {
        grid-template-columns: 1fr;

        gap: 14px;

        margin-bottom: 18px;
    }

    .sidip-help-card {
        padding: 18px 16px;
    }

    .sidip-help-card-title {
        font-size: 0.9rem;
    }

    .sidip-help-card-text {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .sidip-help-important {
        padding: 18px 16px;
    }

    .sidip-help-important-text {
        font-size: 0.86rem;
        line-height: 1.55;
    }
}

/* =========================================================
   MODAL AYUDA
   ========================================================= */

.sidip-help-modal {
    position: fixed !important;
    inset: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 5000 !important;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


/* Modal abierto */
.sidip-help-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Fondo oscuro */
.sidip-help-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.55);

    backdrop-filter: blur(2px);
}


/* Ventana */
.sidip-help-modal-dialog {
    position: relative;

    width: 100%;
    max-width: 1000px;

    max-height: calc(100vh - 48px);

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.28);

    z-index: 1;
}


/* ===================== ENCABEZADO ===================== */

.sidip-help-modal-header {
    padding: 22px 70px 18px 28px;

    border-bottom: 1px solid #e5e7eb;
}

.sidip-help-modal-header h2 {
    margin: 0;

    color: #0f172a;

    font-size: 1.4rem;
    font-weight: 700;
}


/* ===================== CUERPO ===================== */

.sidip-help-modal-body {
    padding: 24px 28px 28px 28px;
}


/* Texto introductorio */
.sidip-help-modal-intro {
    max-width: 900px;

    margin: 0 auto 24px auto;

    color: #475569;

    font-size: 0.92rem;
    line-height: 1.65;

    text-align: center;
}


/* ===================== TARJETAS ===================== */

.sidip-help-modal-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.sidip-help-modal-card {
    padding: 20px 22px;

    background: #ffffff;

    border: 1px solid #dbe2ea;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.sidip-help-modal-card h3 {
    margin: 0 0 10px 0;

    color: #1e3a5f;

    font-size: 0.92rem;
    font-weight: 800;
}

.sidip-help-modal-card p {
    margin: 0;

    color: #475569;

    font-size: 0.88rem;
    line-height: 1.6;
}


/* ===================== BOTON CERRAR ===================== */

.sidip-help-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #f8fafc;

    color: #475569;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    cursor: pointer;

    z-index: 2;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sidip-help-modal-close:hover {
    background: #eef2f7;
    color: #0f172a;

    transform: scale(1.04);
}


/* =========================================================
   MODAL AYUDA - MOVIL
   ========================================================= */

@media screen and (max-width: 767px) {

    .sidip-help-modal {
        padding: 12px;
    }

    .sidip-help-modal-dialog {
        max-height: calc(100vh - 24px);

        border-radius: 12px;
    }

    .sidip-help-modal-header {
        padding: 18px 56px 14px 18px;
    }

    .sidip-help-modal-header h2 {
        font-size: 1.2rem;
    }

    .sidip-help-modal-body {
        padding: 18px;
    }

    .sidip-help-modal-intro {
        margin-bottom: 18px;

        font-size: 0.86rem;
        line-height: 1.55;

        text-align: left;
    }

    .sidip-help-modal-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .sidip-help-modal-card {
        padding: 16px;
    }

    .sidip-help-modal-card h3 {
        font-size: 0.88rem;
    }

    .sidip-help-modal-card p {
        font-size: 0.84rem;
        line-height: 1.55;
    }

}