.actividades-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%);
}

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

.actividades-page .topbar.topbar-home .topbar-title,
.actividades-page .topbar.topbar-home .topbar-brand {
    color: #ffffff;
}

.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-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;
}

.actividades-section {
    margin-top: 2.6rem;
}

.actividades-grid {
    min-height: 54vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.actividad-item {
    min-width: 0;
}

.activity-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #d9e1ec;
    box-shadow: 0 10px 24px rgba(2, 32, 68, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem 1.1rem 1.25rem;
    flex: 1;
}

.activity-meta {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.activity-title {
    color: var(--primary-color);
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.activity-description {
    color: #3f4f63;
    margin: 0;
    line-height: 1.5;
}

.activity-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.activity-link:hover {
    color: var(--secondary-color);
}

.actividades-error-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.2rem, 2vw, 2rem) 0;
}

.actividades-error-card {
    width: min(680px, 100%);
    border-radius: 1rem;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    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);
    text-align: center;
}

.actividades-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    color: #9a5a00;
    background: linear-gradient(180deg, #ffe6b6 0%, #ffd487 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.actividades-error-title {
    color: #3d2b06;
    font-size: clamp(1.1rem, 2.1vw, 1.4rem);
    font-weight: 800;
    margin: 0;
}

.actividades-error-text {
    color: #5c4820;
    margin-top: 0.65rem;
    line-height: 1.55;
}

.actividades-vacio-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.2rem, 2vw, 2rem) 0;
}

.actividades-vacio-card {
    width: min(680px, 100%);
    border-radius: 1rem;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    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);
    text-align: center;
}

.actividades-vacio-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1d4f8a;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.actividades-vacio-icon span {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.actividades-vacio-title {
    color: #12396b;
    font-size: clamp(1.1rem, 2.1vw, 1.4rem);
    font-weight: 800;
    margin: 0;
}

.actividades-vacio-text {
    color: #33557e;
    margin-top: 0.65rem;
    line-height: 1.55;
}

.actividad-modal .actividad-modal-dialog {
    width: min(1100px, 92vw);
    max-width: min(1100px, 92vw);
}

.actividad-modal .actividad-modal-content {
    height: min(600px, 84vh);
    overflow: hidden;
}

.actividad-modal .modal-body {
    overflow: hidden;
}

.actividad-modal .actividad-modal-carousel,
.actividad-modal .carousel-inner,
.actividad-modal .carousel-item {
    height: 100%;
}

.actividad-modal .carousel-item {
    background: #0a1c33;
}

.actividad-modal .actividad-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.actividad-modal .actividad-modal-side {
    height: 100%;
    overflow: hidden;
}

.actividad-modal .actividad-modal-text {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.actividad-modal-title {
    font-size: clamp(1.25rem, 1.4vw, 1.55rem);
    line-height: 1.2;
    color: #13294b;
    margin: 0;
}

.actividad-modal-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: #5f7289;
}

.actividad-modal-summary {
    color: #334a63;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.actividad-modal-divider {
    border-top: 1px solid #e4ecf5;
    opacity: 1;
    margin: 0.95rem 0;
}

.actividad-modal-body {
    color: #2f445d;
}

.actividad-modal-body-paragraph {
    margin: 0 0 0.9rem;
    line-height: 1.64;
}

.actividad-modal .actividad-modal-text::-webkit-scrollbar {
    width: 8px;
}

.actividad-modal .actividad-modal-text::-webkit-scrollbar-thumb {
    background: #c7d7ea;
    border-radius: 999px;
}

.actividad-modal .actividad-modal-text::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 991.98px) {
    .actividades-page .topbar-home-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .activity-image {
        height: 190px;
    }

    .actividad-modal .actividad-modal-content {
        height: min(600px, 82vh);
    }
}

@media (max-width: 767.98px) {
    .home-menu-btn {
        padding: 0.38rem 0.66rem;
        font-size: 0.9rem;
    }

    .actividades-grid {
        grid-template-columns: 1fr;
    }

    .actividad-modal .actividad-modal-dialog {
        width: calc(100vw - 1.25rem);
        max-width: calc(100vw - 1.25rem);
        margin: 0.625rem auto;
    }

    .actividad-modal .actividad-modal-content {
        height: min(600px, 92vh);
    }

    .actividades-error-card {
        border-radius: 0.85rem;
        padding: 1rem;
    }

    .actividades-vacio-card {
        border-radius: 0.85rem;
        padding: 1rem;
    }
}