@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-primary: #0d2f4f;
    --bs-dark: #081722;
    --bs-light: #f5f8fb;
    --font-brand: 'SF Pro Display', 'Montserrat', 'Poppins', sans-serif;
    --font-body: 'SF Pro Display', 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #555;
    background: #fff;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.navbar .nav-link,
.hero-badge,
.btn,
.section-title h4,
.brand-title,
.org-box,
.org-subbox {
    font-family: var(--font-brand);
}

.section-title {
    max-width: 780px;
}

.navbar-brand {
    gap: 12px;
}

.navbar-brand img {
    max-height: 64px;
    width: auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #0d2f4f;
    line-height: 1;
}

.brand-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #6b7785;
    line-height: 1.2;
}

/* ===== TOPBAR ===== */
.topbar {
    background: #0b1f31;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-link {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    text-decoration: none;
    transition: .3s;
}

.topbar-link:hover {
    color: #ffffff;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar .navbar-nav .nav-link {
    color: #0d2f4f;
    font-weight: 600;
    padding: 12px 16px;
    transition: .3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #0d2f4f;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-brand p {
    margin: 0;
    font-size: 13px;
    color: #5f6b76;
    line-height: 1.2;
}

/* ===== HERO ===== */
.hero-kolinsky {
    position: relative;
    background:
        linear-gradient(rgba(8, 23, 34, 0.78), rgba(13, 47, 79, 0.82)),
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 30%),
        linear-gradient(135deg, #0b2236 0%, #123c61 100%);
    overflow: hidden;
}

.hero-kolinsky::before,
.hero-kolinsky::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}

.hero-kolinsky::before {
    width: 320px;
    height: 320px;
    top: -90px;
    right: -90px;
}

.hero-kolinsky::after {
    width: 220px;
    height: 220px;
    bottom: -70px;
    left: -70px;
}

.hero-kolinsky .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: .4px;
}

.hero-mini-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 18px;
    height: 100%;
}

/* ===== HOVERS ===== */
.ally-box,
.blog-item-lite,
.faq-box,
.metric-card,
.service-card,
.testimonial-item-custom,
.project-content {
    transition: .3s;
}

.ally-box:hover,
.blog-item-lite:hover,
.metric-card:hover,
.service-card:hover,
.testimonial-item-custom:hover,
.project-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0,0,0,.08);
}

.service-icon,
.project-icon-wrap,
.blog-icon-wrap,
.contact-icon-wrap {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(13, 47, 79, 0.08);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.metric-card {
    border-radius: 18px;
    padding: 30px 20px;
}

.metric-card h2 {
    font-size: 42px;
    margin-bottom: 5px;
}

.ally-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    border: 1px solid #edf2f6;
    text-align: center;
    height: 100%;
    font-weight: 600;
}

.testimonial-item-custom {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 0 25px rgba(0,0,0,.04);
}

.testimonial-item-custom .quote-icon {
    font-size: 42px;
    color: var(--bs-primary);
    opacity: .18;
}

.blog-item-lite {
    background: #fff;
    border: 1px solid #edf2f6;
    border-radius: 18px;
    padding: 30px;
    height: 100%;
}

.faq-side-card {
    background: linear-gradient(135deg, #0d2f4f 0%, #153f66 100%);
    color: #fff;
    border-radius: 22px;
    padding: 45px 35px;
    height: 100%;
}

.faq-side-card ul {
    padding-left: 18px;
}

.faq-side-card li {
    margin-bottom: 12px;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: rgba(13, 47, 79, 0.06);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 47, 79, 0.2);
}

/* ===== SERVICES CARD ===== */
.service-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    border: 1px solid #edf2f6;
    height: 100%;
    transition: .35s ease;
    display: flex;
    flex-direction: column;
}

.service-card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.service-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    flex-grow: 1;
}

.service-body h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #0d2f4f;
}

.service-body p {
    margin-bottom: 0;
    color: #607080;
    line-height: 1.7;
}

/* ===== ORGANIGRAMA ===== */
.org-chart {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 18px 40px rgba(13, 47, 79, 0.08);
    border: 1px solid #eaf0f5;
}

.org-level-top {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.org-line-main {
    width: 3px;
    height: 28px;
    background: #b9c7d5;
    margin: 0 auto 26px;
}

.org-level-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.org-branch {
    background: #fbfdff;
    border: 1px solid #e8eef4;
    border-radius: 20px;
    padding: 24px 18px 20px;
    height: 100%;
}

.org-box {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.org-box-main {
    background: linear-gradient(135deg, #0b2236 0%, #184d7b 100%);
    min-width: 260px;
}

.org-box-green {
    background: linear-gradient(135deg, #2b7a3d 0%, #41a95b 100%);
}

.org-box-orange {
    background: linear-gradient(135deg, #c96a05 0%, #f08b16 100%);
}

.org-box-blue {
    background: linear-gradient(135deg, #0d4f91 0%, #2b74c0 100%);
}

.org-sublist {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.org-subbox {
    background: #ffffff;
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    color: #395066;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CONTACTO ===== */
.contact-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
}

.contact-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(13, 47, 79, 0.08);
    color: #0d2f4f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.contact-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0b2236;
    line-height: 1.2;
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 1.02rem;
    color: #617283;
    line-height: 1.7;
}

.contact-info-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e7eef5;
    box-shadow: 0 18px 40px rgba(13, 47, 79, 0.08);
    height: 100%;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f8fbff;
    border: 1px solid #e9f0f6;
    border-radius: 18px;
    padding: 22px 20px;
    transition: .3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 47, 79, 0.08);
    background: #ffffff;
}

.contact-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d2f4f 0%, #1a4f7c 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(13, 47, 79, 0.2);
}

.contact-info-card h5 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b2236;
}

.contact-info-card p,
.contact-info-card a {
    margin: 0;
    color: #5f7082;
    text-decoration: none;
    line-height: 1.7;
}

.contact-info-card a:hover {
    color: #0d2f4f;
}

.map-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e7eef5;
    box-shadow: 0 18px 40px rgba(13, 47, 79, 0.08);
    overflow: hidden;
    height: 100%;
}

.map-header {
    padding: 22px 24px;
    background: linear-gradient(135deg, #0d2f4f 0%, #153f66 100%);
    color: #fff;
}

.map-header h5 {
    margin-bottom: 5px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.map-header p {
    margin-bottom: 0;
    color: rgba(255,255,255,.8);
    font-size: 0.95rem;
}

.map-wrapper {
    width: 100%;
    min-height: 420px;
    line-height: 0;
}

.map-wrapper iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* ===== FOOTER ===== */
.footer .form-control::placeholder {
    color: #c9d2db;
}

.footer a {
    text-decoration: none;
}

.footer-note {
    color: rgba(255,255,255,.75);
    font-size: 14px;
}

.footer-item a,
.footer-item-post a,
.footer .footer-note,
.footer .text-body,
.footer p,
.footer span {
    color: rgba(255,255,255,0.78);
}

.footer-item a:hover,
.footer-item-post a:hover {
    color: #ffffff;
}

.footer-item h4,
.footer-item-post h4 {
    font-weight: 700;
}

.footer .text-primary {
    color: #7ec3ff !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .topbar {
        display: none !important;
    }

    .hero-kolinsky {
        text-align: center;
    }

    .hero-kolinsky .btn {
        margin-bottom: 12px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .map-wrapper,
    .map-wrapper iframe {
        min-height: 340px;
    }

    .navbar-brand h4 {
        font-size: 18px;
    }

    .org-level-three {
        grid-template-columns: 1fr;
    }

    .org-box-main {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .contact-info-card {
        padding: 18px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 18px;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .service-card-img {
        height: 210px;
    }

    .navbar-brand img {
        max-height: 46px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 10px;
        letter-spacing: .5px;
    }

    .org-chart {
        padding: 24px 18px;
    }
}

/* ===== FIXES DE CARGA Y UX ===== */
#spinner {
    transition: opacity .35s ease, visibility .35s ease;
}

#spinner:not(.show) {
    opacity: 0;
    visibility: hidden;
}

.display-1,
.display-2,
.display-3,
.hero-kolinsky h1 {
    letter-spacing: -.02em;
    line-height: 1.08;
}

.hero-kolinsky h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 700;
}

.hero-kolinsky p.lead,
.hero-kolinsky .lead {
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.75;
}

.section-title h1,
.section-title h2 {
    font-size: clamp(2rem, 4.3vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}

.navbar .navbar-collapse {
    transition: all .3s ease;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 54px;
    }

    .brand-title {
        font-size: 1.2rem;
        letter-spacing: .6px;
    }

    .brand-subtitle {
        font-size: 10px;
        letter-spacing: .45px;
    }

    .navbar .navbar-collapse {
        background: #ffffff;
        margin-top: 14px;
        padding: 18px 16px;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(8, 23, 34, 0.12);
        border: 1px solid rgba(13, 47, 79, 0.08);
    }

    .navbar .navbar-nav .nav-link {
        padding: 13px 10px;
        border-bottom: 1px solid rgba(13, 47, 79, 0.08);
    }

    .navbar .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: 0;
    }

    .hero-kolinsky {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}
