/* ================= HERO ================= */
.hero {
    background-attachment: fixed;
}

.hero-content {
    animation: heroFloatIndex 5s ease-in-out infinite;
}

.hero-tag {
    animation: pulseSoftIndex 3s ease-in-out infinite;
}

/* ================= TITULOS ================= */
.section-title {
    position: relative;
    animation: fadeTitleIndex 1s ease;
}

.section-title::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #71c98a, #53B53C, #1f4d2e, #53B53C, #71c98a);
    background-size: 200% auto;
    animation: shimmerLine 4s linear infinite;
    transition: width 0.8s ease;
}

.section-title.show::after {
    width: 100%;
}

.banner-section .section-title::after,
.banner-section .section-title.show::after {
    content: none;
    display: none;
}

/* ================= FONDO DECORATIVO ================= */
.about-refuge {
    position: relative;
    overflow: hidden;
}

.about-refuge::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 181, 60, 0.10), transparent 70%);
    animation: floatBlobIndex 10s ease-in-out infinite;
    pointer-events: none;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.about-refuge .container {
    position: relative;
    z-index: 1;
}

.bandera-preview-section {
    position: relative;
    overflow: hidden;
}

.bandera-preview-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 181, 60, 0.09), transparent 70%);
    animation: floatBlobIndex 12s ease-in-out infinite reverse;
    pointer-events: none;
    bottom: -80px;
    left: -80px;
    z-index: 0;
}

.bandera-preview-section .container {
    position: relative;
    z-index: 1;
}

/* ================= ABOUT IMAGE SHIMMER ================= */
.about-image {
    position: relative;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.about-image:hover::after {
    transform: translateX(100%);
}

/* ================= STAT BOX ================= */
.stat-box {
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(83, 181, 60, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-box:hover::before {
    opacity: 1;
}

/* ================= CARD IMAGE SHIMMER ================= */
.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.20) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.card-item:hover .card-image::after {
    transform: translateX(100%);
}

/* ================= BANDERA LOGRO CARD ================= */
.bandera-logro-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bandera-logro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(14, 33, 22, 0.20);
}

.bandera-flag-icon {
    transition: transform 0.4s ease, color 0.3s ease;
}

.bandera-logro-card:hover .bandera-flag-icon {
    transform: scale(1.12) rotate(-5deg);
    color: var(--naranja-acento);
}

/* ================= BANDERA FEATURE CARDS ================= */
.bandera-feature-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.bandera-feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 38px rgba(14, 33, 22, 0.13);
    border-color: rgba(83, 181, 60, 0.35);
}

.bandera-feature-icon {
    transition: transform 0.35s ease;
}

.bandera-feature-card:hover .bandera-feature-icon {
    transform: scale(1.10) rotate(-5deg);
}

/* ================= FAB GLOW ================= */
.fab-main {
    animation: fabGlowIndex 2.4s ease-in-out infinite;
}

.fab-container.open .fab-main {
    animation: none;
}

/* ================= KEYFRAMES ================= */
@keyframes heroFloatIndex {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes pulseSoftIndex {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.03); opacity: 0.92; }
}

@keyframes fadeTitleIndex {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatBlobIndex {
    0%, 100% { transform: translateY(0)    translateX(0); }
    50%       { transform: translateY(-20px) translateX(14px); }
}

@keyframes shimmerLine {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

@keyframes fabGlowIndex {
    0%, 100% {
        box-shadow: 0 0 18px rgba(217, 79, 21, 0.15),
                    0 0 0 0   rgba(217, 79, 21, 0.40);
    }
    50% {
        box-shadow: 0 0 28px rgba(217, 79, 21, 0.28),
                    0 0 0 14px rgba(217, 79, 21, 0);
    }
}

/* ================= MOVIMIENTO REDUCIDO ================= */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-tag,
    .section-title,
    .section-title::after,
    .fab-main,
    .about-refuge::before,
    .bandera-preview-section::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .hero { background-attachment: scroll; }

    .about-image::after,
    .card-image::after {
        display: none;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero { background-attachment: scroll; }

    .bandera-feature-card:hover,
    .bandera-logro-card:hover {
        transform: translateY(-3px);
    }
}
