.home-header-surface {
    background:
        radial-gradient(circle at 85% 22%, rgba(255, 224, 164, 0.22) 0%, rgba(255, 224, 164, 0) 42%),
        linear-gradient(118deg, #0b2f5e 0%, #2f5f96 56%, #426f9f 100%);
}

.home-page .topbar-home {
    height: 76px;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
}

.home-page .topbar-home-inner {
    gap: 1.2rem;
}

.home-menu-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.home-menu-btn:hover,
.home-menu-btn:focus {
    color: #0a2a53;
    background: #fed488;
    border-color: #fed488;
}

.home-page .topbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.015em;
    gap: 0.5rem;
    color: #ffffff;
}

.home-page .topbar-brand-logo {
    width: 40px;
    height: 40px;
    display: block;
}

.home-page .home-nav {
    padding: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    gap: 0.25rem;
}

.home-page .home-nav .nav-link {
    border-radius: 0.62rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 0;
    color: rgba(236, 244, 255, 0.9);
    font-weight: 700;
    transition: all 0.2s ease;
}

.home-page .home-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.home-page .home-nav .nav-link.active {
    background: #fed488;
    color: #0a2a53;
    border-bottom: 0;
}

.home-sidebar {
    background: linear-gradient(165deg, #103662 0%, #1e4f85 62%, #2d628f 100%);
    color: #ffffff;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.home-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-sidebar-logo {
    width: 32px;
    height: 32px;
}

.home-sidebar-nav {
    gap: 0.3rem;
}

.home-sidebar-nav .nav-link {
    border-radius: 0.65rem;
    color: rgba(236, 244, 255, 0.94);
    border-bottom: 0;
    font-weight: 700;
    padding: 0.6rem 0.75rem;
}

.home-sidebar-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.home-sidebar-nav .nav-link.active {
    color: #0a2a53;
    background: #fed488;
}


.hero-home {
    min-height: clamp(480px, calc(100vh - 74px), 720px);
    background: transparent;
}

.hero-home-row {
    padding: 2rem 0 1.4rem;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker {
    margin: 0 0 0.8rem;
    color: #f8dca2;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.1rem, 4.4vw, 3.35rem);
    line-height: 1.06;
    font-weight: 800;
    max-width: 15ch;
}

.hero-text {
    color: rgba(244, 249, 255, 0.95);
    font-size: 1.03rem;
    line-height: 1.72;
    max-width: 60ch;
}

.hero-cta-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.15rem;
    transition: all 0.22s ease;
}

.hero-cta-btn:hover {
    background: #fed488;
    border-color: #fed488;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.hero-media {
    min-height: 480px;
}

.capsule-container {
    min-height: 150px;
}

.home-stats-capsule {
    width: min(980px, 88%);
    top: 0;
    transform: translateY(-50%);
    z-index: 5;
}

.actividades-container .activity-card {
    position: relative;
    min-height: 260px;
    border-radius: 0.75rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(2, 32, 68, 0.2);
}

.actividades-container .activity-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1.4rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(2, 32, 68, 0.85) 0%, rgba(2, 32, 68, 0.2) 60%, rgba(2, 32, 68, 0) 100%);
}

.actividades-container .activity-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.home-actividades-section .actividades-error-wrap,
.home-actividades-section .actividades-vacio-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.2rem, 2vw, 2rem) 0;
}

.home-actividades-section .actividades-error-card,
.home-actividades-section .actividades-vacio-card {
    width: min(680px, 100%);
    border-radius: 1rem;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    text-align: center;
}

.home-actividades-section .actividades-error-card {
    border: 1px solid #f6d8a0;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(145deg, #fffaf0 0%, #fff3dd 100%);
    box-shadow: 0 14px 30px rgba(12, 39, 79, 0.14);
}

.home-actividades-section .actividades-vacio-card {
    border: 1px solid #c8d9f0;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(145deg, #f6faff 0%, #ebf4ff 100%);
    box-shadow: 0 14px 30px rgba(12, 39, 79, 0.12);
}

.home-actividades-section .actividades-error-icon,
.home-actividades-section .actividades-vacio-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-actividades-section .actividades-error-icon {
    color: #9a5a00;
    background: linear-gradient(180deg, #ffe6b6 0%, #ffd487 100%);
}

.home-actividades-section .actividades-vacio-icon {
    color: #1d4f8a;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}

.home-actividades-section .actividades-error-icon span {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.home-actividades-section .actividades-error-title,
.home-actividades-section .actividades-vacio-title {
    font-size: clamp(1.1rem, 2.1vw, 1.4rem);
    font-weight: 800;
    margin: 0;
}

.home-actividades-section .actividades-error-title {
    color: #3d2b06;
}

.home-actividades-section .actividades-vacio-title {
    color: #12396b;
}

.home-actividades-section .actividades-error-text,
.home-actividades-section .actividades-vacio-text {
    margin-top: 0.65rem;
    line-height: 1.55;
}

.home-actividades-section .actividades-error-text {
    color: #5c4820;
}

.home-actividades-section .actividades-vacio-text {
    color: #33557e;
}

@media (max-width: 991.98px) {
    .home-page .topbar-home {
        height: auto;
        padding: 0.65rem 0;
    }

    .home-page .topbar-home-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-home {
        min-height: auto;
    }

    .hero-home-row {
        padding: 2.2rem 0;
        gap: 1.6rem;
    }

    .hero-title {
        max-width: none;
    }

    .hero-media {
        min-height: 320px;
    }

    .capsule-container {
        min-height: 0;
        margin-bottom: 2rem !important;
        padding: 0 0.75rem;
    }

    .home-stats-capsule {
        margin-top: 1rem;
        position: static !important;
        width: 100%;
        transform: none !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.85rem;
        padding: 0.95rem !important;
    }

    .home-stats-capsule .vr {
        display: none;
    }

    .home-stats-capsule .capsule-item {
        flex: 1 1 180px;
        min-width: 180px;
        border: 1px solid #d9e1ec;
        border-radius: 0.75rem;
        padding: 0.85rem 0.65rem;
    }

    .home-actividades-section {
        margin-top: 0;
    }

    .actividades-container .activity-card {
        min-height: 240px;
    }
}

@media (max-width: 767.98px) {
    .home-page .topbar-brand {
        font-size: 1.06rem;
    }

    .home-page .topbar-brand-logo {
        width: 34px;
        height: 34px;
    }

    .home-menu-btn {
        padding: 0.38rem 0.66rem;
        font-size: 0.9rem;
    }

    .hero-home-row {
        padding: 1.65rem 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8.8vw, 2.45rem);
    }

    .hero-text {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .hero-media {
        min-height: 240px;
    }

    .home-stats-capsule .capsule-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.1rem;
    }

    .home-stats-capsule .capsule-item p {
        font-size: 0.92rem;
        text-align: center;
    }

    .actividades-container .activity-card {
        min-height: 220px;
    }

    .actividades-container .activity-title {
        font-size: 1.18rem;
    }
}