.historia-page {
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 28%, #f4f7fb 100%);
}

.historia-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%);
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
    background-position: top right, center top;
}

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

.historia-page .topbar.topbar-home .topbar-title,
.historia-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;
}

.historia-hero {
    min-height: calc(100vh - 76px);
    padding: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.historia-hero > .container-xxl {
    width: 100%;
}

.historia-hero::after {
    display: none;
}

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

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

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

.historia-hero-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(2, 20, 45, 0.2);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.historia-hero-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.historia-hero-caption {
    padding: 1rem 1.1rem;
    margin: 0;
    color: rgba(245, 250, 255, 0.94);
    font-size: 0.95rem;
}

.historia-stats {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.historia-stats li {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 0.85rem;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(2, 20, 45, 0.16);
}

.historia-stats strong {
    display: block;
    font-size: 1.45rem;
    color: #ffffff;
    line-height: 1;
}

.historia-stats span {
    color: rgba(232, 243, 255, 0.92);
    font-size: 0.93rem;
}

.timeline-section {
    padding: 1rem 0 4.2rem;
}

.timeline-title {
    color: var(--primary-color);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 2rem;
    font-weight: 800;
}

.timeline-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-list::before {
    content: "";
    position: absolute;
    left: 94px;
    top: 0;
    bottom: 0;
    height: calc(100% - 20px);
    width: 2px;
    background-color: #cdd8e6;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
}


.timeline-year {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    padding-top: 0.3rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 88px;
    top: calc( 50% - 20px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 32, 68, 0.18);
}

.timeline-card {
    background-color: #ffffff;
    border: 1px solid #d9e1ec;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 20px rgba(2, 32, 68, 0.09);
}

.timeline-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-card p {
    margin: 0;
    color: #3f4f63;
    line-height: 1.6;
}

.historia-values {
    padding: 0 0 4.6rem;
}

.value-card {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #d9e1ec;
    border-radius: 0.85rem;
    padding: 1.25rem;
    box-shadow: 0 8px 20px rgba(2, 32, 68, 0.08);
}

.value-card i {
    color: var(--secondary-color);
    font-size: 1.7rem;
}

.value-card h3 {
    margin-bottom: 0.45rem;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.value-card p {
    margin: 0;
    color: #3f4f63;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .historia-header-surface {
        background-size: 170% 100%, cover;
        background-position: 78% 0, center top;
    }

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

    .historia-hero {
        min-height: auto;
        padding-top: 2.2rem;
    }

    .historia-main-title {
        max-width: none;
    }

    .historia-stats {
        grid-template-columns: 1fr;
    }

    .timeline-list::before {
        left: 7px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-year {
        padding-top: 0;
    }
}

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

.brand-logo {
  width: 100px;
  height: 100px;
  display: block;
}