/* Footer web AILOG reutilizado en Academia (newsletter + site-footer). */
.academia-web-footer-shell {
    --orange: #ff800d;
    --white: #ffffff;
    --max: 1200px;
    width: 100%;
    flex-shrink: 0;
    align-self: stretch;
}

.academia-web-footer-shell .footer-logo a {
    display: inline-flex;
    text-decoration: none;
}

.academia-web-footer-shell .section-newsletter {
    background: var(--orange);
    padding: 1.5rem 2rem;
}

.academia-web-footer-shell .newsletter-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.academia-web-footer-shell .newsletter-inner p {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.academia-web-footer-shell .newsletter-form-wrap {
    flex: 1;
    max-width: 520px;
}

.academia-web-footer-shell .newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    max-width: none;
    justify-content: flex-end;
}

.academia-web-footer-shell .newsletter-form input {
    flex: 1;
    min-width: 160px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.academia-web-footer-shell .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.academia-web-footer-shell .newsletter-form button {
    background: var(--white);
    color: var(--orange);
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.academia-web-footer-shell .newsletter-form button:hover {
    opacity: 0.92;
}

.academia-web-footer-shell .newsletter-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.academia-web-footer-shell .newsletter-feedback {
    width: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-align: right;
    display: none;
}

.academia-web-footer-shell .newsletter-feedback.show {
    display: block;
}

.academia-web-footer-shell .site-footer {
    color: var(--white);
    padding: 2.5rem 2rem 0;
    background-color: #14161d;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 90px),
        radial-gradient(1100px 540px at 82% 0%, rgba(126, 138, 170, 0.16), transparent 62%),
        linear-gradient(152deg, #0e1016 0%, #171a22 48%, #2b2f3b 100%);
}

.academia-web-footer-shell .footer-top {
    max-width: var(--max);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.academia-web-footer-shell .footer-logo img {
    height: 48px;
}

.academia-web-footer-shell .footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.academia-web-footer-shell .footer-social span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.academia-web-footer-shell .footer-social a {
    display: flex;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.academia-web-footer-shell .footer-social a:hover {
    opacity: 1;
}

.academia-web-footer-shell .footer-social img {
    height: 28px;
    width: 28px;
}

.academia-web-footer-shell .footer-brands {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.academia-web-footer-shell .footer-brands a {
    display: flex;
}

.academia-web-footer-shell .footer-brands img {
    height: 28px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.15s;
}

.academia-web-footer-shell .footer-brands a:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

.academia-web-footer-shell .footer-brands .sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.academia-web-footer-shell .footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.academia-web-footer-shell .footer-bottom p,
.academia-web-footer-shell .footer-links {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    margin: 0;
}

.academia-web-footer-shell .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
}

.academia-web-footer-shell .footer-links a {
    color: inherit;
    text-decoration: none;
}

.academia-web-footer-shell .footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* App logueada: footer alineado al área principal (después del sidebar). */
body.academia-app-body .academia-app > .academia-web-footer-shell {
    margin-left: var(--academia-sidebar-width, 288px);
    width: calc(100% - var(--academia-sidebar-width, 288px));
    max-width: calc(100vw - var(--academia-sidebar-width, 288px));
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 900px) {
    .academia-web-footer-shell .newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .academia-web-footer-shell .newsletter-form-wrap {
        width: 100%;
        max-width: 100%;
    }

    .academia-web-footer-shell .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .academia-web-footer-shell .newsletter-form input,
    .academia-web-footer-shell .newsletter-form button {
        width: 100%;
    }

    .academia-web-footer-shell .newsletter-feedback {
        text-align: center;
    }

    .academia-web-footer-shell .footer-top,
    .academia-web-footer-shell .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .academia-web-footer-shell .footer-links {
        justify-content: center;
    }
}
