[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

a {
    text-decoration: none;
}

.desktop-nav {
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(122, 31, 45, 0.08);
    box-shadow: 0 14px 40px rgba(57, 26, 31, 0.08);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 0.85rem;
    margin-bottom: -0.85rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #4b5563;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.45rem;
    height: 2px;
    border-radius: 999px;
    background: #7a1f2d;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-item.is-active > .nav-link {
    color: #7a1f2d;
    background: rgba(122, 31, 45, 0.07);
}

.nav-item:hover > .nav-link::after,
.nav-item:focus-within > .nav-link::after,
.nav-item.is-active > .nav-link::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 0;
    z-index: 30;
    min-width: 250px;
    padding: 0.45rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(122, 31, 45, 0.08);
    background: rgba(255, 251, 247, 0.98);
    box-shadow: 0 20px 50px rgba(57, 26, 31, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown.level-2,
.nav-dropdown.level-3,
.nav-dropdown.level-4,
.nav-dropdown.level-5 {
    top: -0.5rem;
    left: calc(100% + 0.25rem);
}

.nav-dropdown .nav-item {
    display: block;
    padding-bottom: 0;
    margin-bottom: 0;
}

.nav-dropdown .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 1rem;
    padding: 0.82rem 0.9rem;
    color: #44403c;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-dropdown .nav-link::after {
    display: none;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.cms-prose {
    color: #374151;
    line-height: 1.85;
    font-size: 1rem;
}

.cms-prose > :first-child {
    margin-top: 0;
}

.cms-prose > :last-child {
    margin-bottom: 0;
}

.cms-prose h1,
.cms-prose h2,
.cms-prose h3,
.cms-prose h4,
.cms-prose h5,
.cms-prose h6 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    color: #5f1320;
    font-family: Fraunces, Georgia, serif;
    line-height: 1.18;
}

.cms-prose h1 {
    font-size: 2.4rem;
}

.cms-prose h2 {
    font-size: 2rem;
}

.cms-prose h3 {
    font-size: 1.6rem;
}

.cms-prose p,
.cms-prose ul,
.cms-prose ol,
.cms-prose blockquote,
.cms-prose table,
.cms-prose figure {
    margin: 1rem 0 1.25rem;
}

.cms-prose ul,
.cms-prose ol {
    padding-left: 1.4rem;
}

.cms-prose li + li {
    margin-top: 0.45rem;
}

.cms-prose a {
    color: #7a1f2d;
    font-weight: 600;
}

.cms-prose a:hover {
    color: #5f1320;
}

.cms-prose strong {
    color: #1f2937;
}

.cms-prose blockquote {
    padding: 1rem 1.25rem;
    border-left: 4px solid #c69b59;
    border-radius: 0 1rem 1rem 0;
    background: #faf3eb;
    color: #57534e;
}

.cms-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(57, 26, 31, 0.12);
}

.cms-prose table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(122, 31, 45, 0.1);
}

.cms-prose th,
.cms-prose td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(122, 31, 45, 0.08);
    text-align: left;
}

.cms-prose th {
    background: #f7efe7;
    color: #5f1320;
    font-weight: 700;
}

.cms-prose iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 1.2rem;
}

#tblNoticias_wrapper .dt-layout-row:first-child,
#tblNoticias_wrapper .dt-layout-row:last-child {
    gap: 1rem;
    padding: 0.4rem 0;
}

#tblNoticias_wrapper .dt-input {
    border: 1px solid rgba(122, 31, 45, 0.14);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    background: #fff;
}

#tblNoticias_wrapper .dt-paging .dt-paging-button {
    border-radius: 999px !important;
    border: 0 !important;
    background: #f7efe7 !important;
    color: #7a1f2d !important;
}

#tblNoticias_wrapper .dt-paging .dt-paging-button.current,
#tblNoticias_wrapper .dt-paging .dt-paging-button:hover {
    background: #7a1f2d !important;
    color: #fff !important;
}

.office-preview-shell {
    overflow: hidden;
    border: 1px solid rgba(122, 31, 45, 0.08);
    border-radius: 1rem;
    background: #fff;
}

.office-preview-loading,
.office-preview-error {
    padding: 1.4rem;
    text-align: center;
    color: #57534e;
    font-size: 0.95rem;
}

.office-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 0.9rem 0 0.9rem;
    border-bottom: 1px solid rgba(122, 31, 45, 0.08);
    background: #fcfaf8;
}

.office-preview-tab {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a1f2d;
    background: #f8ece4;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.office-preview-tab:hover {
    transform: translateY(-1px);
    background: #f2e1d7;
}

.office-preview-tab.is-active {
    color: #fff;
    background: #7a1f2d;
}

.office-preview-body {
    overflow: auto;
    max-height: 760px;
    padding: 0.9rem;
}

.office-preview-table-wrap table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #374151;
}

.office-preview-table-wrap td,
.office-preview-table-wrap th {
    border: 1px solid rgba(122, 31, 45, 0.08);
    padding: 0.65rem 0.75rem;
    vertical-align: top;
}

.office-preview-table-wrap tr:nth-child(odd) td {
    background: rgba(248, 236, 228, 0.38);
}

.cms-accessibility {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.cms-accessibility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7a1f2d, #9d3144);
    box-shadow: 0 18px 40px rgba(57, 26, 31, 0.28);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cms-accessibility-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(57, 26, 31, 0.34);
}

.cms-accessibility-toggle i {
    font-size: 1.3rem;
}

.cms-accessibility-panel {
    width: min(24rem, calc(100vw - 1.5rem));
    border: 1px solid rgba(122, 31, 45, 0.12);
    border-radius: 1.4rem;
    background: rgba(255, 252, 248, 0.98);
    box-shadow: 0 26px 70px rgba(57, 26, 31, 0.18);
    padding: 1rem;
    display: none;
}

.cms-accessibility.is-open .cms-accessibility-panel {
    display: block;
}

.cms-accessibility-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cms-accessibility-panel__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7a1f2d;
}

.cms-accessibility-panel__title {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.05rem;
    color: #3f1d23;
}

.cms-accessibility-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    color: #7a1f2d;
    background: #f8ece4;
    cursor: pointer;
}

.cms-accessibility-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.cms-accessibility-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: 1px solid rgba(122, 31, 45, 0.12);
    border-radius: 999px;
    padding: 0.78rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #5f1320;
    background: #fff;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cms-accessibility-action:hover {
    transform: translateY(-1px);
    background: #f8ece4;
    border-color: rgba(122, 31, 45, 0.2);
}

.cms-accessibility-action.is-active {
    color: #fff;
    background: #7a1f2d;
    border-color: #7a1f2d;
}

.cms-accessibility-action--secondary {
    grid-column: 1 / -1;
    justify-content: center;
}

body.cms-a11y-contrast {
    background: #fff !important;
}

body.cms-a11y-contrast .desktop-nav,
body.cms-a11y-contrast header,
body.cms-a11y-contrast footer,
body.cms-a11y-contrast .cms-accessibility-panel,
body.cms-a11y-contrast .office-preview-shell {
    border-color: #000 !important;
}

body.cms-a11y-contrast .nav-link,
body.cms-a11y-contrast .cms-prose,
body.cms-a11y-contrast .cms-prose p,
body.cms-a11y-contrast .cms-prose li,
body.cms-a11y-contrast .cms-prose td,
body.cms-a11y-contrast .cms-prose th {
    color: #000 !important;
}

body.cms-a11y-contrast .nav-item:hover > .nav-link,
body.cms-a11y-contrast .nav-item:focus-within > .nav-link,
body.cms-a11y-contrast .nav-item.is-active > .nav-link {
    background: #000 !important;
    color: #fff !important;
}

body.cms-a11y-contrast .cms-prose a {
    color: #0000ee !important;
    text-decoration: underline;
}

html.cms-a11y-text-sm {
    font-size: 15px;
}

html.cms-a11y-text-lg {
    font-size: 17px;
}

html.cms-a11y-text-xl {
    font-size: 18px;
}

body.cms-a11y-reading main > * {
    max-width: min(900px, calc(100vw - 1.5rem));
    margin-left: auto;
    margin-right: auto;
}

body.cms-a11y-reading .cms-prose {
    line-height: 2;
    font-size: 1.08em;
}

body.cms-a11y-reading .desktop-nav,
body.cms-a11y-reading header,
body.cms-a11y-reading footer {
    backdrop-filter: none;
}

body.cms-a11y-motion *,
body.cms-a11y-motion *::before,
body.cms-a11y-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

body.cms-a11y-links a {
    outline: 2px solid transparent;
    outline-offset: 2px;
    text-decoration: underline !important;
}

body.cms-a11y-links a:hover,
body.cms-a11y-links a:focus {
    outline-color: #c69b59;
}

@media (max-width: 1023px) {
    .desktop-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .cms-prose {
        font-size: 0.97rem;
    }

    .cms-prose h1 {
        font-size: 2rem;
    }

    .cms-prose h2 {
        font-size: 1.7rem;
    }

    .cms-prose h3 {
        font-size: 1.4rem;
    }

    .cms-accessibility {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cms-accessibility-panel {
        width: min(21rem, calc(100vw - 1.25rem));
    }

    .cms-accessibility-actions {
        grid-template-columns: 1fr;
    }
}
