:root {
  --bg: #f6f5f2;
  --bg-2: #eceae4;
  --ink: #1c2430;
  --muted: #5c6775;
  --line: #e3dfd6;
  --primary: #1c3144;
  --on-primary: #f7f5f0;
  --accent: #1f4e6e;
  --accent-ink: #f7f5f0;
  --panel: #1c3144;
  --panel-ink: #f7f5f0;
  --panel-soft: #c9d3dc;
  --card: #fffcf8;
  --focus: #1f4e6e;
  --shadow: 0 10px 28px rgba(28, 49, 68, 0.08);
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121820;
  --bg-2: #1a232e;
  --ink: #f4f1ea;
  --muted: #c5ced6;
  --line: #2c3948;
  --primary: #e7eef3;
  --on-primary: #14202b;
  --accent: #9ec3db;
  --accent-ink: #14202b;
  --panel: #0e1720;
  --panel-ink: #f4f1ea;
  --panel-soft: #b7c3ce;
  --card: #18222c;
  --focus: #9ec3db;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { display: block; }
.brand-symbol, .menu-toggle svg, .header-call svg, .whatsapp-contact svg { max-width: none; }
a { color: inherit; }
button, a, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--primary); color: var(--on-primary);
  padding: 10px 14px; z-index: 30; border-radius: 8px;
}
.skip:focus { top: 12px; }
.mast {
  position: sticky; top: 0; z-index: 8;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(28, 49, 68, 0.03);
}
.header, .footer-top, .footer-bottom, .section, .page-hero, .contact, .band, .page-layout, .shortcuts {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 14px; position: relative; }
.header-tools { display: none; align-items: center; gap: 8px; flex: none; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none;
}
.header-call svg, .menu-toggle svg, .whatsapp-contact svg { display: block; flex: none; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.brand-symbol { width: 36px; height: 36px; border-radius: 0; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 0.78rem; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 0;
}
.menu-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.header-call svg, .menu-toggle svg { width: 20px; height: 20px; }
#navigation { display: flex; gap: 2px; align-items: center; }
#navigation a {
  position: relative;
  text-decoration: none; color: var(--ink); min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 14px; border-radius: 0; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
}
#navigation a:not(.nav-contact)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
}
#navigation a:not(.nav-contact):hover,
#navigation a:not(.nav-contact)[aria-current="page"] { color: var(--primary); background: transparent; }
#navigation a:not(.nav-contact):hover::after,
#navigation a:not(.nav-contact)[aria-current="page"]::after { transform: scaleX(1); }
.nav-contact {
  margin-left: 12px; background: var(--primary) !important; color: var(--on-primary) !important;
  font-weight: 600; border-radius: 6px; padding: 0 16px !important;
}
.nav-contact:hover { filter: none; background: color-mix(in srgb, var(--primary) 86%, #000) !important; }
.hero {
  width: min(1440px, calc(100% - 48px));
  margin: 20px auto 4px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.eyebrow, .section-label, .panel-kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0; color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
}
.eyebrow::before, .section-label::before, .panel-kicker::before {
  content: ""; width: 18px; height: 1px; background: currentColor; flex: none;
}
.hero-copy > p { max-width: 36rem; color: var(--muted); font-size: 1rem; margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.button, .note-form button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--primary); color: var(--on-primary);
  text-decoration: none; border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 700;
}
.button:hover, .note-form button:hover { filter: brightness(1.08); }
.button.light { background: #ffffff; color: #0f172a; }
.hero-contact {
  color: var(--ink); font-weight: 700; min-height: 48px; display: inline-flex; align-items: center;
  padding: 0 8px; text-decoration: underline; text-underline-offset: 4px;
}
.hero-panel {
  background: var(--panel);
  color: var(--panel-ink);
  min-height: 0;
  padding: 22px;
  border-radius: 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow);
}
.hero-panel strong { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.05; }
.hero-panel em { font-style: italic; }
.hero-panel .panel-kicker { color: #e4d3ae; font-size: 0.84rem; }
.panel-facts a { color: var(--panel-ink); font-family: var(--serif); font-size: 1.45rem; text-decoration: none; }
.panel-facts p { margin: 6px 0; max-width: 28rem; font-size: 0.92rem; }
.shortcuts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 18px 0 2px; min-width: 0;
}
.shortcuts span {
  flex: 1 0 100%; width: 100%;
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
}
.panel-facts p, .panel-facts span { color: var(--panel-soft); }
.shortcuts a {
  text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 0.92rem;
  line-height: 1.35; max-width: 100%; overflow-wrap: anywhere;
}
.shortcuts a:hover { border-color: var(--accent); color: var(--accent); }
.section { padding: 40px 0; }
.section h2, .page-hero h1, .band h2, .contact h2, .prose h1, .next-step h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem); margin: 6px 0 10px;
}
.section .person h2, .section .article-card h2 { font-size: 1.45rem; line-height: 1.25; }
.section h2 em, .band h2 em, .contact h2 em { font-style: italic; }
.section-intro, .lead { max-width: 42rem; color: var(--muted); }
.topic-list, .articles, .people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.topic-row, .article-card, .person {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(28, 49, 68, 0.03);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topic-row:hover, .article-card:hover, .person:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 12px 28px rgba(28, 49, 68, 0.06);
}
.topic-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.topic-row span { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.85rem; }
.topic-row h3, .article-card h3, .person h3, .person h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.topic-row h3 { grid-column: auto; }
.topic-row p, .article-card p, .person p, .faq p, .step p { color: var(--muted); margin: 0; }
.topic-row small { margin-top: 4px; color: var(--accent); font-weight: 700; }
.article-card h3 a, .person h3 a { text-decoration: none; }
.band {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: center;
  background: var(--panel); color: var(--panel-ink); padding: 24px; border-radius: 16px; margin-top: 8px; margin-bottom: 8px;
}
.band p { color: var(--panel-soft); }
.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 10px; background: rgba(255,255,255,0.04); border-radius: 16px; padding: 14px; }
.step span { font-family: var(--serif); font-size: 1.25rem; color: var(--panel-soft); }
.step h3 { margin: 0 0 4px; }
.role { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.01em; font-weight: 600; }
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 14px; margin-top: 10px; }
.faq summary { display: flex; gap: 12px; align-items: center; font-weight: 700; list-style: none; min-height: 56px; padding: 8px 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--accent); }
.faq details p { padding: 0 16px 16px 46px; }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding-bottom: 72px; align-items: start; }
.phone { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2rem); text-decoration: none; display: inline-block; margin: 6px 0; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.channels a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 700; }
.address-card { background: var(--card); padding: 22px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.note-form { display: grid; gap: 12px; margin-top: 8px; }
.note-form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 700; }
.note-form input, .note-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.note-form textarea { min-height: 120px; }
.note-status { background: #e0f2fe; color: #0c4a6e; padding: 12px 14px; border-radius: 12px; }
:root[data-theme="dark"] .note-status { background: #082f49; color: #e0f2fe; }
.hp { position: absolute; left: -9999px; }
.page-hero { padding: 36px 0 8px; }
.page-hero p { max-width: 40rem; color: var(--muted); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 28px 0 72px; align-items: start; }
.prose h2 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.15; margin: 1.4em 0 0.4em; }
.prose a { color: var(--accent); }
.crumb { color: var(--muted); font-size: 0.92rem; }
.crumb a { color: var(--accent); text-decoration: none; }
.next-step {
  position: sticky; top: 108px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; display: grid; gap: 10px;
}
.next-step h2 { font-size: 1.7rem; }
.next-step p { color: var(--muted); margin: 0; }
.text-link { color: var(--accent); font-weight: 700; }
footer { border-top: 1px solid var(--line); padding: 36px 0 80px; background: var(--card); }
.footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-tagline { color: var(--muted); max-width: 28rem; margin: 0; text-align: center; font-size: 0.95rem; }
.back-top { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 0.92rem; }
.footer-links { width: min(1440px, calc(100% - 48px)); margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0; font-size: 0.92rem; }
.footer-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.footer-legal { display: grid; gap: 4px; min-width: 0; }
.footer-legal span { font-size: 0.88rem; }
.footer-legal p { color: var(--muted); margin: 0; max-width: 40rem; font-size: 0.84rem; line-height: 1.45; }
.footer-meta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.footer-meta button, .measurement-settings {
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.84rem; min-height: 36px;
}
.agency-signature { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-align: right; line-height: 1.2; margin-right: 4px; }
.agency-signature span { display: block; letter-spacing: 0.16em; }
dialog { border: 0; background: var(--card); color: var(--ink); max-width: min(640px, calc(100% - 32px)); padding: 28px; border-radius: 20px; }
dialog::backdrop { background: rgba(2, 6, 23, 0.55); }
.dialog-close { float: right; border: 0; background: transparent; color: var(--ink); font-size: 1.5rem; min-width: 44px; min-height: 44px; }
.whatsapp-contact {
  position: fixed; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--panel-ink); text-decoration: none; border-radius: 999px; padding: 10px 14px; z-index: 6;
  box-shadow: var(--shadow); font-size: 0.88rem;
}
.whatsapp-contact svg { width: 18px; height: 18px; }
.consent-box[hidden] { display: none !important; }
.consent-box {
  position: fixed; left: 16px; bottom: 16px; z-index: 9;
  width: min(340px, calc(100% - 32px));
  display: grid; gap: 6px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px 10px;
  box-shadow: 0 16px 40px rgba(28, 49, 68, 0.12);
  backdrop-filter: blur(16px);
  font-size: 0.84rem; line-height: 1.4;
}
.consent-box strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.consent-box p { color: var(--muted); margin: 0; }
.consent-box div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.consent-box small { color: var(--muted); font-size: 0.75rem; }
.consent-box button {
  font: inherit; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--line);
  background: transparent; color: var(--ink); border-radius: 999px; min-height: 32px; padding: 4px 12px;
}
.consent-box button[data-choice="yes"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.consent-box button[data-choice="geo"] {
  border: 0; background: transparent; color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; padding: 0 2px; min-height: 28px; font-weight: 600;
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 0.9fr; gap: 18px; }
  .hero h1 { font-size: 2.2rem; }
  .topic-list, .articles, .people { gap: 10px; }
  #navigation { gap: 0; }
  #navigation a { padding: 0 10px; font-size: 0.9rem; }
  .nav-contact { margin-left: 8px; padding: 0 14px !important; }
}
@media (max-width: 860px) {
  .header, .footer-top, .footer-bottom, .section, .page-hero, .contact, .band, .page-layout, .shortcuts, .hero, .footer-links {
    width: min(1120px, calc(100% - 28px));
  }
  .header-tools, .menu-toggle { display: inline-flex; }
  .brand { min-width: 0; gap: 8px; }
  .brand-symbol { width: 40px; height: 40px; flex: none; }
  .brand span { min-width: 0; }
  .brand strong { font-size: 1.2rem; line-height: 1.05; white-space: normal; }
  .brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #navigation {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px);
    background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 12px 14px;
    flex-direction: column; align-items: stretch; box-shadow: var(--shadow);
  }
  #navigation.is-open { display: flex; }
  #navigation a { width: 100%; justify-content: flex-start; padding: 0 4px; }
  #navigation a:not(.nav-contact)::after { display: none; }
  .nav-contact { margin: 8px 0 0; width: 100%; justify-content: center; min-height: 44px; }
  .hero-copy > p, .section-intro, .lead, .panel-facts p, .next-step p, .footer-tagline { overflow-wrap: anywhere; }
  .shortcuts a { max-width: 100%; }
  .topic-row, .article-card, .person { min-width: 0; }
  .topic-row h3, .article-card h3, .person h3, .person h2 { overflow-wrap: anywhere; }
  .note-form input, .note-form textarea { font-size: 16px; }
  .whatsapp-contact {
    right: 10px; bottom: 10px; width: 42px; height: 42px; padding: 0; justify-content: center;
  }
  .whatsapp-contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .consent-box {
    left: 10px; bottom: 10px; width: min(250px, calc(100% - 68px));
    padding: 10px 12px 8px; gap: 4px;
  }
  .consent-box strong { font-size: 0.98rem; }
  .consent-box p { font-size: 0.78rem; }
}
@media (max-width: 720px) {
  .hero, .band, .contact, .topic-list, .people, .articles, .page-layout { grid-template-columns: 1fr; }
  .hero { margin-top: 18px; gap: 18px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-actions { width: 100%; }
  .hero-actions .button, .hero-actions .hero-contact { width: 100%; justify-content: center; }
  .hero-panel { min-height: 0; padding: 18px; border-radius: 14px; }
  .hero-panel strong { font-size: 1.45rem; }
  .panel-facts a { font-size: 1.25rem; }
  .next-step { position: static; }
  .next-step .button { width: 100%; }
  .faq details p { padding-left: 16px; }
  .contact { padding-bottom: 28px; }
  .note-form input, .note-form textarea { font-size: 16px; }
  .footer-top, .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-tagline, .agency-signature { text-align: left; }
  .footer-meta { justify-content: flex-start; }
  footer { padding-bottom: 36px; }
}
@media (max-width: 380px) {
  .brand strong { font-size: 1.05rem; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
