.tt-modern {
    color: #3f4a5d;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.tt-modern.body-nb {
    background: #f8f8f8;
}

.tt-modern h1,
.tt-modern h2,
.tt-modern h3,
.tt-modern h4,
.tt-modern h5,
.tt-modern h6 {
    color: #0b226c;
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 0.3em;
    margin-bottom: 0.6em;
}

.tt-modern h1,
.tt-modern .h1 {
    font-size: 2.05rem;
}

.tt-modern h2,
.tt-modern .h2 {
    font-size: 1.65rem;
}

.tt-modern h3,
.tt-modern .h3 {
    font-size: 1.3rem;
}

.tt-modern p {
    margin-bottom: 1rem;
}

.tt-modern a {
    color: #0088cc;
    transition: color 0.2s ease;
}

.tt-modern a:hover,
.tt-modern a:focus {
    color: #0b226c;
    text-decoration: none;
}

.tt-modern-shell {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 18px 16px;
}

.tt-modern-shell > .row {
    margin-left: 0;
    margin-right: 0;
}

/* ── HEADER / STRIPE ─────────────────────────────────── */
.tt-modern header {
    position: relative;
    padding-bottom: 10px;
}

/* Franja azul full-width anclada al alto real del header */
.tt-modern header::before {
    background: linear-gradient(180deg, #4f5a6f 0%, #2f3b50 100%);
    bottom: 0;
    content: "";
    left: 50%;
    margin-left: -50vw;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 0;
}

/* Navbar encima de la franja */
.tt-modern header .navbar {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.tt-modern .navbar-default {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Logo: fondo blanco propio, separado de la franja */
.tt-modern .navbar-brand-tt {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    display: inline-block;
    padding: 10px 14px 10px;
    position: relative;
    z-index: 2;
}

/* Vaciar la collapse que no tiene links */
.tt-modern .navbar-collapse {
    background: transparent;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
}

/* ── NAV LINKS ──────────────────────────────────────── */
.tt-modern .main-nav {
    float: right;
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

.tt-modern .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
}

.tt-modern .navbar-default .navbar-nav > li {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    margin: 0;
}

.tt-modern .navbar-default .navbar-nav > li:first-child {
    border-left: 0;
}

.tt-modern .navbar-nav > li > a {
    align-items: center;
    border-radius: 0;
    color: #ffffff;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.03em;
    padding: 0 12px;
    text-decoration: none;
    transition: background-color 0.18s ease;
    white-space: nowrap;
}

.tt-modern .main-nav ul li.selected > a,
.tt-modern .navbar-default .navbar-nav > .open > a,
.tt-modern .navbar-default .navbar-nav > .open > a:hover,
.tt-modern .navbar-default .navbar-nav > .open > a:focus,
.tt-modern .navbar-default .navbar-nav > li > a:hover,
.tt-modern .navbar-default .navbar-nav > li > a:focus {
    background: rgba(73, 184, 234, 0.85);
    color: #ffffff;
}

.tt-modern .panel {
    border: 1px solid #d5e0ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 34, 74, 0.07);
}

.tt-modern .panel-heading {
    background: linear-gradient(180deg, #f8fbff 0%, #dce7f3 100%);
    border-bottom: 1px solid #d5e0ec;
    padding: 10px 14px;
    text-shadow: none;
}

.tt-modern .panel-heading h3 {
    color: #0b226c;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.tt-modern .panel-heading h3 > a {
    color: #0b226c;
}

.tt-modern .panel-body {
    padding: 14px 16px;
}

.tt-modern .tt-main-content .panel-body {
    font-size: 1.25rem;
}

.tt-modern .tt-sidebar .panel-blog .panel-body {
    padding: 0;
}

.tt-modern .panel-blog .panel-body li {
    border-color: #e2eaf2;
    padding: 12px 14px;
}

.tt-modern .panel-blog .panel-body li a {
    color: #0b226c;
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.tt-modern .panel-blog .panel-body li p {
    color: #516071;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.tt-modern .panel-blog .panel-body li.tt-feed-empty {
    color: #516071;
    font-size: 13px;
}

.tt-modern .leftColumn .panel-heading h3 > a {
    color: #0b226c;
}

.tt-modern .leftColumn .panel-heading h3 > a:hover {
    color: #0088cc;
}

.tt-modern .btn-tt {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(16, 34, 74, 0.12);
}

.tt-modern footer p {
    color: #5a6778;
    font-size: 13px;
    margin: 14px 0 10px;
}

@media screen and (max-width: 992px) {
    .tt-modern-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tt-modern h1,
    .tt-modern .h1 {
        font-size: 1.8rem;
    }

    .tt-modern h2,
    .tt-modern .h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 767px) {
    .tt-modern header::before {
        display: none;
    }

    .tt-modern .navbar-brand-tt {
        border-radius: 0;
    }

     {
        float: none;
        width: 100%;
    }

    .tt-modern .navbar-collapse {
        background: linear-gradient(180deg, #4f5a6f 0%, #2f3b50 100%);
        border-radius: 0 0 10px 10px;
    }

    .tt-modern .navbar-nav {
        display: block;
        width: 100%;
    }

    .tt-modern .navbar-default .navbar-nav > li {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        display: block;
        width: 100%;
    }

    .tt-modern .navbar-nav > li > a {
        display: block;
        font-size: 13px;
        justify-content: flex-start;
        letter-spacing: 0.01em;
        padding: 10px 14px;
    }

    .tt-modern .tt-main-content .panel-body {
        padding: 14px;
    }

    .tt-modern .tt-sidebar {
        margin-top: 14px;
    }
}
