/**
 * REDECOMSA-ASSETS-3.1.1
 *
 * Estructura institucional inicial.
 * No contiene copias de Bootstrap ni Font Awesome.
 */

:root {
    --redecomsa-surface: #ffffff;
    --redecomsa-background: #f7f8fa;
    --redecomsa-ink: #20252b;
    --redecomsa-muted: #667085;
    --redecomsa-border: rgba(32, 37, 43, 0.13);
    --redecomsa-footer: #171a1f;
    --redecomsa-radius: 0.75rem;
    --redecomsa-shadow:
        0 12px 34px rgba(17, 24, 39, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--redecomsa-ink);
    background: var(--redecomsa-background);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   ENCABEZADO
   ===================================================== */

#g-header.redecomsa-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--redecomsa-ink);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--redecomsa-border);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
    backdrop-filter: blur(14px);
    transition:
        box-shadow 180ms ease,
        background-color 180ms ease;
}

#g-header.redecomsa-header.redecomsa-header-scrolled {
    box-shadow: var(--redecomsa-shadow);
}

#g-header.redecomsa-header .g-container {
    width: min(calc(100% - 2rem), 1240px);
}

#g-header.redecomsa-header .g-grid {
    align-items: center;
}

#g-header.redecomsa-header .g-content {
    margin: 0;
    padding: 0.7rem 0.85rem;
}

/* Logotipo */

.redecomsa-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.redecomsa-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

/* Navegación */

#g-header .g-main-nav {
    text-align: right;
}

#g-header .g-main-nav .g-toplevel {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.05rem;
}

#g-header .g-main-nav .g-toplevel > li {
    margin: 0;
}

#g-header
.g-main-nav
.g-toplevel
> li
> .g-menu-item-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.65rem 0.55rem;
    color: var(--redecomsa-ink);
    border-radius: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.22;
    text-align: center;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease;
}

#g-header
.g-main-nav
.g-toplevel
> li
> .g-menu-item-container:hover,
#g-header
.g-main-nav
.g-toplevel
> li
> .g-menu-item-container:focus-visible {
    color: #000000;
    background: rgba(32, 37, 43, 0.06);
}

#g-header
.g-main-nav
.g-toplevel
> li.active
> .g-menu-item-container {
    color: #000000;
    background: rgba(32, 37, 43, 0.08);
}

#g-header
.g-main-nav
.g-toplevel
> li.active
> .g-menu-item-container::after {
    position: absolute;
    right: 0.55rem;
    bottom: 0.28rem;
    left: 0.55rem;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 999px;
}

/* =====================================================
   CONTENIDO
   ===================================================== */

#g-main.redecomsa-main {
    min-height: 55vh;
    background: var(--redecomsa-background);
}

#g-main.redecomsa-main .g-container {
    width: min(calc(100% - 2rem), 1240px);
}

#g-main.redecomsa-main .g-content {
    margin: 0;
    padding: 2rem 0.85rem;
}

/* =====================================================
   PIE DE PÁGINA
   ===================================================== */

#g-footer.redecomsa-footer {
    color: rgba(255, 255, 255, 0.82);
    background: var(--redecomsa-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#g-footer.redecomsa-footer .g-container {
    width: min(calc(100% - 2rem), 1240px);
}

#g-footer.redecomsa-footer .g-content {
    margin: 0;
    padding: 1.35rem 0.85rem;
}

.redecomsa-footer-legal .nav,
.redecomsa-footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem 1.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.redecomsa-footer-legal .nav-item,
.redecomsa-footer-legal li {
    margin: 0;
    padding: 0;
}

.redecomsa-footer-legal a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.redecomsa-footer-legal a:hover,
.redecomsa-footer-legal a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

/* =====================================================
   MENÚ MÓVIL
   ===================================================== */

.g-offcanvas-toggle {
    color: #ffffff;
    background: var(--redecomsa-footer);
    border-radius: 0 0 0.5rem 0;
}

#g-offcanvas.redecomsa-offcanvas {
    color: #ffffff;
    background: var(--redecomsa-footer);
}

#g-offcanvas .g-menu-item-container {
    color: rgba(255, 255, 255, 0.9);
}

#g-offcanvas .active > .g-menu-item-container {
    color: #ffffff;
    font-weight: 800;
}

/* =====================================================
   ACCESIBILIDAD Y UTILIDADES
   ===================================================== */

html:not(.redecomsa-assets-ready) .redecomsa-js-required {
    display: none !important;
}

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 64rem) {
    #g-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container {
        padding-right: 0.38rem;
        padding-left: 0.38rem;
        font-size: 0.74rem;
    }
}

@media (max-width: 48rem) {
    #g-header.redecomsa-header {
        position: relative;
    }

    #g-header.redecomsa-header .g-container,
    #g-main.redecomsa-main .g-container,
    #g-footer.redecomsa-footer .g-container {
        width: min(calc(100% - 1rem), 1240px);
    }

    #g-header.redecomsa-header .g-content {
        padding: 0.6rem 0.5rem;
    }

    .redecomsa-logo img {
        max-height: 56px;
    }

    #g-main.redecomsa-main .g-content {
        padding: 1.35rem 0.5rem;
    }
}

/* REDECOMSA-HOME-1.2.0 START */

/*
 * Portada institucional.
 * Este bloque utiliza la paleta estructural neutral existente.
 * No altera encabezado, navegación, footer ni offcanvas.
 */

.redecomsa-home {
    --rdc-home-dark: var(--redecomsa-footer);
    --rdc-home-soft: #eef1f4;
    --rdc-home-line: var(--redecomsa-border);
    --rdc-home-radius: 1.1rem;

    width: 100%;
}

.redecomsa-home,
.redecomsa-home *,
.redecomsa-home *::before,
.redecomsa-home *::after {
    box-sizing: border-box;
}

.redecomsa-home h1,
.redecomsa-home h2,
.redecomsa-home h3,
.redecomsa-home p {
    margin-top: 0;
}

.rdc-hero {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1.42fr)
        minmax(17rem, 0.58fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 6vw, 5.25rem);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 84% 14%,
            rgba(255, 255, 255, 0.14),
            transparent 33%
        ),
        linear-gradient(
            135deg,
            #171a1f 0%,
            #303842 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--rdc-home-radius);
    box-shadow: var(--redecomsa-shadow);
    overflow: hidden;
}

.rdc-hero__content,
.rdc-hero__panel {
    position: relative;
    z-index: 1;
}

.rdc-eyebrow {
    margin-bottom: 0.7rem;
    color: var(--redecomsa-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.rdc-hero .rdc-eyebrow,
.rdc-cta .rdc-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.rdc-hero h1 {
    max-width: 16ch;
    margin-bottom: 1.15rem;
    color: #ffffff;
    font-size: clamp(2.15rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.rdc-hero__lead {
    max-width: 66ch;
    margin-bottom: 1.65rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
}

.rdc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rdc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.15rem;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition:
        transform 160ms ease,
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.rdc-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.rdc-button--primary {
    color: var(--rdc-home-dark);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.rdc-button--primary:hover,
.rdc-button--primary:focus-visible {
    color: #000000;
    background: #f2f4f6;
}

.rdc-button--secondary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.42);
}

.rdc-button--secondary:hover,
.rdc-button--secondary:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-color: #ffffff;
}

.rdc-hero__panel {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.9rem;
    backdrop-filter: blur(12px);
}

.rdc-hero__item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 0.65rem;
}

.rdc-hero__item strong,
.rdc-hero__item span {
    display: block;
}

.rdc-hero__item strong {
    margin-bottom: 0.2rem;
    color: #ffffff;
    font-size: 1rem;
}

.rdc-hero__item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.55;
}

.rdc-home-section {
    padding: clamp(3rem, 7vw, 6.25rem) 0;
}

.rdc-section-heading {
    max-width: 52rem;
    margin-bottom: 2rem;
}

.rdc-section-heading h2,
.rdc-audience h2,
.rdc-cta h2 {
    margin-bottom: 0.8rem;
    color: var(--rdc-home-dark);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.rdc-section-heading > p:last-child,
.rdc-audience > p {
    color: var(--redecomsa-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.rdc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rdc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(1.35rem, 3vw, 2.1rem);
    background: var(--redecomsa-surface);
    border: 1px solid var(--rdc-home-line);
    border-radius: var(--rdc-home-radius);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.045);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.rdc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(32, 37, 43, 0.22);
    box-shadow: var(--redecomsa-shadow);
}

.rdc-card__number {
    display: inline-flex;
    margin-bottom: 1.1rem;
    color: var(--redecomsa-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.rdc-card h3 {
    margin-bottom: 0.65rem;
    color: var(--rdc-home-dark);
    font-size: 1.2rem;
    font-weight: 800;
}

.rdc-card p {
    color: var(--redecomsa-muted);
    line-height: 1.7;
}

.rdc-card a,
.rdc-text-link {
    color: var(--rdc-home-dark);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.rdc-card a {
    margin-top: auto;
    padding-top: 0.35rem;
}

.rdc-process {
    padding-right: clamp(1rem, 4vw, 3rem);
    padding-left: clamp(1rem, 4vw, 3rem);
    background: var(--rdc-home-soft);
    border: 1px solid var(--rdc-home-line);
    border-radius: var(--rdc-home-radius);
}

.rdc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rdc-steps li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.rdc-steps li > span {
    display: inline-flex;
    flex: 0 0 2.4rem;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: #ffffff;
    background: var(--rdc-home-dark);
    border-radius: 50%;
    font-weight: 900;
}

.rdc-steps h3 {
    margin-bottom: 0.3rem;
    color: var(--rdc-home-dark);
    font-size: 1rem;
    font-weight: 800;
}

.rdc-steps p {
    color: var(--redecomsa-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.rdc-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rdc-audience {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--redecomsa-surface);
    border: 1px solid var(--rdc-home-line);
    border-radius: var(--rdc-home-radius);
}

.rdc-audience h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.rdc-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: clamp(1.7rem, 5vw, 3.5rem);
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #171a1f,
            #303842
        );
    border-radius: var(--rdc-home-radius);
    box-shadow: var(--redecomsa-shadow);
}

.rdc-cta > div {
    max-width: 48rem;
}

.rdc-cta h2 {
    color: #ffffff;
}

.rdc-cta p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.rdc-button--light {
    flex: 0 0 auto;
    color: var(--rdc-home-dark);
    background: #ffffff;
}

.rdc-button--light:hover,
.rdc-button--light:focus-visible {
    color: #000000;
    background: #eef1f4;
}

@media (max-width: 62rem) {
    .rdc-hero {
        grid-template-columns: 1fr;
    }

    .rdc-hero h1 {
        max-width: 18ch;
    }

    .rdc-card-grid {
        grid-template-columns: 1fr;
    }

    .rdc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 42rem) {
    .rdc-hero {
        padding: 1.5rem;
    }

    .rdc-actions {
        flex-direction: column;
    }

    .rdc-button {
        width: 100%;
    }

    .rdc-steps,
    .rdc-audience-grid {
        grid-template-columns: 1fr;
    }

    .rdc-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .redecomsa-home *,
    .redecomsa-home *::before,
    .redecomsa-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* REDECOMSA-HOME-1.2.0 END */

/* REDECOMSA-BRAND-1.3.0 START */

/*
 * Identidad derivada del logotipo REDECOMSA:
 * azul marino, azul comercial, naranja y ámbar.
 */

:root {
    --redecomsa-navy: #003070;
    --redecomsa-navy-dark: #001b48;
    --redecomsa-blue: #0080d0;
    --redecomsa-blue-light: #0090e0;
    --redecomsa-orange: #f04000;
    --redecomsa-orange-light: #ff6000;
    --redecomsa-amber: #ffa010;

    --redecomsa-background: #f4f8fc;
    --redecomsa-ink: #102a43;
    --redecomsa-muted: #52677d;
    --redecomsa-border: rgba(0, 48, 112, 0.16);
    --redecomsa-footer: #001b48;
    --redecomsa-shadow:
        0 14px 36px rgba(0, 48, 112, 0.12);
}

/* Encabezado y logotipo */

#rx-placeholder {
    display: none;
}

#g-header {
    color: inherit;
}

#g-header .redecomsa-logo img {
    width: auto;
    max-height: 72px;
}

#g-header
.g-main-nav
.g-toplevel
> li
> .g-menu-item-container:hover,
#g-header
.g-main-nav
.g-toplevel
> li
> .g-menu-item-container:focus-visible {
    color: var(--redecomsa-navy);
    background: rgba(0, 128, 208, 0.08);
}

#g-header
.g-main-nav
.g-toplevel
> li.active
> .g-menu-item-container {
    color: var(--redecomsa-navy);
    background: rgba(0, 128, 208, 0.1);
}

#g-header
.g-main-nav
.g-toplevel
> li.active
> .g-menu-item-container::after {
    background:
        linear-gradient(
            90deg,
            var(--redecomsa-blue),
            var(--redecomsa-orange)
        );
}

/* Portada */

.rdc-hero {
    background:
        radial-gradient(
            circle at 84% 14%,
            rgba(255, 160, 16, 0.22),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            var(--redecomsa-navy-dark) 0%,
            var(--redecomsa-navy) 58%,
            #005aa0 100%
        );
}

.rdc-button--primary {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--redecomsa-orange),
            var(--redecomsa-orange-light)
        );
    box-shadow:
        0 10px 24px rgba(240, 64, 0, 0.28);
}

.rdc-button--primary:hover,
.rdc-button--primary:focus-visible {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #d93a00,
            var(--redecomsa-orange)
        );
}

.rdc-card__number,
.rdc-eyebrow {
    color: var(--redecomsa-navy);
}

.rdc-card:hover {
    border-color: rgba(0, 128, 208, 0.38);
    box-shadow:
        0 16px 34px rgba(0, 48, 112, 0.12);
}

.rdc-card a,
.rdc-text-link {
    color: var(--redecomsa-navy);
}

.rdc-card a:hover,
.rdc-card a:focus-visible,
.rdc-text-link:hover,
.rdc-text-link:focus-visible {
    color: var(--redecomsa-orange);
}

.rdc-steps li > span {
    background:
        linear-gradient(
            135deg,
            var(--redecomsa-navy),
            var(--redecomsa-blue)
        );
}

.rdc-process {
    background:
        linear-gradient(
            135deg,
            rgba(0, 128, 208, 0.055),
            rgba(255, 160, 16, 0.045)
        );
}

.rdc-cta {
    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(255, 160, 16, 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--redecomsa-navy-dark),
            var(--redecomsa-navy)
        );
}

/*
 * Limpieza exclusiva de la página Inicio.
 */

body.itemid-101 dl.article-info,
body.itemid-101 .article-info,
body.itemid-101 .icons,
body.itemid-101 .pagenavigation,
body.itemid-101 .pager,
body.itemid-101 nav.pagination,
body.itemid-101 .pagination {
    display: none !important;
}

/*
 * Ocultar el módulo completo de breadcrumbs en Inicio.
 * :has() evita dejar visible el título del módulo.
 */

body.itemid-101 .g-breadcrumbs,
body.itemid-101 .mod-breadcrumbs,
body.itemid-101 .platform-content:has(.mod-breadcrumbs),
body.itemid-101 .moduletable:has(.mod-breadcrumbs),
body.itemid-101 nav[aria-label="Breadcrumbs"],
body.itemid-101 nav[aria-label="breadcrumb"] {
    display: none !important;
}

/*
 * Mayor aprovechamiento del ancho en celular.
 */

@media (max-width: 48rem) {
    body.itemid-101 #g-main.redecomsa-main .g-container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    body.itemid-101 #g-main.redecomsa-main .g-content {
        margin: 0;
        padding: 0;
    }

    body.itemid-101 .item-page,
    body.itemid-101 .com-content-article,
    body.itemid-101 .redecomsa-home {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.itemid-101 .redecomsa-home {
        padding: 0 0.75rem 1.25rem;
    }

    body.itemid-101 .rdc-hero {
        padding: 1.35rem;
        border-radius: 0.9rem;
    }

    body.itemid-101 .rdc-hero h1 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 2.85rem);
        letter-spacing: -0.04em;
    }

    body.itemid-101 .rdc-home-section {
        padding-top: 2.6rem;
        padding-bottom: 2.6rem;
    }

    body.itemid-101 .rdc-card,
    body.itemid-101 .rdc-audience {
        padding: 1.3rem;
    }

    body.itemid-101 .rdc-process {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    body.itemid-101 .rdc-cta {
        padding: 1.4rem;
    }

    #g-header .redecomsa-logo img {
        max-height: 60px;
    }
}

@media (max-width: 25rem) {
    body.itemid-101 .redecomsa-home {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    body.itemid-101 .rdc-hero {
        padding: 1.15rem;
    }

    body.itemid-101 .rdc-hero h1 {
        font-size: 2rem;
    }
}

/* REDECOMSA-BRAND-1.3.0 END */

/* REDECOMSA-MOBILE-CONSOLIDATED-2.0.0 START */

/* =====================================================
   TABLET Y MÓVIL: ENCABEZADO Y MENÚ
   ===================================================== */

.rdc-mobile-navbar {
    display: none;
}

@media (max-width: 64rem) {
    #g-header.redecomsa-header {
        position: relative;
        z-index: 1000;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #g-header.redecomsa-header .g-container,
    #g-header.redecomsa-header .g-grid,
    #g-header.redecomsa-header .g-block,
    #g-header.redecomsa-header .g-content {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    #g-header.redecomsa-header .g-grid {
        display: block;
    }

    #g-header.redecomsa-header
    .g-grid > .g-block:nth-child(2),
    #g-header.redecomsa-header .g-main-nav {
        display: none !important;
    }

    #g-header.redecomsa-header .g-content {
        padding: 0;
    }

    #g-header.redecomsa-header
    .g-logo,
    #g-header.redecomsa-header
    .redecomsa-logo {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0.75rem;
        background: #ffffff;
    }

    #g-header.redecomsa-header
    .g-logo img,
    #g-header.redecomsa-header
    .redecomsa-logo img {
        display: block;
        width: min(350px, 100%);
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    .rdc-mobile-navbar {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 3.6rem;
        margin: 0;
        padding: 0.45rem 0.75rem 0.45rem 1rem;
        color: #ffffff;
        background:
            linear-gradient(
                90deg,
                var(--redecomsa-navy, #003070),
                var(--redecomsa-blue, #0080d0)
            );
        border-radius: 0;
        box-shadow:
            0 0.2rem 0.7rem
            rgba(0, 35, 85, 0.18);
    }

    .rdc-mobile-navbar__label {
        min-width: 0;
        padding-right: 0.75rem;
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.055em;
        line-height: 1.15;
        text-transform: uppercase;
    }

    .rdc-mobile-navbar
    .g-offcanvas-toggle {
        position: static !important;
        inset: auto !important;
        display: inline-flex !important;
        flex: 0 0 2.65rem;
        align-items: center;
        justify-content: center;
        width: 2.65rem !important;
        min-width: 2.65rem !important;
        height: 2.65rem !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        background:
            linear-gradient(
                135deg,
                var(--redecomsa-orange, #f04000),
                var(--redecomsa-orange-light, #ff6000)
            ) !important;
        border:
            1px solid
            rgba(255, 255, 255, 0.35);
        border-radius: 0.7rem !important;
        box-shadow:
            0 0.3rem 0.75rem
            rgba(0, 20, 55, 0.25);
        transform: none !important;
    }

    .rdc-mobile-navbar
    .g-offcanvas-toggle i {
        margin: 0 !important;
        color: inherit !important;
        font-size: 1.3rem !important;
        line-height: 1 !important;
    }

    #g-offcanvas {
        width: min(86vw, 20rem);
        max-width: calc(100vw - 0.75rem);
        color: #ffffff;
        background:
            linear-gradient(
                180deg,
                #00245a 0%,
                #001b48 100%
            );
    }

    #g-offcanvas
    #g-mobilemenu-container
    ul {
        margin: 0;
        padding: 0.75rem 0 1rem;
    }

    #g-offcanvas
    #g-mobilemenu-container
    ul > li {
        margin: 0;
        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.1);
    }

    #g-offcanvas
    #g-mobilemenu-container
    ul > li
    > .g-menu-item-container {
        display: flex;
        align-items: center;
        min-height: 3.2rem;
        padding: 0.85rem 1.15rem;
        color: rgba(255, 255, 255, 0.94);
        font-size: 0.93rem;
        font-weight: 700;
        line-height: 1.3;
    }

    #g-offcanvas
    #g-mobilemenu-container
    ul > li.active
    > .g-menu-item-container {
        color: #ffffff;
        background:
            linear-gradient(
                90deg,
                var(--redecomsa-orange, #f04000),
                var(--redecomsa-orange-light, #ff6000)
            );
    }
}

/* =====================================================
   TELÉFONO: SIN GUTTER BOOTSTRAP
   ===================================================== */

@media (max-width: 47.99rem) {
    html,
    body,
    #g-page-surround {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    #g-header,
    #g-main,
    #g-footer,
    #g-header .g-container,
    #g-header .g-grid,
    #g-header .g-block,
    #g-header .g-content,
    #g-main .g-container,
    #g-main .g-grid,
    #g-main .g-block,
    #g-main .g-content,
    #g-main .platform-content,
    #g-main .item-page,
    #g-main .com-content-article,
    #g-footer .g-container,
    #g-footer .g-grid,
    #g-footer .g-block,
    #g-footer .g-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    /*
     * Bootstrap genera un gutter de 12 px:
     *
     * .row  -> márgenes negativos
     * .col  -> padding izquierdo y derecho
     *
     * Esta era la causa exacta de la franja blanca.
     */

    body.itemid-101
    #g-main
    .row {
        display: block !important;
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.itemid-101
    #g-main
    .row > .col,
    body.itemid-101
    #g-main
    .row > [class^="col-"],
    body.itemid-101
    #g-main
    .row > [class*=" col-"] {
        box-sizing: border-box;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.itemid-101 .redecomsa-home,
    .redecomsa-home {
        position: static !important;
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    /*
     * Hero exterior: fondo de extremo a extremo.
     */

    body.itemid-101 .rdc-hero,
    .redecomsa-home .rdc-hero {
        position: relative;
        box-sizing: border-box;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background:
            linear-gradient(
                135deg,
                var(--redecomsa-dark, #001b48) 0%,
                var(--redecomsa-navy, #003070) 100%
            ) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        overflow: hidden;
    }

    body.itemid-101 .rdc-hero::before,
    body.itemid-101 .rdc-hero::after,
    .redecomsa-home .rdc-hero::before,
    .redecomsa-home .rdc-hero::after {
        display: none !important;
        content: none !important;
    }

    /*
     * Los hijos directos reales del hero son:
     *
     * div.rdc-hero__content
     * aside.rdc-hero__panel
     */

    body.itemid-101
    .rdc-hero > .rdc-hero__content,
    .redecomsa-home
    .rdc-hero > .rdc-hero__content {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding:
            1.5rem
            1rem
            0.9rem !important;
        background: transparent !important;
        transform: none !important;
    }

    body.itemid-101
    .rdc-hero > .rdc-hero__panel,
    .redecomsa-home
    .rdc-hero > .rdc-hero__panel {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding:
            0
            1rem
            1.5rem !important;
        background: transparent !important;
        transform: none !important;
    }

    /*
     * Compatibilidad por si posteriormente se agrega
     * una cuadrícula interior.
     */

    body.itemid-101 .rdc-hero__grid,
    .redecomsa-home .rdc-hero__grid {
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .redecomsa-home
    > .rdc-home-section,
    .redecomsa-home
    > .rdc-process,
    .redecomsa-home
    > .rdc-cta {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
    }

    /*
     * Secciones interiores: padding real de 16 px.
     */

    .redecomsa-home
    .rdc-home-section:not(.rdc-hero):not(.rdc-process):not(.rdc-cta),
    .redecomsa-home .rdc-process,
    .redecomsa-home .rdc-cta {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .redecomsa-home h1,
    .redecomsa-home h2,
    .redecomsa-home h3,
    .redecomsa-home p,
    .redecomsa-home a {
        max-width: 100% !important;
        word-break: normal !important;
        overflow-wrap: break-word;
        hyphens: none !important;
    }

    .redecomsa-home .rdc-hero h1 {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        font-size:
            clamp(
                1.8rem,
                8.4vw,
                2.15rem
            ) !important;
        line-height: 1.08 !important;
    }

    .redecomsa-home
    .rdc-hero__eyebrow {
        margin-bottom: 0.85rem !important;
        line-height: 1.35;
    }

    .redecomsa-home
    .rdc-hero__lead {
        margin-top: 0 !important;
        margin-bottom: 1.2rem !important;
        font-size: 1rem;
        line-height: 1.65;
    }

    .redecomsa-home .rdc-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        gap: 0.65rem;
        margin: 0 !important;
    }

    .redecomsa-home .rdc-button,
    .redecomsa-home .rdc-card,
    .redecomsa-home .rdc-audience,
    .redecomsa-home .rdc-hero__item {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .redecomsa-home .rdc-button {
        white-space: normal;
        text-align: center;
    }
}

/* REDECOMSA-MOBILE-CONSOLIDATED-2.0.0 END */

/* REDECOMSA-DESKTOP-NAV-FOOTER-2.5.0 START */

/* =====================================================
   PIE DE PÁGINA
   ===================================================== */

#g-footer.redecomsa-footer {
    position: relative;
    margin-top: 0;
    border-top:
        4px solid
        var(--redecomsa-orange, #f04000);
    box-shadow:
        inset 0 1px 0
        rgba(255, 160, 16, 0.35);
}

/* =====================================================
   ESCRITORIO: CABECERA Y NAVEGACIÓN
   ===================================================== */

@media (min-width: 64.01rem) {
    #g-header.redecomsa-header {
        position: relative;
        z-index: 1000;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #ffffff;
        border: 0;
        box-shadow:
            0 0.4rem 1.35rem
            rgba(0, 35, 85, 0.13);
    }

    #g-header.redecomsa-header .g-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    #g-header.redecomsa-header .g-grid {
        display: flex;
        flex-flow: row wrap;
        width: 100%;
        margin: 0;
    }

    /*
     * Primera fila: logotipo.
     */

    #g-header.redecomsa-header
    .g-grid > .g-block:first-child {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    #g-header.redecomsa-header
    .g-grid > .g-block:first-child
    .g-content {
        margin: 0;
        padding: 1rem 1.5rem 0.9rem;
    }

    #g-header.redecomsa-header
    .g-logo,
    #g-header.redecomsa-header
    .redecomsa-logo,
    #g-header.redecomsa-header
    .g-logo img,
    #g-header.redecomsa-header
    .redecomsa-logo img {
        display: block;
        width: 350px !important;
        min-width: 350px !important;
        max-width: 350px !important;
        height: auto !important;
        margin: 0 auto;
    }

    /*
     * Segunda fila: barra azul.
     */

    #g-header.redecomsa-header
    .g-grid > .g-block:nth-child(2) {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        background:
            linear-gradient(
                90deg,
                #001b48 0%,
                #003070 50%,
                #0080d0 100%
            );
        border-top:
            1px solid
            rgba(255, 255, 255, 0.1);
        border-bottom:
            3px solid
            var(--redecomsa-orange, #f04000);
    }

    #g-header.redecomsa-header
    .g-grid > .g-block:nth-child(2)
    .g-content {
        margin: 0;
        padding: 0;
    }

    #g-header.redecomsa-header
    .g-main-nav {
        width: 100%;
    }

    /*
     * Columnas proporcionadas según el texto.
     */

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel {
        display: grid;
        grid-template-columns:
            0.72fr
            1.02fr
            0.74fr
            1.30fr
            0.72fr
            1.28fr
            1.05fr
            0.72fr;
        align-items: stretch;
        width: 100%;
        max-width: 90rem;
        margin: 0 auto;
        padding: 0;
        gap: 0;
        background: transparent !important;
    }

    /*
     * Gantry aplica fondo al li.active.
     * Se neutraliza explícitamente.
     */

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li.active,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li.g-selected {
        position: relative;
        display: flex;
        align-items: stretch;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: transparent !important;
        background-color: transparent !important;
        border-left:
            1px solid
            rgba(255, 255, 255, 0.09);
        box-shadow: none !important;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li:last-child {
        border-right:
            1px solid
            rgba(255, 255, 255, 0.09);
    }

    /*
     * Enlace base.
     */

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container {
        position: relative;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 4.2rem;
        margin: 0;
        padding: 0.78rem 0.55rem;
        color: rgba(255, 255, 255, 0.96) !important;
        background: transparent !important;
        background-color: transparent !important;
        font-size: 0.83rem;
        font-weight: 700;
        letter-spacing: 0.005em;
        line-height: 1.22;
        text-align: center;
        text-decoration: none;
        white-space: normal;
        text-wrap: balance;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transition:
            color 160ms ease,
            background 160ms ease,
            box-shadow 160ms ease;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-menu-item-content,
    #g-header.redecomsa-header
    .g-main-nav
    .g-menu-item-title {
        color: inherit !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    /*
     * Línea inferior para hover.
     */

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container::after {
        position: absolute;
        right: 1rem;
        bottom: 0;
        left: 1rem;
        height: 0.2rem;
        content: "";
        background:
            var(--redecomsa-amber, #ffa010);
        border-radius: 999px 999px 0 0;
        opacity: 0;
        transform: scaleX(0.35);
        transition:
            opacity 160ms ease,
            transform 160ms ease;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container:hover,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container:focus-visible {
        color: #ffffff !important;
        background:
            rgba(255, 255, 255, 0.11) !important;
        box-shadow:
            inset 0 0 1.1rem
            rgba(0, 128, 208, 0.16);
        outline:
            2px solid
            rgba(255, 160, 16, 0.45);
        outline-offset: -2px;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container:hover::after,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container:focus-visible::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /*
     * Elemento activo:
     * sin fondo blanco y sin bloque naranja completo.
     */

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li.active
    > .g-menu-item-container,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li.g-selected
    > .g-menu-item-container {
        color: #ffffff !important;
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.16),
                rgba(255, 255, 255, 0.07)
            ) !important;
        background-color:
            rgba(255, 255, 255, 0.1) !important;
        box-shadow:
            inset 0 -0.28rem 0
            var(--redecomsa-orange, #f04000),
            inset 0 1px 0
            rgba(255, 255, 255, 0.16) !important;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li.active
    > .g-menu-item-container::after,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li.g-selected
    > .g-menu-item-container::after {
        display: none;
    }
}

/*
 * Escritorio intermedio.
 */

@media (min-width: 64.01rem) and (max-width: 76rem) {
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container {
        min-height: 4.35rem;
        padding-right: 0.38rem;
        padding-left: 0.38rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 64.01rem) {
    /* =================================================
       PORTADA: ESPACIO SUPERIOR COMPACTO
       ================================================= */

    body.itemid-101
    #g-main.redecomsa-main {
        padding-top: 0 !important;
    }

    body.itemid-101
    #g-main.redecomsa-main
    .g-container,
    body.itemid-101
    #g-main.redecomsa-main
    .g-grid,
    body.itemid-101
    #g-main.redecomsa-main
    .g-block,
    body.itemid-101
    #g-main.redecomsa-main
    .g-content,
    body.itemid-101
    #g-main.redecomsa-main
    .platform-content,
    body.itemid-101
    #g-main.redecomsa-main
    .item-page,
    body.itemid-101
    #g-main.redecomsa-main
    .com-content-article,
    body.itemid-101
    .redecomsa-home,
    body.itemid-101
    .rdc-hero {
        margin-top: 0 !important;
    }

    body.itemid-101
    #g-main.redecomsa-main
    .g-content {
        padding-top: 0 !important;
    }
}

/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 47.99rem) {
    body.itemid-101 .rdc-mobile-navbar {
        margin-bottom: 0 !important;
        border-bottom:
            3px solid
            var(--redecomsa-orange, #f04000) !important;
        box-shadow: none;
    }

    body.itemid-101 .rdc-hero {
        margin-top: 0 !important;
        border-top: 0 !important;
    }

    body.itemid-101
    #g-main.redecomsa-main,
    body.itemid-101
    #g-main.redecomsa-main
    .g-container,
    body.itemid-101
    #g-main.redecomsa-main
    .g-grid,
    body.itemid-101
    #g-main.redecomsa-main
    .g-block,
    body.itemid-101
    #g-main.redecomsa-main
    .g-content,
    body.itemid-101
    #g-main.redecomsa-main
    .platform-content,
    body.itemid-101
    #g-main.redecomsa-main
    .item-page,
    body.itemid-101
    #g-main.redecomsa-main
    .com-content-article,
    body.itemid-101
    .redecomsa-home {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.itemid-101
    .redecomsa-home
    > :last-child {
        margin-bottom: 0 !important;
    }

    body.itemid-101
    #g-footer.redecomsa-footer {
        margin-top: 0 !important;
        border-top:
            4px solid
            var(--redecomsa-orange, #f04000);
    }
}

/* REDECOMSA-DESKTOP-NAV-FOOTER-2.5.0 END */

/* REDECOMSA-INTERIOR-2.9.0 START */

/* =====================================================
   CONTENEDOR GENERAL
   ===================================================== */

.rdc-interior {
    --rdc-interior-width: 76rem;
    --rdc-interior-radius: 1.35rem;
    --rdc-interior-shadow:
        0 1rem 2.6rem rgba(0, 35, 85, 0.11);

    box-sizing: border-box;
    width: min(
        calc(100% - 2rem),
        var(--rdc-interior-width)
    );
    max-width: var(--rdc-interior-width);
    margin: 0 auto 3rem;
    color: #17324f;
}

.rdc-interior *,
.rdc-interior *::before,
.rdc-interior *::after {
    box-sizing: border-box;
}

.rdc-interior h1,
.rdc-interior h2,
.rdc-interior h3,
.rdc-interior p {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.rdc-interior h1,
.rdc-interior h2,
.rdc-interior h3 {
    color: inherit;
}

.rdc-interior p {
    line-height: 1.7;
}

/* =====================================================
   OCULTAR ELEMENTOS NATIVOS DE JOOMLA
   ===================================================== */

body:has(#g-main .rdc-interior)
#g-main
.platform-content:has(.mod-breadcrumbs),
body:has(#g-main .rdc-interior)
#g-main
.platform-content:has(.breadcrumb),
body:has(#g-main .rdc-interior)
#g-main
.mod-breadcrumbs,
body:has(#g-main .rdc-interior)
#g-main
.breadcrumb,
body:has(#g-main .rdc-interior)
#g-main
.breadcrumbs {
    display: none !important;
}

body:has(#g-main .rdc-interior)
#g-main
.item-page
> .icons,
body:has(#g-main .rdc-interior)
#g-main
.item-page
> .article-info,
body:has(#g-main .rdc-interior)
#g-main
.item-page
> .pagenavigation {
    display: none !important;
}

body:has(#g-main .rdc-interior)
#g-main.redecomsa-main {
    padding-top: 0 !important;
}

body:has(#g-main .rdc-interior)
#g-main.redecomsa-main
.g-content,
body:has(#g-main .rdc-interior)
#g-main.redecomsa-main
.platform-content,
body:has(#g-main .rdc-interior)
#g-main.redecomsa-main
.item-page,
body:has(#g-main .rdc-interior)
#g-main.redecomsa-main
.com-content-article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =====================================================
   HERO INTERIOR
   ===================================================== */

.rdc-interior-hero {
    position: relative;
    padding:
        clamp(2.5rem, 5vw, 4.8rem)
        clamp(1.5rem, 5vw, 4.5rem);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(0, 144, 224, 0.34),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #001b48 0%,
            #003070 58%,
            #005aa0 100%
        );
    border-bottom:
        0.3rem solid
        var(--redecomsa-orange, #f04000);
    border-radius:
        var(--rdc-interior-radius)
        var(--rdc-interior-radius)
        0
        0;
    box-shadow: var(--rdc-interior-shadow);
    overflow: hidden;
}

.rdc-interior-hero::after {
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 16rem;
    height: 16rem;
    content: "";
    border:
        2.5rem solid
        rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.rdc-interior-eyebrow,
.rdc-interior-kicker {
    margin: 0 0 0.8rem;
    color:
        var(--redecomsa-amber, #ffa010);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.rdc-interior-hero h1 {
    max-width: 52rem;
    margin: 0 0 1.15rem;
    color: #ffffff;
    font-size:
        clamp(
            2.25rem,
            5.4vw,
            4.7rem
        );
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.rdc-interior-lead {
    max-width: 58rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size:
        clamp(
            1rem,
            1.7vw,
            1.22rem
        );
    line-height: 1.75 !important;
}

/* =====================================================
   BOTONES
   ===================================================== */

.rdc-interior-actions {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.65rem;
}

.rdc-interior .rdc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.78rem 1.25rem;
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: 0.75rem;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.rdc-interior .rdc-button:hover,
.rdc-interior .rdc-button:focus-visible {
    transform: translateY(-2px);
}

.rdc-interior .rdc-button--primary {
    color: #ffffff !important;
    background:
        linear-gradient(
            135deg,
            var(--redecomsa-orange, #f04000),
            var(--redecomsa-orange-light, #ff6000)
        );
    border:
        1px solid
        rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0.65rem 1.3rem
        rgba(240, 64, 0, 0.25);
}

.rdc-interior .rdc-button--primary:hover,
.rdc-interior .rdc-button--primary:focus-visible {
    color: #ffffff !important;
    box-shadow:
        0 0.85rem 1.7rem
        rgba(240, 64, 0, 0.32);
}

.rdc-interior-hero
.rdc-button--secondary,
.rdc-interior-cta
.rdc-button--secondary {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07);
    border:
        1px solid
        rgba(255, 255, 255, 0.5);
}

.rdc-interior-hero
.rdc-button--secondary:hover,
.rdc-interior-hero
.rdc-button--secondary:focus-visible,
.rdc-interior-cta
.rdc-button--secondary:hover,
.rdc-interior-cta
.rdc-button--secondary:focus-visible {
    color: #003070 !important;
    background: #ffffff;
    border-color: #ffffff;
}

/* =====================================================
   SECCIONES
   ===================================================== */

.rdc-interior-section {
    padding:
        clamp(2.25rem, 4.5vw, 4.2rem)
        clamp(1.25rem, 4.5vw, 4rem);
    background: #ffffff;
    border-right:
        1px solid
        rgba(0, 48, 112, 0.08);
    border-left:
        1px solid
        rgba(0, 48, 112, 0.08);
}

.rdc-interior-section + .rdc-interior-section {
    border-top:
        1px solid
        rgba(0, 48, 112, 0.08);
}

.rdc-about-intro {
    display: grid;
    grid-template-columns:
        minmax(0, 0.82fr)
        minmax(0, 1.18fr);
    align-items: start;
    gap:
        clamp(1.5rem, 4vw, 4rem);
}

.rdc-interior-heading h2 {
    margin: 0;
    color: #003070;
    font-size:
        clamp(
            1.7rem,
            3.2vw,
            2.65rem
        );
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.rdc-interior-copy p {
    margin: 0;
    color: #425d78;
    font-size: 1.02rem;
}

.rdc-interior-copy p + p {
    margin-top: 1rem;
}

.rdc-about-model {
    background:
        linear-gradient(
            180deg,
            #f5f9fd 0%,
            #edf5fc 100%
        );
}

.rdc-about-model
.rdc-interior-heading,
.rdc-about-services
.rdc-interior-heading {
    max-width: 50rem;
    margin-bottom: 2rem;
}

/* =====================================================
   TARJETAS DEL PROCESO
   ===================================================== */

.rdc-process-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rdc-process-card {
    position: relative;
    min-width: 0;
    padding: 1.55rem;
    background: #ffffff;
    border:
        1px solid
        rgba(0, 80, 160, 0.11);
    border-radius: 1rem;
    box-shadow:
        0 0.75rem 1.8rem
        rgba(0, 48, 112, 0.07);
}

.rdc-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #003070,
            #0080d0
        );
    font-size: 0.78rem;
    font-weight: 900;
    border-radius: 50%;
}

.rdc-process-card h3 {
    margin: 0 0 0.65rem;
    color: #003070;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

.rdc-process-card p {
    margin: 0;
    color: #526b82;
    font-size: 0.94rem;
}

/* =====================================================
   TARJETAS DE SERVICIOS
   ===================================================== */

.rdc-feature-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rdc-feature-card {
    position: relative;
    min-width: 0;
    padding: 1.45rem 1.45rem 1.45rem 1.75rem;
    background: #ffffff;
    border:
        1px solid
        rgba(0, 48, 112, 0.1);
    border-radius: 0.95rem;
    box-shadow:
        0 0.65rem 1.5rem
        rgba(0, 48, 112, 0.055);
    overflow: hidden;
}

.rdc-feature-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.32rem;
    content: "";
    background:
        linear-gradient(
            180deg,
            var(--redecomsa-orange, #f04000),
            var(--redecomsa-amber, #ffa010)
        );
}

.rdc-feature-card h3 {
    margin: 0 0 0.55rem;
    color: #003070;
    font-size: 1.08rem;
    font-weight: 800;
}

.rdc-feature-card p {
    margin: 0;
    color: #526b82;
    font-size: 0.95rem;
}

/* =====================================================
   NOTA INFORMATIVA
   ===================================================== */

.rdc-information-note {
    display: grid;
    grid-template-columns:
        minmax(0, 0.88fr)
        minmax(0, 1.12fr);
    align-items: center;
    gap:
        clamp(1.5rem, 4vw, 3.5rem);
    background:
        linear-gradient(
            135deg,
            #fff8f4 0%,
            #f4f9fd 100%
        );
    border-left:
        0.35rem solid
        var(--redecomsa-orange, #f04000);
}

.rdc-information-note h2 {
    margin: 0;
    color: #003070;
    font-size:
        clamp(
            1.55rem,
            2.7vw,
            2.25rem
        );
    line-height: 1.16;
}

.rdc-information-note > p {
    margin: 0;
    color: #425d78;
}

/* =====================================================
   CTA FINAL
   ===================================================== */

.rdc-interior-cta {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(15rem, 0.75fr);
    align-items: center;
    gap: 2rem;
    padding:
        clamp(2.25rem, 4.5vw, 4rem)
        clamp(1.25rem, 4.5vw, 4rem);
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #001b48,
            #003070 62%,
            #0063a8
        );
    border-top:
        0.3rem solid
        var(--redecomsa-orange, #f04000);
    border-radius:
        0
        0
        var(--rdc-interior-radius)
        var(--rdc-interior-radius);
    box-shadow: var(--rdc-interior-shadow);
}

.rdc-interior-cta h2 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size:
        clamp(
            1.65rem,
            3vw,
            2.55rem
        );
    font-weight: 800;
    line-height: 1.12;
}

.rdc-interior-cta p {
    max-width: 45rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.rdc-interior-cta
.rdc-interior-actions {
    justify-content: flex-end;
    margin-top: 0;
}

/* =====================================================
   TABLETA
   ===================================================== */

@media (max-width: 64rem) {
    .rdc-about-intro,
    .rdc-information-note,
    .rdc-interior-cta {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdc-process-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .rdc-interior-cta
    .rdc-interior-actions {
        justify-content: flex-start;
    }
}

/* =====================================================
   CELULAR: ANCHO COMPLETO Y PADDING INTERNO
   ===================================================== */

@media (max-width: 47.99rem) {
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main {
        width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .g-container,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .g-grid,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .g-block,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .g-content,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .platform-content,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .item-page,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .com-content-article,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .row {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .row > .col,
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .row > [class^="col-"],
    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .row > [class*=" col-"] {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .rdc-interior {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .rdc-interior-hero {
        padding: 1.65rem 1rem 1.85rem;
        border-radius: 0;
        box-shadow: none;
    }

    .rdc-interior-hero::after {
        right: -8rem;
        bottom: -9rem;
    }

    .rdc-interior-hero h1 {
        font-size:
            clamp(
                2rem,
                11vw,
                2.8rem
            );
    }

    .rdc-interior-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .rdc-interior .rdc-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .rdc-interior-section {
        padding: 2.2rem 1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .rdc-about-intro,
    .rdc-information-note,
    .rdc-interior-cta,
    .rdc-process-grid,
    .rdc-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdc-process-grid,
    .rdc-feature-grid {
        gap: 0.8rem;
    }

    .rdc-process-card,
    .rdc-feature-card {
        padding: 1.25rem;
    }

    .rdc-feature-card {
        padding-left: 1.55rem;
    }

    .rdc-information-note {
        border-left: 0;
        border-top:
            0.3rem solid
            var(--redecomsa-orange, #f04000);
    }

    .rdc-interior-cta {
        padding: 2.25rem 1rem 2.5rem;
        border-radius: 0;
        box-shadow: none;
    }

    body:has(#g-main .rdc-interior)
    #g-footer.redecomsa-footer {
        margin-top: 0 !important;
    }
}

/* REDECOMSA-INTERIOR-2.9.0 END */

/* REDECOMSA-INTERIOR-CONTINUITY-2.7.0 START */

/*
 * Regla permanente para páginas interiores REDECOMSA:
 * - línea naranja continua bajo el encabezado;
 * - línea naranja continua sobre el footer;
 * - breadcrumbs sin ocupar espacio;
 * - sin rellenos residuales al inicio o al final.
 */

@media (max-width: 64rem) {

    body:has(#g-main .rdc-interior)
    #g-header.redecomsa-header {
        margin-bottom: 0 !important;
        border-bottom:
            4px solid
            var(
                --redecomsa-orange,
                #f04000
            ) !important;
    }

    /*
     * La línea queda a cargo del encabezado completo.
     * Se evitan bordes parciales en partículas interiores.
     */

    body:has(#g-main .rdc-interior)
    #g-header.redecomsa-header
    .g-main-nav,

    body:has(#g-main .rdc-interior)
    #g-header.redecomsa-header
    .g-main-nav-container,

    body:has(#g-main .rdc-interior)
    #g-header.redecomsa-header
    nav {
        margin-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    /*
     * El primer grid de la estructura actual contiene
     * "Está aquí..." y mide 22 px.
     *
     * El selector estructural solamente se activa cuando
     * el tercer grid contiene una página .rdc-interior.
     */

    body:has(
        #g-main.redecomsa-main
        > .g-container
        > .g-grid:nth-child(3)
        .rdc-interior
    )
    #g-main.redecomsa-main
    > .g-container
    > .g-grid:first-child {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /*
     * Respaldo semántico para otras páginas interiores
     * donde el módulo conserve clases de breadcrumbs.
     */

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    > .g-container
    > .g-grid:has(
        .mod-breadcrumbs,
        .breadcrumb,
        .breadcrumbs,
        [class*="breadcrumb"],
        nav[aria-label*="breadcrumb" i]
    ) {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    > .g-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .g-content {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body:has(#g-main .rdc-interior)
    #g-main.redecomsa-main
    .rdc-interior {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body:has(#g-main .rdc-interior)
    #g-footer.redecomsa-footer {
        margin-top: 0 !important;
        border-top:
            4px solid
            var(
                --redecomsa-orange,
                #f04000
            ) !important;
    }
}

/* REDECOMSA-INTERIOR-CONTINUITY-2.7.0 END */

/* REDECOMSA-HEADER-TOOLS-3.0.2 START */

/*
 * Encabezado REDECOMSA:
 *
 * Fila blanca:
 * - logotipo centrado;
 * - barra de accesos rápidos a la derecha.
 *
 * Fila azul:
 * - navegación principal al 100 %;
 * - línea naranja continua.
 *
 * La posición header-access podrá recibir posteriormente
 * módulos para correo y redes sociales.
 */

#position-header-access-particle,
.header-access.moduletable,
.header-access .platform-content,
.header-access .rdc-account-access-wrap {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rdc-account-access-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/*
 * Apariencia inspirada en la referencia compartida:
 * botón compacto, cuadrado y con esquinas suaves.
 */

.rdc-account-access {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    text-decoration: none !important;
    background:
        linear-gradient(
            145deg,
            #ff6000,
            #f04000
        );
    border:
        1px solid
        rgba(180, 42, 0, 0.28);
    border-radius: 0.38rem;
    box-shadow:
        0 0.18rem 0.5rem
        rgba(0, 35, 85, 0.18);
    transition:
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.rdc-account-access .fa {
    display: block;
    margin: 0;
    padding: 0;
    color: inherit !important;
    font-size: 1.08rem;
    line-height: 1;
}

.rdc-account-access:hover,
.rdc-account-access:focus-visible {
    color: #ffffff !important;
    text-decoration: none !important;
    background:
        linear-gradient(
            145deg,
            #003070,
            #0080d0
        );
    box-shadow:
        0 0.25rem 0.7rem
        rgba(0, 48, 112, 0.25);
    transform: translateY(-1px);
}

.rdc-account-access:focus-visible {
    outline:
        3px solid
        rgba(255, 160, 16, 0.42);
    outline-offset: 2px;
}

.rdc-account-access-wrap.is-authenticated
.rdc-account-access {
    background:
        linear-gradient(
            145deg,
            #0080d0,
            #003070
        );
}

/*
 * Estructura común del encabezado.
 */

#g-header.redecomsa-header
> .g-container {
    position: relative;
}

#g-header.redecomsa-header
> .g-container
> .g-grid:first-child {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    background: #ffffff;
}

#g-header.redecomsa-header
> .g-container
> .g-grid:first-child
> .g-block:first-child {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/*
 * Se neutralizan las antiguas reglas que interpretaban
 * al segundo bloque como la navegación azul.
 */

#g-header.redecomsa-header
> .g-container
> .g-grid:first-child
> .g-block:nth-child(2) {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    z-index: 1100;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: translateY(-50%);
}

#g-header.redecomsa-header
> .g-container
> .g-grid:first-child
> .g-block:nth-child(2)
> .g-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/*
 * Segunda fila: menú principal.
 */

#g-header.redecomsa-header
> .g-container
> .g-grid:nth-child(2) {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(
            90deg,
            #001b48 0%,
            #003070 50%,
            #0080d0 100%
        );
    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);
    border-bottom:
        3px solid
        var(
            --redecomsa-orange,
            #f04000
        );
}

#g-header.redecomsa-header
> .g-container
> .g-grid:nth-child(2)
> .g-block {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

#g-header.redecomsa-header
> .g-container
> .g-grid:nth-child(2)
> .g-block
> .g-content {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/*
 * Garantía para conservar el diseño de navegación.
 */

@media (min-width: 64.01rem) {

    #g-header.redecomsa-header
    > .g-container
    > .g-grid:nth-child(2)
    .g-main-nav {
        display: block;
        width: 100%;
    }

    #g-header.redecomsa-header
    > .g-container
    > .g-grid:nth-child(2)
    .g-main-nav
    .g-toplevel {
        display: grid;
        grid-template-columns:
            0.72fr
            1.02fr
            0.74fr
            1.30fr
            0.72fr
            1.28fr
            1.05fr
            0.72fr;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent !important;
    }
}

/*
 * Tableta y celular.
 *
 * El botón hamburguesa continúa del lado izquierdo
 * y la barra de accesos permanece del lado derecho.
 */

@media (max-width: 64rem) {

    #g-header.redecomsa-header
    > .g-container
    > .g-grid:first-child
    > .g-block:nth-child(2) {
        display: block !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        right: 0.8rem;
        z-index: 1200;
    }

    #g-header.redecomsa-header
    > .g-container
    > .g-grid:first-child
    > .g-block:first-child
    .g-content {
        padding-right: 3.8rem !important;
        padding-left: 3.8rem !important;
    }

    .rdc-account-access {
        width: 2.3rem;
        height: 2.3rem;
    }

    .rdc-account-access .fa {
        font-size: 1.02rem;
    }
}

@media (max-width: 47.99rem) {

    #g-header.redecomsa-header
    > .g-container
    > .g-grid:first-child
    .redecomsa-logo img {
        width: min(100%, 17.5rem) !important;
        min-width: 0 !important;
        max-width: 17.5rem !important;
        height: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rdc-account-access {
        transition: none;
    }
}

/* REDECOMSA-HEADER-TOOLS-3.0.2 END */

/* REDECOMSA-LOGIN-3.1.1 START */

/*
 * Página pública de acceso a la gestión de catálogos.
 * Limitada estrictamente al Itemid 114.
 */

body.itemid-114 #g-main.redecomsa-main {
    box-sizing: border-box;
    margin: 0;
    padding:
        clamp(1.25rem, 2.5vw, 2rem)
        1rem
        clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(0, 144, 224, 0.18),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #001b48 0%,
            #003070 56%,
            #006ab5 100%
        );
}

/*
 * Estructura específica de la ruta de acceso:
 * - oculta breadcrumbs;
 * - colapsa mensajes cuando no existen;
 * - conserva mensajes de validación cuando aparecen.
 */

body.itemid-114
#g-main.redecomsa-main
> .g-container
> .g-grid:has(.mod-breadcrumbs) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.itemid-114
#g-main.redecomsa-main
> .g-container
> .g-grid:has(#system-message-container:empty) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.itemid-114
#g-main.redecomsa-main
> .g-container
> .g-grid {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.itemid-114
#g-main.redecomsa-main
> .g-container
> .g-grid
> .g-block {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.itemid-114
#g-main.redecomsa-main
> .g-container
> .g-grid
> .g-block
> .g-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.itemid-114
#g-main.redecomsa-main
> .g-container
> .g-grid:has(
    #system-message-container:not(:empty)
) {
    margin-bottom: 1rem !important;
}

body.itemid-114
#g-main.redecomsa-main
> .g-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0;
}

body.itemid-114
#g-main.redecomsa-main
.g-grid,
body.itemid-114
#g-main.redecomsa-main
.g-block,
body.itemid-114
#g-main.redecomsa-main
.g-content,
body.itemid-114
#g-main.redecomsa-main
.platform-content,
body.itemid-114
#g-main.redecomsa-main
.container,
body.itemid-114
#g-main.redecomsa-main
.row,
body.itemid-114
#g-main.redecomsa-main
.col {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

body.itemid-114
#g-main.redecomsa-main
.g-content {
    padding-right: 0;
    padding-left: 0;
}

body.itemid-114
.com-users-login.login {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding:
        clamp(1.6rem, 4vw, 2.75rem);
    overflow: hidden;
    color: #182b42;
    background: #ffffff;
    border:
        1px solid
        rgba(0, 48, 112, 0.14);
    border-top:
        0.38rem solid
        var(
            --redecomsa-orange,
            #f04000
        );
    border-radius: 1rem;
    box-shadow:
        0 1.4rem 3.5rem
        rgba(0, 20, 55, 0.28);
}

body.itemid-114
.com-users-login.login::before {
    position: absolute;
    top: -4.5rem;
    right: -4.5rem;
    width: 10rem;
    height: 10rem;
    content: "";
    background:
        radial-gradient(
            circle,
            rgba(0, 128, 208, 0.18),
            transparent 68%
        );
    border-radius: 50%;
    pointer-events: none;
}

body.itemid-114
.com-users-login
.page-header {
    position: relative;
    margin: 0 0 0.8rem;
    padding: 0;
    border: 0;
}

body.itemid-114
.com-users-login
.page-header h1 {
    margin: 0;
    color:
        var(
            --redecomsa-navy,
            #003070
        );
    font-size:
        clamp(
            1.75rem,
            5vw,
            2.35rem
        );
    font-weight: 800;
    line-height: 1.12;
}

body.itemid-114
.com-users-login
.page-header::after {
    display: block;
    width: 3.5rem;
    height: 0.24rem;
    margin-top: 0.8rem;
    content: "";
    background:
        var(
            --redecomsa-orange,
            #f04000
        );
    border-radius: 999px;
}

body.itemid-114
.com-users-login
form {
    position: relative;
    margin: 1.6rem 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.itemid-114
.com-users-login
fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

body.itemid-114
.com-users-login
.control-group {
    margin: 0 0 1.05rem;
}

body.itemid-114
.com-users-login
.control-label {
    margin-bottom: 0.38rem;
}

body.itemid-114
.com-users-login
label {
    color: #183554;
    font-size: 0.92rem;
    font-weight: 700;
}

body.itemid-114
.com-users-login
.form-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 0.85rem;
    color: #132c49;
    background: #f8fbff;
    border:
        1px solid
        rgba(0, 48, 112, 0.24);
    border-radius: 0.52rem;
    box-shadow: none;
}

body.itemid-114
.com-users-login
.form-control:focus {
    background: #ffffff;
    border-color:
        var(
            --redecomsa-blue,
            #0080d0
        );
    box-shadow:
        0 0 0 0.2rem
        rgba(0, 128, 208, 0.14);
    outline: 0;
}

body.itemid-114
.com-users-login
.password-group {
    display: flex;
    width: 100%;
}

body.itemid-114
.com-users-login
.password-group
.form-control {
    border-radius:
        0.52rem 0 0 0.52rem;
}

body.itemid-114
.com-users-login
.password-group
button {
    min-width: 3rem;
    color: #ffffff;
    background:
        var(
            --redecomsa-blue,
            #0080d0
        );
    border-color:
        var(
            --redecomsa-blue,
            #0080d0
        );
    border-radius:
        0 0.52rem 0.52rem 0;
}

body.itemid-114
.com-users-login
.com-users-login__remember {
    margin:
        0.35rem 0 1.15rem;
}

body.itemid-114
.com-users-login
.com-users-login__submit {
    margin-bottom: 0.7rem;
}

body.itemid-114
.com-users-login
.com-users-login__submit
.btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 1rem;
    font-weight: 750;
    border-radius: 0.55rem;
}

body.itemid-114
.com-users-login
.btn-primary {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #ff6000,
            #f04000
        );
    border-color: #e13b00;
}

body.itemid-114
.com-users-login
.btn-primary:hover,
body.itemid-114
.com-users-login
.btn-primary:focus {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #003070,
            #0080d0
        );
    border-color: #003070;
}

body.itemid-114
.com-users-login
.btn-secondary {
    color: #003070;
    background: #eef6fc;
    border-color:
        rgba(0, 48, 112, 0.2);
}

body.itemid-114
.com-users-login
.com-users-login__options {
    margin-top: 1.35rem;
    overflow: hidden;
    border:
        1px solid
        rgba(0, 48, 112, 0.12);
    border-radius: 0.55rem;
}

body.itemid-114
.com-users-login
.com-users-login__options
.list-group-item {
    padding: 0.78rem 0.9rem;
    color: #005fa3;
    background: #f8fbff;
    border-color:
        rgba(0, 48, 112, 0.1);
    font-size: 0.9rem;
    font-weight: 650;
}

body.itemid-114
.com-users-login
.com-users-login__options
.list-group-item:hover,
body.itemid-114
.com-users-login
.com-users-login__options
.list-group-item:focus {
    color: #ffffff;
    background: #003070;
}

@media (max-width: 47.99rem) {
    body.itemid-114 #g-main.redecomsa-main {
        padding:
            2rem 0.75rem;
    }

    body.itemid-114
    .com-users-login.login {
        padding:
            1.5rem 1rem;
        border-radius: 0.72rem;
    }
}

/* REDECOMSA-LOGIN-3.1.1 END */

/* REDECOMSA-GLOBAL-NAV-COMPACT-1.3.0 START */

/*
 * Selector real confirmado mediante consola:
 *
 * #g-header
 *   .g-main-nav
 *   .g-toplevel
 *   > li
 *   > .g-menu-item-container
 *
 * Resultado:
 * - altura aproximada de 38.4 px;
 * - texto centrado;
 * - sin alterar el logotipo;
 * - sin alterar la distancia menú → hero;
 * - sin modificar el menú móvil.
 */
@media (min-width: 60rem) {
    #g-header.redecomsa-header
    .g-main-nav {
        min-height: 0 !important;
        height: auto !important;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel {
        min-height: 0 !important;
        height: auto !important;
        align-items: stretch !important;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li {
        min-height: 0 !important;
        height: auto !important;
        align-items: stretch !important;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-height: 2.4rem !important;
        height: 2.4rem !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        line-height: 1.1 !important;
        box-sizing: border-box !important;
    }

    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container
    .g-menu-item-content,
    #g-header.redecomsa-header
    .g-main-nav
    .g-toplevel
    > li
    > .g-menu-item-container
    .g-menu-item-title {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        line-height: 1.1 !important;
        text-align: center !important;
    }
}

/* REDECOMSA-GLOBAL-NAV-COMPACT-1.3.0 END */

/* REDECOMSA-GLOBAL-HERO-SPACING-1.2.0 START */

/*
 * Ajuste basado en la última auditoría real:
 *
 * Escritorio:
 * - Cobertura: 35 px, correcto.
 * - Representa tu marca y Contacto: 47 px.
 *   Se reducen 12 px para llegar a 35 px.
 *
 * Móvil 390 px:
 * - Cobertura, Quiénes somos y Servicios: 165 px.
 *   Se agregan 18 px para llegar a 183 px.
 * - Representa tu marca y Contacto: 195 px.
 *   Se reducen 12 px para llegar a 183 px.
 *
 * Los breadcrumbs ya están en 0 y se conserva su ocultamiento.
 */

/* ==================================================
 * COBERTURA Y VENDEDORES — Itemid 109
 * ================================================== */

body.itemid-109
#g-main {
    padding-top: 0 !important;
}

body.itemid-109
.rdc-coverage-public {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==================================================
 * REPRESENTA TU MARCA — Itemid 110
 * CONTACTO — Itemid 111
 * ================================================== */

body.itemid-110
#g-main,
body.itemid-111
#g-main {
    padding-top: 0 !important;
}

body.itemid-110 .g-breadcrumbs,
body.itemid-110 .mod-breadcrumbs,
body.itemid-110 .breadcrumb,
body.itemid-110 .breadcrumbs,
body.itemid-110
.platform-content:has(.mod-breadcrumbs),
body.itemid-110
.moduletable:has(.mod-breadcrumbs),
body.itemid-110
.g-grid:has(.mod-breadcrumbs),
body.itemid-110
nav[aria-label="Breadcrumbs"],
body.itemid-110
nav[aria-label="breadcrumb"],
body.itemid-111 .g-breadcrumbs,
body.itemid-111 .mod-breadcrumbs,
body.itemid-111 .breadcrumb,
body.itemid-111 .breadcrumbs,
body.itemid-111
.platform-content:has(.mod-breadcrumbs),
body.itemid-111
.moduletable:has(.mod-breadcrumbs),
body.itemid-111
.g-grid:has(.mod-breadcrumbs),
body.itemid-111
nav[aria-label="Breadcrumbs"],
body.itemid-111
nav[aria-label="breadcrumb"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/*
 * La auditoría mide 47 px en escritorio y 195 px en móvil.
 * El desplazamiento directo del artículo elimina los 12 px
 * residuales sin alterar el padding interno del contenido.
 */
body.itemid-110
.com-content-article.item-page,
body.itemid-111
.com-content-article.item-page {
    margin-top: -0.75rem !important;
}

/* ==================================================
 * AJUSTES MÓVILES
 * ================================================== */

@media (max-width: 59.99rem) {

    /*
     * Cobertura:
     * 165 px + 18 px = 183 px.
     */
    body.itemid-109
    .rdc-coverage-public {
        margin-top: 1.125rem !important;
    }

    /*
     * ¿Quiénes somos? — Itemid 105
     * Servicios — Itemid 106
     *
     * 165 px + 18 px = 183 px.
     */
    body.itemid-105
    .com-content-article.item-page,
    body.itemid-106
    .com-content-article.item-page {
        margin-top: 1.125rem !important;
    }

    /*
     * Representa tu marca y Contacto conservan el ajuste
     * universal de -12 px:
     * 195 px - 12 px = 183 px.
     */
}

/* REDECOMSA-GLOBAL-HERO-SPACING-1.2.0 END */
