
/* PG-K48-LEGACY-VISUAL-V2 */

/* Cabecera: mantener el puente de Kalium 4.8
   utilizando los selectores originales. */

.pg-k48-site-header.main-header {
    background-color: #293640 !important;
    color: #fff;
    padding: 0 !important;
}

.pg-k48-site-header.main-header
.pg-k48-site-header__main {
    min-height: 82px;
}

.pg-k48-site-header.main-header
.pg-k48-main-menu > li > a {
    font-size: 16px;
    line-height: 1.4;
}

/* Footer original: recuperar contraste oscuro. */

body footer.main-footer {
    position: relative;
    background-color: #414141 !important;
    color: #eee !important;
}

body footer.main-footer .footer-widgets {
    padding-top: 36px;
    padding-bottom: 32px;
}

body footer.main-footer p,
body footer.main-footer li,
body footer.main-footer h3,
body footer.main-footer h4,
body footer.main-footer .copyrights {
    color: #eee !important;
}

body footer.main-footer a,
body footer.main-footer a:visited {
    color: #eee !important;
}

body footer.main-footer a:hover,
body footer.main-footer a:focus-visible {
    color: #fff !important;
    text-decoration: underline;
}

body footer.main-footer .footer-bottom {
    background-color: #343434;
    color: #ddd;
    padding-top: 14px;
    padding-bottom: 14px;
}

body footer.main-footer .footer-widgets .row {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    body footer.main-footer .footer-widgets {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .pg-k48-site-header.main-header
    .pg-k48-site-header__main {
        min-height: 70px;
    }
}

/* PG-K48-FOOTER-PARITY-V4
   Paridad visual de footer PRE para tema padre Kalium 4.8.
   Mantener widgets y opciones de produccion intactos. */

/* Dos columnas, como el footer original: contacto y redes. */
body footer#footer.main-footer .footer-widgets > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
    margin: 0;
}
body footer#footer.main-footer .footer-widgets > .row > .widget {
    min-width: 0;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}
body footer#footer.main-footer .footer-widgets #text-4 {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
}
body footer#footer.main-footer .footer-widgets #text-5 {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
}
/* Credito extra del nuevo Kalium, ausente en footer PRE. */
body footer#footer.main-footer .footer-widgets #block-2 {
    display: none !important;
}
body footer#footer.main-footer #text-4,
body footer#footer.main-footer #text-4 p,
body footer#footer.main-footer #text-4 h2,
body footer#footer.main-footer #text-4 h3,
body footer#footer.main-footer #text-4 h4,
body footer#footer.main-footer #text-4 strong,
body footer#footer.main-footer #text-4 a {
    color: #f5f5f5 !important;
}
body footer#footer.main-footer .footer-widgets #text-5 .social-icons {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}
body footer#footer.main-footer .footer-widgets #text-5 a.social-icon {
    background: #343434 !important;
    color: #fff !important;
    border-radius: 50% !important;
}
body footer#footer.main-footer .footer-widgets #text-5 a.social-icon svg,
body footer#footer.main-footer .footer-widgets #text-5 a.social-icon span {
    color: #fff !important;
}
body footer#footer.main-footer .footer-widgets {
    padding: 38px 0 30px;
}
/* Barra de copyright y enlaces legales, sin segundo menu suelto. */
body footer#footer.main-footer .footer-bottom {
    padding: 12px 0 !important;
}
body footer#footer.main-footer .footer-bottom .hidden-sm.hidden-lg {
    display: none !important;
}
body footer#footer.main-footer .footer-bottom #footerES > .row,
body footer#footer.main-footer .footer-bottom #footerEN > .row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    column-gap: 30px;
    align-items: center;
}
body footer#footer.main-footer .footer-bottom #footerES > .row > div,
body footer#footer.main-footer .footer-bottom #footerEN > .row > div {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}
body footer#footer.main-footer .footer-bottom .text-right {
    text-align: right !important;
}
html:not([lang^="en"]) footer#footer.main-footer #footerEN {
    display: none !important;
}
html[lang^="en"] footer#footer.main-footer #footerES {
    display: none !important;
}
@media (max-width: 767px) {
    body footer#footer.main-footer .footer-widgets > .row,
    body footer#footer.main-footer .footer-bottom #footerES > .row,
    body footer#footer.main-footer .footer-bottom #footerEN > .row {
        grid-template-columns: minmax(0,1fr) !important;
        row-gap: 17px;
    }
    body footer#footer.main-footer .footer-widgets #text-4,
    body footer#footer.main-footer .footer-widgets #text-5 {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        text-align: left;
    }
    body footer#footer.main-footer .footer-widgets #text-5 .social-icons {
        justify-content: flex-start !important;
    }
    body footer#footer.main-footer .footer-bottom .text-right {
        text-align: left !important;
    }
}

/* PG-K48-MICROPARITY-V5 */

/* Footer: circulos e iconos sociales */

body footer#footer.main-footer #text-5 a.social-icon,
body footer#footer.main-footer #text-5 a.pg-k48-social-v5 {
    box-sizing: border-box !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #333 !important;
    background-color: #333 !important;
    color: #fff !important;
    padding: 0 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

body footer#footer.main-footer #text-5 a.social-icon::before,
body footer#footer.main-footer #text-5 a.social-icon::after {
    content: none !important;
    background: transparent !important;
}

body footer#footer.main-footer #text-5 a.social-icon .social-icon__col,
body footer#footer.main-footer #text-5 a.social-icon .social-icon__icon,
body footer#footer.main-footer #text-5 a.social-icon .inline-svg-icon {
    background: transparent !important;
    background-color: transparent !important;
}

body footer#footer.main-footer #text-5 a.pg-k48-social-v5 svg {
    display: block !important;
    flex: none !important;
    width: 17px !important;
    height: 17px !important;
    color: #fff !important;
    fill: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body footer#footer.main-footer #text-5 a.pg-k48-social-v5:hover,
body footer#footer.main-footer #text-5 a.pg-k48-social-v5:focus-visible {
    background-color: #505050 !important;
}

/* Portada: insignias Nuevo */

body.home .pg-k48-new-badge-v5 {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 2px 6px !important;
    margin: 1px 0 0 !important;
    background: #7c7c7c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    vertical-align: middle !important;
    opacity: 1 !important;
}

/* PG-K48-FOOTER-ALIGN-V51 */

/* Contenedor centrado, con margenes laterales. */
body footer#footer.main-footer > .container,
body footer#footer.main-footer > .footer-bottom > .container {
  box-sizing: border-box !important;
  width: calc(100% - 48px) !important;
  max-width: 1170px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Evitar que la fila desborde el contenedor. */
body footer#footer.main-footer .footer-widgets,
body footer#footer.main-footer .footer-widgets > .row {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
}

body footer#footer.main-footer .footer-widgets > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: grid !important;
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 36px !important;
  align-items: start !important;
}

/* Contacto a la izquierda. */
body footer#footer.main-footer .footer-widgets #text-4 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}

/* Redes a la derecha. */
body footer#footer.main-footer .footer-widgets #text-5 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  text-align: right !important;
}

body footer#footer.main-footer .footer-widgets #text-5 .social-icons {
  justify-content: flex-end !important;
}

/* Copyright y enlaces legales dentro del mismo ancho. */
body footer#footer.main-footer .footer-bottom #footerES > .row,
body footer#footer.main-footer .footer-bottom #footerEN > .row {
  margin: 0 !important;
  width: 100% !important;
}

/* Disposicion movil. */
@media (max-width: 767px) {
  body footer#footer.main-footer > .container,
  body footer#footer.main-footer > .footer-bottom > .container {
    width: calc(100% - 32px) !important;
  }

  body footer#footer.main-footer .footer-widgets > .row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  body footer#footer.main-footer .footer-widgets #text-4,
  body footer#footer.main-footer .footer-widgets #text-5 {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    text-align: left !important;
  }

  body footer#footer.main-footer .footer-widgets #text-5 .social-icons {
    justify-content: flex-start !important;
  }
}

