/*=============== YO TE AVISO — ESTILOS GLOBALES (GENERADO A PARTIR DEL DISEÑO DE STITCH) ====================*/

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../assets/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../assets/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../assets/fonts/material-symbols.woff2) format("woff2");
}
:root {
  --primary: #000615;
  --primary-container: #0b1f3a;
  --on-primary: #ffffff;
  --secondary: #006d41;
  --secondary-container: #74f8af;
  --on-secondary: #ffffff;
  --surface: #f8f9ff;
  --surface-lowest: #ffffff;
  --surface-low: #eff4ff;
  --surface-container: #e6eeff;
  --surface-high: #dde9fe;
  --surface-highest: #d7e3f9;
  --on-surface: #101c2b;
  --on-surface-variant: #44474d;

  --radius: 1rem;
  --radius-lg: 2rem;
  --xs: 0.25rem;
  --sm: 0.5rem;
  --md: 0.75rem;
  --lg: 1rem;
  --xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

  --glow-a: var(--secondary-container);
  --glow-b: var(--secondary);
}

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  height: 100%;
  overflow: hidden;
  background: var(--primary);
  color-scheme: dark;
}
body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 60% 70% at 18% 45%,
      color-mix(in srgb, var(--primary-container) 85%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 70% 80% at 85% 20%,
      color-mix(in srgb, var(--primary) 100%, transparent),
      transparent 80%
    ),
    var(--primary);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 6px 6px;
}
.bg > * {
  position: absolute;
  will-change: transform, opacity;
}

.arc {
  border-radius: 50%;
  border: 2px solid var(--c);
}
.arc--a {
  --c: var(--glow-a);
  width: 42vw;
  height: 42vw;
  left: -21vw;
  top: -21vw;
  box-shadow:
    0 0 18px 2px color-mix(in srgb, var(--c) 70%, transparent),
    0 0 80px 10px color-mix(in srgb, var(--c) 28%, transparent),
    inset 0 0 70px 4px color-mix(in srgb, var(--c) 18%, transparent);
}
.arc--b {
  --c: var(--glow-b);
  width: 70vw;
  height: 70vw;
  left: 39.7vw;
  top: 70.8vh;
  border-color: color-mix(in srgb, var(--c) 90%, white 10%);
  box-shadow:
    0 0 14px 1px color-mix(in srgb, var(--c) 80%, transparent),
    0 0 90px 8px color-mix(in srgb, var(--c) 35%, transparent),
    inset 0 0 120px 10px color-mix(in srgb, var(--c) 22%, transparent);
}
.haze {
  right: -10vw;
  bottom: -20vh;
  width: 60vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--glow-b) 55%, transparent),
    transparent
  );
  filter: blur(30px);
}
.haze--top {
  left: -10vw;
  top: -10vh;
  width: 40vw;
  height: 40vh;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--glow-a) 22%, transparent),
    transparent
  );
}

.ring {
  left: 6.5vw;
  top: 66vh;
  width: 8.5vw;
  max-width: 130px;
  aspect-ratio: 1;
  min-width: 56px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--surface-highest) 18%, transparent);
}
.sq {
  border: 2px solid color-mix(in srgb, var(--glow-a) 28%, transparent);
  border-radius: var(--sm);
  background: color-mix(in srgb, var(--glow-a) 4%, transparent);
}
.sq--1 {
  left: 45.5vw;
  top: 15.5vh;
  width: 2.6vw;
  min-width: 24px;
  aspect-ratio: 1;
  border-radius: var(--xs);
}
.sq--2 {
  left: 35vw;
  top: 82.5vh;
  width: 4.4vw;
  min-width: 36px;
  aspect-ratio: 1;
  border-radius: var(--md);
}

.dots {
  display: grid;
  gap: 0;
}
.dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--glow-a);
  opacity: 0.3;
  justify-self: center;
  align-self: center;
}
.dots--tl {
  left: 2.8vw;
  top: 5vh;
}
.dots--bl {
  left: 6.5vw;
  top: 84vh;
}
.dots--bl i {
  background: var(--glow-a);
}

@media (max-width: 640px) {
  .arc--a {
    width: 70vw;
    height: 70vw;
    left: -35vw;
    top: -35vw;
  }
  .arc--b {
    width: 120vw;
    height: 120vw;
    left: 20vw;
    top: 78vh;
  }
  .dots--bl {
    left: 5vw;
  }
}

/*=============== PANELES ====================*/
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  user-select: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  column-gap: clamp(2rem, 6vw, 6rem);
  justify-items: end;
  padding: max(clamp(0.5rem, 2dvh, 1.5rem), env(safe-area-inset-top, 0px))
    clamp(1rem, 7vw, 6rem) clamp(0.5rem, 2dvh, 1.5rem);
}
.panel {
  --fh: clamp(2.4rem, 5.6dvh, 3rem);
  --fg: clamp(0.4rem, 1.7dvh, 1rem);
  grid-area: 1 / 2;
  width: min(100%, 31rem);
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--surface-highest) 25%, transparent)
    transparent;
  padding: clamp(1rem, 3.2dvh, 2.25rem) clamp(1.25rem, 3vw, 2.25rem);
  color: var(--surface-low);
  font-family: Plus Jakarta Sans;
  background: color-mix(in srgb, var(--primary-container) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-highest) 14%, transparent);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}
.panel[hidden] {
  display: none;
}
.badge {
  width: clamp(2.5rem, 6.5dvh, 3.5rem);
  height: clamp(2.5rem, 6.5dvh, 3.5rem);
  margin: 0 auto var(--fg);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--secondary-container);
  background: color-mix(
    in srgb,
    var(--secondary) 35%,
    var(--primary-container)
  );
  border: 1px solid
    color-mix(in srgb, var(--secondary-container) 45%, transparent);
  box-shadow: 0 0 24px
    color-mix(in srgb, var(--secondary-container) 25%, transparent);
}
.badge .ms {
  font-size: 1.75rem;
}
.panel h1 {
  font-size: clamp(1.4rem, min(3.2vw, 4.2dvh), 2.25rem);
  line-height: 1.1;
  text-align: center;
  color: var(--on-primary);
  letter-spacing: -0.02em;
}
.panel .sub {
  text-align: center;
  margin: var(--xs) 0 clamp(0.6rem, 2.4dvh, 1.5rem);
  font-size: clamp(0.85rem, 1.9dvh, 1rem);
  color: var(--surface-highest);
  opacity: 0.85;
}
.field {
  display: block;
  margin-bottom: var(--fg);
}
.field > span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-primary);
  margin-bottom: clamp(0.2rem, 0.8dvh, 0.5rem);
}
.input {
  position: relative;
  display: flex;
  align-items: center;
}
.input > .ms {
  position: absolute;
  left: 0.85rem;
  font-size: 1.4rem;
  color: var(--surface-highest);
  opacity: 0.7;
  pointer-events: none;
}
.input input {
  width: 100%;
  height: var(--fh);
  padding: 0 3rem 0 2.8rem;
  font: inherit;
  color: var(--on-primary);
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-highest) 16%, transparent);
  border-radius: var(--md);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input input::placeholder {
  color: color-mix(in srgb, var(--surface-highest) 50%, transparent);
}
.input input:focus-visible {
  border-color: var(--secondary-container);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--secondary-container) 25%, transparent);
}
.eye {
  position: absolute;
  right: 0.35rem;
  width: 2.3rem;
  height: 2.3rem;
  max-height: 100%;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--sm);
  color: var(--surface-highest);
  cursor: pointer;
  opacity: 0.75;
}
.eye:hover {
  opacity: 1;
}
.eye:focus-visible {
  outline: 2px solid var(--secondary-container);
}
.eye .ms {
  font-size: 1.4rem;
}
.btn {
  width: 100%;
  height: calc(var(--fh) + 0.1rem);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: var(--md);
  color: var(--primary);
  background: linear-gradient(
    135deg,
    var(--secondary-container),
    color-mix(in srgb, var(--secondary-container) 65%, var(--secondary))
  );
  box-shadow:
    var(--shadow-md),
    0 8px 24px -6px
      color-mix(in srgb, var(--secondary-container) 40%, transparent);
  transition:
    transform 0.15s,
    filter 0.2s;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--on-primary);
  outline-offset: 3px;
}
.link {
  color: var(--secondary-container);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.link:hover {
  text-decoration: underline;
}
.link:focus-visible {
  outline: 2px solid var(--secondary-container);
  outline-offset: 2px;
  border-radius: 2px;
}
.center {
  text-align: center;
  margin-top: var(--fg);
  font-size: clamp(0.82rem, 1.9dvh, 0.95rem);
}
.divider {
  display: flex;
  align-items: center;
  gap: var(--md);
  margin: var(--fg) 0;
  color: var(--surface-highest);
  opacity: 0.7;
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--surface-highest) 20%, transparent);
}
.check {
  display: flex;
  gap: var(--md);
  align-items: center;
  margin: var(--xs) 0 var(--fg);
  font-size: clamp(0.8rem, 1.9dvh, 0.9rem);
}
.check input {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  accent-color: var(--secondary-container);
}

.form__buttons {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

/*=============== COLUMNA IZQUIERDA ====================*/
.hero {
  grid-area: 1 / 1;
  justify-self: center;
  max-width: 32rem;
  text-align: center;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.hero__icon {
  display: inline-grid;
  place-items: center;
  width: 10.5rem;
  height: 10.5rem;
}
.hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero__title {
  margin-top: var(--xl);
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-primary);
  background: linear-gradient(
    90deg,
    var(--on-primary) 10%,
    var(--secondary-container)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__text {
  margin-top: var(--lg);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--surface-highest);
  opacity: 0.85;
}
.hero__rule {
  width: min(18rem, 60%);
  height: 2px;
  margin: var(--xl) auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-container),
    var(--secondary),
    transparent
  );
  box-shadow: 0 0 14px
    color-mix(in srgb, var(--secondary-container) 45%, transparent);
}

.footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 24px;
  border-top: 1px solid rgba(128, 128, 128, 0.3);
  background: none;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: var(--surface-highest);
}

.footer__copy {
  margin: 0;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    row-gap: clamp(0.5rem, 2dvh, 1.5rem);
  }
  .panel {
    grid-area: 2 / 1;
  }
  .hero__text,
  .hero__rule {
    display: none;
  }
  .hero {
    grid-area: 1 / 1;
  }
  .hero__icon {
    width: clamp(2.5rem, 7dvh, 4rem);
    height: clamp(2.5rem, 7dvh, 4rem);
  }
  .hero__icon .ms {
    font-size: 2.25rem;
  }
  .hero__title {
    margin-top: var(--sm);
    font-size: clamp(1.5rem, 4.5dvh, 2.25rem);
  }
  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
    gap: 8px 16px;
  }
}

@media (max-height: 700px) {
  .badge {
    display: none;
  }
  .footer {
    padding-block: 8px;
  }
}
@media (max-height: 560px) {
  .panel .sub,
  .hero__title {
    display: none;
  }
}

/*=============== PASOS, QR Y AVISOS ====================*/
.step[hidden],
.note[hidden] {
  display: none;
}
.center--flush {
  margin-top: 0;
}
.link--soft {
  color: var(--on-primary);
  opacity: 0.55;
  font-size: 0.78rem;
}
.link--soft:hover {
  opacity: 0.85;
}
.note {
  display: flex;
  align-items: center;
  gap: var(--sm);
  margin: var(--md) 0 0;
  padding: var(--md) var(--lg);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.4;
  background: color-mix(in srgb, var(--secondary-container) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary-container) 25%, transparent);
}
.note .ms {
  flex: none;
  color: var(--secondary-container);
}
.hint {
  margin: 0 0 var(--fg);
  font-size: 0.78rem;
  opacity: 0.65;
}
.qr {
  display: grid;
  justify-items: center;
  gap: var(--sm);
  margin-bottom: var(--fg);
  text-align: center;
}
.qr__box {
  width: 9.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(var(--primary-container) 0 25%, transparent 0 50%)
      0 0 / 1.2rem 1.2rem,
    var(--surface-lowest);
  border: 0.6rem solid var(--surface-lowest);
}
.qr__text {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}
.qr__key {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--secondary-container);
}
.form-error {
  margin: 0 0 var(--md);
  padding: var(--sm) var(--md);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: #ffb4ab;
  background: rgba(229, 56, 75, 0.12);
  border: 1px solid rgba(229, 56, 75, 0.35);
}
.form-error[hidden] {
  display: none;
}
.qr__box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.qr__box img[hidden] {
  display: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
