/* Footer de index2; estilos limitados al pie del portal. */
.site-footer { --footer: #e4e4e2; width: min(100% - 36px, 1090px); margin-inline: auto; color: #151515; font-weight: 200; line-height: normal; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer .footer-mark { display: inline-flex; line-height: 0; }
.site-footer .footer-mark img { filter: brightness(0); }
.site-footer { position: relative; min-height: 340px; background: var(--footer); border-radius: 10px 10px 0 0; padding: 30px 36px 24px; }
.footer-top { display: block; }
.footer-mark { margin-top: 5px; }
.footer-mark img { width: 174px; height: auto; }
.footer-intro h2 { max-width: 370px; margin: 28px 0 45px; font-size: 32px; line-height: .94; letter-spacing: -.07em; font-weight: 350; }
.footer-intro p, .footer-credentials p { margin: 0; max-width: 365px; color: #777775; font-size: 17px; line-height: 1.03; letter-spacing: -.045em; }
.footer-credentials-summary { display: none; }
.footer-ctas { position: absolute; top: 25px; right: 28px; display: flex; gap: 10px; }
.footer-ctas a { padding: 8px 11px 9px; border-radius: 9px; font-size: 15px; line-height: 1; letter-spacing: -.05em; }
.button-dark { color: white; background: #151515; }
.footer-ctas .button-dark { color: #151515; background: #a7a6a4; }
.button-light { background: white; }
.footer-credentials { position: absolute; top: 66px; left: 50%; width: 300px; }
.footer-top h3 { margin: 0 0 44px; font-size: 18px; line-height: 1; font-weight: 350; letter-spacing: -.05em; }
.credential-logos { margin: 0 0 52px; }
.aemps-logo { display: block; width: min(100%, 270px); height: auto; }
.bcorp-logo-mobile { display: none; }
.footer-bcorp { position: absolute; top: 83px; left: 78%; width: 100px; text-align: center; }
.bcorp-logo { display: block; width: 100px; height: auto; }
.footer-bottom { position: absolute; bottom: 24px; left: 36px; right: 36px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: -.045em; }

@media (min-width: 761px) {
  .site-footer { width: min(100% - 42px, 1090px); min-height: 236px; padding: 0; background: var(--footer); box-shadow: none; }
  .footer-top { position: relative; height: 236px; }
  .footer-intro { position: absolute; top: 30px; left: 34px; }
  .footer-mark { margin-top: 0; }
  .footer-mark img { width: 170px; }
  .footer-intro h2 { display: none; }
  .footer-intro p { max-width: 285px; margin-top: 29px; color: #777775; font-size: 18px; line-height: 1.08; letter-spacing: -.045em; }
  .footer-ctas { top: 25px; right: 28px; }
  .footer-ctas a { padding: 8px 11px 9px; font-size: 15px; }
  .footer-credentials { position: absolute; top: 88px; left: calc(35% + 13px); width: 300px; }
  .footer-top h3 { position: absolute; top: -1px; left: 331px; margin: 0; width: 150px; font-size: 18px; line-height: 1; }
  .credential-logos { position: absolute; top: 15px; left: 331px; display: flex; align-items: flex-start; gap: 18px; margin: 0; width: 240px; }
  .aemps-logo { width: 155px; margin-top: 26px; }
  .bcorp-logo-mobile { display: block; flex: none; width: 76px; height: auto; transform: translateY(-12px); }
  .footer-credentials p { position: static; display: block; width: 300px; max-width: none; margin: 0; color: #777775; font-size: 17px; line-height: 1.08; letter-spacing: -.045em; }
  .footer-bcorp { display: none; }
  .footer-bottom { right: auto; bottom: 17px; left: 34px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 22px; font-size: 12px; }
}

@media (max-width: 760px) {
  .site-footer { width: calc(100% - 40px); min-height: 0; padding: 33px 20px 24px; }
  .footer-top { display: grid; grid-template-columns: 1fr; gap: 37px; }
  .footer-intro { grid-column: auto; }
  .footer-mark img { width: 185px; }
  .footer-intro h2 { font-size: 29px; }
  .footer-ctas { position: absolute; top: 37px; right: 20px; margin: 0; }
  .footer-intro { padding-bottom: 20px; }
  .footer-credentials { position: static; grid-column: auto; grid-row: auto; width: auto; }
  .footer-top h3 { margin: 0 0 22px; }
  .credential-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 39px; }
  .aemps-logo { width: min(100%, 255px); }
  .bcorp-logo-mobile { display: block; flex: none; width: 88px; height: auto; }
  .footer-bcorp { display: none; }
  .footer-bottom { position: static; margin-top: 45px; flex-direction: column; gap: 8px; }
}

/* Mantiene la composición en tablet y evita solapar el logo en móvil. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-footer { padding: 30px; }
  .site-footer .footer-top { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .footer-intro, .site-footer .footer-credentials, .site-footer .footer-ctas { position: static; width: auto; }
  .site-footer .footer-intro { grid-column: 1; grid-row: 1 / 3; }
  .site-footer .footer-ctas { grid-column: 2; justify-content: flex-start; }
  .site-footer .footer-credentials { grid-column: 2; }
  .site-footer .footer-top h3, .site-footer .credential-logos { position: static; width: auto; }
  .site-footer .footer-top h3 { margin-bottom: 18px; }
  .site-footer .credential-logos { gap: 16px; margin-bottom: 22px; }
  .site-footer .aemps-logo { width: min(60%, 155px); margin: 0; }
  .site-footer .bcorp-logo-mobile { width: 60px; transform: none; }
  .site-footer .footer-credentials p { width: auto; }
  .site-footer .footer-bottom { position: static; margin-top: 32px; flex-wrap: wrap; gap: 10px 22px; }
}
@media (max-width: 760px) {
  .site-footer .footer-ctas { position: static; flex-wrap: wrap; }
  .site-footer .footer-intro { padding-bottom: 0; }
  .site-footer .footer-intro h2 { margin-bottom: 24px; }
  .site-footer .aemps-logo { width: min(65%, 255px); }
  .site-footer .bcorp-logo-mobile { width: min(25%, 88px); }
}
.site-footer a:focus-visible { outline: 2px solid #151515; outline-offset: 4px; }
