/* Theme preference is applied before styles load. Artwork retains its original colors. */
.header-tools{display:flex;align-items:center;gap:10px;margin-left:auto;order:2;flex-shrink:0}
header.wrap #navigation{order:1;gap:20px}header.wrap .menu-toggle{order:3}
.theme-toggle,.client-entry-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid var(--line);color:var(--ink);background:var(--paper);font-size:12px;line-height:1.5;white-space:nowrap}
.client-entry-link{background:var(--ink);color:var(--paper);border-color:var(--ink)}
header #navigation>a[href="/area-cliente"]{display:none}
html[data-theme=dark]{color-scheme:dark;background:#191a18}
html[data-theme=dark] body{--paper:#191a18!important;--ink:#f2ede4!important;--muted:#cdc5b6!important;--line:#4c493f!important;--gold:#dbc49e!important;--dark:#f2ede4!important;background:#191a18;color:#f2ede4}
html[data-theme=dark] body h1,html[data-theme=dark] body h2,html[data-theme=dark] body h3{color:var(--ink)!important}
html[data-theme=dark] body em{color:var(--gold)!important}
html[data-theme=dark] body p{color:var(--muted)!important}
html[data-theme=dark] header.wrap{background:#191a18f2!important;color:#f2ede4;border-color:#4c493f!important}
html[data-theme=dark] .brand-symbol img,html[data-theme=dark] .portal-home .brand-symbol img{filter:none!important}
html[data-theme=dark] header #navigation,html[data-theme=dark] header .service-menu-panel{background:#20211e!important;color:#f2ede4!important;border-color:#4c493f!important}
html[data-theme=dark] header #navigation a,html[data-theme=dark] header #navigation summary{color:#f2ede4!important}
html[data-theme=dark] .menu-toggle,html[data-theme=dark] .theme-toggle{background:#22231f!important;color:#f2ede4!important;border-color:#6c6252!important}
html[data-theme=dark] .client-entry-link{color:#211e19!important;background:#d8c09b!important;border-color:#d8c09b!important}
html[data-theme=dark] .portal-home .portal-environment{background:#191a18}
html[data-theme=dark] .portal-home .portal-atmosphere{background:linear-gradient(90deg,#171a17f5,#191c18df 35%,#181b1755 75%),linear-gradient(0deg,#191a18ef,transparent 45%,#191a1866)}
html[data-theme=dark] .portal-home .portal-photo{filter:brightness(.65) saturate(.75)}
html[data-theme=dark] .portal-home .portal-mark{filter:none}
html[data-theme=dark] .portal-home .portal-kicker,html[data-theme=dark] .portal-home .world-motion-toggle,html[data-theme=dark] .portal-home .portal-footer{color:#d5c6af}
html[data-theme=dark] .portal-home .portal-paths a,html[data-theme=dark] .portal-home .portal-paths a:last-child{background:#191a1840;color:#f7f0e4;border-color:#b5a58b99}
html[data-theme=dark] .portal-home .portal-paths .portal-primary,html[data-theme=dark] .portal-home .portal-paths a:hover{background:#d8c09b;color:#211e19;border-color:#d8c09b}
html[data-theme=dark] .portal-home .portal-paths a:focus-visible{outline-color:#d8c09b}
html[data-theme=dark] .world-opening{--world-bg:#1b201b;--world-ink:#f2ede4;--world-muted:#c0b8a9;--world-accent:#ccb38d;background:#1b201b}
html[data-theme=dark] .world-opening .world-shade{background:linear-gradient(90deg,#161c17f5,#182019d6 40%,#18201955),linear-gradient(0deg,#191a18,transparent 50%)}
html[data-theme=dark] .world-copy .eyebrow,html[data-theme=dark] .world-copy .text-link,html[data-theme=dark] .world-caption,html[data-theme=dark] .world-motion-toggle{color:#e1d1b8}
html[data-theme=dark] .social-calendar-section{background:#23251f}
html[data-theme=dark] .social-date,html[data-theme=dark] .social-post,html[data-theme=dark] .contact-layout form,html[data-theme=dark] .service-picker button,html[data-theme=dark] .solution-card,html[data-theme=dark] .web-scope,html[data-theme=dark] .landing-note,html[data-theme=dark] .consult-example,html[data-theme=dark] .traffic-report,html[data-theme=dark] .technology-options{background:#22231f;color:#f2ede4;border-color:#4c493f}
html[data-theme=dark] .social-date:hover{background:#34372d;border-color:#ccb38d}
html[data-theme=dark] .social-date[aria-current=true]{background:#d8c09b;color:#211e19;border-color:#d8c09b}
html[data-theme=dark] .social-post-copy details,html[data-theme=dark] .social-post figcaption,html[data-theme=dark] .social-demo-label{border-color:#665d4e}
html[data-theme=dark] .social-post figcaption{color:#c0b8a9}
html[data-theme=dark] .social-post-copy details summary{color:#f2ede4}
html[data-theme=dark] .social-studio a:focus-visible,html[data-theme=dark] .social-studio summary:focus-visible{outline-color:#d8c09b}
html[data-theme=dark] .search input,html[data-theme=dark] .contact-layout input,html[data-theme=dark] .contact-layout textarea,html[data-theme=dark] .contact-layout select{background:#22231f;color:#f2ede4;border-color:#6c6252}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#b7b0a1;opacity:1}
html[data-theme=dark] .filters button,html[data-theme=dark] .gallery-layout button{color:#f2ede4;border-color:#6c6252}
html[data-theme=dark] .filters button[aria-pressed=true],html[data-theme=dark] .gallery-layout button[aria-pressed=true]{background:#d8c09b;color:#211e19}
html[data-theme=dark] .button.dark{background:#d8c09b;color:#211e19;border-color:#d8c09b}
html[data-theme=dark] .button.dark:hover{background:#eee0c8;color:#211e19}
html[data-theme=dark] .service-menu-panel a,html[data-theme=dark] .menu-overview,html[data-theme=dark] .footer-map a,html[data-theme=dark] .web-index a{color:#f2ede4}
html[data-theme=dark] .people-photo-credit,html[data-theme=dark] .world-caption-rule{color:#bfb49f}
html[data-theme=dark] ::selection{background:#736049;color:#fff8ed}
@media(max-width:1250px){header.wrap #navigation{gap:15px}header.wrap .brand>span:last-child{font-size:10px}.theme-toggle,.client-entry-link{font-size:11px;padding-inline:10px}header.wrap{gap:15px}}
@media(max-width:1100px){header.wrap #navigation{display:none}header.wrap #navigation.open{display:flex}header.wrap .menu-toggle{display:block}header.wrap #navigation{position:absolute;top:100%;left:0;right:0;width:100%;padding:25px;background:var(--paper);color:var(--ink);flex-direction:column;align-items:stretch;border:1px solid var(--line);max-height:calc(100svh - 140px);overflow:auto}header #navigation>a[href="/area-cliente"]{display:flex}.header-tools{order:2}.service-menu-panel .menu-areas{grid-template-columns:1fr 1fr}header .services-menu{position:static}header .service-menu-panel{position:static;padding:20px 0;box-shadow:none}}
@media(max-width:760px){
 html{scroll-padding-top:150px}
 header.wrap,.portal-home header.wrap{height:126px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:68px 44px;gap:0 12px;align-content:start;align-items:center;padding-block:4px 8px}
 header.wrap .brand{grid-row:1;grid-column:1;min-width:0}header.wrap .brand>span:last-child{font-size:10px}
 header.wrap .menu-toggle{grid-column:2;grid-row:1;min-height:42px;min-width:65px;margin:0;justify-self:end}
 .header-tools{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;width:100%;margin:0;gap:10px}
 .theme-toggle,.client-entry-link{min-height:36px;padding:6px 13px;font-size:12px}.theme-toggle{min-width:105px}.client-entry-link{min-width:145px}
 header.wrap #navigation,.portal-home header #navigation{top:100%;right:0;left:0;width:100%;max-height:calc(100svh - 145px);padding:18px 6%}
 header .service-menu-panel{max-height:none;overflow:visible}header .menu-areas,.service-menu-panel .menu-areas{grid-template-columns:1fr}
 .portal-home .portal-sculpture{width:clamp(160px,23svh,230px)}.portal-home .portal-stage{gap:10px;padding-top:10px}
 .portal-home .portal-copy h1{margin:12px 0 20px}
 .connect-nav{top:126px}.connect-story{scroll-margin-top:215px}
 html[data-theme=dark] .portal-home .portal-atmosphere{background:linear-gradient(0deg,#191a18f5,#191c18df 52%,#191c1866)}
}
@media(max-width:760px) and (max-height:650px){.portal-home .portal-sculpture{width:135px}}

/* Keep the opening legible above its photo in both viewport layouts. */
html[data-theme=dark] body.portal-home .portal-copy h1{color:#f7f1e6!important}
html[data-theme=dark] body.portal-home .portal-copy h1 em{color:#e0cba9!important}
html[data-theme=dark] body.portal-home .portal-kicker{color:#eee0cb}
html[data-theme=dark] body.portal-home .portal-copy{text-shadow:0 2px 22px #10130e60}
html[data-theme=dark] body.portal-home .portal-paths{text-shadow:none}
html[data-theme=dark] body summary,html[data-theme=dark] body label{color:var(--ink)}
html[data-theme=dark] body .portal-footer{border-top-color:#8c806b66}
