/* Footer global de Educatic. Estilos aislados para no modificar AdSense. */
.educatic-footer {
    position: relative;
    overflow: hidden;
    margin-top: 42px;
    color: #ecf4ff;
    background:
        radial-gradient(ellipse at 10% 5%, rgba(36, 112, 241, .17), transparent 42%),
        radial-gradient(ellipse at 96% 75%, rgba(14, 165, 233, .09), transparent 39%),
        #101a2b;
    border-top: 1px solid rgba(147, 197, 253, .18);
}

.educatic-footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #2563eb, #38bdf8 48%, #2563eb);
}

.educatic-footer > .container {
    position: relative;
    z-index: 1;
}

.educatic-footer a {
    color: inherit;
    text-decoration: none;
}

.educatic-footer a:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 4px;
    border-radius: 6px;
}

.educatic-footer-promo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 38px 0 40px;
    padding: 21px 25px;
    background: linear-gradient(110deg, rgba(37, 99, 235, .18), rgba(255, 255, 255, .04));
    border: 1px solid rgba(147, 197, 253, .2);
    border-radius: 20px;
}

.educatic-footer-promo-mark,
.educatic-footer-logo-icon,
.educatic-footer-ally-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.educatic-footer-promo-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    font-size: 1.45rem;
}

.educatic-footer-promo-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.educatic-footer-promo-copy > span {
    color: #93c5fd;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.educatic-footer-promo-copy > strong {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.19rem);
    line-height: 1.4;
}

.educatic-footer-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
    padding: 13px 18px;
    color: #0f172a !important;
    background: #fff;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease;
}

.educatic-footer-promo-btn:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.educatic-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .88fr) minmax(0, 1.05fr) minmax(0, 1.25fr);
    align-items: start;
    column-gap: clamp(20px, 3vw, 44px);
    row-gap: 34px;
    padding-bottom: 38px;
}

.educatic-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    font-size: 1.48rem;
    font-weight: 850;
    letter-spacing: -.035em;
}

.educatic-footer-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    font-size: 1.35rem;
}

.educatic-footer-brand > p {
    max-width: 355px;
    margin: 16px 0 18px;
    color: #b8c7dd;
    font-size: .88rem;
    line-height: 1.85;
}

.educatic-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.educatic-footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
    border: 1px solid rgba(203, 213, 225, .19);
    border-radius: 11px;
    background: rgba(255, 255, 255, .06);
    color: #dceaff;
    font-size: 1rem;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.educatic-footer-social a:hover {
    background: #2563eb;
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-3px);
}

.educatic-footer-column h2,
.educatic-footer-allies h2 {
    margin: 8px 0 19px;
    color: #fff;
    font-size: .99rem;
    font-weight: 800;
}

.educatic-footer-column ul {
    display: grid;
    gap: 13px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.educatic-footer-column li {
    min-width: 0;
}

.educatic-footer-column a {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: #bdcbe0;
    font-size: .89rem;
    line-height: 1.5;
    transition: color .2s ease;
}

.educatic-footer-column a:hover,
.educatic-footer-bottom a:hover {
    color: #7dd3fc;
}

.educatic-footer-column a .bi {
    font-size: .7rem;
}

.educatic-footer-allies-list {
    display: grid;
    gap: 10px;
}

.educatic-footer-allies-list > a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, .13);
    background: rgba(255, 255, 255, .045);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.educatic-footer-allies-list > a:hover {
    border-color: rgba(125, 211, 252, .4);
    background: rgba(255, 255, 255, .09);
    transform: translateY(-2px);
}

.educatic-footer-ally-icon {
    width: 37px;
    height: 37px;
    border-radius: 11px;
    color: #a7d8ff;
    background: rgba(59, 130, 246, .16);
    font-size: 1.03rem;
}

.educatic-footer-ally-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.educatic-footer-ally-copy strong {
    color: #fff;
    font-size: .86rem;
}

.educatic-footer-ally-copy small {
    color: #b2c2d8;
    font-size: .73rem;
    line-height: 1.35;
}

.educatic-footer-ally-arrow {
    margin-left: auto;
    color: #93c5fd;
    font-size: .8rem;
}

.educatic-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 23px 0 26px;
    border-top: 1px solid rgba(203, 213, 225, .17);
    color: #adc0d8;
    font-size: .79rem;
}

.educatic-footer-bottom p {
    margin: 0;
}

.educatic-footer-bottom nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.educatic-footer-bottom a {
    color: #c7d5e6;
    transition: color .2s ease;
}

body.dark-mode .educatic-footer {
    background-color: #101a2b !important;
}

@media (max-width: 1199px) {
    .educatic-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 42px;
    }
}

@media (max-width: 767px) {
    .educatic-footer-promo {
        align-items: flex-start;
        flex-wrap: wrap;
        margin: 28px 0 32px;
        padding: 20px;
    }

    .educatic-footer-promo-btn {
        margin-left: 0;
        width: 100%;
    }

    .educatic-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .educatic-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 30px;
    }

    .educatic-footer-brand,
    .educatic-footer-allies {
        grid-column: 1 / -1;
    }

    .educatic-footer-promo-mark {
        width: 45px;
        height: 45px;
        border-radius: 13px;
    }

    .educatic-footer-column h2,
    .educatic-footer-allies h2 {
        margin-bottom: 15px;
    }

    .educatic-footer-column ul {
        gap: 12px;
    }

    .educatic-footer-bottom nav {
        gap: 10px 17px;
    }
}

@media (max-width: 359px) {
    .educatic-footer-grid {
        grid-template-columns: 1fr;
    }

    .educatic-footer-brand,
    .educatic-footer-allies {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .educatic-footer a {
        transition: none !important;
    }
}
