.consulta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  align-items: start;
  gap: clamp(32px, 8vw, 132px);
  padding-block: clamp(42px, 7vw, 100px);
}
.credit-intro h1 { max-width: 12ch; }
.consulta-papel {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  background: #fff8e9;
  border-top: 2px solid #b48241;
  box-shadow: 0 14px 36px #4339140d;
}
.consulta-papel::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 6px;
  background: linear-gradient(135deg, #fff8e9 25%, transparent 26%) 0 0/12px 12px repeat-x,
    linear-gradient(225deg, #fff8e9 25%, transparent 26%) 0 0/12px 12px repeat-x;
}
form { margin: 0; }
#datos-acceso { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
#guia-dni p { margin-block: .75rem; }
#guia-dni a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
label { display: block; margin: 1rem 0 .35rem; font-size: .93rem; font-weight: 680; }
form > label:first-child { margin-top: 0; }
input, select, button { font: inherit; color: inherit; }
input:not([type="checkbox"]), select {
  display: block; width: 100%; min-height: 48px; padding: .6rem .8rem;
  background: #fffdf7; border: 1px solid #88998b; border-radius: 3px;
}
input:not([type="checkbox"]) { letter-spacing: .13em; }
#ayuda, #datos-vinculo p { margin-block: .65rem 1.15rem; font-size: .91rem; color: var(--muted); }
button {
  width: 100%; min-height: 48px; padding: .7rem 1rem; margin-top: 1.5rem; border: 0;
  background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer;
}
button:hover:not(:disabled) { background: var(--services-green); }
button:focus-visible { outline-color: var(--green); }
button:disabled { opacity: .65; cursor: wait; }
button.secundario { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; margin-top: .35rem; }
button.secundario:hover:not(:disabled) { background: var(--soft); }
.opcion { display: flex; align-items: center; min-height: 44px; gap: .65rem; cursor: pointer; }
.opcion input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--green); }
.etiqueta { color: var(--muted); font-weight: 600; }
#saludo-titular { font: 400 clamp(1.7rem, 4vw, 2.6rem)/1.1 var(--display); margin-bottom: 1.2rem; overflow-wrap: anywhere; }
#resultado h2 { font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
#mis-rifas { padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px dashed var(--line); }
#participaciones p, #saldo-pendiente { margin-block: .65rem; }
#participaciones h3 { margin-block: 1rem .45rem; font-size: .95rem; font-weight: 600; }
#participaciones ul { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: 0 0 .65rem; padding: 0; list-style: none; }
#participaciones li { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
#mis-rifas a, #entrar-rifas:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; }
.cantidad { margin-top: .6rem; border-block: 1px dashed var(--line); padding: 1rem 0; }
.cantidad strong { display: block; font-family: var(--display); font-size: clamp(2.8rem, 6vw, 4.7rem); font-weight: 400; line-height: 1.08; overflow-wrap: anywhere; }
#estado:not(:empty) { margin-top: 1rem; }
#seguridad { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: .7rem; }
#seguridad summary { padding-block: .7rem; cursor: pointer; font-weight: 600; }
#seguridad ul { padding-left: 1.2rem; }
#seguridad li, #seguridad p { margin-block: .7rem; }
#codigo-respaldo { display: block; overflow-wrap: anywhere; font: 600 1.05rem/1.6 monospace; user-select: all; }
#detalle-gestion h2 { margin-top: 1rem; font-size: 1.2rem; }
#estado[data-error="true"] { color: #89381f; }
@media (max-width: 700px) {
  .consulta-layout { grid-template-columns: 1fr; gap: 22px; padding-block: 24px 45px; }
  .credit-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .54fr); gap: 12px; align-items: center; }
  .credit-intro h1 { font-size: clamp(2.65rem, 9.7vw, 3.75rem); }
  .credit-intro::after { width: min(100%, 140px); margin: 0; justify-self: end; }
  .consulta-papel { padding: 22px clamp(17px, 5vw, 30px) 26px; }
}

