

/* --- Layout General --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 30px;
    font-family: system-ui, -apple-system, sans-serif;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* --- 1. Botón CTA --- */
.btn-footer-cta {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--footer-white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(138, 43, 226, 0.1); /* Fondo morado muy sutil */
    transition: all 0.3s ease;
}

.btn-footer-cta:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

/* --- 2. Social Icons --- */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: var(--footer-text);
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.social-icon:hover {
    color: var(--footer-white);
    transform: translateY(-3px);
}

/* --- 3. Menú Legal --- */
.legal-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legal-menu-list li a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-menu-list li a:hover {
    text-decoration: underline;
    color: var(--footer-white);
}

/* Separador bullet entre items (estilo opcional) */
.legal-menu-list li:not(:last-child)::after {
    content: "•";
    margin-left: 15px;
    color: #444;
}

/* --- 4. Branding & Copyright --- */
.footer-bottom {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #222; /* Separador sutil */
    padding-top: 30px;
}

.footer-branding img, .footer-branding .custom-logo {
    max-height: 25px;
    width: auto;
    filter: brightness(100); /* Asegura que el logo se vea blanco si es oscuro */
}

.site-title-footer {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

.footer-copy p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

/* --- DESKTOP (Min-width 992px) --- */
@media (min-width: 992px) {
    .site-footer {
        padding-bottom: 50px;
        text-align: left; /* Alineación izquierda general en desktop */
    }

    .footer-container {
        /* Usamos Grid para replicar el diseño Desktop exacto */
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas abajo */
        grid-template-areas: 
            "cta cta"
            "social social"
            "branding links";
        gap: 30px;
        align-items: end; /* Alinear abajo */
    }

    .footer-cta-wrapper { grid-area: cta; text-align: center; margin-bottom: 20px;}
    .footer-socials { grid-area: social; justify-content: center; margin-bottom: 40px;}
    
    .footer-bottom {
        grid-area: branding;
        border-top: none;
        padding-top: 0;
        align-items: flex-start; /* Alinear a la izquierda */
        margin-top: 0;
    }
    
    .footer-legal-nav {
        grid-area: links;
        justify-self: end; /* Enlaces a la derecha */
    }
}