/* Registro de compañías: página pública, cuestionario con carrito, pedido del cliente, panel y plantillas. */
.fm-preview { display: flex; gap: .5rem; align-items: center; padding: .6rem 1rem; margin: 0 0 1rem; background: var(--lb-marigold-100); border: 1px solid #f0d58d; border-radius: var(--lb-radius-sm); color: #5b4a1e; font-size: .9rem; }
.fm-done { border-left: 4px solid var(--lb-ok); }
.fm-copy { user-select: all; padding: .1rem .4rem; border-radius: 6px; background: var(--lb-marigold-100); }

.fm-types, .fm-options { display: grid; gap: .75rem; }
.fm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-choice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--lb-rule); border-radius: var(--lb-radius-sm); cursor: pointer; background: #fff; }
.fm-choice:has(input:checked) { border-color: var(--lb-teal); background: #f3f9f7; }
.fm-choice input { margin-top: .25rem; flex: none; }
.fm-person { padding: .5rem 0; border-bottom: 1px dashed var(--lb-rule); }
.fm-person:last-of-type { border-bottom: 0; }

.fm-cart { position: sticky; top: 5.5rem; }
.fm-lines { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.fm-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.fm-lines li.is-state { color: var(--lb-muted); }
.fm-totals { display: grid; gap: .3rem; padding: .75rem 0; margin-bottom: .75rem; border-top: 1px solid var(--lb-rule); border-bottom: 1px solid var(--lb-rule); }
.fm-totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.fm-totals .is-total { font-size: 1.15rem; color: var(--lb-ink); padding-top: .35rem; }
.fm-totals .is-total strong { font-family: var(--lb-serif); font-size: 1.5rem; }
.fm-carttable td, .fm-carttable th, .fm-pricetable td, .fm-pricetable th { padding: .4rem .25rem; font-size: .93rem; vertical-align: top; }
.fm-carttable thead th, .fm-pricetable thead th { font-weight: 600; color: var(--lb-muted); font-size: .8rem; }

.fm-auth { max-height: 18rem; overflow: auto; padding: 1rem 1.1rem; border: 1px solid var(--lb-rule); border-radius: var(--lb-radius-sm); background: var(--lb-paper); font-size: .93rem; }
.fm-auth .fd-h1 { font-size: 1.05rem; margin: 0 0 .6rem; text-align: left; }
.fm-agreement { padding-left: 1.2rem; display: grid; gap: .65rem; font-size: .95rem; }
.fm-tinbox { border-width: 2px; }
.fm-tinvalue { display: inline-block; margin: .4rem 0; font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

@media (max-width: 991.98px) { .fm-cart { position: static; } }
@media (max-width: 575.98px) { .fm-types { grid-template-columns: 1fr; } }

/* Plantillas (Operating Agreement, Bylaws, autorización): hoja para leer e imprimir */
.fd-page { margin: 0; background: #eceae4; font-family: Georgia, 'Times New Roman', serif; color: #1c1c1c; }
.fd-bar { padding: .7rem 1rem; background: #0d2b2b; color: #fff; font: 14px/1.4 system-ui, sans-serif; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fd-bar a { color: #f3c969; }
.fd-sheet { max-width: 8.5in; margin: 1.5rem auto; padding: 1in; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .12); line-height: 1.5; font-size: 12pt; }
.fd-h1 { font-size: 16pt; text-align: center; margin: .5rem 0 .25rem; }
.fd-center { text-align: center; }
.fd-sheet h2 { font-size: 12pt; margin: 1.1rem 0 .3rem; }
.fd-sheet table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.fd-sheet th, .fd-sheet td { border: 1px solid #555; padding: .3rem .45rem; text-align: left; font-size: 11pt; }
.fd-note { font-size: 10pt; color: #444; }
.fd-sheet > .fd-note:first-child { padding: .6rem .8rem; border: 1px solid #b8860b; background: #fff8e6; }
.fd-blank { border-bottom: 1px solid #000; }
.fd-sign { margin-top: 1.6rem; }
@media print {
  .fd-bar { display: none; }
  .fd-page { background: #fff; }
  .fd-sheet { margin: 0; padding: 0; box-shadow: none; max-width: none; }
}

/* Resumen de datos (área del cliente) y lista de hechos del carrito */
.fm-list { list-style: none; margin: 0; padding: 0; }
.fm-list li { display: grid; grid-template-columns: minmax(9rem, 34%) 1fr; gap: .25rem 1rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--lb-rule); font-size: .95rem; }
.fm-list li:last-child { border-bottom: 0; }
.fm-cart .facts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; font-size: .9rem; color: var(--lb-muted); }
.fm-cart .facts .icon { margin-right: .35rem; color: var(--lb-teal); }
.fm-for[hidden], .fm-if[hidden] { display: none !important; }
@media (max-width: 575.98px) { .fm-list li { grid-template-columns: 1fr; } }
.panel .check-list { list-style: none; padding-left: 0; display: grid; gap: .4rem; }
.panel .check-list li { display: flex; gap: .5rem; align-items: flex-start; }
.panel .check-list .icon { flex: none; margin-top: .2rem; color: var(--lb-teal); }
