/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding-top: 90px;
    width: 100%;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    padding-bottom: 70px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-logo img {
    width: 46px;
    height: 46px;
    border-radius: 70%;
    object-fit: cover;
}

.footer-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--accent);
}

.footer-marca p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 24px;
}

.footer-marca .redes {
    display: flex;
    gap: 12px;
}

.footer-marca .redes a {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 17px;
    transition: all 0.3s;
}

.footer-marca .redes a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col ul li a,
.footer-col ul li span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-contacto li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contacto li i {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-2-rgb), 0.16));
    color: var(--accent);
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 26px var(--pad);
}

.footer-bottom-inner p {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-mono);
}

footer .arriba {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    flex: 0 0 auto;
    box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.3);
}

footer .arriba:hover {
    transform: translateY(-4px);
}

/* Botón flotante "volver arriba": mismo estilo que el del footer, pero
   fijo en pantalla y visible solo a partir de cierto scroll (ver main.js) */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top.visible:hover {
    transform: translateY(-4px);
}
