/* =========================
   FOOTER ACREDUCA
========================= */

:root {
  --acreduca-blue: #181e6d;
  --acreduca-blue-card: #303783;
  --acreduca-orange: #ff7a00;
  --acreduca-text: #ffffff;
  --acreduca-text-soft: rgba(255, 255, 255, 0.78);
  --acreduca-border-soft: rgba(255, 255, 255, 0.16);
}

/* Fondo principal: sólido, sin gradientes */
#footer.footer {
  background: var(--acreduca-blue) !important;
  color: #ffffff;
  overflow: hidden;
}

/* Separadores */
#footer hr {
  border-color: var(--acreduca-border-soft);
  opacity: 1;
}

/* Logo */
#footer .footer-logo {
  max-width: 150px;
  height: auto;
}

/* Botón de tema */
#footer .footer-theme-switch .btn {
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

#footer .footer-theme-switch .btn:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Títulos: menos bold */
#footer h5 {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* Links generales */
#footer .nav-link,
#footer a {
  color: var(--acreduca-text-soft);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

/* Hover solo para links normales */
#footer .nav-link:hover,
#footer .link-hover-underline:hover {
  color: var(--acreduca-orange) !important;
}

/* Quitar subrayado animado anterior */
#footer .nav.flex-column .nav-link::after {
  display: none !important;
}

/* Links de columnas */
#footer .nav.flex-column .nav-link {
  width: fit-content;
  font-size: 0.96rem;
  line-height: 1.4;
}

/* Tarjeta derecha: sobria, sin gradiente fuerte */
#footer .bg-white-25 {
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border-radius: 22px !important;
}

/* Contacto */
#footer .fs-5 {
  color: #ffffff !important;
  font-weight: 400;
  font-size: 1.08rem !important;
}

#footer .fs-5:hover {
  color: var(--acreduca-orange) !important;
}

/* Botón Contactar */
#footer .btn-primary {
  background: var(--acreduca-orange) !important;
  border-color: var(--acreduca-orange) !important;
  color: #ffffff !important;
  font-weight: 500;
  box-shadow: none;
}

#footer .btn-primary:hover {
  background: #e96f00 !important;
  border-color: #e96f00 !important;
  color: #ffffff !important;
  transform: none;
}

/* Redes sociales: NO usar hover naranja */
#footer .si {
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50% !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#footer .si:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: none !important;
}

/* Evita que las clases si-hover-* del theme metan colores propios */
#footer .si:hover i {
  color: #ffffff !important;
}

/* Barra inferior */
#footer .row.justify-content-between .nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

#footer .row.justify-content-between .nav-link:hover {
  color: var(--acreduca-orange) !important;
}

#footer .text-white-50 {
  color: rgba(255, 255, 255, 0.58) !important;
}

/* Oficina */
#footer .footer-office {
    margin-top: 1.75rem !important;
}

#footer .footer-office-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

#footer .footer-office-heading {
    align-items: center;
    margin-bottom: 0.75rem;
}

#footer .footer-office-heading h6 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

#footer .footer-office-icon {
    flex: 0 0 16px;
    width: 16px;
    min-width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1;
}

#footer .footer-office-icon i {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

#footer .footer-office-address {
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: var(--acreduca-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

#footer .footer-office-address:hover {
    color: #ffffff !important;
}

#footer .footer-office-address span:last-child {
    padding-top: 0;
}

#footer .footer-map {
    width: 100%;
    margin-top: 0.25rem;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.08);
}

#footer .footer-map iframe {
    display: block;
    width: 100%;
    height: 170px;
}


/* =========================================================
   ACREDUCA - BOTONES FLOTANTES GLOBALES
   WHATSAPP + VOLVER ARRIBA
   ========================================================= */

:root {
    --acreduca-floating-right: 20px;
    --acreduca-floating-size: 50px;
    --acreduca-floating-gap: 16px;
}

/* ==========================================
   BOTÓN VOLVER ARRIBA
   ========================================== */

body > .toTop {
    position: fixed !important;
    right: var(--acreduca-floating-right) !important;
    bottom: 20px !important;

    width: var(--acreduca-floating-size);
    height: var(--acreduca-floating-size);

    margin: 0 !important;
    z-index: 1040;
}

/* ==========================================
   BOTÓN WHATSAPP
   ========================================== */

.acreduca-whatsapp-floating {
    position: fixed !important;

    right: var(--acreduca-floating-right) !important;

    bottom: calc(
        20px +
        var(--acreduca-floating-size) +
        var(--acreduca-floating-gap)
    ) !important;

    width: var(--acreduca-floating-size);
    height: var(--acreduca-floating-size);

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

    margin: 0;
    padding: 0;

    border-radius: 50%;
    background: #25d366;
    color: #ffffff;

    font-size: 26px;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);

    z-index: 1050;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.acreduca-whatsapp-floating:hover {
    background: #1ebe5d;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 9px 25px rgba(37, 211, 102, 0.4);
}

.acreduca-whatsapp-floating:focus-visible {
    outline: 3px solid #181e6d;
    outline-offset: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 575.98px) {

    :root {
        --acreduca-floating-right: 16px;
        --acreduca-floating-size: 46px;
        --acreduca-floating-gap: 14px;
    }

    body > .toTop {
        bottom: 16px !important;
    }

    .acreduca-whatsapp-floating {
        bottom: calc(
            16px +
            var(--acreduca-floating-size) +
            var(--acreduca-floating-gap)
        ) !important;

        font-size: 24px;
    }
}