:root {
    --rmx-guinda: #7a1524;
    --rmx-guinda-dark: #560017;
    --rmx-guinda-light: #9c2436;
    --rmx-charcoal: #1f2626;
    --rmx-ink: #242c2c;
    --rmx-tan: #9a8571;
    --rmx-tan-soft: #b7a48f;
    --rmx-bg: #f3efe9;
    --rmx-panel: #ffffff;
    --rmx-border: #e7ded3;
    --rmx-sidebar-w: 288px;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: var(--rmx-bg);
    color: #3a4242;
    background-image: radial-gradient(var(--rmx-border) 1px, transparent 1px);
    background-size: 22px 22px;
}

h1, h2, h3, h4, .rmx-display, .rmx-h2, .rmx-h3 {
    font-family: "Archivo", "Inter", sans-serif;
    color: var(--rmx-charcoal);
    letter-spacing: -0.01em;
}

.rmx-ink { color: var(--rmx-charcoal) !important; }
.rmx-guinda-text { color: var(--rmx-guinda) !important; }
.rmx-tan-text { color: var(--rmx-tan) !important; }

.rmx-topbar {
    z-index: 1040;
    box-shadow: 0 2px 12px rgba(31, 38, 38, 0.06);
}

.rmx-logo-mini { width: 150px; height: auto; object-fit: contain; }

.rmx-sidebar {
    background: var(--rmx-panel);
    width: var(--rmx-sidebar-w);
    border-right: 1px solid var(--rmx-border);
}

.rmx-logo-box {
    height: 132px;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8f4 100%);
}

.rmx-logo-box img { max-height: 82px; width: auto; object-fit: contain; }

.rmx-nav-label {
    font-family: "Archivo", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rmx-nav .nav-link {
    color: var(--rmx-ink);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.rmx-nav .nav-link:hover {
    background: #f6efe9;
    color: var(--rmx-guinda);
}

.rmx-nav .nav-link.active {
    background: var(--rmx-guinda);
    color: #fff;
    box-shadow: 0 8px 20px rgba(122, 21, 36, 0.28);
}

.rmx-cta-card {
    border-radius: 18px;
    background: linear-gradient(150deg, var(--rmx-guinda) 0%, var(--rmx-guinda-dark) 100%);
    box-shadow: 0 14px 30px rgba(86, 0, 23, 0.3);
    overflow: hidden;
    position: relative;
}

.rmx-cta-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -32px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.rmx-cta-text { color: rgba(255, 255, 255, 0.82); }

.rmx-main {
    min-height: 100vh;
    padding: 1.25rem;
}

.rmx-toolbar {
    background: var(--rmx-panel);
    border: 1px solid var(--rmx-border);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 6px 18px rgba(31, 38, 38, 0.05);
}

.rmx-badge-live {
    background: rgba(122, 21, 36, 0.1);
    color: var(--rmx-guinda);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.4rem 0.8rem 0.4rem 0.5rem;
    font-size: 0.8rem;
}

.rmx-pulse {
    color: var(--rmx-guinda-light);
    animation: rmxpulse 1.6s ease-in-out infinite;
}

@keyframes rmxpulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.rmx-btn-guinda {
    background: var(--rmx-guinda);
    border: 1px solid var(--rmx-guinda);
    color: #fff;
    font-weight: 600;
    transition: background-color 0.18s ease;
}

.rmx-btn-guinda:hover {
    background: var(--rmx-guinda-dark);
    color: #fff;
}

.rmx-content { margin-top: 1.25rem; }

.rmx-panel {
    background: var(--rmx-panel);
    border: 1px solid var(--rmx-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(31, 38, 38, 0.07);
}

.rmx-kicker {
    font-family: "Archivo", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
}

.rmx-display {
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.04;
}

.rmx-lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--rmx-ink);
}

.rmx-panel p { line-height: 1.75; max-width: 68ch; }

.rmx-hero-figure {
    position: relative;
    background: var(--rmx-charcoal);
    min-height: 320px;
}

.rmx-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
    filter: saturate(1.05);
}

.rmx-hero-figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 38, 38, 0) 45%, rgba(86, 0, 23, 0.72) 100%);
    z-index: 1;
}

.rmx-hero-caption {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-family: "Archivo", sans-serif;
    background: rgba(31, 38, 38, 0.35);
    backdrop-filter: blur(4px);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.rmx-chip-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.1rem 1.5rem 1.35rem;
    background: #fbf8f4;
}

.rmx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--rmx-panel);
    border: 1px solid var(--rmx-border);
    color: var(--rmx-ink);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
}

.rmx-chip i { color: var(--rmx-guinda); }

.rmx-section-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(150deg, var(--rmx-charcoal), #33403f);
    box-shadow: 0 10px 22px rgba(31, 38, 38, 0.22);
}

.rmx-h2 {
    font-weight: 800;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.12;
}

.rmx-topic-card {
    background: var(--rmx-panel);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(31, 38, 38, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rmx-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(31, 38, 38, 0.14);
}

.rmx-topic-media { position: relative; overflow: hidden; }

.rmx-topic-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rmx-topic-card:hover .rmx-topic-img { transform: scale(1.04); }

.rmx-topic-tag {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: var(--rmx-guinda);
    color: #fff;
    font-family: "Archivo", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(86, 0, 23, 0.32);
}

.rmx-h3 {
    font-weight: 700;
    font-size: 1.28rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--rmx-border);
}

.btn-light { color: var(--rmx-guinda); }
.btn-light:hover { color: var(--rmx-guinda-dark); }

@media (min-width: 992px) {
    .rmx-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1030;
        visibility: visible !important;
        transform: none !important;
    }
    .rmx-main {
        margin-left: var(--rmx-sidebar-w);
        padding: 1.75rem 2rem;
    }
}

@media (max-width: 991.98px) {
    .rmx-main { padding-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .rmx-pulse { animation: none; }
    .rmx-topic-card, .rmx-topic-img { transition: none; }
}
