:root {
  --site-accent: var(--accent, var(--blue, #155eef));
  --site-font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
body.public-site { --site-accent: var(--blue, #155eef); }
html, body, button, input, select, textarea { font-family: var(--site-font); }
.site-skip-link { position:fixed; left:12px; top:-80px; z-index:100; padding:10px 14px; border-radius:10px; background:var(--ink,var(--text,#0f172a)); color:#fff; font-weight:750; }
.site-skip-link:focus { top:12px; }
.site-header {
  position:sticky; top:12px; z-index:40;
  width:min(1360px,100%); margin:0 auto;
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center;
  gap:clamp(16px,2.2vw,32px); padding:10px 12px 10px 14px;
  border:1px solid color-mix(in srgb,var(--site-accent) 13%,var(--border,var(--line,#dbe3ee)));
  border-radius:18px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface,#fff) 98%,transparent),color-mix(in srgb,var(--surface-2,#f8fafc) 96%,transparent));
  box-shadow:0 1px 2px rgba(28,52,84,.05),0 16px 38px -26px rgba(24,55,95,.38);
  backdrop-filter:blur(18px) saturate(145%);
}
.site-brand { display:flex; align-items:center; gap:10px; min-width:0; color:var(--text,var(--ink,#0f172a)); }
.site-brand-logo { width:40px; height:40px; flex:none; display:grid; place-items:center; overflow:hidden; border-radius:11px; background:linear-gradient(145deg,var(--site-accent),#0759b8); }
.site-brand-logo img,.site-footer-logo img { width:100%; height:100%; display:block; object-fit:contain; border-radius:inherit; }
.site-logo-fallback { color:#fff; font-size:12px; font-weight:850; }
.site-brand-copy { display:flex; flex-direction:column; min-width:0; }
.site-brand-copy b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; letter-spacing:-.015em; }
.site-brand-copy small {
  display:inline-block;
  margin-top:2px;
  color:var(--muted,#64748b);
  font-size:11.5px;
  letter-spacing:.015em;
  transform:scaleX(1.08);
  transform-origin:left center;
}
.public-main-site-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-block: 6px;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.public-main-site-link span:last-child {
  color: var(--muted, var(--text-2, #64748b));
  font-size: 10px;
  font-weight: 600;
}
.site-nav { display:flex; align-items:center; justify-content:center; gap:3px; min-width:0; }
.site-nav a { position:relative; padding:10px 12px; border-radius:10px; color:var(--text-2,var(--ink-2,#334155)); font-size:13px; font-weight:650; white-space:nowrap; text-decoration:none; }
.site-nav a:hover { background:color-mix(in srgb,var(--site-accent) 9%,var(--surface,#fff)); color:var(--site-accent); }
.site-nav a[aria-current="page"] { color:var(--site-accent); background:color-mix(in srgb,var(--site-accent) 10%,var(--surface,#fff)); }
.site-tools { display:flex; align-items:center; gap:8px; min-width:0; padding-left:14px; border-left:1px solid var(--border,var(--line,#dbe3ee)); }
.site-language-form { margin:0; }
.site-language { display:block; }
.site-language > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.site-language select { min-height:40px; max-width:122px; padding:7px 9px; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:11px; background:var(--surface,#fff); color:var(--text-2,var(--ink-2,#334155)); font-size:11px; font-weight:650; }
.site-theme-toggle { width:40px; height:40px; flex:none; display:grid; place-items:center; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:11px; background:var(--surface,#fff); color:var(--site-accent); }
.site-theme-toggle svg { width:18px; height:18px; }
.site-contact-links { display:flex; align-items:center; gap:4px; }
.site-contact-link { width:36px; height:36px; flex:none; display:grid; place-items:center; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:10px; background:var(--surface,#fff); text-decoration:none; transition:transform .14s ease,border-color .14s ease,background .14s ease; }
.site-contact-link:hover { transform:translateY(-1px); border-color:currentColor; background:var(--surface-2,#f8fafc); }
.site-contact-link svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.site-contact-link.phone { color:var(--amber,#a86409); }
.site-contact-link.whatsapp { color:var(--ok,var(--green,#087a5b)); }
.site-contact-link.mail { color:var(--site-accent); }
.site-login-button,.site-control-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 15px; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:11px; background:transparent; color:var(--text-2,var(--ink-2,#334155)); font-weight:700; text-decoration:none; white-space:nowrap; }
.site-login-button:hover { color:var(--site-accent); background:var(--surface-2,#f8fafc); }
.site-footer { width:min(1360px,100%); margin:0 auto; padding:24px 26px 16px; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:22px; background:var(--surface,#fff); box-shadow:0 1px 2px rgba(31,49,61,.05),0 10px 26px -16px rgba(31,49,61,.24); }
.site-footer-main { display:flex; flex-direction:column; gap:14px; }
.site-footer-brand { display:flex; align-items:flex-start; gap:11px; padding-bottom:14px; border-bottom:1px solid var(--border,var(--line,#dbe3ee)); color:var(--text,var(--ink,#0f172a)); }
.site-footer-logo { width:34px; height:34px; flex:none; display:grid; place-items:center; overflow:hidden; border-radius:10px; background:linear-gradient(145deg,var(--site-accent),#0759b8); }
.site-footer-brand b { display:block; font-size:13px; }
.site-footer-brand small { display:block; margin-top:3px; color:var(--muted,#64748b); font-size:10.8px; line-height:1.45; }
.site-footer-links { padding-bottom:13px; border-bottom:1px solid var(--border,var(--line,#dbe3ee)); }
.site-footer h3 { margin:0 0 9px; color:var(--text,var(--ink,#0f172a)); font-size:10.5px; letter-spacing:.09em; text-transform:uppercase; }
.site-footer-links > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px 14px; }
.site-footer a { color:var(--text-2,var(--ink-2,#334155)); text-decoration:none; }
.site-footer a:hover { color:var(--site-accent); }
.site-footer-links a,.site-footer-contact a { display:inline-flex; align-items:center; min-height:28px; font-size:11.5px; }
.site-footer-contact { display:flex; flex-wrap:wrap; align-items:center; gap:5px 18px; padding-bottom:13px; border-bottom:1px solid var(--border,var(--line,#dbe3ee)); color:var(--text-2,var(--ink-2,#334155)); font-size:11.5px; }
.site-footer-contact h3 { flex:0 0 100%; margin-bottom:0; }
.site-footer-languages { margin-top:12px; }
.site-footer-languages > div { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:3px 14px; }
.site-footer-languages a { display:inline-flex; align-items:center; min-height:28px; font-size:10.5px; }
.site-footer-bottom { margin-top:14px; padding-top:12px; border-top:1px solid var(--border,var(--line,#dbe3ee)); color:var(--muted,#64748b); font-size:10.5px; }
.site-home-content { width:100%; display:grid; gap:18px; grid-column:1/-1; margin-top:8px; }
.site-home-hero { padding:clamp(24px,4vw,42px); border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:24px; background:linear-gradient(145deg,color-mix(in srgb,var(--site-accent) 9%,var(--surface,#fff)),var(--surface,#fff) 62%); }
.site-home-hero .eyebrow { margin:0 0 8px; color:var(--site-accent); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.site-home-hero h2 { max-width:900px; margin:0; font-size:clamp(28px,4.4vw,46px); line-height:1.06; letter-spacing:-.045em; }
.site-home-hero p { max-width:850px; margin:13px 0 0; color:var(--muted,#64748b); font-size:15px; }
.site-home-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.site-home-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 15px; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:11px; color:var(--text,var(--ink,#0f172a)); text-decoration:none; font-weight:700; }
.site-home-actions a.primary { border-color:var(--site-accent); background:var(--site-accent); color:#fff; }
.site-home-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.site-home-grid article { padding:18px; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:16px; background:var(--surface,#fff); }
.site-home-grid h3 { margin:0 0 6px; font-size:15px; }
.site-home-grid p { margin:0; color:var(--muted,#64748b); font-size:12px; }

body.public-site[data-site-background] { transition:background .2s ease,color .2s ease; }
html[data-theme-name="dark"] body.public-site,
html[data-theme-name="mono"] body.public-site { --ink:#f8fafc; --ink-2:#cbd5e1; --muted:#94a3b8; --line:#334155; --surface:#0f172a; --surface-2:#111c2f; --blue:#68a7ff; --blue-soft:#172554; color-scheme:dark; background:radial-gradient(ellipse 900px 520px at 5% -8%,rgba(70,120,210,.25),transparent 70%),linear-gradient(150deg,#07111f,#0f172a 58%,#111827); }
html[data-theme-name="forest"] body.public-site { --ink:#f3fff8; --ink-2:#d1fae5; --muted:#a7cbbb; --line:#315746; --surface:#10271d; --surface-2:#153528; --blue:#67e8a5; --blue-soft:#1b4a34; color-scheme:dark; background:linear-gradient(180deg,rgba(4,27,18,.76),rgba(9,44,29,.9)),url("/assets/themes/forest-scene.svg") center/cover fixed; }
html[data-theme-name="ocean"] body.public-site { --ink:#effbff; --ink-2:#c8ecf8; --muted:#8fbccd; --line:#26566b; --surface:#082d3d; --surface-2:#0b3a4d; --blue:#67d9ff; --blue-soft:#104b61; color-scheme:dark; background:radial-gradient(circle at 80% 0%,#0b6a89,transparent 42%),linear-gradient(160deg,#031b29,#07516c); }
html[data-theme-name="classic"] body.public-site { --ink:#172554; --ink-2:#334155; --muted:#64748b; --line:#cbd5e1; --surface:#f5f8fd; --surface-2:#e9eef8; --blue:#1d4ed8; --blue-soft:#e7edff; background:linear-gradient(150deg,#f8fafc,#e8eef8); }

@media (max-width:1180px) {
  .site-header { grid-template-columns:minmax(0,1fr) auto; gap:9px 14px; }
  .site-tools { grid-column:2; grid-row:1; margin-left:auto; }
  .site-nav { grid-column:1/-1; grid-row:2; justify-content:flex-start; width:100%; padding-top:8px; border-top:1px solid var(--border,var(--line,#dbe3ee)); overflow-x:auto; scrollbar-width:none; }
  .site-nav::-webkit-scrollbar { display:none; }
}
@media (max-width:680px) {
  .site-header { grid-template-columns:1fr; gap:8px; padding:9px; }
  .site-brand { justify-content:center; }
  .site-tools { grid-column:1; grid-row:2; width:100%; margin-left:0; padding:7px 0 0; justify-content:center; border-left:0; border-top:1px solid var(--border,var(--line,#dbe3ee)); }
  .site-tools .site-language select,.site-theme-toggle,.site-login-button,.site-contact-link { min-height:44px; }
  .site-contact-link { width:44px; height:44px; }
  .site-nav { grid-column:1; grid-row:3; gap:4px; padding:4px; border:1px solid var(--border,var(--line,#dbe3ee)); border-radius:12px; background:var(--surface-2,#f8fafc); }
  .site-nav a { flex:none; min-height:44px; }
  .site-footer { padding:20px 14px 14px; }
  .site-footer-links > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .site-footer-languages > div { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .site-home-grid { grid-template-columns:1fr; }
  .site-home-hero { padding:24px 18px; }
  .site-home-actions a { min-height:44px; }
}
@media (max-width:430px) {
  .site-language select { max-width:92px; }
  .site-footer-links > div { grid-template-columns:1fr 1fr; }
}
