/* ===========================
   CLASES PARA REEMPLAZAR ESTILOS INLINE
   =========================== */

.spinner-loading {
    width: 3rem;
    height: 3rem;
}

.header-logo {
    width: 120px !important;
    height: auto;
}

.header-title {
    font-size: 1.2rem;
}

.header-menu-icon {
    font-size: 1.6rem;
}

.footer-logo {
    max-height: 70px;
}

.footer-logo-small {
    max-height: 50px;
}

.error-card {
    max-width: 900px;
}

.index-image {
    object-fit: cover;
}

.alert-info-small {
    font-size: 0.99em;
}

.alert-warning-small {
    font-size: 0.99em;
}

.alert-renuncia {
    font-size: 0.98em;
}

.card-header-center {
    font-size: 1.09em;
}

.icon-large {
    font-size: 1.5em;
}

.icon-pdf {
    color: #BB2D3B;
}

.checkbox-no-margin {
    margin-top: 0;
}

.vr-custom {
    height: 2.5rem;
}

.error-card-container {
    max-width: 600px;
}

.alert-text-size {
    font-size: 0.99em;
}

.card-header-size {
    font-size: 1.09em;
}

.icon-size {
    font-size: 1.5em;
}

.display-inline-block {
    display: inline-block;
}

.tipo-recurso-error {
    display: none;
}

.pdf-icon-color {
    color: #BB2D3B;
}

:root {
    /* Colores Bootstrap sobrescritos */
    --bs-primary: #114DA6;
    --bs-link-color: #114DA6;
    --bs-primary-hover: #0f4391;
    --bs-primary-shadow: #114DA6;
    --bs-link-color-rgb: 17, 77, 166;

    /* Fuentes */
    --font-primary: 'Nunito Sans', sans-serif;
    --font-secondary: 'Merriweather', serif;

    /* Tamaños de fuente */
    --font-size-base: 16px;
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1rem;
    --font-size-h6: 0.875rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;

    /* Custom (listados, badges, botones) */
    --Status-Warning-500: #594100;
    --Status-Warning-200: #FCF0DC;
    --Txt-Negative: #FFF;
    --Bg-Interactive: #114DA6;
    --Txt-Interactive: #114DA6;
    --Border-Interactive: #114DA6;
    --Bg-Interactive-soft: #E8EFFA;
    --Bg-Primary: #FFF;
    --Bg-Hover: #093473;
}

/* ===========================
   UTILIDADES Y SOBRESCRITURAS
   =========================== */
.bg-primary { background-color: var(--bs-primary) !important; }
.text-primary { color: var(--bs-primary) !important; }
.w250 { width: 250px; }
.w150 { width: 150px; }

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
    box-shadow: 0 0 8px var(--bs-primary-shadow);
}
.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
    background-color: var(--bs-primary);
    color: #fff !important;
    border-color: var(--bs-primary);
    box-shadow: 0 0 8px var(--bs-primary-shadow);
}

/* Pills activos */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #191a1c;
}

/* Navbar y toggler custom */
.navbar.navbar-custom { border: 2px solid transparent; color: white; }
.navbar-custom .navbar-toggler { border-color: white; }
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Estilo para enlaces en th (encabezados de tabla) */
th > a { color: #fff; }

/* ===========================
   LOGIN Y NAVBAR BRAND
   =========================== */
.card-login { padding: 6px; margin: 12px 0 12px 1px; }
.card-login .card-header { background-color: aliceblue !important; }
.mf-footer, .container-footer { width: 100%; }
.navbar-brand { padding: 0; }
.navbar-brand > img { height: 100%; width: auto; }
.navbar-text {
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    margin: auto;
    padding-top: 10px;
}

/* ============ GRADIENTES Y FONDOS =========== */
.gradient-custom-2 {
    background: linear-gradient(90deg, #fff 0%, #404040 35%, #373737 100%);
    border-top-right-radius: .3rem;
    border-bottom-right-radius: .3rem;
}
@media (max-width: 768px) { .gradient-custom-2 { border-radius: 0; } }
.bg-image-vertical {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}
@media (min-width: 1025px) { .h-custom-2 { height: 100%; } }
.bg-login-clave {
    background: linear-gradient(120deg, #f7fafc 70%, #e8effa 100%);
}
.glass-card {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(2.5px);
    box-shadow: 0 12px 48px #0001, 0 1.5px 5px #9ec2e044;
}
@media (max-width: 991px) { .glass-card { padding: 2rem 1rem; } }

/* ============ NAV-LINK Y PESTAÑAS =========== */
.nav-link { font-weight: bold; }

/* ======= ESTILO REENVIAR (icono a la derecha) ======= */
.reenviar {
    padding-right: 25px !important;
    background-repeat: no-repeat !important;
    background-position: right !important;
}
.reenviar:hover { background-color: #eee !important; }

/* ====== TAB CONTENT VISIBILIDAD ====== */
.tab-content > .tab-pane { visibility: hidden !important; }
.tab-content > .active { visibility: visible !important; }

/* ====== CURSOR NONE Y LABEL ERROR ====== */
.cursor-none { cursor: default; }
.labelError {
    width: 100%;
    margin-top: 0.25rem;
    font-size: .875em;
    color: #dc3545;
}

/* =========== PROGRESS BAR ========== */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 100%;
    background-color: #3498db;
    animation: progress 2s infinite;
}
@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* =========== SECTION WRAPPER ========== */
.section-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    box-shadow: 0 0 0.5rem rgba(0,0,0,0.1);
    width: 100%;
}

/* =========== BOTÓN FULL WIDTH ========== */
.btn-custom { width: 100%; }

/* =========== ENLACE CUSTOM ========== */
.custom-link {
    color: #B00000;
    text-decoration: none;
    transition: color 0.3s;
}
.custom-link:hover {
    color: #900000;
    text-decoration: underline;
}

/* ======= TIPOGRAFÍA CABECERAS ======= */
h2 { font-family: 'Nunito Sans', sans-serif; }
h4 { font-family: 'Merriweather', serif; }

/* ===========================
   LISTADO DE EXPEDIENTES Y CARDS
   =========================== */
.bg-listado-primary {
    color: var(--Status-Warning-500);
    border-radius: 16px;
    background: var(--Status-Warning-200);
}
.btn-listado-primary {
    color: var(--Txt-Negative);
    border-radius: 1px;
    background: var(--Bg-Interactive);
}
.btn-listado-primary:hover {
    color: var(--Txt-Interactive);
    border-radius: 1px;
    border: 2px solid var(--Border-Interactive);
    background: var(--Bg-Interactive-soft);
}
.btn-listado-outline-primary {
    color: var(--Txt-Interactive);
    border-radius: 1px;
    border: 2px solid var(--Border-Interactive);
    background: var(--Bg-Primary);
}
.btn-listado-outline-primary:hover {
    color: var(--Txt-Negative);
    background: var(--Bg-Hover);
}

/* =========== TABLA DIV-BASED ========== */
.tabla-div { display: table; width: 100%; border-collapse: collapse; overflow-x: auto; }
.fila-div { display: table-row; }
.columna-div {
    display: table-cell;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}
.cabecera {
    font-weight: bold;
    background-color: #f8f9fa;
    text-align: center;
}

/* =========== RESPONSIVE TABLES ========== */
@media (max-width: 768px) {
    .tabla-div, .fila-div, .columna-div { display: block; width: 100%; }
    .cabecera { display: none; }
    .fila-div { margin-bottom: 1rem; }
    .columna-div { padding: 10px; text-align: left; }
    .tabla-div .btn-group { display: block; margin-top: 5px; }
    .tabla-div .btn { margin-bottom: 5px; }
}
.table-responsive { overflow-x: hidden; }

/* ======= RESPONSIVE TABLE (GENERIC) ====== */
@media (max-width: 767.98px) {
    .responsive-table-header { display: none !important; }
    .responsive-table-row {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    .responsive-table-cell { display: flex; align-items: center; }
    .responsive-label {
        min-width: 130px;
        font-weight: 500;
        color: #495057;
        flex-shrink: 0;
    }
}
@media (min-width: 768px) {
    .responsive-label { display: none; }
    .responsive-table-row { display: flex; flex-direction: row; }
    .responsive-table-cell { display: flex; align-items: center; }
}

/* ===========================
   OVERLAY DE CARGA Y OTROS COMPONENTES
   =========================== */
#loadingOverlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 20000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    pointer-events: auto;
}
.loading-overlay-backdrop {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1;
}
.loading-overlay-content {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,0.85); border-radius: 1rem; padding: 2rem 3rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
}
.loading-overlay-text { font-size: 1.3rem; color: #222; font-weight: 500; text-align: center; }

/* ===========================
   ACORDEÓN DE FASES
   =========================== */
#acordeonFases .accordion-item {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    overflow: hidden;
}
#acordeonFases .accordion-button { border-radius: 0.375rem; }
#acordeonFases .accordion-button.collapsed { border-bottom: 1px solid #dee2e6; }
#acordeonFases .accordion-button:not(.collapsed) { background-color: #f8f9fa; }

/* ===========================
   CARD DE EXPEDIENTE (LISTADOS)
   =========================== */
.card-header[data-href]:hover { background-color: #f8f9fa; cursor: pointer; }
.card-expediente {
    border: 1px solid #e0e0e0;
    border-radius: .5rem;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    display: flex; flex-direction: column; height: 100%;
}
.card-expediente:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    transform: translateY(-3px);
}
.card-expediente .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.card-expediente .card-header .header-left {
    display: flex; align-items: center; gap: 0.75rem;
}
.card-expediente .card-header h5 {
    font-size: 1.15rem; color: #343a40; margin-bottom: 0;
}
.card-expediente .card-body {
    padding: 1rem 1.25rem; flex-grow: 1;
    display: flex; flex-direction: column; justify-content: center;
}
.card-expediente .card-body .card-text { margin-bottom: 0.5rem; font-size: 0.9rem; }
.card-expediente .card-body .materia-text {
    font-size: 0.9rem; color: #6c757d; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.card-expediente .card-footer {
    background-color: #fff; border-top: 1px solid #e0e0e0;
    padding: 0.75rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
    justify-content: center; align-items: center;
}
.btn-group-labeled { display: flex; flex-direction: column; gap: 0.25rem; }
.btn-group-labeled .group-label {
    font-size: 0.75rem; color: #6c757d; font-weight: 500; text-align: center; margin-bottom: 0; line-height: 1;
}
.btn-group-flex { display: flex; gap: 0.25rem; }

/* =========== TOOLTIP COMPACTO ========== */
.tooltip { font-size: 0.85rem; }
.tooltip .tooltip-inner { padding: 0.35rem 0.75rem; }


.sticky-panel {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    border-bottom: 1.5px solid #e3e8ee;
}

main section { scroll-margin-top: 104px; }
.exp-group {
    display: flex;
    gap: 2.1rem;
}
.exp-group > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 112px;
}
.exp-label {
    font-size: 0.94em;
    color: #495057;
    opacity: .75;
    font-weight: 500;
    margin-bottom: .15rem;
    margin-left: 0.09rem;
    line-height: 1.18;
    letter-spacing: .01em;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .exp-label { display: none; }
    .exp-group { gap: 0.7rem; }
    .sticky-panel { border-bottom-width: 1px; }
}
.exp-badge {
    min-width: 90px;
}
.min-h-60 {
    min-height: 60px !important;
}
.nav-link.active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

//*mapa web*//

.divider {
  border-top: 2px solid #dee2e6;
  margin: 24px 0;
}

/* Bullets rojos accesibles */
.custom-bullets .bullet {
  color: #b10000; /* rojo oscuro con buen contraste */
  font-weight: bold;
  margin-right: 0.5rem;
  display: inline-block;
}

/* Mejora de legibilidad y espaciado */
.custom-bullets li {
  margin-bottom: 0.4rem;
}

/* Asegura contraste en los enlaces */
.custom-bullets a {
  color: #0d6efd; /* color Bootstrap link-primary */
  text-decoration: none;
}
.custom-bullets a:hover,
.custom-bullets a:focus {
  text-decoration: underline;
  color: #0a58ca;
}




