/**
 * Estilos del Portal de Miembros, Asistentes y Gafetes — Home Builder
 *
 * Archivo: addons/miembros/assets/css/members-style.css
 * @package Home_Builder_Miembros
 */

:root {
    /* ==========================================================================
       UNIFIED MEDICAL DESIGN TOKENS (WCAG AAA COMPLIANT)
       ========================================================================== */
    --rm-color-primary: #0a4275;     /* Deep surgical blue, WCAG AAA 10.31:1 on white */
    --rm-color-accent: #0284c7;      /* Sky blue */
    --rm-color-emerald: #059669;     /* Emerald confirmation */
    --rm-color-emerald-bg: #dcfce7;  /* Soft emerald background */
    --rm-color-emerald-text: #064e3b;/* WCAG AAA >8.44:1 on #dcfce7 */
    --rm-color-amber-bg: #fef3c7;    /* Soft amber background */
    --rm-color-amber-text: #78350f;   /* WCAG AAA >8.15:1 on #fef3c7 */
    --rm-color-red-bg: #fee2e2;      /* Soft red background */
    --rm-color-red-text: #7f1d1d;    /* WCAG AAA >8.35:1 on #fee2e2 */
    --rm-color-purple-bg: #f3e8ff;   /* Soft purple background */
    --rm-color-purple-text: #6b21a8; /* WCAG AAA 7.21:1 on #f3e8ff */
    --rm-color-blue-bg: #e0f2fe;     /* Soft sky blue background */
    --rm-color-blue-text: #0369a1;   /* WCAG AAA on #e0f2fe */
    --rm-color-slate-dark: #0f172a;  /* Dark slate for titles */
    --rm-color-slate-body: #334155;  /* Slate for body text */
    --rm-touch-target-min: 44px;     /* Minimum ergonomic touch target */

    /* Legacy compatibility aliases */
    --rm-mb-primary: var(--rm-color-primary, #0a4275);
    --rm-mb-accent: #00cba0;
    --rm-mb-dark: #0f172a;
    --rm-mb-slate: #475569;
    --rm-mb-bg-card: #ffffff;
    --rm-mb-border: #e2e8f0;
    --rm-mb-radius: 14px;
}

/* ==========================================================================
   UNIFIED WCAG AAA PILL BADGES
   ========================================================================== */
.rm-pill-badge {
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

/* 1. Confirmed (Gafetes validados, asistencia confirmada) */
.rm-pill-badge--confirmed {
    background-color: var(--rm-color-emerald-bg, #dcfce7);
    color: var(--rm-color-emerald-text, #064e3b);
    border: 1px solid #bbf7d0;
}

/* 2. Pending (Gafetes pendientes, gastos en revisión) */
.rm-pill-badge--pending {
    background-color: var(--rm-color-amber-bg, #fef3c7);
    color: var(--rm-color-amber-text, #78350f);
    border: 1px solid #fde68a;
}

/* 3. Approved (Gastos aprobados, solicitudes autorizadas) */
.rm-pill-badge--approved {
    background-color: var(--rm-color-blue-bg, #e0f2fe);
    color: var(--rm-color-blue-text, #0369a1);
    border: 1px solid #bae6fd;
}

/* 4. Paid (Gastos liquidados, pagos procesados) */
.rm-pill-badge--paid {
    background-color: var(--rm-color-emerald-bg, #dcfce7);
    color: var(--rm-color-emerald-text, #064e3b);
    border: 1px solid #86efac;
}

/* 5. Rejected (Gastos o solicitudes rechazadas) */
.rm-pill-badge--rejected {
    background-color: var(--rm-color-red-bg, #fee2e2);
    color: var(--rm-color-red-text, #7f1d1d);
    border: 1px solid #fecaca;
}

/* Optional Purple / Becas */
.rm-pill-badge--purple,
.rm-pill-badge--scholarship {
    background-color: var(--rm-color-purple-bg, #f3e8ff);
    color: var(--rm-color-purple-text, #6b21a8);
    border: 1px solid #e9d5ff;
}

/* ==========================================================================
   BREAKOUT RULES: NATIVE WEBAPP EXPERIENCE (BYPASS ASTRA BOXED LAYOUT)
   ========================================================================== */
body.rm-webapp-active,
body:has(#rm-members-app),
body.page-id-2173,
body.page-id-2174 {
    background-color: #f8fafc !important; /* Soft, clean, native app canvas */
}

/* Strip Astra separate container spacing, margins, and nested white boxes */
body.rm-webapp-active .site-content,
body:has(#rm-members-app) .site-content,
body.page-id-2173 .site-content,
body.page-id-2174 .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.rm-webapp-active .ast-container,
body:has(#rm-members-app) .ast-container,
body.page-id-2173 .ast-container,
body.page-id-2174 .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
}

body.rm-webapp-active #primary,
body:has(#rm-members-app) #primary,
body.page-id-2173 #primary,
body.page-id-2174 #primary,
body.rm-webapp-active #main,
body:has(#rm-members-app) #main,
body.page-id-2173 #main,
body.page-id-2174 #main,
body.rm-webapp-active .ast-article-single,
body:has(#rm-members-app) .ast-article-single,
body.page-id-2173 .ast-article-single,
body.page-id-2174 .ast-article-single,
body.rm-webapp-active .entry-content,
body:has(#rm-members-app) .entry-content,
body.page-id-2173 .entry-content,
body.page-id-2174 .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.rm-webapp-active .entry-header,
body:has(#rm-members-app) .entry-header,
body.page-id-2173 .entry-header,
body.page-id-2174 .entry-header {
    display: none !important;
}

.rm-mb-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 20px 24px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--rm-mb-dark);
}

@media (max-width: 768px) {
    .rm-mb-wrapper {
        padding: 6px 12px calc(80px + env(safe-area-inset-bottom, 16px)) 12px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   CARD DE LOGIN OTP
   ========================================================================== */
.rm-mb-login-card {
    max-width: 480px;
    margin: 40px auto;
    background: var(--rm-mb-bg-card);
    border: 1px solid var(--rm-mb-border);
    border-radius: var(--rm-mb-radius);
    padding: 36px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.rm-mb-logo {
    max-height: 70px;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 14px;
}

.rm-mb-brand-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.rm-mb-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--rm-mb-dark);
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.rm-mb-subtitle {
    font-size: 14px;
    color: var(--rm-mb-slate);
    margin: 0 0 24px 0;
}

.rm-mb-instruction {
    font-size: 14px;
    color: var(--rm-mb-slate);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.rm-mb-field {
    text-align: left;
    margin-bottom: 16px;
}

.rm-mb-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--rm-mb-dark);
}

.rm-mb-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-mb-input:focus {
    border-color: var(--rm-mb-primary);
    box-shadow: 0 0 0 3px rgba(10, 66, 117, 0.15);
    outline: none;
}

.rm-mb-input-otp {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 12px;
    text-align: center;
    font-family: monospace, sans-serif;
    color: var(--rm-mb-primary);
    padding: 14px;
}

.rm-mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: var(--rm-mb-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    box-sizing: border-box;
}

.rm-mb-btn:hover {
    background: #08345c;
}

.rm-mb-btn:active {
    transform: translateY(1px);
}

.rm-mb-btn-confirm {
    background: #047857;
}

.rm-mb-btn-confirm:hover {
    background: #065f46;
}

.rm-mb-link-btn {
    background: none;
    border: none;
    color: var(--rm-mb-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 6px;
}

.rm-mb-email-badge {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    color: var(--rm-mb-dark);
}

.rm-mb-resend-box {
    margin-top: 16px;
}

.rm-mb-help {
    margin-top: 24px;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid var(--rm-mb-border);
    padding-top: 14px;
}

.rm-mb-help a {
    color: var(--rm-mb-primary);
    text-decoration: none;
}

.rm-mb-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: left;
}

.rm-mb-msg-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rm-mb-msg-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* ==========================================================================
   PORTAL DEL ASISTENTE Y SECCIONES (NATIVE APP HEADER)
   ========================================================================== */
.rm-mb-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    gap: 12px;
    box-sizing: border-box;
}

.rm-mb-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.rm-mb-avatar-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a4275 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(10, 66, 117, 0.2);
}

.rm-mb-user-initials {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
}

.rm-mb-user-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rm-mb-user-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rm-mb-user-name {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.2px;
}

.rm-role-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.rm-role--confirmed { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.rm-role--pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.rm-role--admin { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.rm-role--staff { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.rm-role--docente { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

.rm-mb-user-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.rm-mb-user-email-text {
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.rm-mb-meta-sep {
    color: #cbd5e1;
    font-weight: 700;
    user-select: none;
}

.rm-mb-user-code-text {
    font-size: 12px;
    color: #64748b;
}

.rm-mb-user-code-text strong {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11.5px;
    color: #0369a1;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.rm-mb-user-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rm-mb-btn-notif {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    touch-action: manipulation;
}

.rm-mb-btn-notif:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0a4275;
}

.rm-notif-svg {
    stroke: currentColor;
    display: block;
    flex-shrink: 0;
}

.rm-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
    animation: rmBadgePulse 2s infinite ease-in-out;
    box-sizing: border-box;
}

@keyframes rmBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.rm-broadcasts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.rm-broadcasts-highlight {
    animation: rmBroadcastHighlight 1.2s ease;
}

@keyframes rmBroadcastHighlight {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.02); filter: brightness(1.08); }
    100% { transform: scale(1); filter: brightness(1); }
}

.rm-mb-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.rm-mb-btn-logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.rm-logout-svg {
    stroke: currentColor;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .rm-mb-user-bar {
        padding: 10px 12px;
        gap: 10px;
    }
    .rm-mb-avatar-wrap {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
    .rm-mb-user-initials {
        font-size: 13px;
    }
    .rm-mb-user-name {
        font-size: 14.5px;
    }
    .rm-logout-text {
        display: none;
    }
    .rm-mb-btn-logout {
        padding: 7px 8px;
        min-width: 34px;
        min-height: 34px;
        justify-content: center;
    }
}

/* ==========================================================================
   CORPORATE VIP CREDENTIAL CARD & SPONSOR HEADER (MILESTONE 4)
   ========================================================================== */
.rm-vip-credential-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(10, 66, 117, 0.06);
    position: relative;
    overflow: hidden;
}

.rm-vip-credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a4275 0%, #0284c7 50%, #38bdf8 100%);
}

.rm-vip-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.rm-vip-logo-wrap {
    width: 84px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 8px;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rm-vip-logo {
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
}

.rm-vip-logo-fallback {
    background: linear-gradient(135deg, #0a4275 0%, #0284c7 100%);
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.rm-vip-avatar-initials {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
    user-select: none;
}

.rm-vip-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.rm-vip-company-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-vip-company-name,
.rm-sponsor-corp-name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}

/* Metallic Tier Badges */
.rm-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rm-tier-badge--platinum {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 45%, #94a3b8 100%);
    color: #0f172a;
    border: 1px solid #94a3b8;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.45);
}

.rm-tier-badge--oro,
.rm-tier-badge--gold {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
    color: #451a03;
    border: 1px solid #b45309;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
    text-shadow: 0 1px 0 rgba(254, 240, 138, 0.5);
}

.rm-tier-badge--plata,
.rm-tier-badge--silver {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #1e293b;
    border: 1px solid #94a3b8;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

.rm-tier-badge--bronce,
.rm-tier-badge--bronze {
    background: linear-gradient(135deg, #fed7aa 0%, #fb923c 50%, #c2410c 100%);
    color: #431407;
    border: 1px solid #9a3412;
    box-shadow: 0 2px 6px rgba(194, 65, 12, 0.3);
}

.rm-vip-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}

.rm-vip-stand-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    white-space: nowrap;
}

.rm-vip-stand-highlight.rm-stand-pending {
    background: #fffbeb;
    color: #78350f;
    border-color: #fde68a;
}

.rm-vip-contact {
    font-size: 12px;
    color: #64748b;
}

.rm-vip-quotas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
    min-width: 220px;
    box-sizing: border-box;
}

.rm-quota-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.rm-quota-label {
    font-weight: 600;
    white-space: nowrap;
}

.rm-quota-count {
    font-weight: 800;
    color: #0f172a;
    margin-left: auto;
}

.rm-quota-pill {
    font-size: 10px;
    padding: 2px 6px;
}

/* Banner de Aviso Clave Superior */
.rm-mb-banner-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.rm-mb-banner-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.rm-mb-banner-notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #064e3b;
}

.rm-mb-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.rm-mb-notice-content {
    flex: 1;
}

.rm-mb-notice-action {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    transition: transform 0.1s;
}

.rm-mb-notice-action:hover {
    transform: translateY(-1px);
}

/* Botonera Táctil Superior (App Navigation Bar) */
.rm-mb-nav-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.rm-mb-nav-bar .rm-mb-nav-btn {
    flex: 1 1 130px;
    max-width: 180px;
}

.rm-mb-nav-bar--admin {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.rm-mb-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 8px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rm-mb-nav-btn:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}

.rm-mb-nav-btn.is-active {
    background: var(--rm-color-primary, #0a4275) !important;
    border-color: var(--rm-color-primary, #0a4275) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(10, 66, 117, 0.25);
    transform: translateY(-1px);
}

.rm-mb-nav-btn.is-active .rm-mb-nav-icon {
    transform: scale(1.08);
    transition: transform 0.2s;
}

.rm-mb-nav-btn.is-active .rm-mb-nav-label {
    color: #ffffff !important;
    font-weight: 800;
}

.rm-mb-nav-icon {
    font-size: 22px;
    line-height: 1;
}

.rm-mb-nav-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   FIXED BOTTOM TAB BAR (NATIVE APP FOOTER MENU ON MOBILE < 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Padding inferior al contenedor para que el footer fijo nunca tape contenido */
    .rm-mb-wrapper,
    .rm-mb-portal {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 10px)) !important;
    }

    .rm-mb-nav-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 8px)) 4px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        align-items: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }

    .rm-mb-nav-bar::-webkit-scrollbar {
        display: none !important;
    }

    .rm-mb-nav-bar--admin {
        justify-content: center !important;
    }

    .rm-mb-nav-btn {
        flex: 1 1 0 !important;
        min-width: 48px !important;
        max-width: 76px !important;
        min-height: 48px !important;
        padding: 3px 2px !important;
        border: none !important;
        background: transparent !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        transform: none !important;
        gap: 2px !important;
    }

    .rm-mb-nav-btn:hover {
        transform: none !important;
        background: rgba(2, 132, 199, 0.05) !important;
    }

    .rm-mb-nav-btn .rm-mb-nav-icon {
        font-size: 19px !important;
        line-height: 1 !important;
    }

    .rm-mb-nav-btn .rm-mb-nav-label {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    .rm-mb-nav-btn.is-active {
        background: #e0f2fe !important;
        border: none !important;
    }

    .rm-mb-nav-btn.is-active .rm-mb-nav-label {
        color: #0a4275 !important;
        font-weight: 800 !important;
    }

    .rm-mb-nav-btn.is-active .rm-mb-nav-icon {
        transform: scale(1.15) !important;
    }

    .rm-mb-nav-btn.is-active .rm-mb-nav-label {
        color: var(--rm-color-primary, #0a4275) !important;
        font-weight: 800 !important;
    }
}

/* Fila de Nombre con Prefijo (Tratamiento Dr./Dra.) */
.rm-mb-badge-name-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rm-mb-field-prefix {
    width: 140px;
    flex-shrink: 0;
}

.rm-mb-field-name {
    flex: 1;
    min-width: 0;
}

.rm-mb-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rm-mb-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rm-mb-dark);
    background-color: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.rm-mb-select:focus {
    border-color: var(--rm-mb-primary);
}

@media (max-width: 420px) {
    .rm-mb-badge-name-row {
        flex-direction: column;
        gap: 0;
    }
    .rm-mb-field-prefix {
        width: 100%;
        margin-bottom: 12px;
    }
}

/* Inactive section panels are hidden strictly to eliminate vertical scroll blowout */
.rm-mb-section {
    display: none !important;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    padding: 24px 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

/* On mobile, dissolve the card-in-a-card nesting: sections are clean views */
@media (max-width: 768px) {
    .rm-mb-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 14px !important;
    }
}

/* Active section panel receives display: block and smooth entrance animation */
.rm-mb-section.view-active {
    display: block !important;
    animation: rmFadeIn 0.25s ease-out;
}

@keyframes rmFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rm-mb-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.rm-mb-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--rm-mb-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.rm-mb-section-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--rm-mb-dark);
}

.rm-mb-section-desc {
    font-size: 14px;
    color: var(--rm-mb-slate);
    margin: 0;
}

/* ==========================================================================
   PREVISUALIZACIÓN DEL GAFETE (BADGE)
   ========================================================================== */
.rm-mb-badge-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 820px) {
    .rm-mb-badge-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .rm-mb-badge-form-col {
        order: 1;
        width: 100%;
    }
    .rm-mb-badge-preview-col {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }
}

.rm-mb-preview-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    text-align: center;
}

/* ==========================================================================
   DISEÑO EXACTO DEL GAFETE FÍSICO (MADRID ANIMAL / MOLECULAR)
   ========================================================================== */
.rm-badge-physical-card {
    background: radial-gradient(circle at 80% 20%, #e2f6fc 0%, #caeff8 45%, #bfe9f5 100%);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #b8e2ee;
    overflow: hidden;
    max-width: 250px;
    margin: 0 auto;
    position: relative;
    padding-top: 10px;
    box-sizing: border-box;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Orificio con anilla metálica superior */
.rm-badge-hole-clip {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.rm-badge-metal-ring {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2.5px solid #b91c1c;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* Fila superior con Logo y Edición */
.rm-badge-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 6px 12px;
}

.rm-badge-logo-img {
    max-height: 36px;
    max-width: 110px;
    object-fit: contain;
}

.rm-badge-edition-col {
    text-align: right;
}

.rm-badge-pill-red {
    display: inline-block;
    background: #c51d24;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.rm-badge-dates {
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    color: #0f172a;
    margin-top: 2px;
}

/* Bloque Lema y Modalidad */
.rm-badge-slogan-block {
    padding: 0 12px 6px 12px;
}

.rm-badge-pill-lime {
    display: inline-block;
    background: #84cc16;
    color: #0f172a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.rm-badge-blue-quote {
    background: #0d3b66;
    color: #ffffff;
    font-size: 10px;
    font-style: italic;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1.3;
    margin-bottom: 3px;
    box-shadow: 0 2px 4px rgba(13, 59, 102, 0.2);
}

.rm-badge-venue-tag {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #1e293b;
    text-transform: uppercase;
}

/* Tarjeta Blanca Central con el Nombre del Asistente */
.rm-badge-nameplate-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 10px;
    margin: 6px 12px 10px 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.9);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rm-badge-attendee-name {
    font-size: 17px;
    font-weight: 800;
    color: #0b4f8a;
    line-height: 1.25;
    word-break: break-word;
}

.rm-badge-attendee-inst {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 3px;
}

/* Franja Inferior con la Categoría */
.rm-badge-category-banner {
    padding: 10px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rm-badge-role-title {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.rm-mb-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.rm-mb-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #064e3b;
}

.rm-mb-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.rm-mb-hint {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* ==========================================================================
   PASE QR Y ACCIONES (VIP DIGITAL PASS - AMM 2026)
   ========================================================================== */
.rm-digital-pass-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.rm-digital-pass-card {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 24px;
    padding: 26px 24px 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Cabecera del Pase */
.rm-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rm-pass-brand {
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
}

.rm-pass-logo-img {
    height: 38px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.rm-pass-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.rm-pass-edition-pill {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: #ff7a3d;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 122, 61, 0.25);
}

.rm-pass-role-pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Título del Congreso */
.rm-pass-event-info {
    text-align: center;
    margin-bottom: 18px;
}

.rm-pass-event-sup {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.rm-pass-event-title {
    font-size: 21px !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px;
    margin: 0 !important;
    color: #0b1e36 !important;
    line-height: 1.25 !important;
}

.rm-pass-event-slogan {
    font-size: 13.5px;
    font-style: italic;
    color: #0d9488;
    margin-top: 4px;
    font-weight: 700;
}

/* Perforación de Boleto con Muescas */
.rm-pass-perforation {
    position: relative;
    margin: 18px -24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rm-pass-notch {
    width: 18px;
    height: 32px;
    background: #f8fafc;
}

.rm-pass-notch-left {
    border-radius: 0 16px 16px 0;
    border: 1px solid #cbd5e1;
    border-left: none;
}

.rm-pass-notch-right {
    border-radius: 16px 0 0 16px;
    border: 1px solid #cbd5e1;
    border-right: none;
}

.rm-pass-dashed-line {
    flex-grow: 1;
    height: 0;
    border-top: 2px dashed #cbd5e1;
    margin: 0 8px;
}

/* Datos del Asistente */
.rm-pass-attendee-block {
    text-align: center;
    margin-bottom: 18px;
}

.rm-pass-field-label {
    font-size: 9.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.rm-pass-attendee-name {
    font-size: 23px;
    font-weight: 900;
    color: #0b1e36;
    line-height: 1.25;
    text-shadow: none;
}

.rm-pass-attendee-inst {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

/* Núcleo QR — Cupón Blanco Boarding Pass (Máximo Contraste Óptico para Lectores Láser/CMOS) */
.rm-pass-qr-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    padding: 16px 14px 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin: 0 auto 20px;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.rm-pass-qr-frame {
    position: relative;
    background: #ffffff;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rm-pass-qr-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rm-pass-qr-frame:active {
    transform: scale(0.98);
}

.rm-pass-qr-img {
    width: 230px;
    height: 230px;
    display: block;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin: 0 auto;
}

.rm-pass-qr-hint {
    margin-top: 10px;
    font-size: 11px;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 600;
}

.rm-pass-qr-hint:hover {
    background: #f1f5f9;
    color: #0b1e36;
}

.rm-pass-qr-hint:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal de Alta Visibilidad para Escáneres de Recepción */
.rm-qr-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rm-qr-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: #ffffff;
}

.rm-qr-zoom-card {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 24px;
    padding: 28px 24px 22px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
    animation: rmZoomPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rmZoomPop {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.rm-qr-zoom-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.rm-qr-zoom-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rm-qr-zoom-badge {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.rm-qr-zoom-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.25;
}

.rm-qr-zoom-inst {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 16px;
}

.rm-qr-zoom-frame {
    background: #ffffff;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    margin: 0 auto 14px;
    display: inline-block;
}

.rm-qr-zoom-img {
    width: 250px;
    height: 250px;
    display: block;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    margin: 0 auto;
}

.rm-qr-zoom-code {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}

.rm-qr-zoom-tip {
    font-size: 11px;
    color: #047857;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

.rm-qr-zoom-btn-close {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #0a4275;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.rm-qr-zoom-btn-close:hover {
    background: #08335c;
}

.rm-pass-code-tag {
    margin-top: 10px;
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    padding: 5px 16px;
    border-radius: 8px;
    letter-spacing: 1.5px;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

.rm-pass-code-label {
    color: #64748b;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 700;
}

.rm-pass-status-pill {
    margin-top: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
}

.rm-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Pie Logístico */
.rm-pass-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 12px;
}

.rm-pass-footer-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rm-pass-footer-item strong {
    display: block;
    color: #0b1e36;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
}

.rm-pass-footer-item small {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.2;
}

.rm-pass-foot-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.rm-pass-security-bar {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

/* Botones de Acción */
.rm-mb-qr-hint {
    margin: 16px 0 12px;
    font-size: 13px;
    color: #475569;
    text-align: center;
    line-height: 1.4;
}

.rm-mb-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rm-mb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rm-mb-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.rm-mb-btn-wallet {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.rm-mb-btn-wallet:hover {
    background: #18181b !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

.rm-mb-btn-wallet .rm-btn-icon {
    font-size: 20px;
    line-height: 1;
    margin-right: 2px;
}

.rm-mb-btn-google-wallet {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.rm-mb-btn-google-wallet:hover {
    background: #18181b !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

.rm-mb-btn-google-wallet .rm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 4px;
}

.rm-mb-btn-save-phone {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: 1px solid #38bdf8;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.rm-mb-btn-save-phone:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
}

.rm-mb-btn-wa {
    background: #25d366;
    color: #ffffff !important;
    border-color: #25d366;
}

.rm-mb-btn-wa:hover {
    background: #1ebc57;
}

@media (max-width: 480px) {
    .rm-digital-pass-card {
        padding: 20px 16px 16px;
        border-radius: 16px;
    }

    .rm-pass-perforation {
        margin: 14px -16px 18px;
    }

    .rm-pass-event-title {
        font-size: 17px !important;
    }

    .rm-pass-attendee-name {
        font-size: 19px;
    }

    .rm-pass-qr-img {
        width: 220px;
        height: 220px;
    }

    .rm-pass-footer {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ==========================================================================
   DESCARGAS Y CERTIFICACIONES OFICIALES (MOBILE FIRST + BALANCED 2x2 DESKTOP)
   ========================================================================== */
.rm-mb-docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .rm-mb-docs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.rm-mb-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 768px) {
    .rm-mb-doc-card {
        padding: 22px 20px;
    }
}

.rm-mb-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.rm-mb-doc-card.is-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.rm-mb-doc-card.is-locked:hover {
    transform: none;
    box-shadow: none;
}

/* Mitad Superior: Header + Descripción */
.rm-doc-card-top {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.rm-doc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.rm-doc-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.rm-doc-icon--reg {
    background: #eef2ff;
    border: 1px solid #e0e7ff;
}

.rm-doc-icon--letter {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
}

.rm-doc-icon--cert {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.rm-mb-doc-card.is-locked .rm-doc-icon--cert {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.rm-doc-icon--prog {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.rm-doc-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rm-doc-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    line-height: 1.3;
}

.rm-doc-pill--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.rm-doc-pill--info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.rm-doc-pill--gold {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.rm-doc-pill--warning {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rm-doc-pill--neutral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.rm-doc-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.rm-doc-card-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.48;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Mitad Inferior: Quota + Botón Primario + Compartir */
.rm-doc-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.rm-doc-quota-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11.5px;
    color: #475569;
    min-height: 30px;
    box-sizing: border-box;
}

.rm-doc-quota-strip strong {
    color: #0f172a;
}

.rm-doc-quota-strip.is-limit {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.rm-doc-quota-strip.is-limit strong {
    color: #b91c1c;
}

.rm-doc-quota-strip.is-warning {
    background: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
}

/* Botón de Acción Primaria */
.rm-mb-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
    cursor: pointer;
    line-height: 1.3;
}

.rm-doc-btn-primary {
    background: #0f172a;
    color: #ffffff !important;
    border: 1px solid #0f172a;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.rm-doc-btn-primary:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.rm-doc-btn-cert {
    background: #047857;
    color: #ffffff !important;
    border: 1px solid #047857;
    box-shadow: 0 2px 4px rgba(4, 120, 87, 0.12);
}

.rm-doc-btn-cert:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.rm-doc-btn-locked {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px dashed #cbd5e1;
}

.rm-doc-btn-locked:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a !important;
}

.rm-doc-btn-disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Fila de Compartición Secundaria (WhatsApp & Correo) */
.rm-doc-share-row {
    display: flex;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    align-items: center;
}

.rm-btn-share {
    flex: 1;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.rm-btn-share--wa {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.rm-btn-share--wa:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    transform: translateY(-1px);
}

.rm-btn-share--mail {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.rm-btn-share--mail:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
    transform: translateY(-1px);
}

.rm-btn-share.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.rm-doc-locked-hint {
    font-size: 11.5px;
    color: #94a3b8;
    font-style: italic;
    width: 100%;
    text-align: center;
    line-height: 36px;
}

/* ==========================================================================
   PORTAL SPONSOR Y TABLAS
   ========================================================================== */
.rm-mb-quota-badge {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.rm-mb-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}

.rm-mb-table th {
    background: #f8fafc;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--rm-mb-border);
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rm-mb-table td {
    padding: 12px;
    border-bottom: 1px solid var(--rm-mb-border);
}

.rm-mb-btn-remove {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.rm-mb-btn-remove:hover {
    background: #fecaca;
    color: #b91c1c;
}

.rm-mb-add-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px;
}

.rm-mb-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rm-mb-inline-fields .rm-mb-input {
    flex: 1 1 180px;
}

.rm-mb-inline-fields .rm-mb-btn {
    width: auto;
}

/* ==========================================================================
   WEB SCANNER RECEPCIÓN
   ========================================================================== */
.rm-scanner-app {
    max-width: 600px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

.rm-scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.rm-scanner-input {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #0a4275;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.rm-scanner-btn {
    width: 100%;
    padding: 14px;
    background: #0a4275;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.rm-scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.rm-scanner-result-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: rmPop 0.25s ease-out;
}

@keyframes rmPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.rm-scanner-icon {
    font-size: 64px;
    margin-bottom: 14px;
}

.rm-scanner-title {
    font-size: 24px;
    margin: 0 0 16px 0;
}

.rm-scanner-details {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #334155;
}

.rm-scanner-btn-close {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Cámara Web Scanner */
.rm-scanner-camera-container {
    margin: 16px 0;
    text-align: center;
}

.rm-scanner-btn-camera {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #f1f5f9;
    color: #0a4275;
    font-weight: 700;
    font-size: 15px;
    border: 2px dashed #0a4275;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-scanner-btn-camera:hover {
    background: #e2e8f0;
    border-color: #0d5ea8;
}

.rm-scanner-btn-camera.is-active {
    background: #fee2e2;
    color: #b91c1c;
    border: 2px solid #ef4444;
}

#rm-scanner-reader {
    width: 100%;
    max-width: 480px;
    margin: 16px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 2px solid #0a4275;
    background: #000000;
}

#rm-scanner-reader video {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    object-fit: cover;
}

/* =========================================================================
   PWA & WEBAUTHN / BIOMETRICS STYLES
   ========================================================================= */
.rm-mb-biometric-login {
    width: 100%;
    margin-bottom: 20px;
}

.rm-mb-btn-biometric {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
}

.rm-mb-btn-biometric:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.rm-mb-biometric-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 10px;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-mb-biometric-divider::before,
.rm-mb-biometric-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.rm-mb-biometric-divider span {
    padding: 0 12px;
}

/* Quick Strip in Portal */
.rm-mb-quick-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.rm-mb-quick-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.rm-mb-quick-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.rm-mb-quick-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.rm-mb-quick-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f0f9ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-mb-quick-bio .rm-mb-quick-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.rm-mb-quick-pwa .rm-mb-quick-icon {
    background: #f8fafc;
    color: #0f172a;
}

.rm-mb-quick-text {
    flex: 1;
    min-width: 0;
}

.rm-mb-quick-text strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

.rm-mb-quick-text p {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
    line-height: 1.4;
    word-break: normal;
}

.rm-mb-quick-action {
    width: 100%;
    margin-top: 2px;
}

.rm-mb-btn-bio-activate {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 16px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.rm-mb-btn-bio-activate:hover {
    background: #0369a1;
}

.rm-mb-btn-pwa-install {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 16px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.rm-mb-btn-pwa-install:hover {
    background: #1e293b;
}

.rm-mb-btn-subtle {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 9px 14px;
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rm-mb-btn-subtle:hover {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* ==========================================================================
   TIRA DE PATROCINADORES OFICIALES (SPONSORS STRIP)
   ========================================================================== */
.rm-mb-sponsors-strip {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed #cbd5e1;
    text-align: center;
}

.rm-mb-sponsors-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 14px;
}

.rm-mb-sponsors-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.rm-mb-sponsor-logo-item {
    max-height: 38px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(85%) opacity(0.8);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.rm-mb-sponsor-logo-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-2px);
}

.rm-mb-sponsor-text-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.rm-mb-sponsor-text-badge:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   PLANO INTERACTIVO DE STANDS Y SALONES (RAFAELHOTELES ATOCHA)
   ========================================================================== */
.rm-floorplan-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rm-floorplan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.rm-floorplan-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.rm-floorplan-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.rm-floorplan-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.rm-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.rm-dot-your {
    background: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.3);
}

.rm-dot-occupied {
    background: #059669;
}

.rm-dot-free {
    background: #94a3b8;
}

.rm-floorplan-viewport {
    position: relative;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    width: 100%;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    min-height: 280px;
}

.rm-floorplan-canvas {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    user-select: none;
    transform-origin: center center;
    cursor: grab;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.rm-floorplan-canvas.is-dragging {
    cursor: grabbing !important;
    transition: none !important;
}

.rm-floorplan-base-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    pointer-events: none;
}

/* Puntos de Stands Interactivos */
.rm-stand-spot {
    position: absolute;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    outline: none;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Touch Expansion >= 44x44px for WCAG 2.2 / Mobile Ergonomics */
.rm-stand-spot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
}

.rm-stand-number {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.rm-stand-spot.is-free {
    background: rgba(100, 116, 139, 0.88);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rm-stand-spot.is-occupied {
    background: rgba(5, 150, 105, 0.92);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.rm-stand-spot.is-current {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.85), 0 0 0 3px #0284c7 !important;
    z-index: 30 !important;
    font-size: 13px;
}

.rm-stand-spot:hover,
.rm-stand-spot:focus {
    transform: scale(1.15);
    z-index: 40;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Radar Wave */
.rm-stand-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 6px;
    border: 2px solid #0284c7;
    pointer-events: none;
    animation: rmRadarWave 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes rmRadarWave {
    0% { transform: scale(0.9); opacity: 1; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(2.1); opacity: 0; }
}

.rm-stand-pin {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0284c7;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* Toolbar de Controles Táctiles (Zoom & Pan) */
.rm-floorplan-controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
}

.rm-fp-ctrl-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    line-height: 1;
}

.rm-fp-ctrl-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    transform: scale(1.06);
}

.rm-fp-ctrl-btn:active {
    transform: scale(0.94);
}

/* Clases de Acción Explícitas para Botones de Control */
.rm-fp-ctrl-btn.rm-fp-btn-zoom-in,
.rm-fp-ctrl-btn.rm-fp-btn-zoom-out,
.rm-fp-ctrl-btn.rm-fp-btn-reset,
.rm-fp-ctrl-btn.rm-fp-btn-focus-mine {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Tarjeta Flotante Instantánea (Pinned en Viewport) */
.rm-stand-floating-card {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 78px);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    z-index: 45;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.rm-stand-floating-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.rm-floating-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rm-floating-card-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    background: #0284c7;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.rm-floating-card-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rm-floating-card-close:hover {
    color: #ffffff;
}

.rm-floating-card-company {
    margin: 2px 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.rm-floating-card-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    gap: 6px;
    align-items: center;
}

.rm-float-size {
    color: #cbd5e1;
    font-weight: 500;
}

/* Barra de Detalle Inferior del Stand (Desktop) */
.rm-floorplan-info-bar {
    margin-top: 14px;
}

.rm-stand-detail-card {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.rm-stand-detail-mine {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.rm-stand-badge-mine {
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.rm-stand-detail-mine strong {
    display: block;
    color: #0c4a6e;
    font-size: 14px;
}

.rm-stand-detail-hint {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.rm-stand-hint-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   FICHA LOGÍSTICA, CRONOGRAMA & ENVÍOS (MILESTONE 4)
   ========================================================================== */
.rm-logistics-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.rm-timeline-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm-timeline-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rm-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a4275 0%, #0284c7 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.rm-step-content {
    flex: 1;
    min-width: 0;
}

/* Encabezado interno con título y badge de estado */
.rm-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

/* Badge de Estado Píldora */
.rm-step-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
    line-height: 1.2;
    white-space: nowrap;
}

/* 1. ESTADO COMPLETADO (.is-done) */
.rm-timeline-step.is-done {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08);
}

.rm-timeline-step.is-done:hover {
    border-color: #4ade80;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.14);
}

.rm-timeline-step.is-done .rm-step-number {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

.rm-timeline-step.is-done .rm-step-time {
    color: #059669;
    font-weight: 700;
}

.rm-step-status-badge--done {
    background: #dcfce7;
    color: #064e3b; /* WCAG AAA >8.44:1 */
    border: 1px solid #bbf7d0;
}

/* 2. ESTADO EN CURSO / ACTIVO (.is-active) */
.rm-timeline-step.is-active {
    background: #f0f9ff;
    border: 2px solid #0284c7;
    box-shadow: 0 0 0 1px #0284c7, 0 4px 14px rgba(2, 132, 199, 0.18);
    position: relative;
}

.rm-timeline-step.is-active:hover {
    box-shadow: 0 0 0 1px #0284c7, 0 6px 18px rgba(2, 132, 199, 0.25);
}

.rm-timeline-step.is-active .rm-step-number {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
    animation: rmStepPulse 2.2s infinite ease-in-out;
}

.rm-timeline-step.is-active .rm-step-title {
    color: #0c4a6e;
    font-weight: 800;
}

.rm-timeline-step.is-active .rm-step-time {
    color: #0284c7;
    font-weight: 700;
}

.rm-step-status-badge--active {
    background: #e0f2fe;
    color: #075985; /* WCAG AAA 7.12:1 */
    border: 1px solid #bae6fd;
    animation: rmActiveBadgePulse 2s infinite alternate;
}

/* 3. ESTADO PENDIENTE / PRÓXIMO (.is-pending) */
.rm-timeline-step.is-pending {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    opacity: 0.88;
}

.rm-timeline-step.is-pending:hover {
    opacity: 1;
    border-color: #94a3b8;
    background: #ffffff;
}

.rm-timeline-step.is-pending .rm-step-number {
    background: #94a3b8;
    color: #ffffff;
    box-shadow: none;
}

.rm-timeline-step.is-pending .rm-step-title {
    color: #475569;
}

.rm-timeline-step.is-pending .rm-step-time {
    color: #64748b;
}

.rm-step-status-badge--pending {
    background: #f1f5f9;
    color: #475569; /* WCAG AAA 7.21:1 */
    border: 1px solid #e2e8f0;
}

/* Micro-animaciones para el paso activo */
@keyframes rmStepPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(2, 132, 199, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    }
}

@keyframes rmActiveBadgePulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.03);
    }
}

.rm-step-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.rm-step-time {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    margin-bottom: 4px;
}

.rm-step-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
}

.rm-logistics-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.rm-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-spec-icon {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px;
}

.rm-spec-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.rm-spec-val {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
}

.rm-spec-detail {
    font-size: 11px;
    line-height: 1.35;
    color: #64748b;
}

.rm-logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    margin-top: 16px;
}

.rm-logistics-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rm-logistics-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.rm-logistics-body {
    flex: 1;
    min-width: 0;
}

.rm-logistics-body h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.rm-logistics-lead {
    font-size: 13px;
    color: #475569;
    margin: 0 0 8px 0;
}

.rm-shipping-box {
    background: #0f172a;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #1e293b;
}

.rm-shipping-box pre {
    color: #38bdf8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.rm-copy-btn {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0284c7;
    color: #ffffff;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
}

.rm-copy-btn:hover {
    background: #0369a1;
}

.rm-copy-btn.is-copied {
    background: #059669 !important;
    color: #ffffff !important;
}

.rm-logistics-note {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.rm-logistics-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.rm-contact-row {
    font-size: 13px;
    color: #334155;
}

.rm-contact-row strong {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.rm-contact-row a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

.rm-contact-row a:hover {
    text-decoration: underline;
}

.rm-download-hint {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: block;
}

/* Floating PWA Banner */
.rm-pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: rmSlideUp 0.3s ease-out;
}

@keyframes rmSlideUp {
    from { transform: translate(-50%, 40px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.rm-pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rm-pwa-banner-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.rm-pwa-banner-text strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.rm-pwa-banner-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}

.rm-pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rm-pwa-install-btn {
    padding: 8px 14px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.rm-pwa-install-btn:hover {
    background: #0369a1;
}

.rm-pwa-dismiss-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.rm-pwa-dismiss-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   PERSONA SWITCHER (BARRA FLOTANTE DE PRUEBAS)
   ========================================================================== */
.rm-persona-switcher {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    left: 0;
    right: 0;
    z-index: 9998;
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 2px solid #334155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    box-sizing: border-box;
    transition: top 0.2s ease, max-height 0.2s ease;
}

/* Compensate dynamically when WordPress admin bar is present */
.admin-bar .rm-persona-switcher {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .rm-persona-switcher {
        top: var(--wp-admin--admin-bar--height, 46px);
    }
}

.rm-persona-switcher.is-impersonating {
    background: #831843;
    border-bottom: 2px solid #f43f5e;
}

.rm-switcher-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

.rm-switcher-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    min-width: 0;
}

.rm-switcher-pill {
    background: #3b82f6;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rm-persona-switcher.is-impersonating .rm-switcher-pill {
    background: #f43f5e;
}

.rm-switcher-current-label {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rm-switcher-current-label strong,
.rm-switcher-user-name {
    color: #ffffff;
}

.rm-switcher-role-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 6px;
    color: #f8fafc;
    white-space: nowrap;
}

.rm-switcher-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.rm-switcher-select {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    max-width: 340px;
    min-height: var(--rm-touch-target-min, 44px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-switcher-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.rm-switcher-select option {
    background: #ffffff;
    color: #0f172a;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
}

.rm-switcher-select optgroup {
    background: #f1f5f9;
    color: #0284c7;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 8px;
}

.rm-switcher-restore-btn {
    background: #ffffff;
    color: #831843;
    border: none;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-height: var(--rm-touch-target-min, 44px);
    height: var(--rm-touch-target-min, 44px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-sizing: border-box;
}

.rm-switcher-restore-btn:hover {
    background: #ffe4e6;
    transform: translateY(-1px);
}

.rm-switcher-restore-mobile-text {
    display: none;
}

/* ==========================================================================
   MOBILE PERSONA SWITCHER ERGONOMICS (< 768px)
   ========================================================================== */
@media screen and (max-width: 767.98px) {
    .rm-persona-switcher {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        overflow: hidden !important;
        padding: 0 8px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .rm-switcher-inner {
        height: 48px !important;
        max-height: 48px !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .rm-switcher-info {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .rm-switcher-pill-text,
    .rm-switcher-view-text,
    .rm-switcher-user-name,
    .rm-switcher-role-tag {
        display: none !important;
    }

    .rm-switcher-pill {
        padding: 0 4px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .rm-switcher-controls {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .rm-switcher-select {
        font-size: 15px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        line-height: 38px !important;
        padding: 0 8px !important;
        width: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        background-color: #ffffff !important;
        color: #0f172a !important;
    }

    .rm-switcher-select option {
        font-size: 14px;
    }

    .rm-switcher-restore-btn {
        flex: 0 0 auto !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        line-height: 38px !important;
        padding: 0 10px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    .rm-switcher-restore-text {
        display: none !important;
    }

    .rm-switcher-restore-mobile-text {
        display: inline-block !important;
    }
}

/* ==========================================================================
   ADMIN DASHBOARD (ORGANIZADOR GENERAL)
   ========================================================================== */
.rm-admin-dashboard-wrap {
    padding: 10px 0;
}

.rm-admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.rm-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.rm-metric-icon {
    font-size: 28px;
    line-height: 1;
}

.rm-metric-data {
    display: flex;
    flex-direction: column;
}

.rm-metric-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.rm-metric-lbl {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.rm-admin-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.rm-table-responsive {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.rm-mb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    empty-cells: show;
}

.rm-mb-table th {
    background: #f1f5f9;
    padding: 14px 16px;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
    vertical-align: middle;
    line-height: 1.3;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rm-mb-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.rm-mb-table tr:hover td {
    background: #f8fafc;
}

.rm-receipt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.rm-receipt-link:hover {
    background: #bae6fd;
}

.rm-admin-expense-status-select {
    min-height: 44px;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

/* ==========================================================================
   AGENDA DE PONENCIAS (DOCENTES)
   ========================================================================== */
.rm-lectures-module {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rm-lectures-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.rm-lecture-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rm-lecture-card:last-child {
    margin-bottom: 0;
}

.rm-lecture-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.rm-lecture-pill {
    background: #ede9fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
}

.rm-lecture-time {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-lecture-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 14px 0;
}

.rm-lecture-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

.rm-lec-meta-row strong {
    color: #1e293b;
}

.rm-lecture-av-notice {
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.rm-av-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* ==========================================================================
   RENDICIÓN DE GASTOS Y VIÁTICOS (DOCENTES)
   ========================================================================== */
/* ==========================================================================
   MÓDULO DE RENDICIÓN DE GASTOS Y VIÁTICOS (PROFESORES / DOCENTES)
   ========================================================================== */
.rm-expense-module {
    padding: 4px 0;
}

/* Selector de Modo: Segmented Control Moderno */
.rm-exp-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rm-exp-mode-hint {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.rm-exp-segmented {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
}

.rm-exp-seg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.rm-exp-seg-btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.rm-exp-seg-icon {
    font-size: 14px;
    line-height: 1;
}

/* Fila de Monto y Moneda */
.rm-exp-amount-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.rm-exp-col-curr {
    width: 105px;
    flex-shrink: 0;
}

.rm-exp-col-amt {
    flex: 1;
    min-width: 0;
}

.rm-exp-col-half {
    flex: 1;
    min-width: 0;
}

.rm-exp-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.rm-exp-select,
.rm-exp-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rm-exp-input:focus,
.rm-exp-select:focus,
.rm-exp-textarea:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.rm-exp-input-amt {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.rm-exp-field {
    margin-bottom: 12px;
}

/* Cards de Subida de Archivos */
.rm-exp-card-upload {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.rm-exp-card-upload:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.rm-exp-card-receipts {
    border-left: 3px solid #0284c7;
}

.rm-exp-card-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.rm-exp-card-upload-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.rm-exp-card-icon {
    font-size: 16px;
    line-height: 1;
}

.rm-exp-badge-rec {
    font-size: 10.5px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 9999px;
}

.rm-exp-badge-req {
    font-size: 10.5px;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 9999px;
}

.rm-exp-card-help {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.rm-exp-file-input-wrap {
    position: relative;
}

.rm-exp-file-input {
    display: block;
    width: 100%;
    font-size: 13px;
    color: #475569;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.rm-exp-file-input:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.rm-bank-manual-details {
    margin-top: 10px;
}

.rm-bank-manual-toggle {
    font-size: 12px;
    color: #0284c7;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    user-select: none;
}

.rm-bank-manual-content {
    margin-top: 8px;
}

.rm-exp-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12.5px;
    box-sizing: border-box;
    resize: vertical;
}

.rm-exp-pro-banner {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #1e40af;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm-exp-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    box-sizing: border-box;
}

.rm-exp-submit-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

.rm-exp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rm-exp-submit-icon {
    font-size: 16px;
    line-height: 1;
}

.rm-exp-history-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rm-exp-history-icon {
    font-size: 16px;
}

.rm-exp-history-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.rm-exp-history-empty {
    color: #64748b;
    font-size: 12.5px;
    margin: 0;
    background: #ffffff;
    border: 1px dashed #e2e8f0;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: center;
}

.rm-exp-cert-link {
    font-size: 11.5px;
    color: #0284c7;
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 640px) {
    .rm-exp-mode-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .rm-exp-segmented {
        width: 100%;
        display: flex;
    }
    .rm-exp-seg-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }
    .rm-exp-amount-row {
        gap: 8px;
    }
    .rm-exp-col-curr {
        width: 90px;
    }
    .rm-exp-card-upload {
        padding: 11px 12px;
        margin-bottom: 11px;
    }
    .rm-exp-submit-btn {
        padding: 12px 20px;
        min-height: 48px;
        font-size: 14px;
        box-sizing: border-box;
    }
}

/* Fallback legacy support for older classes */
.rm-expense-mode-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rm-mode-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.rm-mode-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rm-mode-btn {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.rm-mode-btn.is-active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.rm-expense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.rm-form-instruction {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #166534;
}

.rm-instruction-pro {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.rm-pro-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 20px 0 10px 0;
}

.rm-pro-hint {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.rm-daily-table-wrap {
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 16px;
}

.rm-daily-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.rm-daily-table th {
    background: #f1f5f9;
    padding: 10px 12px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #cbd5e1;
}

.rm-daily-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.rm-table-in {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.rm-pro-total-bar {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.rm-pro-total-bar strong {
    font-size: 20px;
    color: #38bdf8;
}

.rm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.status-pending {
    background: var(--rm-color-amber-bg, #fef3c7);
    color: var(--rm-color-amber-text, #78350f);
    border: 1px solid #fde68a;
}

.status-approved {
    background: var(--rm-color-blue-bg, #e0f2fe);
    color: var(--rm-color-blue-text, #0369a1);
    border: 1px solid #bae6fd;
}

.status-paid {
    background: var(--rm-color-emerald-bg, #dcfce7);
    color: var(--rm-color-emerald-text, #064e3b);
    border: 1px solid #86efac;
}

.status-rejected {
    background: var(--rm-color-red-bg, #fee2e2);
    color: var(--rm-color-red-text, #7f1d1d);
    border: 1px solid #fecaca;
}

.rm-exp-mode-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.rm-expense-history-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
}

.rm-expense-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rm-expense-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rm-exp-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-exp-id {
    font-family: monospace;
    font-weight: 800;
    color: #64748b;
    font-size: 12px;
}

.rm-exp-amount {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.rm-exp-mode {
    font-size: 12px;
    color: #64748b;
}

.rm-exp-item-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rm-exp-date {
    font-size: 12px;
    color: #94a3b8;
}

/* ==========================================================================
   MILESTONE 3: CARDIFIED MOBILE LISTS, DESKTOP EXPANDED TABLES & TOUCH ERGONOMICS (R2)
   ========================================================================== */

/* Base Card Components & Utility Classes */
.rm-card-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.rm-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.rm-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    display: block;
}

.rm-card-subtitle {
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
    max-width: 100%;
    display: block;
}

.rm-card-subinfo {
    font-size: 12px;
    color: #0284c7;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.rm-col-numeric {
    text-align: right;
}

.rm-col-status {
    text-align: center;
}

.rm-col-text {
    text-align: left;
}

.rm-col-amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rm-table-wrap {
    max-height: 600px;
    overflow-y: auto;
}

.rm-table-empty-row {
    text-align: center;
}

.rm-empty-state-cell {
    text-align: center;
    padding: 32px 16px !important;
    color: #64748b;
    font-size: 14px;
}

.rm-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.rm-card-actions button + button {
    margin-left: 8px;
}

/* ==========================================================================
   MOBILE VIEWPORT (< 768px): SINGLE-DOM CARDIFICATION & 44PX TOUCH ERGONOMICS
   ========================================================================== */
@media (max-width: 767px) {
    /* Deconstruct tabular structure to block model */
    .rm-cardified-mobile,
    .rm-cardified-mobile tbody,
    .rm-cardified-mobile tr,
    .rm-cardified-mobile td {
        display: block;
    }

    /* Ocultar encabezados tabulares en móvil */
    .rm-cardified-mobile thead {
        display: none !important;
    }

    /* Tarjetas táctiles autónomas para cada fila */
    .rm-cardified-mobile tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(10, 66, 117, 0.05);
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-sizing: border-box;
        width: 100%;
    }

    .rm-cardified-mobile tbody tr.rm-table-empty-row {
        display: block;
        padding: 24px 16px;
        text-align: center;
    }

    /* Celdas individuales dentro de la tarjeta */
    .rm-cardified-mobile td {
        padding: 4px 0;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ocultar celdas redundantes en móvil porque ya se integran en .col-identity */
    .rm-cardified-mobile td.rm-desktop-col-email,
    .rm-cardified-mobile td.rm-desktop-col-institution {
        display: none !important;
    }

    /* Celda principal de identidad */
    .rm-cardified-mobile td.col-identity {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 10px;
        margin-bottom: 4px;
        width: 100%;
    }

    .rm-card-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #e0f2fe;
        color: #0369a1;
        font-size: 20px;
        flex-shrink: 0;
    }

    /* Etiquetas semánticas mediante data-label para filas de atributos */
    .rm-cardified-mobile td[data-label]:not(.col-identity):not(.col-action)::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        color: #64748b;
        flex-shrink: 0;
    }

    .rm-cardified-mobile td.col-badge-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .rm-cardified-mobile td.rm-col-amount {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 15px;
    }

    .rm-cardified-mobile td.rm-col-mode {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .rm-cardified-mobile td.rm-col-receipts {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Celda de acción inferior con botón de ancho 100% y min-height 44px */
    .rm-cardified-mobile td.col-action {
        margin-top: 6px;
        border-top: 1px dashed #e2e8f0;
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .rm-cardified-mobile td.col-action::before {
        display: none;
    }

    .rm-cardified-mobile .col-action .rm-mb-btn-remove {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rm-mb-btn-remove,
    .rm-sponsor-remove-btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
    }

    .rm-admin-expense-status-select {
        min-height: 44px;
        line-height: 44px;
        font-size: 16px;
        width: 100%;
        padding: 0 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #ffffff;
        box-sizing: border-box;
        font-weight: 600;
    }

    /* Anti-zoom iOS Safari: Inputs interactivos con font-size 16px obligatorio */
    .pro-calc-input,
    .rm-table-in,
    .rm-mb-input {
        font-size: 16px !important;
    }

    /* Cardificación de la Planilla Diaria Docente (.rm-daily-table) */
    .rm-daily-table,
    .rm-daily-table tbody,
    .rm-daily-table tr,
    .rm-daily-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .rm-daily-table thead {
        display: none !important;
    }

    .rm-daily-table tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 2px 6px rgba(10, 66, 117, 0.04);
    }

    .rm-daily-header-cell {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 800;
        color: #0a4275;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .rm-daily-table td:not(.rm-daily-header-cell) {
        border: none;
        padding: 6px 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .rm-daily-mobile-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #475569;
    }

    .rm-daily-table .rm-table-in,
    .rm-daily-table .pro-calc-input {
        min-height: 44px !important;
        height: 44px;
        font-size: 16px !important;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    /* M4: VIP Credential Card & Logistics mobile ergonomics */
    .rm-vip-credential-card {
        padding: 14px !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        position: relative !important;
    }

    .rm-vip-credential-card .rm-mb-btn-logout {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
        z-index: 2 !important;
    }

    .rm-vip-card-main {
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        min-width: 100% !important;
        gap: 12px !important;
        padding-right: 68px !important;
        box-sizing: border-box !important;
    }

    .rm-vip-logo-wrap {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
        padding: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rm-vip-logo {
        max-height: 44px !important;
        max-width: 44px !important;
        object-fit: contain !important;
    }

    .rm-vip-logo-fallback .rm-vip-avatar-initials {
        font-size: 18px !important;
    }

    .rm-vip-details {
        align-items: flex-start !important;
        text-align: left !important;
        flex: 1 !important;
        min-width: 0 !important;
        gap: 4px !important;
    }

    .rm-vip-company-row {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .rm-vip-company-name {
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .rm-tier-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .rm-vip-meta-row {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 11px !important;
        flex-wrap: wrap !important;
    }

    .rm-vip-stand-highlight {
        font-size: 11px !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
    }

    .rm-vip-contact {
        display: none !important;
    }

    .rm-vip-quotas {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 10px !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .rm-quota-item {
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 8px !important;
        padding: 6px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        text-align: center !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
    }

    .rm-quota-label {
        font-size: 10px !important;
        color: #64748b !important;
    }

    .rm-quota-count {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .rm-quota-pill {
        font-size: 9px !important;
        padding: 1px 6px !important;
    }

    .rm-logistics-timeline {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rm-logistics-specs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rm-floorplan-viewport {
        min-height: 240px;
        max-height: 380px;
    }
}

/* ==========================================================================
   VIEWPORT 320PX EXTREME NARROW (PREVENT HORIZONTAL BLOWOUT)
   ========================================================================== */
@media (max-width: 320px) {
    .rm-cardified-mobile tr {
        padding: 12px 10px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   DESKTOP VIEWPORT (>= 768px): CLEAN EXPANDED TABLES & FROZEN HEADERS
   ========================================================================== */
@media (min-width: 768px) {
    .rm-cardified-mobile {
        display: table;
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .rm-cardified-mobile thead {
        display: table-header-group;
    }

    .rm-cardified-mobile tbody {
        display: table-row-group;
    }

    .rm-cardified-mobile tr {
        display: table-row;
    }

    .rm-cardified-mobile td,
    .rm-cardified-mobile th {
        display: table-cell;
    }

    /* Ocultar elementos exclusivos de tarjeta en escritorio */
    .rm-card-avatar {
        display: none !important;
    }

    .col-identity .rm-card-subtitle,
    .col-identity .rm-card-subinfo {
        display: none;
    }

    .rm-desktop-col-email,
    .rm-desktop-col-institution {
        display: table-cell;
    }

    /* Encabezados congelados (sticky headers) y espaciado generoso */
    .rm-mb-table th {
        position: sticky;
        top: 0;
        background: #f8fafc;
        z-index: 10;
        padding: 14px 16px;
        border-bottom: 2px solid #cbd5e1;
        font-weight: 700;
        color: #334155;
        vertical-align: middle;
        line-height: 1.3;
    }

    .rm-mb-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: middle;
    }

    .rm-daily-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    .rm-daily-table thead {
        display: table-header-group;
    }

    .rm-daily-table tbody {
        display: table-row-group;
    }

    .rm-daily-table tr {
        display: table-row;
    }

    .rm-daily-table td,
    .rm-daily-table th {
        display: table-cell;
    }

    .rm-daily-table th {
        position: sticky;
        top: 0;
        background: #f8fafc;
        z-index: 10;
        padding: 14px 16px;
    }

    .rm-daily-table td {
        padding: 10px 12px;
    }

    .rm-daily-mobile-label {
        display: none !important;
    }
}

/* ==========================================================================
   WEBAPP THEME HEADER SUPPRESSION (OCULTAR TÍTULO ESTÁTICO DE WORDPRESS)
   ========================================================================== */
body:has(#rm-members-app) .entry-header,
body:has(.rm-mb-wrapper) .entry-header,
.page:has(.rm-mb-wrapper) .entry-header,
.entry-content:has(.rm-mb-wrapper) .entry-header,
body.rm-webapp-active .entry-header,
.page-id-2173 .entry-header {
    display: none !important;
}

/* ==========================================================================
   STAND HEADER & CONFIRMATION PILL
   ========================================================================== */
.rm-mb-section-header--stand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.rm-mb-section-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.rm-stand-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    white-space: nowrap;
}

/* ==========================================================================
   SPONSOR PACKAGE BENEFITS CARD (TU PAQUETE DE PATROCINIO)
   ========================================================================== */
.rm-sponsor-package-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 20px;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.rm-package-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.rm-package-icon {
    font-size: 28px;
    line-height: 1;
}

.rm-package-title {
    font-size: 17px;
    font-weight: 800;
    color: #0a4275;
    margin: 0 0 2px 0;
}

.rm-package-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.rm-package-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px 20px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 480px) {
    .rm-sponsor-package-card {
        padding: 16px 12px;
    }
}

.rm-package-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.45;
}

.rm-package-check {
    color: #059669;
    font-weight: 900;
    font-size: 15px;
    flex: 0 0 auto;
    margin-top: 1px;
}

/* ==========================================================================
   SECONDARY FOOTER UTILITIES STRIP (FACE ID & PWA AL PIE)
   ========================================================================== */
.rm-mb-quick-strip--footer {
    margin-top: 36px !important;
    margin-bottom: 24px !important;
    padding-top: 24px !important;
    border-top: 1px dashed #cbd5e1 !important;
}

.rm-mb-quick-strip--footer .rm-mb-quick-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   TURNOS DE PONENCIA Y GOOGLE CALENDAR (PUNTO 2)
   ========================================================================== */
.rm-mb-btn-gcal {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.rm-mb-btn-gcal:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

/* ==========================================================================
   PONENCIAS DEL DOCENTE: TIRAS DE TURNO INTEGRADAS Y CONTENEDOR UNIFICADO
   ========================================================================== */
.rm-lecture-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rm-lecture-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #94a3b8;
}

/* Tiras Finas y Destacadas de Turnos (Docked Superior e Inferior) */
.rm-lecture-turn-strip {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    box-sizing: border-box;
}

.rm-lecture-turn-strip--prev {
    background: #f0f9ff;
    border-bottom: 1px solid #e0f2fe;
    border-left: 4px solid #0284c7;
}

.rm-lecture-turn-strip--prev .rm-turn-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-lecture-turn-strip--prev .rm-turn-text {
    color: #0369a1;
    font-weight: 600;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.rm-lecture-turn-strip--next {
    background: #fffbeb;
    border-top: 1px solid #fef3c7;
    border-left: 4px solid #d97706;
}

.rm-lecture-turn-strip--next .rm-turn-badge {
    background: #d97706;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-lecture-turn-strip--next .rm-turn-text {
    color: #92400e;
    font-weight: 600;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

/* Badge de Ponencia */
.rm-lecture-num-badge {
    background: #0A4275;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.2px;
}

.rm-lecture-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

/* Compatibilidad retroactiva */
.rm-lecture-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.rm-turn-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #475569;
    box-sizing: border-box;
}

/* Responsividad móvil */
@media (max-width: 640px) {
    .rm-lecture-turn-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 12px;
    }
    .rm-lecture-card-body {
        padding: 14px 12px;
    }
}

/* ==========================================================================
   STAFF ACTIONS, DÍAS Y WHATSAPP (PUNTO 1)
   ========================================================================== */
.rm-pill-badge--day {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

.rm-staff-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rm-mb-btn-wa {
    background: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid #1ebe5d !important;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    padding: 10px 16px;
    min-height: 44px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rm-mb-btn-wa:hover {
    background: #20ba5a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   MESA DE SOPORTE Y ATENCIÓN — CAMILA & ADMINS (PUNTO 3)
   ========================================================================== */
.rm-support-dashboard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    box-sizing: border-box;
    width: 100%;
}

.rm-support-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rm-support-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 600px;
}

.rm-support-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.rm-support-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a4275;
    margin: 0 0 4px 0;
}

.rm-support-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.rm-support-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rm-stat-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    min-width: 90px;
    display: flex;
    flex-direction: column;
}

.rm-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.rm-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.rm-stat-chip--warn {
    background: #fffbeb;
    border-color: #fde68a;
}
.rm-stat-chip--warn .rm-stat-num {
    color: #b45309;
}
.rm-stat-chip--warn .rm-stat-lbl {
    color: #92400e;
}

.rm-stat-chip--ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.rm-stat-chip--ok .rm-stat-num {
    color: #15803d;
}
.rm-stat-chip--ok .rm-stat-lbl {
    color: #166534;
}

/* Toolbar y Filtros */
.rm-support-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rm-support-search-wrap {
    position: relative;
    flex: 1 1 300px;
    min-width: 240px;
}

.rm-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.rm-support-search-field {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 36px 10px 36px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.rm-support-search-field:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.rm-support-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
}

.rm-support-clear-btn:hover {
    color: #334155;
    background: #e2e8f0;
}

.rm-support-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rm-filter-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rm-filter-btn.is-active {
    background: #0a4275;
    color: #ffffff;
    border-color: #0a4275;
}

.rm-support-loading {
    padding: 16px;
    text-align: center;
    color: #0284c7;
    font-weight: 600;
    font-size: 14px;
}

/* Tarjetas de Asistentes en Soporte */
.rm-support-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rm-support-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.rm-support-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.rm-support-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.rm-support-card-identity {
    flex: 1 1 280px;
    min-width: 0;
}

.rm-support-role-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0a4275;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.rm-support-person-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.rm-support-person-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    word-break: break-word;
}

.rm-support-person-meta code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    color: #0f172a;
}

.rm-support-person-meta strong {
    color: #0a4275;
}

.rm-support-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.rm-support-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.rm-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.rm-support-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.rm-support-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rm-support-btn--wa {
    color: #047857;
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.rm-support-btn--wa:hover {
    background: #dcfce7;
    border-color: #6ee7b7;
    color: #065f46;
}

.rm-support-btn--email {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.rm-support-btn--email:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.rm-support-btn--doc {
    color: #475569;
    border-color: #cbd5e1;
    background: #ffffff;
}

.rm-support-btn--doc:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0a4275;
}

.rm-support-btn--edit {
    color: #334155;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.rm-support-btn--edit:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.rm-support-btn--impersonate {
    color: #7c3aed;
    border-color: #ddd6fe;
    background: #f5f3ff;
}

.rm-support-btn--impersonate:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.rm-support-btn--checkin {
    color: #0f766e;
    border-color: #99f6e4;
    background: #f0fdfa;
}

.rm-support-btn--checkin:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #115e59;
}

.rm-support-btn--quiz {
    transition: all 0.2s ease;
}

.rm-support-btn--quiz-active {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
}

.rm-support-btn--quiz-active:hover {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
    color: #047857 !important;
}

.rm-support-btn--quiz-inactive {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

.rm-support-btn--quiz-inactive:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.rm-support-btn--reset-dl {
    color: #b45309;
    border-color: #fde68a;
    background: #fffbeb;
}

.rm-support-btn--reset-dl:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.rm-support-btn--del {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
    padding: 7px 10px;
}

.rm-support-btn--del:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.rm-sbtn-icon {
    font-size: 13px;
    line-height: 1;
}

/* Menú Desplegable de Documentos */
.rm-doc-resend-wrap {
    position: relative;
    display: inline-block;
}

.rm-doc-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    padding: 6px 0;
    box-sizing: border-box;
}

.rm-dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-dropdown-item:hover {
    background: #f1f5f9;
    color: #0a4275;
    font-weight: 600;
}

/* Panel Desplegable para Corregir Gafete y Datos */
.rm-support-edit-panel {
    margin-top: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
}

.rm-quick-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.rm-quick-edit-grid .rm-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-quick-edit-grid .rm-field-group--full {
    grid-column: 1 / -1;
}

.rm-quick-edit-grid label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.rm-quick-edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Support Desk */
@media (max-width: 768px) {
    .rm-support-dashboard {
        padding: 14px 12px;
    }
    .rm-support-header {
        flex-direction: column;
        align-items: stretch;
    }
    .rm-support-stats {
        justify-content: space-between;
    }
    .rm-stat-chip {
        flex: 1 1 30%;
        min-width: 0;
        padding: 8px 6px;
    }
    .rm-support-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .rm-support-filters {
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .rm-filter-btn {
        flex-shrink: 0;
    }
    .rm-support-actions-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .rm-support-actions-row .rm-support-btn,
    .rm-support-actions-row .rm-doc-resend-wrap {
        width: 100%;
        min-height: 42px;
        box-sizing: border-box;
    }
    .rm-doc-resend-wrap .rm-support-btn {
        width: 100%;
        min-height: 42px;
    }
    .rm-doc-dropdown-menu {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        width: 100%;
        min-width: 220px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
        border: 1px solid #cbd5e1;
        z-index: 60;
    }
}

/* ==========================================================================
   SELECTOR MULTI-DÍA PARA PERSONAL DE STAND (SPONSOR STAFF)
   ========================================================================== */
.rm-days-selection-wrap {
    margin-top: 12px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-days-selection-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rm-days-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-day-pill-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    transition: all 0.15s ease;
    user-select: none;
}

.rm-day-pill-check input[type="checkbox"] {
    accent-color: #0284c7;
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
}

.rm-day-pill-check:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    color: #0369a1;
}

.rm-day-pill-check:has(input[type="checkbox"]:checked) {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

.rm-form-submit-row {
    margin-top: 4px;
}

/* ==========================================================================
   LOGIN DUAL: SOLICITAR CÓDIGO VS YA TENGO MI PIN
   ========================================================================== */
.rm-mb-login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.rm-mb-login-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 4px 0;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-mb-login-or::before,
.rm-mb-login-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed #cbd5e1;
}

.rm-mb-login-or span {
    padding: 0 10px;
    font-weight: 600;
    color: #64748b;
}

.rm-mb-btn-have-pin {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rm-mb-btn-have-pin:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ==========================================================================
   SINCRONIZACIÓN DE CALENDARIO: GOOGLE Y APPLE / IPHONE
   ========================================================================== */
.rm-cal-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.rm-cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.rm-cal-btn--google {
    background: #ffffff;
    color: #1a73e8;
    border: 1px solid #d2e3fc;
}

.rm-cal-btn--google:hover {
    background: #f8fafd;
    border-color: #1a73e8;
    color: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.15);
}

.rm-cal-btn--apple {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.rm-cal-btn--apple:hover {
    background: #f8fafc;
    border-color: #0f172a;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.rm-cal-icon {
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 640px) {
    .rm-cal-buttons-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .rm-cal-btn {
        width: 100%;
        min-height: 40px;
        text-align: center;
    }
}

/* =========================================================================
   PUNTO 5: STEPPER VISUAL DE ONBOARDING (ASISTENTES)
   ========================================================================= */
.rm-mb-stepper-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 22px;
}

.rm-mb-stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.rm-mb-stepper-headline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-mb-stepper-pct-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.rm-mb-stepper-pct-badge.is-complete {
    background: #059669;
}

.rm-mb-stepper-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.rm-mb-stepper-instruction {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    width: 100%;
}

.rm-mb-stepper-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 16px;
}

.rm-mb-stepper-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.rm-mb-stepper-nodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rm-mb-stepper-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 48px;
}

.rm-mb-stepper-node:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
}

.rm-mb-stepper-node.is-completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.rm-mb-stepper-node.is-pending {
    background: #fffbeb;
    border-color: #fde68a;
}

.rm-mb-node-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.rm-mb-node-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rm-mb-node-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-mb-node-desc {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-mb-stepper-node.is-completed .rm-mb-node-desc {
    color: #15803d;
}

.rm-mb-stepper-node.is-pending .rm-mb-node-desc {
    color: #b45309;
}

@media (max-width: 640px) {
    .rm-mb-stepper-nodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .rm-mb-stepper-card {
        padding: 14px 16px;
    }
}

/* =========================================================================
   PUNTO 4: EVALUACIONES (PRE/POST-TEST Y ENCUESTA) Y CANDADO
   ========================================================================= */
.rm-mb-eval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.rm-mb-eval-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.rm-mb-eval-card--survey {
    border-color: #bae6fd;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.rm-mb-eval-card--survey.is-completed {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.rm-mb-eval-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.rm-mb-eval-badge--active {
    background: #dcfce7;
    color: #15803d;
}

.rm-mb-eval-badge--schedule {
    background: #fef3c7;
    color: #92400e;
}

.rm-mb-eval-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.rm-mb-eval-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 12px;
}

.rm-mb-eval-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    padding-right: 80px;
}

.rm-mb-eval-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.rm-mb-eval-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-mb-btn-eval {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 16px;
    background: #0a4275;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
}

.rm-mb-btn-eval:hover {
    background: #072e52;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 66, 117, 0.2);
}

.rm-mb-btn-eval-secondary {
    background: #334155;
}

.rm-mb-btn-eval-secondary:hover {
    background: #1e293b;
}

.rm-mb-btn-survey-action {
    background: #059669;
}

.rm-mb-btn-survey-action:hover {
    background: #047857;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.rm-mb-doc-btn-locked {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px dashed #cbd5e1 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.rm-mb-doc-btn-locked:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* =========================================================================
   PUNTO 7: PLANO DE STANDS PLEGABLE EN PORTAL SPONSOR
   ========================================================================= */
.rm-mb-section-header--stand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.rm-stand-toggle-action {
    margin-left: auto;
}

.rm-btn-toggle-stand-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
}

.rm-btn-toggle-stand-map:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.rm-btn-toggle-stand-map.is-collapsed {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.rm-btn-toggle-stand-map.is-collapsed:hover {
    background: #0369a1;
}

.rm-sponsor-map-collapsible {
    transition: all 0.3s ease;
}

.rm-sponsor-map-collapsible.is-collapsed {
    display: none !important;
}

/* ==========================================================================
   MÓDULO: Documentos Privados del Patrocinador (#sec-documentos)
   ========================================================================== */
.rm-sponsor-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rm-sponsor-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rm-sponsor-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.rm-sponsor-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rm-doc-type-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rm-doc-pill--pdf {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rm-doc-pill--word {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.rm-doc-pill--excel {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.rm-doc-pill--generic {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.rm-sponsor-doc-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rm-sponsor-doc-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.rm-sponsor-doc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-sponsor-doc-main-icon {
    font-size: 22px;
    line-height: 1;
}

.rm-sponsor-doc-info {
    flex-grow: 1;
    min-width: 0;
}

.rm-sponsor-doc-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.35;
    word-break: break-word;
}

.rm-sponsor-doc-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    word-break: break-all;
}

.rm-doc-filename {
    color: #475569;
    font-weight: 500;
}

.rm-doc-filesize {
    color: #94a3b8;
}

.rm-sponsor-doc-notes {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #334155;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.rm-notes-icon {
    font-size: 13px;
    line-height: 1.2;
}

.rm-notes-text {
    flex: 1;
}

.rm-sponsor-doc-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rm-btn-doc-download {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 8px;
}

.rm-doc-cloud-badge {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rm-sponsor-docs-empty {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin-top: 20px;
}

.rm-docs-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.rm-docs-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.rm-docs-empty-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 16px auto;
    line-height: 1.5;
}

.rm-docs-empty-tip {
    font-size: 13px;
    color: #475569;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 12px 18px;
    border-radius: 8px;
    display: inline-block;
    text-align: left;
    max-width: 600px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .rm-sponsor-docs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MÓDULO: Programa Académico Interactivo y Mi Agenda (#sec-programa)
   ========================================================================== */
.rm-program-wrapper {
    width: 100%;
    margin-top: 10px;
}

/* Barra de Herramientas y Filtros (Toolbar) */
.rm-prog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.rm-prog-view-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-prog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
}

.rm-prog-filter-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.rm-prog-filter-btn.is-active {
    background: #0a4275;
    color: #ffffff;
    border-color: #0a4275;
    box-shadow: 0 2px 6px rgba(10, 66, 117, 0.25);
}

.rm-prog-filter-btn.is-active#rm-prog-favs-filter-btn {
    background: #d97706;
    border-color: #b45309;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.rm-prog-pdf-dl-btn {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.rm-prog-pdf-dl-btn:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #14532d !important;
    transform: translateY(-1px);
}

.rm-prog-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 360px;
    min-width: 240px;
}

.rm-prog-search-box .rm-search-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.rm-prog-search-input {
    width: 100%;
    padding: 9px 34px 9px 42px; /* Margen generoso para evitar colisión con el icono de lupa */
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-prog-search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.rm-prog-search-clear {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

.rm-prog-search-clear:hover {
    color: #0f172a;
}

/* Cajas de Estado Vacío */
.rm-prog-empty-box {
    text-align: center;
    padding: 44px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin: 20px 0;
}

.rm-prog-empty-box .rm-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.rm-prog-empty-box .rm-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.rm-prog-empty-box .rm-empty-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 16px auto;
    line-height: 1.5;
}

/* Estilos Específicos del Programa AMM Home (Scoped) */
.rm-program-wrapper .amm-prog-home {
    --orange: #e87830;
    --orange-light: #f09050;
    --teal: #5a8f7b;
    --teal-dark: #3d6b56;
    --navy: #1a3a5c;
    --navy-light: #2a5580;
    --lime: #93b83a;
    --yellow: #e8c820;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0 30px;
    color: var(--gray-800);
}

.rm-program-wrapper .day-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    margin-bottom: 16px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.rm-program-wrapper .day-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--gray-600) !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.rm-program-wrapper .day-tab:hover {
    color: var(--navy) !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.rm-program-wrapper .day-tab.active {
    color: #ffffff !important;
    background: #0a4275 !important;
    box-shadow: 0 2px 6px rgba(10, 66, 117, 0.25) !important;
    font-weight: 800 !important;
}

.rm-program-wrapper .day-panel {
    display: none;
}

.rm-program-wrapper .day-panel.active {
    display: block;
}

.rm-program-wrapper .day-header {
    text-align: center;
    margin-bottom: 20px;
}

.rm-program-wrapper .day-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.rm-program-wrapper .day-header .day-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

/* Barra de Control de Acordeón para Bloques */
.rm-prog-accordion-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 14px 0;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.rm-prog-accordion-hint {
    font-size: 12px;
    color: #64748b;
}

.rm-prog-accordion-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-btn-acc-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #0a4275;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-btn-acc-ctrl:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

/* Acordeón de Bloques */
.rm-program-wrapper .bloque {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rm-program-wrapper .bloque.open {
    box-shadow: 0 4px 14px rgba(10, 66, 117, 0.08);
    border-color: #cbd5e1;
}

.rm-program-wrapper .bloque-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background 0.2s ease;
    min-height: 48px;
}

.rm-program-wrapper .bloque-header:hover {
    background: #f8fafc;
}

.rm-program-wrapper .bloque.open .bloque-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--gray-200);
}

.rm-program-wrapper .bloque-info {
    flex: 1;
    min-width: 0;
}

.rm-program-wrapper .bloque-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
    margin-bottom: 2px;
}

.rm-program-wrapper .bloque-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.rm-program-wrapper .bloque-moderator {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 3px;
}

.bloque-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bloque-session-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 12px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.rm-program-wrapper .bloque-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #475569;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rm-program-wrapper .bloque.open .bloque-toggle {
    background: #0a4275;
    color: #ffffff;
}

.rm-program-wrapper .bloque-body {
    display: none;
}

.rm-program-wrapper .bloque.open .bloque-body {
    display: block;
}

/* Sesiones Individuales */
.rm-program-wrapper .session {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    transition: background 0.2s ease;
    align-items: flex-start;
}

.rm-program-wrapper .session:hover {
    background: rgba(232, 120, 48, 0.03);
}

.rm-program-wrapper .session-time {
    flex-shrink: 0;
    width: 95px;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal-dark);
    padding-top: 2px;
}

.rm-program-wrapper .session-content {
    flex: 1;
    min-width: 0;
}

.rm-program-wrapper .session-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 4px;
}

.rm-program-wrapper .session-speakers {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
}

.rm-program-wrapper .session.break-session {
    background: linear-gradient(135deg, #f8f6f0, #f0eee8);
}

.rm-program-wrapper .session.break-session .session-title {
    color: #475569;
    font-weight: 600;
    font-size: 13px;
}

.rm-program-wrapper .session.qa-session .session-title {
    color: var(--orange);
    font-style: italic;
}

.rm-program-wrapper .session.special-session {
    background: linear-gradient(135deg, rgba(232, 120, 48, 0.06), rgba(232, 120, 48, 0.02));
}

.rm-program-wrapper .rm-session-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.rm-program-wrapper .rm-tag--workshop {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.rm-program-wrapper .rm-tag--quiz {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Barra de Acciones de la Sesión (Favorito, Notas, Calendario) */
.rm-session-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.rm-session-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
    text-decoration: none;
}

.rm-btn-fav {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.rm-btn-fav:hover {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.rm-btn-fav.is-favorite {
    background: #fef3c7;
    color: #b45309;
    border-color: #f59e0b;
    font-weight: 700;
}

.rm-btn-fav.is-favorite .rm-btn-fav-star {
    color: #d97706;
}

.rm-btn-notes {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.rm-btn-notes:hover {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

.rm-btn-notes.has-notes {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

.rm-notes-indicator {
    color: #0284c7;
    font-size: 16px;
    line-height: 1;
}

.rm-session-cal-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.rm-session-cal-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 32px;
}

.rm-cal-pill--google {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.rm-cal-pill--google:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.rm-cal-pill--apple {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.rm-cal-pill--apple:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Cajón Desplegable de Notas Personales */
.rm-session-notes-drawer {
    margin-top: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0284c7;
    border-radius: 6px;
}

.rm-notes-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.rm-notes-drawer-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.rm-notes-drawer-status {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
}

.rm-session-notes-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.4;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    outline: none;
}

.rm-session-notes-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   TARJETA VIP CROSS-SELLING: BECA ACADEMIA AMM (.rm-mb-promo-card)
   Diseño sobrio médico: pizarra/grafito (#0f172a / #1e293b) + esmeralda clínico (#10b981 / #059669)
   Cero combinación de azul y amarillo.
   ========================================================================== */
.rm-mb-promo-card {
    position: relative;
    overflow: hidden;
    margin-top: 36px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px;
    padding: 28px 24px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
}

.rm-promo-card-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rm-promo-card-content {
    position: relative;
    z-index: 1;
}

.rm-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    color: #34d399;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rm-promo-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.rm-promo-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 0 20px 0;
}

.rm-promo-link {
    color: #34d399;
    text-decoration: underline;
    font-weight: 600;
}

.rm-promo-link:hover {
    color: #6ee7b7;
}

.rm-promo-coupon-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.rm-promo-coupon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px dashed #10b981;
    border-radius: 8px;
    padding: 10px 18px;
}

.rm-coupon-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.rm-coupon-code {
    font-size: 18px;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 2px;
    font-family: monospace;
}

.rm-btn-copy-coupon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
}

.rm-btn-copy-coupon:hover {
    background: #10b981;
    transform: translateY(-1px);
}

.rm-promo-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.rm-btn-explore-academy {
    background: #047857 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    display: inline-block;
    transition: background 0.2s ease !important;
}

.rm-btn-explore-academy:hover {
    background: #059669 !important;
}

.rm-promo-guarantee {
    font-size: 12px;
    color: #94a3b8;
}

/* ==========================================================================
   PÍLDORA DE RECORDATORIO MATUTINO AUTOMATIZADO (.rm-morning-reminder-pill)
   ========================================================================== */
.rm-morning-reminder-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 14px 0 16px 0;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.06);
}

.rm-reminder-pill-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.rm-reminder-pill-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.rm-reminder-pill-text {
    font-size: 13px;
    color: #166534;
    line-height: 1.45;
}

.rm-reminder-pill-text strong {
    color: #14532d;
    font-weight: 700;
}

.rm-btn-preview-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #166534;
    border: 1px solid #86efac;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-btn-preview-alert:hover {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

/* ==========================================================================
   BANNER DE MODO MI AGENDA ACTIVA (.rm-agenda-mode-banner)
   ========================================================================== */
.rm-agenda-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 5px solid #d97706;
    border-radius: 12px;
    padding: 12px 18px;
    margin: 12px 0 18px 0;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.12);
    animation: rmAgendaPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rm-agenda-mode-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.rm-agenda-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d97706;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25);
}

.rm-agenda-mode-star {
    font-size: 12px;
}

.rm-agenda-mode-desc {
    font-size: 13.5px;
    color: #78350f;
    font-weight: 500;
}

.rm-agenda-mode-desc strong {
    color: #92400e;
    font-weight: 800;
}

.rm-btn-exit-agenda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #92400e;
    background: #ffffff;
    border: 1px solid #fcd34d;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rm-btn-exit-agenda:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.18);
}

/* ==========================================================================
   ESTILOS DE ALTO CONTRASTE PARA BOTONES DE FILTRO (TOOLBAR)
   ========================================================================== */
.rm-prog-filter-btn.rm-filter-btn--all.is-active {
    background: #0a4275 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(10, 66, 117, 0.25) !important;
}

.rm-prog-filter-btn.rm-filter-btn--favs.is-active {
    background: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
    font-weight: 800 !important;
}

/* Pestañas de Días: Segmented Control Moderno */
.day-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.day-tab-agenda-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10.5px;
    font-weight: 800;
    color: #ffffff;
    background: #d97706;
    border-radius: 10px;
    line-height: 1;
}

/* ==========================================================================
   MODO MI AGENDA ACTIVA EN CONTENEDOR (.is-agenda-view)
   ========================================================================== */
/* Ocultar tarjeta de favoritos duplicada cuando ya estamos dentro de Mi Agenda */
.is-agenda-view .rm-day-favs-card {
    display: none !important;
}

/* Pestañas de días en Modo Mi Agenda (se adapta dinámicamente según la cantidad de días con ponencias) */
.is-agenda-view .day-tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}

.is-agenda-view .day-tab {
    flex: 0 1 320px !important;
    max-width: 320px !important;
}

/* Ocultar terminantemente pestañas de días sin ponencias agendadas */
.is-agenda-view .day-tab.is-empty-day,
.is-agenda-view .rm-program-wrapper .day-tab.is-empty-day,
.rm-program-wrapper .is-agenda-view .day-tab.is-empty-day,
.is-agenda-view .day-tab[style*="none"],
.day-tab.is-empty-day {
    display: none !important;
}

/* Cabecera del día con acciones (Selector compacto Mi Agenda y botón de email) */
.day-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.day-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Botón selector compacto en cabecera de día: Ir a Mi Agenda */
.rm-day-go-agenda-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.12);
    transition: all 0.2s ease;
}

.rm-day-go-agenda-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.rm-day-go-agenda-btn .rm-go-agenda-star {
    font-size: 13px;
}

.rm-day-go-agenda-btn .rm-day-agenda-num {
    font-weight: 800;
    color: #b45309;
}

.rm-day-header-email-btn {
    display: none !important;
}

.is-agenda-view .rm-day-header-email-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 14px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.is-agenda-view .rm-day-header-email-btn:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

.is-agenda-view .bloque {
    border-color: #fde68a !important;
}

.is-agenda-view .bloque-header {
    background: #fffdf5 !important;
    border-left: 3px solid #f59e0b !important;
}

.is-agenda-view .session {
    border-left: 4px solid #f59e0b !important;
    background: #fffdf7 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08) !important;
    transition: all 0.25s ease;
}

.is-agenda-view .session:hover {
    background: #fffbeb !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15) !important;
}

.is-agenda-view .session .session-title::after {
    content: '⭐ EN TU AGENDA';
    font-size: 10px;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    letter-spacing: 0.03em;
}

/* Animación de entrada al cambiar filtros */
@keyframes rmAgendaPop {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rm-session-pop-in {
    animation: rmAgendaPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   CARD DESTACADA DE FAVORITOS POR DÍA (.rm-day-favs-card)
   ========================================================================== */
.rm-day-favs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rm-day-favs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.rm-day-favs-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rm-day-favs-badge {
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 20px;
}

.rm-day-favs-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.rm-btn-email-day-agenda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.rm-btn-email-day-agenda:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.rm-day-favs-empty {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
    padding: 6px 0;
}

.rm-day-favs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-day-fav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.rm-day-fav-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rm-day-fav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rm-day-fav-time {
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rm-day-fav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-day-fav-jump-btn {
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-day-fav-jump-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.rm-day-fav-remove-btn {
    padding: 2px 7px;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
}

.rm-day-fav-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
    border-color: #fecdd3;
}

.rm-day-fav-title {
    font-size: 13px;
    font-weight: 600;
    color: #0a4275;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    margin: 0;
}

/* ==========================================================================
   BOTÓN TOOLBAR ENVIAR AGENDA POR EMAIL (.rm-prog-email-btn)
   ========================================================================== */
.rm-prog-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-prog-email-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* ==========================================================================
   BOTONES DE COMPARTIR PONENCIA: WHATSAPP & TELEGRAM
   ========================================================================== */
.rm-session-share-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.rm-session-share-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.rm-share--wa {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e !important;
    border-color: rgba(37, 211, 102, 0.3);
}

.rm-share--wa:hover {
    background: #25d366;
    color: #ffffff !important;
}

.rm-share--tg {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc !important;
    border-color: rgba(0, 136, 204, 0.3);
}

.rm-share--tg:hover {
    background: #0088cc;
    color: #ffffff !important;
}

/* Responsividad Mobile (< 640px) */
@media (max-width: 640px) {
    /* Ocultar Onboarding Stepper en pestañas de contenido profundo */
    .rm-mb-stepper-card.rm-stepper--hidden-mobile {
        display: none !important;
    }

    .rm-mb-stepper-card {
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
    }

    .rm-mb-stepper-nodes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .rm-mb-stepper-node {
        padding: 6px 8px !important;
        min-height: 44px !important;
        gap: 6px !important;
    }

    .rm-mb-node-icon {
        font-size: 16px !important;
    }

    .rm-mb-node-title {
        font-size: 11px !important;
    }

    .rm-mb-node-desc {
        font-size: 9px !important;
    }

    /* Contenedor de sección como vista fluida (sin enmarcado doble) */
    .rm-mb-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 16px !important;
    }

    .rm-mb-section-header {
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.85);
        border-radius: 16px;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        gap: 10px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }

    .rm-mb-step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    .rm-mb-section-title {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }

    .rm-mb-section-desc {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    /* Toolbar de Programa Native App */
    .rm-prog-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.85) !important;
        border-radius: 16px !important;
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        gap: 8px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    }

    .rm-prog-view-filter {
        display: flex !important;
        width: 100% !important;
        background: #f1f5f9 !important;
        border-radius: 12px !important;
        padding: 3px !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    .rm-prog-filter-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        min-height: 36px !important;
        border-radius: 9px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .rm-prog-filter-btn.is-active {
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    }

    .rm-prog-search-box {
        max-width: 100% !important;
        min-width: 100% !important;
    }

    /* Pestañas de Días en Móvil */
    .day-tabs {
        display: flex !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .day-tab {
        flex: 1 !important;
        text-align: center !important;
        padding: 9px 4px !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.85) !important;
        border-radius: 12px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
        transition: all 0.2s ease !important;
    }

    .day-tab.active {
        background: #0a4275 !important;
        color: #ffffff !important;
        border-color: #0a4275 !important;
        box-shadow: 0 2px 8px rgba(10, 66, 117, 0.22) !important;
    }

    /* Cabecera del Día */
    .rm-program-wrapper .day-header {
        margin-bottom: 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.85) !important;
        border-radius: 16px !important;
        padding: 12px 14px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .rm-program-wrapper .day-header-titles {
        text-align: center !important;
    }

    .rm-program-wrapper .day-header h3 {
        font-size: 16px !important;
    }

    .rm-program-wrapper .day-header .day-subtitle {
        font-size: 12px !important;
    }

    .rm-program-wrapper .day-header-actions {
        width: 100% !important;
        justify-content: center !important;
    }

    .rm-day-go-agenda-btn,
    .is-agenda-view .rm-day-header-email-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* Acordeón Control Bar */
    .rm-prog-accordion-bar {
        padding: 6px 10px !important;
        margin: 8px 0 10px 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .rm-prog-accordion-hint {
        font-size: 11px !important;
        text-align: center !important;
    }

    .rm-prog-accordion-btns {
        justify-content: center !important;
    }

    .rm-btn-acc-ctrl {
        flex: 1 !important;
        justify-content: center !important;
        padding: 5px 8px !important;
    }

    /* Bloques y Sesiones */
    .rm-program-wrapper .bloque {
        margin-bottom: 10px !important;
    }

    .rm-program-wrapper .bloque-header {
        padding: 12px 14px !important;
    }

    .rm-program-wrapper .bloque-title {
        font-size: 14px !important;
    }

    .bloque-session-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    .rm-program-wrapper .session {
        flex-direction: column;
        padding: 12px 12px !important;
        gap: 6px;
    }

    .rm-program-wrapper .session-time {
        width: 100%;
        font-size: 11px !important;
    }

    .rm-program-wrapper .session-title {
        font-size: 13px !important;
    }

    .rm-program-wrapper .session-speakers {
        font-size: 11px !important;
    }

    .rm-session-actions {
        width: 100%;
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .rm-session-action-btn {
        min-height: 44px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    .rm-session-cal-group,
    .rm-session-share-group {
        margin-left: 0;
        width: 100%;
        margin-top: 2px;
        gap: 4px !important;
    }

    .rm-session-share-pill,
    .rm-session-cal-pill {
        flex: 1;
        justify-content: center;
        min-height: 30px !important;
        padding: 4px 6px !important;
        font-size: 11px !important;
    }

    /* Card Favoritos del Día */
    .rm-day-favs-card {
        padding: 10px 12px !important;
        margin-bottom: 14px !important;
    }

    .rm-day-favs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .rm-btn-email-day-agenda {
        width: 100%;
        justify-content: center;
        padding: 7px 12px !important;
    }

    .rm-day-fav-item {
        padding: 8px 10px !important;
        gap: 4px !important;
    }

    .rm-day-fav-title {
        font-size: 12px !important;
    }

    /* Píldora de Recordatorio y Banner de Agenda en Móvil */
    .rm-morning-reminder-pill {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .rm-morning-reminder-pill .rm-btn-preview-alert {
        width: 100% !important;
        justify-content: center !important;
    }

    .rm-agenda-mode-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .rm-btn-exit-agenda {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Cross-selling Cupón */
    .rm-promo-coupon-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .rm-btn-copy-coupon {
        justify-content: center;
    }

    .rm-btn-explore-academy {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================================
   MEMBERS HUB V2.0: STEPPER COMPACTO (≤42px) Y FUSIÓN DOCUMENTAL
   ========================================================================= */

/* Stepper Compacto (≤42px) */
.rm-compact-stepper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 7px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    box-sizing: border-box;
}

.rm-stepper-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
}

.rm-stepper-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rm-stepper-pct-chip {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.rm-stepper-pct-chip.is-complete {
    background: #059669;
}

.rm-stepper-meta-text {
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-stepper-meta-text strong {
    color: #0f172a;
}

.rm-stepper-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rm-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.rm-step-chip .rm-chip-num {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
}

.rm-step-chip.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.rm-step-chip.is-done .rm-chip-num {
    background: #16a34a;
    color: #ffffff;
}

.rm-step-chip.is-pending {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.rm-step-chip.is-pending .rm-chip-num {
    background: #2563eb;
    color: #ffffff;
}

.rm-step-chip.is-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.rm-step-chip.is-locked .rm-chip-num {
    background: #cbd5e1;
    color: #64748b;
}

.rm-step-chip:hover:not(.is-locked) {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .rm-compact-stepper {
        padding: 8px 10px;
    }
    .rm-stepper-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .rm-stepper-summary {
        justify-content: space-between;
    }
    .rm-stepper-chips-row {
        justify-content: space-between;
        width: 100%;
    }
    .rm-step-chip {
        flex: 1;
        justify-content: center;
        padding: 4px 6px;
        font-size: 10px;
    }
    .rm-step-chip .rm-chip-label {
        font-size: 10px;
    }
}

/* Barra de navegación de 4 columnas (Asistentes) y 5 columnas (Profesores) */
@media (min-width: 768px) {
    .rm-mb-nav-bar--4cols {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 640px !important;
        margin: 0 auto 22px auto !important;
        gap: 8px !important;
    }
    .rm-mb-nav-bar--4cols .rm-mb-nav-btn {
        max-width: 100% !important;
        flex: 1 !important;
    }
    .rm-mb-nav-bar--5cols {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        max-width: 780px !important;
        margin: 0 auto 22px auto !important;
        gap: 8px !important;
    }
    .rm-mb-nav-bar--5cols .rm-mb-nav-btn {
        max-width: 100% !important;
        flex: 1 !important;
    }
}

@media (max-width: 767.98px) {
    .rm-mb-nav-bar--4cols {
        display: flex !important;
        justify-content: space-around !important;
    }
    .rm-mb-nav-bar--4cols .rm-mb-nav-btn {
        flex: 1 1 25% !important;
        max-width: 25% !important;
        padding: 4px 2px !important;
    }
    .rm-mb-nav-bar--5cols {
        display: flex !important;
        justify-content: space-around !important;
    }
    .rm-mb-nav-bar--5cols .rm-mb-nav-btn {
        flex: 1 1 20% !important;
        max-width: 20% !important;
        padding: 4px 1px !important;
    }
}

/* Fusión Documental: Subcards en Mis Docs */
.rm-docs-subcard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .rm-docs-subcard {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }
    .rm-docs-subcard-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        gap: 10px !important;
    }
    .rm-docs-subcard-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    .rm-docs-subcard-tag {
        font-size: 9.5px !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 1px !important;
    }
    .rm-docs-subcard-title {
        font-size: 15px !important;
        margin-bottom: 2px !important;
    }
    .rm-docs-subcard-desc {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }
}

/* Badge Status Compact Banner */
.rm-badge-status-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.25;
}

.rm-badge-status-banner.is-confirmed {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rm-badge-status-banner.is-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.rm-badge-status-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.rm-badge-status-text {
    letter-spacing: -0.1px;
}

.rm-docs-subcard-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.rm-docs-subcard-icon {
    font-size: 20px;
    line-height: 1;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-docs-subcard-header-text {
    min-width: 0;
    flex: 1 1 auto;
}

.rm-docs-subcard-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
    display: block;
}

.rm-docs-subcard-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.rm-docs-subcard-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Botones de Confirmación de Gafete */
.rm-mb-btn-badge-confirm {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.rm-mb-btn-badge-confirm:hover {
    background: #0369a1;
}

.rm-mb-btn-badge-updated {
    background: #0d9488;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.rm-mb-btn-badge-updated:hover {
    background: #0f766e;
}

/* Guía de Sede y Viaje */
.rm-venue-tips-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}

.rm-venue-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 10px;
}

.rm-venue-tip-item:last-child {
    margin-bottom: 0;
}

.rm-venue-tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Evaluaciones: Acciones y Estados */
.rm-eval-actions-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.rm-btn-mark-eval {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.rm-btn-mark-eval:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}

.rm-eval-done-text {
    font-size: 12px;
    color: #16a34a;
    font-weight: 700;
    text-align: center;
    display: block;
}

/* Pie Institucional */
.rm-mb-portal-footer {
    text-align: center;
    padding: 24px 16px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.rm-footer-venue-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.rm-footer-tour-link-wrapper {
    margin-bottom: 8px;
}

.rm-btn-footer-tour {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-btn-footer-tour:hover {
    background: #f0f9ff;
    border-color: #0284c7;
}

.rm-footer-brand-info {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.rm-footer-brand-info a {
    color: #64748b;
    text-decoration: underline;
}

/* Modal Tour Guiado Inicial (Walkthrough) */
.rm-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: rmFadeIn 0.25s ease;
}

.rm-tour-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    padding: 26px 22px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    box-sizing: border-box;
}

.rm-tour-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.rm-tour-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rm-tour-slide {
    display: none;
    text-align: center;
    animation: rmFadeIn 0.3s ease;
}

.rm-tour-slide.is-active {
    display: block;
}

.rm-tour-badge-pill {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-tour-icon {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 12px;
}

.rm-tour-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.rm-tour-text {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.rm-tour-tip {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    padding: 8px 12px;
    font-size: 12px;
    color: #334155;
    text-align: left;
    border-radius: 4px;
    margin-bottom: 16px;
}

.rm-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 10px;
}

.rm-tour-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.2s ease;
    position: relative;
}

.rm-tour-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.rm-tour-dot.is-active {
    background: #0284c7;
    width: 20px;
    border-radius: 10px;
}

.rm-tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-tour-btn-skip {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.rm-tour-btn-skip:hover {
    color: #0f172a;
}

.rm-tour-btn-next {
    background: #0284c7;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.rm-tour-btn-next:hover {
    background: #0369a1;
}

.rm-sponsor-resend-staff-email,
.rm-mb-btn-sm {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ==========================================================================
   BARRA DE IMPERSONACIÓN / SOPORTE TÉCNICO EN RECINTOS
   ========================================================================== */
.rm-support-impersonation-bar {
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
    flex-wrap: wrap;
    z-index: 100;
}

.rm-support-impersonation-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-support-impersonation-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rm-support-impersonation-msg {
    font-size: 13px;
    line-height: 1.4;
    color: #ffedd5;
}

.rm-support-impersonation-msg strong {
    color: #ffffff;
}

.rm-support-exit-btn {
    background: #ffffff;
    color: #9a3412 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-support-exit-btn:hover {
    background: #ffedd5;
    transform: translateY(-1px);
}

/* ==========================================================================
   LÍMITES DE DESCARGAS Y COMPARTICIÓN DE DOCUMENTOS
   ========================================================================== */
.rm-doc-quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 8px 0 12px 0;
}

.rm-doc-quota-badge strong {
    color: #0f172a;
}

.rm-doc-quota-badge.is-limit {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.rm-doc-quota-badge.is-limit strong {
    color: #b91c1c;
}

.rm-doc-btn-disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

.rm-doc-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}

.rm-doc-share-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-btn-share {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    color: #334155;
}

.rm-btn-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rm-btn-share--wa {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.rm-btn-share--wa:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.rm-btn-share--mail {
    color: #0369a1;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.rm-btn-share--mail:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.rm-btn-share.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN OFICIAL DE NOMBRE PARA CERTIFICADOS Y CARTAS
   ========================================================================== */
.rm-cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 99999;
    box-sizing: border-box;
}

.rm-cert-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    padding: 28px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    box-sizing: border-box;
    animation: rmModalFadeIn 0.25s ease-out forwards;
}

@keyframes rmModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.rm-cert-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}

.rm-cert-modal-close:hover {
    color: #0f172a;
}

.rm-cert-modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.rm-cert-modal-icon {
    font-size: 36px;
    margin-bottom: 6px;
}

.rm-cert-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.rm-cert-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.rm-cert-modal-alert {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.rm-cert-modal-alert-icon {
    font-size: 20px;
    line-height: 1.2;
}

.rm-cert-modal-alert-text strong {
    font-size: 12px;
    color: #92400e;
    display: block;
    margin-bottom: 2px;
}

.rm-cert-modal-alert-text p {
    font-size: 12px;
    color: #b45309;
    margin: 0;
    line-height: 1.4;
}

.rm-cert-modal-form .rm-form-field-group {
    margin-bottom: 14px;
}

.rm-cert-modal-form .rm-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.rm-cert-modal-form .rm-form-select,
.rm-cert-modal-form .rm-form-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-cert-modal-form .rm-form-select:focus,
.rm-cert-modal-form .rm-form-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
    outline: none;
}

.rm-cert-modal-form .rm-form-help {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.rm-cert-modal-check-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 16px 0;
}

.rm-cert-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    line-height: 1.4;
}

.rm-cert-check-label input {
    margin-top: 2px;
    transform: scale(1.1);
    accent-color: #0284c7;
}

.rm-cert-modal-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 14px;
}

.rm-cert-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.rm-btn-modal-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rm-btn-modal-cancel:hover {
    background: #e2e8f0;
}

.rm-btn-modal-submit {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.rm-btn-modal-submit:hover {
    background: #0369a1;
}

.rm-btn-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   TOAST DE NOTIFICACIONES EN EL PORTAL
   ========================================================================== */
.rm-portal-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 90vw;
}

.rm-portal-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rm-portal-toast.rm-toast-success {
    background: #065f46;
    border: 1px solid #059669;
}

.rm-portal-toast.rm-toast-error {
    background: #991b1b;
    border: 1px solid #dc2626;
}

/* ==========================================================================
   FILTROS DE ROL Y BADGES EN MESA DE SOPORTE / ASISTENTES
   ========================================================================== */
.rm-support-role-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rm-role-filter-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rm-role-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.rm-role-filter-btn.is-active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.25);
}

.rm-support-role-pill--profesor { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.rm-support-role-pill--attendee { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.rm-support-role-pill--sponsor { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.rm-support-role-pill--becado { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.rm-support-role-pill--staff { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* ==========================================================================
   BANNER DE DIFUSIÓN OFICIAL / MENSAJES PUSH EN EL PORTAL (.rm-broadcast-banner)
   ========================================================================== */
.rm-broadcast-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #fecdd3;
    border-left: 5px solid #e11d48;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px -2px rgba(225, 29, 72, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    position: relative;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: rmBroadcastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rmBroadcastSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rm-broadcast-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.rm-broadcast-meta-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rm-broadcast-badge-tag {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
    font-size: 11px;
    font-weight: 800;
    padding: 2.5px 8px;
    border-radius: 9999px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.rm-broadcast-time-tag {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}

.rm-broadcast-dismiss-btn {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50% !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}

.rm-broadcast-dismiss-btn:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

.rm-broadcast-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-broadcast-heading {
    margin: 2px 0 0 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.rm-broadcast-message {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

.rm-broadcast-action {
    margin-top: 6px;
}

.rm-broadcast-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #be123c;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(190, 18, 60, 0.25);
}

.rm-broadcast-link:hover {
    background: #9f1239;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.rm-broadcast-footer-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #fecdd3;
    font-size: 12px;
}

.rm-broadcast-more-text {
    font-weight: 600;
    color: #475569;
}

.rm-broadcast-more-num {
    color: #e11d48;
    font-weight: 800;
}

.rm-broadcast-open-drawer-btn {
    background: none;
    border: none;
    padding: 0;
    color: #e11d48;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rm-broadcast-open-drawer-btn:hover {
    color: #9f1239;
}

/* ==========================================================================
   CENTRO DE NOTIFICACIONES / DRAWER (iOS Bottom Sheet)
   ========================================================================== */
.rm-notif-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rm-notif-drawer-overlay.is-visible {
    opacity: 1;
}

.rm-notif-drawer {
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.rm-notif-drawer.is-open {
    transform: translateY(0);
}

.rm-notif-drawer-drag-handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 10px auto 4px auto;
    cursor: grab;
    flex-shrink: 0;
}

.rm-notif-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.rm-notif-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-notif-drawer-icon {
    font-size: 24px;
    line-height: 1;
}

.rm-notif-drawer-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.rm-notif-drawer-sub {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.rm-notif-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.rm-notif-drawer-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.rm-notif-drawer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.rm-drawer-count-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 9px;
    border-radius: 9999px;
}

.rm-drawer-mark-all-btn {
    background: transparent;
    border: none;
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease, color 0.15s ease;
}

.rm-drawer-mark-all-btn:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.rm-notif-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 18px 24px 18px;
}

.rm-notif-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-drawer-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.rm-drawer-card.is-unread {
    border-color: #7dd3fc;
    border-left: 4px solid #0284c7;
    background: #f0f9ff;
}

.rm-drawer-card.is-read {
    border-left: 4px solid #cbd5e1;
    opacity: 0.78;
}

.rm-drawer-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.rm-drawer-cat-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
}

.rm-drawer-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

.rm-drawer-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
}

.rm-drawer-status-pill.is-unread {
    background: #0284c7;
    color: #ffffff;
}

.rm-drawer-status-pill.is-read {
    background: #e2e8f0;
    color: #64748b;
}

.rm-drawer-card-title {
    margin: 0 0 6px 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.rm-drawer-card-msg {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    word-break: break-word;
}

.rm-drawer-card-action-row {
    margin: 8px 0;
}

.rm-drawer-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rm-drawer-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rm-drawer-card-mark-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-drawer-card-mark-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.rm-drawer-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.rm-drawer-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.rm-drawer-empty-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.rm-drawer-empty-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   ADMIN: MENSAJERÍA PUSH Y AUDIENCIAS (.rm-push-admin-wrap)
   ========================================================================== */
.rm-push-admin-wrap {
    margin-top: 15px;
}

.rm-push-admin-wrap .wp-heading-inline {
    color: #0a4275;
    font-weight: 700;
}

/* ==========================================================================
   PROMPT DE SUSCRIPCIÓN WEB PUSH MÓVIL (.rm-push-prompt-card)
   ========================================================================== */
.rm-push-prompt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    box-sizing: border-box;
    animation: rmBroadcastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rm-push-prompt-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.rm-push-prompt-icon {
    font-size: 24px;
    line-height: 1.2;
    flex-shrink: 0;
}

.rm-push-prompt-text {
    min-width: 0;
}

.rm-push-prompt-title {
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 3px;
}

.rm-push-prompt-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #15803d;
}

.rm-push-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rm-btn-push-enable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}

.rm-btn-push-enable:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.rm-btn-push-dismiss {
    background: transparent;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.rm-btn-push-dismiss:hover {
    background: rgba(22, 163, 74, 0.1);
}

@media (max-width: 640px) {
    .rm-push-prompt-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }
    .rm-push-prompt-actions {
        justify-content: flex-end;
    }
}

/* ==========================================================================
   PORTAL SPONSOR: TABLERO DE BECAS MÉDICAS (CONTADORES DE CUPO)
   ========================================================================== */
/* Grid de Tarjetas KPI / Contadores */
.rm-becas-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.rm-becas-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm-becas-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.rm-becas-stat-icon {
    font-size: 26px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-becas-stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rm-becas-stat-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.rm-becas-stat-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-becas-stat-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Variantes cromáticas de tarjetas */
.rm-becas-stat--total {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}
.rm-becas-stat--total .rm-becas-stat-icon {
    background: #e0e7ff;
}
.rm-becas-stat--total .rm-becas-stat-num {
    color: #3730a3;
}

.rm-becas-stat--assigned {
    border-color: #bae6fd;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}
.rm-becas-stat--assigned .rm-becas-stat-icon {
    background: #e0f2fe;
}
.rm-becas-stat--assigned .rm-becas-stat-num {
    color: #0369a1;
}

.rm-becas-stat--free {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.rm-becas-stat--free .rm-becas-stat-icon {
    background: #dcfce7;
}
.rm-becas-stat--free .rm-becas-stat-num {
    color: #15803d;
}

.rm-becas-stat--confirmed {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}
.rm-becas-stat--confirmed .rm-becas-stat-icon {
    background: #ccfbf1;
}
.rm-becas-stat--confirmed .rm-becas-stat-num {
    color: #047857;
}

/* Barra de progreso de cupos */
.rm-becas-progress-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rm-becas-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.rm-progress-title {
    font-weight: 700;
    color: #0f172a;
}

.rm-progress-pct {
    font-weight: 700;
    color: #15803d;
    font-size: 12.5px;
}

.rm-becas-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    width: 100%;
}

.rm-progress-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.rm-progress-seg--confirmed {
    background: #16a34a;
}

.rm-progress-seg--pending {
    background: #0284c7;
}

.rm-progress-seg--free {
    background: #e2e8f0;
}

.rm-becas-progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.rm-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.rm-legend-dot--confirmed { background: #16a34a; }
.rm-legend-dot--pending { background: #0284c7; }
.rm-legend-dot--free { background: #cbd5e1; }


@media (max-width: 820px) {
    .rm-becas-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .rm-becas-stat-card {
        padding: 12px;
    }
    .rm-becas-stat-num {
        font-size: 22px;
    }
    .rm-becas-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ==========================================================================
   v2.6.0 — REDISEÑO SOCIAL APP, MURO SOCIAL, STORIES Y AVATAR EN S3
   ========================================================================== */

/* 1. Avatar Editable en Header */
.rm-avatar-editable {
    position: relative !important;
    cursor: pointer !important;
    border: none;
    padding: 0;
    overflow: visible !important;
    transition: transform 0.18s ease;
}

.rm-avatar-editable:hover {
    transform: scale(1.04);
}

.rm-mb-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.rm-avatar-cam-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
    pointer-events: none;
}

/* 2. Sistema de Avisos en Home por Color (Aviso / Notificación / Recordatorio) */
.rm-broadcast-banner.rm-notice-type--aviso {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-color: #7dd3fc !important;
    border-left: 5px solid #0284c7 !important;
}
.rm-broadcast-banner.rm-notice-type--aviso .rm-broadcast-badge-tag {
    background: #0284c7 !important;
    color: #ffffff !important;
}

.rm-broadcast-banner.rm-notice-type--notificacion {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #fcd34d !important;
    border-left: 5px solid #d97706 !important;
}
.rm-broadcast-banner.rm-notice-type--notificacion .rm-broadcast-badge-tag {
    background: #d97706 !important;
    color: #ffffff !important;
}
.rm-broadcast-banner.rm-notice-type--notificacion .rm-broadcast-heading {
    color: #78350f !important;
}
.rm-broadcast-banner.rm-notice-type--notificacion .rm-broadcast-message {
    color: #92400e !important;
}

.rm-broadcast-banner.rm-notice-type--recordatorio {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #fda4af !important;
    border-left: 5px solid #e11d48 !important;
}
.rm-broadcast-banner.rm-notice-type--recordatorio .rm-broadcast-badge-tag {
    background: #e11d48 !important;
    color: #ffffff !important;
}
.rm-broadcast-banner.rm-notice-type--recordatorio .rm-broadcast-heading {
    color: #881337 !important;
}
.rm-broadcast-banner.rm-notice-type--recordatorio .rm-broadcast-message {
    color: #9f1239 !important;
}

.rm-drawer-card.rm-notice-type--notificacion .rm-drawer-cat-badge {
    background: #fef3c7 !important;
    color: #b45309 !important;
}
.rm-drawer-card.rm-notice-type--recordatorio .rm-drawer-cat-badge {
    background: #ffe4e6 !important;
    color: #be123c !important;
}

/* 3. Tira de Stories Destacadas */
.rm-stories-strip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 14px;
    margin: 0 0 14px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    scrollbar-width: none;
}
.rm-stories-strip::-webkit-scrollbar {
    display: none;
}

.rm-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 66px;
    transition: transform 0.18s ease;
}
.rm-story-item:hover {
    transform: translateY(-2px);
}

.rm-story-ring {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-story-ring--live {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #ec4899 100%);
}

.rm-story-icon-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.rm-story-live-pill {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #e11d48;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 1.5px 6px;
    border-radius: 99px;
    border: 1.5px solid #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.rm-story-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

/* 4. Muro Social del Congreso y Pestañas Carpeta Integradas */
.rm-social-wall-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.rm-feed-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.rm-feed-heading {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

.rm-feed-subheading {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.rm-btn-open-upload-modal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0284c7, #0a4275);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
    transition: all 0.2s ease;
}
.rm-btn-open-upload-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.36);
}

/* Pestañas carpeta saliendo del borde superior de la 1ª tarjeta */
.rm-feed-card-tabs {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0 14px;
    margin: 6px 0 -1px 0;
    position: relative;
    z-index: 3;
}

.rm-feed-tab {
    appearance: none;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 15px 6px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.15;
}

.rm-feed-tab.is-active {
    background: #ffffff;
    color: #0a4275;
    font-weight: 800;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: -1px;
    box-shadow: 0 -3px 8px rgba(15, 23, 42, 0.04);
}

.rm-feed-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.rm-feed-card.has-attached-tabs {
    border-top-left-radius: 12px;
}

.rm-feed-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 10px;
}

.rm-feed-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rm-feed-avatar-img,
.rm-feed-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.rm-feed-avatar-fallback {
    background: linear-gradient(135deg, #0284c7, #0a4275);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-feed-author-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rm-feed-pin-badge {
    font-size: 10.5px;
    font-weight: 800;
    background: #eff6ff;
    color: #0284c7;
    padding: 2px 7px;
    border-radius: 99px;
}

.rm-feed-author-sub {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
}

.rm-feed-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rm-feed-sponsored-pill {
    font-size: 10.5px;
    font-weight: 800;
    background: #fef3c7;
    color: #b45309;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
}

.rm-feed-time {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
}

.rm-feed-mod-del-btn {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    padding: 4px 7px;
    cursor: pointer;
    font-size: 13px;
}

.rm-feed-media-box {
    position: relative;
    width: 100%;
    background: #0f172a;
    max-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-feed-photo-img,
.rm-feed-video-player {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.rm-reel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

.rm-reel-mute-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.rm-feed-watermark-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 14px 10px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.rm-wm-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(15, 23, 42, 0.55);
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rm-feed-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.rm-feed-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-feed-action-btn.is-liked {
    background: #fff1f2;
    border-color: #fda4af;
    color: #e11d48;
}

.rm-feed-caption {
    padding: 10px 16px 14px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.45;
}
.rm-feed-caption strong {
    color: #0f172a;
    margin-right: 5px;
}

/* 5. Botón Flotante (+) y Modal de Subida al Muro Social */
.rm-fab-upload-btn {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7, #0a4275);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(10, 66, 117, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rm-fab-upload-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(10, 66, 117, 0.45);
}
.rm-fab-plus {
    font-size: 18px;
    line-height: 1;
}

.rm-upload-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.rm-upload-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    padding: 20px;
}

.rm-upload-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rm-upload-kicker {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.06em;
}

.rm-upload-title {
    margin: 2px 0 0 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.rm-upload-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #475569;
}

.rm-upload-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.rm-upload-mode-btn {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}
.rm-upload-mode-btn.is-active {
    background: #eff6ff;
    border-color: #0284c7;
    color: #0a4275;
    font-weight: 800;
}

.rm-upload-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    margin-bottom: 14px;
}

.rm-upload-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.rm-upload-camera-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.rm-upload-field {
    margin-bottom: 12px;
}

.rm-upload-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.rm-upload-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rm-upload-chip {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 99px;
    cursor: pointer;
}
.rm-upload-chip.is-selected {
    background: #0a4275;
    border-color: #0a4275;
    color: #ffffff;
}

.rm-upload-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    box-sizing: border-box;
}

.rm-upload-status-msg {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
    background: #f0f9ff;
    color: #0369a1;
}

.rm-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-btn-upload-publish {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0284c7, #0a4275);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.rm-btn-upload-share-ext {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

/* 6. Chips de Profesores con Avatar Real en Programa Académico */
.rm-speakers-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.rm-spk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.rm-spk-chip-img,
.rm-spk-chip-init {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rm-spk-chip-init {
    background: #0a4275;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 7. Tarjetas KPI Modernizadas y Emisor Push en Portal Admin */
.rm-metric-card .rm-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 6px;
}

.rm-metric-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
    background: #f1f5f9;
    color: #334155;
}

.rm-metric-bar {
    width: 100%;
    height: 5px;
    border-radius: 99px;
    background: #f1f5f9;
    overflow: hidden;
    margin-top: 8px;
}
.rm-metric-bar > span {
    display: block;
    height: 100%;
    border-radius: 99px;
}

.rm-portal-push-composer {
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.rm-push-composer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rm-push-composer-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.rm-push-composer-kicker {
    font-size: 10.5px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.06em;
}

.rm-push-composer-title {
    margin: 2px 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.rm-push-composer-sub {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
}

.rm-push-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.rm-push-type-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    background: #f8fafc;
}
.rm-push-type-pill input {
    margin: 0;
}
.rm-push-type-pill strong {
    display: block;
    font-size: 12.5px;
    color: #0f172a;
}
.rm-push-type-pill small {
    font-size: 11px;
    color: #64748b;
}

.rm-push-type--aviso.is-selected {
    border-color: #0284c7;
    background: #f0f9ff;
}
.rm-push-type--notificacion.is-selected {
    border-color: #d97706;
    background: #fffbeb;
}
.rm-push-type--recordatorio.is-selected {
    border-color: #e11d48;
    background: #fff1f2;
}

.rm-push-composer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.rm-push-field {
    margin-bottom: 10px;
}
.rm-push-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.rm-push-composer-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.rm-btn-send-portal-push {
    background: linear-gradient(135deg, #0284c7, #0a4275);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 680px) {
    .rm-push-type-selector,
    .rm-push-composer-row {
        grid-template-columns: 1fr;
    }
}


