/* La hoja del contrato: siempre papel claro, como el documento impreso. */
.hoja { position: relative; background: var(--papel); color: var(--papel-tinta); font-family: var(--f-titulo); font-size: 14px; line-height: 1.6; padding: clamp(24px, 5%, 56px) clamp(20px, 6%, 60px); border-radius: 4px; box-shadow: var(--sombra-hoja); text-align: justify; hyphens: auto; color-scheme: light; }
.hoja h1 { font-size: 16px; font-weight: 600; text-align: center; letter-spacing: .02em; }
.hoja .sub { text-align: center; font-size: 13px; letter-spacing: .06em; margin: 4px 0 18px; }
.hoja h2 { font-size: 14px; font-weight: 600; text-align: center; margin: 20px 0 10px; letter-spacing: .02em; }
.hoja p { margin: 0 0 10px; }
.hoja b { font-weight: 600; }
.hoja .tabla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #c9ccd6; margin: 4px 0 12px; text-align: left; font-family: var(--f-ui); font-size: 12px; }
.hoja .celda { padding: 6px 8px; border-bottom: 1px solid #e1e3ea; border-right: 1px solid #e1e3ea; overflow-wrap: anywhere; }
.hoja .etq { display: block; font-size: 11px; color: #5d6274; letter-spacing: .03em; }
.hoja .firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; text-align: center; font-size: 13px; }
.hoja .firmas > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hoja .rol { font-weight: 600; }
.hoja .linea { width: 100%; border-bottom: 1px solid #222; height: 44px; }
.hoja .nf { font-size: 12px; color: #5d6274; }

/* Datos del usuario dentro del texto */
.dato { background: var(--papel-dato); border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .2s, box-shadow .2s; }
.dato.vacio { background: none; color: #8a8fa0; font-family: var(--f-ui); font-size: .85em; border-bottom: 1px dashed #a9adbd; border-radius: 0; padding: 0 3px; }
.dato.activo { background: #e2d2fb; box-shadow: 0 0 0 2px #5b1fa6; }
.dato.vacio.activo { background: #f3edfd; color: #5b1fa6; border-bottom-color: #5b1fa6; box-shadow: none; }

/* Marca de agua mientras no se paga */
.hoja.con-marca { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='300'%3E%3Ctext x='190' y='160' text-anchor='middle' transform='rotate(-28 190 150)' font-family='Arial,sans-serif' font-weight='700' font-size='44' letter-spacing='6' fill='%235b1fa6' fill-opacity='.07'%3EVISTA PREVIA%3C/text%3E%3C/svg%3E"); }
.hoja:not(.con-marca) .dato { background: none; padding: 0; }
