/* ===== VARIABLES ===== */
:root {
    --rm-navy:      #1a2e4a;
    --rm-navy-mid:  #243d60;
    --rm-gold:      #e8a020;
    --rm-gold-dark: #c4841a;
    --rm-text-muted: rgba(255,255,255,0.65);
}

/* ===== LAYOUT ===== */
body {
    background-color: #f4f6f9;
    padding-top: 72px;
    padding-bottom: 64px;
}

/* ===== NAVBAR ===== */
.navbar-gesmediacion {
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.30);
    padding: 0.5rem 0;
    min-height: 64px;
}

/* Logo */
.rm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rm-brand-icon {
    background: linear-gradient(135deg, var(--rm-gold) 0%, var(--rm-gold-dark) 100%);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(232,160,32,0.40);
}

.rm-brand-text {
    line-height: 1.1;
}

.rm-brand-text .rm-brand-top {
    display: block;
    font-size: 0.70rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rm-text-muted);
}

.rm-brand-text .rm-brand-bottom {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

/* Nav links */
.navbar-gesmediacion .nav-link {
    color: var(--rm-text-muted) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.navbar-gesmediacion .nav-link:hover,
.navbar-gesmediacion .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.10);
}

/* Entorno badge */
.rm-env-badge {
    background: rgba(255,255,255,0.12);
    color: var(--rm-gold);
    border: 1px solid rgba(232,160,32,0.35);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Selector de idioma */
.rm-lang-btn {
    background: rgba(255,255,255,0.10);
    color: var(--rm-text-muted);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.rm-lang-btn:hover,
.rm-lang-btn.show {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

/* Dropdown */
.navbar-gesmediacion .dropdown-menu {
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.25rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.30);
    min-width: 10rem;
}

.navbar-gesmediacion .dropdown-item {
    color: var(--rm-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    margin: 0.1rem 0.3rem;
    width: auto;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.navbar-gesmediacion .dropdown-item:hover {
    background: #fff;
    color: var(--rm-navy);
}

/* Avatar de usuario */
.rm-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(232,160,32,0.55);
    color: var(--rm-gold);
    font-size: 0.75rem;
    flex-shrink: 0;
}


/* Toggler */
.navbar-gesmediacion .navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}
.navbar-gesmediacion .navbar-toggler-icon {
    filter: invert(1);
}

/* ===== FOOTER ===== */
.footer-gesmediacion {
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%);
    color: var(--rm-text-muted);
    font-size: 0.8rem;
    padding: 0.75rem 0;
    text-align: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.20);
}

.footer-gesmediacion a {
    color: var(--rm-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-gesmediacion a:hover {
    color: var(--rm-gold);
}

.footer-gesmediacion .footer-version {
    color: rgba(255,255,255,0.35);
    font-size: 0.72rem;
    margin-left: 0.5rem;
}

/* ===== ACCESOS RÁPIDOS ===== */
.rm-quicklink {
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    background: #fff;
}
.rm-quicklink:hover {
    border-color: var(--rm-navy) !important;
    background: #f0f4f8;
}

/* ===== DETAIL PILLS ===== */
.rm-detail-pills {
    background: #edf0f5;
    border-radius: 8px;
    padding: 0.3rem 0.4rem;
    gap: 0.15rem;
}

.rm-detail-pills .nav-link {
    color: var(--rm-navy-mid);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    background: #fff;
    transition: color 0.2s, background 0.2s;
}

.rm-detail-pills .nav-link:hover {
    color: var(--rm-navy);
    background: #e2e8f0;
}

.rm-detail-pills .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%) !important;
}

/* ===== TABLAS RESPONSIVE ===== */
@media (max-width: 576px) {
    .rm-table-responsive thead {
        display: none;
    }
    .rm-table-responsive tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 0.75rem;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        overflow: hidden;
    }
    .rm-table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0.75rem;
        border: none;
        border-bottom: 1px solid #f0f4f8;
        font-size: 0.875rem;
    }
    .rm-table-responsive tbody td:last-child {
        border-bottom: none;
    }
    .rm-table-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.70rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--rm-navy-mid);
        flex-shrink: 0;
        margin-right: 1rem;
    }
    .rm-table-responsive tbody td[data-label=""]::before {
        display: none;
    }
    .rm-table-responsive tbody td[data-label=""] {
        justify-content: flex-end;
        gap: 1rem;
    }
}

/* ===== ZONA PÚBLICA ===== */

/* Override del padding inferior: el footer de la zona pública no es fixed */
body.rm-public {
    padding-bottom: 0;
}

/* Botón "Entrar" del navbar público */
.rm-btn-entrar {
    background: linear-gradient(135deg, var(--rm-gold) 0%, var(--rm-gold-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(232,160,32,0.35);
    transition: opacity 0.2s, transform 0.2s;
}

.rm-btn-entrar:hover {
    color: #fff;
    opacity: 0.88;
    transform: translateY(-1px);
}

/* --- Hero --- */
.rm-hero {
    min-height: calc(100vh - 72px);
    background: linear-gradient(150deg, var(--rm-navy) 0%, var(--rm-navy-mid) 55%, #1b3a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem 6rem;
}

.rm-hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(232,160,32,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.rm-hero-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--rm-gold) 0%, var(--rm-gold-dark) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(232,160,32,0.45);
    font-size: 2.4rem;
    color: #fff;
}

.rm-hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.rm-hero-title span {
    color: var(--rm-gold);
}

.rm-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Botones del hero */
.rm-btn-hero-primary {
    background: linear-gradient(135deg, var(--rm-gold) 0%, var(--rm-gold-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(232,160,32,0.40);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rm-btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,160,32,0.50);
}

.rm-btn-hero-secondary {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: background 0.2s, color 0.2s;
}

.rm-btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* --- Sección de características --- */
.rm-features {
    padding: 5rem 0 4rem;
    background: #f4f6f9;
}

.rm-features-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rm-navy);
    margin-bottom: 0.5rem;
}

.rm-features-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

.rm-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 2px 16px rgba(26,46,74,0.07);
    border: 1px solid rgba(26,46,74,0.06);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rm-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(26,46,74,0.13);
}

.rm-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--rm-gold);
    margin-bottom: 1.25rem;
}

.rm-feature-icon--ai {
    background: linear-gradient(135deg, #1b3a5c 0%, #243d60 100%);
    box-shadow: 0 4px 12px rgba(232,160,32,0.20);
}

.rm-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rm-navy);
    margin-bottom: 0.6rem;
}

.rm-feature-text {
    color: #5a6a7a;
    line-height: 1.75;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* --- Páginas placeholder (ayuda, vídeos) --- */
.rm-placeholder-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--rm-gold);
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(26,46,74,0.18);
}

.rm-coming-soon {
    background: #fff;
    border: 1px solid rgba(26,46,74,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 16px rgba(26,46,74,0.07);
    display: inline-block;
    min-width: 320px;
}

/* --- Índice de ayuda --- */
.rm-help-index {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-help-index li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26,46,74,0.08);
}

.rm-help-index li:last-child {
    border-bottom: none;
}

.rm-help-bullet {
    color: var(--rm-gold);
    font-size: 0.75rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.rm-help-bullet--pending {
    color: #ced4da;
}

.rm-help-link {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--rm-navy);
    text-decoration: none;
    transition: color 0.15s;
}

.rm-help-link:hover {
    color: var(--rm-gold-dark);
    text-decoration: underline;
}

.rm-help-link-pending {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #adb5bd;
}

.rm-help-desc {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

/* --- Artículo de ayuda --- */
.rm-help-article {
    counter-reset: rm-section;
}

.rm-help-article p {
    text-align: justify;
    hyphens: auto;
}

.rm-help-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rm-navy);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.rm-help-section-title::before {
    counter-increment: rm-section;
    content: counter(rm-section);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-mid) 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}


.rm-help-note {
    background: #ebf8ff;
    border-left: 4px solid #63b3ed;
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #2c5282;
}
.rm-help-note strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2b6cb0;
}

.rm-help-highlight {
    background: #f0fff4;
    border-left: 4px solid #68d391;
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}
.rm-help-highlight .highlight-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #276749;
    margin-bottom: 0.5rem;
}
.rm-help-highlight p {
    color: #276749;
    margin: 0;
    font-size: 0.95rem;
}
