:root {
    --front-primary: #113b7b;
    --front-primary-dark: #0a2d60;
    --front-accent: #56b2ff;
    --front-surface: #f7faff;
    --front-card: #ffffff;
    --front-border: #d9e3f2;
    --front-text: #1f3657;
    --front-muted: #5f7390;
    --front-shadow: 0 12px 30px rgba(10, 35, 72, 0.12);
}

body.front-modern {
    background: linear-gradient(180deg, #eaf2ff 0%, #f5f9ff 100%);
    color: var(--front-text);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
}

body.front-modern a {
    color: #1a4f8d;
}

body.front-modern a:hover,
body.front-modern a:focus {
    color: #123f72;
    text-decoration: none;
}

body.front-modern .btn-primary,
body.front-modern .btn-info,
body.front-modern .btn-primary:visited,
body.front-modern .btn-info:visited,
body.front-modern .btn-primary:hover,
body.front-modern .btn-info:hover,
body.front-modern .btn-primary:focus,
body.front-modern .btn-info:focus,
body.front-modern .btn-primary:active,
body.front-modern .btn-info:active,
body.front-modern .btn-primary.active,
body.front-modern .btn-info.active {
    color: #ffffff !important;
}

body.front-modern .front-shell {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
}

body.front-modern #wrapper.front-wrapper {
    min-height: 100%;
    position: relative;
    padding-bottom: 50px;
}

body.front-modern #header-top {
    position: relative;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 24px rgba(8, 31, 67, 0.2);
    padding: 14px 24px 10px;
    margin-top: 0 !important;
}

body.front-modern #cajaLogin {
    position: absolute;
    left: 24px;
    top: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 6px 10px;
    display: block;
    margin: 0;
    z-index: 3;
}

body.front-modern #cajaLogin .front-login-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.front-modern #cajaLogin .info {
    color: #eef6ff !important;
    margin: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

body.front-modern #cajaLogin .info:hover,
body.front-modern #cajaLogin .info:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

body.front-modern #cajaLogin .front-login-intranet {
    padding: 7px 14px;
    border-radius: 9px;
    font-weight: 700;
    margin-right: 4px;
}

body.front-modern #cajaLogin .front-login-guest {
    padding: 0;
    border: 0;
    box-shadow: none;
}

body.front-modern #cajaLogin .front-login-guest .nav.navbar-nav {
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.front-modern #cajaLogin .front-login-guest .nav.navbar-nav > li {
    float: none;
}

body.front-modern #cajaLogin .pull-right,
body.front-modern #cajaLogin .pull-left {
    float: none !important;
}

body.front-modern #cajaLogin .dropdown-menu {
    left: 0;
    right: auto;
}

body.front-modern .front-logo-link {
    display: block;
}

body.front-modern #logo {
    max-height: 142px !important;
    padding: 8px 0 2px;
    display: block;
    margin: 0 auto;
}

body.front-modern .front-nav-wrap {
    margin-top: 10px;
    margin-bottom: 18px;
}

body.front-modern .front-main-nav {
    border: 0;
    border-radius: 14px;
    background: var(--front-card);
    box-shadow: var(--front-shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 8px;
}

body.front-modern .front-main-nav > li {
    float: none;
    margin: 0;
}

body.front-modern .front-main-nav > li > a {
    border: 0;
    border-radius: 10px;
    margin: 0;
    color: #264972;
    font-weight: 700;
    padding: 10px 14px;
}

body.front-modern .front-main-nav > li > a:hover,
body.front-modern .front-main-nav > li > a:focus {
    background: #ecf4ff;
    color: #123f72;
}

body.front-modern .front-main-nav > li.active > a,
body.front-modern .front-main-nav > li.active > a:hover,
body.front-modern .front-main-nav > li.active > a:focus {
    background: linear-gradient(135deg, #1d5caa 0%, #2d7ccc 100%);
    color: #ffffff;
    border: 0;
}

body.front-modern .front-content-wrap {
    margin-bottom: 26px;
}

body.front-modern .front-main-row,
body.front-modern .front-support-row {
    margin-left: -12px;
    margin-right: -12px;
}

body.front-modern .front-main-row > [class*="col-"],
body.front-modern .front-support-row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

body.front-modern .front-main-row {
    margin-bottom: 2px;
}

body.front-modern .front-support-row {
    margin-top: 2px;
}

body.front-modern .front-box {
    background: var(--front-card);
    border: 1px solid var(--front-border);
    border-radius: 14px;
    box-shadow: var(--front-shadow);
    padding: 18px;
    margin-bottom: 16px;
}

body.front-modern .front-content {
    min-height: 0;
}

body.front-modern .front-page {
    min-height: 560px;
    padding: 22px;
}

body.front-modern .front-section-page h1,
body.front-modern .front-page h1,
body.front-modern .front-page h2,
body.front-modern .front-page h3,
body.front-modern .tituloArea {
    color: #1c3f6d;
    font-weight: 700;
}

body.front-modern .front-section-page {
    display: grid;
    gap: 16px;
}

body.front-modern .front-section-hero {
    background: linear-gradient(135deg, #f1f7ff 0%, #ffffff 100%);
    border: 1px solid var(--front-border);
    border-radius: 12px;
    padding: 18px 20px;
}

body.front-modern .front-section-hero p {
    margin-bottom: 0;
    color: #35577b;
}

body.front-modern .front-section-grid {
    margin-left: -8px;
    margin-right: -8px;
}

body.front-modern .front-section-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

body.front-modern .front-home-grid {
    margin-left: -8px;
    margin-right: -8px;
}

body.front-modern .front-home-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

body.front-modern .front-card {
    background: #ffffff;
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(11, 34, 60, 0.1);
    padding: 12px;
    margin-bottom: 12px;
}

body.front-modern .front-card p,
body.front-modern .front-card li {
    color: #2b4868;
    line-height: 1.6;
}

body.front-modern .carousel.front-carousel {
    border-radius: 12px;
    overflow: hidden;
    background: #eef4fd;
}

body.front-modern .front-carousel .carousel-inner > .item > img,
body.front-modern .front-carousel .carousel-inner > .active > img {
    width: 100%;
    height: 410px;
    object-fit: cover;
}

body.front-modern .front-carousel .carousel-control {
    background: rgba(7, 34, 71, 0.35);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    top: 50%;
    margin-top: -21px;
    line-height: 38px;
    font-size: 30px;
    text-shadow: none;
    opacity: 0.9;
}

body.front-modern .front-carousel .carousel-control.left {
    left: 10px;
}

body.front-modern .front-carousel .carousel-control.right {
    right: 10px;
}

body.front-modern .front-carousel .carousel-indicators {
    bottom: 6px;
}

body.front-modern .front-carousel .carousel-indicators li {
    border-color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

body.front-modern .front-carousel .carousel-indicators .active {
    background: #ffffff;
}

body.front-modern .front-hero {
    background: linear-gradient(145deg, #133f83 0%, #1a5ca8 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 14px 32px rgba(13, 41, 84, 0.28);
}

body.front-modern .front-hero h2 {
    color: #ffffff;
    margin-top: 0;
}

body.front-modern .front-hero p {
    color: #e5f1ff;
}

body.front-modern .front-social-links {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

body.front-modern .front-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 9px 10px;
    text-decoration: none;
}

body.front-modern .front-social-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body.front-modern .front-social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

body.front-modern .front-news-brief-title,
body.front-modern .front-side-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

body.front-modern .front-brief-card {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(10, 34, 63, 0.11);
    overflow: hidden;
    margin-bottom: 10px;
}

body.front-modern .front-brief-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

body.front-modern .front-brief-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

body.front-modern .front-brief-thumb-empty {
    background: linear-gradient(135deg, #eaf2ff 0%, #d4e5fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a5b93;
    font-size: 34px;
}

body.front-modern .front-brief-card .caption {
    padding: 10px;
}

body.front-modern .front-brief-card .caption h5 {
    margin-top: 0;
    color: #1f3f70;
}

body.front-modern .front-brief-card .caption p {
    color: #4b6689;
}

body.front-modern .front-news-list {
    display: grid;
    gap: 16px;
}

body.front-modern .front-news-list-item {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(10, 34, 63, 0.11);
    padding: 16px;
}

body.front-modern .front-news-row {
    display: flex;
    align-items: stretch;
}

body.front-modern .front-news-title,
body.front-modern .front-news-list-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

body.front-modern .front-news-title a {
    color: #1b3f71;
    font-weight: 700;
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.front-modern .front-news-date {
    color: #5a7292;
    font-size: 14px;
    margin-bottom: 12px;
}

body.front-modern .front-news-content {
    color: #2a4768;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.front-modern .front-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

body.front-modern .front-news-thumb {
    width: 100%;
    min-height: 180px;
    height: 100%;
    max-height: 210px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d2deee;
}

body.front-modern .front-news-thumb-empty {
    background: linear-gradient(135deg, #eaf2ff 0%, #d4e5fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a5b93;
    font-size: 38px;
}

body.front-modern .front-news-list-item .btn {
    margin-top: 12px;
}

body.front-modern .front-news-list-item {
    overflow: hidden;
}

body.front-modern .front-news-row {
    margin-left: 0;
    margin-right: 0;
}

body.front-modern .front-news-share {
    display: inline-flex;
    align-items: center;
}

body.front-modern .front-news-page {
    max-width: 1220px;
    margin: 0 auto;
}

body.front-modern .front-news-hero {
    margin-bottom: 2px;
}

body.front-modern .front-news-article {
    background: #ffffff;
    border: 1px solid #d9e4f3;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(9, 31, 57, 0.12);
    padding: 20px 22px;
}

body.front-modern .front-news-article-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.front-modern .front-news-article-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #163d6f;
}

body.front-modern .front-news-article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d2deee;
    margin-bottom: 14px;
}

body.front-modern .front-news-article-content {
    font-size: 16px;
    color: #274566;
}

body.front-modern .front-news-article-content p,
body.front-modern .front-news-article-content li {
    line-height: 1.65;
}

body.front-modern .front-contact-card {
    max-width: none;
    margin: 0;
    padding: 24px;
}

body.front-modern .front-contact-grid {
    margin-left: -10px;
    margin-right: -10px;
}

body.front-modern .front-contact-grid > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

body.front-modern .front-contact-info .btn {
    margin-top: 10px;
}

body.front-modern .front-contact-form .row {
    margin-left: -8px;
    margin-right: -8px;
}

body.front-modern .front-contact-form .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

body.front-modern .front-contact-card .form-group {
    margin-bottom: 14px;
}

body.front-modern .front-contact-card input,
body.front-modern .front-contact-card select,
body.front-modern .front-contact-card textarea {
    border-radius: 9px;
    border: 1px solid #cad8ea;
}

body.front-modern .front-contact-card label {
    color: #24486f;
    font-weight: 700;
}

body.front-modern .front-contact-card textarea {
    min-height: 130px;
    resize: vertical;
}

body.front-modern .front-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
}

body.front-modern .front-contact-submit-wrap {
    margin-top: 6px;
}

body.front-modern .front-profile-page {
    padding: 30px 0 40px;
}

body.front-modern .front-profile-wrap {
    max-width: 980px;
    margin: 0 auto;
}

body.front-modern .front-profile-card {
    background: #ffffff;
    border: 1px solid #d9e4f3;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(9, 31, 58, 0.14);
    padding: 24px;
}

body.front-modern .front-profile-header {
    margin-bottom: 18px;
}

body.front-modern .front-profile-header h1 {
    margin: 0 0 6px;
    color: #1b3f70;
}

body.front-modern .front-profile-header p {
    margin: 0;
    color: #4a678b;
}

body.front-modern .front-profile-grid {
    margin-left: -8px;
    margin-right: -8px;
}

body.front-modern .front-profile-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

body.front-modern .front-profile-form .form-group {
    margin-bottom: 13px;
}

body.front-modern .front-profile-form label {
    color: #234b78;
    font-weight: 700;
}

body.front-modern .front-profile-form .form-control {
    border: 1px solid #cbd8ea;
    border-radius: 9px;
    box-shadow: none;
}

body.front-modern .front-profile-form .form-control:focus {
    border-color: #73a2df;
    box-shadow: 0 0 0 2px rgba(75, 141, 220, 0.14);
}

body.front-modern .front-profile-password {
    margin-top: 12px;
    padding: 14px;
    background: #f6faff;
    border: 1px solid #d9e5f5;
    border-radius: 10px;
}

body.front-modern .front-profile-password p {
    margin: 8px 0 0;
    color: #4e6b8d;
    font-size: 14px;
}

body.front-modern .front-profile-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.front-modern .front-profile-actions .form-group {
    margin: 0;
}

body.front-modern .front-profile-actions .btn {
    min-width: 170px;
}

body.front-modern .front-thanks {
    text-align: center;
    padding: 24px 20px;
}

body.front-modern .front-about-intro {
    display: grid;
    gap: 10px;
}

body.front-modern .front-lemas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.front-modern .front-lema-btn {
    border-radius: 10px;
    font-weight: 700;
}

body.front-modern .front-faq {
    background: #ffffff;
    border: 1px solid #dbe4f1;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(9, 32, 58, 0.12);
    padding: 14px;
}

body.front-modern .front-faq .panel {
    border-color: #d7e1f1;
    border-radius: 10px;
    box-shadow: none;
}

body.front-modern .front-faq .panel-heading {
    background: #f2f7ff;
}

body.front-modern .front-faq .panel-title {
    color: #1f3f70;
}

body.front-modern .front-faq p,
body.front-modern .front-faq li,
body.front-modern .front-faq span,
body.front-modern .front-faq font {
    color: #325271;
}

body.front-modern .front-modal .modal-content,
body.front-modern .modal.front-modal .modal-content {
    border-radius: 14px;
    border: 1px solid #d7e2f0;
}

body.front-modern .modal.front-modal .modal-header {
    background: #f4f8ff;
}

body.front-modern #footer {
    background: linear-gradient(180deg, #113b7b 0%, #0a2d60 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 54px;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

body.front-modern #footer .front-shell {
    width: 100%;
}

body.front-modern #footer .info {
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.front-modern .front-side-card {
    display: grid;
    gap: 12px;
}

body.front-modern .front-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d3dfef;
}

body.front-modern .front-map-wrap iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

body.front-modern .front-side-contact {
    margin: 0;
    color: #2f4d6e;
}

body.front-modern .front-map-cta {
    justify-self: start;
}

body.front-modern .front-news-side-wrap > .text-center {
    padding-top: 4px;
}

body.front-modern .front-page {
    overflow: visible;
}

body.front-modern .front-page .img-responsive {
    border-radius: 10px;
}

body.front-modern .front-news-content {
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    body.front-modern #header-top {
        padding: 12px 12px 10px;
    }

    body.front-modern #cajaLogin {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 10px;
        display: inline-block;
        max-width: 100%;
    }

    body.front-modern #cajaLogin .front-login-auth,
    body.front-modern #cajaLogin .front-login-guest .nav.navbar-nav {
        justify-content: center;
    }

    body.front-modern #logo {
        max-height: 130px !important;
    }

    body.front-modern .front-content .col-md-6,
    body.front-modern .front-content .col-md-7,
    body.front-modern .front-content .col-md-5 {
        width: 100%;
    }

    body.front-modern .front-main-row,
    body.front-modern .front-support-row {
        margin-left: -8px;
        margin-right: -8px;
    }

    body.front-modern .front-main-row > [class*="col-"],
    body.front-modern .front-support-row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.front-modern .front-support-map,
    body.front-modern .front-support-news {
        width: 100%;
    }

    body.front-modern .front-carousel .carousel-inner > .item > img,
    body.front-modern .front-carousel .carousel-inner > .active > img {
        height: 320px;
    }

    body.front-modern .front-news-row {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    body.front-modern .front-news-row > [class*="col-"] {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    body.front-modern .front-news-thumb {
        max-height: none;
        min-height: 170px;
        margin-bottom: 12px;
    }

    body.front-modern .front-news-article {
        padding: 16px;
    }

    body.front-modern .front-news-article-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    body.front-modern #footer .info {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    body.front-modern .front-page {
        padding: 16px;
    }

    body.front-modern .front-contact-card {
        padding: 16px;
    }

    body.front-modern .front-contact-submit-wrap {
        text-align: left;
    }

    body.front-modern .front-contact-submit {
        width: 100%;
        min-width: 0;
    }

    body.front-modern .front-profile-page {
        padding: 16px 0 24px;
    }

    body.front-modern .front-profile-card {
        padding: 16px;
    }

    body.front-modern .front-profile-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.front-modern .front-profile-actions .btn {
        width: 100%;
        min-width: 0;
    }

    body.front-modern .front-news-page {
        max-width: 100%;
    }

    body.front-modern .front-news-list-item {
        padding: 12px;
    }

    body.front-modern .front-news-title {
        font-size: 24px;
        line-height: 1.2;
    }

    body.front-modern .front-news-date {
        font-size: 13px;
    }

    body.front-modern .front-news-thumb {
        min-height: 150px;
    }

    body.front-modern .front-news-article-toolbar {
        gap: 8px;
    }
}
