/* =========================================================
   FOOTER — estilos finales
   ========================================================= */

/* ---------- Fondo (degrade primario → más oscuro) ---------- */
.bg-footer {
    font-family: "tipografia2", Arial, Helvetica, sans-serif;
    /* var(--primario) izquierda  →  tono más oscuro derecha   */
    background: linear-gradient(
        to right,
        var(--primario) 0%,
        var(--secundarioBis) 100%
    );
}

/* ---------- Enlaces ---------- */
.footer a {
    color: var(--secundario); /* texto en secundario  */
    text-decoration: none;
    transition: color 0.2s;
}
.footer a:hover {
    text-decoration: none;
    color: var(--secundario) !important; /* pasa a blanco        */
}

/* ---------- Iconos sociales ---------- */
.footer-icons i {
    color: var(--terciario); /* base secundario      */
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: transform 0.2s, color 0.2s;
    text-decoration: none;
}
.footer-icons i:hover {
    transform: scale(1.2);
    color: #fff; /* al pasar ⇢ blanco    */
    text-decoration: none;
    color: var(--secundario);
}

/* ---------- Créditos ---------- */
.footer-credit {
    font-family: "Arial Black", sans-serif;
    color: var(--terciario); /* mismo tono de enlaces */
    font-weight: bolder;
    font-size: 0.9rem;
}

.footer-credit .credit-link {
    color: var(--secundario);
    text-decoration: none;
}

.footer-credit .credit-link:hover {
    text-decoration: underline;
    color: var(--primario);
}

/* ========== 0 – 575 px · smartphones ========== */
@media (max-width: 575.98px) {
    /* contenedor ya es flex-column (por utilidades), solo centramos */
    .footer .container {
        text-align: center;
        gap: 1.25rem;
    }

    /* enlaces en columna, aire vertical */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }
    .footer-links a {
        margin: 0; /* quita margin-end de “me-3” */
        font-size: 0.95rem;
    }

    .footer-links .sobre-mi {
        margin-left: -20px;
    }

    /* iconos centrados y separados */
    .footer-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    .footer-icons i {
        margin-left: 0;
    } /* anula margen-start extra */

    /* créditos con tipografía un poco menor */
    .footer-credit {
        font-size: 0.8rem;
        margin-top: 2rem;
    }
}

/* ========== 576 – 991 px · tablet / móviles grandes ========== */
@media (min-width: 576px) and (max-width: 991.98px) {
    /* contenedor ya se hace fila (flex-md-row) → solo aire lateral */
    .footer .container {
        padding-inline: 1rem;
    }

    /* enlaces: permiten wrap sin quedar muy juntos */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.85rem 1.25rem;
    }
    .footer-links a {
        margin: 0;
    }

    /* iconos en línea, margen fijo entre ellos */
    .footer-icons i {
        margin-left: 0.5rem;
    }
}
