.rmgc-page {
    --rmgc-blue: #045db5;
    --rmgc-red: #c32421;
    --rmgc-ink: #11253b;
    --rmgc-muted: #43556a;
    --rmgc-line: #dce5ef;
    --rmgc-paper: #f1f6fc;
    box-sizing: border-box;
    width: min(100%, 980px);
    margin: 1.4rem auto 4rem;
    color: var(--rmgc-ink);
}
.rmgc-page *, .rmgc-page *::before, .rmgc-page *::after {
    box-sizing: inherit;
}
.rmgc-editorial .entry-title, .rmgc-editorial .wp-block-post-title {
    color: #11253b;
    font-size: clamp(2.35rem, 6vw, 4.6rem);
    line-height: .99;
    font-weight: 800;
    letter-spacing: -.06em;
    text-wrap: balance;
}
.rmgc-page .rmgc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 16rem;
    padding: clamp(1.6rem, 5.4vw, 3.6rem);
    border-radius: clamp(14px, 3vw, 26px);
    color: #fff;
    background: linear-gradient(110deg, #10263d 16%, #13375d 72%, #214575);
    box-shadow: 0 14px 35px #10263d20;
}
.rmgc-page.rmgc-listen .rmgc-hero {
    background: linear-gradient(110deg, #073970, #045db5);
}
.rmgc-page .rmgc-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -48% -17% -66% auto;
    width: min(54%, 31rem);
    border-radius: 50%;
    transform: rotate(-18deg);
    background: repeating-radial-gradient(ellipse, transparent 0 19px, #ffffff25 20px 22px, transparent 23px 39px);
    opacity: .62;
    pointer-events: none;
}
.rmgc-page .rmgc-hero::before {
    content: "";
    display: block;
    width: 3rem;
    height: .28rem;
    margin-bottom: 1.3rem;
    background: #f2574f;
    border-radius: 99px;
}
.rmgc-page .rmgc-hero p {
    max-width: 57ch;
    color: #fff;
    font-size: clamp(1.06rem, 1.9vw, 1.3rem);
    line-height: 1.6;
    font-weight: 500;
    margin: 0 0 1.5rem;
    text-wrap: pretty;
}
.rmgc-page .rmgc-section {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(1.65rem, 4vw, 3rem) 0;
    border-bottom: 1px solid var(--rmgc-line);
}
.rmgc-page .rmgc-section h2 {
    color: var(--rmgc-ink);
    font-size: clamp(1.48rem, 3.2vw, 2.25rem);
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.12;
    text-wrap: balance;
    margin: 0 0 .7em;
}
.rmgc-page .rmgc-section p {
    color: var(--rmgc-muted);
    font-size: clamp(1.01rem, 1.7vw, 1.13rem);
    line-height: 1.72;
    margin: 0 0 .95em;
    text-wrap: pretty;
}
.rmgc-page .rmgc-section p:last-child {
    margin-bottom: 0;
}
.rmgc-page .rmgc-promo {
    margin-block: 1.25rem .35rem;
    padding: clamp(1.25rem, 4vw, 2.4rem);
    background: var(--rmgc-paper);
    border: 1px solid var(--rmgc-line);
    border-top: 4px solid var(--rmgc-red);
    border-radius: 17px;
}
.rmgc-page a.rmgc-button {
    display: inline-flex;
    gap: .75em;
    align-items: center;
    justify-content: center;
    padding: .78rem 1.17rem;
    min-height: 48px;
    border-radius: .6rem;
    background: var(--rmgc-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .15s ease;
}
.rmgc-page a.rmgc-button::after {
    content: "→" / "";
}
.rmgc-page a.rmgc-button:hover {
    background: #9f1b19;
    color: #fff;
}
.rmgc-page a.rmgc-button.rmgc-light {
    background: #fff;
    color: #084b8d;
}
.rmgc-page a.rmgc-button.rmgc-light:hover {
    background: #eaf4ff;
}
.rmgc-page a.rmgc-link {
    color: #0455a2;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.rmgc-page a:focus-visible {
    outline: 3px solid #e89429;
    outline-offset: 4px;
}
@media (max-width: 560px) {
    .rmgc-page .rmgc-hero::after { opacity: .3; }
    .rmgc-page .rmgc-hero { min-height: 0; }
    .rmgc-page a.rmgc-button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .rmgc-page a.rmgc-button { transition: none; }
}

@font-face {
    font-family: "RMGC Poppins";
    src: url("assets/poppins-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "RMGC Poppins";
    src: url("assets/poppins-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "RMGC Poppins";
    src: url("assets/poppins-800.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}
.rmgc-layout {
    max-width: 1050px;
    margin-inline: auto;
    font-family: "RMGC Poppins", system-ui, sans-serif;
}
.rmgc-editorial .entry-title, .rmgc-editorial .wp-block-post-title {
    font-family: "RMGC Poppins", system-ui, sans-serif;
    color: #14273f;
    font-size: clamp(2rem, 5.4vw, 4.35rem);
    line-height: 1.06;
}
.rmgc-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: clamp(1rem, 3vw, 1.45rem) clamp(1rem, 4vw, 2rem);
    border: 1px solid #dce8f4;
    border-top: 4px solid #055db5;
    border-radius: 14px;
    background: #f3f8fc;
}
.rmgc-brand img {
    display: block;
    width: clamp(145px, 52vw, 264px);
    height: auto;
}
.rmgc-brand-link {
    color: #07549e;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.rmgc-layout .rmgc-page {
    width: 100%;
}
.rmgc-layout .rmgc-hero {
    padding: clamp(1.45rem, 5vw, 4rem);
    border-radius: 20px;
    background: #0e2439;
}
.rmgc-layout .rmgc-ad .rmgc-hero {
    background: linear-gradient(90deg, #0c2137 4%, #0d2339 36%, #0d2339a8 66%, #10243822),
                url("assets/mesa-de-sonido.webp") right center / 72% auto no-repeat, #0c2137;
}
.rmgc-layout .rmgc-listen .rmgc-hero {
    background: url("assets/app-radio-marca-gc.webp") right 6% center / auto 87% no-repeat,
                linear-gradient(105deg, #09284a 22%, #075caf);
}
.rmgc-layout .rmgc-hero::after { content: none; }
.rmgc-layout .rmgc-hero p { max-width: min(100%, 32rem); }
.rmgc-layout .rmgc-listen .rmgc-hero p { max-width: min(69%, 31rem); }
.rmgc-layout .rmgc-button { font-weight: 600; }
.rmgc-layout .rmgc-section { max-width: 800px; }
.rmgc-layout .rmgc-section h2 { color: #102947; }
.rmgc-layout .rmgc-promo { background: #f3f8fd; }
@media (max-width: 650px) {
    .rmgc-layout .rmgc-hero { border-radius: 15px; }
    .rmgc-layout .rmgc-ad .rmgc-hero {
        background: linear-gradient(0deg, #0c2137 52%, #0c213730), url("assets/mesa-de-sonido.webp") center top / 100% auto no-repeat, #0c2137;
        padding-top: clamp(5rem, 26vw, 9rem);
    }
    .rmgc-layout .rmgc-listen .rmgc-hero {
        background-size: auto 112px, cover;
        background-position: right 1rem top 1rem, center;
        padding-top: 7rem;
    }
    .rmgc-layout .rmgc-listen .rmgc-hero p { max-width: 100%; }
    .rmgc-layout .rmgc-section { padding-inline: .3rem; }
    .rmgc-layout .rmgc-promo { padding-inline: 1.2rem; }
}

.rmgc-layout .rmgc-section {
    box-sizing: border-box;
    max-width: none;
    background: #fff;
    padding: clamp(1.55rem, 5vw, 3.6rem);
}
.rmgc-layout .rmgc-section p {
    max-width: 74ch;
}
.rmgc-layout .rmgc-section.rmgc-band-blue,
.rmgc-layout .rmgc-section.rmgc-band-red {
    margin: 0;
    border: 0;
    border-radius: 0;
    color: white;
}
.rmgc-layout .rmgc-section.rmgc-band-blue {
    background: linear-gradient(120deg,#094f98,#055db5);
    border-radius: 14px 14px 0 0;
}
.rmgc-layout .rmgc-section.rmgc-band-red {
    background: linear-gradient(120deg,#a81c20,#c32521);
}
.rmgc-layout .rmgc-band-blue :is(h2,p,.rmgc-link),
.rmgc-layout .rmgc-band-red :is(h2,p,.rmgc-link) {
    color: white;
}
.rmgc-layout .rmgc-band-red a.rmgc-button {
    background: white;
    color: #9f1b19;
}
.rmgc-layout .rmgc-band-red a.rmgc-button:hover {
    background: #fff0ef;
}

.rmgc-layout .rmgc-hero {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
}
.rmgc-layout .rmgc-hero + .rmgc-section.rmgc-band-blue {
    border-radius: 0;
}
.rmgc-brand > a:first-child {
    min-width: 0;
}
.rmgc-brand img {
    max-width: 100%;
}
.rmgc-brand-link {
    flex: 0 0 auto;
    padding: .48rem .7rem;
    border-radius: 7px;
    background: #c32521;
    color: #fff;
    font-size: clamp(.68rem, 2.8vw, .85rem);
}
.rmgc-brand-link:hover {
    background: #9f1b19;
    color: #fff;
}

.rmgc-layout .rmgc-anuncio {
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
}

.rmgc-integrado .rmgc-hero {
    position: relative;
    isolation: isolate;
}
.rmgc-integrado .rmgc-hero::before {
    display: none;
}
.rmgc-integrado a.rmgc-anuncio {
    display: inline-flex;
    gap: .45em;
    margin-bottom: 1.25rem;
    padding: .45rem .8rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: #fff;
    color: #084b8d;
    font: 600 .85rem/1.5 "RMGC Poppins", system-ui, sans-serif;
    text-decoration: none;
}
.rmgc-integrado .rmgc-hero a.rmgc-anuncio:hover {
    background: #eaf4ff;
}
.rmgc-integrado .rmgc-section h2 {
    letter-spacing: -.026em;
}
.rmgc-integrado .rmgc-hero p {
    font-size: clamp(1rem, 1.75vw, 1.17rem);
}
@media (max-width: 650px) {
    .rmgc-integrado .rmgc-ad .rmgc-hero {
        background: #0c2137;
    }
    .rmgc-integrado .rmgc-ad .rmgc-hero::after {
        display: block;
        content: "";
        inset: 0 0 auto;
        width: 100%;
        height: clamp(9rem, 48vw, 16rem);
        border-radius: 0;
        transform: none;
        opacity: 1;
        background: linear-gradient(to bottom, #0c21371f 0%, #0c2137 100%),
            url("assets/mesa-de-sonido.webp") center / cover no-repeat;
    }
}

/* Portada y secciones de las páginas municipales. */
.rmgc-editorial .entry-title,
.rmgc-editorial .wp-block-post-title {
    font-size: clamp(2.25rem, 5.5vw, 4.4rem);
    letter-spacing: -.048em;
    text-wrap: balance;
}
.rmgc-integrado .rmgc-page {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 34px #09284a10;
}
.rmgc-integrado .rmgc-hero {
    background-color: #0c2137;
    min-height: 0;
}
.rmgc-integrado .rmgc-hero p {
    margin-bottom: 1.65rem;
    line-height: 1.65;
    max-width: min(100%, 55ch);
}
.rmgc-integrado .rmgc-hero a.rmgc-anuncio {
    margin: .55rem 0 .55rem .85rem;
    padding: .45rem .15rem;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
    text-underline-offset: .25em;
    vertical-align: middle;
}
.rmgc-integrado .rmgc-hero a.rmgc-anuncio:hover {
    color: #c9e5ff;
    background: transparent;
}
.rmgc-integrado .rmgc-hero a.rmgc-button {
    vertical-align: middle;
}
.rmgc-integrado .rmgc-section h2 {
    max-width: 28ch;
    text-wrap: balance;
    margin-bottom: .9em;
}
.rmgc-integrado .rmgc-section:not(.rmgc-band-blue):not(.rmgc-band-red) h2 {
    color: #055db5;
}
.rmgc-integrado .rmgc-section p {
    max-width: 66ch;
}
@media (min-width: 651px) {
    .rmgc-integrado .rmgc-listen .rmgc-hero p {
        max-width: min(64%, 52ch);
    }
}
@media (max-width: 650px) {
    .rmgc-integrado .rmgc-page { border-radius: 15px; }
    .rmgc-integrado .rmgc-ad .rmgc-hero { padding-top: clamp(8rem, 36vw, 11rem); }
    .rmgc-integrado .rmgc-hero a.rmgc-anuncio {
        display: flex;
        width: fit-content;
        margin: .65rem 0 0;
    }
}
