.access-page {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 23% 42%, rgba(16, 77, 132, 0.25), transparent 42%),
    radial-gradient(circle at 77% 51%, rgba(15, 57, 98, 0.24), transparent 34%),
    linear-gradient(145deg, #061321 0%, #0a1d34 51%, #07182a 100%);
}

.access-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%),
    radial-gradient(ellipse at center, transparent 43%, rgba(1, 8, 17, 0.28) 100%);
}

.access-page #particle-field {
  opacity: 0.66;
  transition:
    opacity 620ms ease,
    filter 620ms ease,
    transform 800ms cubic-bezier(.16, 1, .3, 1);
}

.access-page.is-form-active #particle-field {
  opacity: 0.78;
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.012);
}

.access-shell {
  grid-template-rows: 92px 1fr;
  isolation: isolate;
}

.access-header {
  justify-content: space-between;
}

.access-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  color: rgba(232, 241, 252, 0.68);
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.access-back svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  transition: transform 180ms ease;
}

.access-back:hover,
.access-back:focus-visible {
  color: #fff;
}

.access-back:hover svg,
.access-back:focus-visible svg {
  transform: translateX(-3px);
}

.access-back:focus-visible,
.access-login a:focus-visible,
.confirmation-reset:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(87, 190, 255, 0.92);
  outline-offset: 5px;
}

.access-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  align-items: center;
  gap: clamp(56px, 7vw, 126px);
  width: min(calc(100% - 64px), 1320px);
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: 38px 0 74px;
}

.access-story {
  max-width: 690px;
  padding-left: clamp(0px, 2vw, 24px);
  transform: translateX(0);
}

/* La entrada animada SOLO si el JS esta vivo: sin el, el contenido se ve. */
.js-anim .access-story {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 760ms 80ms cubic-bezier(.16, 1, .3, 1),
    transform 760ms 80ms cubic-bezier(.16, 1, .3, 1);
}

.is-ready .access-story {
  opacity: 1;
  transform: translateX(0);
}

.access-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: rgba(111, 203, 255, 0.92);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(85, 199, 255, 0.12), #55c7ff);
  box-shadow: 0 0 12px rgba(85, 199, 255, 0.52);
}

.access-story h1 {
  width: auto;
  min-height: 0;
  max-width: 690px;
  margin: 0;
  font-size: clamp(54px, 4.8vw, 78px);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-align: left;
  text-wrap: balance;
}

.access-copy {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(198, 212, 230, 0.72);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.access-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 26px;
  margin-top: 36px;
}

.access-assurances p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(218, 229, 242, 0.63);
  font-size: 13px;
}

.assurance-mark {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(96, 206, 255, 0.47);
  border-radius: 50%;
  background: rgba(53, 181, 246, 0.08);
  box-shadow: 0 0 12px rgba(47, 173, 239, 0.12);
}

.assurance-mark::after {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 4px;
  height: 2px;
  content: "";
  border-bottom: 1.3px solid #82d9ff;
  border-left: 1.3px solid #82d9ff;
  transform: rotate(-45deg);
}

.access-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 642px;
  padding: clamp(30px, 3vw, 44px);
  border: 1px solid rgba(190, 222, 255, 0.13);
  border-radius: 30px;
  background:
    linear-gradient(147deg, rgba(18, 45, 76, 0.82), rgba(7, 24, 43, 0.89)),
    rgba(6, 20, 36, 0.78);
  box-shadow:
    0 40px 100px rgba(0, 7, 18, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.018) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform: translateX(0) scale(1);
  transition:
    opacity 780ms 150ms cubic-bezier(.16, 1, .3, 1),
    transform 780ms 150ms cubic-bezier(.16, 1, .3, 1),
    border-color 420ms ease,
    box-shadow 420ms ease;
  backdrop-filter: blur(24px) saturate(1.08);
}

/* Idem para el panel del formulario. */
.js-anim .access-panel {
  opacity: 0;
  transform: translateX(24px) scale(0.985);
}

.is-ready .access-panel {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.is-form-active .access-panel {
  border-color: rgba(105, 201, 255, 0.22);
  box-shadow:
    0 44px 112px rgba(0, 7, 18, 0.52),
    0 0 54px rgba(26, 137, 214, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.access-panel-glow {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 166, 244, 0.16), transparent 66%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 420ms ease, transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.is-form-active .access-panel-glow {
  opacity: 1;
  transform: translate(-18px, 18px) scale(1.12);
}

.access-form-view,
.access-confirmation {
  position: relative;
  z-index: 1;
}

.access-form-view[hidden],
.access-confirmation[hidden] {
  display: none !important;
}

.access-form-header {
  margin-bottom: 28px;
}

.access-form-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(174, 194, 219, 0.58);
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-progress {
  height: 2px;
  margin: 12px 0 30px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(205, 226, 249, 0.09);
}

.access-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #319eff, #69d7ff);
  box-shadow: 0 0 15px rgba(81, 196, 255, 0.74);
  transition: width 360ms cubic-bezier(.16, 1, .3, 1);
}

.access-form-header h2,
.access-confirmation h2 {
  margin: 0;
  color: rgba(248, 251, 255, 0.96);
  font-size: 27px;
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.access-form-header > p {
  margin: 9px 0 0;
  color: rgba(171, 191, 216, 0.62);
  font-size: 14px;
}

.access-form {
  display: grid;
  gap: 19px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-group {
  min-width: 0;
}

.field-group label,
.field-label-row > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(189, 207, 229, 0.69);
  font-size: 10.5px;
  font-weight: 670;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.field-label-row > span {
  color: rgba(154, 177, 205, 0.43);
  font-weight: 560;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(186, 215, 246, 0.15);
  border-radius: 13px;
  outline: none;
  color: rgba(244, 249, 255, 0.93);
  background: rgba(180, 211, 245, 0.065);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.025) inset,
    0 10px 26px rgba(0, 7, 17, 0.08);
  font: inherit;
  font-size: 14px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.field-group input,
.field-group select {
  height: 50px;
  padding: 0 15px;
}

.field-group textarea {
  min-height: 76px;
  padding: 13px 15px;
  resize: vertical;
  line-height: 1.45;
}

.field-group input::placeholder,
.field-group textarea::placeholder,
.field-group select:invalid {
  color: rgba(161, 185, 213, 0.43);
}

.field-group input:hover,
.field-group select:hover,
.field-group textarea:hover {
  border-color: rgba(187, 221, 255, 0.25);
  background: rgba(186, 217, 249, 0.085);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(83, 192, 255, 0.65);
  background: rgba(190, 222, 255, 0.105);
  box-shadow:
    0 0 0 4px rgba(47, 160, 230, 0.105),
    0 14px 32px rgba(0, 8, 20, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-1px);
}

.select-shell {
  position: relative;
}

.select-shell select {
  padding-right: 43px;
  appearance: none;
}

.select-shell svg {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  pointer-events: none;
  fill: none;
  stroke: rgba(176, 201, 229, 0.55);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transform: translateY(-50%);
}

.field-group select option {
  color: #eaf3ff;
  background: #0e2744;
}

.field-error {
  display: none;
  margin: 6px 2px 0;
  color: #ff9a9a;
  font-size: 11px;
}

.was-validated input:invalid,
.was-validated select:invalid {
  border-color: rgba(255, 111, 121, 0.62);
  box-shadow: 0 0 0 3px rgba(228, 64, 77, 0.09);
}

.was-validated input:invalid + .field-error,
.was-validated .select-shell:has(select:invalid) + .field-error {
  display: block;
}

.access-submit {
  width: 100%;
  margin-top: 3px;
  border-radius: 14px;
  cursor: pointer;
}

.access-privacy {
  margin: -5px 0 0;
  color: rgba(156, 180, 207, 0.48);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.access-login {
  margin: 27px 0 0;
  padding-top: 23px;
  border-top: 1px solid rgba(190, 218, 247, 0.08);
  color: rgba(167, 189, 216, 0.55);
  font-size: 13px;
  text-align: center;
}

.access-login a,
.confirmation-reset {
  color: rgba(104, 205, 255, 0.94);
  text-decoration: none;
}

.access-login a:hover {
  color: #b4ebff;
}

.access-confirmation {
  display: grid;
  place-items: center;
  min-height: 552px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 320ms ease, transform 480ms cubic-bezier(.16, 1, .3, 1);
}

.access-confirmation.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.confirmation-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  margin-bottom: 8px;
}

.confirmation-orbit::before,
.confirmation-orbit::after,
.confirmation-orbit span {
  position: absolute;
  border: 1px solid rgba(99, 210, 255, 0.24);
  border-radius: 50%;
  content: "";
}

.confirmation-orbit::before {
  inset: 18px;
  background: radial-gradient(circle, rgba(59, 173, 241, 0.2), rgba(29, 115, 181, 0.06) 56%, transparent 58%);
  box-shadow: 0 0 42px rgba(48, 174, 245, 0.18);
}

.confirmation-orbit::after {
  inset: 4px 25px;
  transform: rotate(57deg);
  animation: confirmation-orbit 8s linear infinite;
}

.confirmation-orbit span:nth-child(1) {
  inset: 12px 31px;
  transform: rotate(-41deg);
  animation: confirmation-orbit-reverse 6s linear infinite;
}

.confirmation-orbit span:nth-child(2) {
  top: 15px;
  left: 76px;
  width: 7px;
  height: 7px;
  border: 0;
  background: #65d4ff;
  box-shadow: 0 0 15px #4bc3ff;
}

.confirmation-orbit span:nth-child(3) {
  right: 17px;
  bottom: 27px;
  width: 5px;
  height: 5px;
  border: 0;
  background: #9f8cff;
  box-shadow: 0 0 12px #9f8cff;
}

.confirmation-orbit svg {
  position: relative;
  z-index: 1;
  width: 31px;
  fill: none;
  stroke: #d9f6ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.confirmation-kicker {
  margin: 12px 0 15px;
  color: rgba(102, 207, 255, 0.82);
  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-confirmation > p:not(.confirmation-kicker) {
  max-width: 350px;
  margin: 15px auto 0;
  color: rgba(181, 200, 224, 0.65);
  font-size: 14px;
  line-height: 1.58;
}

.confirmation-reset {
  margin-top: 28px;
  padding: 7px 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

@keyframes confirmation-orbit {
  to { transform: rotate(417deg); }
}

@keyframes confirmation-orbit-reverse {
  to { transform: rotate(-401deg); }
}

@media (max-width: 1040px) {
  .access-main {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 480px);
    gap: 42px;
  }

  .access-story h1 {
    font-size: clamp(48px, 5.5vw, 65px);
  }
}

@media (max-width: 860px) {
  .access-shell {
    grid-template-rows: 76px 1fr;
  }

  .access-main {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(calc(100% - 40px), 620px);
    min-height: auto;
    padding: 42px 0 64px;
  }

  .access-story {
    max-width: 600px;
    padding: 0 4px;
  }

  .access-story h1 {
    max-width: 600px;
    font-size: clamp(46px, 9vw, 67px);
  }

  .access-copy {
    margin-top: 24px;
  }

  .access-assurances {
    margin-top: 27px;
  }

  .access-panel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .access-page #particle-field {
    opacity: 0.48;
  }

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

  .access-main {
    width: min(calc(100% - 28px), 520px);
    gap: 31px;
    padding: 31px 0 44px;
  }

  .access-eyebrow {
    margin-bottom: 18px;
    font-size: 10.5px;
  }

  .access-story h1 {
    max-width: calc(100vw - 36px);
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1;
  }

  .access-copy {
    margin-top: 20px;
    font-size: 16px;
  }

  .access-assurances {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .access-panel {
    padding: 27px 20px;
    border-radius: 23px;
  }

  .access-progress {
    margin-bottom: 25px;
  }

  .access-form-header h2 {
    font-size: 25px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .field-group input,
  .field-group select {
    height: 52px;
    font-size: 16px;
  }

  .field-group textarea {
    font-size: 16px;
  }

  .access-submit {
    min-height: 52px;
  }

  .access-confirmation {
    min-height: 500px;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .access-shell {
    grid-template-rows: 74px 1fr;
  }

  .access-main {
    min-height: calc(100svh - 74px);
    padding: 22px 0 38px;
  }

  .access-panel {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .access-form-header {
    margin-bottom: 22px;
  }

  .access-progress {
    margin-bottom: 23px;
  }

  .access-form {
    gap: 14px;
  }

  .field-group input,
  .field-group select {
    height: 46px;
  }

  .field-group textarea {
    min-height: 63px;
  }

  .access-login {
    margin-top: 19px;
    padding-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .access-story,
  .access-panel {
    opacity: 1;
    transform: none;
  }

  .confirmation-orbit::after,
  .confirmation-orbit span:nth-child(1) {
    animation: none;
  }
}
