/* ===== ESTILOS PARA VISTAS BUZONE LITE ===== */

/* Paleta (referencia): Palladian, Oatmeal, Blue Fantastic, Burning Flame, Truffle, Abyssal */
:root {
    --bz-palladian: #eee9df;
    --bz-oatmeal: #c9c1b1;
    --bz-blue-fantastic: #2c3b4d;
    --bz-burning-flame: #ffb162;
    --bz-truffle: #a35139;
    --bz-abyssal: #1b2632;
}

/* ===== APP HEADER (paleta + minicards transparentes) ===== */
body.app-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--bz-abyssal) !important;
}

.app-header {
    flex-shrink: 0;
    position: relative;
    z-index: 1030;
}

/* Barra nav: gradiente Abyssal → Blue Fantastic + acento sutil Burning Flame */
.app-header--palette {
    background: linear-gradient(105deg, var(--bz-abyssal) 0%, var(--bz-blue-fantastic) 55%, #243548 100%) !important;
    border-bottom: 1px solid rgba(201, 193, 177, 0.22);
    overflow: hidden;
}

.app-header--palette::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42%;
    max-width: 280px;
    height: 70%;
    background: radial-gradient(ellipse at bottom left, rgba(255, 177, 98, 0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.app-header--palette .container-fluid,
.app-header--palette .app-header__row {
    position: relative;
    z-index: 1;
}

.app-header--dark {
    border-bottom-color: rgba(201, 193, 177, 0.2);
}

.app-header__logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.app-header__company {
    color: var(--bz-oatmeal) !important;
}

.app-header__divider {
    width: 1px;
    height: 32px;
    background: rgba(201, 193, 177, 0.45);
    flex-shrink: 0;
}

.app-header__page-title--light {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bz-palladian);
    letter-spacing: -0.02em;
}

/* Minicards: transparentes, línea visual continua */
.header-minicard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    background: rgba(238, 233, 223, 0.04);
    border: 1px solid rgba(201, 193, 177, 0.28);
    border-radius: 10px;
    box-shadow: none;
    min-width: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.header-minicard__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bz-palladian);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-minicard__icon--clients {
    background: linear-gradient(145deg, var(--bz-blue-fantastic) 0%, #3d5670 100%);
}

.header-minicard__icon--msg {
    background: linear-gradient(145deg, var(--bz-truffle) 0%, var(--bz-burning-flame) 100%);
}

.header-minicard__icon--notif {
    background: linear-gradient(145deg, #355a72 0%, var(--bz-blue-fantastic) 100%);
}

.header-minicard__icon--consult {
    background: linear-gradient(145deg, var(--bz-burning-flame) 0%, #d4a574 100%);
}

.header-minicard__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    text-align: left;
}

.header-minicard__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bz-burning-flame);
    letter-spacing: -0.02em;
}

.header-minicard__label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--bz-oatmeal);
    margin-top: 0.1rem;
}

/* ===== BOTONES HEADER (Buzones / Admin) ===== */
.app-header__nav-actions {
    gap: 0.5rem !important;
}

.app-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.85rem 0.48rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(201, 193, 177, 0.28);
    background: rgba(238, 233, 223, 0.04);
    color: var(--bz-palladian);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
    white-space: nowrap;
    /* Simetría visual con minicards */
    min-height: 56px;
    min-width: 150px;
    justify-content: flex-start;
}

.app-header__btn i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--bz-palladian);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.1);
}

.app-header__btn--ghost i {
    background: linear-gradient(145deg, var(--bz-blue-fantastic) 0%, #3d5670 100%);
}

.app-header__btn--admin i {
    background: linear-gradient(145deg, var(--bz-truffle) 0%, var(--bz-burning-flame) 100%);
}

.app-header__btn:hover {
    background: rgba(238, 233, 223, 0.08);
    border-color: rgba(201, 193, 177, 0.38);
    transform: translateY(-1px);
    color: var(--bz-palladian);
}

.app-header__btn.is-active {
    background: rgba(255, 177, 98, 0.12);
    border-color: var(--bz-burning-flame);
    color: var(--bz-burning-flame);
}

.app-header__btn.is-active i {
    color: var(--bz-palladian);
}

.app-header__btn--admin {
    cursor: pointer;
    padding-right: 0.9rem;
}

.app-header__right {
    flex-shrink: 1;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .app-header__right {
        width: 100%;
        justify-content: flex-end !important;
        margin-left: 0 !important;
        padding-top: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .app-header__page-title--light {
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .app-header__btn {
        min-width: 0;
        width: auto;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

/* ===== ESTILOS BASE ===== */
html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body > main.container-fluid {
    padding: 0;
    margin: 0;
    margin-top: 56px;
    height: calc(100vh - 56px - 42px);
    overflow: hidden;
    position: relative;
}

body.app-body > main.app-main.container-fluid {
    margin-top: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
    height: 100% !important;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

body.app-body footer.bg-dark {
    flex-shrink: 0;
}

/* ===== CONTENEDOR PRINCIPAL (NOTIFICACIONES Y CLIENTES) ===== */
.main-content {
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.main-content .container-fluid {
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    height: 100%;
}

.main-content .row {
    height: 100%;
    margin: 0;
    max-width: 100%;
}

.main-content .col-12.h-100 {
    padding: 0;
    margin: 0;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bz-palladian);
}

/* Contenedor principal de clientes (Palladian + borde Oatmeal) */
.clientes-main-wrapper {
    padding: 20px;
    border-radius: 15px 0 0 15px;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--bz-palladian);
    border: 1px solid rgba(201, 193, 177, 0.45);
    overflow-y: auto;
    overflow-x: hidden;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    box-shadow: 0 2px 12px rgba(27, 38, 50, 0.08);
    display: flex;
    flex-direction: column;
}

/* ===== TARJETAS DE ESTADÍSTICAS ===== */
.stats-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card-icon.purple { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}
.stat-card-icon.pink { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
    box-shadow: 0 4px 8px rgba(240, 147, 251, 0.3);
}
.stat-card-icon.green { 
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%); 
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}
.stat-card-icon.orange { 
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); 
    box-shadow: 0 4px 8px rgba(237, 137, 54, 0.3);
}

.stat-card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1e3a8a;
}

.stat-card-content p {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

/* Barra secundaria (búsqueda + acciones) */
.clientes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(201, 193, 177, 0.55);
    border-radius: 12px;
}

.clientes-toolbar-search {
    flex: 0 1 260px;
    min-width: 220px;
    max-width: 320px;
}

.clientes-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* ===== SECCIÓN CLIENTES ===== */
.clientes-section {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.clientes-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.clientes-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.5px;
}

.clientes-welcome-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #2d3748;
    margin: 0 0 1.25rem 0;
    font-weight: 400;
    max-width: 56rem;
}

.clientes-welcome-accent {
    color: #2563eb;
    font-weight: 700;
}

.cliente-check-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cliente-avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: var(--bz-blue-fantastic);
    background: rgba(44, 59, 77, 0.12);
    line-height: 1;
    user-select: none;
}

/* Mensajes SUNAT / SUNAFIL */
.msg-channels-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.msg-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.msg-channel__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.msg-channel--inactive {
    opacity: 0.4;
    filter: grayscale(100%);
}

.msg-channel--inactive .msg-channel__count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bz-oatmeal);
}

.msg-channel--active {
    opacity: 1;
    filter: none;
}

.msg-channel__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--bz-burning-flame) 0%, #f59e0b 100%);
    box-shadow: 0 1px 3px rgba(255, 177, 98, 0.35);
}

.msg-channel__badge--pulse {
    animation: buzone-badge-pulse 1.6s ease-in-out infinite;
}

@keyframes buzone-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Accesos: mismo patrón visual que .header-minicard (KPIs del nav) */
.accesos-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.acceso-minicard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    background: rgba(238, 233, 223, 0.04);
    border: 1px solid rgba(201, 193, 177, 0.28);
    border-radius: 10px;
    min-width: 7rem;
    max-width: 100%;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
}

.acceso-minicard--solo-texto {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.acceso-minicard:hover {
    background: rgba(238, 233, 223, 0.08);
    border-color: rgba(201, 193, 177, 0.42);
    transform: translateY(-1px);
}

.acceso-minicard:focus-visible {
    outline: 2px solid var(--bz-blue-fantastic);
    outline-offset: 2px;
}

/* Icono: mismos gradientes que .header-minicard__icon--clients / --msg / --notif / --consult */
.acceso-minicard__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bz-palladian);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.acceso-minicard__img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.acceso-minicard__img--white {
    filter: brightness(0) invert(1);
}

.acceso-minicard__icon--sunat {
    background: linear-gradient(145deg, var(--bz-blue-fantastic) 0%, #3d5670 100%);
}

.acceso-minicard__icon--sunafil {
    background: linear-gradient(145deg, var(--bz-truffle) 0%, var(--bz-burning-flame) 100%);
}

.acceso-minicard__icon--declara {
    background: linear-gradient(145deg, #355a72 0%, var(--bz-blue-fantastic) 100%);
}

.acceso-minicard__icon--anual {
    background: linear-gradient(145deg, var(--bz-burning-flame) 0%, #d4a574 100%);
}

.acceso-minicard__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    line-height: 1.2;
    min-width: 0;
    text-align: center;
}

/* Título: mismo acento que .header-minicard__value (Burning Flame) */
.acceso-minicard__value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bz-burning-flame);
    letter-spacing: -0.02em;
    text-align: center;
}

/* Estado OK: borde Blue Fantastic + fondo Palladian suave */
.acceso-minicard--ok {
    border-color: rgba(44, 59, 77, 0.38);
    background: rgba(238, 233, 223, 0.07);
    box-shadow: 0 1px 0 rgba(27, 38, 50, 0.06);
}

/* Estado advertencia: acento Burning Flame + Truffle en texto secundario */
.acceso-minicard--warn {
    border-color: rgba(255, 177, 98, 0.55);
    background: linear-gradient(135deg, rgba(255, 177, 98, 0.14) 0%, rgba(238, 233, 223, 0.05) 100%);
    box-shadow: 0 0 0 1px rgba(255, 177, 98, 0.18);
}

.acceso-minicard--warn .acceso-minicard__value {
    color: var(--bz-burning-flame);
}

/* Pendiente: Truffle + Abyssal en tipografía secundaria */
.acceso-minicard--pending {
    border-color: rgba(163, 81, 57, 0.42);
    background: linear-gradient(135deg, rgba(163, 81, 57, 0.1) 0%, rgba(238, 233, 223, 0.04) 100%);
    box-shadow: 0 0 0 1px rgba(27, 38, 50, 0.08);
}

.acceso-minicard--pending .acceso-minicard__value {
    color: var(--bz-truffle);
}

.clientes-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(201, 193, 177, 0.55);
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--bz-blue-fantastic);
    box-shadow: 0 0 0 3px rgba(44, 59, 77, 0.18);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201, 193, 177, 0.95);
}

.btn-consulta-masiva {
    background: linear-gradient(135deg, var(--bz-blue-fantastic) 0%, #243548 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(44, 59, 77, 0.35);
}

.btn-consulta-masiva:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 8px rgba(44, 59, 77, 0.5);
}

.btn-nuevo-cliente {
    background: linear-gradient(135deg, var(--bz-burning-flame) 0%, #d4a574 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(255, 177, 98, 0.35);
}

.btn-nuevo-cliente:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 177, 98, 0.45);
}

/* ===== TABLA CLIENTES ===== */
.clientes-table {
    margin-top: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 193, 177, 0.45);
    border-radius: 8px;
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.clientes-table table,
.clientes-table table.table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    table-layout: auto !important;
}

.clientes-table-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

/* Cabecera fija - primera tabla */
.clientes-table > table thead {
    position: relative;
    z-index: 100;
    background: rgba(238, 233, 223, 0.35);
    margin: 0;
}

.clientes-table > table thead tr {
    background: rgba(238, 233, 223, 0.35) !important;
}

.clientes-table > table thead th {
    background: rgba(238, 233, 223, 0.45) !important;
    color: var(--bz-blue-fantastic) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    padding: 1rem !important;
    border-bottom: 2px solid rgba(44, 59, 77, 0.65) !important;
    text-align: left !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Tabla con scroll - segunda tabla */
.clientes-table-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.clientes-table-wrapper table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.clientes-table-wrapper table thead {
    display: none;
}

.clientes-table-wrapper table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(201, 193, 177, 0.35);
    vertical-align: middle;
}

/* Sincronizar anchos de columnas */
.clientes-table > table,
.clientes-table-wrapper table {
    table-layout: fixed;
    width: 100%;
}

/* Asegurar que las columnas tengan el mismo ancho */
.clientes-table > table th,
.clientes-table-wrapper table td {
    padding: 1rem;
}

.clientes-table > table th:nth-child(1),
.clientes-table-wrapper table td:nth-child(1) {
    width: 25%;
}

.clientes-table > table th:nth-child(3),
.clientes-table-wrapper table td:nth-child(3) {
    width: 12%;
}

.clientes-table > table th:nth-child(4),
.clientes-table-wrapper table td:nth-child(4) {
    width: 30%;
}

.clientes-table > table th:nth-child(5),
.clientes-table-wrapper table td:nth-child(5) {
    width: 8%;
}

.clientes-table > table th:nth-child(2),
.clientes-table-wrapper table td:nth-child(2) { width: 15%; }

.clientes-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(201, 193, 177, 0.35);
    vertical-align: middle;
}

.clientes-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(44, 59, 77, 0.06) 0%, rgba(238, 233, 223, 0.65) 100%);
    transition: background 0.2s;
}

.cliente-name {
    font-weight: 700;
    color: var(--bz-blue-fantastic);
    margin-bottom: 0.25rem;
}

.cliente-ruc {
    font-size: 0.875rem;
    color: var(--bz-oatmeal);
}

.btn-sync-individual {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 4px;
    border: none;
    background: #28a745;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    vertical-align: middle;
}

.btn-sync-individual:hover {
    background: #218838;
    color: white;
    transform: scale(1.05);
}

.btn-sync-individual:active {
    transform: scale(0.95);
}

.btn-sync-individual:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-sync-individual i {
    font-size: 0.875rem;
}

.badge-acceso {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: transform 0.2s, opacity 0.2s;
}

.badge-acceso:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.badge-sunat { 
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%); 
    color: white; 
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}
.badge-sunafil { 
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); 
    color: white; 
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}
.badge-declara { 
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); 
    color: white; 
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
}
.badge-anual { 
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%); 
    color: white; 
    box-shadow: 0 2px 4px rgba(245, 101, 101, 0.3);
}

.acciones-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-accion {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-accion:hover {
    transform: scale(1.1);
}

.btn-sync { 
    background: linear-gradient(135deg, var(--bz-blue-fantastic) 0%, #243548 100%);
    color: white; 
    box-shadow: 0 2px 4px rgba(44, 59, 77, 0.35);
}
.btn-edit { 
    background: linear-gradient(135deg, #2c3b4d 0%, #243548 100%);
    color: white; 
    box-shadow: 0 2px 4px rgba(44, 59, 77, 0.35);
}
.btn-delete { 
    background: linear-gradient(135deg, var(--bz-truffle) 0%, var(--bz-burning-flame) 100%); 
    color: white; 
    box-shadow: 0 2px 4px rgba(163, 81, 57, 0.35);
}

.mensajes-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--bz-blue-fantastic) 0%, #243548 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(44, 59, 77, 0.35);
}

.mensajes-badge[style*="background: #e2e8f0"] {
    background: rgba(201, 193, 177, 0.35) !important;
    color: var(--bz-oatmeal) !important;
    box-shadow: none;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201, 193, 177, 0.35);
    flex-shrink: 0;
}

.pagination-info {
    color: #718096;
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 193, 177, 0.55);
    background: rgba(238, 233, 223, 0.35);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: rgba(238, 233, 223, 0.55);
    border-color: rgba(44, 59, 77, 0.65);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #2c3b4d 0%, #243548 100%);
    color: white;
    border-color: #2c3b4d;
    box-shadow: 0 2px 4px rgba(44, 59, 77, 0.35);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ESTILOS MODAL CLIENTE (Nuevo Diseño) ===== */
#clienteModal .modal-content {
    background: rgba(238, 233, 223, 0.97);
    border: 1px solid rgba(201, 193, 177, 0.65);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(27, 38, 50, 0.35);
    overflow: hidden;
}

#clienteModal .modal-header {
    background: linear-gradient(105deg, var(--bz-abyssal) 0%, var(--bz-blue-fantastic) 55%, #243548 100%);
    border-bottom: 1px solid rgba(201, 193, 177, 0.25);
    padding: 0.9rem 1rem;
}

#clienteModal .modal-title {
    color: var(--bz-palladian);
    font-weight: 800;
    letter-spacing: -0.02em;
}

#clienteModal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.9;
}

#clienteModal .modal-body {
    background: transparent;
    padding: 1.1rem 1rem;
}

#clienteModal .modal-footer {
    border-top: 1px solid rgba(201, 193, 177, 0.35);
    padding: 0.9rem 1rem;
    background: rgba(238, 233, 223, 0.7);
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

#clienteModal .btn-secondary {
    background: rgba(27, 38, 50, 0.12);
    border: 1px solid rgba(201, 193, 177, 0.55);
    color: var(--bz-blue-fantastic);
    font-weight: 700;
}

#clienteModal .btn-secondary:hover {
    background: rgba(27, 38, 50, 0.18);
    border-color: rgba(201, 193, 177, 0.75);
    color: var(--bz-blue-fantastic);
}

#clienteModal .btn-primary {
    background: linear-gradient(135deg, var(--bz-burning-flame) 0%, #d4a574 100%);
    border: none;
    color: #1b2632;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 177, 98, 0.25);
}

#clienteModal .btn-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

/* ===== ESTILOS NOTIFICACIONES ===== */
/* Botón principal del modal (Descargar PDF) */
#modalDetalleNotificacion .btn-primary,
#btnDescargarPDF.btn-primary {
    background: linear-gradient(135deg, var(--bz-blue-fantastic) 0%, #3d5670 100%);
    border: 1px solid rgba(201, 193, 177, 0.38);
    color: var(--bz-palladian) !important;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(44, 59, 77, 0.25);
}

#modalDetalleNotificacion .btn-primary:hover,
#btnDescargarPDF.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

#modalDetalleNotificacion .btn-primary:disabled,
#btnDescargarPDF.btn-primary:disabled,
#modalDetalleNotificacion .btn-primary.disabled,
#btnDescargarPDF.btn-primary.disabled {
    opacity: 0.6;
    box-shadow: none;
}

.bg-gray-100 {
    background-color: white;
}

.border-radius-lg {
    border-radius: 0.5rem;
}

.estado-filters-container {
    display: flex;
    gap: 0.5rem;
}

.estado-item {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(201, 193, 177, 0.55);
    background: rgba(238, 233, 223, 0.28);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    white-space: nowrap;
}

.estado-item:hover {
    background: rgba(238, 233, 223, 0.42);
    border-color: rgba(201, 193, 177, 0.8);
}

.estado-item.active {
    background: rgba(44, 59, 77, 0.95);
    color: white;
    border-color: rgba(44, 59, 77, 0.95);
}

.card-no-leida {
    border-left: 4px solid #2c3b4d !important;
}

.card-leida {
    opacity: 0.8;
}

.cliente-item {
    cursor: pointer;
    transition: background 0.3s;
    padding: 12px 14px;
    min-height: 70px;
}

.cliente-item:hover {
    background: rgba(238, 233, 223, 0.45) !important;
    border-color: rgba(201, 193, 177, 0.7) !important;
}

.avatar-cliente {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bz-blue-fantastic) 0%, var(--bz-truffle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.casilla-item.active {
    background: rgba(44, 59, 77, 0.95) !important;
    color: white !important;
}

.casilla-item {
    transition: all 0.2s;
}

.casilla-item:hover {
    background: rgba(238, 233, 223, 0.45);
}

.overlay-carga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    text-align: center;
}

.carita-brillo {
    animation: brillo 1.5s ease-in-out infinite;
}

@keyframes brillo {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== ESTILOS CALENDARIO ===== */
#calendarioContainer {
    position: relative;
}

.calendario-dia {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 193, 177, 0.55);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: rgba(238, 233, 223, 0.38);
    position: relative;
    font-size: 0.6rem;
    padding: 2px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendario-header-dia {
    font-size: 0.6rem;
    box-sizing: border-box;
}

#calendarioGrid {
    box-sizing: border-box;
}

#diasSemanaHeader {
    box-sizing: border-box;
}

.calendario-dia.dia-hover {
    background: rgba(44, 59, 77, 0.14);
    border-color: rgba(44, 59, 77, 0.85);
    transform: scale(1.5);
    z-index: 20;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calendario-dia.dia-hover .calendario-dia-numero {
    font-size: 0.9rem;
    font-weight: 700;
}

.calendario-dia.dia-hover .calendario-dia-mensajes {
    font-size: 0.75rem;
    font-weight: 700;
}

.calendario-dia.otro-mes {
    color: rgba(201, 193, 177, 0.95);
    background: rgba(238, 233, 223, 0.22);
}

.calendario-dia.hoy {
    background: rgba(44, 59, 77, 0.95);
    color: white;
    font-weight: 700;
    border-color: rgba(44, 59, 77, 0.95);
}

.calendario-dia.seleccionado {
    background: rgba(44, 59, 77, 0.95);
    color: white;
    font-weight: 700;
    border-color: rgba(44, 59, 77, 0.95);
}

.calendario-dia.rango-seleccionado {
    background: rgba(44, 59, 77, 0.18);
    border-color: rgba(44, 59, 77, 0.7);
}

.calendario-dia.inicio-rango {
    background: rgba(44, 59, 77, 0.95);
    color: white;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.calendario-dia.fin-rango {
    background: rgba(44, 59, 77, 0.95);
    color: white;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.calendario-dia-numero {
    font-weight: 600;
    margin-bottom: 1px;
    line-height: 1;
    font-size: 0.7rem;
}

.calendario-dia-mensajes {
    font-size: 0.55rem;
    font-weight: 600;
    margin-top: 1px;
    line-height: 1;
}

.calendario-dia-mensajes.mensajes-alto {
    color: #e53e3e;
}

.calendario-dia-mensajes.mensajes-medio {
    color: #ed8936;
}

.calendario-dia-mensajes.mensajes-bajo {
    color: #4299e1;
}

.calendario-dia.hoy .calendario-dia-mensajes,
.calendario-dia.seleccionado .calendario-dia-mensajes {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
}

.calendario-dia.hover-3x3 {
    background: #cfe2ff;
    border-color: #4299e1;
    z-index: 5;
}

/* ===== ESTILOS PDF IFRAME ===== */
#detalleNotificacion iframe {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

#detalleNotificacion iframe[src*="data:application/pdf"] {
    width: 100% !important;
    max-width: 100% !important;
}

#detalleNotificacion > div {
    width: 100% !important;
    max-width: 100% !important;
}

#detalleNotificacion > div > div:last-child {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== TOOLTIP CALENDARIO ===== */
#calendarioTooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== ESTILOS HORARIOS PERFIL ===== */
.horario-row {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.horario-input {
    width: 120px;
    margin-right: 8px;
}

.btn-eliminar-horario {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-eliminar-horario:hover {
    background: #dc3545;
    color: white;
}

#horarios-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

#btnAgregarHorario {
    margin-left: auto;
}

/* ===== SIDEBAR PERFIL ===== */
.perfil-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.perfil-sidebar.active {
    display: block;
    pointer-events: all;
}

.perfil-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.perfil-sidebar.active .perfil-sidebar-overlay {
    opacity: 1;
}

.perfil-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 32rem;
    height: 100%;
    background: var(--bz-palladian);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.perfil-sidebar.active .perfil-sidebar-content {
    transform: translateX(0);
}

.perfil-sidebar-header {
    padding: 1.5rem;
    background: rgba(238, 233, 223, 0.92);
    border-bottom: 1px solid rgba(201, 193, 177, 0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.perfil-sidebar-header h5 {
    color: var(--bz-blue-fantastic);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.perfil-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(238, 233, 223, 0.92);
}

.perfil-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.perfil-sidebar-body::-webkit-scrollbar-track {
    background: rgba(238, 233, 223, 0.55);
}

.perfil-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(44, 59, 77, 0.9);
    border-radius: 3px;
}

.perfil-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 59, 77, 1);
}

.perfil-sidebar-body .form-label {
    color: var(--bz-blue-fantastic);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.perfil-sidebar-body .form-control {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 193, 177, 0.65);
    color: var(--bz-abyssal);
    min-width: 0;
    width: 100%;
}

.perfil-sidebar-body .form-control:focus {
    background: #fff;
    border-color: var(--bz-blue-fantastic);
    color: var(--bz-abyssal);
    box-shadow: 0 0 0 0.2rem rgba(44, 59, 77, 0.22);
}

.perfil-sidebar-body .form-control[readonly] {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(201, 193, 177, 0.55);
    color: var(--bz-blue-fantastic);
    cursor: not-allowed;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    overflow: visible;
    text-overflow: clip;
}

.perfil-sidebar-fechas {
    display: flex;
    flex-wrap: nowrap;
    margin-left: 0;
    margin-right: 0;
}

.perfil-sidebar-fechas > [class*="col-"] {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    padding-left: calc(var(--bs-gutter-x, 1rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1rem) * 0.5);
}

.perfil-sidebar-fechas .perfil-sidebar-fecha {
    font-size: 0.75rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Selector hora (intervalos de 5 min) */
.buzone-time-picker-5 {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.buzone-time-picker-5__hour,
.buzone-time-picker-5__min {
    flex: 1 1 0;
    min-width: 0;
}

.buzone-time-picker-5__sep {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--bz-blue-fantastic);
    line-height: 1;
}

.perfil-sidebar-body .buzone-time-picker-5 .form-select {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 193, 177, 0.65);
    color: var(--bz-abyssal);
}

.perfil-sidebar-body h6 {
    color: var(--bz-blue-fantastic);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.perfil-sidebar-estilos {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 193, 177, 0.55);
}

.perfil-sidebar-estilos__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bz-blue-fantastic);
    margin-bottom: 0.5rem;
}

.perfil-sidebar-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.perfil-sidebar-logout {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 193, 177, 0.55);
    display: flex;
    justify-content: flex-end;
}

.perfil-sidebar-logout__btn {
    width: auto;
    min-width: 0;
}

.horario-row-sidebar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.horario-input-sidebar {
    flex: 1;
    margin-right: 8px;
}

.btn-eliminar-horario-sidebar {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-eliminar-horario-sidebar:hover {
    background: #dc3545;
    color: white;
}

/* Texto secundario: contraste suficiente sobre Palladian */
.perfil-sidebar-body .text-muted {
    color: rgba(27, 38, 50, 0.72) !important;
}

.perfil-sidebar-body small,
.perfil-sidebar-estilos p.small {
    color: rgba(27, 38, 50, 0.78);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.perfil-sidebar-body .btn-primary {
    background-color: var(--bz-blue-fantastic);
    border-color: var(--bz-blue-fantastic);
}

.perfil-sidebar-body .btn-primary:hover {
    background-color: #243548;
    border-color: #243548;
}

.perfil-sidebar-body .btn-outline-primary {
    color: var(--bz-blue-fantastic);
    border-color: var(--bz-blue-fantastic);
}

.perfil-sidebar-body .btn-outline-primary:hover {
    background-color: var(--bz-blue-fantastic);
    border-color: var(--bz-blue-fantastic);
    color: white;
}

.perfil-sidebar-body .btn-outline-secondary {
    color: #718096;
    border-color: #e2e8f0;
}

.perfil-sidebar-body .btn-outline-secondary:hover {
    background-color: rgba(201, 193, 177, 0.25);
    border-color: rgba(201, 193, 177, 0.55);
    color: #2d3748;
}

/* Responsive */
@media (max-width: 768px) {
    .perfil-sidebar-content {
        max-width: min(32rem, 96vw);
    }
}

/* ===== LOGIN (paleta BuzOne, alineado con header / panel) ===== */
body.login-body {
    background-color: var(--bz-abyssal);
}

body.login-body .login-page-buzone {
    background: transparent;
    min-height: 100vh;
}

body.login-body .login-image-section {
    background:
        linear-gradient(105deg, rgba(27, 38, 50, 0.94) 0%, rgba(44, 59, 77, 0.9) 55%, rgba(36, 53, 72, 0.92) 100%),
        url('../img/work.svg') center/cover;
    background-size: cover;
    background-position: center;
}

body.login-body .login-image-section::before {
    background:
        radial-gradient(ellipse at bottom left, rgba(255, 177, 98, 0.12) 0%, transparent 60%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(238,233,223,0.08)"/><circle cx="80" cy="40" r="1.5" fill="rgba(238,233,223,0.06)"/><circle cx="40" cy="80" r="1" fill="rgba(238,233,223,0.05)"/></svg>') repeat;
    opacity: 1;
}

body.login-body .login-image-content .login-hero-title {
    color: var(--bz-palladian);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    font-size: 3rem;
    font-weight: 700;
}

body.login-body .login-image-content .login-hero-lead {
    color: var(--bz-oatmeal);
    opacity: 0.95;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Minicards KPI (mismo lenguaje que .header-minicard) */
body.login-body .login-minicard {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem 0.4rem 0.4rem;
    background: rgba(238, 233, 223, 0.06);
    border: 1px solid rgba(201, 193, 177, 0.28);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
    min-height: 3.25rem;
}

body.login-body .login-minicard__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bz-palladian);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.login-body .login-minicard__icon--clients {
    background: linear-gradient(145deg, var(--bz-blue-fantastic) 0%, #3d5670 100%);
}

body.login-body .login-minicard__icon--msg {
    background: linear-gradient(145deg, var(--bz-truffle) 0%, var(--bz-burning-flame) 100%);
}

body.login-body .login-minicard__icon--notif {
    background: linear-gradient(145deg, #355a72 0%, var(--bz-blue-fantastic) 100%);
}

body.login-body .login-minicard__icon--consult {
    background: linear-gradient(145deg, var(--bz-burning-flame) 0%, #d4a574 100%);
}

body.login-body .login-minicard__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

body.login-body .login-minicard__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bz-burning-flame);
    letter-spacing: -0.02em;
}

body.login-body .login-minicard__label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--bz-oatmeal);
    margin-top: 0.1rem;
}

body.login-body .login-feature-card {
    background: rgba(238, 233, 223, 0.06);
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 193, 177, 0.22);
    transition: background 0.2s ease, transform 0.15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.login-body .login-feature-card:hover {
    background: rgba(238, 233, 223, 0.1);
    transform: translateY(-2px);
}

body.login-body .login-feature-card i {
    font-size: 1.4rem;
    color: var(--bz-burning-flame);
    margin-bottom: 0.4rem;
}

body.login-body .login-feature-card span {
    color: var(--bz-palladian);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Columna formulario */
body.login-body .login-form-section {
    background: var(--bz-palladian);
}

body.login-body .login-form-section::before {
    background: var(--bz-palladian);
}

body.login-body .login-container-buzone {
    background: var(--bz-abyssal);
    border: 1px solid rgba(201, 193, 177, 0.28);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

/* Logo BuzOne Lite en blanco sobre card oscuro */
body.login-body .login-container-buzone .login-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

body.login-body .login-title-buzone {
    color: var(--bz-palladian);
    text-shadow: none;
}

body.login-body .login-subtitle-buzone {
    color: var(--bz-oatmeal);
    opacity: 0.95;
}

body.login-body .login-container-buzone .form-label {
    color: var(--bz-oatmeal);
    font-weight: 600;
}

body.login-body .login-container-buzone .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(201, 193, 177, 0.65);
    color: var(--bz-abyssal);
}

body.login-body .login-container-buzone .form-control:focus {
    border-color: var(--bz-blue-fantastic);
    box-shadow: 0 0 0 0.2rem rgba(44, 59, 77, 0.2);
    background: #fff;
}

body.login-body .login-container-buzone .btn-buzone {
    background: linear-gradient(135deg, var(--bz-burning-flame) 0%, #d4a574 100%);
    border: none;
    color: var(--bz-abyssal);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 177, 98, 0.28);
}

body.login-body .login-container-buzone .btn-buzone:hover {
    filter: brightness(1.04);
    color: var(--bz-abyssal);
    box-shadow: 0 12px 28px rgba(255, 177, 98, 0.35);
}

body.login-body .login-container-buzone .input-group .form-control {
    border: 1px solid rgba(201, 193, 177, 0.65);
    border-right: none;
}

body.login-body .login-container-buzone .input-group .form-control:focus {
    border-color: var(--bz-blue-fantastic);
    box-shadow: none;
}

body.login-body .login-container-buzone .input-group-text,
body.login-body .login-container-buzone .input-group .btn {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(201, 193, 177, 0.65);
    border-left: none;
    color: var(--bz-blue-fantastic);
}

body.login-body .login-container-buzone .input-group .btn:hover {
    background: rgba(238, 233, 223, 0.95);
    color: var(--bz-blue-fantastic);
    border-color: rgba(201, 193, 177, 0.65);
}

body.login-body .login-container-buzone .alert {
    border-radius: 10px;
    border-width: 1px;
}

body.login-body .login-container-buzone .alert-danger {
    background: rgba(163, 81, 57, 0.35);
    border-color: rgba(238, 233, 223, 0.25);
    color: var(--bz-palladian);
}

body.login-body .login-container-buzone .alert-warning {
    background: rgba(255, 177, 98, 0.28);
    border-color: rgba(238, 233, 223, 0.25);
    color: var(--bz-abyssal);
}

body.login-body .login-container-buzone .alert-success {
    background: rgba(44, 59, 77, 0.55);
    border-color: rgba(201, 193, 177, 0.35);
    color: var(--bz-palladian);
}

body.login-body .login-container-buzone .alert small {
    color: rgba(238, 233, 223, 0.88);
}

body.login-body .login-link-back {
    color: var(--bz-palladian);
    font-weight: 600;
}

body.login-body .login-link-back:hover {
    color: var(--bz-burning-flame);
}

@media (max-width: 991.98px) {
    body.login-body .login-image-content .login-hero-title {
        font-size: 2rem;
    }
}
