body, .app-default { background-color:#F6F6F6 !important; }
.app-wrapper,
.app-main,
.app-content,
.app-sidebar { background-color:#F6F6F6 !important; }

/* Narrow auto-width select inside input-group (e.g. SI/NO toggles) */
.input-group > .form-select-fit { flex: 0 0 auto !important; width: auto !important; }

/* =====================================================
   Panel derecho (MiPerfil) — card con acento de marca
   Mismo tratamiento para Edición, Notificaciones y Postulaciones
   ===================================================== */
.card-panel-right {
    background: #ffffff !important;
    border: 1px solid #e4e6ea !important;
    border-top: 3px solid #d1d3e0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}
.card-panel-right > .card-header {
    background: #f9f9f9 !important;
    border-bottom: 1px solid #e4e6ea !important;
}

/*
   App Header – gradient bar (demo20-style)
   ===================================================== */
.app-header-sice {
    background: #1b0e3e !important;
    border-bottom: 3px solid rgba(168, 50, 103, 0.55) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    min-height: 65px;
}
.app-header-sice.sticky {
    background: #1b0e3e !important;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

/* Cuando app-header-sice se aplica directamente al app-header (layout detalle) */
.app-header.app-header-sice {
    background: #1b0e3e !important;
    border-bottom: 3px solid rgba(168, 50, 103, 0.55) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

/* Logo responsive sizing */
.app-header-logo       { height: 30px; }
@media (min-width: 576px)  { .app-header-logo { height: 40px; } }
@media (min-width: 992px)  { .app-header-logo { height: 52px; } }

/* Vertical divider between logo and brand text */
.app-header-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

/* User avatar circle */
.app-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}
.app-header-avatar:hover,
.show > .app-header-avatar {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
}
/* Smaller avatar inside the dropdown panel */
.app-header-avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
    background: #a83267;
    border: none;
    color: #fff;
}

/* Remove Bootstrap dropdown caret */
.app-header-sice .dropdown-toggle::after { display: none; }

/* Dropdown menu polish */
.app-header-dropdown {
    min-width: 220px;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    border-radius: .75rem;
    overflow: hidden;
}
.app-header-dropdown .dropdown-item {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    width: calc(100% - 0.5rem);
    transition: background 0.12s ease;
}
.app-header-dropdown .dropdown-item:hover { background-color: #f6f0fb; }
.app-header-dropdown .dropdown-item.text-danger:hover { background-color: #fff0f3; }

@media (min-width: 576px) {
    .w-sm-auto { width: auto !important; }
}

.cursor-pointer { cursor: pointer; }

/* ===================================================
   Card Sección – dashboard de secciones
   Color solo en borde izquierdo + badge (2 señales, no 5)
   =================================================== */
.card-seccion {
    border-radius: .625rem;
    transition: box-shadow .15s ease, transform .15s ease;
}
.card-seccion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}
.card-seccion:active {
    transform: translateY(0);
    box-shadow: none;
    background-color: #fafafa;
}
.card-seccion-title { font-size: 0.875rem; line-height: 1.45; color: #3f4254; }

/* Número de sección — siempre gris neutro, nunca coloreado */
.seccion-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f8;
    border: 1px solid #e4e6ea;
    color: #3f4254;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.seccion-progress-bg { height: 3px; background-color: #e9ecef; border-radius: 99px; }

@media (max-width: 575.98px) {
    .card-seccion-title { font-size: 0.875rem; }
}

.menu-active-bg .menu-item .menu-link.active{ background-color: #fae7ef !important; }
.w-5 {
    width: 5% !important;
}
.w-10 {
 width:10% !important;
}
.w-12 {
    width: 12% !important;
}
.w-20 {
    width: 20% !important;
}
.w-30 {
    width: 30% !important;
}
.w-35 {
    width: 35% !important;
}
.w-70 {
    width: 70% !important;
}
.w-80 {
    width: 80% !important;
}

.text-justify { text-align:justify !important;}

.bg-light-primary {
    background-color: #fae7ef !important;
}

/* Responsive improvements for card headers and collapse on small screens */
.card-seccion .card-header .btn { border: none; }
.card-seccion .card-header .btn i { transition: transform 0.25s ease; }
.card-seccion .card-header .btn.collapsed i { transform: rotate(0deg); }
.card-seccion .card-header .btn:not(.collapsed) i { transform: rotate(180deg); }

/* Increase tap targets on mobile */
@media (max-width: 575.98px) {
    .card-seccion .card-header { padding: 0.75rem 1rem; }
    .card-seccion .card-header .card-title { font-size: 0.95rem; }
    .card-seccion .card-body { padding: 0.75rem 1rem; }
    .card-seccion .card-footer { padding: 0.5rem 1rem; }
    .btn { padding: 0.5rem 0.75rem; }
}

/* Table responsive: allow horizontal scroll on small devices */
.table-responsive { overflow-x: auto; }
.table th, .table td { vertical-align: middle; }

/* Accessible focus outline for interactive elements */
button:focus, .form-control:focus, .form-select:focus { outline: 3px solid rgba(59,130,246,0.25); outline-offset: 2px; }

/* Badges responsive */
.badge-responsive { padding: .45em .6em; font-size: .75rem; }

/* Section inner styling for single-card layout */
.section-inner {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: .5rem;
    box-shadow: 0 0.5rem 1rem rgba(16,24,40,0.03);
}

/* Fade animation for section switching */
.show-section { animation: fadeInSection 220ms ease-in both; }
@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff7a;
    z-index: 1100;
    width: 100vw;
    height: 100vh;
    /*opacity: 0.5;*/
}

#loader {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -50px 0 0 -50px;
}

#loaderText {
    width: 100px;
    height: 10px;
    position: absolute;
    left: 50%;
    top: 62%;
    margin: -50px 0 0 -50px;
    text-align: center;
    font-weight: 700;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

    .btn-file input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }


.Form__content {
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;
    /*max-width: 480px;*/
    flex: 1 0 auto;
    /*box-shadow: 0 10px 20px rgb(0 0 0 / 15%);*/
}

.Form_control {
    position: relative;
}

.Form__label {
    cursor: pointer;
    display: flex;
    padding: 2rem;
    border-radius: 2rem;
    border: 2px dashed #8b13fc;
    border-color: var(--kt-primary) !important;
    flex-direction: column;
    align-items: center;
}

    .Form__label i {
        font-size: 5rem;
        /*color: #8b13fc;*/
        color: var(--kt-primary) !important;
        margin-bottom: 0.75rem;
    }

    .Form__label span {
        /*color: #ababab;*/
        color: var(--kt-primary) !important;
        text-align: center;
    }

.Form__input {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}


.fileInput {
    position: fixed;
    /*top: 0;*/
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
    width:100% !important;
}

/* =====================================================
   Card Item – shared design token for list cards
   (sections 3, 4, 6, 7, 8)
   ===================================================== */
.card-item {
    border: 1px solid var(--bs-border-color, #e4e6ea);
    border-radius: 0.625rem;
    background: #ffffff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card-item:hover {
    box-shadow: 0 0.25rem 0.85rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.card-item-label {
    font-size: 0.73rem;
    padding: 0.3em 0.65em;
    border-radius: 0.375rem;
    white-space: normal;
    line-height: 1.3;
    font-weight: 600;
}
.card-item-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #181c32;
    margin-bottom: 0.25rem;
    line-height: 1.35;
}
.card-item-subtitle {
    font-size: 0.8125rem;
    color: #7e8299;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}
.card-item-meta {
    font-size: 0.8rem;
    color: #a1a5b7;
}
@media (max-width: 575.98px) {
    .card-item .card-body { padding: 0.875rem; }
    .card-item-title { font-size: 0.875rem; }
    .card-item-label { font-size: 0.7rem; }
}

/* =====================================================
   Mi Perfil – cover band & avatar overlap
   ===================================================== */
.profile-cover {
    height: 110px;
    background: #1b0e3e;
    position: relative;
}
.profile-cover::after {
    display: none;
}
.profile-avatar-wrap {
    margin-top: -56px;
    position: relative;
    z-index: 1;
}
.profile-avatar-wrap img {
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Edit-form section dividers */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.form-section-header .section-line {
    flex-grow: 1;
    border-top: 1px dashed rgba(0, 0, 0, 0.10);
}

/* Personal data value truncation for long strings (CURP / INE) */
.data-val-mono {
    font-size: 0.72rem;
    word-break: break-all;
    text-align: right;
    max-width: 145px;
}

/* =====================================================
   Postulaciones – expediente card con franja de estatus
   ===================================================== */
.postulacion-card {
    background: #fff;
    border-radius: 0.625rem;
    border: 1px solid rgba(0,0,0,.07);
    border-left: 4px solid #e4e6ea;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    transition: box-shadow .15s ease;
}
.postulacion-card:hover         { box-shadow: 0 4px 18px rgba(0,0,0,.09); }
.postulacion-card.status-cap    { border-left-color: #a1a5b7; }
.postulacion-card.status-rev    { border-left-color: #f6c000; }
.postulacion-card.status-obs    { border-left-color: #f1416c; }
.postulacion-card.status-ok1,
.postulacion-card.status-ok2    { border-left-color: #50cd89; }

/* Meta grid: Consejo + Cargo */
.postulacion-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9f9fb;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,.05);
}
@media (min-width: 576px) {
    .postulacion-meta { grid-template-columns: 1fr 1fr; }
}
.postulacion-meta-label {
    font-size: 0.685rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #b5b5c3;
    display: block;
    margin-bottom: 0.2rem;
}
.postulacion-meta-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #181c32;
    line-height: 1.4;
}

/* =====================================================
   Notificaciones – card con franja lateral semántica
   ===================================================== */
.notif-card {
    border-radius: 0.625rem;
    border: 1px solid rgba(0,0,0,.06);
    border-left: 4px solid #e4e6ea;
    padding: 1rem 1.25rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.notif-primary { border-left-color: #a83267; }
.notif-warning  { border-left-color: #f6c000; }
.notif-danger   { border-left-color: #f1416c; }
.notif-success  { border-left-color: #50cd89; }

/* Icon square inside notification */
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Responsive: stack button below text on mobile */
@media (max-width: 575.98px) {
    .notif-card .d-flex.align-items-start { flex-wrap: wrap; }
    .notif-card .btn.flex-shrink-0        { width: 100%; margin-top: .65rem; }
    .postulacion-card .btn.w-sm-auto      { width: 100% !important; }
}