.public-home { overflow: hidden; background: var(--relf-white); }
.public-hero { position: relative; min-height: 100svh; padding: 1.5rem 2rem 1.75rem; display: flex; flex-direction: column; justify-content: flex-start; color: var(--relf-white); background: url("../img/Empresa/Galeria/banners/banner_principal.jpg") center / cover; }
.public-navigation, .hero-content { width: min(1180px, 100%); margin: 0 auto; }
.public-navigation { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: calc(100% - clamp(300px, 25vw, 400px) - 2rem); margin-left: calc(clamp(300px, 25vw, 400px) + 2rem); }
.public-navigation.is-scrolled { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; width: 100%; max-width: none; margin-left: 0; padding: .65rem max(2rem, calc((100% - 1180px) / 2)); background: rgba(33, 27, 67, .96); box-shadow: 0 5px 20px rgba(23, 20, 45, .2); }
.brand-mark { display: inline-flex; align-items: center; gap: .8rem; color: var(--relf-white); font-size: .96rem; font-weight: 700; letter-spacing: .03em; }
.brand-mark img { width: 58px; height: 58px; object-fit: contain; }
.public-nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--relf-white); background: transparent; border: 1px solid rgba(255, 255, 255, .7); border-radius: 4px; font-size: 1.1rem; cursor: pointer; }
.public-nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .85rem; }
.public-nav-links > a:not(.relf-button) { padding: .6rem .2rem; color: var(--relf-white); font-weight: 700; transition: color 180ms ease; }
.public-nav-links > a:not(.relf-button):hover { color: var(--relf-accent); }
.hero-sidebar { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: clamp(300px, 25vw, 400px); padding: 0 clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; background: rgba(33, 27, 67, .97); }
.hero-sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 0 1rem; color: rgba(255, 255, 255, .58); border-bottom: 2px solid rgba(255, 255, 255, .2); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; transition: color 180ms ease, border-color 180ms ease; }
.hero-sidebar-link span { min-width: 1.5rem; color: var(--relf-accent); font-size: .65rem; }
.hero-sidebar-link:hover, .hero-sidebar-link.is-active { color: var(--relf-white); border-color: var(--relf-accent); }
.hero-sidebar-access { margin-top: .5rem; color: var(--relf-accent); border-bottom: 0; }
.hero-content { flex: 1; display: grid; grid-template-columns: minmax(0, 760px); align-items: center; width: calc(100% - clamp(300px, 25vw, 400px) - 2rem); max-width: none; padding: 2rem 0; margin-left: calc(clamp(300px, 25vw, 400px) + 2rem); }
.hero-copy { max-width: 680px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.hero-eyebrow, .section-eyebrow { color: var(--relf-accent); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-logo { width: clamp(220px, 30vw, 390px); height: auto; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(23, 20, 45, .35)); }
.hero-content p { max-width: 510px; margin: 0; color: var(--relf-primary); font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-content .relf-button i, .contact-heading .relf-button i { margin-left: .65rem; }
.relf-button-hero-access { color: var(--relf-primary); background: rgba(255, 255, 255, .9); border-color: var(--relf-white); }
.relf-button-hero-access:hover { color: var(--relf-white); background: var(--relf-primary); border-color: var(--relf-primary); }
.service-card img, .detail-image img, .capabilities-section > img, .international-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.service-card-overlay { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 35%, rgba(23, 20, 45, .88)); }
.relf-button-light { color: var(--relf-primary); background: var(--relf-white); }
.relf-button-light:hover { color: var(--relf-white); background: transparent; border-color: var(--relf-white); }
.relf-button-accent { color: var(--relf-primary); background: var(--relf-accent); }
.relf-button-accent:hover { color: var(--relf-white); background: var(--relf-secondary); }
.intro-section, .services-section, .operations-section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 7rem 0; }
.intro-section { display: grid; grid-template-columns: .8fr 1fr .9fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; }
.section-heading { max-width: 620px; margin-bottom: 3rem; }
.section-heading h2, .detail-copy h2, .capabilities-copy h2, .international-copy h2, .contact-heading h2 { margin: .8rem 0 0; color: var(--relf-primary); font-size: clamp(2.3rem, 4.5vw, 4.5rem); line-height: 1; }
.section-heading h2 span { display: block; }
.intro-copy { max-width: 620px; padding-top: 2rem; color: var(--relf-muted); font-size: 1.08rem; line-height: 1.8; }
.intro-copy p + p { margin-top: 1.5rem; }
.intro-image { align-self: stretch; min-height: 340px; }
.intro-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.services-section { padding-top: 1rem; }
.section-heading-wide { max-width: 760px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card, .service-card-large { position: relative; min-height: 460px; overflow: hidden; color: var(--relf-white); }
.service-card img { transition: transform 300ms ease; }
.service-card:hover img { transform: scale(1.04); }
.service-card-content { position: absolute; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; z-index: 1; }
.service-card-content > span { color: var(--relf-accent); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-card-content h3 { margin: .7rem 0; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.05; }
.service-card-content p { margin: 0; color: rgba(255, 255, 255, .75); line-height: 1.5; }
.detail-section, .capabilities-section, .international-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 570px; }
.detail-image, .international-image { min-height: 480px; }
.detail-copy, .international-copy { padding: clamp(3rem, 8vw, 8rem) max(2rem, calc((100vw - 1180px) / 2)) clamp(3rem, 8vw, 8rem) 5rem; align-self: center; }
.detail-copy p, .capabilities-copy p, .international-copy p { max-width: 500px; margin: 1.75rem 0 0; color: var(--relf-muted); font-size: 1rem; line-height: 1.75; }
.detail-list { margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--relf-primary); font-weight: 700; line-height: 2; }
.detail-list li::before { margin-right: .65rem; color: var(--relf-accent); content: "↗"; }
.capabilities-section { color: var(--relf-white); background: var(--relf-primary); }
.capabilities-copy { padding: clamp(3rem, 8vw, 8rem) 5rem max(3rem, 8vw) max(2rem, calc((100vw - 1180px) / 2)); align-self: center; }
.capabilities-copy h2 { color: var(--relf-white); }
.capabilities-copy p { color: rgba(255, 255, 255, .7); }
.capability-note { color: var(--relf-accent) !important; font-weight: 700; }
.capability-note i { margin-right: .5rem; }
.international-section { background: var(--relf-surface); }
.international-copy { padding-left: 5rem; }
.international-tags { max-width: 500px; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.international-tags span { padding: .55rem .8rem; color: var(--relf-primary); border: 1px solid var(--relf-border); font-size: .78rem; font-weight: 700; }
.operations-section { padding-bottom: 8rem; }
.operations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
.operations-grid article { padding-top: 1rem; display: flex; flex-direction: column; border-top: 2px solid var(--relf-accent); }
.operations-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--relf-accent); font-size: 2.4rem; }
.operations-grid h3 { width: 100%; margin: 0; color: var(--relf-primary); font-size: 1.1rem; text-align: center; }
.operations-grid .operations-icon { align-self: center; }
.operations-grid p { margin: .7rem 0 0; color: var(--relf-muted); font-size: .9rem; line-height: 1.55; }
.contact-section { padding: 6rem max(2rem, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; color: var(--relf-white); background: var(--relf-secondary); }
.contact-heading h2 { max-width: 600px; color: var(--relf-white); }
.contact-heading .relf-button { margin-top: 2rem; }
.contact-details { display: grid; align-content: center; gap: 1.7rem; }
.contact-details span { display: block; color: var(--relf-accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details p, .contact-details a { display: block; margin: .45rem 0 0; color: rgba(255, 255, 255, .82); font-size: .94rem; line-height: 1.6; }
.contact-details a:hover { color: var(--relf-white); }
.app-body-dashboard { height: 100vh; overflow: hidden; }
.app-body-dashboard > main { flex: 1 1 auto; min-height: 0; display: flex; }
.app-body-dashboard .relf-footer { flex: 0 0 auto; }

.dashboard-page { flex: 1; min-height: 0; width: 100%; padding: 1rem; display: flex; flex-direction: column; background: var(--relf-surface); }
.dashboard-sidebar-toggle { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 38px; height: 38px; min-height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--relf-primary); background: var(--relf-white); border: 1px solid var(--relf-border); border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.dashboard-sidebar-toggle span { display: none; }
.dashboard-sidebar-toggle:hover { color: var(--relf-white); background: var(--relf-primary); }
.dashboard-sidebar-toggle:focus-visible { outline: 3px solid rgba(240, 100, 5, .55); outline-offset: 3px; }
.dashboard-eyebrow { color: var(--relf-accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.dashboard-layout { flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 1rem; }

.dashboard-main { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--relf-white); border-radius: 16px; box-shadow: 0 10px 30px rgba(23, 20, 45, .06); overflow: hidden; }
.dashboard-main-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 2rem 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.dashboard-main:has(.module-page) .module-page-header { padding-right: 3.5rem; }

.dashboard-panel { display: none; flex-direction: column; gap: 1.5rem; }
.dashboard-panel.active { display: flex; }
.panel-heading h2 { margin: 0; color: var(--relf-primary); font-size: 1.3rem; }
.panel-heading p { margin: .4rem 0 0; color: var(--relf-muted); font-size: .9rem; }
.dashboard-detail-eyebrow { color: var(--relf-accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-detail-placeholder { min-height: 260px; display: grid; place-items: center; color: var(--relf-muted); background: var(--relf-surface); border: 1px dashed var(--relf-border); border-radius: 10px; text-align: center; }
.dashboard-detail-placeholder i { color: var(--relf-accent); font-size: 2rem; }
.dashboard-loading-overlay { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; background: rgba(255, 255, 255, .85); }
.dashboard-loading-overlay img { width: 4rem; height: 4rem; animation: global-loading-spin 1.1s linear infinite; }
.dashboard-loading-overlay span { color: var(--relf-primary); font-weight: 700; font-size: .95rem; }
.dashboard-loading-overlay[hidden] { display: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--relf-white); border: 1px solid var(--relf-border); border-radius: 10px; box-shadow: 0 6px 18px rgba(23, 20, 45, .05); transition: transform 180ms ease, box-shadow 180ms ease; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(23, 20, 45, .1); }
.kpi-icon { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; color: var(--relf-white); background: var(--relf-primary); border-radius: 10px; font-size: 1.2rem; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { color: var(--relf-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { margin-top: .2rem; color: var(--relf-primary); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.kpi-trend { margin-top: .35rem; font-size: .78rem; font-weight: 700; }
.kpi-trend i { margin-right: .3rem; }
.kpi-trend-up { color: #2E9E67; }
.kpi-trend-down { color: #C23B67; }

.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chart-card { min-width: 0; padding: 1.25rem; background: var(--relf-white); border: 1px solid var(--relf-border); border-radius: 10px; box-shadow: 0 6px 18px rgba(23, 20, 45, .05); }
.chart-card-wide { grid-column: span 1; }
.chart-card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.chart-card-header h3 { margin: 0; color: var(--relf-primary); font-size: 1.05rem; }
.chart-card-header span { color: var(--relf-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.chart-canvas-wrapper { position: relative; height: 260px; }
.chart-canvas-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chart-canvas-scroll-content { position: relative; width: 100%; min-width: 100%; height: 100%; }

.dashboard-sidebar { flex: 0 0 260px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 1.75rem 0; background: var(--relf-primary); border-radius: 16px; box-shadow: 0 10px 30px rgba(23, 20, 45, .16); }
.dashboard-sidebar.is-collapsed { display: none; }
.dashboard-sidebar-welcome { display: flex; align-items: center; gap: .85rem; padding: 0 1.5rem 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dashboard-sidebar-avatar { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--relf-white); background: rgba(255, 255, 255, .12); border-radius: 50%; font-size: 1.1rem; }
.dashboard-sidebar-welcome div { min-width: 0; display: flex; flex-direction: column; }
.dashboard-sidebar-welcome strong { color: var(--relf-white); font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-nav { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.dashboard-nav > *, .dashboard-nav-group, .dashboard-nav-subgroup { flex: 0 0 auto; }
.dashboard-nav::-webkit-scrollbar { width: 6px; }
.dashboard-nav::-webkit-scrollbar-track { background: transparent; }
.dashboard-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 999px; }
.dashboard-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .45); }
.dashboard-nav-group { display: flex; flex-direction: column; }
.dashboard-nav-link { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.5rem; color: rgba(255, 255, 255, .65); background: transparent; border: 0; border-left: 4px solid transparent; text-align: left; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.dashboard-nav-link i { width: 1.2rem; text-align: center; color: rgba(255, 255, 255, .55); transition: color 150ms ease; }
.dashboard-nav-chevron { width: auto !important; margin-left: auto; font-size: .68rem; transition: transform 150ms ease; }
.dashboard-nav-group.is-open .dashboard-nav-chevron { transform: rotate(180deg); }
.dashboard-subnav { display: none; padding: .2rem 0 .45rem 2.55rem; }
.dashboard-nav-group.is-open .dashboard-subnav { display: flex; flex-direction: column; }
.dashboard-nav-sublink { display: flex; align-items: center; gap: .65rem; padding: .55rem 1rem; color: rgba(255, 255, 255, .58); background: transparent; border: 0; border-left: 2px solid rgba(255, 255, 255, .2); text-align: left; font: inherit; font-size: .82rem; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease; }
.dashboard-nav-sublink i { flex: 0 0 1rem; width: 1rem; text-align: center; }
.dashboard-nav-sublink:hover { color: var(--relf-white); background: rgba(255, 255, 255, .08); border-left-color: var(--relf-accent); }
.dashboard-nav-sublink.active { color: var(--relf-white); background: rgba(240, 100, 5, .2); border-left-color: var(--relf-accent); }
.dashboard-nav-subgroup { display: flex; flex-direction: column; }
.dashboard-nav-subchevron { margin-left: auto; font-size: .65rem; transition: transform 150ms ease; }
.dashboard-nav-subgroup.is-open .dashboard-nav-subchevron { transform: rotate(180deg); }
.dashboard-nav-subnav { display: none; padding-left: 1rem; }
.dashboard-nav-subgroup.is-open .dashboard-nav-subnav { display: flex; flex-direction: column; }
.dashboard-nav-sublevel { padding-top: .45rem; padding-bottom: .45rem; font-size: .78rem; }
.dashboard-nav-link:hover { color: var(--relf-white); background: rgba(255, 255, 255, .08); }
.dashboard-nav-link:hover i { color: var(--relf-white); }
.dashboard-nav-link.active { color: var(--relf-white); background: var(--relf-accent); border-left-color: var(--relf-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.dashboard-nav-link.active i { color: var(--relf-white); }
.dashboard-nav-link.active:hover { background: var(--relf-accent); }
.dashboard-sidebar-account { flex: 0 0 auto; margin-top: .75rem; padding: .85rem 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.dashboard-sidebar-account-label { display: flex; align-items: center; gap: .65rem; margin-bottom: .45rem; color: var(--relf-accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-sidebar-account-link { width: 100%; display: flex; align-items: center; gap: .65rem; padding: .55rem 0; color: rgba(255, 255, 255, .7); background: transparent; border: 0; text-align: left; font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer; }
.dashboard-sidebar-account-link i { width: 1rem; text-align: center; }
.dashboard-sidebar-account-link:hover { color: var(--relf-white); }
.dashboard-sidebar-logout { color: rgba(255, 185, 185, .82); }
.dashboard-sidebar-logout:hover { color: #ffb3b3; }
.privacy-page { width: min(960px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 7rem; }
.privacy-header { padding-bottom: 2rem; border-bottom: 1px solid var(--relf-border); }
.privacy-back-link { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; color: var(--relf-secondary); font-size: .88rem; font-weight: 700; }
.privacy-back-link:hover { color: var(--relf-accent); }
.privacy-header h1 { margin: .75rem 0 0; color: var(--relf-primary); font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; }
.privacy-header p { margin: 1rem 0 0; color: var(--relf-muted); }
.privacy-content { padding-top: 1.5rem; }
.privacy-content section + section { margin-top: 2.5rem; }
.privacy-content h2 { margin: 0 0 .8rem; color: var(--relf-primary); font-size: 1.45rem; }
.privacy-content h3 { margin: 0 0 .8rem; color: var(--relf-secondary); font-size: 1.05rem; }
.privacy-content p, .privacy-content li { color: var(--relf-muted); line-height: 1.75; }
.privacy-content p { margin: 0 0 1rem; }
.privacy-content ul { margin: .5rem 0 0; padding-left: 1.3rem; }
.privacy-contact { display: inline-block; color: var(--relf-secondary); font-weight: 700; }
.account-page { flex: 1 0 auto; width: 100%; margin: 0; padding: clamp(1rem, 3vw, 1.75rem) max(1rem, calc((100% - 760px) / 2)) 1.5rem; }
.account-page-header { padding-bottom: .75rem; border-bottom: 1px solid var(--relf-border); }
.crud-eyebrow { color: var(--relf-accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.account-page-header h1 { max-width: 700px; margin: .7rem 0 0; color: var(--relf-primary); font-size: clamp(2.35rem, 6vw, 4rem); line-height: .98; }
.account-page-intro { max-width: 800px; margin: .8rem 0 0; color: var(--relf-muted); font-size: 1rem; line-height: 1.5; }
.account-password-form { width: min(800px, 100%); margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); background: var(--relf-white); border: 1px solid var(--relf-border); border-top: 3px solid var(--relf-accent); box-shadow: 0 14px 34px rgba(23, 20, 45, .08); }
.account-password-form > div:not(.validation-summary-container) + div:not(.validation-summary-container) { margin-top: .85rem; }
.account-password-form > .validation-summary-container + .account-password-field { margin-top: 1rem; }
.account-password-field .form-label { display: block; margin-bottom: .35rem; color: var(--relf-primary); font-size: .84rem; font-weight: 800; }
.account-password-field .form-control { min-height: 44px; color: var(--relf-black); background: var(--relf-surface); border-color: var(--relf-border); border-radius: 3px; }
.account-password-field .form-control::placeholder { color: #8d899b; opacity: 1; }
.account-password-field .form-control:focus { border-color: var(--relf-accent); box-shadow: 0 0 0 3px rgba(240, 100, 5, .16); }
.account-password-field .field-validation-error { color: #b02a37; }
.account-password-actions { padding-top: .15rem; }
.account-password-actions .relf-button { width: 100%; min-height: 46px; }
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1001; width: 44px; height: 44px; display: grid; place-items: center; color: var(--relf-primary); background: var(--relf-accent); border: 0; border-radius: 50%; box-shadow: 0 8px 20px rgba(23, 20, 45, .2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background-color 180ms ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--relf-white); }
@media (max-width: 900px) {
    .hero-sidebar { display: none; }
    .public-navigation { position: relative; }
    .public-nav-toggle { display: inline-flex; }
    .public-nav-links { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 3; min-width: 220px; padding: .75rem; display: none; align-items: stretch; flex-direction: column; gap: .2rem; background: rgba(33, 27, 67, .98); box-shadow: 0 10px 25px rgba(23, 20, 45, .25); }
    .public-nav-links.is-open { display: flex; }
    .public-nav-links > a:not(.relf-button) { padding: .75rem; }
    .public-nav-links .relf-button { margin-top: .3rem; }
    .hero-content, .intro-section, .contact-section { grid-template-columns: 1fr; }
    .public-navigation, .hero-content { width: 100%; margin-left: 0; }
    .intro-copy { padding-top: 0; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .service-card-large { grid-column: auto; min-height: 460px; }
    .detail-copy, .international-copy, .capabilities-copy { padding: 4rem 2rem; }
    .operations-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-page { padding: .75rem; }
    .dashboard-sidebar-toggle { position: static; width: calc(100% - 1.5rem); min-height: 44px; height: 44px; margin: .75rem .75rem 0; padding: .65rem 1rem; gap: .6rem; color: var(--relf-white); background: var(--relf-primary); border: 0; font-size: .88rem; }
    .dashboard-sidebar-toggle span { display: inline; }
    .dashboard-sidebar-toggle:hover { background: var(--relf-secondary); }
    .dashboard-sidebar-toggle:focus-visible { outline: 3px solid rgba(240, 100, 5, .55); outline-offset: 3px; }
    .dashboard-layout { flex-direction: column; min-height: 0; }
    .dashboard-sidebar { display: none; flex: 0 0 auto; height: min(70vh, 620px); max-height: none; padding: .75rem 0; }
    .dashboard-sidebar.is-open { display: flex; }
    .dashboard-sidebar-welcome { padding: 0 1rem 1rem; margin-bottom: .75rem; }
    .dashboard-nav-link { padding-top: .7rem; padding-bottom: .7rem; }
    .dashboard-nav-link.active { border-left-color: var(--relf-accent); }
    .dashboard-nav-sublink { padding-top: .45rem; padding-bottom: .45rem; }
    .dashboard-main-body { padding: 1.25rem 1.25rem 1.75rem; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .public-hero { min-height: 100svh; padding-right: 1.25rem; padding-left: 1.25rem; }
    .brand-mark span { max-width: 180px; }
    .hero-content { padding: 3rem 0 2rem; }
    .hero-content h1 { font-size: 3.35rem; }
    .hero-meta { font-size: .62rem; }
    .intro-section, .services-section, .operations-section { padding-top: 5rem; padding-bottom: 5rem; }
    .section-heading h2, .detail-copy h2, .capabilities-copy h2, .international-copy h2, .contact-heading h2 { font-size: 2.55rem; }
    .service-grid, .operations-grid { grid-template-columns: 1fr; }
    .service-card-large { grid-column: auto; }
    .service-card, .service-card-large { min-height: 360px; }
    .detail-section, .capabilities-section, .international-section { grid-template-columns: 1fr; }
    .detail-image, .international-image { min-height: 300px; }
    .contact-section { gap: 3rem; padding: 5rem 1.25rem; }
    .relf-footer-container { align-items: flex-start; flex-direction: column; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-page { padding: .5rem; }
    .dashboard-main-body { padding: .5rem .75rem 1.75rem; }
    .dashboard-main-body .module-page { width: 100%; }
    .dashboard-main:has(.module-page) .module-page-header { padding-right: 0; }
    .dashboard-sidebar { height: min(72vh, 580px); }
    .chart-canvas-scroll-content { min-width: 600px; height: 100%; }
    .kpi-grid { grid-template-columns: 1fr; }
    .privacy-page { padding-top: 2rem; }
    .account-page { padding: 1.5rem .75rem 1.5rem; }
    .account-password-form { padding: 1.25rem; }
    .public-navigation.is-scrolled { padding-right: 1.25rem; padding-left: 1.25rem; }
    .privacy-back-link { margin-bottom: 1.5rem; }
}

@media (min-width: 901px) {
    .dashboard-main-body {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .dashboard-main-body .module-page {
        width: calc(100% - 2rem);
        max-width: none;
    }
}