/*
 * B — RTM Single Guide Public Layout Cleaner v0.2.7.9
 * Frontend-only. No modifica datos; solo cambia presentación pública de guías.
 */

body.rtm-sgplc-active {
    --rtm-sgplc-blue: #0f172a;
    --rtm-sgplc-border: #d9e2ef;
    --rtm-sgplc-soft: #f8fbff;
    --rtm-sgplc-muted: #64748b;
    --rtm-sgplc-green-bg: #ecfdf5;
    --rtm-sgplc-green-border: #bbf7d0;
    --rtm-sgplc-orange-bg: #fff7ed;
    --rtm-sgplc-orange-border: #fed7aa;
}

body.rtm-sgplc-active [data-rtm-sgplc-hidden="true"],
body.rtm-sgplc-active [data-rtm-sgplc-leak-hidden="true"],
body.rtm-sgplc-active [data-rtm-sgplc-empty-shell="true"] {
    display: none !important;
}

body.rtm-sgplc-active .rtm-sgplc-public-summary,
body.rtm-sgplc-active .rtm-sgplc-safety-card,
body.rtm-sgplc-active .rtm-sgplc-action-card {
    width: 100%;
    max-width: 920px;
    margin: 16px 0 18px 0;
    padding: 18px 20px;
    border: 1px solid var(--rtm-sgplc-border);
    border-radius: 18px;
    background: var(--rtm-sgplc-soft);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

body.rtm-sgplc-active .rtm-sgplc-public-summary h2,
body.rtm-sgplc-active .rtm-sgplc-safety-card h2,
body.rtm-sgplc-active .rtm-sgplc-action-card h2 {
    margin: 0 0 8px 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    color: var(--rtm-sgplc-blue);
}

body.rtm-sgplc-active .rtm-sgplc-public-summary p,
body.rtm-sgplc-active .rtm-sgplc-safety-card p,
body.rtm-sgplc-active .rtm-sgplc-action-card li {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
}

body.rtm-sgplc-active .rtm-sgplc-action-card ol {
    margin: 8px 0 0 1.2em;
    padding: 0;
}

body.rtm-sgplc-active .rtm-sgplc-action-card li + li {
    margin-top: 6px;
}

body.rtm-sgplc-active .rtm-sgplc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

body.rtm-sgplc-active .rtm-sgplc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--rtm-sgplc-green-border);
    background: var(--rtm-sgplc-green-bg);
    font-size: 12px;
    font-weight: 700;
    color: #166534;
}

body.rtm-sgplc-active .rtm-sgplc-pill--risk-high {
    border-color: var(--rtm-sgplc-orange-border);
    background: var(--rtm-sgplc-orange-bg);
    color: #9a3412;
}

body.rtm-sgplc-active .rtm-sgplc-safety-card {
    background: #fff7ed;
    border-color: #fed7aa;
}

body.rtm-sgplc-active .rtm-sgplc-action-card {
    background: #ffffff;
}

body.rtm-sgplc-active .rtm-sgplc-soft-note {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rtm-sgplc-muted);
}

body.rtm-sgplc-active .rtm-sgplc-empty-section {
    display: none !important;
}

@media (max-width: 768px) {
    body.rtm-sgplc-active .rtm-sgplc-public-summary,
    body.rtm-sgplc-active .rtm-sgplc-safety-card,
    body.rtm-sgplc-active .rtm-sgplc-action-card {
        margin-left: 0;
        margin-right: 0;
        padding: 16px;
        border-radius: 16px;
    }
}

/* v0.1.7 — Balance de ancho y navegación rápida compacta.
   No usa transform/zoom y no modifica datos; solo presentación. */
body.rtm-sgplc-active .rtm-sgplc-public-layout-scope {
    width: min(100%, 1160px) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body.rtm-sgplc-active .rtm-sgplc-public-summary,
body.rtm-sgplc-active .rtm-sgplc-safety-card,
body.rtm-sgplc-active .rtm-sgplc-action-card,
body.rtm-sgplc-active .rtm-sgplc-balanced-card {
    max-width: 1080px !important;
    box-sizing: border-box !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav {
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    padding: 14px 16px !important;
    margin: 10px 0 18px 16px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav h1,
body.rtm-sgplc-active .rtm-sgplc-quicknav h2,
body.rtm-sgplc-active .rtm-sgplc-quicknav h3,
body.rtm-sgplc-active .rtm-sgplc-quicknav h4,
body.rtm-sgplc-active .rtm-sgplc-quicknav .widget-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 0 10px 0 !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav a,
body.rtm-sgplc-active .rtm-sgplc-quicknav button,
body.rtm-sgplc-active .rtm-sgplc-quicknav .button,
body.rtm-sgplc-active .rtm-sgplc-quicknav input[type="button"],
body.rtm-sgplc-active .rtm-sgplc-quicknav input[type="submit"] {
    display: block !important;
    width: 100% !important;
    max-width: 210px !important;
    min-height: 34px !important;
    margin: 8px 0 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav br {
    display: none !important;
}

/* Evita que contenedores de plantilla vacíos vuelvan a empujar la ficha. */
body.rtm-sgplc-active [data-rtm-sgplc-empty-shell="true"] + .rtm-sgplc-public-layout-scope,
body.rtm-sgplc-active [data-rtm-sgplc-leak-hidden="true"] + .rtm-sgplc-public-layout-scope {
    margin-top: 0 !important;
}

@media (min-width: 1200px) {
    body.rtm-sgplc-active .rtm-sgplc-public-layout-scope {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 768px) {
    body.rtm-sgplc-active .rtm-sgplc-public-layout-scope {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.rtm-sgplc-active .rtm-sgplc-quicknav {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
}


/* v0.2.7.8 — Pulido UI/UX accesible: contenedor legible, banner más contrastado,
   navegación rápida moderna, checklist con números y footer mínimo legible. */
body.rtm-sgplc-active .rtm-sgplc-public-layout-scope {
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.rtm-sgplc-active .rtm-sgplc-public-summary,
body.rtm-sgplc-active .rtm-sgplc-safety-card,
body.rtm-sgplc-active .rtm-sgplc-action-card,
body.rtm-sgplc-active .rtm-sgplc-balanced-card {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.rtm-sgplc-active .rtm-sgplc-seed-notice {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-color: #bfdbfe !important;
    background: #f8fbff !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

body.rtm-sgplc-active .rtm-sgplc-seed-notice,
body.rtm-sgplc-active .rtm-sgplc-seed-notice p,
body.rtm-sgplc-active .rtm-sgplc-seed-notice span,
body.rtm-sgplc-active .rtm-sgplc-seed-notice div {
    color: #1e293b !important;
}

body.rtm-sgplc-active .rtm-sgplc-seed-notice strong,
body.rtm-sgplc-active .rtm-sgplc-seed-notice b,
body.rtm-sgplc-active .rtm-sgplc-seed-notice h2,
body.rtm-sgplc-active .rtm-sgplc-seed-notice h3,
body.rtm-sgplc-active .rtm-sgplc-seed-notice [class*="title"] {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.rtm-sgplc-active .rtm-sgplc-seed-notice a,
body.rtm-sgplc-active .rtm-sgplc-seed-notice button,
body.rtm-sgplc-active .rtm-sgplc-seed-notice .button {
    font-weight: 700 !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    padding: 18px 18px !important;
    margin: 14px 0 22px 24px !important;
    border-radius: 16px !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav h1,
body.rtm-sgplc-active .rtm-sgplc-quicknav h2,
body.rtm-sgplc-active .rtm-sgplc-quicknav h3,
body.rtm-sgplc-active .rtm-sgplc-quicknav h4,
body.rtm-sgplc-active .rtm-sgplc-quicknav .widget-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
}

body.rtm-sgplc-active .rtm-sgplc-quicknav a,
body.rtm-sgplc-active .rtm-sgplc-quicknav button,
body.rtm-sgplc-active .rtm-sgplc-quicknav .button,
body.rtm-sgplc-active .rtm-sgplc-quicknav input[type="button"],
body.rtm-sgplc-active .rtm-sgplc-quicknav input[type="submit"] {
    max-width: 230px !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
}

body.rtm-sgplc-active .rtm-sgplc-action-card ol {
    list-style: none !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    counter-reset: rtm-sgplc-checks;
}

body.rtm-sgplc-active .rtm-sgplc-action-card li {
    position: relative;
    min-height: 30px;
    padding-left: 42px !important;
    margin-top: 10px !important;
}

body.rtm-sgplc-active .rtm-sgplc-action-card li::before {
    counter-increment: rtm-sgplc-checks;
    content: counter(rtm-sgplc-checks);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff8c00;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(255, 140, 0, 0.18);
}

body.rtm-sgplc-active footer,
body.rtm-sgplc-active footer a,
body.rtm-sgplc-active footer p,
body.rtm-sgplc-active footer li,
body.rtm-sgplc-active .site-footer,
body.rtm-sgplc-active .site-footer a,
body.rtm-sgplc-active .site-footer p,
body.rtm-sgplc-active .site-footer li {
    font-size: max(12.5px, 0.78rem) !important;
    line-height: 1.55 !important;
}

@media (min-width: 1440px) {
    body.rtm-sgplc-active .rtm-sgplc-public-layout-scope {
        width: min(100%, 960px) !important;
        max-width: 960px !important;
    }
}

@media (max-width: 768px) {
    body.rtm-sgplc-active .rtm-sgplc-public-layout-scope,
    body.rtm-sgplc-active .rtm-sgplc-public-summary,
    body.rtm-sgplc-active .rtm-sgplc-safety-card,
    body.rtm-sgplc-active .rtm-sgplc-action-card {
        max-width: 100% !important;
    }

    body.rtm-sgplc-active .rtm-sgplc-quicknav {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
}


/* v0.2.7.8 — Stable header/layout safe.
   No toca la cabecera global ni Elementor source; solo ordena el área pública del single guía. */
body.rtm-sgplc-active .site-header,
body.rtm-sgplc-active header,
body.rtm-sgplc-active .rh-header,
body.rtm-sgplc-active .main-nav,
body.rtm-sgplc-active #wpadminbar {
    max-width: none !important;
    transform: none !important;
}

/* Ancho de lectura: suficientemente profesional, sin verse perdido en ultra-panorámico. */
body.rtm-sgplc-active .rtm-sgplc-public-layout-scope {
    width: min(100%, 940px) !important;
    max-width: 940px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 2vw, 28px) !important;
    padding-right: clamp(16px, 2vw, 28px) !important;
    box-sizing: border-box !important;
}

body.rtm-sgplc-active .rtm-sgplc-public-layout-scope > h1,
body.rtm-sgplc-active .rtm-sgplc-public-layout-scope .entry-title,
body.rtm-sgplc-active .rtm-sgplc-public-layout-scope .elementor-heading-title {
    margin-bottom: 10px !important;
}

body.rtm-sgplc-active .rtm-sgplc-public-summary,
body.rtm-sgplc-active .rtm-sgplc-safety-card,
body.rtm-sgplc-active .rtm-sgplc-action-card,
body.rtm-sgplc-active .rtm-sgplc-balanced-card,
body.rtm-sgplc-active .rtm-sgplc-seed-notice {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Contenedor informativo superior: contraste más sólido y ritmo visual uniforme. */
body.rtm-sgplc-active .rtm-sgplc-seed-notice {
    margin-top: 18px !important;
    margin-bottom: 22px !important;
    padding: 18px 22px !important;
    border: 1px solid #b7d4ff !important;
    border-radius: 16px !important;
    background: #f5f9ff !important;
    color: #172033 !important;
}
body.rtm-sgplc-active .rtm-sgplc-seed-notice * {
    color: #172033 !important;
}
body.rtm-sgplc-active .rtm-sgplc-seed-notice strong,
body.rtm-sgplc-active .rtm-sgplc-seed-notice b,
body.rtm-sgplc-active .rtm-sgplc-seed-notice h2,
body.rtm-sgplc-active .rtm-sgplc-seed-notice h3 {
    color: #0b1b33 !important;
    font-weight: 800 !important;
}

/* Tarjetas públicas con el mismo ancho para evitar escalonamiento lateral. */
body.rtm-sgplc-active .rtm-sgplc-public-summary,
body.rtm-sgplc-active .rtm-sgplc-safety-card,
body.rtm-sgplc-active .rtm-sgplc-action-card {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    padding: 20px 22px !important;
    border-radius: 16px !important;
}

/* Lista de tareas visual naranja RTM. */
body.rtm-sgplc-active .rtm-sgplc-action-card ol {
    list-style: none !important;
    counter-reset: rtm-sgplc-task !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
}
body.rtm-sgplc-active .rtm-sgplc-action-card li {
    position: relative !important;
    padding-left: 40px !important;
    margin: 10px 0 0 0 !important;
}
body.rtm-sgplc-active .rtm-sgplc-action-card li::before {
    counter-increment: rtm-sgplc-task !important;
    content: counter(rtm-sgplc-task) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.08em !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ff8c00 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* Navegación rápida: moderna, compacta y no pegada al borde si todavía existe en alguna plantilla. */
body.rtm-sgplc-active .rtm-sgplc-quicknav {
    width: min(100%, 260px) !important;
    max-width: 260px !important;
    margin: 18px 0 24px clamp(16px, 3vw, 36px) !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
}
body.rtm-sgplc-active .rtm-sgplc-quicknav a,
body.rtm-sgplc-active .rtm-sgplc-quicknav button,
body.rtm-sgplc-active .rtm-sgplc-quicknav .button {
    border-radius: 10px !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
}

/* Footer: mantener enlaces legales legibles. */
body.rtm-sgplc-active footer,
body.rtm-sgplc-active footer a,
body.rtm-sgplc-active footer p,
body.rtm-sgplc-active footer li,
body.rtm-sgplc-active .site-footer,
body.rtm-sgplc-active .site-footer a,
body.rtm-sgplc-active .site-footer p,
body.rtm-sgplc-active .site-footer li {
    font-size: max(12.5px, 0.78rem) !important;
    line-height: 1.55 !important;
}

@media (max-width: 768px) {
    body.rtm-sgplc-active .rtm-sgplc-public-layout-scope,
    body.rtm-sgplc-active .rtm-sgplc-public-summary,
    body.rtm-sgplc-active .rtm-sgplc-safety-card,
    body.rtm-sgplc-active .rtm-sgplc-action-card,
    body.rtm-sgplc-active .rtm-sgplc-seed-notice {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* v0.2.7.2 — Provisional single shortcode, scoped and non-destructive */
body.rtm-sgplc-active .rtm-sgplc-provisional-single {
    max-width: 980px;
    margin: 0 auto 64px auto;
    padding: 0 18px;
    color: #0f172a;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 18px 0;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-nav a,
body.rtm-sgplc-active .rtm-sgplc-provisional-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-nav a:hover,
body.rtm-sgplc-active .rtm-sgplc-provisional-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
    border-color: #93c5fd;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-hero,
body.rtm-sgplc-active .rtm-sgplc-provisional-card,
body.rtm-sgplc-active .rtm-sgplc-provisional-body,
body.rtm-sgplc-active .rtm-sgplc-provisional-seed {
    width: 100%;
    margin: 16px 0;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-hero {
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
}
body.rtm-sgplc-active .rtm-sgplc-provisional-kicker {
    color: #2563eb;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-card,
body.rtm-sgplc-active .rtm-sgplc-provisional-body {
    padding: 22px 24px;
    border: 1px solid #d9e2ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
body.rtm-sgplc-active .rtm-sgplc-provisional-summary { background: #f8fbff; }
body.rtm-sgplc-active .rtm-sgplc-provisional-safety { background: #fff7ed; border-color: #fed7aa; }
body.rtm-sgplc-active .rtm-sgplc-provisional-card h2,
body.rtm-sgplc-active .rtm-sgplc-provisional-body h2 {
    margin: 0 0 12px 0;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    color: #0f172a;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-card p,
body.rtm-sgplc-active .rtm-sgplc-provisional-card li,
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content p,
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content li {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content h2,
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: #0f172a;
    line-height: 1.2;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content h2:first-child,
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content h3:first-child {
    margin-top: 0;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content ul,
body.rtm-sgplc-active .rtm-sgplc-provisional-body-content ol,
body.rtm-sgplc-active .rtm-sgplc-provisional-first-checks ol {
    padding-left: 1.35em;
    margin: 8px 0 0 0;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
body.rtm-sgplc-active .rtm-sgplc-provisional-actions a:first-child {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}
@media (max-width: 720px) {
    body.rtm-sgplc-active .rtm-sgplc-provisional-single { padding: 0 14px; }
    body.rtm-sgplc-active .rtm-sgplc-provisional-hero,
    body.rtm-sgplc-active .rtm-sgplc-provisional-card,
    body.rtm-sgplc-active .rtm-sgplc-provisional-body { padding: 18px; }
}


/* v0.2.7.8 — Pulido visual del cuerpo "Guía paso a paso".
   Solo afecta al shortcode propio rtm_b_single_guide_launch_single. */
body.rtm-sgplc-active .rtm-sgplc-provisional-single {
    max-width: 980px !important;
}

body.rtm-sgplc-active .rtm-sgplc-guide-step-body {
    background: #f8fbff !important;
    border-color: #d7e5f7 !important;
    padding: clamp(20px, 2.4vw, 30px) !important;
}

body.rtm-sgplc-active .rtm-sgplc-guide-step-body > h2 {
    margin: 0 0 18px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #dce8f6 !important;
    font-size: clamp(24px, 2.6vw, 34px) !important;
    line-height: 1.12 !important;
    color: #0f172a !important;
}

body.rtm-sgplc-active .rtm-sgplc-body-sections {
    display: grid !important;
    gap: 16px !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section {
    position: relative !important;
    padding: clamp(17px, 2vw, 24px) !important;
    border: 1px solid #dbe7f4 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035) !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section::before {
    content: "" !important;
    position: absolute !important;
    top: 18px !important;
    left: 0 !important;
    width: 4px !important;
    height: 32px !important;
    border-radius: 999px !important;
    background: #0056b3 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--warning,
body.rtm-sgplc-active .rtm-sgplc-step-section--prepare {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--warning::before,
body.rtm-sgplc-active .rtm-sgplc-step-section--prepare::before {
    background: #ff8c00 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--state,
body.rtm-sgplc-active .rtm-sgplc-step-section--related {
    background: #f8fafc !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section h2,
body.rtm-sgplc-active .rtm-sgplc-step-section h3 {
    margin: 0 0 10px 0 !important;
    font-size: clamp(20px, 2.15vw, 27px) !important;
    line-height: 1.2 !important;
    color: #111827 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section p,
body.rtm-sgplc-active .rtm-sgplc-step-section li {
    font-size: clamp(15px, 1.05vw, 16.5px) !important;
    line-height: 1.76 !important;
    color: #334155 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section p:last-child,
body.rtm-sgplc-active .rtm-sgplc-step-section ul:last-child,
body.rtm-sgplc-active .rtm-sgplc-step-section ol:last-child {
    margin-bottom: 0 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section ul,
body.rtm-sgplc-active .rtm-sgplc-step-section ol {
    margin: 8px 0 0 0 !important;
    padding-left: 1.35em !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section li + li {
    margin-top: 5px !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--steps ol {
    list-style: decimal !important;
    padding-left: 1.55em !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section strong,
body.rtm-sgplc-active .rtm-sgplc-step-section b {
    color: #0f172a !important;
    font-weight: 800 !important;
}

@media (max-width: 720px) {
    body.rtm-sgplc-active .rtm-sgplc-guide-step-body,
    body.rtm-sgplc-active .rtm-sgplc-step-section {
        padding: 16px !important;
        border-radius: 16px !important;
    }
}


/* v0.2.7.9 — Micro pulido visual seguro, solo dentro del single de guía propio.
   No afecta a .wp-block-heading global ni a otras páginas RTM. */
body.rtm-sgplc-active .rtm-sgplc-step-section h2,
body.rtm-sgplc-active .rtm-sgplc-step-section h3 {
    padding-left: 14px !important;
    border-left: 4px solid #2B6CB0 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--warning h2,
body.rtm-sgplc-active .rtm-sgplc-step-section--warning h3,
body.rtm-sgplc-active .rtm-sgplc-step-section--prepare h2,
body.rtm-sgplc-active .rtm-sgplc-step-section--prepare h3,
body.rtm-sgplc-active .rtm-sgplc-provisional-safety h2 {
    border-left-color: #ff8c00 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--errors ul,
body.rtm-sgplc-active .rtm-sgplc-step-section--warning ul,
body.rtm-sgplc-active .rtm-sgplc-step-section--errors ol,
body.rtm-sgplc-active .rtm-sgplc-step-section--warning ol {
    margin-left: 24px !important;
    padding-left: 0 !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--errors li,
body.rtm-sgplc-active .rtm-sgplc-step-section--warning li {
    margin-bottom: 8px !important;
}

body.rtm-sgplc-active .rtm-sgplc-step-section--state a.rtm-sgplc-inline-action-link {
    color: #0056b3 !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

body.rtm-sgplc-active .rtm-sgplc-provisional-community .rtm-sgplc-provisional-actions {
    align-items: center !important;
}

body.rtm-sgplc-active .rtm-sgplc-provisional-community .rtm-sgplc-provisional-actions a {
    min-height: 42px !important;
    padding: 10px 18px !important;
    border-width: 1px !important;
}

body.rtm-sgplc-active .rtm-sgplc-provisional-community .rtm-sgplc-provisional-actions a:first-child {
    background: #0056b3 !important;
    color: #ffffff !important;
    border-color: #0056b3 !important;
    box-shadow: 0 8px 18px rgba(0, 86, 179, 0.16) !important;
}

body.rtm-sgplc-active .rtm-sgplc-provisional-community .rtm-sgplc-provisional-actions a:nth-child(2) {
    background: #ffffff !important;
    color: #0056b3 !important;
    border-color: #8bb8ef !important;
}

body.rtm-sgplc-active .rtm-sgplc-provisional-community .rtm-sgplc-provisional-actions a:nth-child(3) {
    background: #f8fafc !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
