body.pagina-home {
    background-attachment: fixed;
    background:
        radial-gradient(circle at top left, rgba(30, 118, 182, 0.16), transparent 22%),
        radial-gradient(circle at 82% 18%, rgba(230, 110, 28, 0.14), transparent 20%),
        radial-gradient(circle at 18% 78%, rgba(28, 167, 70, 0.11), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #f2f7fb 38%, #f7f4ee 100%);
}

.home-banner-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 6px 0 10px 0;
    padding: 18px 24px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(31, 118, 181, 0.14);
    background:
        radial-gradient(circle at top right, rgba(31, 118, 181, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 255, 0.98) 100%);
    box-shadow: 0 20px 42px rgba(15, 74, 119, 0.10);
}

.img-fluid {
    display: block;
    width: 100%;
    height: auto;
}

.img-eventos {
    width: 40%;
    min-height: 180px;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
}

.animate-on-scroll {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.animate-on-scroll.animate__zoomIn.animated {
    animation: homeZoomInReveal 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeZoomInReveal {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(28px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 900px) {
    .home-banner-visual {
        padding: 14px 16px;
    }

    .img-eventos {
        width: min(100%, 420px);
        min-height: 0;
        max-height: none;
        object-fit: contain;
    }
}

.home-whatsapp-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin: 10px 0 8px 0;
    padding: 10px 16px;
    font-size: 15px;
    border-left: 4px solid #1f76b5;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.88) 100%);
    box-shadow: 0 12px 26px rgba(31, 118, 181, 0.08);
}

.home-whatsapp-label {
    color: #193649;
    font-weight: 700;
}

.home-whatsapp-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #21b15f;
    transition: transform 0.18s ease, color 0.18s ease;
}

.home-whatsapp-icon-link:hover,
.home-whatsapp-icon-link:focus-visible {
    color: #14924d;
    transform: translateY(-1px);
}

.home-whatsapp-icon {
    width: 22px;
    height: 22px;
}

.home-whatsapp-text-link {
    color: #f27b2c;
    font-weight: 700;
}

.home-whatsapp-text-link:hover,
.home-whatsapp-text-link:focus-visible {
    color: #d96315;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 22px;
    align-items: stretch;
    margin-top: 8px;
}
.hero-copy {
    padding: 36px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 250, 255, 0.97) 42%, rgba(255, 247, 238, 0.98) 100%);
    border: 1px solid rgba(31, 118, 181, 0.12);
    box-shadow: 0 26px 54px rgba(15, 74, 119, 0.12);
}
.hero-copy::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(31, 118, 181, 0.18) 0%, transparent 72%);
    pointer-events: none;
}
.hero-copy::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(230, 110, 28, 0.16) 0%, transparent 70%);
    pointer-events: none;
}
.hero-copy h1 {
    margin: 12px 0 18px 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 0.98;
    color: #173040;
    max-width: 10ch;
}
.hero-copy p {
    max-width: 62ch;
    color: #415d69;
}
.hero-actions {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    grid-template-columns: repeat(2, max-content);
}
.pagina-home .hero-actions .btn {
    min-width: 210px;
    justify-content: center;
}
.hero-card {
    background:
        linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 247, 236, 0.98) 100%);
    border: 1px solid rgba(217, 107, 31, 0.18);
    box-shadow: 0 24px 46px rgba(191, 84, 18, 0.11);
}
.hero-card h2 {
    color: #135c8e;
}
.home-info-list {
    display: grid;
    gap: 10px;
}
.home-info-item {
    margin: 0;
    line-height: 1.45;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    align-items: start;
}
.home-info-bullet {
    display: inline-flex;
    justify-content: center;
    font-size: 16px;
    line-height: 1.2;
    color: #d96b1f;
}
.home-info-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-info-link {
    margin-left: 6px;
    color: #1f76b5;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pagina-home .eyebrow {
    color: #12537f;
    background: linear-gradient(135deg, #d8eef9 0%, #f9f0df 100%);
    border: 1px solid rgba(31, 118, 181, 0.16);
}

.pagina-home .eyebrow-soft {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #1f76b5 0%, #0f679f 100%);
}

.home-official-card {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #fff7ea 0%, #fffef8 55%, #ffffff 100%);
    border: 1px solid #e6cf9a;
}

.home-official-content h2 {
    margin: 10px 0 12px 0;
}

.home-official-content p {
    margin: 0;
    max-width: 72ch;
}

.home-official-actions {
    margin-top: 0;
}

.special-event-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.special-event-card {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 16px;
    border: 1px solid rgba(31, 118, 181, 0.14);
    border-radius: 22px;
    padding: 16px;
    background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
    box-shadow: 0 18px 34px rgba(16, 65, 103, 0.08);
    position: relative;
    overflow: hidden;
}

.special-event-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, #1f76b5 0%, #d96b1f 100%);
}

.special-event-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
}

.special-event-card-body {
    min-width: 0;
}

.special-event-card-body h3 {
    margin: 8px 0 10px 0;
    color: #173040;
}

.post-card-special-event {
    border-color: rgba(36, 154, 69, 0.24);
    background: linear-gradient(180deg, #f7fff7 0%, #ffffff 100%);
    box-shadow: 0 16px 28px rgba(27, 134, 59, 0.08);
}

.pagina-home .content-card,
.pagina-home .info-card,
.pagina-home .post-card {
    border: 1px solid rgba(18, 69, 89, 0.08);
    box-shadow: 0 20px 36px rgba(18, 69, 89, 0.08);
}

.pagina-home .section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pagina-home .info-card {
    position: relative;
    overflow: hidden;
}

.pagina-home .info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: #1f76b5;
}

.pagina-home .info-card:nth-child(2)::before {
    background: #d96b1f;
}

.pagina-home .info-card:nth-child(3)::before {
    background: #1ca746;
}

.pagina-home .split-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 250, 255, 0.98) 100%);
    border: 1px solid rgba(31, 118, 181, 0.12);
}

.pagina-home .chip {
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(20, 48, 67, 0.12);
}

.pagina-home .chip:nth-child(4n + 1) {
    background: linear-gradient(135deg, #1f76b5 0%, #0e5e95 100%);
}

.pagina-home .chip:nth-child(4n + 2) {
    background: linear-gradient(135deg, #d96b1f 0%, #bf5412 100%);
}

.pagina-home .chip:nth-child(4n + 3) {
    background: linear-gradient(135deg, #1ca746 0%, #108739 100%);
}

.pagina-home .chip:nth-child(4n + 4) {
    background: linear-gradient(135deg, #d62b45 0%, #b21d37 100%);
}

.pagina-home .special-event-card:nth-child(3n + 2)::before {
    background: linear-gradient(180deg, #1ca746 0%, #d96b1f 100%);
}

.pagina-home .special-event-card:nth-child(3n + 3)::before {
    background: linear-gradient(180deg, #d62b45 0%, #1f76b5 100%);
}

.pagina-home .post-card-special-event:nth-child(3n + 1) {
    background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
    border-color: rgba(31, 118, 181, 0.22);
}

.pagina-home .post-card-special-event:nth-child(3n + 2) {
    background: linear-gradient(180deg, #fff6ec 0%, #ffffff 100%);
    border-color: rgba(217, 107, 31, 0.22);
}

.pagina-home .post-card-special-event:nth-child(3n + 3) {
    background: linear-gradient(180deg, #effbef 0%, #ffffff 100%);
    border-color: rgba(28, 167, 70, 0.22);
}

.pagina-home .post-card h3,
.pagina-home .content-card h2,
.pagina-home .info-card h3 {
    color: #193649;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .pagina-home .section-grid {
        grid-template-columns: 1fr;
    }
    .home-whatsapp-row {
        justify-content: flex-start;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }
    .hero-actions {
        grid-template-columns: 1fr;
    }
    .pagina-home .hero-actions .btn {
        min-width: 0;
    }
    .home-official-card {
        grid-template-columns: 1fr;
    }
    .home-official-actions {
        margin-top: 12px;
    }
    .special-event-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-copy h1 {
        max-width: none;
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.02;
    }

    .hero-copy,
    .home-logo-card {
        padding: 20px 18px;
    }

    .home-whatsapp-row {
        align-items: flex-start;
        overflow-wrap: anywhere;
    }
}
