:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-2: #111111;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #cfcfcf;
  --accent-2: #e6e6e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 999px;
  --radius-md: 20px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.1), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(198, 184, 168, 0.16), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(146, 136, 124, 0.12), transparent 52%),
    linear-gradient(180deg, #050505 0%, #121110 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.1px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.nav-simple {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
  justify-content: flex-end;
  white-space: nowrap;
}

.nav-simple a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-simple a:hover {
  color: var(--text);
}

.nav-simple a[aria-current="page"] {
  color: var(--text);
}

.nav-sep {
  opacity: 0.4;
}

.nav-pill > a {
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  color: var(--muted);
  transition: all 0.25s ease;
}

.nav-pill > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill > a.nav-pill__cta {
  color: #111111;
  background: var(--accent);
  font-weight: 600;
}

.nav-pill > a.nav-pill__cta:hover {
  color: #111111;
  background: var(--accent-2);
}

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.lang-toggle__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle__btn[aria-current="page"] {
  background: var(--accent);
  color: #111111;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.hero__icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero__icon img {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 20px;
}

.notice {
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.notice__short {
  display: none;
}

.notice--center {
  margin-left: auto;
  margin-right: auto;
}

.notice__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(230, 255, 105, 0.45);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.hero__accent {
  background: linear-gradient(
    var(--accent-angle),
    rgba(78, 165, 245, 0.8) 0%,
    rgba(78, 165, 245, 0.8) 35%,
    rgba(226, 104, 104, 0.72) 40%,
    rgba(226, 104, 104, 0.72) 60%,
    rgba(96, 206, 154, 0.8) 65%,
    rgba(96, 206, 154, 0.8) 100%
  );
  background-size: 160% 160%;
  animation: flagShift 12s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
}

.cta__link {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta__link::after {
  content: "";
}

.cta__link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.boton-elegante {
  box-shadow: none;
}

.boton-elegante:hover {
  transform: translateY(-1px);
}

.cta__note {
  margin: 0;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  position: relative;
  width: min(92vw, 420px);
  padding: 28px;
  border-radius: 24px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: modalIn 0.22s ease;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 6px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.modal__helper {
  margin: 6px 0 18px;
  color: var(--muted);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__input {
  width: 100%;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 1rem;
  min-height: 52px;
}

.modal__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.modal__form .boton-elegante {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  border-radius: 16px;
}

.modal__status {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal__note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.modal__status.is-success {
  color: #b7f2d2;
}

.modal__status.is-error {
  color: #f5b1b1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@property --accent-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 120deg;
}

@keyframes flagShift {
  0% {
    --accent-angle: 120deg;
    background-position: 50% 50%;
  }
  50% {
    --accent-angle: 130deg;
    background-position: 50% 50%;
  }
  100% {
    --accent-angle: 120deg;
    background-position: 50% 50%;
  }
}

@media (max-width: 720px) {
  .page {
    gap: 24px;
    padding-top: 18px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .logo img {
    display: none;
  }

  .nav-pill {
    display: none;
  }

  .nav-simple {
    display: flex;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    gap: 8px;
  }

  h1 {
    font-size: clamp(2.8rem, 9vw, 3.8rem);
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .cta__note {
    display: none;
  }

  .modal__note {
    display: block;
  }

  .notice {
    font-size: 0.85rem;
    padding: 6px 14px;
    max-width: 92%;
    text-align: center;
    white-space: nowrap;
  }

  .cta__link {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .cta__link::after {
    content: " ↗";
    font-size: 0.9em;
  }
}

@media (max-width: 420px) {
  .notice {
    font-size: 0.8rem;
    padding: 6px 12px;
    max-width: 90%;
  }

  .notice__text {
    display: none;
  }

  .notice__short {
    display: inline;
  }
}
