.home-hero {
    background: var(--home-hero-bg) center/cover no-repeat;
}

.home-hero-overlay {
    opacity: 0.45;
}

.home-hero,
.home-hero-inner {
    min-height: 56vh;
}

.hero-cta-wrap {
    gap: 0.65rem;
}

.hero-cta {
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    min-width: 150px;
    text-align: center;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #c9f46a, #9edb22) !important;
    color: #101410 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 18px rgba(186, 216, 41, 0.2);
    font-weight: 700;
}

.home-hero-btn:hover {
    color: #0c100c !important;
    background: linear-gradient(135deg, #daf88d, #b7ef38) !important;
    transform: translateY(-2px);
}

.home-quick-card {
    background: linear-gradient(180deg, rgba(39, 43, 47, 0.96), rgba(31, 35, 38, 0.98));
    min-height: 268px;
}

.home-quick-card-body {
    gap: 1rem;
}

.home-quick-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px dashed rgba(190, 233, 103, 0.55);
    background: rgba(190, 233, 103, 0.08);
    color: #d8ef9f;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: linear-gradient(135deg, #c9f46a, #9bd71f) !important;
    color: #111 !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 14px rgba(186, 216, 41, 0.18);
}

.home-quick-btn:hover {
    color: #111 !important;
    background: linear-gradient(135deg, #daf88d, #b7ef38) !important;
}

.home-split-card {
    height: 100%;
    padding: 2rem;
}

.home-ranking-place-col {
    width: 60px;
}

.home-ranking-points-col {
    width: 80px;
}

.home-complejo-cover,
.home-complejo-cover-empty {
    height: 200px;
}

.home-complejo-cover {
    object-fit: cover;
}

.home-gallery-thumb-img {
    object-fit: cover;
}

.hover-shadow-sm:hover {
    box-shadow: 0 0 10px rgba(145, 255, 0, 0.4);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.ranking-table th {
    background: rgba(190, 233, 103, 0.1);
    border-top: 1px solid rgba(190, 233, 103, 0.35);
    border-bottom: 1px solid rgba(190, 233, 103, 0.35);
    color: #f5f7f1;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.swiper-ranking {
    min-height: clamp(360px, 34vw, 440px);
}

.swiper-ranking .swiper-slide {
    height: auto;
}

.swiper-complejos {
    padding: 0 0.3rem 0.8rem;
}

.home-complejos-swiper .swiper-slide {
    height: auto;
}

.home-complejos-swiper .card-complejos {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.home-complejos-swiper .card-body {
    flex: 1 1 auto;
    justify-content: flex-start !important;
}

.home-complejos-swiper .card-title {
    font-size: 1.05rem;
}

.home-complejos-swiper .small {
    line-height: 1.45;
}

.home-complejo-cover,
.home-complejo-cover-empty {
    height: 168px;
    flex: 0 0 168px;
}

.kpi-section {
    padding-block: 1.75rem;
}

.kpi-card .kpi {
    font-size: 1.6rem;
}

.kpi-card .kpi-label {
    opacity: 0.9;
}

.home-legacy-torneo-media {
    height: 400px;
}

.home-empty-state-icon {
    font-size: 4rem;
}

.swiper-galeria-x3 .swiper-slide {
    width: clamp(180px, 28vw, 320px);
}

#sponsors {
    padding-block: 20px;
}

#sponsors .section-title {
    margin-bottom: 16px;
}

.marquee {
    --marquee-h: 210px;
    --gap: 52px;
    --speed: 26s;
    min-height: var(--marquee-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding-block: 8px;
}

.marquee__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: max-content;
    height: var(--marquee-h);
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    animation: marquee-slide var(--speed) linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.marquee__item {
    flex: 0 0 auto;
    height: var(--marquee-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 calc(var(--gap) / 2);
}

.marquee__item>a {
    flex: 0 0 auto;
    height: var(--marquee-h);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
}

.marquee img.sponsor-logo {
    display: block;
    height: calc(var(--marquee-h) - 8px) !important;
    max-height: none !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.95;
    transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.marquee img.sponsor-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.03);
}

@keyframes marquee-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50.0001%);
    }
}

.sponsor-logo.boost {
    transform: scale(1.2);
    transform-origin: center;
}

@media (max-width: 768px) {

    .home-hero,
    .home-hero-inner {
        min-height: 46vh;
    }

    .home-split-card {
        padding: 1.5rem;
    }

    .swiper-ranking {
        min-height: 0;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        min-width: 0;
        width: 100%;
        font-size: 0.92rem;
        padding: 0.55rem 0.9rem;
    }

    .hero-cta-wrap {
        width: 100%;
    }

    .home-quick-card {
        min-height: auto;
    }

    .kpi-section {
        padding-block: 0.9rem;
    }

    .kpi-card {
        padding: 0.6rem !important;
    }

    .kpi-card .kpi {
        font-size: 1.2rem;
    }

    .kpi-card .kpi-label {
        font-size: 0.75rem;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 0.6rem 0.55rem;
        font-size: 0.9rem;
    }

    .home-complejos-swiper .swiper-slide {
        width: 84%;
    }

    .swiper-galeria-x3 .swiper-slide {
        width: 68vw;
    }
}

@media (max-width: 480px) {
    .marquee {
        --marquee-h: 200px;
        --speed: 25s;
    }
}

@media (min-width: 576px) {
    .marquee {
        --marquee-h: 220px;
        --speed: 27s;
    }
}

@media (min-width: 992px) {
    #sponsors {
        padding-block: 24px;
    }

    .marquee {
        --marquee-h: 240px;
        --speed: 29s;
    }
}

@media (min-width: 1200px) {
    .marquee {
        --marquee-h: 250px;
        --speed: 31s;
    }
}

@media (pointer:fine) {
    .marquee:hover .marquee__track {
        animation-play-state: paused;
    }
}

@media (prefers-reduced-motion:reduce) {
    .marquee__track {
        animation: none;
    }
}
