:root {
    --dif-verde: #71785B;
    --dif-arena: #BC9B73;
    --dif-verde-oscuro: #2E3B2B;
    --dif-gris: #CBCABE;
    --dif-vino: #773357;
    --dif-cafe: #7C4A36;
    --dif-negro: #2A2723;
    --dif-blanco: #FFFFFF;

    --dif-verde-suave: #EEF0E8;
    --dif-arena-suave: #F5EFE7;
    --dif-vino-suave: #F5EAF0;
    --dif-gris-suave: #F5F5F2;

    --eub-muted: #6F706B;
    --eub-background: #F5F6F2;
    --eub-border: #E2E3DD;
}

body {
    background-color: var(--eub-background);
    color: var(--dif-negro);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.navbar-eub {
    background:
        linear-gradient(
            90deg,
            var(--dif-verde-oscuro),
            var(--dif-verde)
        );
}

.navbar-eub .navbar-brand,
.navbar-eub .nav-link {
    color: rgba(255,255,255,.88);
}

.navbar-eub .nav-link:hover,
.navbar-eub .nav-link.active {
    color: #fff;
}

.btn-primary {
    background-color: var(--dif-verde);
    border-color: var(--dif-verde);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--dif-verde-oscuro);
    border-color: var(--dif-verde-oscuro);
}

.btn-warning {
    color: var(--dif-negro);
    background-color: var(--dif-arena);
    border-color: var(--dif-arena);
}

.table thead th {
    color: var(--dif-verde-oscuro);
    background-color: var(--dif-verde-suave);
}

.badge.bg-primary {
    background-color: var(--dif-verde) !important;
}

.badge.bg-success {
    background-color: #5F7654 !important;
}

.badge.bg-warning {
    color: var(--dif-negro) !important;
    background-color: var(--dif-arena) !important;
}

.badge.bg-danger {
    background-color: var(--dif-vino) !important;
}

.eub-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    color: white;
    padding: 28px;

    background:
        radial-gradient(
            circle at top right,
            rgba(188,155,115,.35),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--dif-verde),
            var(--dif-verde-oscuro)
        );

    box-shadow: 0 .75rem 1.5rem rgba(42,39,35,.15);
}

.eub-hero-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.soft-card {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 .4rem 1rem rgba(42,39,35,.08);
}

.section-title {
    font-weight: 700;
    color: var(--dif-verde-oscuro);
    border-left: 5px solid var(--dif-arena);
    padding-left: 10px;
    margin-bottom: 20px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--dif-arena);
    box-shadow: 0 0 0 .22rem rgba(188,155,115,.20);
}

.eub-footer {
    padding: 18px 0;
    text-align: center;
    color: var(--eub-muted);
    font-size: .80rem;
}

/* =========================================================
   DASHBOARD EUB
   ========================================================= */

.eub-dashboard {
    padding-bottom: 32px;
}


/* Panel del usuario dentro del hero */

.eub-user-panel {
    position: relative;
    z-index: 2;
    padding: 20px;

    border-radius: 18px;

    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);

    backdrop-filter: blur(7px);
}

.eub-user-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07rem;
    opacity: .72;
}

.eub-user-value {
    font-weight: 700;
    margin-bottom: 8px;
}


/* =========================================================
   TARJETAS DE ACCESO
   ========================================================= */

.eub-action-card {
    display: block;
    height: 100%;

    padding: 20px;

    color: var(--dif-negro);
    text-decoration: none;

    background: var(--dif-blanco);

    border: 1px solid var(--eub-border);
    border-radius: var(--eub-radius-lg);

    box-shadow: var(--eub-shadow-sm);

    transition: var(--eub-transition);
}

.eub-action-card:hover {
    color: var(--dif-negro);

    transform: translateY(-4px);

    border-color: var(--dif-arena);
    box-shadow: var(--eub-shadow);
}

.eub-action-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 15px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);

    font-size: 1.35rem;
}

.eub-action-title {
    color: var(--dif-verde-oscuro);
    font-weight: 750;
    margin-bottom: 4px;
}

.eub-action-description {
    color: var(--eub-muted);
    font-size: .84rem;
}


/* =========================================================
   MÉTRICAS
   ========================================================= */

.eub-metric-card {
    height: 100%;

    border: 0;
    border-top: 4px solid var(--dif-verde);
    border-radius: var(--eub-radius-lg);

    background: var(--dif-blanco);
    box-shadow: var(--eub-shadow-sm);

    transition: var(--eub-transition);
}

.eub-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--eub-shadow);
}

.eub-metric-card .card-body {
    padding: 21px;
}

.eub-metric-card.is-success {
    border-top-color: #5F7654;
}

.eub-metric-card.is-warning {
    border-top-color: var(--dif-arena);
}

.eub-metric-card.is-danger {
    border-top-color: var(--dif-vino);
}

.eub-metric-card.is-info {
    border-top-color: #657C78;
}

.eub-metric-card.is-secondary {
    border-top-color: var(--dif-gris);
}

.eub-metric-label {
    color: var(--eub-muted);
    font-size: .83rem;
    margin-bottom: 5px;
}

.eub-metric-number {
    color: var(--dif-verde-oscuro);

    font-size: 2rem;
    font-weight: 780;
    line-height: 1;

    margin-bottom: 9px;
}

.eub-metric-detail {
    color: var(--eub-muted);
    font-size: .79rem;
}

.eub-metric-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);

    font-size: 1.25rem;
}

.eub-metric-icon.is-success {
    color: #506747;
    background: #E9F1E5;
}

.eub-metric-icon.is-warning {
    color: #76572F;
    background: var(--dif-arena-suave);
}

.eub-metric-icon.is-danger {
    color: var(--dif-vino);
    background: var(--dif-vino-suave);
}

.eub-metric-icon.is-info {
    color: #49625E;
    background: #E8F0EE;
}

.eub-metric-icon.is-secondary {
    color: #62645D;
    background: var(--dif-gris-suave);
}


/* =========================================================
   TARJETAS DE SECCIÓN
   ========================================================= */

.eub-section-card {
    border: 0;
    border-radius: var(--eub-radius-lg);

    background: var(--dif-blanco);
    box-shadow: var(--eub-shadow-sm);
}

.eub-section-card > .card-header {
    padding: 21px 22px 10px;

    border: 0;
    background: transparent;
}

.eub-section-card > .card-body {
    padding: 18px 22px 22px;
}


/* =========================================================
   CENTROS
   ========================================================= */

.eub-center-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--eub-border);
}

.eub-center-row:last-child {
    border-bottom: 0;
}

.eub-center-name {
    color: var(--dif-verde-oscuro);
    font-weight: 700;
}

.eub-center-detail {
    color: var(--eub-muted);
    font-size: .82rem;
}


/* =========================================================
   ACTIVIDAD POR MÓDULO
   ========================================================= */

.eub-module-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 15px;
    margin-bottom: 11px;

    border: 1px solid var(--eub-border);
    border-radius: 15px;

    background: var(--dif-blanco);
}

.eub-module-stat:last-child {
    margin-bottom: 0;
}

.eub-module-stat-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eub-module-stat-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);

    font-size: 1.15rem;
}

.eub-module-stat-name {
    color: var(--dif-verde-oscuro);
    font-weight: 700;
}

.eub-module-stat-detail {
    color: var(--eub-muted);
    font-size: .79rem;
}

.eub-module-stat-number {
    min-width: 44px;

    padding: 7px 10px;

    text-align: center;
    font-weight: 750;

    border-radius: 10px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);
}


/* =========================================================
   ALERTAS OPERATIVAS
   ========================================================= */

.eub-alert-item {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 15px;
    margin-bottom: 11px;

    border: 1px solid #E5D0B4;
    border-radius: 15px;

    background: var(--dif-arena-suave);
}

.eub-alert-item:last-child {
    margin-bottom: 0;
}

.eub-alert-icon {
    color: var(--dif-cafe);
    font-size: 1.25rem;
}

.eub-alert-title {
    color: #654A29;
    font-weight: 750;
}

.eub-alert-detail {
    color: #806344;
    font-size: .82rem;
}


/* =========================================================
   TABLA MODERNA
   ========================================================= */

.eub-table {
    margin-bottom: 0;
}

.eub-table thead th {
    padding: 13px 12px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);

    border-top: 0;
    border-bottom: 1px solid var(--eub-border);

    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .035rem;

    white-space: nowrap;
}

.eub-table tbody td {
    padding-top: 15px;
    padding-bottom: 15px;

    vertical-align: middle;
    border-color: var(--eub-border);
}

.eub-beneficiary-name {
    color: var(--dif-negro);
    font-weight: 700;
}

.eub-beneficiary-detail {
    color: var(--eub-muted);
    font-size: .80rem;
}


/* =========================================================
   ESTADOS VACÍOS
   ========================================================= */

.eub-empty-state {
    padding: 38px 20px;

    text-align: center;
    color: var(--eub-muted);
}

.eub-empty-icon {
    margin-bottom: 10px;

    color: var(--dif-arena);
    font-size: 2.6rem;
}

.eub-empty-title {
    color: var(--dif-verde-oscuro);
    font-weight: 750;
}


/* =========================================================
   NAVBAR INSTITUCIONAL
   ========================================================= */

.navbar-eub {
    background:
        linear-gradient(
            90deg,
            var(--dif-verde-oscuro),
            var(--dif-verde)
        );
}

.navbar-eub .navbar-brand,
.navbar-eub .nav-link {
    color: rgba(255, 255, 255, .88);
}

.navbar-eub .navbar-brand:hover,
.navbar-eub .nav-link:hover,
.navbar-eub .nav-link.active {
    color: var(--dif-blanco);
}

.navbar-eub .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
}

.navbar-eub .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* =========================================================
   RESPONSIVE DEL DASHBOARD
   ========================================================= */

@media (max-width: 767.98px) {

    .eub-user-panel {
        padding: 16px;
    }

    .eub-metric-number {
        font-size: 1.7rem;
    }

    .eub-action-card {
        padding: 17px;
    }
}

/* =========================================================
   LISTADO DE EXPEDIENTES
   ========================================================= */

.eub-expedientes {
    padding-bottom: 30px;
}

.eub-expediente-number {
    color: var(--dif-verde-oscuro);
    font-weight: 750;
    text-decoration: none;
}

.eub-expediente-number:hover {
    color: var(--dif-cafe);
}

.eub-beneficiary-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--dif-blanco);

    background:
        linear-gradient(
            135deg,
            var(--dif-verde),
            var(--dif-verde-oscuro)
        );

    font-weight: 750;
    text-transform: uppercase;
}

.eub-center-badge {
    display: inline-block;
    max-width: 260px;

    padding: 6px 9px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);

    border: 1px solid #DDE1D4;
    border-radius: 9px;

    font-size: .77rem;
    line-height: 1.2;
}

.eub-badge-neutral {
    color: #4F514C;
    background: #ECEDE8;
    border: 1px solid #DCDED6;
}

.eub-stage-default {
    color: var(--dif-blanco);
    background: #777A72;
}

.eub-stage-primary {
    color: var(--dif-blanco);
    background: var(--dif-verde);
}

.eub-stage-warning {
    color: var(--dif-negro);
    background: var(--dif-arena);
}

.eub-stage-info {
    color: var(--dif-blanco);
    background: #657C78;
}

.eub-stage-success {
    color: var(--dif-blanco);
    background: #5F7654;
}

.eub-stage-accent {
    color: var(--dif-blanco);
    background: var(--dif-cafe);
}

.eub-stage-danger {
    color: var(--dif-blanco);
    background: var(--dif-vino);
}

.eub-status-active {
    color: var(--dif-blanco);
    background: #5F7654;
}

.eub-status-follow {
    color: var(--dif-blanco);
    background: var(--dif-verde);
}

.eub-status-info {
    color: var(--dif-blanco);
    background: #657C78;
}

.eub-status-warning {
    color: var(--dif-negro);
    background: var(--dif-arena);
}

.eub-status-danger {
    color: var(--dif-blanco);
    background: var(--dif-vino);
}

.eub-status-dark {
    color: var(--dif-blanco);
    background: var(--dif-negro);
}

.eub-status-empty {
    color: #62645D;
    background: #E7E8E2;
}

/* =========================================================
   EXPEDIENTE MAESTRO
   ========================================================= */

.eub-expediente-page {
    padding-bottom: 30px;
}

.eub-expediente-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.eub-expediente-sidebar {
    position: sticky;
    top: 88px;
}

.eub-expediente-content {
    min-width: 0;
}


/* =========================================================
   PERFIL DEL BENEFICIARIO
   ========================================================= */

.eub-profile-card {
    overflow: hidden;
    border: 0;
    border-radius: var(--eub-radius-lg);
    box-shadow: var(--eub-shadow);
}

.eub-profile-header {
    padding: 26px 22px;
    text-align: center;
    color: var(--dif-blanco);

    background:
        radial-gradient(
            circle at top right,
            rgba(188, 155, 115, .33),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            var(--dif-verde),
            var(--dif-verde-oscuro)
        );
}

.eub-profile-avatar {
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border-radius: 24px;

    color: var(--dif-blanco);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);

    font-size: 2.2rem;
    font-weight: 750;
    text-transform: uppercase;
}

.eub-profile-name {
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.3;
}

.eub-profile-number {
    margin-top: 6px;
    font-size: .88rem;
    opacity: .82;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.eub-sidebar-title {
    margin-bottom: 10px;

    color: var(--eub-muted);

    font-size: .75rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.eub-summary-box {
    padding: 14px;

    border: 1px solid var(--eub-border);
    border-radius: 15px;

    background: var(--dif-gris-suave);
}

.eub-summary-number {
    color: var(--dif-verde-oscuro);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.eub-summary-label {
    margin-top: 5px;

    color: var(--eub-muted);
    font-size: .78rem;
}

.eub-sidebar-data {
    padding: 14px;

    border: 1px solid var(--eub-border);
    border-radius: 15px;

    background: var(--dif-gris-suave);
}


/* =========================================================
   ENLACES A MÓDULOS
   ========================================================= */

.eub-module-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 11px 13px;

    color: var(--dif-verde-oscuro);
    text-decoration: none;

    border: 1px solid var(--eub-border);
    border-radius: 13px;

    background: var(--dif-blanco);

    font-weight: 650;

    transition: var(--eub-transition);
}

.eub-module-link:hover {
    color: var(--dif-verde-oscuro);
    border-color: var(--dif-arena);
    background: var(--dif-verde-suave);
    transform: translateX(2px);
}

.eub-module-link-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.eub-module-link-label i {
    width: 20px;
    color: var(--dif-verde);
    font-size: 1.05rem;
}


/* =========================================================
   ACCIONES MÓVILES
   ========================================================= */

.eub-mobile-actions {
    display: none;
}


/* =========================================================
   TARJETAS DE AVANCE
   ========================================================= */

.eub-advance-card {
    height: 100%;

    padding: 16px;

    border: 1px solid var(--eub-border);
    border-radius: 16px;

    background: var(--dif-blanco);

    transition: var(--eub-transition);
}

.eub-advance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--eub-shadow-sm);
}

.eub-advance-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 13px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);

    font-size: 1.2rem;
}

.eub-advance-name {
    color: var(--dif-verde-oscuro);
    font-weight: 700;
}

.eub-advance-footer {
    margin-top: 15px;
    padding-top: 12px;

    color: var(--eub-muted);
    border-top: 1px solid var(--eub-border);

    font-size: .80rem;
}


/* =========================================================
   CAJAS DE INFORMACIÓN
   ========================================================= */

.eub-info-box {
    height: 100%;
    padding: 15px;

    border: 1px solid var(--eub-border);
    border-radius: 14px;

    background: var(--dif-blanco);
}

.eub-info-danger {
    border-color: rgba(119, 51, 87, .25);
    background: var(--dif-vino-suave);
}

.eub-info-label {
    margin-bottom: 4px;

    color: var(--eub-muted);

    font-size: .74rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.eub-info-value {
    color: var(--dif-negro);
    font-weight: 700;
}

.eub-text-break {
    overflow-wrap: anywhere;
}

.eub-pre-line {
    white-space: pre-line;
}


/* =========================================================
   LÍNEA DE TIEMPO
   ========================================================= */

.eub-timeline {
    position: relative;
    padding-left: 28px;
}

.eub-timeline::before {
    content: "";

    position: absolute;
    top: 5px;
    bottom: 7px;
    left: 8px;

    width: 3px;

    border-radius: 999px;
    background: var(--dif-verde);
}

.eub-timeline-item {
    position: relative;
    padding: 0 0 24px 15px;
}

.eub-timeline-item:last-child {
    padding-bottom: 0;
}

.eub-timeline-item::before {
    content: "";

    position: absolute;
    top: 4px;
    left: -27px;

    width: 15px;
    height: 15px;

    border: 3px solid var(--dif-blanco);
    border-radius: 50%;

    background: var(--dif-verde);

    box-shadow:
        0 0 0 2px var(--dif-verde);
}

.eub-timeline-title {
    color: var(--dif-verde-oscuro);
    font-weight: 750;
}

.eub-timeline-date {
    color: var(--eub-muted);
    font-size: .78rem;
}

.eub-timeline-user {
    margin: 3px 0 7px;

    color: var(--eub-muted);
    font-size: .80rem;
}

.eub-timeline-action {
    color: var(--dif-negro);
    font-weight: 650;
}

.eub-timeline-description {
    margin-top: 4px;

    color: var(--eub-muted);
    font-size: .86rem;
    white-space: pre-line;
}


/* =========================================================
   RESPONSIVE EXPEDIENTE
   ========================================================= */

@media (max-width: 991.98px) {

    .eub-expediente-shell {
        display: block;
    }

    .eub-expediente-sidebar {
        position: static;
        margin-bottom: 24px;
    }

    .eub-desktop-actions {
        display: none !important;
    }

    .eub-mobile-actions {
        display: block;
    }
}

@media (max-width: 575.98px) {

    .eub-profile-header {
        padding: 22px 17px;
    }

    .eub-profile-avatar {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .eub-timeline {
        padding-left: 24px;
    }
}

/* =========================================================
   FORMULARIO MAESTRO DEL EXPEDIENTE
   ========================================================= */

.eub-form-page {
    padding-bottom: 95px;
}

.eub-edit-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.eub-edit-sidebar {
    position: sticky;
    top: 88px;
}

.eub-edit-content {
    min-width: 0;
}

.eub-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 7px;
    padding: 5px 10px;

    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;

    background: rgba(255,255,255,.13);

    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .035em;
}

.eub-hero-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 780;
}

.eub-hero-subtitle {
    margin: 5px 0 0;
    opacity: .82;
}

.eub-section-title {
    color: var(--dif-verde-oscuro);
    font-size: 1.05rem;
    font-weight: 750;
}

.eub-section-subtitle {
    margin-top: 3px;
    color: var(--eub-muted);
    font-size: .83rem;
}

.eub-helper-text {
    margin-top: 5px;
    color: var(--eub-muted);
    font-size: .82rem;
}

.required-label::after {
    content: " *";
    color: var(--dif-vino);
}

.eub-progress-track {
    height: 10px;
    overflow: hidden;

    border-radius: 999px;
    background: var(--dif-gris-suave);
}

.eub-progress-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--dif-verde),
            var(--dif-verde-oscuro)
        );

    transition: width .25s ease;
}

.eub-progress-value {
    color: var(--dif-verde-oscuro);
    font-size: 1.35rem;
    font-weight: 800;
}

.eub-validation-message {
    display: none;

    margin-bottom: 20px;
    padding: 15px 17px;

    color: #71384F;
    background: var(--dif-vino-suave);

    border: 1px solid rgba(119,51,87,.25);
    border-radius: 15px;
}

.eub-validation-message.is-visible {
    display: block;
}

.eub-save-bar {
    position: fixed;
    z-index: 1025;

    right: 0;
    bottom: 0;
    left: 0;

    padding: 12px 0;

    background: rgba(245,246,242,.94);
    border-top: 1px solid var(--eub-border);

    backdrop-filter: blur(9px);
    box-shadow: 0 -.35rem 1rem rgba(42,39,35,.08);
}

.eub-save-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.eub-readonly-field {
    color: var(--eub-muted);
    background: var(--dif-gris-suave) !important;
}

@media (max-width: 991.98px) {

    .eub-edit-shell {
        display: block;
    }

    .eub-edit-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {

    .eub-save-bar-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .eub-save-bar .btn {
        width: 100%;
    }
}

/* =========================================================
   CARGA DE DOCUMENTOS
   ========================================================= */

.eub-upload-zone {
    display: block;
    width: 100%;
    padding: 40px 24px;

    text-align: center;
    cursor: pointer;

    color: var(--eub-muted);
    background: var(--dif-gris-suave);

    border: 2px dashed #BFC2B8;
    border-radius: var(--eub-radius-lg);

    transition: var(--eub-transition);
}

.eub-upload-zone:hover,
.eub-upload-zone.is-dragging {
    color: var(--dif-verde-oscuro);
    background: var(--dif-verde-suave);
    border-color: var(--dif-arena);
    transform: translateY(-2px);
}

.eub-upload-zone.has-file {
    background: var(--dif-verde-suave);
    border-color: var(--dif-verde);
}

.eub-upload-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.eub-upload-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    color: var(--dif-verde-oscuro);
    background: var(--dif-blanco);

    border: 1px solid var(--eub-border);
    border-radius: 20px;

    box-shadow: var(--eub-shadow-sm);
    font-size: 2rem;
}

.eub-upload-title {
    margin-bottom: 5px;

    color: var(--dif-verde-oscuro);
    font-size: 1.05rem;
    font-weight: 750;
}

.eub-upload-description {
    margin-bottom: 0;
    font-size: .84rem;
}

.eub-file-preview {
    display: none;

    margin-top: 16px;
    padding: 16px;

    background: var(--dif-verde-suave);
    border: 1px solid #D8DED0;
    border-radius: 15px;
}

.eub-file-preview.is-visible {
    display: block;
}

.eub-file-preview-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--dif-verde-oscuro);
    background: var(--dif-blanco);

    border-radius: 14px;
    font-size: 1.3rem;
}

.eub-file-name {
    color: var(--dif-negro);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.eub-file-meta {
    color: var(--eub-muted);
    font-size: .80rem;
}

.eub-upload-error {
    display: none;

    margin-top: 14px;
    padding: 13px 15px;

    color: var(--dif-vino);
    background: var(--dif-vino-suave);

    border: 1px solid rgba(119, 51, 87, .25);
    border-radius: 14px;
}

.eub-upload-error.is-visible {
    display: block;
}

/* =========================================================
   NAVBAR EUB V1
========================================================= */

.navbar-eub {
    background: linear-gradient(
        135deg,
        #212529,
        #343a40,
        #495057
    );
    min-height: 72px;
    z-index: 1030;
}

.eub-navbar-brand-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 1.25rem;
}

.eub-navbar-brand-title {
    font-size: 1rem;
    letter-spacing: -.01rem;
}

.navbar-eub .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    border-radius: 10px;
    padding: .65rem .8rem;
    font-weight: 500;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.navbar-eub .navbar-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .10);
}

.navbar-eub .navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.eub-user-menu {
    min-height: 48px;
}

.eub-user-avatar,
.eub-dropdown-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    text-transform: uppercase;
}

.eub-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: #212529;
    background: #ffffff;
}

.eub-dropdown-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #212529,
        #495057
    );
}

.eub-user-dropdown {
    min-width: 290px;
    border: 0;
    border-radius: 16px;
    padding: .5rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .18);
}

.eub-user-dropdown .dropdown-item,
.navbar-eub .dropdown-menu .dropdown-item {
    border-radius: 9px;
    padding: .65rem .8rem;
}

.eub-user-dropdown .dropdown-item.active,
.navbar-eub .dropdown-menu .dropdown-item.active {
    color: #ffffff;
    background: #343a40;
}

.navbar-eub .dropdown-menu {
    margin-top: .7rem;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .16);
}

.navbar-eub .navbar-toggler {
    border-color: rgba(255, 255, 255, .25);
}

.navbar-eub .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .14);
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1199.98px) {

    .eub-navbar-brand-title {
        font-size: .94rem;
    }

}

@media (max-width: 991.98px) {

    .navbar-eub {
        min-height: auto;
    }

    .navbar-eub .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 16px;
        background: rgba(0, 0, 0, .14);
    }

    .navbar-eub .navbar-nav {
        align-items: stretch !important;
    }

    .navbar-eub .navbar-nav .nav-link {
        padding: .8rem 1rem;
    }

    .navbar-eub .dropdown-menu {
        margin-top: .25rem;
        border-radius: 12px;
        box-shadow: none;
    }

    .eub-user-dropdown {
        min-width: 100%;
    }

}

@media (max-width: 575.98px) {

    .navbar-eub .navbar-brand {
        max-width: calc(100% - 64px);
    }

    .eub-navbar-brand-title {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-eub .navbar-brand small {
        font-size: .7rem;
    }

    .eub-navbar-brand-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

}

