:root {
  --bg: #03060c;
  --bg-raise: #07111c;
  --ink: #e7eef6;
  --muted: #a9b6c6;
  --silver: #d5dee8;
  --line: rgba(198, 214, 230, 0.22);
  --blue: #3ec5ff;
  --blue-dim: rgba(62, 197, 255, 0.35);
  --header: 4.5rem;
  --serif: "Cinzel", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
  color-scheme: dark;
}

h1, h2, .lede { text-wrap: pretty; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(30, 90, 160, 0.28), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: #fff;
  color: #041018;
  padding: 0.5rem 0.8rem;
}

.skip:focus { top: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[lang="es"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="es"] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
  padding: 0.45rem 1.25rem;
  background: rgba(3, 6, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
}

.wordmark-frame {
  height: 32px;
  display: grid;
  place-items: center;
}

.wordmark-frame img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 0.9rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--blue); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: #041018;
  background: linear-gradient(180deg, #f4f7fb, #b9c6d4);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--silver);
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }

.hero {
  position: relative;
  display: block;
  padding: 4.2rem 1.5rem 3.2rem;
  overflow: hidden;
  text-align: left;
}

.hero-glow {
  position: absolute;
  right: 4%;
  top: -4rem;
  width: min(640px, 70vw);
  height: min(640px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 140, 255, 0.4), rgba(40, 140, 255, 0.05) 42%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy { max-width: 38rem; }

.hero-emblem {
  width: min(420px, 100%);
  margin: 0 0 0 auto;
  display: block;
}

.hero-word {
  width: min(520px, 78vw);
  margin: 0.2rem auto 0.9rem;
  display: block;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.lede, .intro {
  color: var(--muted);
  font-size: 1.12rem;
}

.lede { margin: 0 0 1.6rem; max-width: 38rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #041018;
  background: linear-gradient(180deg, #f7fbff, #c5d0dc);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px var(--blue-dim);
}

.btn:hover { color: #041018; }

.btn-quiet {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.band { padding: 5.5rem 1.25rem; }

.band-tight { padding-top: 1rem; }

.wrap { width: min(1080px, 100%); margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split p { color: var(--muted); }

.lockup {
  margin: 0;
  padding: 1rem;
}

.lockup img { width: 100%; }

.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}

.plate {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 30%, rgba(6, 12, 22, 0.2)),
    #0a1422;
  border: 1px solid rgba(198, 214, 230, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.plate::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 14px var(--blue);
}

.mark {
  width: 42px;
  height: 42px;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.plate h3 { margin: 0 0 0.45rem; font-size: 1.25rem; }

.plate p { margin: 0; color: var(--muted); }

.contact { text-align: center; }

.contact a, .mail { color: var(--blue); text-transform: none; letter-spacing: 0; }

.hero .actions { justify-content: flex-start; }

.structure { padding-top: 1.5rem; }

.structure-lead {
  max-width: 40rem;
  margin: -0.2rem 0 0;
  color: var(--muted);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.5rem 1.35rem 1.7rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.role:last-child { border-right: 0; }

.role:hover h3 { color: var(--blue); }

.role-no {
  order: 1;
  font-family: var(--serif);
  color: var(--blue);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.role h3 { order: 2; margin: 0.35rem 0 0; font-size: 1.35rem; }

.duty {
  order: 3;
  color: var(--silver);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.role p { order: 4; margin: 0.35rem 0 0; color: var(--muted); }

.place {
  color: var(--silver);
  letter-spacing: 0.06em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.pending {
  margin: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px dashed rgba(198, 214, 230, 0.35);
  letter-spacing: 0.04em;
}

.rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(420px, 80%);
  margin: 0 auto 1.6rem;
}

.rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 226, 238, 0.7), transparent);
}

.rule i {
  width: 8px;
  height: 8px;
  background: var(--silver);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--blue);
}

.site-footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-word {
  width: min(360px, 78vw);
  margin: 0 auto 0.7rem;
  display: block;
}

.site-footer p { margin: 0; font-size: 0.92rem; }

.site-footer nav.family {
  display: block;
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.family p { margin: 0 0 0.45rem; font-size: 0.84rem; }

.family-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.family-links a { color: var(--ink); text-decoration: none; }

.family-links [aria-current="page"] { color: var(--silver); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.page {
  padding: 3.2rem 1.25rem 4rem;
}

.page-intro {
  width: min(760px, 100%);
  margin: 0 auto 2rem;
}

.page-intro h1 { margin-bottom: 0.8rem; }

.note {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--blue);
  color: var(--muted);
  background: rgba(62, 197, 255, 0.05);
}

.scope {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--silver);
}

.scope li:last-child { border-bottom: 1px solid var(--line); }

.plate-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.plate-link:hover { border-color: rgba(62, 197, 255, 0.7); }

.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.partner {
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.partner h2, .partner h3 { margin-top: 0; }

.partner p { color: var(--muted); }

.partner a { color: var(--blue); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.1rem;
  margin: 0.2rem 0 0.8rem;
}

.site-footer nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .family-links a,
.site-footer .family-links [aria-current="page"] {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1100px) {
  .header-tools { margin-left: auto; }

  .js .menu-btn { display: grid; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.4rem 0 0.8rem;
    background: rgba(3, 6, 12, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.85rem 1.25rem;
  }

  .split, .plates, .partners, .hero-inner, .roles { grid-template-columns: 1fr; }

  .wordmark-frame { display: none; }

  .hero { padding-top: 2.2rem; }

  .hero-emblem { width: min(260px, 72vw); margin: 0 auto 0.4rem; }

  .hero-glow { right: 50%; transform: translateX(50%); }

  .role { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
