:root {
    --primary-color: #022044;
    --secondary-color: #775A14;
    --background-color: #F8F9FB;
    --background-color-secondary: #49617b;
}

.custom-text-primary {
    color: var(--primary-color);
}

.custom-text-secondary {
    color: var(--secondary-color);
}

.custom-bg-primary {
    background-color: var(--primary-color);
}

.custom-bg-secondary {
    background-color: var(--secondary-color);
}

.topbar {
    background-color: var(--background-color);
    height: 60px;
}

.topbar.topbar-home {
    height: 76px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 0;
    box-shadow: none;
}

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

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

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

.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-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-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.topbar-title {
    font-weight: bold;
    color: var(--primary-color);
}

.nav-link{
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.bg-blue {
    background-color: var(--background-color-secondary);
}

.img-card {
  width: 100%;
  height: 220px;      /* misma altura para todas */
  object-fit: cover;  /* recorta sin deformar */
  display: block;
}

.historia-section {
    background-color: #ffffff;
}

.historia-image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(2, 32, 68, 0.18);
}

.historia-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.historia-content {
    padding: 0.5rem 0.75rem;
}

.historia-label {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.historia-title {
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
}

.historia-text {
    color: #3f4f63;
    font-size: 1.03rem;
    line-height: 1.7;
}

.historia-cta-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    font-weight: 700;
    transition: all 0.25s ease;
}

.historia-cta-btn:hover,
.historia-cta-btn:focus {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .historia-image {
        min-height: 300px;
    }

    .historia-content {
        padding: 0;
    }

    .topbar.topbar-home {
        height: auto;
        padding: 0.65rem 0;
    }

    .topbar-home-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .home-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        gap: 0.2rem;
    }
}

/* Footer Styles */

.footer-section {
    position: relative;
    background:
        radial-gradient(circle at 92% 16%, rgba(254, 212, 136, 0.15) 0%, rgba(254, 212, 136, 0) 42%),
        linear-gradient(145deg, #1a3554 0%, #102a45 58%, #0b223a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(254, 212, 136, 0) 0%, rgba(254, 212, 136, 0.9) 50%, rgba(254, 212, 136, 0) 100%);
}

.footer-heading {
    color: #f7fbff;
    font-size: 1.16rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    letter-spacing: 0.01em;
}

.logo-container {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.logo-texto-container span:first-child {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-texto-container span:last-child {
    color: #ffffff;
    font-size: 1.38rem;
    line-height: 1.1;
    font-weight: 800;
}

.footer-text {
    color: rgba(238, 246, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
}

.footer-social a {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.22s ease;
}

.footer-social a i {
    font-size: 1rem;
}

.footer-social a:hover {
    color: #0f2e50;
    background-color: #fed488;
    border-color: #fed488;
    transform: translateY(-1px);
}

.footer-links a {
    color: rgba(236, 245, 255, 0.9);
    text-decoration: none;
    width: fit-content;
    font-size: 0.95rem;
    transition: color 0.22s ease, transform 0.22s ease;
}

.footer-links a:hover {
    color: #fed488;
    transform: translateX(2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.footer-copy {
    color: rgba(230, 240, 252, 0.82);
    font-size: 0.88rem;
}

@media (max-width: 767.98px) {
    .logo-texto-container span:last-child {
        font-size: 1.2rem;
    }
}

