/* Portada elegida por CEAA: «Ruta de estudio». */
body:has(#access:not([hidden])) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: white;
}

#principal:has(#access:not([hidden])) {
  display: grid;
  align-content: center;
  flex: 1;
}

.site-head:has(.head-label) .head-in {
  min-height: 0;
  padding-block: 16px;
}

.site-head:has(.head-label) .brand {
  gap: clamp(10px, 1.5vw, 19px);
}

.site-head:has(.head-label) .brand img {
  width: clamp(72px, 8vw, 100px);
  height: auto;
  flex: none;
  border-radius: 18%;
}

.site-head:has(.head-label) .brand strong {
  color: var(--ruta-tinta);
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  letter-spacing: -.045em;
}

.site-head:has(.head-label) .brand span {
  color: var(--ruta-tinta);
  font-size: clamp(.8rem, 1.3vw, 1rem);
}

.site-head .head-label {
  color: var(--ruta-muted);
}

.head-label .live-dot {
  display: none;
}

.access-grid.frame {
  width: min(1000px, calc(100% - 64px));
  min-height: 0;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(35px, 5.5vw, 72px);
  padding-block: clamp(40px, 6vw, 80px);
}

.route-welcome {
  display: grid;
  align-content: center;
  min-height: 386px;
  padding: clamp(24px, 3.7vw, 50px);
  border-radius: 17px;
  background: var(--ruta-panel);
  color: var(--ruta-tinta);
}

.route-welcome h1 {
  margin: 0 0 19px;
  font-size: clamp(2.15rem, 4vw, 3rem);
  line-height: 1.09;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.route-welcome p {
  color: var(--ruta-muted);
  line-height: 1.6;
}

.route-steps {
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.route-steps li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 11px;
  border-top: 1px solid var(--ruta-linea);
  font-weight: 700;
}

.route-steps li:last-child {
  padding-bottom: 0;
}

.route-steps span {
  flex: none;
  color: var(--ruta-azul);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
}

#access .login-card {
  width: min(100%, 355px);
  min-width: 0;
  justify-self: center;
  margin: 0;
  padding: 0;
  background: white;
  color: var(--ruta-tinta);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#auth-title {
  margin: 0 0 7px;
  font-size: clamp(1.65rem, 3vw, 2.06rem);
  line-height: 1.2;
  letter-spacing: -.045em;
  font-weight: 700;
}

#auth-hint {
  width: fit-content;
  margin-inline: auto;
  color: var(--ruta-muted);
}

#provider-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

#provider-options > button {
  margin: 0;
  border-radius: 8px;
  min-height: 48px;
}

#use-email {
  background: var(--ruta-azul);
  color: white;
  border-color: var(--ruta-azul);
}

#use-email:hover {
  background: #1c4161;
}

.login-card .auth-switch {
  margin-top: 22px;
  padding-top: 12px;
  color: var(--ruta-muted);
}

.auth-switch .plain,
.login-card .sample-link {
  color: var(--ruta-azul);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.login-card .sample-link {
  display: flex;
  margin: 2px auto 0;
}

.site-foot .foot-in {
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.footer-links :is(.plain, .access-privacy-link) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0;
  font: inherit;
  color: var(--ruta-muted);
  text-underline-offset: .18em;
}

@media (max-width: 740px) {
  .access-grid.frame {
    width: min(calc(100% - 32px), 480px);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 22px 30px;
  }

  .site-head:has(.head-label) .head-in {
    padding-block: 10px;
  }

  .route-welcome {
    min-height: 0;
    padding: 17px 20px;
    border-radius: 12px;
  }

  .route-welcome h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 6.8vw, 2.25rem);
  }

  .route-welcome p {
    font-size: .93rem;
    line-height: 1.45;
  }

  .route-steps {
    margin-top: 13px;
  }

  .route-steps li {
    padding-block: 5px;
    gap: 13px;
    font-size: .9rem;
  }

  #provider-options {
    margin-top: 15px;
  }

  .site-foot .foot-in,
  .footer-links,
  .foot-in .foot-brand {
    justify-content: center;
  }

  .foot-in .foot-brand {
    width: 100%;
  }

  .footer-links {
    column-gap: 14px;
  }
}
