/* --- Estilos Base para Móvil --- */
/* Por defecto, será una barra horizontal fija en la parte inferior */
.redes {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-texto-claro);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-xs) 0;
    z-index: 1000;
}

.redes a {
    color: var(--color-texto-oscuro);
    font-size: 1.8rem;
    padding: var(--space-xs);
    transition: transform 0.3s ease, color 0.3s ease;
}

.redes a:hover {
    color: var(--color-principal);
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .redes {
        position: fixed;
        top: 50%;
        right: var(--space-md);
        transform: translateY(-50%);
        width: auto;
        height: auto;
        flex-direction: column;
        gap: var(--space-sm);
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .redes a {
        background-color: var(--color-texto-claro);
        color: var(--color-texto-oscuro);
        font-size: 1.5rem;
        text-decoration: none;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .redes a::before {
        content: attr(aria-label);
        position: absolute;
        right: 120%;
        background-color: var(--color-principal);
        color: var(--color-texto-claro);
        padding: var(--space-xs) var(--space-sm);
        border-radius: 0.5rem;
        white-space: nowrap;
        transform: scale(0);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: right;
    }

    .redes a:hover::before {
        transform: scale(1);
        opacity: 1;
    }
}