:root {
  --bg: #0a0a0b;
  --surface: #151516;
  --surface-2: #1c1c1e;

  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #6e6e73;

  --yellow: #ffbf00;
  --yellow-2: #ffd44a;
  --yellow-soft: rgba(255, 191, 0, .10);
  --yellow-border: rgba(255, 191, 0, .30);

  --blue: #5865f2;
  --green: #63db88;
  --red: #ff6b6f;

  --border: rgba(255, 255, 255, .10);
  --border-soft: rgba(255, 255, 255, .065);

  --glass: rgba(25, 25, 28, .54);
  --glass-strong: rgba(22, 22, 25, .74);

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --page: 1160px;
  --form: 720px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
   INTRO
========================================================= */

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,191,0,.07), transparent 24%),
    #080809;
  transition:
    opacity .62s cubic-bezier(.22,.61,.36,1),
    visibility .62s ease;
}

.intro-splash.done {
  opacity: 0;
  visibility: hidden;
}

.intro-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-logo-shell {
  position: relative;
  width: 190px;
  height: 88px;
  display: grid;
  place-items: center;
  animation: introLogo 1.15s cubic-bezier(.16,1,.3,1) both;
}

.intro-logo-shell::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,191,0,.18);
  filter: blur(38px);
  opacity: .55;
}

.intro-logo {
  position: relative;
  width: 150px;
  filter: drop-shadow(0 0 18px rgba(255,191,0,.08));
}

.intro-caption {
  margin-top: 11px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .22em;
  animation: introCaption .9s .2s ease both;
}

@keyframes introLogo {
  0% {
    opacity: 0;
    transform: scale(.93);
    filter: blur(10px);
  }

  55% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes introCaption {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   AMBIENT
========================================================= */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a0b;
}

.ambient > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .035;
  filter: grayscale(.8) contrast(1.15);
}

.ambient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.025), transparent 30%),
    linear-gradient(180deg, rgba(10,10,11,.20), rgba(10,10,11,.96));
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
}

.ambient-glow-a {
  width: 420px;
  height: 420px;
  top: 8%;
  left: 63%;
  background: rgba(255,191,0,.28);
}

.ambient-glow-b {
  width: 360px;
  height: 360px;
  right: 72%;
  bottom: 5%;
  background: rgba(88,101,242,.16);
}


/* =========================================================
   LIQUID GLASS
========================================================= */

.glass-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.075),
      rgba(255,255,255,.025) 38%,
      rgba(255,255,255,.018)
    ),
    rgba(18,18,20,.54);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(255,255,255,.025),
    0 18px 60px rgba(0,0,0,.22);
}

.glass-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,.08),
      transparent 22%,
      transparent 68%,
      rgba(255,191,0,.025)
    );
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: relative;
  z-index: 20;
  width: min(calc(100% - 40px), 1200px);
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.16,1,.3,1);
}

body.is-loading .navbar {
  opacity: 0;
  transform: translateY(-8px);
}

.brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.brand-icon-wrap {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 7px 20px rgba(255,191,0,.10),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.discord-pill {
  min-height: 49px;
  padding: 7px 13px 7px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.discord-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background:
    linear-gradient(145deg, #6673ff, #4b57db);
  font-size: 11px;
  font-weight: 750;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 6px 18px rgba(88,101,242,.16);
}

.discord-avatar.small {
  width: 40px;
  height: 40px;
}

.discord-avatar.medium {
  width: 43px;
  height: 43px;
}

.discord-pill > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.discord-pill small {
  color: var(--muted-2);
  font-size: 9px;
}

.discord-pill strong {
  max-width: 145px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-dot {
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(99,219,136,.55);
}


/* =========================================================
   BASE
========================================================= */

.app {
  position: relative;
  z-index: 2;
}

.screen {
  display: none;
  min-height: calc(100vh - 144px);
  animation: screenIn .42s cubic-bezier(.16,1,.3,1) both;
}

.screen.active {
  display: block;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content,
.state-screen {
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto;
}

.step-label {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}


/* =========================================================
   HOME
========================================================= */

#screenHome.active {
  display: flex;
  flex-direction: column;
}

.home {
  width: min(calc(100% - 40px), var(--page));
  min-height: calc(100vh - 222px);
  margin: 0 auto;
  padding: 8vh 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  gap: 58px;
  align-items: center;
}

.hero {
  transition:
    opacity .75s .18s ease,
    transform .75s .18s cubic-bezier(.16,1,.3,1);
}

body.is-loading .hero {
  opacity: 0;
  transform: translateY(15px);
}

.hero-brand {
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-wordmark {
  width: 92px;
}

.hero-brand span {
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255,.13);
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .14em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(54px, 6.1vw, 82px);
  line-height: .98;
  font-weight: 650;
  letter-spacing: -.065em;
}

.hero h1 span {
  color: var(--yellow);
}

.hero > p {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.012em;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  min-height: 51px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

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

.button-primary {
  color: #171303;
  background:
    linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 11px 30px rgba(255,191,0,.12);
}

.button-primary:hover {
  background:
    linear-gradient(180deg, #ffdc66, #ffc515);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 15px 36px rgba(255,191,0,.18);
}

.button-primary > span {
  font-size: 17px;
}

.hero-safe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 11px;
}

.safe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.identity-preview {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  perspective: 1000px;
  transition:
    opacity .8s .27s ease,
    transform .8s .27s cubic-bezier(.16,1,.3,1);
}

body.is-loading .identity-preview {
  opacity: 0;
  transform: translateY(18px) scale(.98);
}

.identity-orb {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,191,0,.12), transparent 68%);
  filter: blur(15px);
}

.identity-card {
  width: min(100%, 390px);
  min-height: 390px;
  padding: 22px;
  border-radius: 31px;
  transform:
    rotateY(-5deg)
    rotateX(3deg);
}

.identity-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tiny-label {
  color: rgba(255,255,255,.50);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .14em;
}

.live-pill {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(99,219,136,.14);
  border-radius: 999px;
  color: #8ce5a7;
  background: rgba(99,219,136,.05);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.identity-card-logo {
  position: relative;
  z-index: 2;
  height: 165px;
  display: grid;
  place-items: center;
}

.identity-card-logo img {
  width: 190px;
  filter: drop-shadow(0 9px 28px rgba(255,191,0,.08));
}

.identity-route {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.identity-route > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.identity-route span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: #d6d6da;
  background: rgba(255,255,255,.04);
  font-size: 8px;
  font-weight: 700;
}

.identity-route small {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8px;
}

.identity-route > i {
  height: 1px;
  margin-top: -13px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,191,0,.25), rgba(255,255,255,.08));
}

.identity-card-session {
  position: relative;
  z-index: 2;
  margin-top: 23px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(0,0,0,.15);
}

.identity-card-session > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.identity-card-session small {
  color: var(--muted-2);
  font-size: 9px;
}

.identity-card-session strong {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.check-badge {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b1a0f;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.floating-chip {
  position: absolute;
  z-index: 4;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 15px;
}

.floating-chip > span:not(.ally-symbol) {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #161302;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}

.floating-chip > div {
  display: flex;
  flex-direction: column;
}

.floating-chip small {
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: .07em;
}

.floating-chip strong {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
}

.chip-one {
  top: 46px;
  right: -2px;
}

.chip-two {
  left: -10px;
  bottom: 53px;
}

.home-bottom {
  width: min(calc(100% - 40px), var(--page));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
}

.home-bottom > div {
  padding: 19px 24px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.home-bottom > div:not(:last-child) {
  margin-right: 24px;
  border-right: 1px solid var(--border-soft);
}

.home-bottom span {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 700;
}

.home-bottom p {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.home-bottom strong {
  color: #b9b9bd;
  font-weight: 600;
}


/* =========================================================
   ALLY ICON
========================================================= */

.ally-symbol {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
}

.ally-symbol i {
  position: absolute;
  width: 19px;
  height: 10px;
  border: 2px solid #d4d4d8;
  border-radius: 999px;
  transform: rotate(-42deg);
}

.ally-symbol i:first-child {
  left: 8px;
}

.ally-symbol i:last-child {
  right: 8px;
  transform: rotate(42deg);
}

.ally-symbol.mini {
  width: 29px;
  height: 29px;
  border-radius: 9px;
}

.ally-symbol.mini i {
  width: 13px;
  height: 7px;
  border-width: 1.5px;
}

.ally-symbol.mini i:first-child {
  left: 5px;
}

.ally-symbol.mini i:last-child {
  right: 5px;
}




/* =========================================================
   OPCIÓN GLOBAL — ICONOS DE ALIADO EN AMARILLO

   ESTADO ACTUAL: DESACTIVADO

   Por defecto TODOS los iconos de Aliado siguen con
   el estilo gris / cristal actual.

   Esto afecta automáticamente a:
   - Portada / tarjeta visual del inicio
   - Pantalla "¿De dónde eres?"
   - Tarjetas de bandas aliadas del formulario
   - Iconos mini
   - Cualquier nuevo elemento que use .ally-symbol

   PARA ACTIVARLO EN TODA LA WEB:
   1. Busca este bloque.
   2. Quita el /* que está justo antes de .ally-symbol
   3. Quita el */ que está al final del bloque.

   Para volver al estilo gris, vuelve a comentar el bloque.
========================================================= */

/*
.ally-symbol {
  border-color: rgba(255,191,0,.34);

  background:
    linear-gradient(
      145deg,
      rgba(255,214,82,.98),
      rgba(255,191,0,.95)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.40),
    0 8px 24px rgba(255,191,0,.14);
}

.ally-symbol i {
  border-color: #171303;
}


/* Un poco más de presencia en los iconos grandes */
.identity-option .ally-symbol,
.identity-preview .ally-symbol {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 10px 28px rgba(255,191,0,.16);
}


/* Cuando una banda aliada está seleccionada */
.organization-option.ally
input:checked
+ .organization-card
.ally-symbol {
  border-color: rgba(255,191,0,.52);

  background:
    linear-gradient(
      145deg,
      #ffe076,
      #ffbf00
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 10px 28px rgba(255,191,0,.20);
}
*/


/* =========================================================
   FLOW CONTENT
========================================================= */

.content {
  max-width: 760px;
  padding: 62px 0 100px;
}

.form-content {
  max-width: var(--form);
}

.back {
  margin-bottom: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.back:hover {
  color: var(--text);
}

.back span {
  font-size: 15px;
}

.heading {
  margin-top: 15px;
}

.heading h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 61px);
  line-height: 1.01;
  font-weight: 650;
  letter-spacing: -.055em;
}

.heading > p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: -.01em;
}


/* =========================================================
   IDENTIFICATION OPTIONS
========================================================= */

.identity-list {
  margin-top: 40px;
  display: grid;
  gap: 13px;
}

.identity-option {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 146px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--text);
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,.038),
      rgba(255,255,255,.018)
    );
  text-align: left;
  cursor: pointer;
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.identity-option::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,191,0,.075), transparent 34%);
  transition: opacity .22s ease;
}

.identity-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.022)
    );
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.member-option:hover {
  border-color: var(--yellow-border);
}

.member-option:hover::before {
  opacity: 1;
}

.identity-option-main {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.option-brand-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 13px;
}

.option-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-option-main > div {
  min-width: 0;
}

.identity-option strong {
  display: block;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -.025em;
}

.identity-option p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.arrow {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 22px;
  transition:
    color .18s ease,
    transform .18s ease;
}

.identity-option:hover .arrow {
  color: var(--yellow);
  transform: translateX(3px);
}

.chips {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 999px;
  color: #bdbdc1;
  background: rgba(255,255,255,.055);
  font-size: 9px;
  font-weight: 560;
}

.notice {
  margin-top: 27px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-2);
}

.notice > span {
  margin-top: 1px;
}

.notice p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}


/* =========================================================
   SESSION STRIP
========================================================= */

.session-strip {
  margin: 32px 0 28px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-md);
}

.session-strip-user {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.session-strip-user > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.session-strip-user small {
  color: var(--muted-2);
  font-size: 10px;
}

.session-strip-user strong {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

.session-strip > span {
  position: relative;
  z-index: 2;
  color: var(--muted-2);
  font-size: 9px;
  overflow-wrap: anywhere;
}


/* =========================================================
   FORM
========================================================= */

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  min-width: 0;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  color: #d2d2d7;
  font-size: 13px;
  font-weight: 550;
}

.input,
.textarea,
.readonly {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.046),
      rgba(255,255,255,.027)
    );
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.input,
.readonly {
  min-height: 53px;
  padding: 0 15px;
}

.textarea {
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

.input:focus,
.textarea:focus {
  border-color: rgba(255,191,0,.46);
  background: rgba(255,255,255,.055);
  box-shadow:
    0 0 0 4px rgba(255,191,0,.055),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.input::placeholder,
.textarea::placeholder {
  color: #5e5e63;
}

.field-help {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-size: 10px;
}


/* =========================================================
   SELECTOR UNIFICADO — UPS / ALIADOS
========================================================= */

.organization-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.organization-option {
  position: relative;
  min-width: 0;
}

.organization-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.organization-card {
  position: relative;
  overflow: hidden;

  min-height: 80px;
  padding: 13px 14px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;

  color: var(--text);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.065),
      rgba(255,255,255,.025)
    ),
    rgba(18,18,20,.78);

  -webkit-backdrop-filter:
    blur(18px)
    saturate(145%);

  backdrop-filter:
    blur(18px)
    saturate(145%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.10);

  cursor: pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

/* reflejo superior del cristal */
.organization-card::before {
  content: "";
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      rgba(255,255,255,.075),
      transparent 27%,
      transparent 70%
    );
}

/* halo muy ligero según el tipo */
.organization-card::after {
  content: "";
  position: absolute;

  width: 120px;
  height: 120px;

  left: -45px;
  top: -55px;

  border-radius: 50%;

  opacity: 0;
  filter: blur(32px);

  pointer-events: none;

  transition: opacity .18s ease;
}

.organization-option.member
.organization-card::after {
  background: rgba(255,191,0,.14);
}

.organization-option.ally
.organization-card::after {
  background: rgba(255,255,255,.08);
}

.organization-option:hover
.organization-card {
  transform: translateY(-1px);

  border-color:
    rgba(255,255,255,.16);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.032)
    ),
    rgba(20,20,22,.84);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 14px 34px rgba(0,0,0,.13);
}

.organization-option:hover
.organization-card::after {
  opacity: 1;
}


/* =========================
   SELECCIONADO
========================= */

.organization-option
input:checked
+ .organization-card {
  border-color:
    rgba(255,191,0,.44);

  background:
    linear-gradient(
      145deg,
      rgba(255,191,0,.115),
      rgba(255,191,0,.032)
    ),
    rgba(22,20,14,.88);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 0 3px rgba(255,191,0,.032),
    0 13px 34px rgba(0,0,0,.14);
}


/* =========================
   CONTENIDO
========================= */

.organization-icon,
.organization-copy,
.organization-check {
  position: relative;
  z-index: 2;
}

.organization-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;
}


/* Logo UPS en integrantes */
.member-logo {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 12px;

  box-shadow:
    0 7px 20px rgba(255,191,0,.10);
}

.member-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Símbolo genérico de aliados */
.small-symbol {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.small-symbol i {
  width: 16px;
  height: 9px;
}


.organization-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.organization-copy strong {
  font-size: 13px;
  font-weight: 600;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-copy small {
  margin-top: 4px;

  color: var(--muted-2);

  font-size: 9px;
}


/* check circular derecho */
.organization-check {
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;

  color: transparent;

  background:
    rgba(255,255,255,.05);

  font-size: 10px;
  font-weight: 800;

  transition:
    color .18s ease,
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.organization-option
input:checked
+ .organization-card
.organization-check {
  color: #161303;
  background: var(--yellow);

  transform: scale(1.04);

  box-shadow:
    0 5px 16px rgba(255,191,0,.16);
}


/* accesibilidad */
.organization-option
input:focus-visible
+ .organization-card {
  outline:
    2px solid rgba(255,191,0,.50);

  outline-offset:
    3px;
}


/* pequeños detalles de identidad */
.organization-option.member
.organization-copy small {
  color: rgba(255,191,0,.48);
}

.organization-option.ally
.organization-copy small {
  color: var(--muted-2);
}


@media (max-width: 580px) {
  .organization-selector {
    grid-template-columns: 1fr;
  }

  .organization-card {
    min-height: 76px;
  }
}


/* =========================================================
   OLD DISCORD
========================================================= */

.question-box {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.043),
      rgba(255,255,255,.021)
    );
}

.question-box > label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 550;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0,0,0,.11);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.choice input:checked + span {
  border-color: rgba(255,191,0,.40);
  color: var(--yellow);
  background: rgba(255,191,0,.075);
}

.old-account-fields {
  display: none;
  margin-top: 13px;
}

.old-account-fields.visible {
  display: block;
  animation: screenIn .2s ease both;
}

.migration-info {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}


/* =========================================================
   CONFIRMATION / ERRORS
========================================================= */

.confirmation {
  margin-top: 26px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  cursor: pointer;
}

.confirmation input {
  position: absolute;
  opacity: 0;
}

.check {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: transparent;
  background: rgba(0,0,0,.16);
  font-size: 11px;
  font-weight: 800;
}

.confirmation input:checked + .check {
  border-color: var(--yellow);
  color: #151304;
  background: var(--yellow);
}

.confirmation div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.confirmation strong {
  font-size: 12px;
  font-weight: 600;
}

.confirmation small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.button-submit {
  width: 100%;
  margin-top: 14px;
}

.form-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,107,111,.13);
  border-radius: 13px;
  color: #ffb7b9;
  background: rgba(255,107,111,.07);
  font-size: 11px;
}


/* =========================================================
   PROCESS / SUCCESS
========================================================= */

.state-screen {
  max-width: 680px;
  min-height: calc(100vh - 144px);
  padding: 17vh 0 90px;
  text-align: center;
}

.processing-logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
}

.processing-logo img {
  width: 72px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .95s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-screen h2 {
  margin: 0;
  font-size: clamp(39px, 6vw, 58px);
  font-weight: 650;
  letter-spacing: -.05em;
}

.state-screen > p {
  max-width: 500px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.success-mark {
  width: 65px;
  height: 65px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b1b10;
  background: var(--green);
  box-shadow: 0 10px 35px rgba(99,219,136,.11);
  font-size: 25px;
  font-weight: 800;
}

.status-card {
  margin: 31px 0 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius-lg);
}

.status-card > div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.status-card small {
  color: var(--muted-2);
  font-size: 10px;
}

.status-card strong {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-card > span {
  position: relative;
  z-index: 2;
  width: 1px;
  height: 35px;
  background: var(--border);
}

.summary {
  padding: 5px 17px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
}

.summary-row {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted-2);
  font-size: 10px;
}

.summary-row strong {
  max-width: 65%;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.button-secondary {
  width: 100%;
  margin-top: 13px;
  color: var(--text);
  background: rgba(255,255,255,.07);
}

.button-secondary:hover {
  background: rgba(255,255,255,.10);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  position: relative;
  z-index: 2;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #4b4b50;
  font-size: 9px;
}

.footer img {
  width: 44px;
  opacity: .36;
}

.footer span {
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.06);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .home {
    min-height: auto;
    padding-top: 7vh;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero {
    max-width: 700px;
  }

  .identity-preview {
    min-height: 430px;
  }

  .identity-card {
    transform: none;
  }

  .chip-one {
    right: 6%;
  }

  .chip-two {
    left: 6%;
  }

  .home-bottom {
    margin-top: 25px;
  }
}

@media (max-width: 680px) {
  .navbar {
    width: min(calc(100% - 24px), 1200px);
    height: 70px;
  }

  .brand-text small {
    display: none;
  }

  .discord-pill {
    max-width: 175px;
  }

  .discord-pill strong {
    max-width: 88px;
  }

  .content,
  .state-screen {
    width: min(calc(100% - 28px), 760px);
  }

  .home {
    width: min(calc(100% - 28px), var(--page));
    padding-top: 8vh;
  }

  .hero h1 {
    font-size: clamp(49px, 13vw, 66px);
  }

  .hero > p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-preview {
    min-height: 390px;
  }

  .identity-card {
    width: min(100%, 360px);
    min-height: 360px;
  }

  .floating-chip {
    transform: scale(.90);
  }

  .chip-one {
    top: 32px;
    right: -8px;
  }

  .chip-two {
    left: -8px;
    bottom: 38px;
  }

  .home-bottom {
    grid-template-columns: 1fr;
  }

  .home-bottom > div {
    padding: 14px 0;
  }

  .home-bottom > div:not(:last-child) {
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .content {
    padding-top: 45px;
  }

  .back {
    margin-bottom: 34px;
  }

  .identity-option {
    min-height: 0;
    padding: 18px;
  }

  .identity-option strong {
    font-size: 17px;
  }

  .identity-option p {
    font-size: 12px;
  }

  .arrow {
    display: none;
  }

  .session-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-card {
    grid-template-columns: 1fr;
  }

  .status-card > span {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 430px) {
  .brand-text strong {
    font-size: 12px;
  }

  .discord-pill {
    max-width: 155px;
  }

  .heading h2 {
    font-size: 42px;
  }

  .identity-option-main {
    gap: 12px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .floating-chip {
    display: none;
  }
}

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

  .intro-splash {
    display: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface,
  .discord-pill {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .glass-surface {
    background: rgba(22,22,25,.95);
  }
}
