*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.acceso {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: 1fr;
  background: var(--papel); color: var(--tinta);
  font-family: var(--fuente_ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--dorado) 30%, transparent); }

.acceso-foto { display: none; }

.acceso-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--dorado) 16%, transparent), transparent 60%),
    var(--papel);
}

.acceso-tarjeta { width: 100%; max-width: 400px; }

.acceso-marca {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--tinta_2); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.acceso-marca img { width: 34px; height: 34px; object-fit: contain; }
.acceso-marca:hover { color: var(--tinta); }

.acceso-cab { margin: 36px 0 26px; }
.acceso-cab h1 {
  margin: 0 0 8px;
  font-family: var(--fuente_titulos); font-style: italic; font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 3.2rem); line-height: 1; letter-spacing: 0;
  color: var(--tinta);
}
.acceso-cab p { margin: 0; color: var(--tinta_3); font-size: 14.5px; }
.acceso-cab strong { color: var(--tinta); }
.acceso-paso {
  display: inline-block; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dorado_texto);
}

.acceso-aviso {
  margin: 0 0 18px; padding: 11px 14px;
  border-radius: var(--radio_s); border: 1px solid color-mix(in srgb, var(--rojo) 30%, transparent);
  background: var(--rojo_claro); color: var(--rojo);
  font-size: 14px; font-weight: 500;
  animation: acceso-temblor .4s var(--curva);
}

.acceso-form { display: grid; gap: 18px; }
.acceso-campo { display: grid; gap: 7px; }
.acceso-campo label { font-size: 13px; font-weight: 600; color: var(--tinta_2); }
.acceso-campo input {
  width: 100%; height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--tinta);
  background: var(--papel_2); border: 1px solid var(--linea_fuerte); border-radius: var(--radio);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.acceso-campo input::placeholder { color: var(--tinta_3); opacity: .7; }
.acceso-campo input:focus {
  border-color: var(--primario);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dorado) 22%, transparent);
}
.acceso-codigo { text-align: center; letter-spacing: .28em; font-variant-numeric: tabular-nums; font-weight: 600; }

.acceso-clave { position: relative; }
.acceso-clave input { padding-right: 50px; }
.acceso-ojo {
  position: absolute; top: 4px; right: 4px; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--radio_s); background: transparent; color: var(--tinta_3); cursor: pointer;
}
.acceso-ojo:hover { color: var(--tinta); background: var(--hover); }
.acceso-ojo:focus-visible { outline: 2px solid var(--primario); outline-offset: 1px; }
.acceso-ojo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acceso-ojo .tachado { display: none; }
.acceso-ojo[aria-pressed="true"] .tachado { display: inline; }
.acceso-mayus { margin: 0; font-size: 12.5px; color: var(--dorado_texto); font-weight: 500; }

.acceso-captcha { display: flex; justify-content: center; }

.acceso-boton {
  width: 100%; height: 48px; margin-top: 4px;
  border: 0; border-radius: var(--radio);
  background: var(--primario); color: var(--sobre_primario);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s;
}
.acceso-boton:hover { background: var(--primario_hover); }
.acceso-boton:active { transform: scale(.985); }
.acceso-boton:focus-visible { outline: 2px solid var(--dorado); outline-offset: 2px; }
.acceso-boton:disabled { opacity: .7; cursor: progress; }
.acceso-boton.secundario { background: transparent; color: var(--tinta); border: 1px solid var(--linea_fuerte); }
.acceso-boton.secundario:hover { background: var(--hover); }

.acceso-nota { margin: 0; text-align: center; font-size: 12.5px; color: var(--tinta_3); font-variant-numeric: tabular-nums; }
.acceso-nota.vencido { color: var(--rojo); font-weight: 600; }

.acceso-qr { display: flex; justify-content: center; margin: 0 0 14px; padding: 16px; background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); }
.acceso-qr svg { width: 200px; height: 200px; }
.acceso-manual { margin: 0 0 20px; font-size: 13px; color: var(--tinta_3); text-align: center; }
.acceso-manual summary { cursor: pointer; }
.acceso-manual p { margin: 8px 0 0; font-family: var(--fuente_codigo); word-break: break-all; user-select: all; color: var(--tinta); }

.acceso-hoja { margin: 0 0 20px; }
.acceso-hoja__titulo { display: none; }
.acceso-codigos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acceso-codigos li {
  padding: 10px; text-align: center;
  font-family: var(--fuente_codigo); font-size: 14px; color: var(--tinta);
  background: var(--papel_2); border: 1px solid var(--linea); border-radius: var(--radio_s);
}
.acceso-acciones { display: grid; gap: 10px; }
.acceso-enlace { text-align: center; padding: 8px; font-weight: 600; font-size: 14px; color: var(--dorado_texto); }

.acceso-pie { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--linea); text-align: center; }
.acceso-pie:not(:has(a)) { display: none; }
.acceso-pie a { font-size: 13.5px; font-weight: 500; color: var(--tinta_3); text-decoration: none; }
.acceso-pie a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }

@keyframes acceso-temblor {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (min-width: 900px) {
  body.acceso { grid-template-columns: minmax(0, 1.15fr) minmax(440px, 1fr); }
  .acceso-foto { display: block; position: relative; overflow: hidden; background: #1c1714; }
  .acceso-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
  .acceso-foto::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,14,10,.15) 0%, rgba(20,14,10,.25) 45%, rgba(20,14,10,.78) 100%);
  }
  .acceso-panel { padding: 56px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .acceso-aviso { animation: none; }
  .acceso-boton { transition: none; }
}

@media print {
  body.acceso { display: block; background: #fff; color: #000; }
  .acceso-foto, .acceso-marca, .acceso-cab, .acceso-acciones, .acceso-pie, .acceso-aviso { display: none !important; }
  .acceso-panel { padding: 0; background: none; }
  .acceso-hoja__titulo { display: block; font-weight: 700; margin: 0 0 12px; }
  .acceso-codigos li { border-color: #999; background: #fff; color: #000; }
}
