/* Theme variables only style the corporate shell, never product imagery or OTP. */
:root {
  --theme-bg: #081725;
  --theme-surface: #102735;
  --theme-text: #edf7ff;
  --theme-muted: #c4d4df;
  --theme-accent: #99efdc;
  --theme-ink: #082820;
  --theme-line: #527481;
  --theme-rgb: 104 222 211;
  --theme-image: url('/assets/themes/mar.webp');
}
:root[data-visual-theme="patria"] {
  --theme-bg: #090e2d; --theme-surface: #151e45;
  --theme-text: #ffffff; --theme-muted: #d1d9f2;
  --theme-accent: #ffffff; --theme-ink: #001489;
  --theme-line: #8998c4; --theme-rgb: 172 192 255;
  --theme-image: url('/assets/themes/patria.svg');
}
:root[data-visual-theme="selva"] {
  --theme-bg: #071c16; --theme-surface: #112e23;
  --theme-text: #f1fff5; --theme-muted: #c7dfcf;
  --theme-accent: #b6ed9e; --theme-ink: #102a18;
  --theme-line: #5e856b; --theme-rgb: 148 217 153;
  --theme-image: url('/assets/themes/selva.webp');
}
:root[data-visual-theme="tierra"] {
  --theme-bg: #21150e; --theme-surface: #39271c;
  --theme-text: #fff6e9; --theme-muted: #e4d1bc;
  --theme-accent: #ffd39a; --theme-ink: #36210e;
  --theme-line: #9e7957; --theme-rgb: 234 174 103;
  --theme-image: url('/assets/themes/tierra.webp');
}
.corporate-site {
  background: radial-gradient(ellipse at 90% 700px, rgb(var(--theme-rgb) / .09), transparent 70%), var(--theme-bg);
  color: var(--theme-text);
  --corporate-glass-fill: linear-gradient(135deg, rgb(var(--theme-rgb) / .09), transparent 65%), var(--theme-surface);
  --corporate-glass-line: var(--theme-line);
}
.corporate-site .brand__mark--logo {
  width: 58px; height: 58px; padding: 6px; border-radius: 19px;
  background: radial-gradient(circle at 30% 15%, #ffffff66, transparent 40%), linear-gradient(140deg, #143d55, #152447);
  border: 1px solid #b7f4ff9c;
  box-shadow: 0 0 20px #4fe8ff4d, 0 0 38px #8f63ff33, inset 0 1px 0 #ffffff80;
}
.corporate-site .brand__logo { width: 44px; height: 44px; filter: drop-shadow(0 0 5px #b7f4ffb3); }
.theme-toolbar { border-bottom: 1px solid var(--theme-line); background: var(--theme-bg); }
.theme-toolbar[hidden] { display: none; }
.theme-toolbar .container { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-block: 6px; }
.theme-toolbar label { font-size: .875rem; color: var(--theme-muted); }
.theme-toolbar select { min-height: 44px; width: auto; min-width: 132px; padding: 8px 32px 8px 14px; border: 1px solid var(--theme-line); border-radius: 10px; background: var(--theme-surface); color: var(--theme-text); font: inherit; cursor: pointer; color-scheme: dark; }
.corporate-site p, .corporate-history li, .corporate-visual figcaption { color: var(--theme-muted); }
.corporate-site :is(h1,h2,h3), .corporate-visual strong { color: var(--theme-text); }
.corporate-site :is(h1 span,.eyebrow,.corporate-process span,.corporate-public-email,.corporate-credentials a), .corporate-site .main-nav a[aria-current="location"] { color: var(--theme-accent); }
.corporate-site .button--primary { color: var(--theme-ink); background: linear-gradient(120deg, #ffffff, var(--theme-accent)); border-color: var(--theme-accent); }
.corporate-site .button--secondary, .corporate-site .glass-button { color: var(--theme-text); border-color: var(--theme-line); }
.corporate-site .section, .corporate-product-groups li, .corporate-history { border-color: var(--theme-line); }
.corporate-process li, .corporate-site .corporate-company-evidence { border-color: var(--theme-accent); }
.corporate-site :focus-visible { outline-color: var(--theme-accent); }
.corporate-site .site-footer { background: var(--theme-bg); }
.corporate-site .section--asis, .corporate-site .section--score { background: var(--theme-surface); }
.corporate-hero { position: relative; isolation: isolate; background: var(--theme-bg); }
.corporate-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--theme-bg) 20%, transparent 100%), var(--theme-image) center right / cover no-repeat; opacity: .2; }
:root[data-visual-theme="patria"] .corporate-hero::before { background: linear-gradient(90deg, var(--theme-bg), transparent 80%), var(--theme-image) center / contain no-repeat; opacity: .2; }
:root[data-visual-theme="patria"] .theme-toolbar { border-bottom: 3px solid #da291c; }
:root[data-visual-theme="patria"] .button--primary { background: #b82031; border-color: #ff929c; color: #fff; }
@media (max-width: 1150px) { .corporate-site .main-nav.is-open { background: var(--theme-surface); } }
@media (max-width: 600px) {
  .corporate-site .brand__mark--logo { width: 44px; height: 44px; border-radius: 14px; padding: 4px; }
  .corporate-site .brand__logo { width: 34px; height: 34px; }
  .theme-toolbar .container { justify-content: space-between; }
}
@media (prefers-reduced-transparency: reduce) {
  .corporate-site { --corporate-glass-fill: var(--theme-surface); background: var(--theme-bg); }
  .corporate-hero::before { display: none; }
  .corporate-visual figcaption { background: var(--theme-bg); }
}
@media (forced-colors: active) {
  .corporate-hero::before { display: none; }
  .corporate-site .brand__mark--logo { border: 1px solid CanvasText; }
}
