:root {
  color-scheme: dark;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: #f7f5ff;
  background: #0d1330;
  font-synthesis: none;
  --muted: #d2d6eb;
  --accent: #9ff5e3;
  --line: rgb(255 255 255 / 20%);
  --panel: rgb(15 23 53 / 85%);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #142448;
}
.scene .official-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(9 17 43 / 88%) 0%,
      rgb(13 24 55 / 65%) 40%,
      rgb(11 21 47 / 8%) 75%
    ),
    linear-gradient(0deg, rgb(9 16 36 / 94%), transparent 70%);
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 26px 5% 0;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: white;
  text-decoration: none;
}
.brand-name {
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.brand-dot {
  color: var(--accent);
}
.brand-divider {
  height: 31px;
  width: 1px;
  background: var(--line);
}
.brand-program {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 2px;
}
.edition-pill,
.example-pill {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: 1.2px;
  background: rgb(13 23 48 / 70%);
}
.edition-pill b {
  color: var(--accent);
  margin-left: 8px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  background: rgb(12 22 47 / 82%);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
nav button {
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #e2e6f6;
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s;
}
nav button:hover {
  background: rgb(255 255 255 / 10%);
}
nav button[aria-current="page"] {
  color: #0f2630;
  background: var(--accent);
  font-weight: 700;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 22px 5% 50px;
}
.demo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #b2f6e7;
}
.demo-banner > span:last-child {
  color: #e0e5f5;
  font-weight: 400;
  letter-spacing: 0.1px;
}
.demo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
section {
  animation: enter 0.55s ease both;
}
section[hidden],
[hidden] {
  display: none !important;
}
.hero {
  padding: 40px 0;
  max-width: 820px;
}
.home-hero {
  max-width: 720px;
  padding: 65px 0 70px;
}
.eyebrow,
.hero > span:first-child {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 2.2px;
  color: var(--accent);
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 24px 0;
  text-wrap: balance;
}
.home-hero h1 {
  font-size: clamp(2.8rem, 5.7vw, 5.2rem);
}
h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}
p {
  line-height: 1.75;
}
.hero p {
  max-width: 540px;
  color: #e3e8f8;
  font-size: 15px;
}
.hero-note {
  display: block;
  font-size: 10px;
  color: #d3dbed;
  letter-spacing: 0.4px;
  margin-top: 22px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 19px;
  color: white;
  background: rgb(255 255 255 / 8%);
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.primary-btn,
.action-btn,
.hero > button {
  color: #0c2930;
  background: var(--accent);
  border-color: transparent;
  font-weight: 700;
}
.primary-btn span {
  margin-left: 20px;
}
.secondary-btn {
  background: rgb(12 22 47 / 70%);
}
button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.65;
  cursor: default;
}
.cards,
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.cols {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card,
details,
.mission-paths > button {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 14px 40px rgb(4 11 30 / 12%);
}
.card {
  transition:
    transform 0.25s,
    border-color 0.25s;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgb(159 245 227 / 50%);
  }
}
.card strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 550;
  margin: 16px 0 10px;
  letter-spacing: -0.04em;
}
.card p {
  font-size: 14px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.tag {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  margin: 13px 0 20px;
}
h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
section > h1 {
  margin-top: 50px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
section > h2 {
  margin-top: 35px;
}
section > p,
section > ul {
  padding: 12px 18px;
  background: rgb(12 22 47 / 85%);
  border-radius: 12px;
}
section > ul {
  padding-left: 38px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 42px 0 18px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.example-pill {
  color: #d7dfef;
  white-space: nowrap;
  font-size: 9px;
}
.journey-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 50px;
  padding: 30px;
  background: rgb(15 29 55 / 85%);
  border-top: 1px solid rgb(159 245 227 / 60%);
}
.journey-panel h2 {
  margin: 8px 0;
  font-size: 24px;
}
.journey-panel p {
  margin: 0;
}
.journey-progress {
  align-self: center;
}
.journey-progress > span {
  font-size: 12px;
  color: #e7f9f3;
}
progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  margin: 14px 0;
  background: rgb(255 255 255 / 15%);
  accent-color: var(--accent);
}
progress::-webkit-progress-bar {
  background: rgb(255 255 255 / 15%);
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.4s ease;
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.text-btn {
  color: var(--accent);
  font-size: 12px;
  padding: 0;
  border: 0;
  background: none;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column: 1 / -1;
  padding: 22px 0 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  gap: 20px;
}
.journey-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.journey-steps li > span {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  flex-shrink: 0;
  border: 1px solid rgb(159 245 227 / 40%);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
}
.journey-steps b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.journey-steps small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.mission-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mission-paths > button {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.path-number {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.mission-paths b {
  font-size: 22px;
  font-weight: 550;
}
.mission-paths span:not(.path-number) {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.mission-paths .path-link {
  color: var(--accent) !important;
  margin-top: auto;
  padding-top: 10px;
}
.notice {
  background: rgb(31 35 56 / 94%);
  border: 1px solid rgb(255 211 148 / 35%);
  border-left: 3px solid #ffd394;
  color: #ffe7c4;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
  margin: 20px 0;
}
.status {
  font-size: 12px;
  color: #b5f7e7;
  font-weight: 600;
}
#estado-retos:empty {
  display: none;
}
#retos article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#retos article button {
  margin-top: auto;
  width: 100%;
  font-size: 12px;
}
#retos article[data-estado="pendiente"] {
  border-color: #f6dba0;
}
#retos article[data-estado="validado"] {
  border-color: var(--accent);
  background: rgb(15 50 56 / 92%);
}
li {
  line-height: 1.7;
  margin: 12px 0;
  font-size: 14px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  line-height: 1.6;
  font-weight: 600;
}
.demo-input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #152541;
  color: white;
  padding: 13px;
  margin: 9px 0 20px;
}
label {
  font-size: 13px;
}
footer {
  max-width: 1440px;
  margin: auto;
  padding: 25px 5% 35px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  line-height: 1.6;
  color: #d8e0f3;
  background: rgb(10 18 40 / 88%);
  border-top: 1px solid var(--line);
}
:where(a, button, select, summary):focus-visible {
  outline: 3px solid #fff1ae;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #10243e;
  color: white;
  z-index: 5;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
h1:focus,
main:focus {
  outline: none;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1000px) {
  #inicio > .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 760px) {
  header {
    padding: 20px 5% 0;
  }
  .brand {
    gap: 12px;
  }
  .brand-name {
    font-size: 26px;
  }
  .brand-program {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .edition-pill {
    display: none;
  }
  nav {
    margin: 0;
    gap: 3px;
  }
  nav button {
    font-size: 11px;
    padding: 10px 9px;
  }
  .scene .official-art {
    object-position: 65% center;
  }
  .scene::after {
    background:
      linear-gradient(90deg, rgb(9 17 43 / 87%), rgb(9 17 43 / 42%)),
      linear-gradient(0deg, rgb(9 16 36 / 80%), transparent);
  }
  .home-hero {
    padding: 50px 0 45px;
  }
  .hero p {
    font-size: 14px;
  }
  .journey-panel {
    grid-template-columns: 1fr;
    padding: 23px;
  }
  .journey-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .mission-paths {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:not(:disabled):hover,
  .card:hover {
    transform: none;
  }
}

/* Short entrance animations; no perpetual motion or scroll listeners. */
.cards > .card {
  animation: card-enter 0.5s ease backwards;
}
.cards > .card:nth-child(2) {
  animation-delay: 60ms;
}
.cards > .card:nth-child(3) {
  animation-delay: 120ms;
}
.cards > .card:nth-child(4) {
  animation-delay: 180ms;
}
.cards > .card:nth-child(5) {
  animation-delay: 240ms;
}
@keyframes card-enter {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cards > .card {
    animation: none;
  }
}
