/*
 * Ajustes móviles públicos para Jóvenes con Talento.
 * Archivo requerido por public/templates/public/base.html.
 * Restaurado en VM institucional para evitar 404 en /static/public/public_mobile_override.css.
 */

@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .container,
  .container-fluid {
    max-width: 100%;
  }
}

/*
 * RC-BRANDRESP1: ajustes responsive de identidad visual pública.
 * Centra logo JCT en header móvil, reordena logo institucional del footer
 * y coloca el ícono JCT arriba del formulario de acceso en móvil.
 */
@media (max-width: 820px) {
  .site-header .brand-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }

  .site-header .brand-left {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-header #logo-jct {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .brand-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .site-footer .footer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .site-footer .footer-left,
  .site-footer .footer-right {
    width: 100%;
  }

  .site-footer .footer-left {
    order: 1;
  }

  .site-footer .footer-right {
    order: 2;
    display: flex;
    flex-direction: column;
  }

  .site-footer .footer-educamos {
    order: 1;
    width: 100%;
    text-align: center;
    margin: 18px auto 22px;
  }

  .site-footer .footer-educamos img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .footer-block {
    order: 2;
  }

  .jct-login-card {
    flex-direction: column;
    text-align: center;
  }

  .jct-login-right {
    order: 1;
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .jct-login-left {
    order: 2;
    width: 100%;
  }

  .jct-login-logo {
    display: block;
    max-width: 190px;
    margin: 0 auto 10px;
  }
}

/*
 * RC-BRANDRESP2: ajustes desktop/tablet de logos públicos.
 * En tablet/pantallas pequeñas mantiene JCT_LOGO en línea con logos institucionales.
 * En pantallas grandes da mayor presencia a logos.
 * En footer desktop centra EDUC{A}MOS entre los dos bloques de texto.
 */

/* Header desktop: mayor protagonismo */
@media (min-width: 821px) {
  .site-header .brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .site-header .brand-left,
  .site-header .brand-right {
    display: flex;
    align-items: center;
  }

  .site-header #logo-jct {
    max-height: 82px;
    width: auto;
    object-fit: contain;
  }

  .site-header .brand-right {
    gap: 28px;
  }

  .site-header .brand-right img {
    max-height: 66px;
    width: auto;
    object-fit: contain;
  }

  .site-header #logo-seed {
    max-height: 58px;
  }

  .site-header #logo-gigante {
    max-height: 78px;
  }

  .site-header .brand-sep {
    min-height: 56px;
  }

  .site-footer .footer-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 42px;
  }

  .site-footer .footer-left {
    grid-column: 1;
  }

  .site-footer .footer-right {
    grid-column: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 36px;
  }

  .site-footer .footer-educamos {
    grid-column: 1;
    justify-self: center;
    align-self: center;
    margin: 0;
  }

  .site-footer .footer-educamos img {
    display: block;
    max-width: 210px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .site-footer .footer-block {
    grid-column: 2;
  }
}

/* Pantallas pequeñas/tablet: todos los logos en una sola línea */
@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-row {
    flex-direction: row;
    justify-content: center;
    gap: 42px;
  }

  .site-header #logo-jct {
    max-height: 70px;
  }

  .site-header .brand-right {
    gap: 20px;
  }

  .site-header #logo-seed {
    max-height: 48px;
  }

  .site-header #logo-gigante {
    max-height: 64px;
  }

  .site-header .brand-sep {
    min-height: 46px;
  }
}

/*
 * RC-FORMRESP1: centrado de formularios públicos en pantallas grandes.
 * Aplica a Registro de Empresa y Registro de Talentos sin cambiar estructura ni lógica.
 */
@media (min-width: 1181px) {
  body:has(form) main.wrap.page {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  body:has(form) main.wrap.page > .card,
  body:has(form) main.wrap.page > .hero,
  body:has(form) main.wrap.page > section,
  body:has(form) main.wrap.page > div {
    margin-left: auto;
    margin-right: auto;
  }

  body:has(form) main.wrap.page > .card,
  body:has(form) main.wrap.page form {
    max-width: 1080px;
  }
}

/*
 * RC-BRANDRESP3: mayor protagonismo equilibrado para logos del header.
 * Conserva móvil; mejora desktop/tablet dando presencia a JCT, SEED y Gobierno del Estado.
 */
@media (min-width: 1181px) {
  .site-header {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
  }

  .site-header .brand-row {
    padding-top: 26px;
    padding-bottom: 24px;
    gap: 86px;
  }

  .site-header #logo-jct {
    max-height: 104px;
    width: auto;
    object-fit: contain;
  }

  .site-header #logo-seed {
    max-height: 68px;
    width: auto;
    object-fit: contain;
  }

  .site-header #logo-gigante {
    max-height: 98px;
    width: auto;
    object-fit: contain;
  }

  .site-header .brand-sep {
    min-height: 62px;
    opacity: .45;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  }

  .site-header .brand-row {
    padding-top: 18px;
    padding-bottom: 16px;
    gap: 38px;
  }

  .site-header #logo-jct {
    max-height: 78px;
    width: auto;
    object-fit: contain;
  }

  .site-header #logo-seed {
    max-height: 54px;
    width: auto;
    object-fit: contain;
  }

  .site-header #logo-gigante {
    max-height: 78px;
    width: auto;
    object-fit: contain;
  }

  .site-header .brand-sep {
    min-height: 48px;
    opacity: .42;
  }
}

/*
 * RC-BRANDRESP4: ajuste fino de presencia visual en header.
 * Logos ligeramente mayores, menor aire horizontal y separador institucional más visible.
 */
@media (min-width: 1181px) {
  .site-header .brand-row {
    gap: 64px;
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .site-header #logo-jct {
    max-height: 116px;
  }

  .site-header #logo-seed {
    max-height: 76px;
  }

  .site-header #logo-gigante {
    max-height: 108px;
  }

  .site-header .brand-sep {
    min-height: 72px;
    width: 2px;
    background: rgba(15, 23, 42, .34);
    opacity: 1;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-row {
    gap: 28px;
  }

  .site-header #logo-jct {
    max-height: 86px;
  }

  .site-header #logo-seed {
    max-height: 60px;
  }

  .site-header #logo-gigante {
    max-height: 86px;
  }

  .site-header .brand-sep {
    min-height: 54px;
    width: 2px;
    background: rgba(15, 23, 42, .34);
    opacity: 1;
  }
}

/*
 * RC-BRANDRESP5: header institucional alineado al ancho visual del HERO.
 * Desktop/tablet: JCT a la izquierda, texto institucional al centro,
 * SEED/Gobierno del Estado a la derecha. Móvil conserva composición vertical.
 */
@media (min-width: 821px) {
  .site-header .brand-row {
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.15fr) minmax(300px, 1fr);
    align-items: center;
    gap: 34px;
    padding: 18px 24px 16px;
  }

  .site-header .brand-left {
    justify-self: start;
    display: flex;
    align-items: center;
  }

  .site-header #logo-jct {
    max-height: 104px;
    width: auto;
    object-fit: contain;
  }

  .site-header .brand-center-text {
    justify-self: center;
    text-align: center;
    color: #5f6064;
    line-height: 1.05;
    font-family: "Branding", "Montserrat Local", system-ui, sans-serif;
  }

  .site-header .brand-center-title {
    font-weight: 800;
    font-size: clamp(1.05rem, 1.45vw, 1.55rem);
    white-space: nowrap;
  }

  .site-header .brand-center-subtitle {
    font-weight: 900;
    font-size: clamp(1.35rem, 2.05vw, 2.15rem);
    margin-top: 2px;
    white-space: nowrap;
  }

  .site-header .brand-right {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
  }

  .site-header #logo-seed {
    max-height: 66px;
    width: auto;
    object-fit: contain;
  }

  .site-header #logo-gigante {
    max-height: 98px;
    width: auto;
    object-fit: contain;
  }

  .site-header .brand-sep {
    min-height: 72px;
    width: 2px;
    background: rgba(15, 23, 42, .36);
    opacity: 1;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-row {
    max-width: 100%;
    grid-template-columns: minmax(170px, .9fr) minmax(280px, 1.15fr) minmax(250px, .95fr);
    gap: 22px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header #logo-jct {
    max-height: 82px;
  }

  .site-header .brand-center-title {
    font-size: .95rem;
  }

  .site-header .brand-center-subtitle {
    font-size: 1.45rem;
  }

  .site-header #logo-seed {
    max-height: 54px;
  }

  .site-header #logo-gigante {
    max-height: 78px;
  }

  .site-header .brand-sep {
    min-height: 56px;
  }
}

@media (max-width: 820px) {
  .site-header .brand-center-text {
    display: none;
  }
}

/*
 * RC-BRANDRESP6: ajuste fino del header institucional.
 * Aumenta ligeramente JCT_LOGO y reduce un punto el texto central.
 */
@media (min-width: 1181px) {
  .site-header #logo-jct {
    max-height: 118px;
  }

  .site-header .brand-center-title {
    font-size: clamp(0.98rem, 1.25vw, 1.36rem);
  }

  .site-header .brand-center-subtitle {
    font-size: clamp(1.20rem, 1.78vw, 1.88rem);
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header #logo-jct {
    max-height: 92px;
  }

  .site-header .brand-center-title {
    font-size: .88rem;
  }

  .site-header .brand-center-subtitle {
    font-size: 1.30rem;
  }
}

/*
 * RC-BRANDRESP7: fuerza visual del JCT_LOGO en header institucional.
 * Incrementa 2-3 puntos visuales el logo de la plataforma sin alterar SEED/Gobierno.
 */
@media (min-width: 1181px) {
  .site-header .brand-left {
    min-width: 260px;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    max-height: 142px !important;
    height: 142px !important;
    width: auto !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left {
    min-width: 205px;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    max-height: 108px !important;
    height: 108px !important;
    width: auto !important;
  }
}

/*
 * RC-BRANDRESP8: incrementar de forma más visible el JCT_LOGO.
 * Amplía la columna izquierda y fuerza dimensión visual del logo.
 */
@media (min-width: 1181px) {
  .site-header .brand-row {
    grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 1fr) minmax(340px, 1fr) !important;
  }

  .site-header .brand-left {
    min-width: 360px !important;
    overflow: visible !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    height: 158px !important;
    max-height: 158px !important;
    width: auto !important;
    max-width: none !important;
    transform: scale(1.08);
    transform-origin: left center;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-row {
    grid-template-columns: minmax(255px, 1fr) minmax(280px, 1fr) minmax(250px, 1fr) !important;
  }

  .site-header .brand-left {
    min-width: 255px !important;
    overflow: visible !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    height: 122px !important;
    max-height: 122px !important;
    width: auto !important;
    max-width: none !important;
    transform: scale(1.04);
    transform-origin: left center;
  }
}

/*
 * RC-BRANDRESP9: estabilización final del header institucional.
 * Evita columnas rígidas y transformaciones que desplazan logos al hacer zoom.
 * JCT_LOGO se dimensiona por ancho para mayor presencia visual.
 */
@media (min-width: 821px) {
  .site-header .brand-row {
    max-width: 1260px !important;
    width: calc(100% - 48px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
    align-items: center !important;
    column-gap: clamp(18px, 3vw, 48px) !important;
    padding: 18px 0 16px !important;
  }

  .site-header .brand-left {
    justify-self: start !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: clamp(230px, 18vw, 330px) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    transform: none !important;
    object-fit: contain !important;
  }

  .site-header .brand-center-text {
    justify-self: center !important;
    min-width: 0 !important;
    text-align: center !important;
    line-height: 1.06 !important;
  }

  .site-header .brand-center-title {
    font-size: clamp(.92rem, 1.18vw, 1.26rem) !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }

  .site-header .brand-center-subtitle {
    font-size: clamp(1.12rem, 1.65vw, 1.76rem) !important;
    font-weight: 900 !important;
    white-space: normal !important;
  }

  .site-header .brand-right {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(12px, 1.8vw, 24px) !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .site-header #logo-seed {
    width: clamp(150px, 12vw, 220px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .site-header #logo-gigante {
    height: clamp(68px, 6.8vw, 104px) !important;
    width: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .site-header .brand-sep {
    min-height: clamp(48px, 5vw, 72px) !important;
    width: 2px !important;
    background: rgba(15, 23, 42, .40) !important;
    opacity: 1 !important;
    flex: 0 0 2px !important;
  }
}

@media (min-width: 821px) and (max-width: 980px) {
  .site-header .brand-row {
    width: calc(100% - 28px) !important;
    column-gap: 16px !important;
    grid-template-columns: auto minmax(210px, 1fr) auto !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: clamp(190px, 23vw, 245px) !important;
  }

  .site-header #logo-seed {
    width: clamp(120px, 16vw, 165px) !important;
  }

  .site-header #logo-gigante {
    height: clamp(58px, 8vw, 76px) !important;
  }
}

/*
 * RC-BRANDHDR3: rebalanceo visual del header público.
 * Aumenta presencia de JCT_LOGO, reduce texto central y conserva logos institucionales.
 */
@media (min-width: 1181px) {
  .site-header .brand-row {
    grid-template-columns: minmax(340px, auto) minmax(300px, 1fr) auto !important;
    column-gap: clamp(12px, 1.5vw, 24px) !important;
  }

  .site-header .brand-left {
    min-width: 340px !important;
    justify-self: start !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: clamp(320px, 24vw, 430px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    object-fit: contain !important;
  }

  .site-header .brand-center-title {
    font-size: clamp(.84rem, 1vw, 1.08rem) !important;
    line-height: 1.05 !important;
  }

  .site-header .brand-center-subtitle {
    font-size: clamp(1.22rem, 1.55vw, 1.72rem) !important;
    line-height: 1.02 !important;
    margin-top: 1px !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-row {
    grid-template-columns: minmax(240px, auto) minmax(240px, 1fr) auto !important;
    column-gap: 14px !important;
  }

  .site-header .brand-left {
    min-width: 240px !important;
    justify-self: start !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: clamp(235px, 28vw, 315px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    object-fit: contain !important;
  }

  .site-header .brand-center-title {
    font-size: .82rem !important;
    line-height: 1.05 !important;
  }

  .site-header .brand-center-subtitle {
    font-size: 1.18rem !important;
    line-height: 1.02 !important;
  }
}

/*
 * RC-BRANDHDR6: aumento puntual de JCT_LOGO en header.
 * No modifica hero, formularios, footer ni textos institucionales.
 */
@media (min-width: 1181px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 430px !important;
    max-width: 430px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 330px !important;
    max-width: 330px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/*
 * RC-BRANDHDR8: tamaños finales de logos sin estilos inline.
 */
@media (min-width: 821px) {
  .site-header #logo-jct {
    width: clamp(360px, 28vw, 520px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
  }

  .site-header #logo-seed {
    width: clamp(150px, 12vw, 205px) !important;
    height: auto !important;
    max-height: none !important;
  }

  .site-header #logo-gigante {
    height: clamp(74px, 7vw, 104px) !important;
    width: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 820px) {
  .site-header #logo-jct {
    width: min(82vw, 360px) !important;
    height: auto !important;
  }
}

/*
 * RC-BRANDHDR9: tamaños efectivos tras eliminar estilos inline del header.
 */
@media (min-width: 1181px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 520px !important;
    max-width: 520px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 360px !important;
    max-width: 360px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/*
 * RC-BRANDHDR10: ajuste final de tamaño JCT_LOGO.
 * Reduce el logo después de eliminar estilos inline, manteniendo protagonismo sin dominar el header.
 */
@media (min-width: 1181px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 390px !important;
    max-width: 390px !important;
    min-width: 390px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 330px !important;
    max-width: 330px !important;
    min-width: 330px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/*
 * RC-BRANDHDR11: tamaño final JCT_LOGO.
 * Desktop 330px, tablet 300px. No modifica móvil.
 */
@media (min-width: 1181px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/*
 * RC-BRANDHDR12: tamaño final ajustado JCT_LOGO.
 * Desktop 290px, tablet 270px. No modifica móvil.
 */
@media (min-width: 1181px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/*
 * RC-BRANDHDR13: tamaño final compacto JCT_LOGO.
 * Desktop 250px, tablet 220px. Móvil conserva reglas responsive previas.
 */
@media (min-width: 1181px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/*
 * RC-BRANDFINAL: ajuste final de branding público.
 * Header móvil centrado, header desktop equilibrado, contenido centrado y footer institucional.
 */

/* Contenido público centrado: landing, formularios y cards */
main.wrap.page {
  width: min(1260px, calc(100% - 48px)) !important;
  max-width: 1260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Header desktop/tablet */
@media (min-width: 821px) {
  .site-header .brand-row {
    width: min(1260px, calc(100% - 48px)) !important;
    max-width: 1260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
    padding: 14px 0 12px !important;
  }

  .site-header .brand-left {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 285px !important;
    min-width: 285px !important;
    max-width: 285px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .site-header .brand-center-text {
    flex: 1 1 auto !important;
    text-align: center !important;
    color: #4f535d !important;
    font-family: "Branding", "Montserrat Local", system-ui, sans-serif !important;
    line-height: 1.05 !important;
    min-width: 280px !important;
  }

  .site-header .brand-center-title {
    font-size: clamp(1rem, 1.18vw, 1.32rem) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .site-header .brand-center-subtitle {
    font-size: clamp(1.25rem, 1.55vw, 1.82rem) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    margin-top: 2px !important;
  }

  .site-header .brand-right {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
  }

  .site-header #logo-seed {
    width: 175px !important;
    max-width: 175px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .site-header #logo-gigante {
    height: 92px !important;
    max-height: 92px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
  }

  .site-header .brand-sep {
    width: 2px !important;
    min-height: 66px !important;
    background: rgba(15, 23, 42, .42) !important;
    opacity: 1 !important;
    flex: 0 0 2px !important;
  }

  .site-footer .footer-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 48px !important;
  }

  .site-footer .footer-left {
    grid-column: 1 !important;
  }

  .site-footer .footer-right {
    display: contents !important;
  }

  .site-footer .footer-educamos {
    grid-column: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .site-footer .footer-educamos img {
    display: block !important;
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .site-footer .footer-block {
    grid-column: 3 !important;
  }
}

/* Tablet */
@media (min-width: 821px) and (max-width: 1180px) {
  .site-header .brand-row {
    width: min(100%, calc(100% - 28px)) !important;
    gap: 18px !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
  }

  .site-header .brand-center-title {
    font-size: .88rem !important;
  }

  .site-header .brand-center-subtitle {
    font-size: 1.20rem !important;
  }

  .site-header #logo-seed {
    width: 145px !important;
    max-width: 145px !important;
  }

  .site-header #logo-gigante {
    height: 76px !important;
    max-height: 76px !important;
  }
}

/* Móvil */
@media (max-width: 820px) {
  main.wrap.page {
    width: min(100%, calc(100% - 24px)) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-header .brand-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    text-align: center !important;
    padding: 18px 14px 16px !important;
  }

  .site-header .brand-left {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-header .brand-left #logo-jct,
  .site-header a.brand-left img#logo-jct {
    display: block !important;
    width: min(72vw, 230px) !important;
    min-width: 0 !important;
    max-width: 230px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }

  .site-header .brand-center-text {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    color: #1f2a44 !important;
    line-height: 1.08 !important;
    margin: 0 auto !important;
  }

  .site-header .brand-center-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }

  .site-header .brand-center-subtitle {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }

  .site-header .brand-right {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-header #logo-seed {
    width: min(38vw, 145px) !important;
    max-width: 145px !important;
    height: auto !important;
  }

  .site-header #logo-gigante {
    height: min(19vw, 78px) !important;
    max-height: 78px !important;
    width: auto !important;
  }

  .site-header .brand-sep {
    width: 1px !important;
    min-height: 42px !important;
    background: rgba(15, 23, 42, .28) !important;
    opacity: 1 !important;
  }

  .site-footer .footer-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: left !important;
  }

  .site-footer .footer-left,
  .site-footer .footer-right {
    width: 100% !important;
  }

  .site-footer .footer-left {
    order: 1 !important;
  }

  .site-footer .footer-right {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .site-footer .footer-educamos {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 18px auto 20px !important;
  }

  .site-footer .footer-educamos img {
    display: block !important;
    width: min(62vw, 210px) !important;
    max-width: 210px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-footer .footer-block {
    order: 2 !important;
  }

  .jct-login-card {
    flex-direction: column !important;
    text-align: center !important;
  }

  .jct-login-right {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .jct-login-left {
    order: 2 !important;
    width: 100% !important;
  }

  .jct-login-logo {
    display: block !important;
    max-width: 190px !important;
    margin: 0 auto 10px !important;
  }
}

/*
 * RC-CSSCLEAN2: ajuste puntual post CSS móvil cargado.
 * Header móvil con texto gris institucional y menú desktop centrado.
 */

/* Desktop/tablet: centrar menú dentro de la barra */
@media (min-width: 821px) {
  .site-header .main-nav .nav-row,
  .main-nav .nav-row {
    width: min(1260px, calc(100% - 48px)) !important;
    max-width: 1260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .site-header .main-nav .nav-link--right,
  .main-nav .nav-link--right {
    margin-left: 0 !important;
  }
}

/* Móvil: bajar intensidad del texto institucional del header */
@media (max-width: 820px) {
  .site-header .brand-center-text {
    color: #4f535d !important;
  }

  .site-header .brand-center-title,
  .site-header .brand-center-subtitle {
    color: #4f535d !important;
    font-weight: 800 !important;
  }
}
