/* ================================================================
   PLUS JAKARTA SANS — TIPOGRAFÍA INSTITUCIONAL CMO
   Cargada vía Google Fonts en header.tpl (preconnect + link)
   Pesos: 300 Light · 400 Regular · 500 Medium · 600 SemiBold · 700 Bold
================================================================ */

/* ----------------------------------------------------------------
   GT AMERICA (TRIAL) — Preservado como referencia hasta producción.
   Descomentar y adquirir licencia web en grillitype.com antes del go-live.
---------------------------------------------------------------- */
/*
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Light-Trial.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Light-Italic-Trial.woff2') format('woff2'); font-weight:300; font-style:italic; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Regular-Trial.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Regular-Italic-Trial.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Medium-Trial.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Medium-Italic-Trial.woff2') format('woff2'); font-weight:500; font-style:italic; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Bold-Trial.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; unicode-range:U+0000-007F; }
@font-face { font-family:'GT America'; src:url('../fonts/GT-America/GT-America-Standard-Bold-Italic-Trial.woff2') format('woff2'); font-weight:700; font-style:italic; font-display:swap; unicode-range:U+0000-007F; }
*/

:root {
    /* === PALETA INSTITUCIONAL CMO === */
    /* Eje H:214 — azul acero, referencia cliente #5279ad */
    --cmo-primary:      #3d6491;   /* topbar, botones, fondos principales       */
    --cmo-primary-mid:  #5279ad;   /* hover, badges, highlights — ref. cliente  */
    --cmo-primary-dark: #2a4570;   /* footer, gradientes oscuros                */
    --cmo-accent:       #0ea5e9;   /* acento digital, iconos, links activos     */
    --cmo-dark:         #0f172a;   /* titulos h1/h2, textos principales         */
    --cmo-muted:        #64748b;   /* texto secundario, labels, subtitulos      */
    --cmo-soft:         #eef4fb;   /* fondos de seccion, tinte suave            */
    --cmo-breadcum:     #f5f8ff;
    --cmo-border:       #c8d8eb;   /* bordes de cards, separadores              */

    /* Valores RGB para tints con rgba() */
    --cmo-primary-rgb:      61, 100, 145;
    --cmo-primary-dark-rgb: 42, 69, 112;
    --cmo-dark-rgb:         15, 23, 42;
    --cmo-accent-rgb:       14, 165, 233;

    /* Identidad nacional */
    --cmo-flag-green:   #009739;
    --cmo-flag-red:     #ce1126;

    /* Tipografia CMO — Plus Jakarta Sans, sobrescribe variables de Invena */
    --font-primary:   'Plus Jakarta Sans', Calibri, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', Calibri, sans-serif;

    /* === ESCALA TIPOGRÁFICA CMO ===
       Uso de clamp() para escalado fluido sin media queries por tamaño.
       Referencia: --cmo-fs-h3 techo = 32px (aprobado por cliente).
    */
    --cmo-fs-display: clamp(40px, 5vw, 62px);      /* banner hero / display */
    --cmo-fs-h1:      clamp(32px, 4vw, 50px);       /* h1 de páginas internas */
    --cmo-fs-h2:      clamp(26px, 3.2vw, 42px);     /* h2 títulos de sección  */
    --cmo-fs-h3:      clamp(20px, 2.4vw, 32px);     /* h3 sub-secciones, paneles */
    --cmo-fs-h4:      clamp(16px, 1.5vw, 20px);     /* h4 títulos de card     */
    --cmo-fs-body:    17px;                          /* párrafos               */
    --cmo-fs-small:   14px;                          /* labels, meta           */
    --cmo-fs-micro:   12px;                          /* badges, tags, caps     */

    /* Gradientes institucionales reutilizables */
    --cmo-grad-institucional: linear-gradient(135deg, var(--cmo-primary-dark), var(--cmo-primary));
    --cmo-grad-acento:        linear-gradient(135deg, var(--cmo-primary), var(--cmo-accent));
    --cmo-grad-hover:         linear-gradient(135deg, var(--cmo-primary), var(--cmo-primary-mid));
    --cmo-grad-soft:          linear-gradient(180deg, #ffffff, var(--cmo-soft));
  }


/* ===============================
   CMO BUTTON SYSTEM FINAL
================================ */

.cmo-btn {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.cmo-btn-primary {
    background: var(--cmo-primary);
    color: #ffffff !important;
    border-color: var(--cmo-primary);
}

.cmo-btn-primary:hover {
    background: var(--cmo-primary-mid);
    border-color: var(--cmo-primary-mid);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.cmo-btn-light {
    background: #ffffff;
    color: var(--cmo-primary-dark) !important;
    border-color: #ffffff;
}

.cmo-btn-light:hover {
    background: var(--cmo-soft);
    color: var(--cmo-primary-dark) !important;
    transform: translateY(-2px);
}

.cmo-btn-outline {
    background: transparent;
    color: var(--cmo-primary) !important;
    border-color: var(--cmo-border);
}

.cmo-btn-outline:hover {
    background: var(--cmo-soft);
    border-color: var(--cmo-primary-mid);
    color: var(--cmo-primary-dark) !important;
}

.cmo-btn-link {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff !important;
    font-weight: 800;
}

.cmo-btn-link:hover {
    color: var(--cmo-primary-mid) !important;
    transform: translateX(4px);
}
/* Sobrescritura directa del body (Invena lo declara hardcoded) */
body {
    font-family: var(--font-primary);
    font-weight: 400;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
    font-family: var(--font-primary);
    color: var(--cmo-dark);
}
  .cmo-topbar {
    background: var(--cmo-grad-acento);
    color: #ffffff;
    font-size: 13px;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
  }

  .cmo-topbar-wrapper {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
  }

  .cmo-topbar-left,
  .cmo-topbar-right {
      display: flex;
      align-items: center;
      gap: 18px;
  }

  .cmo-topbar-item,
  .cmo-topbar-location {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,.88);
      font-weight: 500;
      letter-spacing: .01em;
      transition: color .25s ease, transform .25s ease;
  }

  .cmo-topbar-item:hover {
      color: #ffffff;
      transform: translateY(-1px);
  }

  .cmo-topbar-icon {
      width: 24px;
      height: 24px;
      border-radius: 999px;
      background: rgba(var(--cmo-accent-rgb),.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 12px;
  }

  .cmo-social {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
  }

  

  .cmo-btn-platform {
      position: relative;
      overflow: hidden;
  }

  .cmo-btn-platform::before {
      content: "";
      position: absolute;
      top: 0;
      left: -80%;
      width: 50%;
      height: 100%;
      background: linear-gradient(
          120deg,
          transparent,
          rgba(255,255,255,.35),
          transparent
      );
      transform: skewX(-20deg);
      transition: left .55s ease;
  }

  .cmo-btn-platform:hover::before {
      left: 130%;
  }

  .cmo-btn-platform span,
  .cmo-btn-platform i {
      position: relative;
      z-index: 1;
  }

  /* .cmo-social bloque duplicado eliminado — ver definición al inicio */

  .cmo-header-main {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(var(--cmo-primary-rgb),.10);
    box-shadow: 0 12px 34px rgba(7,26,51,.06);
    position: relative;
    z-index: 99;
  }

  .cmo-header-wrapper {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: visible;
  }

  .cmo-brand {
    display: flex;
    align-items: center;
    width: 95px;
    min-width: 95px;
  }

  .cmo-brand .logo-cmo {
    max-height: 105px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .cmo-nav-area > ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .cmo-nav-area .main-nav {
    position: static;
  }

  .cmo-nav-area .main-nav > a {
    display: flex;
    align-items: center;
    color: var(--cmo-dark);
    font-size: 15px;
    font-weight: 800;
    padding: 38px 0;
    transition: color .2s ease;
    white-space: nowrap;
    position: relative;
  }

  .cmo-nav-area .main-nav > a:hover {
    color: var(--cmo-primary);
  }

  .cmo-nav-area .main-nav.has-dropdown > a::after {
    display: none !important;
    content: none !important;
  }

  .cmo-menu-arrow {
    display: none !important;
  }

  .cmo-mega-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    width: min(1180px, calc(100vw - 80px));
    transform: translateX(-50%) translateY(18px) scale(.98);
    transform-origin: top center;
    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .28s cubic-bezier(.22, .61, .36, 1);
    background: #fff;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 28px 80px rgba(16,24,40,.14);
    border: 1px solid rgba(var(--cmo-primary-rgb),.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .25s ease;
    overflow: hidden;
    z-index: 999;
  }
  /* Visibilidad controlada solo por JS (.is-open) — no :hover CSS
     para que el click pueda cerrar el megamenu sin conflicto */
  .cmo-nav-area .main-nav.is-open .cmo-mega-menu {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cmo-mega-inner {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .95fr;
    gap: 0;
  }

  .cmo-mega-col {
    padding: 32px;
    border-right: 1px solid rgba(var(--cmo-primary-rgb),.08);
  }

  .cmo-mega-col:last-child {
    border-right: none;
  }

  .cmo-menu-title {
    color: var(--cmo-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cmo-menu-title i {
    color: var(--cmo-primary);
  }

  .cmo-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .cmo-menu-list li + li {
    margin-top: 9px;
  }

  .cmo-menu-list a {
    display: flex;
    align-items: center;
    color: var(--cmo-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    transition: all .2s ease;
  }

  .cmo-menu-list a:hover {
    color: var(--cmo-primary);
    transform: translateX(4px);
  }

  .cmo-mega-feature {
    min-height: 100%;
    background:
      radial-gradient(circle at 80% 20%, rgba(var(--cmo-accent-rgb),.18), transparent 34%),
      linear-gradient(135deg, var(--cmo-soft), var(--cmo-soft));
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .cmo-mega-feature .badge {
    background: rgba(var(--cmo-accent-rgb),.12);
    color: var(--cmo-primary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  .cmo-mega-feature h4 {
    color: var(--cmo-dark);
    font-size: var(--cmo-fs-h4);
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .cmo-mega-feature p {
    color: var(--cmo-muted);
    font-size: 14px;
    margin-bottom: 18px;
  }

  .cmo-mega-feature .feature-image {
    height: 130px;
    border-radius: 18px;
    /* TODO: agregar menu-institucional.jpg en assets_cmo/images/cmo/ cuando esté disponible */
    background:
      linear-gradient(180deg, rgba(var(--cmo-primary-rgb),.08), rgba(var(--cmo-primary-rgb),.22));
    margin-top: 18px;
  }

  .cmo-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .cmo-logo-80 {
    max-height: 58px;
    width: auto;
    transition: transform .25s ease;
  }

  .cmo-logo-80:hover {
    transform: scale(1.04);
  }

  .cmo-btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 13px 20px;
    background: var(--cmo-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(var(--cmo-primary-rgb),.22);
    white-space: nowrap;
    transition: all .25s ease;
  }

  .cmo-btn-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(var(--cmo-primary-rgb),.28);
  }

  .cmo-mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(var(--cmo-primary-rgb),.12);
    align-items: center;
    justify-content: center;
    color: var(--cmo-primary);
  }

  @media (max-width: 1199px) {
    .cmo-nav-area{
      display:none !important;
    }
    .cmo-logo-80,
    .cmo-btn-platform {
      display: none;
    }

    .cmo-nav-area {
      display: none;
    }

    .cmo-mobile-menu-btn {
      display: flex;
    }

    .cmo-header-wrapper {
      min-height: 82px;
    }
  }

  @media (max-width: 767px) {
    .cmo-topbar {
      display: none;
    }

    .cmo-brand .logo-cmo {
      max-height: 54px;
    }
  }


/* =========================================================
   FIX MEGAMENU CMO
   Problema original:
   - El HTML usa .cmo-nav-area .main-nav, pero había reglas para .cmo-main-menu que no existe.
   - El puente ::before no funcionaba porque .cmo-mega-menu tenía overflow:hidden.
   - Había un hueco entre el link y el megamenú.
========================================================= */

.cmo-header-main {
    position: relative;
    z-index: 999;
    overflow: visible;
    background: rgba(255,255,255,.97);
    transition: box-shadow 0.3s ease;
}

/* Sombra sutil cuando el nav está "pegado" al top */
.cmo-header-main.cmo-is-stuck {
    box-shadow: 0 2px 18px rgba(var(--cmo-primary-rgb), .10);
}

/* .cmo-header-wrapper position/overflow — integrado en bloque base */

.cmo-nav-area {
    align-self: stretch;
    display: flex;
    align-items: center;
    overflow: visible;
}

.cmo-nav-area > ul {
    height: 100%;
}

.cmo-nav-area .main-nav {
    position: static;
    display: flex;
    align-items: center;
}

.cmo-nav-area .main-nav > a {
    min-height: 94px;
    display: flex;
    align-items: center;
    padding: 0;
}

.cmo-nav-area .main-nav.has-dropdown > a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 18px;
    background: transparent;
}

.cmo-mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% - 1px);
    width: min(1180px, calc(100vw - 80px));
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 28px 80px rgba(16,24,40,.14);
    border: 1px solid rgba(var(--cmo-primary-rgb),.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    overflow: visible;
    z-index: 9999;
}

.cmo-mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 28px;
    background: transparent;
}

/* Visibilidad solo por .is-open (JS) y :focus-within (teclado/accesibilidad).
   Se quitó :hover CSS para que el click pueda cerrar el megamenu. */
/* Solo .is-open (JS). Se eliminó :focus-within porque al hacer click
   el <a> retiene foco y mantenía el megamenu visible. */
.cmo-nav-area .main-nav.is-open > .cmo-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cmo-mega-inner {
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: #fff;
}

/* Corrección de posicionamiento para ítems con submenu nativo de Invena.
   .main-nav tiene position:static (necesario para los mega menús centrados),
   pero los ítems con ul.submenu requieren position:relative para que
   top:100% se calcule desde el li y no desde el header wrapper. */
.cmo-nav-area .main-nav:has(> .submenu) {
    position: relative;
}
/* Elevar z-index para que el submenu quede sobre el contenido */
.cmo-nav-area .main-nav .submenu {
    z-index: 9999;
}

/* .cmo-header-wrapper min-height — integrado en bloque base */

/* .cmo-brand — propiedades finales integradas en bloque principal */

.cmo-logo-80 {
    max-height: 105px;
    width: auto;
    object-fit: contain;
}

.cmo-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cmo-nav-area .main-nav > a::before,
.cmo-nav-area .main-nav > a::after,
.cmo-nav-area .main-nav:hover > a::before,
.cmo-nav-area .main-nav:hover > a::after {
    content: none !important;
}

.cmo-nav-area .main-nav > a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 0;
    height: 2px;
    background: var(--cmo-accent);
    transform: translateX(-50%);
    border-radius: 999px;
    transition: width .25s ease;
    display: block !important;
}

.cmo-nav-area .main-nav:hover > a::before,

.cmo-nav-area .main-nav.is-open > a::before {

    width: 22px;

}

.cmo-nav-area > ul {
    gap: 24px;
}

.cmo-nav-area .main-nav > a {
    font-size: 15px;
    padding: 42px 0;
}

.has-dropdown::after {
  display: none;
}

  .cmo-mobile-menu-btn {
    background: var(--cmo-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.cmo-mobile-menu-btn i {
    color: #ffffff;
    font-size: 20px;
}

.cmo-mobile-platform {
    margin-top: 18px;
    background: var(--cmo-primary);
    color: #ffffff !important;
    border-radius: 12px;
    text-align: center;
    justify-content: center;
    font-weight: 800 !important;
}



@media (max-width: 991px) {
    .cmo-topbar {
        display: none !important;
    }

    .cmo-header-wrapper {
        min-height: 94px;
        padding: 14px 0;
    }

    .cmo-brand {
        width: auto;
        min-width: auto;
    }

    .cmo-brand .logo-cmo {
        max-width: 78px;
        max-height: 78px;
    }

    .cmo-mobile-menu-btn {
        display: flex !important;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: var(--cmo-primary);
        color: #ffffff;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 28px rgba(var(--cmo-primary-rgb), .22);
    }

    .cmo-mobile-menu-btn i {
        color: #ffffff;
        font-size: 22px;
    }
}


.cmo-page-header {
    background: var(--cmo-breadcum);
    padding: 50px 0 50px;
    border-bottom: 1px solid var(--cmo-border);
}

.cmo-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    font-size: 14px;
}

.cmo-page-breadcrumb a {
    color: var(--cmo-dark);
    font-weight: 700;
}

.cmo-page-breadcrumb span {
    color: #98a2b3;
}

.cmo-page-breadcrumb strong {
    color: var(--cmo-dark);
    font-weight: 800;
}

.cmo-page-kicker {
    display: block;
    color: var(--cmo-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.cmo-page-header h1 {
    color: var(--cmo-dark);
    font-size: var(--cmo-fs-h1);
    line-height: 1.05;
    margin-bottom: 16px;
}

.cmo-page-header p {
    max-width: 720px;
    color: var(--cmo-dark);
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
}
.title-style-two .title {
    text-transform: uppercase;
    font-size: var(--cmo-fs-h2);
}



/* }footer */

.cmo-footer {
    position: relative;
    overflow: hidden;
    background: #223a61;
    color: #ffffff;
    padding: 70px 0 28px;
}

.cmo-footer .container {
    position: relative;
    z-index: 2;
}

.cmo-footer-top {
    display: grid;
    grid-template-columns: 1.35fr .8fr 1.2fr .9fr;
    gap: 54px;
    align-items: flex-start;
}

.cmo-footer-logos {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.cmo-footer-logos img:first-child {
    width: 118px;
}

.cmo-footer-logos img:last-child {
    width: 128px;
}

.cmo-footer-brand p,
.cmo-footer-col li,
.cmo-footer-bottom p,
.cmo-footer-sponsors p {
    color: rgba(255,255,255,.72);
}

.cmo-footer-brand p {
    max-width: 360px;
    line-height: 1.7;
    margin: 0;
}

.cmo-footer h5 {
    color: #ffffff;
    font-size: var(--cmo-fs-h4);
    margin-bottom: 22px;
}

.cmo-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmo-footer li {
    margin-bottom: 13px;
    line-height: 1.5;
}

.cmo-footer li i {
    color: var(--cmo-accent);
    margin-right: 8px;
}

.cmo-footer a {
    color: rgba(255,255,255,.72);
    transition: all .22s ease;
}

.cmo-footer a:hover {
    color: #ffffff;
}

.cmo-footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.cmo-footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.cmo-footer-social a:hover {
    background: var(--cmo-accent);
    transform: translateY(-3px);
}

.cmo-footer-platform {
    display: inline-flex;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--cmo-primary);
    color: #ffffff !important;
    font-weight: 800;
}

.cmo-footer-sponsors {
    margin-top: 58px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.cmo-footer-sponsors span {
    display: block;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.cmo-footer-sponsors p {
    margin: 0;
}

.cmo-footer-sponsors-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cmo-footer-sponsors-grid div {
    width: 118px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.84);
    font-weight: 900;
    letter-spacing: .10em;
}

.cmo-footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cmo-footer-bottom p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 991px) {
    .cmo-footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .cmo-footer-sponsors,
    .cmo-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .cmo-footer {
        padding: 56px 0 28px;
    }

    .cmo-footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cmo-footer-sponsors {
        padding: 24px;
    }

    .cmo-footer-sponsors-grid div {
        flex: 1;
        min-width: 110px;
    }
}

.progress-wrap svg.progress-circle path {
    stroke: var(--cmo-accent) !important;
}

.progress-wrap::after {
    color: var(--cmo-accent) !important;
}

.progress-wrap:hover {
    background: var(--cmo-primary);
}

.progress-wrap:hover::after {
    color: #fff !important;
}


/* PAgina capitulos alta especialidad */

.cmo-capitulo-label{
    display:block;
    color:var(--cmo-accent);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    line-height:1.5;
    min-height:42px;
    margin-bottom:10px;
}

.cmo-mesa-card .single-details{
    min-height:140px;
}

/* REDES HEADER */

.cmo-social-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0;
    padding:0;
    list-style:none;
}

.cmo-social-header li{
    margin:0;
}

.cmo-social-header a{
    width:30px;
    height:30px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    color:#fff;

    font-size:14px;

    transition:all .25s ease;

    backdrop-filter:blur(10px);
}

.cmo-social-header a:hover{
    transform:translateY(-3px);
}

.cmo-social-header li:nth-child(1) a:hover{
    background:#E1306C;
    color:#fff;
}

.cmo-social-header li:nth-child(2) a:hover{
    background:#1877F2;
    color:#fff;
}

.cmo-social-header li:nth-child(3) a:hover{
    background:#FF0000;
    color:#fff;
}



/* ===============================
   LEGADO INSTITUCIONAL MINIMAL
================================ */

.cmo-legado-minimal {
    background: #ffffff;
    padding: 84px 0;
    border-top: 1px solid var(--cmo-border);
}

.cmo-legado-minimal-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.cmo-legado-minimal span {
    display: block;
    color: var(--cmo-primary);
    font-size: var(--cmo-fs-micro);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 18px;
}

.cmo-legado-minimal h2 {
    color: var(--cmo-dark);
    font-size: var(--cmo-fs-h2);
    line-height: 1.12;
    margin-bottom: 22px;
}

.cmo-legado-minimal p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cmo-muted);
    font-size: var(--cmo-fs-body);
    line-height: 1.75;
}

.cmo-legado-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.cmo-legado-links a {
    color: var(--cmo-primary);
    font-size: var(--cmo-fs-small);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cmo-legado-links a:hover {
    color: var(--cmo-primary-mid);
}

@media (max-width: 767px) {
    .cmo-legado-minimal {
        padding: 64px 0;
    }

    .cmo-legado-links {
        gap: 18px;
    }
}


/* ══════════════════════════════════════════════════════════════
   STICKY HEADER — Sistema CMO

   Estrategia: JS mide topbarH + fullH UNA VEZ al cargar (no en scroll).
   Threshold estático → sin oscilación. padding = fullH → sin brinco.

   Topbar: hide/show INSTANTÁNEO — sin transición de altura.
   Razón: max-height animada hacía que el threshold se moviera durante
   la transición → sticky se activaba/desactivaba en loop ("brinca").
   Al desactivar sticky, el header regresa a flujo; si topbar crece con
   transición, el contenido se desplaza 48px. Instantáneo = estable.

   Invena stickyanimations (translateY -100px) neutralizada con
   cmo-sticky-enter (opacity + translateY mínimo, 0.15s).
══════════════════════════════════════════════════════════════ */

/* Override animación brusca de Invena (translateY -100px) */
.header--sticky.sticky {
    animation: cmo-sticky-enter 0.15s ease both;
}

@keyframes cmo-sticky-enter {
    from { opacity: 0.85; transform: translateY(-4px); }
    to   { opacity: 1;    transform: translateY(0);    }
}

/* Topbar base — sin transición cuando está en FLUJO (desactivación del sticky).
   En flujo, crecer 48px desplazaría el contenido. Instantáneo = sin salto. */
.cmo-topbar {
    overflow: hidden;
    max-height: 120px;
    opacity: 1;
}

/* En sticky: transición al MOSTRAR (header es fixed → sin impacto en flujo).
   Al OCULTAR: instantáneo. El JS anima el scroll de compensación (200ms),
   hacer también transición CSS al ocultar generaría dos animaciones en conflicto. */
.header--sticky.sticky .cmo-topbar {
    transition: max-height 0.2s ease, opacity 0.15s ease;
}

.header--sticky.sticky.cmo-topbar-hidden .cmo-topbar {
    transition: none !important;  /* ocultar: instantáneo */
}

.cmo-topbar-hidden .cmo-topbar {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}

/* Solo .cmo-topbar se oculta — .cmo-patriotic-bar siempre visible */

li.has-dropdown .submenu li a:hover{
    background: none !important;
}

.rts-section-gap{
    padding: 90px 0;
}

.cmo-popup-effect .mfp-content {
    opacity: 0;
    transform: scale(.92);
    transition: all .35s cubic-bezier(.16,1,.3,1);
}

.cmo-popup-effect.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}

.cmo-popup-effect.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(.92);
}

.cmo-popup-effect.mfp-bg {
    opacity: 0;
    transition: opacity .35s ease;
}

.cmo-popup-effect.mfp-ready.mfp-bg {
    opacity: .85;
}

.cmo-popup-effect.mfp-removing.mfp-bg {
    opacity: 0;
}