/* ✅ RESET body */
body.rl-body {
    margin: 0;
    padding: 0;
}

/* ===== NAVBAR ===== */
.rl-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background-color: #3b4147;
    border-bottom: 2px solid #FD7E14;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.rl-nav-left,
.rl-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rl-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border: 2px solid #FD7E14;
    color: #343A40;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.rl-nav-btn:hover {
    background-color: #FD7E14;
    color: white;
}

.rl-nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FD7E14;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== POPUP MENU (avatar) ===== */
.rl-popup-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: #e9ecef;
    border: 2px solid #FD7E14;
    border-radius: 10px;
    padding: 10px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.rl-hidden {
    display: none !important;
}

.rl-menu-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #FD7E14;
}

.rl-menu-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FD7E14;
    margin-bottom: 6px;
}

.rl-menu-user p {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
    color: #343A40;
}

.rl-popup-menu a,
.rl-menu-btn {
    padding: 8px;
    text-align: left;
    color: #343A40;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    width: 100%;
    transition: background-color 0.2s, color 0.2s;
}

.rl-popup-menu a:hover,
.rl-menu-btn:hover {
    background-color: #FD7E14;
    color: white;
}

.rl-popup-menu form {
    margin: 0;
    width: 100%;
}

.rl-menu-title {
    margin: 0 0 6px 0;
    padding-bottom: 8px;
    font-weight: bold;
    font-size: 13px;
    color: #888;
    text-align: center;
    border-bottom: 1px solid #FD7E14;
}

/* ===== CONTENIDO Y FOOTER ===== */
.rl-main-content {
    min-height: calc(100vh - 120px);
}

.rl-footer {
    background-color: #3b4147;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ===== NAVBAR EXTRAS ===== */
.rl-nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.rl-nav-brand {
    color: white;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.rl-nav-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.rl-search-input {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: 6px 0 0 6px;
    background: #d9d9d9;
    font-size: 14px;
    outline: none;
    color: #343A40;
}

.rl-search-input:focus {
    background: #ececec;
}

.rl-search-btn {
    background: #FD7E14;
    border: none;
    padding: 8px 14px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 15px;
    color: white;
    transition: background 0.2s;
}

.rl-search-btn:hover {
    background: #e06a00;
}

/* ===== SIDEBAR LATERAL ===== */
.rl-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.rl-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #2e3338;
    border-right: 2px solid #FD7E14;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
}

.rl-sidebar-hidden {
    transform: translateX(-100%);
}

.rl-sidebar-visible {
    transform: translateX(0);
}

.rl-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 14px 14px;
    border-bottom: 2px solid #FD7E14;
    background: #3b4147;
}

.rl-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.rl-sidebar-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.rl-sidebar-close {
    background: none;
    border: none;
    color: #FD7E14;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.rl-sidebar-close:hover {
    background: #FD7E14;
    color: #fff;
}

.rl-sidebar-section {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rl-sidebar-section-title {
    margin: 6px 4px 4px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FD7E14;
}

.rl-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #d0d4d8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
}

.rl-sidebar-item i {
    width: 16px;
    text-align: center;
    color: #FD7E14;
    font-size: 13px;
}

.rl-sidebar-item:hover {
    background: #FD7E14;
    color: #fff;
    padding-left: 18px;
}

.rl-sidebar-item:hover i {
    color: #fff;
}

.rl-sidebar-divider {
    height: 1px;
    background: #4a5058;
    margin: 4px 14px;
}

.rl-sidebar-select {
    background: #3b4147;
    border: 1px solid #FD7E14;
    color: #d0d4d8;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 4px;
    width: 100%;
    outline: none;
}

.rl-sidebar-select:focus {
    border-color: #e06a00;
}

/* ══════════════════════════════════════════════
   NOTIFICACIONES
══════════════════════════════════════════════ */
.rl-notif-wrap {
    position: relative;
}

.rl-notif-btn {
    position: relative;
}

.rl-notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #3b4147;
    pointer-events: none;
    line-height: 1;
}

.rl-notif-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #e9ecef;
    border: 2px solid #FD7E14;
    border-radius: 10px;
    width: 320px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    overflow: hidden;
}

.rl-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #FD7E14;
    background: #e9ecef;
    flex-shrink: 0;
}

.rl-notif-title {
    font-weight: 700;
    font-size: 14px;
    color: #343A40;
}

.rl-notif-mark-all {
    background: none;
    border: none;
    color: #FD7E14;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.rl-notif-mark-all:hover {
    text-decoration: underline;
}

.rl-notif-list {
    overflow-y: auto;
    flex: 1;
}

.rl-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    color: #6c757d;
    gap: 8px;
    font-size: 13px;
}

.rl-notif-empty i {
    font-size: 28px;
    color: #adb5bd;
}

.rl-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    background: #e9ecef;
}

.rl-notif-item:hover {
    background: #dee2e6;
}

.rl-notif-item.unread {
    background: #fff3e8;
}

.rl-notif-item.unread:hover {
    background: #ffe5cc;
}

.rl-notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.rl-notif-icon.notificacion {
    background: rgba(13,110,253,0.12);
    color: #0d6efd;
}

.rl-notif-icon.advertencia {
    background: rgba(255,193,7,0.15);
    color: #e0a800;
}

.rl-notif-icon.kick {
    background: rgba(220,53,69,0.12);
    color: #dc3545;
}

.rl-notif-body {
    flex: 1;
    min-width: 0;
}

.rl-notif-asunto {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #343A40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rl-notif-preview {
    margin: 0 0 4px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.rl-notif-fecha {
    font-size: 11px;
    color: #adb5bd;
}

.rl-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FD7E14;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ── Modal notificación completa ── */
.rl-notif-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.rl-notif-modal-overlay:not(.rl-hidden) {
    opacity: 1;
    pointer-events: all;
}

.rl-notif-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    width: 100%;
    max-width: 480px;
    margin: 0 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    box-sizing: border-box;
}

.rl-notif-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
}

.rl-notif-modal-close:hover { color: #343A40; }

.rl-notif-modal-tipo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 20px;
}

.rl-notif-modal-tipo.notificacion {
    background: rgba(13,110,253,0.1);
    color: #0d6efd;
}

.rl-notif-modal-tipo.advertencia {
    background: rgba(255,193,7,0.15);
    color: #c8960a;
}

.rl-notif-modal-tipo.kick {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
}

.rl-notif-modal-asunto {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #343A40;
}

.rl-notif-modal-fecha {
    margin: 0 0 16px;
    font-size: 12px;
    color: #adb5bd;
}

.rl-notif-modal-cuerpo {
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* ══════════════════════════════════════════════
   CONFIGURACIÓN POPUP
══════════════════════════════════════════════ */
.rl-config-wrap {
    position: relative;
}

.rl-config-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #e9ecef;
    border: 2px solid #FD7E14;
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.rl-config-menu a,
.rl-config-menu .rl-menu-btn {
    padding: 8px;
    text-align: left;
    color: #343A40;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    width: 100%;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.rl-config-menu a:hover,
.rl-config-menu .rl-menu-btn:hover {
    background-color: #FD7E14;
    color: white;
}

.rl-config-menu form {
    margin: 0;
    width: 100%;
}

.rl-config-divider {
    height: 1px;
    background: #FD7E14;
    margin: 6px 0;
    opacity: 0.4;
}

.rl-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    font-size: 14px;
    color: #343A40;
}

.rl-config-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rl-switch-mini {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.rl-switch-mini input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rl-switch-mini-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ced4da;
    border-radius: 20px;
    transition: background 0.2s;
}

.rl-switch-mini-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.rl-switch-mini input:checked + .rl-switch-mini-slider {
    background: #FD7E14;
}

.rl-switch-mini input:checked + .rl-switch-mini-slider::before {
    transform: translateX(16px);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 992px) {
    .rl-navbar { padding: 8px 14px; }
    .rl-nav-search { max-width: 280px; margin: 0 12px; }
    .rl-nav-brand { font-size: 14px; }
    .rl-nav-logo { width: 26px; height: 26px; }
}

@media (max-width: 768px) {
    .rl-navbar { padding: 6px 10px; gap: 6px; }
    .rl-nav-brand { display: none; }
    .rl-nav-logo { width: 24px; height: 24px; }
    .rl-nav-search { flex: 1; max-width: unset; margin: 0 8px; min-width: 0; }
    .rl-search-input { font-size: 14px; padding: 7px 10px; min-width: 0; width: 100%; }
    .rl-search-btn { padding: 7px 12px; font-size: 14px; flex-shrink: 0; }
    .rl-nav-btn { width: 36px; height: 36px; font-size: 15px; }
    .rl-nav-avatar { width: 36px; height: 36px; }
    .rl-popup-menu { right: 10px; top: 56px; min-width: 160px; }
    .rl-sidebar { width: 260px; }
    .rl-sidebar-item { padding: 11px 14px; font-size: 15px; }
    .rl-sidebar-item i { font-size: 15px; width: 18px; }
    .rl-sidebar-close { font-size: 20px; padding: 6px 8px; }
    .rl-sidebar-select { font-size: 15px; padding: 9px 12px; }
    .rl-footer { margin-top: 24px; padding: 16px; font-size: 13px; }
    .rl-notif-menu { width: calc(100vw - 32px); max-width: 320px; }
}

@media (max-width: 380px) {
    .rl-navbar { padding: 5px 8px; gap: 4px; }
    .rl-nav-btn { width: 32px; height: 32px; font-size: 14px; }
    .rl-nav-avatar { width: 32px; height: 32px; }
    .rl-search-input { padding: 6px 8px; font-size: 13px; }
    .rl-search-btn { padding: 6px 10px; font-size: 13px; }
    .rl-popup-menu { right: 6px; min-width: 150px; }
    .rl-sidebar { width: 240px; }
    .rl-sidebar-item { padding: 10px 12px; font-size: 14px; }
}

/* ── Selector de idioma ── */
.rl-lang-switch {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.rl-lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    background: transparent;
    color: #666;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.rl-lang-btn:hover {
    border-color: #F26522;
    color: #F26522;
    background: #fff3ec;
}

.rl-lang-btn.active {
    background: #F26522;
    border-color: #F26522;
    color: #fff;
}

.rl-lang-flag { font-size: 1rem; }

/* Ocultar barra de Google Translate que aparece arriba */
.goog-te-banner-frame,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Ocultar el "Powered by Google" del widget */
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

/* ── FOOTER ── */
.rl-footer {
    background-color: #1f2229;
    color: #d0d3d9;
    padding: 48px 32px 0;
    margin-top: 48px;
}

.rl-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.rl-footer-brand .rl-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rl-footer-logo img {
    width: 32px;
    height: 32px;
}

.rl-footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.rl-footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: #9ba1ab;
    max-width: 320px;
}

.rl-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rl-footer-col a {
    display: block;
    color: #9ba1ab;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.rl-footer-col a:hover {
    color: #fff;
}

.rl-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #7a808a;
}

.rl-footer-social {
    display: flex;
    gap: 16px;
}

.rl-footer-social a {
    color: #9ba1ab;
    font-size: 16px;
    transition: color 0.2s ease;
}

.rl-footer-social a:hover {
    color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .rl-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .rl-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .rl-footer {
        padding: 32px 20px 0;
    }

    .rl-footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rl-footer-tagline {
        max-width: 100%;
    }

    .rl-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
