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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

a {
    text-decoration: none;
}

.site-shell {
    position: relative;
}

.hero-fullbleed {
    padding-top: 0.5rem;
}

.hero-panel {
    background: rgba(251, 246, 241, 0.4);
    color: #2b1116;
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 28px 80px rgba(18, 8, 10, 0.34);
}

.hero-quick-link {
    min-height: 100%;
}

.topbar-utility {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, #5f1320 0%, #7a1f2d 48%, #4e0f1b 100%);
    color: #fff;
}

.site-header {
    padding: 0.25rem 0 0;
}

.site-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: padding 180ms ease, margin-top 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, border-radius 180ms ease, backdrop-filter 180ms ease;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header.is-scrolled {
    padding-top: 0;
}

.site-header.is-scrolled .site-header-card {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(251, 246, 241, 0.94);
    box-shadow: 0 16px 40px rgba(57, 26, 31, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled .site-header-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.desktop-nav {
    gap: 0.15rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

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

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.76rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #4b5563;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

.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.08);
}

.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.28rem);
    left: 0;
    z-index: 30;
    min-width: 320px;
    max-width: 360px;
    padding: 0.65rem 0.22rem 0.22rem;
    border-radius: 1rem;
    border: 1px solid rgba(122, 31, 45, 0.08);
    background: rgba(255, 252, 248, 0.99);
    box-shadow: 0 24px 60px rgba(57, 26, 31, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
    transition-delay: 0s, 0s, 0s;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -0.7rem;
    left: 0;
    right: 0;
    height: 0.7rem;
}

.nav-dropdown.level-2,
.nav-dropdown.level-3,
.nav-dropdown.level-4,
.nav-dropdown.level-5 {
    top: -0.8rem;
    left: calc(100% - 0.15rem);
    padding-top: 0.85rem;
}

.nav-dropdown.level-2::before,
.nav-dropdown.level-3::before,
.nav-dropdown.level-4::before,
.nav-dropdown.level-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -0.6rem;
    width: 0.6rem;
    height: 100%;
}

.nav-dropdown.level-2::after,
.nav-dropdown.level-3::after,
.nav-dropdown.level-4::after,
.nav-dropdown.level-5::after {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: -0.6rem;
    right: 0;
    height: 0.6rem;
}

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

.nav-dropdown .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.7rem;
    padding: 0.36rem 0.68rem;
    color: #44403c;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.08;
    text-align: left;
}

.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);
    transition-delay: 0s, 0s, 0s;
}

.nav-item:not(:hover):not(:focus-within) > .nav-dropdown {
    transition-delay: 0s, 0s, 140ms;
}

.directorio-chip.is-active {
    box-shadow: 0 10px 28px rgba(122, 31, 45, 0.18);
}

.directorio-name,
.directorio-role,
.directorio-contact,
.directorio-email {
    min-width: 0;
}

.directorio-name,
.directorio-role {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.directorio-name {
    -webkit-line-clamp: 2;
    line-height: 1.15;
}

.directorio-role {
    -webkit-line-clamp: 2;
    line-height: 1.25;
}

.directorio-contact,
.directorio-email {
    width: 100%;
}

.directorio-contact span,
.directorio-email span {
    min-width: 0;
}

.directorio-photo {
    overflow: hidden;
}

.directorio-photo__img {
    display: block;
    background: #f8f4ef;
}

.cms-prose {
    color: #374151;
    line-height: 1.85;
    font-size: 1rem;
    font-family: Inter, system-ui, sans-serif;
}

.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: inherit;
    font-weight: 800;
    letter-spacing: -0.02em;
    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;
}

.front-portfolio-item .cms-prose {
    line-height: 1.7;
    font-family: Inter, system-ui, sans-serif;
}

.front-portfolio-item .cms-prose h1,
.front-portfolio-item .cms-prose h2,
.front-portfolio-item .cms-prose h3,
.front-portfolio-item .cms-prose h4,
.front-portfolio-item .cms-prose h5,
.front-portfolio-item .cms-prose h6 {
    margin-top: 1.2em;
    margin-bottom: 0.45em;
}

.front-portfolio-item .cms-prose p,
.front-portfolio-item .cms-prose ul,
.front-portfolio-item .cms-prose ol,
.front-portfolio-item .cms-prose blockquote,
.front-portfolio-item .cms-prose table,
.front-portfolio-item .cms-prose figure {
    margin: 0.7rem 0 0.95rem;
}

.front-portfolio-item .cms-prose img {
    margin: 1rem auto;
}

#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-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.cms-image-viewer.is-open {
    display: block;
}

.cms-image-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 12, 0.82);
    backdrop-filter: blur(10px);
}

.cms-image-viewer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1400px);
    height: min(92vh, 1000px);
    margin: 4vh auto 0;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fffaf6;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.cms-image-viewer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(122, 31, 45, 0.08);
    background: #fcf8f4;
}

.cms-image-viewer__title {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #5f1320;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cms-image-viewer__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cms-image-viewer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: #f8ece4;
    color: #7a1f2d;
    transition: background 160ms ease, transform 160ms ease;
}

.cms-image-viewer__btn:hover {
    transform: translateY(-1px);
    background: #f0ddd0;
}

.cms-image-viewer__btn--close {
    background: #7a1f2d;
    color: #fff;
}

.cms-image-viewer__btn--close:hover {
    background: #5f1320;
}

.cms-image-viewer__body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    background: #f6f1ea;
}

.cms-image-viewer__stage {
    display: grid;
    place-items: center;
    min-height: 100%;
}

.cms-image-viewer__stage img {
    display: block;
    max-width: none;
    max-height: none;
    transform-origin: center center;
    transition: transform 120ms ease;
    border-radius: 1rem;
    box-shadow: 0 18px 55px rgba(57, 26, 31, 0.18);
}

.cms-image-viewer__stage.is-zoomed {
    align-items: start;
}

html.overflow-hidden {
    overflow: hidden;
}

.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;
    }

    .site-header-card {
        padding: 0.3rem 0;
    }

    .site-header.is-scrolled .site-header-card {
        padding: 0.6rem 0;
        margin-top: 0;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .hero-fullbleed {
        padding-top: 0.35rem;
    }

    .hero-panel {
        border-radius: 1.5rem;
        padding: 1.05rem;
    }

    .hero-panel h1 {
        font-size: 2.1rem;
        line-height: 1.08;
    }

    .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;
    }
}
