/* ==========================================
    FOOTER - Mobile-first
    ========================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 0px;
    border-top: 2px solid var(--secondary-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
}

.footer__logo {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer__logo img {
    width: 160px;
}

.footer__title {
    font-size: var(--font-base);
    color: var(--bg-body);
    margin-bottom: 20px;
    position: relative;
}

.footer__title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    margin-top: 5px;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: var(--text-light);
    transition: 0.3s;
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer__social {
    display: flex;
    gap: 20px;
    font-size: var(--font-lg);
    padding-bottom: 30px;
}

.footer__social a {
    color: var(--bg-body);
    transition: transform 0.3s;
    padding-top: 30px;
    text-decoration: none;
}

.footer__social a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    font-size: var(--font-sm);
    background-color: var(--dark-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer__bottom p {
    margin: 0;
}

/* Estilos para el correo electrónico en el footer */

.email-footer {
    background-color: var(--bg-body);
    padding: 10px 15px;
    border-radius: 3px;
    transition: background-color 0.3s;
    text-decoration: none;
}
.email-footer a {
    text-decoration: none;
    color: var(--primary-color);
}
.email-footer a:hover {
    color: var(--secondary-color);
}

/* Botón flotante */

.btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--bg-body);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.btn-scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Clase para mostrar el botón cuando el usuario baje */
.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}