:root { --esc-morado: #6f42c1; --esc-morado-osc: #5a32a3; --esc-rosa: #e83e8c; }
body { background: #f5f0ff; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.esc-ancho { max-width: 820px; }
.esc-cabecera { background: linear-gradient(135deg, var(--esc-morado) 0%, var(--esc-rosa) 100%); color: #fff; padding: .9rem 0; }
.esc-logo { height: 52px; width: auto; }
.esc-marca { font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.esc-pie { background: #ece6f7; color: #555; padding: 1.25rem 0; margin-top: 2rem; }
.esc-pie a { color: var(--esc-morado); }
.esc-tarjeta { border: 0; border-radius: .75rem; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.esc-tarjeta-enlace { color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.esc-tarjeta-enlace:hover, .esc-tarjeta-enlace:focus-visible { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1); }
.esc-seccion { font-size: 1rem; font-weight: 700; color: var(--esc-morado); border-bottom: 2px solid #e9e1f7; padding-bottom: .4rem; margin-bottom: 1rem; }
.esc-obl { color: #dc3545; }
.esc-pago { background: #fff8e1; border-left: 4px solid #ffc107; }
.esc-icono-grande { font-size: 3.5rem; line-height: 1; }
.btn-esc { background: var(--esc-morado); border-color: var(--esc-morado); color: #fff; }
.btn-esc:hover, .btn-esc:focus { background: var(--esc-morado-osc); border-color: var(--esc-morado-osc); color: #fff; }
.esc-firma { position: relative; border: 2px dashed #c9bde3; border-radius: .5rem; background: #fff; touch-action: none; }
.esc-firma.esc-firma-error { border-color: #dc3545; }
.esc-firma canvas { display: block; width: 100%; height: 170px; cursor: crosshair; }
.esc-firma-pista { position: absolute; left: 0; right: 0; bottom: .4rem; text-align: center; font-size: .8rem; color: #aaa; pointer-events: none; }
.esc-firma.esc-firmada .esc-firma-pista { display: none; }
.esc-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575.98px) {
  .esc-logo { height: 42px; }
  .esc-firma canvas { height: 150px; }
}
