/* Ingreso del sistema: panel espejo. Colores fijos para que el tema de Bootstrap no cambie la pieza. */
body.acceso {
  margin: 0;
  min-height: 100%;
  color-scheme: light;
  font-family: Poppins, "Segoe UI", sans-serif;
  color: #142033;
  background: #f5f7fb !important;
  text-rendering: optimizeLegibility;
}

body.acceso button,
body.acceso input {
  font-family: inherit;
}

body.acceso .saltar {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: #003077;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

body.acceso .saltar:focus {
  top: 12px;
}

body.acceso .kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0042a3;
}

body.acceso h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #10243f;
  text-wrap: balance;
}

body.acceso .bajada {
  margin: 8px 0 0;
  color: #4a5a6e;
  font-size: 0.95rem;
  line-height: 1.55;
}

body.acceso .form-acceso {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

body.acceso .campo label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #142033;
}

body.acceso .campo-caja {
  position: relative;
}

body.acceso .campo-caja > .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5e6e82;
  font-size: 1.05rem;
  pointer-events: none;
}

body.acceso .campo-caja input {
  width: 100%;
  height: 52px;
  border: 1px solid #d5dbe3;
  border-radius: 14px;
  background: #f7f9fc;
  color: #142033;
  padding: 0 58px 0 42px;
  font-size: 16px;
}

body.acceso .campo-caja input:focus {
  outline: none;
  border-color: #003077;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 48, 119, 0.16);
}

body.acceso .contador {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #5e6e82;
  font-variant-numeric: tabular-nums;
}

body.acceso .contador.listo {
  color: #157a32;
}

body.acceso .ojo {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3e4d61;
  display: grid;
  place-items: center;
  cursor: pointer;
}

body.acceso .ojo:hover {
  color: #003077;
  background: rgba(0, 48, 119, 0.06);
}

body.acceso .aviso-mayus {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #4a5a6e;
}

body.acceso .btn-acceder {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: #003077;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

body.acceso .btn-acceder:hover {
  background: #0042a3;
  color: #fff;
}

body.acceso .olvido {
  margin: 0;
  text-align: center;
}

body.acceso .olvido a,
body.acceso .btn-texto {
  color: #0042a3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

body.acceso .olvido a:hover,
body.acceso .btn-texto:hover {
  text-decoration: underline;
}

body.acceso .shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

body.acceso .marca {
  position: relative;
  overflow: hidden;
  background: #003077;
}

body.acceso .marca-pie {
  position: relative;
  z-index: 2;
  padding: 16px 20px 14px;
}

body.acceso .marca-pie img {
  width: min(180px, 58vw);
  height: auto;
  display: block;
}

body.acceso .marca-pie p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

body.acceso .panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 36px;
}

body.acceso .bloque {
  width: min(420px, 100%);
}

body.acceso .formas,
body.acceso .formas.is-on {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

body.acceso .cielo {
  overflow: hidden;
}

body.acceso .cielo-estrellas {
  opacity: 0;
}

html[data-cielo="noche"] body.acceso .cielo-estrellas {
  opacity: 1;
}

html[data-cielo="noche"] body.acceso .estrella {
  animation: estrella-brilla 3.8s ease-in-out infinite;
}

@keyframes estrella-brilla {
  0%,
  100% { opacity: 0.28; }
  50% { opacity: 1; }
}

body.acceso .formas-frase {
  display: none;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 12, 32, 0.9), 0 8px 18px rgba(0, 12, 32, 0.55);
}

body.acceso .formas-autor {
  display: block;
  margin-top: 8px;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

body.acceso .icono-paso {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7eef8;
  color: #003077;
  font-size: 1.7rem;
}

body.acceso .icono-paso.peligro {
  background: #fde8ea;
  color: #c80e0e;
}

body.acceso .qr-acceso {
  width: 168px;
  height: 168px;
  margin: 8px auto 14px;
  display: block;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 12px;
}

body.acceso .persona {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 600;
  color: #10243f;
}

body.acceso .codigo-seis {
  letter-spacing: 0.42em;
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

body.acceso .campo-codigo .campo-caja input {
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 767.98px), (max-width: 959.98px) and (orientation: landscape) {
  body.acceso .marca {
    min-height: 0;
    padding: 0;
  }

  body.acceso .formas-frase {
    display: none;
  }
}

@media (min-width: 768px) and (orientation: portrait) {
  body.acceso {
    background: #003077 !important;
  }

  body.acceso .shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 96px 28px 132px;
  }

  body.acceso .marca {
    position: fixed;
    inset: 0;
    min-height: 0;
    padding: 0;
    z-index: 0;
  }

  body.acceso .formas.is-on {
    display: block;
  }

  body.acceso .panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    padding: 0;
    background: transparent;
  }

  body.acceso .bloque {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px 22px;
    box-shadow: 0 22px 50px rgba(4, 18, 46, 0.28);
  }

  body.acceso .marca-pie {
    position: absolute;
    top: 24px;
    right: 28px;
    left: auto;
    bottom: auto;
    width: auto;
    padding: 0;
    background: none;
    text-align: right;
  }

  body.acceso .marca-pie img {
    width: 168px;
  }

  body.acceso .marca-pie p {
    display: none;
  }

  body.acceso .formas-frase {
    display: block;
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    top: auto;
    max-width: 460px;
    font-size: 1.12rem;
  }

  body.acceso .formas-autor {
    font-size: 0.78rem;
  }
}

@media (min-width: 960px) and (orientation: landscape) {
  body.acceso .shell {
    grid-template-columns: minmax(420px, 0.92fr) minmax(320px, 1.08fr);
    grid-template-rows: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.acceso .panel {
    order: 1;
    padding: 40px 36px;
  }

  body.acceso .marca {
    order: 2;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.acceso .marca-pie {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 36px 32px;
    background: linear-gradient(180deg, transparent, rgba(4, 18, 46, 0.88) 72%);
  }

  body.acceso .marca-pie img {
    width: min(280px, 70%);
  }

  body.acceso .formas.is-on {
    display: block;
  }

  body.acceso .formas-frase {
    display: block;
    position: absolute;
    z-index: 1;
    left: 48px;
    right: auto;
    top: 13%;
    bottom: auto;
    max-width: 340px;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.3;
    text-shadow: none;
  }

  body.acceso .formas-autor {
    margin-top: 12px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.acceso .estrella {
    animation: none !important;
  }
}
