/* ==========================================================================
   IBCG Core Centralizado - Hoja de Estilos Corporativa (core.css)
   Cumple estrictamente con .agents/rules/frontend.md:
   - Paleta Oficial IBCG: #3287B2 (Azul Celeste), #172C59 (Azul Marino), #333333 (Gris)
   - Prefijo exclusivo `core_` para evitar colisión con módulos insertados
   ========================================================================== */

:root {
    --color-brand-1: #3287B2;
    --color-brand-2: #172C59;
    --color-brand-3: #333333;
    --brand-logo: url('https://ibcg.org/comunidad/comercios/logos/3682-20251007125034-5232010.png');
    --brand-logo-white: url('https://ibcg.org/comunidad/imagenes/imagenes/3682202605311544305237906.png');

    --core_header_height: 66px;
    --core_sidebar_width: 288px;
    --core_surface_bg: #f3f6fa;
    --core_card_bg: #ffffff;
    --core_border_color: rgba(23, 44, 89, 0.11);
    --core_radius_lg: 16px;
    --core_radius_md: 12px;
    --core_shadow_sm: 0 2px 10px rgba(23, 44, 89, 0.06);
    --core_shadow_lg: 0 20px 45px rgba(23, 44, 89, 0.22);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. PANTALLA DE LOGIN EMBEBIDO (Full-screen WebApp Login)
   ========================================================================== */
body.core_login_body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(145deg, var(--color-brand-2) 0%, #0d1b3a 65%, var(--color-brand-1) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-brand-3);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.core_login_wrapper {
    width: 100%;
    max-width: 440px;
    animation: core_fade_up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.core_login_card {
    background: var(--core_card_bg);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--core_shadow_lg);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.core_login_header {
    background: var(--color-brand-2);
    padding: 32px 28px 24px;
    text-align: center;
    border-bottom: 4px solid var(--color-brand-1);
    position: relative;
}

.core_login_logo {
    max-width: 220px;
    max-height: 76px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    margin-bottom: 12px;
}

.core_login_subdomain_pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(50, 135, 178, 0.25);
    color: #ffffff;
    border: 1px solid rgba(50, 135, 178, 0.55);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.core_login_content {
    padding: 28px 28px 24px;
}

.core_login_title_box {
    text-align: center;
    margin-bottom: 20px;
}

.core_login_title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-brand-2);
    letter-spacing: -0.02em;
}

.core_login_subtitle {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-brand-3);
    opacity: 0.85;
}

.core_login_destination_badge {
    background: rgba(50, 135, 178, 0.1);
    border: 1px solid rgba(50, 135, 178, 0.3);
    color: var(--color-brand-2);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.core_login_alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.core_login_alert_error {
    background: rgba(23, 44, 89, 0.08);
    border-left: 4px solid var(--color-brand-2);
    color: var(--color-brand-2);
}

.core_login_alert_success {
    background: rgba(50, 135, 178, 0.12);
    border-left: 4px solid var(--color-brand-1);
    color: var(--color-brand-2);
}

.core_form_group {
    margin-bottom: 18px;
}

.core_form_label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-brand-2);
    margin-bottom: 6px;
}

.core_input_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.core_input_icon {
    position: absolute;
    left: 14px;
    color: var(--color-brand-1);
    font-size: 1.05rem;
    pointer-events: none;
}

.core_form_input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid var(--core_border_color);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--color-brand-3);
    background: #f9fbfd;
    transition: all 0.2s ease;
    outline: none;
}

.core_form_input:focus {
    background: #ffffff;
    border-color: var(--color-brand-1);
    box-shadow: 0 0 0 4px rgba(50, 135, 178, 0.15);
}

.core_password_toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-brand-3);
    opacity: 0.65;
    cursor: pointer;
    padding: 6px;
    font-size: 1rem;
}

.core_btn_submit {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-brand-2) 0%, var(--color-brand-1) 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23, 44, 89, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.core_btn_submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(23, 44, 89, 0.32);
}

.core_login_footer {
    background: #f8fafc;
    border-top: 1px solid var(--core_border_color);
    padding: 14px 20px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-brand-3);
    opacity: 0.8;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   2. SHELL CORPORATIVO WEBAPP (Header Fijo + Menú Izquierdo + Viewport + Footer)
   ========================================================================== */
body.core_body {
    margin: 0;
    padding: 0;
    background-color: var(--core_surface_bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-brand-3);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* HEADER SUPERIOR FIJO ANTE SCROLL */
.core_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--core_header_height);
    background: var(--color-brand-2);
    border-bottom: 3px solid var(--color-brand-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(23, 44, 89, 0.22);
}

.core_header_left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.core_menu_toggle_btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(50, 135, 178, 0.2);
    color: #ffffff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.core_menu_toggle_btn:hover {
    background: var(--color-brand-1);
    border-color: #ffffff;
}

.core_brand_link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.core_brand_logo {
    height: 40px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
}

.core_header_divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.18);
}

.core_header_context {
    display: flex;
    align-items: center;
    gap: 8px;
}

.core_context_subdomain {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.core_context_module {
    background: var(--color-brand-1);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.core_action_pill {
    background: rgba(50, 135, 178, 0.24);
    border: 1px solid rgba(50, 135, 178, 0.6);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.core_action_pill:hover {
    background: var(--color-brand-1);
}

.core_user_chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 8px 5px 6px;
    border-radius: 999px;
}

.core_user_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-brand-1);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core_user_info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.core_user_name {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.core_user_role {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
}

.core_logout_btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.core_logout_btn:hover {
    background: var(--color-brand-1);
}

/* ==========================================================================
   3. MENÚ IZQUIERDO (SÚPER MENÚ QUE ABRE Y CIERRA DESDE EL HEADER)
   ========================================================================== */
.core_sidebar {
    position: fixed;
    top: var(--core_header_height);
    left: 0;
    bottom: 0;
    width: var(--core_sidebar_width);
    background: var(--color-brand-2);
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 24px rgba(23, 44, 89, 0.15);
}

/* Cuando se cierra el menú en Desktop */
.core_app_shell.core_sidebar_collapsed .core_sidebar {
    transform: translateX(-100%);
}

.core_sidebar_search_box {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.core_search_input_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.core_search_input_wrap i {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.core_search_input {
    width: 100%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 9px 12px 9px 34px;
    color: #ffffff;
    font-size: 0.83rem;
    outline: none;
}

.core_search_input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.core_search_input:focus {
    border-color: var(--color-brand-1);
    background: rgba(255, 255, 255, 0.14);
}

.core_sidebar_nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 18px;
}

.core_nav_group {
    margin-bottom: 10px;
}

.core_nav_group_header {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.core_nav_group_arrow {
    transition: transform 0.2s ease;
}

.core_nav_group:not(.core_group_open) .core_nav_group_items {
    display: none;
}

.core_nav_group:not(.core_group_open) .core_nav_group_arrow {
    transform: rotate(-90deg);
}

.core_nav_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 11px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.core_nav_item:hover {
    background: rgba(50, 135, 178, 0.22);
    color: #ffffff;
}

.core_nav_item_active {
    background: var(--color-brand-1);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(50, 135, 178, 0.35);
}

.core_nav_item_left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.core_nav_icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.core_nav_text_wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.core_nav_title {
    font-size: 0.87rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.core_nav_host_tag {
    font-size: 0.69rem;
    color: rgba(255, 255, 255, 0.68);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.core_nav_badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    flex-shrink: 0;
}

.core_sidebar_footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.core_sidebar_status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.core_status_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-brand-1);
    box-shadow: 0 0 0 4px rgba(50, 135, 178, 0.28);
}

.core_status_title {
    font-size: 0.78rem;
    font-weight: 700;
}

.core_status_sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   4. CONTENEDOR CENTRAL DE MÓDULOS (.core_viewport) Y FOOTER PRESENTE
   ========================================================================== */
.core_viewport {
    margin-top: var(--core_header_height);
    margin-left: var(--core_sidebar_width);
    min-height: calc(100vh - var(--core_header_height));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: margin-left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.core_app_shell.core_sidebar_collapsed .core_viewport {
    margin-left: 0;
}

.core_viewport_inner {
    padding: 28px 30px;
    flex: 1;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
}

/* COMPONENTES INTERNOS DEL VIEWPORT */
.core_module_hero {
    background: linear-gradient(135deg, var(--color-brand-2) 0%, #203d7a 100%);
    color: #ffffff;
    border-radius: var(--core_radius_lg);
    padding: 28px 30px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 4px solid var(--color-brand-1);
    box-shadow: var(--core_shadow_sm);
}

.core_badge_brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-brand-1);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.core_module_title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.core_module_desc {
    margin: 0;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 740px;
    line-height: 1.55;
}

.core_module_desc code {
    background: rgba(255, 255, 255, 0.16);
    padding: 2px 6px;
    border-radius: 6px;
    color: #ffffff;
}

.core_module_hero_actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.core_btn_primary {
    background: var(--color-brand-1);
    color: #ffffff;
    border: none;
    padding: 11px 18px;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.core_btn_primary:hover {
    opacity: 0.92;
}

.core_btn_outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 11px 18px;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.core_stats_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.core_stat_card {
    background: var(--core_card_bg);
    border: 1px solid var(--core_border_color);
    border-radius: var(--core_radius_md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--core_shadow_sm);
}

.core_stat_icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(50, 135, 178, 0.12);
    color: var(--color-brand-1);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.core_stat_label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-brand-3);
    opacity: 0.7;
}

.core_stat_value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-brand-2);
    margin-top: 2px;
}

.core_section_header {
    margin-bottom: 16px;
}

.core_section_header h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: var(--color-brand-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.core_section_header p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-brand-3);
    opacity: 0.8;
}

.core_cards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 18px;
}

.core_split_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.core_panel_card {
    background: var(--core_card_bg);
    border: 1px solid var(--core_border_color);
    border-radius: var(--core_radius_lg);
    overflow: hidden;
    box-shadow: var(--core_shadow_sm);
}

.core_panel_card_header {
    padding: 16px 20px;
    background: #f8fafd;
    border-bottom: 1px solid var(--core_border_color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.core_panel_card_header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-brand-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.core_pill_count {
    background: rgba(50, 135, 178, 0.14);
    color: var(--color-brand-1);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.core_panel_card_body {
    padding: 18px 20px;
}

.core_quick_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 1px solid var(--core_border_color);
    border-radius: 11px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--color-brand-3);
    transition: all 0.15s ease;
}

.core_quick_link:last-child {
    margin-bottom: 0;
}

.core_quick_link:hover {
    border-color: var(--color-brand-1);
    background: rgba(50, 135, 178, 0.05);
    transform: translateX(2px);
}

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

.core_quick_icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--color-brand-2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core_quick_title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-brand-2);
}

.core_quick_url {
    font-size: 0.75rem;
    color: var(--color-brand-3);
    opacity: 0.72;
}

.core_form_input_plain {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--core_border_color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--color-brand-3);
}

.core_form_row_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.core_group_label_mini {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-brand-1);
    margin-bottom: 6px;
}

.core_code_block {
    background: var(--color-brand-2);
    color: #ffffff;
    padding: 16px 18px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.55;
}

.core_feature_list {
    margin: 12px 0 0;
    padding-left: 20px;
    line-height: 1.65;
}

.core_alert {
    padding: 13px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.core_alert_success {
    background: rgba(50, 135, 178, 0.14);
    border-left: 4px solid var(--color-brand-1);
    color: var(--color-brand-2);
}

.core_alert_danger {
    background: rgba(23, 44, 89, 0.1);
    border-left: 4px solid var(--color-brand-2);
    color: var(--color-brand-2);
}

/* FOOTER CORPORATIVO PRESENTE (Fondo Claro: Aplica Regla 1 con Logo Estándar Oficial) */
.core_footer {
    background: #ffffff;
    border-top: 1px solid var(--core_border_color);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

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

.core_footer_logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.core_footer_brand {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--color-brand-2);
}

.core_footer_copy {
    font-size: 0.75rem;
    color: var(--color-brand-3);
    opacity: 0.75;
}

.core_footer_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.core_footer_pill {
    background: #f3f6fa;
    border: 1px solid var(--core_border_color);
    color: var(--color-brand-2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* TOAST CORPORATIVO */
.core_toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: var(--color-brand-2);
    color: #ffffff;
    border-left: 4px solid var(--color-brand-1);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--core_shadow_lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.25s ease;
}

.core_toast.core_toast_visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   5. RESPONSIVE ESTILO WEBAPP MÓVIL (Drawer Táctil + Bottom TabBar)
   ========================================================================== */
.core_sidebar_backdrop {
    display: none;
}

.core_mobile_tabbar {
    display: none;
}

@media (max-width: 991px) {
    .core_hide_mobile {
        display: none !important;
    }

    .core_header_divider,
    .core_context_subdomain {
        display: none;
    }

    .core_sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .core_app_shell.core_mobile_drawer_open .core_sidebar {
        transform: translateX(0);
    }

    .core_sidebar_backdrop {
        display: block;
        position: fixed;
        inset: var(--core_header_height) 0 0 0;
        background: rgba(23, 44, 89, 0.55);
        backdrop-filter: blur(3px);
        z-index: 1035;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .core_app_shell.core_mobile_drawer_open .core_sidebar_backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .core_viewport {
        margin-left: 0 !important;
        padding-bottom: 66px;
    }

    .core_viewport_inner {
        padding: 18px 16px;
    }

    .core_footer {
        padding: 16px;
    }

    /* Barra inferior tipo App Móvil Nativa */
    .core_mobile_tabbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: var(--color-brand-2);
        border-top: 2px solid var(--color-brand-1);
        z-index: 1045;
        justify-content: space-around;
        align-items: center;
        padding: 0 6px;
        box-shadow: 0 -4px 18px rgba(23, 44, 89, 0.25);
    }

    .core_mobile_tab {
        flex: 1;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.68rem;
        font-weight: 600;
        padding: 6px 0;
        cursor: pointer;
    }

    .core_mobile_tab i {
        font-size: 1.15rem;
    }

    .core_mobile_tab_active {
        color: #ffffff;
        font-weight: 800;
    }
}

@keyframes core_fade_up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
