:root {
    --site-ink: #18243d;
    --site-muted: #697586;
    --site-primary: #e85d32;
    --site-primary-dark: #bd3e1d;
    --site-navy: #13213c;
    --site-background: #f5f7fb;
    --site-border: #e8edf3;
    --site-card: #fff;
}

body.public-site {
    background: var(--site-background);
    color: var(--site-ink);
    font-family: "Encode Sans Expanded", Arial, sans-serif;
}

.public-site a {
    color: inherit;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, .97);
    border-top: 4px solid var(--site-primary);
    box-shadow: 0 5px 24px rgba(19, 33, 60, .08);
}

.site-header > .container {
    margin-bottom: 0 !important;
}

.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    color: var(--site-navy);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .07em;
    text-decoration: none;
}

.site-brand:hover {
    color: var(--site-primary);
}

.site-brand__image {
    display: block;
    width: 210px !important;
    max-width: 220px;
    height: 52px !important;
    max-height: 58px;
    object-fit: contain;
}

.site-brand__mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #f59e0b, var(--site-primary));
    color: #fff;
    font-size: 14px;
    letter-spacing: 0;
    box-shadow: 0 7px 16px rgba(232, 93, 50, .28);
}

.site-brand__text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-brand__text small {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .12em;
}

.site-header .src-form {
    top: 82px;
    right: 0;
    border: 1px solid var(--site-border);
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(19, 33, 60, .12);
}

.site-header .src-form input {
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: #f6f8fb;
}

.site-header .src-form button {
    border: 0;
    border-radius: 9px;
    background: var(--site-primary);
    color: #fff;
}

.site-header .main-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-header .main-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--site-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .2s ease, color .2s ease;
}

.site-header .main-menu > li > a:hover,
.site-header .main-menu > li:hover > a {
    background: #fff1ed;
    color: var(--site-primary-dark);
}

.site-header .drop-down-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(19, 33, 60, .14);
}

.site-header .drop-down-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--site-ink);
    font-size: 12px;
}

.site-header .drop-down-menu li a:hover {
    background: #fff1ed;
    color: var(--site-primary-dark);
}

.site-header > hr {
    display: none;
}

.site-context-bar {
    border-bottom: 1px solid var(--site-border);
    background: #fff;
}

.site-context-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    color: var(--site-muted);
    font-size: 11px;
}

.site-context-bar strong {
    margin-left: 6px;
    color: var(--site-primary-dark);
}

.site-context-bar a {
    color: var(--site-primary-dark);
    font-weight: 700;
}

.site-main {
    min-height: 62vh;
    padding: 28px 0 60px;
}

.public-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.public-site .container {
    max-width: 1180px;
}

.public-site .categoria-modal-backdrop {
    background: rgba(10, 20, 40, .72);
    backdrop-filter: blur(4px);
}

.public-site .categoria-modal {
    width: min(540px, 100%);
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(10, 20, 40, .28);
}

.public-site .categoria-modal h3 {
    color: var(--site-navy);
    font-size: 24px;
}

.public-site .categoria-modal p {
    color: var(--site-muted);
}

.public-site .categoria-modal a {
    border-radius: 11px;
    background: var(--site-primary);
}

.public-site .categoria-modal a:hover {
    background: var(--site-primary-dark);
}

.hero-grid {
    display: grid;
    grid-auto-rows: 190px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}

.hero-card {
    position: relative;
    display: flex;
    min-height: 190px;
    grid-column: span 1;
    overflow: hidden;
    border-radius: 18px;
    background: #dfe6ef;
    box-shadow: 0 10px 26px rgba(19, 33, 60, .11);
    isolation: isolate;
}

.hero-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.hero-card img,
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hero-card:hover img,
.news-card:hover img {
    transform: scale(1.04);
}

.hero-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 18, 35, .02) 18%, rgba(8, 18, 35, .9) 100%);
}

.hero-card__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px;
    color: #fff;
}

.hero-card__content h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.28;
}

.hero-card:not(.hero-card--featured) .hero-card__content {
    padding: 16px;
}

.hero-card:not(.hero-card--featured) .hero-card__content h2 {
    font-size: 14px;
}

.site-eyebrow {
    color: #fed7aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 18px;
}

.section-heading h2 {
    margin: 0;
    color: var(--site-navy);
    font-size: 22px;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--site-muted);
    font-size: 12px;
}

.section-heading a {
    color: var(--site-primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-card);
    box-shadow: 0 7px 20px rgba(19, 33, 60, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    box-shadow: 0 14px 30px rgba(19, 33, 60, .12);
    transform: translateY(-4px);
}

.news-card__media {
    display: block;
    height: 190px;
    overflow: hidden;
    background: #e9eef5;
}

.news-card__body {
    padding: 17px 18px 19px;
}

.news-card__body h3 {
    margin: 0;
    color: var(--site-ink);
    font-size: 15px;
    line-height: 1.45;
}

.news-card__body h3 a:hover {
    color: var(--site-primary-dark);
}

.site-empty {
    padding: 64px 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.site-empty h2 {
    color: var(--site-navy);
    font-size: 22px;
}

.site-empty p {
    max-width: 480px;
    margin: 8px auto 0;
    color: var(--site-muted);
    font-size: 13px;
}

.site-listing__header,
.contact-card {
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 33, 60, .06);
}

.site-listing__header {
    padding: 24px;
}

.site-listing__header h1 {
    margin: 6px 0 0;
    color: var(--site-navy);
    font-size: 26px;
}

.site-listing__header p {
    margin: 8px 0 0;
    color: var(--site-muted);
    font-size: 13px;
}

.site-listing .site-eyebrow,
.site-empty .site-eyebrow,
.contact-card .site-eyebrow,
.section-heading .site-eyebrow {
    color: var(--site-primary);
}

.site-search {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.site-search input,
.contact-card input,
.contact-card textarea {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #fbfcfe;
    color: var(--site-ink);
    outline: 0;
}

.site-search input {
    height: 44px;
    padding: 0 14px;
}

.site-search button,
.contact-card button {
    border: 0;
    border-radius: 10px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 700;
}

.site-search button {
    min-width: 120px;
}

.site-search input:focus,
.contact-card input:focus,
.contact-card textarea:focus {
    border-color: #f09a7d;
    box-shadow: 0 0 0 4px rgba(232, 93, 50, .1);
}

.site-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    color: var(--site-muted);
    font-size: 12px;
}

.site-pagination a {
    padding: 9px 14px;
    border-radius: 9px;
    background: #fff;
    color: var(--site-primary-dark);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(19, 33, 60, .07);
}

.site-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr);
    gap: 24px;
}

.contact-card {
    padding: 28px;
}

.contact-card h1,
.contact-card h2 {
    margin-top: 0;
    color: var(--site-navy);
}

.contact-card p {
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.7;
}

.contact-card label {
    display: block;
    margin: 16px 0 7px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.contact-card input {
    height: 42px;
    padding: 0 12px;
}

.contact-card textarea {
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.contact-card button {
    margin-top: 16px;
    padding: 11px 18px;
}

.site-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-card .abs-br {
    position: static;
}

.site-footer {
    margin-top: 30px;
    background: var(--site-navy) !important;
    color: rgba(255, 255, 255, .68);
}

.site-footer__main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    padding: 46px 0 34px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    line-height: 1.8;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__bottom ul {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

section[id^="simplebanner"],
section[id^="multibanner"] {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: 16px;
    background: #e7edf4;
}

section[id^="simplebanner"] img,
section[id^="multibanner"] img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

@media (max-width: 800px) {
    .site-header__inner {
        min-height: 68px;
        gap: 10px;
    }

    .site-brand__text small {
        display: none;
    }

    .site-header .main-menu {
        gap: 2px;
    }

    .site-header .main-menu > li > a {
        padding: 0 8px;
        font-size: 11px;
    }

    .hero-grid {
        grid-auto-rows: 170px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
    }

    .site-contact-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .site-header .main-menu > li:nth-child(2) {
        display: none;
    }

    .site-search {
        flex-direction: column;
    }

    .site-search button {
        min-height: 42px;
    }

    .hero-grid {
        grid-auto-rows: 150px;
    }

    .hero-card__content h2 {
        font-size: 16px;
    }
}

/* Mobile refinement: compact header, accessible navigation and comfortable reading widths. */
@media (max-width: 767px) {
    .site-header {
        position: relative;
        z-index: 20;
    }

    .site-header__inner {
        min-height: 64px;
        width: 100%;
        padding: 8px 16px;
        gap: 8px;
    }

    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-brand__image {
        width: 150px !important;
        height: 42px !important;
        max-width: 100%;
        max-height: 42px;
    }

    .site-header .right-area {
        order: 2;
        width: 40px;
        height: 42px;
        margin-left: 0;
        line-height: 42px;
        text-align: center;
    }

    .site-header .menu-nav-icon {
        order: 3;
        display: flex !important;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: #fff1ed;
        color: var(--site-primary-dark);
        font-size: 24px;
        line-height: 1;
    }

    .site-header .main-menu {
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px;
        border: 1px solid #e4e9ef;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(16, 36, 62, .18);
    }

    .site-header .main-menu.visible-menu {
        display: flex !important;
    }

    .site-header .main-menu > li,
    .site-header .main-menu > li > a {
        width: 100%;
    }

    .site-header .main-menu > li > a {
        min-height: 44px;
        padding: 0 12px;
        align-items: center;
        border-radius: 9px;
        font-size: 13px;
        line-height: 44px;
    }

    .site-header .main-menu > li > a:hover,
    .site-header .main-menu > li > a:focus {
        background: #fff5f2;
    }

    .site-header .drop-down-menu {
        position: static;
        min-width: 0;
        margin: 0 0 4px;
        padding: 0 0 0 10px;
        border: 0;
        box-shadow: none;
    }

    .site-header .drop-down-menu li a {
        min-height: 38px;
        padding: 0 12px;
        line-height: 38px;
        border-radius: 8px;
        font-size: 12px;
    }

    .site-header .src-form {
        top: 64px;
        left: 12px;
        right: 12px;
        z-index: 30;
        max-width: 0;
        border-radius: 12px;
        box-shadow: 0 18px 40px rgba(16, 36, 62, .14);
    }

    .site-header .src-form.active {
        max-width: none;
    }

    .site-context-bar__inner {
        min-height: auto;
        padding: 9px 16px;
        flex-wrap: wrap;
        gap: 4px 8px;
        font-size: 10px;
        line-height: 1.5;
    }

    .site-main {
        min-height: 58vh;
        padding: 18px 0 36px;
    }

    .public-container {
        width: calc(100% - 24px);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
        gap: 12px;
    }

    .hero-card--featured {
        grid-column: span 1;
        min-height: 220px;
    }

    .hero-card__content {
        padding: 16px;
    }

    .hero-card__content h2 {
        font-size: 18px;
        line-height: 1.2;
    }

    .news-card__media {
        height: 178px;
    }

    .site-empty {
        padding: 42px 18px;
    }

    .site-empty h2 {
        font-size: 21px;
    }

    .site-listing__header,
    .contact-card {
        padding: 20px;
        border-radius: 14px;
    }

    .site-listing__header h1,
    .contact-card h1 {
        font-size: 24px;
        line-height: 1.15;
    }

    .site-search {
        gap: 8px;
    }

    .site-search input,
    .site-search button {
        width: 100%;
        min-height: 44px;
    }

    .contact-card .pr-80 {
        padding-right: 0 !important;
    }

    .contact-card textarea {
        min-height: 135px;
    }

    .site-footer__main {
        gap: 20px;
        padding: 32px 0 24px;
    }

    .site-footer__bottom {
        gap: 10px;
        padding: 15px 0;
    }

    .site-footer__bottom ul {
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    section[id^="simplebanner"],
    section[id^="multibanner"] {
        width: calc(100% - 24px);
        margin-bottom: 18px;
        border-radius: 12px;
    }

    section[id^="simplebanner"] img,
    section[id^="multibanner"] img {
        max-height: 180px;
    }
}

@media (max-width: 380px) {
    .site-header__inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .site-brand__image {
        width: 128px !important;
    }

    .site-header .right-area {
        width: 34px;
    }

    .site-header .menu-nav-icon {
        width: 38px;
        height: 38px;
    }
}

/* Mobile footer refinement: reduce legacy spacing and keep the information scan-friendly. */
@media (max-width: 767px) {
    .site-footer {
        margin-top: 18px;
    }

    .site-footer > .container {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-footer > .container > .pt-50 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .site-footer .abs-tblr {
        opacity: .52;
        pointer-events: none;
    }

    .site-footer__main {
        grid-template-columns: 1.1fr .9fr;
        gap: 20px 22px;
        padding: 28px 0 22px;
    }

    .site-footer__main > div:first-child {
        grid-column: 1 / -1;
        max-width: 310px;
    }

    .site-footer h3 {
        margin-bottom: 8px;
        font-size: 12px;
        letter-spacing: .04em;
    }

    .site-footer p,
    .site-footer a {
        font-size: 11px;
        line-height: 1.65;
    }

    .site-footer__bottom {
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0 16px;
    }

    .site-footer__bottom ul {
        width: 100%;
        flex-wrap: wrap;
        gap: 2px 20px;
    }

    .site-footer__bottom ul:last-child {
        width: auto;
        gap: 4px 18px;
        margin-top: 2px;
    }
}
