/* ================================================================
   WHATS NEW MODAL — Nenomed
   Selector raíz: .nmd-wn
   Ventana modal:  .nn-whats-new-window
   ================================================================ */

/* ── Ventana Bootstrap ─────────────────────────────────────────── */
.nn-whats-new-window .modal-dialog {
    max-width: 500px;
    width: 96%;
    margin: 48px auto;
}
.nn-whats-new-window .modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 28px 64px rgba(0, 52, 123, 0.20);
    overflow: hidden;
    padding: 0;
    background: transparent;
}

/* ── Contenedor raíz ───────────────────────────────────────────── */
.nmd-wn {
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
    border-radius: 18px;
    overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────────── */
.nmd-wn__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 16px;
    background: linear-gradient(135deg, #00347b 0%, #1874d2 100%);
    color: #fff;
}
.nmd-wn__header-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.nmd-wn__header-logo img {
    width: 26px;
    height: 26px;
    /* filter: brightness(0) invert(1);
    opacity: 0.85; */
}
.nmd-wn__header-logo span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.nmd-wn__header-title {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}
.nmd-wn__close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.nmd-wn__close:hover { background: rgba(255,255,255,0.28); }
.nmd-wn__close:focus { outline: none; }

/* ── Tabs ──────────────────────────────────────────────────────── */
.nmd-wn__tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e4eaf2;
    padding: 0 16px;
}
.nmd-wn__tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 13px 8px 11px;
    font-size: 13px;
    font-weight: 600;
    color: #8899b0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.18s, border-color 0.18s;
}
.nmd-wn__tab.active {
    color: #00347b;
    border-bottom-color: #22b1e6;
}
.nmd-wn__tab:hover:not(.active) { color: #334455; }
.nmd-wn__tab:focus { outline: none; }

.nmd-wn__tab-badge {
    background: #22b1e6;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
    line-height: 16px;
}
.nmd-wn__tab:not(.active) .nmd-wn__tab-badge {
    background: #ccd8e8;
    color: #667788;
}

/* ── Body (scrollable) ─────────────────────────────────────────── */
.nmd-wn__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    max-height: 400px;
}
.nmd-wn__body::-webkit-scrollbar { width: 4px; }
.nmd-wn__body::-webkit-scrollbar-track { background: transparent; }
.nmd-wn__body::-webkit-scrollbar-thumb {
    background: #c4d4e4;
    border-radius: 4px;
}

/* ── Novedades ─────────────────────────────────────────────────── */
.nmd-wn__novedad {
    background: #fff;
    border-radius: 12px;
    padding: 15px 16px;
    margin-bottom: 10px;
    border: 1px solid #e4eaf2;
    transition: box-shadow 0.2s;
}
.nmd-wn__novedad:last-child { margin-bottom: 0; }
.nmd-wn__novedad.is-new {
    border-color: #c0d8f2;
    box-shadow: 0 2px 12px rgba(34,177,230,0.10);
}

.nmd-wn__novedad-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.nmd-wn__version-badge {
    background: #dae8f7;
    color: #00347b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.nmd-wn__version-badge.new {
    background: #00347b;
    color: #fff;
}
.nmd-wn__novedad-titulo {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #1a2b3c;
}
.nmd-wn__novedad-fecha {
    font-size: 11px;
    color: #99aabb;
    flex-shrink: 0;
}

.nmd-wn__novedad-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nmd-wn__novedad-items li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #445566;
    padding: 5px 0;
    border-bottom: 1px solid #f0f4f8;
    line-height: 1.45;
}
.nmd-wn__novedad-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.nmd-wn__novedad-items li .fa {
    color: #22b1e6;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Aviso ─────────────────────────────────────────────────────── */
.nmd-wn__aviso {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #dde8f4;
    margin-bottom: 10px;
}
.nmd-wn__aviso-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00347b, #22b1e6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.nmd-wn__aviso-icon .fa {
    color: #fff;
    font-size: 22px;
}
.nmd-wn__aviso-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #00347b;
    margin: 0 0 8px;
}
.nmd-wn__aviso-desc {
    font-size: 13px;
    color: #556677;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* SO Selector */
.nmd-wn__so-label {
    font-size: 11px;
    font-weight: 700;
    color: #99aabc;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.nmd-wn__so-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.nmd-wn__so-btn {
    flex: 1;
    padding: 12px 10px;
    border-radius: 10px;
    border: 2px solid #dde8f4;
    background: #f6f9fd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #445566;
}
.nmd-wn__so-btn .fa { font-size: 18px; }
.nmd-wn__so-btn:focus { outline: none; }

.nmd-wn__so-btn--android .fa { color: #3ddc84; }
.nmd-wn__so-btn--android:hover:not(.selected) { border-color: #3ddc84; background: #f0fdf6; }
.nmd-wn__so-btn--android.selected {
    border-color: #3ddc84;
    background: #edfbf3;
    color: #1a7a40;
}

.nmd-wn__so-btn--ios .fa { color: #666; }
.nmd-wn__so-btn--ios:hover:not(.selected) { border-color: #999; background: #f7f7f9; }
.nmd-wn__so-btn--ios.selected {
    border-color: #666;
    background: #f5f5f7;
    color: #222;
}

/* Email */
.nmd-wn__email-wrap { margin-bottom: 4px; }
.nmd-wn__email-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #99aabc;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}
.nmd-wn__email-input.form-control {
    border-radius: 9px !important;
    border: 2px solid #dde8f4 !important;
    font-size: 13px !important;
    height: 40px !important;
    margin-bottom: 12px;
    transition: border-color 0.18s !important;
    box-shadow: none !important;
}
.nmd-wn__email-input.form-control:focus {
    border-color: #22b1e6 !important;
    box-shadow: 0 0 0 3px rgba(34,177,230,0.13) !important;
}

/* Éxito tester */
.nmd-wn__tester-success {
    text-align: center;
    padding: 28px 12px;
}
.nmd-wn__tester-success .fa {
    font-size: 46px;
    color: #3ddc84;
    margin-bottom: 14px;
    display: block;
}
.nmd-wn__tester-success p {
    font-size: 14px;
    color: #334455;
    margin: 0;
    line-height: 1.6;
}

/* Dismiss link */
.nmd-wn__aviso-dismiss {
    text-align: center;
    margin-top: 8px;
}

/* Sin avisos */
.nmd-wn__empty {
    text-align: center;
    padding: 44px 20px;
    color: #b0c4d8;
}
.nmd-wn__empty .fa {
    font-size: 38px;
    margin-bottom: 12px;
    display: block;
    color: #3ddc84;
}
.nmd-wn__empty p { margin: 0; font-size: 14px; }

/* ── Botones ───────────────────────────────────────────────────── */
.nmd-wn__btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00347b, #1874d2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.18s, transform 0.1s;
}
.nmd-wn__btn-primary:hover { opacity: 0.9; }
.nmd-wn__btn-primary:active { transform: scale(0.98); }
.nmd-wn__btn-primary:focus { outline: none; }
.nmd-wn__btn-primary[disabled] { opacity: 0.45; cursor: not-allowed; }

.nmd-wn__btn-primary--sm {
    width: auto;
    padding: 9px 22px;
}

.nmd-wn__btn-link {
    background: none;
    border: none;
    color: #99aabb;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 4px;
    transition: color 0.18s;
}
.nmd-wn__btn-link:hover { color: #445566; }
.nmd-wn__btn-link:focus { outline: none; }

/* ── Footer ────────────────────────────────────────────────────── */
.nmd-wn__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 14px;
    background: #fff;
    border-top: 1px solid #e4eaf2;
    gap: 12px;
}
