:root {
  color-scheme: dark;
  --bg: #071018;
  --surface: rgba(15, 30, 43, .86);
  --surface-strong: #102538;
  --line: rgba(139, 218, 255, .18);
  --text: #eef8ff;
  --muted: #a9c2d3;
  --accent: #56d9c9;
  --accent-2: #78bfff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 82% 8%, rgba(55, 145, 188, .19), transparent 28rem),
    radial-gradient(circle at 12% 42%, rgba(37, 204, 176, .10), transparent 30rem),
    var(--bg);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 16, 24, .78);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 780;
  letter-spacing: .02em;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(86, 217, 201, .85);
}

.language-switch-grundo {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.language-switch-grundo a {
  padding: 7px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switch-grundo a[aria-current="page"] {
  color: #04100e;
  background: var(--accent);
}

.layout {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sidebar h2 {
  margin: 0 0 7px;
  font-size: 1.05rem;
}

.sidebar-intro {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .9rem;
}

.sidebar a {
  display: block;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #dcecf7;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  background: rgba(255, 255, 255, .035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  transform: translateX(3px);
  border-color: rgba(86, 217, 201, .42);
  background: rgba(86, 217, 201, .09);
  outline: none;
}

.content { min-width: 0; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(3, 11, 18, .08), rgba(3, 11, 18, .90)),
    url("background.jpg") center / cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(5, 15, 23, .78), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: #d2e5f1;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.bilingual-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 22px 0;
}

.note-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.note-card strong { color: var(--text); }

.model-clarification {
  margin: 22px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(86, 217, 201, .32);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(86, 217, 201, .10), rgba(120, 191, 255, .05)),
    var(--surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.model-clarification h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.model-clarification p:not(.eyebrow) {
  max-width: 850px;
  margin: 10px 0 0;
  color: #d2e5f1;
}

.model-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin: 20px 0;
  color: var(--accent);
}

.model-chain span {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-align: center;
  background: rgba(255, 255, 255, .04);
}

@media (max-width: 720px) {
  .model-chain { grid-template-columns: 1fr; }
  .model-chain b { text-align: center; transform: rotate(90deg); }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .18);
}

.box:first-child { grid-column: 1 / -1; }

.box img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.box:first-child img { aspect-ratio: 16 / 7; }
.box:hover img { transform: scale(1.025); }

.box-copy { padding: 17px 18px 19px; }
.box h3 { margin: 0; font-size: 1.05rem; }
.box p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

.footer {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sidebar a { margin: 0; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 20px, 1380px); padding-top: 10px; }
  .topbar { padding: 11px 12px; border-radius: 14px; }
  .brand { font-size: .9rem; }
  .layout { gap: 12px; }
  .sidebar { padding: 14px; border-radius: 17px; }
  .sidebar nav,
  .bilingual-note,
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 410px; padding: 25px 20px; border-radius: 19px; }
  .box:first-child { grid-column: auto; }
  .box:first-child img,
  .box img { aspect-ratio: 4 / 3; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
