
/* ==========================================
   OABI - FOOTER INSTITUCIONAL
   PC / TABLET / MÓVIL
========================================== */

.oabi-footer {
  --oabi-azul: #092049;
  --oabi-texto: #17386c;
  --oabi-linea: #dce5ef;

  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  box-sizing: border-box;
}

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

/* ==========================================
   ÁREA BLANCA
========================================== */

.oabi-footer__principal {
  background: #ffffff;
  padding: 48px 0 46px;
}

.oabi-footer__contenedor,
.oabi-footer__inferior-contenedor {
  width: min(94%, 1480px);
  margin: 0 auto;
}

.oabi-footer__contenedor {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ==========================================
   IDENTIDAD
========================================== */

.oabi-footer__identidad {
  min-width: 0;
}

.oabi-footer__logo {
  display: block;
  width: 100%;
  max-width: 275px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 18px;
}

.oabi-footer__identidad p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--oabi-texto) !important;
  font-size: 12px !important;
  line-height: 1.75 !important;
  text-align: left !important;
}

/* ==========================================
   MENÚS - PC
========================================== */

.oabi-footer__menus {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, .95fr)
    minmax(0, 1.2fr)
    minmax(0, 1.15fr)
    minmax(0, 1.15fr)
    minmax(0, 1.55fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.oabi-footer__grupo {
  min-width: 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--oabi-linea);
}

.oabi-footer__titulo {
  display: block !important;
  width: 100%;
  margin: 0 0 17px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--oabi-azul) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  cursor: default;
}

.oabi-footer__titulo::after {
  display: none !important;
  content: none !important;
}

.oabi-footer__flecha {
  display: none;
}

.oabi-footer__enlaces {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.oabi-footer__enlaces li {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--oabi-texto) !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
}

.oabi-footer__enlaces a {
  color: var(--oabi-texto) !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
  text-decoration: none !important;
  transition: color .2s ease;
}

.oabi-footer__enlaces a:hover {
  color: #224F9D !important;
  text-decoration: underline !important;
}

.oabi-footer__contactos {
  gap: 13px !important;
}

.oabi-footer__contactos li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.oabi-footer__contacto-icono {
  color: #224F9D;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ==========================================
   FRANJA INFERIOR AZUL
========================================== */

.oabi-footer__inferior {
  background: linear-gradient(115deg, #092049, #073361);
  color: #ffffff;
  border-bottom: none;
}

.oabi-footer__inferior-contenedor {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1.4fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.oabi-footer__mensaje {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: none;
}

.oabi-footer__mensaje strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.oabi-footer__mensaje span {
  color: #e4ebf6;
  font-size: 11px;
  line-height: 1.6;
}

.oabi-footer__redes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.oabi-footer__redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform .2s ease;
}

.oabi-footer__redes a:hover {
  transform: translateY(-3px);
}

.oabi-footer__redes img {
  display: block;
  width: 45px;
  height: auto;
  max-height: 45px;
  object-fit: contain;
  border-radius: 0;
}

.oabi-footer__copyright,
.oabi-footer__ubicacion {
  color: #e4ebf6;
  font-size: 10px;
  line-height: 1.6;
}

.oabi-footer__copyright {
  border-left: 1px solid rgba(255,255,255,.3);
  padding-left: 22px;
}

.oabi-footer__ubicacion {
  border-left: 1px solid rgba(255,255,255,.3);
  padding-left: 22px;
  text-align: right;
}

/* ==========================================
   TABLET - 768px A 1199px
========================================== */

@media (min-width: 768px) and (max-width: 1199px) {

  .oabi-footer__principal {
    padding: 36px 0 38px;
  }

  .oabi-footer__contenedor {
    display: block;
  }

  .oabi-footer__identidad {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--oabi-linea);
  }

  .oabi-footer__logo {
    max-width: 285px;
    margin: 0;
  }

  .oabi-footer__identidad p {
    font-size: 12px !important;
  }

  .oabi-footer__menus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .oabi-footer__grupo {
    padding: 12px 20px 24px;
    border-left: 1px solid var(--oabi-linea);
  }

  .oabi-footer__grupo:nth-child(-n+3) {
    border-bottom: 1px solid var(--oabi-linea);
  }

  .oabi-footer__grupo:nth-child(3n+1) {
    border-left: none;
  }

  .oabi-footer__titulo {
    font-size: 14px !important;
  }

  .oabi-footer__enlaces li,
  .oabi-footer__enlaces a {
    font-size: 12px !important;
  }

  .oabi-footer__inferior-contenedor {
    grid-template-columns: 1.2fr 1fr;
    gap: 20px 24px;
  }

  .oabi-footer__copyright {
    border-left: none;
    padding-left: 0;
  }

  .oabi-footer__ubicacion {
    text-align: right;
  }
}

/* ==========================================
   MÓVIL - HASTA 767px
========================================== */

@media (max-width: 767px) {

  .oabi-footer__principal {
    padding: 30px 0 22px;
  }

  .oabi-footer__contenedor {
    display: block;
    width: calc(100% - 32px);
  }

  .oabi-footer__identidad {
    margin-bottom: 22px;
    text-align: center;
  }

  .oabi-footer__logo {
    display: block;
    width: 100%;
    max-width: 285px;
    height: auto;
    margin: 0 auto 15px;
    object-position: center;
  }

  .oabi-footer__identidad p {
    max-width: 350px;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
  }

  .oabi-footer__menus {
    display: block;
  }

  .oabi-footer__grupo {
    padding: 0;
    border-left: none;
    border-bottom: 1px solid var(--oabi-linea);
  }

  .oabi-footer__titulo {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
    padding: 16px 4px !important;
    font-size: 14px !important;
    cursor: pointer;
  }

  .oabi-footer__flecha {
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid #224F9D;
    border-bottom: 2px solid #224F9D;
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin-right: 7px;
    flex-shrink: 0;
  }

  .oabi-footer__grupo.is-open .oabi-footer__flecha {
    transform: rotate(225deg);
  }

  .oabi-footer__enlaces {
    display: none !important;
    padding: 3px 4px 18px !important;
    gap: 11px !important;
  }

  .oabi-footer__grupo.is-open .oabi-footer__enlaces {
    display: flex !important;
  }

  .oabi-footer__enlaces li,
  .oabi-footer__enlaces a {
    font-size: 12px !important;
  }

  .oabi-footer__inferior-contenedor {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .oabi-footer__mensaje {
    padding: 20px 20px 10px;
    align-items: center;
    text-align: center;
  }

  .oabi-footer__mensaje strong {
    font-size: 14px;
  }

  .oabi-footer__mensaje span {
    max-width: 300px;
    font-size: 11px;
  }

  .oabi-footer__redes {
    width: 100%;
    padding: 12px 0 22px;
    gap: 13px;
  }

  .oabi-footer__redes img {
    width: 45px;
    height: auto;
    max-height: 45px;
  }

  .oabi-footer__copyright {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.35);
    padding: 17px 16px 0;
    text-align: center;
  }

  .oabi-footer__ubicacion {
    width: 100%;
    border-left: none;
    padding: 4px 16px 19px;
    text-align: center;
  }
}

/* ==========================================
   AJUSTES FINALES FOOTER OABI
========================================== */

/* Títulos más naturales */
.oabi-footer .oabi-footer__titulo {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600 !important;
}

/* Logo ligeramente más grande en PC */
@media (min-width: 1200px) {
  .oabi-footer__logo {
    max-width: 300px;
  }
}

/* Tablet: divisores más discretos */
@media (min-width: 768px) and (max-width: 1199px) {
  .oabi-footer__grupo {
    border-left-color: #e8edf3;
    border-bottom-color: #e8edf3;
  }
}

/* Móvil: corregir posición de flechas */
@media (max-width: 767px) {

  .oabi-footer .oabi-footer__titulo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px;
    width: 100%;
    letter-spacing: 0 !important;
    text-align: left !important;
  }

  .oabi-footer .oabi-footer__flecha {
    position: static !important;
    display: inline-block !important;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin: 0 7px 4px auto !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 2px solid #224F9D !important;
    border-bottom: 2px solid #224F9D !important;
    transform: rotate(45deg);
  }

  .oabi-footer .oabi-footer__grupo.is-open
  .oabi-footer__flecha {
    transform: rotate(225deg);
  }
}

/* =========================================
   FOOTER OABI - TITULOS SIN ZOOM
========================================= */

.oabi-footer .oabi-footer__titulo,
.oabi-footer .oabi-footer__titulo:hover,
.oabi-footer .oabi-footer__titulo:focus,
.oabi-footer .oabi-footer__titulo:active,
.oabi-footer .oabi-footer__grupo.is-open .oabi-footer__titulo {
    transform: none !important;
    scale: 1 !important;
    font-size: inherit;
    transition: color 0.25s ease !important;
}

/* Efecto elegante sin movimiento */
@media (hover: hover) {
    .oabi-footer .oabi-footer__titulo:hover {
        color: #224F9D !important;
    }
}

/* Evitar desplazamientos de los enlaces */
.oabi-footer .oabi-footer__enlaces a,
.oabi-footer .oabi-footer__enlaces a:hover {
    transform: none !important;
    scale: 1 !important;
}

/* Efecto de enlaces: solamente color */
@media (hover: hover) {
    .oabi-footer .oabi-footer__enlaces a:hover {
        color: #224F9D !important;
    }
}

/* =========================================
   FOOTER OABI - DIVISORES TABLET
========================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    /* Eliminar divisiones individuales */
    .oabi-footer .oabi-footer__grupo {
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    /* Separar visualmente las dos filas */
    .oabi-footer .oabi-footer__grupo:nth-child(n+4) {
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 22px !important;
    }
}

/* =========================================
   FOOTER OABI - DIVISORES UNIFORMES EN PC
========================================= */

@media (min-width: 1200px) {

    /* Todas las columnas ocupan la misma altura */
    .oabi-footer .oabi-footer__menus {
        align-items: stretch !important;
    }

    /* Cada grupo se extiende verticalmente */
    .oabi-footer .oabi-footer__grupo {
        align-self: stretch !important;
        height: 100% !important;
        min-height: 140px;
        box-sizing: border-box;
    }

}
