/* Socios: lo propio del módulo (lo común está en /shared/base.css). */
/* ---------- pestañas del apartado interno ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; border: 2px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); background: var(--paper); cursor: pointer; }
/* ================= Socios ================= */
/* ---------- página pública ---------- */
.small-view { min-height: 20vh; }
.sub-grid { grid-column: 1 / -1; }
.form-actions.center { justify-content: center; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.list-head h2 { font-size: 18px; }
.socio-cards { display: grid; gap: 12px; }
.socio-card { padding: 16px 18px; display: grid; gap: 10px; }
.socio-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.socio-card-head h3 { font-size: 17px; }
.socio-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 0; font-size: 14px; }
.socio-card-grid dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.socio-card-grid dd { margin: 0; overflow-wrap: anywhere; }
.socio-card .form-actions { margin-top: 0; }
.entrar-card { padding: 16px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.entrar-card h2 { font-size: 17px; margin-bottom: 4px; }
.entrar-card > div { flex: 1 1 300px; }
.renovando-box { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.lic-options { display: grid; gap: 8px; }
.lic-option { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; background: var(--surface); }
.lic-option:hover { border-color: var(--muted); }
.lic-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.lic-option input { margin: 0; flex: none; }
.lic-body { display: grid; flex: 1; min-width: 0; }
.lic-title { font-weight: 650; }
.lic-detail { font-size: 13px; color: var(--muted); }
.lic-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pago-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
@media (max-width: 720px) {
  .pago-box { grid-template-columns: 1fr; }
}
.pago-lineas { display: grid; gap: 4px; align-content: start; font-size: 14px; }
.pago-lineas div { display: flex; justify-content: space-between; gap: 12px; }
.pago-lineas .grand { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.pago-datos { display: grid; gap: 6px; font-size: 14px; align-content: start; }
.copy-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.copy-row code { font: 600 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; overflow-wrap: anywhere; }
em.muted { font-style: normal; font-weight: 400; }
/* ---------- estados ---------- */
.badge-pend { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.badge-nacional { background: var(--info-soft); color: var(--info); }
.badge-escolar { background: #efe6fa; color: #6a3fa0; }
@media (prefers-color-scheme: dark) {
  .badge-escolar { background: #2d2340; color: #c9a8f0; }
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-right: 6px; vertical-align: 1px; }
.dot-ok { background: var(--accent); }
.dot-warn { background: #d99a00; }
.dot-no { background: var(--red); }
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: currentColor; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cuenta-email { overflow-wrap: anywhere; }
.list-foot { margin-top: 10px; }
.card-title { font-size: 16px; margin-bottom: 6px; }
.align-end { align-self: end; padding-bottom: 8px; }
.error-text { color: var(--red); }
.warn-text { color: var(--warn); font-weight: 600; }
table.data td.c-check, table.data th:first-child:has(input) { width: 1%; }
.stat .doc-sub { margin-top: 2px; }
.req-meta { display: grid; justify-items: end; gap: 2px; }
.req-meta strong { font-size: 17px; }
.req-off { opacity: .7; }
.obs { font-size: 14px; }
.hist summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; position: sticky; top: 64px; z-index: 2; }
/* ficha */
.ficha-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.field .static { padding: 8px 0; }
.form-grid h3.section-title { font-size: 14px; }
.cuenta-box { display: grid; gap: 4px; }
.hist-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hist-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hist-list li:first-child { border-top: 0; }
.cred-box { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; justify-items: start; }
.cred-box > div { display: grid; gap: 2px; }
.cred-box code { font: 600 16px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.input-suffix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); overflow: hidden; }
.input-suffix input { border: 0; border-radius: 0; flex: 1; }
.input-suffix span { padding: 0 10px; color: var(--muted); white-space: nowrap; font-size: 14px; }
.input-suffix:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.input-suffix input:focus { outline: 0; }
.lote-list { display: grid; gap: 4px; max-height: 45vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.lote-list .badge { margin-left: 6px; }
.lote-progress { font-weight: 600; color: var(--accent-strong); min-height: 1.5em; }
.dialog-body > * + * { margin-top: 10px; }
.dialog-body .form-grid > * + * { margin-top: 0; }
/* importación */
.import-body { display: grid; gap: 16px; margin-top: 16px; }
.dropzone svg { color: var(--accent); }
.dropzone p { margin: 0; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 14px; margin-top: 10px; }
.map-row { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.map-off { opacity: .6; border-style: dashed; }
.map-head { font-weight: 600; font-size: 13.5px; display: grid; }
.map-head small { font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-wrap { max-height: 60vh; overflow: auto; }
table.preview th { position: sticky; top: 0; background: var(--surface); }
.result-box ul { margin: 6px 0; padding-left: 18px; }
/* ajustes: tipos de licencia */
.lic-edit { display: grid; gap: 6px; margin-bottom: 8px; }
.lic-edit-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 110px 90px 80px 80px auto auto; gap: 6px; align-items: center; }
.lic-edit-head span { font-size: 12px; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) {
  .lic-edit-row { grid-template-columns: 70px minmax(0, 1fr) 100px 80px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
  .lic-edit-head { display: none; }
}
/* ---------- móvil ---------- */
@media (max-width: 720px) {
  .view-head .actions select { flex: 1 1 100%; }
  table.data:not(.preview) thead { display: none; }
  table.data:not(.preview) tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data:not(.preview) tbody tr:last-child { border-bottom: 0; }
  table.data:not(.preview) td { border: 0; padding: 0; min-width: 0; grid-column: 1 / -1; }
  table.data:not(.preview) td:first-child { grid-column: 1; }
  table.data:not(.preview) td.c-acc { grid-column: 2; grid-row: 1; width: auto; }
  .lic-table td.c-check { grid-column: 2; grid-row: 1; }
  .lic-table td.c-check + td { grid-column: 1; grid-row: 1; }
  .lic-table td.c-acc { grid-column: 1 / -1; grid-row: auto; }
  .req-meta { justify-items: start; }
  .copy-row { grid-template-columns: 1fr auto; }
  .copy-row .label { grid-column: 1 / -1; }
}
.lic-group { display: grid; gap: 8px; }
.lic-group + .lic-group { margin-top: 10px; }
.lic-group legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.badge-junta { background: #fde8c8; color: #8a4b00; }
@media (prefers-color-scheme: dark) {
  .badge-junta { background: #3d2a12; color: #f5c27a; }
}
.junta-card { margin-bottom: 14px; display: grid; gap: 10px; }
.junta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 18px; font-size: 14px; }
.junta-grid ul { margin: 4px 0 0; padding-left: 18px; }
.cat-edit { display: grid; gap: 6px; margin-bottom: 8px; max-width: 620px; }
.cat-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 110px auto; gap: 6px; align-items: center; }
.cat-edit-head span { font-size: 12px; font-weight: 700; color: var(--muted); }
.a-mano[open] summary { margin-bottom: 8px; }
.a-mano select { min-width: 220px; }
.a-mano select[aria-invalid="true"] { border-color: var(--red); }
.a-cargo { margin-left: 8px; vertical-align: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 600; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.cargo-add { display: flex; gap: 6px; margin-top: 6px; }
.cargo-add input { flex: 1; }
.buscador { display: grid; gap: 6px; margin-top: 6px; }
.buscador-res:empty { display: none; }
.resp-lista { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.resp-fila { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.resp-opciones { display: grid; gap: 4px; }
