:root {
  color-scheme: light;
  --primary: #5e91e3;
  --logo-blue: #5e91c3;
  --secondary: #7087b7;
  --accent: #2f9c68;
  --warning: #c88736;
  --ink: #22364a;
  --ink-muted: rgba(34, 54, 74, 0.68);
  --surface: #fcfcfe;
  --surface-dim: #f4f5f8;
  --surface-soft: #f7f8fb;
  --surface-selected: #dce3f1;
  --surface-high: #e5e8ef;
  --outline: rgba(34, 54, 74, 0.16);
  --shadow: 0 28px 90px rgba(43, 57, 75, 0.16);
  --container: min(1120px, calc(100vw - 40px));
  --headline-size: 8.4rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-dim);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(94, 145, 227, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(47, 156, 104, 0.13), transparent 24rem),
    linear-gradient(145deg, #fefeff 0%, #f4f5f8 48%, #edf1f7 100%);
}

button,
a {
  font: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 0;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 54px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(94, 145, 195, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(43, 57, 75, 0.1);
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 1.08rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: rgba(252, 252, 254, 0.74);
  box-shadow: 0 12px 36px rgba(43, 57, 75, 0.08);
  backdrop-filter: blur(18px);
}

.language-option {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  background: transparent;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--ink);
  outline: none;
}

.language-option:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 145, 227, 0.24);
}

.language-option.is-active {
  color: #ffffff;
  background: var(--ink);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  align-items: center;
  width: var(--container);
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  gap: 72px;
  padding: 88px 0;
}

.hero-copy {
  max-width: 680px;
}

.copy-frame {
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
}

.copy-frame.is-fading {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: var(--headline-size);
  line-height: 0.9;
  font-weight: 820;
  letter-spacing: 0;
}

html[lang="es"] {
  --headline-size: 5rem;
}

.signal {
  position: relative;
  display: grid;
  min-height: min(54vw, 560px);
  place-items: center;
}

.signal::before {
  position: absolute;
  width: min(47vw, 520px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(94, 145, 227, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(240, 242, 247, 0.5)),
    radial-gradient(circle at 50% 50%, rgba(94, 145, 227, 0.08), transparent 62%);
  box-shadow: var(--shadow);
}

.signal-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 1px solid rgba(94, 145, 195, 0.22);
  border-radius: 8px;
  background: rgba(252, 252, 254, 0.8);
  box-shadow: 0 24px 74px rgba(43, 57, 75, 0.17);
  backdrop-filter: blur(24px);
  animation: card-crossfade 7s ease-in-out infinite;
}

.signal-card img {
  width: clamp(96px, 13vw, 144px);
  height: clamp(96px, 13vw, 144px);
}

.signal-card span {
  color: rgba(34, 54, 74, 0.72);
  font-size: 0.9rem;
  font-weight: 760;
  text-transform: uppercase;
}

.signal-ring {
  position: absolute;
  border: 1px solid rgba(94, 145, 227, 0.22);
  border-radius: 50%;
  opacity: 0;
  animation: ring-crossfade 7s ease-in-out infinite;
}

.ring-one {
  width: min(30vw, 320px);
  animation-delay: 0s;
}

.ring-two {
  width: min(39vw, 430px);
  animation-delay: 1.4s;
}

.ring-three {
  width: min(48vw, 540px);
  animation-delay: 2.8s;
}

.signal-ring::before {
  display: block;
  padding-top: 100%;
  content: "";
}

.ambient {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
  opacity: 0.72;
  animation: ambient-crossfade 12s ease-in-out infinite;
}

.ambient-one {
  top: 18%;
  right: 18%;
  width: 13px;
  height: 13px;
  background: var(--accent);
}

.ambient-two {
  right: 9%;
  bottom: 18%;
  width: 9px;
  height: 9px;
  background: var(--warning);
  animation-delay: 2.5s;
}

.ambient-three {
  bottom: 16%;
  left: 9%;
  width: 11px;
  height: 11px;
  background: var(--primary);
  animation-delay: 5s;
}

@keyframes ring-crossfade {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  34% {
    opacity: 0.8;
  }

  68% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes card-crossfade {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 24px 74px rgba(43, 57, 75, 0.17);
  }

  50% {
    transform: translateY(-12px);
    box-shadow: 0 34px 92px rgba(43, 57, 75, 0.2);
  }
}

@keyframes ambient-crossfade {
  0%,
  100% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.8;
    transform: translate3d(0, -18px, 0);
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 28px, 640px);
    --headline-size: 5.7rem;
  }

  html[lang="es"] {
    --headline-size: 4.55rem;
  }

  .site-shell {
    padding: 18px 0 30px;
  }

  .topbar {
    min-height: 48px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 48px;
    padding: 92px 0 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .signal {
    min-height: 330px;
    margin-top: 8px;
  }

  .signal::before {
    width: min(78vw, 360px);
  }

  .ring-one {
    width: min(52vw, 240px);
  }

  .ring-two {
    width: min(68vw, 310px);
  }

  .ring-three {
    width: min(82vw, 370px);
  }
}

@media (max-width: 520px) {
  :root {
    --headline-size: 4.85rem;
  }

  html[lang="es"] {
    --headline-size: 3.3rem;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-option {
    min-width: 38px;
  }

  .hero {
    gap: 54px;
    padding-top: 108px;
  }

  .signal {
    min-height: 320px;
    margin-top: 4px;
  }
}

@media (max-width: 430px) {
  html[lang="es"] {
    --headline-size: 2.95rem;
  }
}

@media (max-width: 380px) {
  :root {
    --headline-size: 4.35rem;
  }

  html[lang="es"] {
    --headline-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
