/* Acceso: comparte el arte y los colores de la aventura. */
#access-dialog {
  width: min(960px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #586052;
  border-radius: 22px;
  background: #16252e;
  color: var(--text);
  box-shadow: 0 32px 100px #0008;
  overflow: auto;
}
#access-dialog::backdrop {
  background: radial-gradient(ellipse at 35% 30%, #244039e8, #08141cf5 75%);
  backdrop-filter: blur(12px);
}
.access-layout { display: grid; grid-template-columns: 1fr 1fr; }
.access-world {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: 34px;
  isolation: isolate;
  background: #293c3c;
}
.access-world::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #10232ae8 0%, #10232a28 38%, #10232ad9 67%, #10232a 100%), url('assets/room-daylight.png') 43% center / cover;
}
.access-brand { display: flex; align-items: center; gap: 16px; font: 600 12px/1.5 'Space Grotesk', var(--font); letter-spacing: .1em; }
.access-brand .brand-mark { flex-shrink: 0; }
.access-brand small { display: block; font: 12px/1.6 var(--font); color: #d2dcd4; letter-spacing: 0; margin-top: 4px; }
.access-story { margin-top: auto; padding-top: 180px; }
.access-story .eyebrow { font-size: 10px; letter-spacing: .13em; }
.access-story p { font: 40px/1.14 Georgia, serif; letter-spacing: -.035em; margin: 18px 0; }
.access-story em { color: var(--gold); font-weight: 400; }
.access-story > span:last-child { display: block; max-width: 290px; color: #d0dbd6; font-size: 14px; line-height: 1.7; }
.access-caption { margin-top: 34px; padding-top: 18px; border-top: 1px solid #a7bfad33; color: #a9beb6; font-size: 9px; letter-spacing: .14em; }
.access-panel { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at top right, #263a3b, transparent 65%); }
#access-dialog .access-body { padding: 36px 38px 12px; flex: 1; }
#access-dialog #group-access-tabs { display: flex; gap: 4px; margin: 0 0 34px; padding: 5px; border: 1px solid #3b5057; background: #101f27; border-radius: 12px; }
#access-dialog #group-access-tabs button { flex: 1; margin: 0; padding: 11px 7px; min-height: 44px; border: 0; border-radius: 8px; font-size: 13px; background: transparent; color: #b6c6c7; box-shadow: none; }
#access-dialog #group-access-tabs button[aria-pressed='true'] { background: #31454a; color: #fff2da; box-shadow: 0 2px 5px #0003; }
#access-dialog #group-access-tabs button:hover { color: var(--gold); }
.access-heading h2 { font: 34px/1.14 Georgia, serif; letter-spacing: -.025em; margin: 12px 0; }
#access-description { color: #b6c6c7; font-size: 14px; margin: 0 0 28px; }
#access-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; color: #e1e8e2; }
#access-form input, #access-form select { display: block; width: 100%; min-width: 0; min-height: 50px; margin: 0 0 21px; padding: 12px 14px; border: 1px solid #496068; border-radius: 9px; background: #102029; color: var(--text); font-size: 16px; box-shadow: inset 0 2px 4px #0002; }
#access-form input::placeholder { color: #93a7af; font-size: 14px; opacity: 1; }
#access-form input:hover, #access-form select:hover { border-color: #728986; }
#access-form input:focus-visible, #access-form select:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 3px; }
#access-form .hint { font-size: 12px; color: #b6c6c7; margin: -8px 0 20px; }
#access-dialog #access-submit { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 13px 16px; border: 1px solid #f4d49f; border-radius: 9px; background: var(--gold); color: #17272e; font-weight: 700; font-size: 15px; box-shadow: 0 4px 18px #0002; }
#access-dialog #access-submit:hover:not(:disabled) { background: #f4cf93; }
#access-dialog #access-submit:disabled { opacity: .65; cursor: wait; }
#access-dialog #access-status { min-height: 22px; margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #f2cda0; overflow-wrap: anywhere; }
#access-status:not(:empty) { padding: 10px 12px; border-left: 2px solid var(--gold); background: #e8bd780a; border-radius: 0 6px 6px 0; }
#access-dialog #back-group-access { display: block; margin: 16px auto 8px; padding: 10px; min-height: 44px; color: var(--muted); }
#access-dialog .access-footer { margin: 0 38px; padding: 12px 0; font-size: 11px; }
#access-dialog .teacher-key { width: 44px; height: 44px; border-color: transparent; }
@media (max-width: 720px) {
  #access-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .access-layout { grid-template-columns: minmax(0, 1fr); }
  .access-world { min-height: 170px; padding: 24px; justify-content: flex-start; }
  .access-world::before { background-position: center 43%; }
  .access-story { margin: 22px 0 0; padding: 0; }
  .access-story p { font-size: 27px; margin: 0; }
  .access-story p br { display: none; }
  .access-story .eyebrow, .access-story > span:last-child, .access-caption { display: none; }
  #access-dialog .access-body { padding: 26px 24px 6px; }
  #access-dialog #group-access-tabs { margin-bottom: 24px; }
  .access-heading h2 { font-size: 30px; }
  #access-dialog .access-footer { margin: 0 24px; }
}
@media (max-height: 600px) and (max-width: 720px) {
  .access-world { min-height: auto; padding: 18px 24px; }
  .access-story { display: none; }
}

#access-form select { font-family: inherit; color-scheme: dark; }
#access-form select:disabled { opacity: .65; }
#access-sites-retry { margin: -8px 0 20px; min-height: 44px; }
