/* ===== El Encargado — estilos ===== */
:root {
  --bg: #faf6f1; --bg2: #f3ebe2; --card: #ffffff; --tx: #2b1d14; --tx2: #6b5b4f; --tx3: #8a7a6e;
  --line: #e6d9cc; --acc: #b0472e; --acc2: #8c3520; --acc-soft: #f6e3dc; --ok: #2f7d4f; --ok-soft: #e1f2e7;
  --warn: #b7791f; --warn-soft: #fcf1d9; --bad: #c0392b; --bad-soft: #fbe2df; --info: #2f6690; --info-soft: #e1edf6;
  --r: 14px; --r2: 10px; --sh: 0 1px 2px rgba(60, 35, 20, .06), 0 4px 16px rgba(60, 35, 20, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1b1512; --bg2: #241c18; --card: #2a211c; --tx: #f3e9df; --tx2: #c7b5a6; --tx3: #9c8a7c; --line: #3d302a; --acc: #e0795c; --acc2: #f09a80; --acc-soft: #3b2620; --ok: #6cc78f; --ok-soft: #1f3327; --warn: #e5b45a; --warn-soft: #3a2f19; --bad: #f07a6c; --bad-soft: #3d201d; --info: #79b3e0; --info-soft: #1c2d3a; --sh: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #1b1512; --bg2: #241c18; --card: #2a211c; --tx: #f3e9df; --tx2: #c7b5a6; --tx3: #9c8a7c; --line: #3d302a; --acc: #e0795c; --acc2: #f09a80; --acc-soft: #3b2620; --ok: #6cc78f; --ok-soft: #1f3327; --warn: #e5b45a; --warn-soft: #3a2f19; --bad: #f07a6c; --bad-soft: #3d201d; --info: #79b3e0; --info-soft: #1c2d3a; --sh: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.5 var(--font); overflow-x: hidden; }
a { color: var(--acc); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cab .wrap { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tx); font-weight: 800; font-size: 1.05rem; margin-right: auto; min-width: 0; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { display: block; font-weight: 500; font-size: .72rem; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.cab-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: 0; color: var(--tx2); font: 600 .66rem var(--font); padding: 6px 7px; border-radius: 10px; cursor: pointer; text-decoration: none; position: relative; min-width: 48px; }
.cab-btn:hover { background: var(--bg2); color: var(--tx); }
.cab-btn.copia { color: var(--acc); }
.cab-btn b { position: absolute; top: 2px; right: 6px; background: var(--tx3); color: #fff; border-radius: 9px; font-size: .62rem; padding: 0 5px; min-width: 16px; line-height: 16px; }
.cab-btn.hay b { background: var(--warn); }
.cab-btn.rojo b { background: var(--bad); }
.cab-btn i { font-style: normal; }
@media (max-width: 759px) { .cab-btn.solo-desk, .solo-desk-i { display: none; } .logo small { max-width: 38vw; } .cab .wrap { gap: 2px; } }
@media (min-width: 760px) { .cab-btn { flex-direction: row; font-size: .82rem; gap: 6px; padding: 8px 10px; } .cab-btn b { position: static; } }

/* Contenido */
main { padding: 18px 0 40px; }
.migas { font-size: .85rem; color: var(--tx3); margin-bottom: 8px; }
.migas a { color: var(--tx2); text-decoration: none; }
.sub { color: var(--tx2); margin: -.2em 0 1em; max-width: 70ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.tool { min-height: 240px; }
.tool > .vacio:only-child { margin: 40px 0; }
.noscript { padding: 20px; background: var(--warn-soft); border-radius: var(--r2); }
.banda-setup, .banda-copia { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--info-soft); color: var(--tx); border-radius: var(--r2); padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.banda-copia { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--warn-soft); box-shadow: var(--sh); max-width: 640px; margin: 0 auto; }
.banda-copia span { flex: 1; min-width: 180px; }
.banda-copia .x { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--tx2); }
.privacidad { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--tx2); margin: 10px 0 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--acc); background: var(--acc); color: #fff; font: 700 .95rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; touch-action: manipulation; }
.btn:hover { background: var(--acc2); border-color: var(--acc2); }
.btn:focus-visible, .cab-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 50%, transparent); outline-offset: 2px; }
.btn.sec { background: var(--card); color: var(--tx); border-color: var(--line); }
.btn.sec:hover { background: var(--bg2); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.peligro { background: var(--card); color: var(--bad); border-color: var(--bad-soft); }
.btn.mini { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.grande { min-height: 56px; font-size: 1.05rem; padding: 12px 22px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.acciones.der { justify-content: flex-end; }

/* Formularios */
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.campo.full { grid-column: 1 / -1; }
.campo label { font-size: .85rem; font-weight: 600; color: var(--tx2); }
.campo small { color: var(--tx3); font-size: .78rem; }
.campo.check label { display: flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--tx); font-weight: 500; min-height: 44px; }
.req { color: var(--bad); }
input, select, textarea { font: 16px var(--font); color: var(--tx); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; accent-color: var(--acc); }
input[type=color] { padding: 4px; }
input.err { border-color: var(--bad); }
.suf { position: relative; }
.suf input { padding-right: 34px; }
.suf span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--tx3); pointer-events: none; }
.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.fila > * { flex: 1 1 160px; }
.fila > .btn { flex: 0 0 auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--r2); padding: 12px; margin: 0 0 12px; }
legend { font-weight: 700; padding: 0 6px; }

/* Tablas */
.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th, .tabla td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { background: var(--bg2); font-size: .8rem; color: var(--tx2); font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla td.num, .tabla th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla td.acc { text-align: right; white-space: nowrap; }
.tabla tfoot td { font-weight: 700; background: var(--bg2); }
@media (max-width: 640px) {
  .tabla.resp thead { display: none; }
  .tabla.resp tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .tabla.resp td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 12px; text-align: right; }
  .tabla.resp td::before { content: attr(data-l); color: var(--tx3); font-size: .82rem; text-align: left; }
}

/* Pestañas */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--tx2); border-radius: 999px; padding: 9px 16px; font: 600 .9rem var(--font); cursor: pointer; min-height: 42px; }
.tabs button[aria-selected="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }

/* Modal */
dialog.modal { border: 0; padding: 0; border-radius: 18px; width: min(680px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); background: var(--card); color: var(--tx); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog.modal.ancho { width: min(980px, calc(100vw - 20px)); }
dialog::backdrop { background: rgba(30, 18, 10, .5); }
.modal-in { display: flex; flex-direction: column; max-height: calc(100dvh - 20px); }
.modal-in header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-in header h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.modal-in .x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--tx2); width: 44px; height: 44px; }
.modal-body { padding: 16px; overflow: auto; }
.modal-in footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sp { flex: 1; }
body.con-modal { overflow: hidden; }

/* Avisos */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: var(--tx); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: calc(100vw - 32px); font-weight: 600; box-shadow: var(--sh); }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
.aviso-legal { font-size: .78rem; color: var(--tx3); margin: 12px 0 0; padding-left: 10px; border-left: 3px solid var(--line); }
.nota { background: var(--bg2); border-radius: var(--r2); padding: 10px 12px; font-size: .9rem; color: var(--tx2); }
.vacio { text-align: center; color: var(--tx2); padding: 28px 12px; border: 2px dashed var(--line); border-radius: var(--r); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg2); color: var(--tx2); white-space: nowrap; }
.chip.verde, .verde > .v { background: var(--ok-soft); color: var(--ok); }
.chip.ambar { background: var(--warn-soft); color: var(--warn); }
.chip.rojo { background: var(--bad-soft); color: var(--bad); }
.chip.azul { background: var(--info-soft); color: var(--info); }
.t-verde { color: var(--ok); } .t-rojo { color: var(--bad); } .t-ambar { color: var(--warn); }
ul.alertas { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.alertas li a { display: block; padding: 10px 12px 10px 14px; border-radius: var(--r2); text-decoration: none; color: var(--tx); background: var(--warn-soft); border-left: 4px solid var(--warn); }
ul.alertas li.rojo a { background: var(--bad-soft); border-left-color: var(--bad); }
ul.alertas small { display: block; color: var(--tx3); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
ol.intro { padding-left: 20px; } ol.intro li { margin-bottom: 8px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px; }
.kpi small { display: block; color: var(--tx3); font-size: .78rem; font-weight: 600; }
.kpi b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi span { font-size: .78rem; color: var(--tx2); }
.kpi.verde { border-left: 5px solid var(--ok); } .kpi.ambar { border-left: 5px solid var(--warn); } .kpi.rojo { border-left: 5px solid var(--bad); }

/* Panel */
.panel-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1.3fr 1fr; } }
.grupo { margin: 26px 0 8px; }
.grupo h2 { display: flex; align-items: center; gap: 8px; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tarjeta { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 92px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--tx); box-shadow: var(--sh); transition: transform .12s, border-color .12s; }
.tarjeta:hover { transform: translateY(-2px); border-color: var(--acc); }
.tarjeta b { font-size: 1rem; }
.tarjeta span { font-size: .8rem; color: var(--tx2); }
.hoy-lista { list-style: none; margin: 0; padding: 0; }
.hoy-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hoy-lista li:last-child { border: 0; }

/* Cuadrante */
.cuad-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); }
.cuad { border-collapse: separate; border-spacing: 0; font-size: .82rem; min-width: 100%; }
.cuad th, .cuad td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: center; min-width: 56px; height: 50px; }
.cuad thead th { position: sticky; top: 0; background: var(--bg2); z-index: 2; font-weight: 700; padding: 4px; height: auto; }
.cuad thead th.fest { background: var(--warn-soft); color: var(--warn); }
.cuad thead th.hoy { box-shadow: inset 0 -3px 0 var(--acc); }
.cuad .nom { position: sticky; left: 0; background: var(--card); z-index: 1; text-align: left; padding: 4px 8px; min-width: 130px; max-width: 160px; font-weight: 600; }
.cuad thead .nom { z-index: 3; background: var(--bg2); }
.cuad .nom small { display: block; color: var(--tx3); font-weight: 500; font-size: .72rem; }
.celda { width: 100%; height: 100%; min-height: 48px; border: 0; background: none; cursor: pointer; font: 700 .82rem var(--font); color: var(--tx); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; }
.celda small { font-weight: 500; font-size: .66rem; opacity: .85; }
.celda.turno { color: #1d140f; }
.celda.vac { background: repeating-linear-gradient(45deg, var(--info-soft), var(--info-soft) 6px, transparent 6px, transparent 12px); color: var(--info); }
.celda.aus { background: repeating-linear-gradient(45deg, var(--bad-soft), var(--bad-soft) 6px, transparent 6px, transparent 12px); color: var(--bad); }
.celda.inact { background: var(--bg2); color: var(--tx3); cursor: default; }
.celda.alerta { box-shadow: inset 0 0 0 2px var(--bad); }
.celda.fest-dia { box-shadow: inset 0 3px 0 var(--warn); }
.celda.drag-sobre { outline: 2px dashed var(--acc); }
.cob td { font-size: .74rem; height: 28px; }
.cob .falta { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.cob .sobra { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.cob .bien { color: var(--ok); }
.paleta { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; align-items: center; }
.paleta button { border: 2px solid transparent; border-radius: 10px; padding: 8px 12px; font: 700 .85rem var(--font); cursor: pointer; min-height: 42px; color: #1d140f; }
.paleta button[aria-pressed="true"] { border-color: var(--tx); box-shadow: 0 0 0 2px var(--bg) inset; }
.leyenda { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--tx2); margin-top: 8px; }
.leyenda i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }

/* Gantt vacaciones */
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); }
.gantt-in { min-width: 900px; font-size: .78rem; }
.g-row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); min-height: 34px; }
.g-row:last-child { border: 0; }
.g-nom { padding: 6px 8px; font-weight: 600; position: sticky; left: 0; background: var(--card); z-index: 1; border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bar { position: relative; }
.g-bar i { position: absolute; top: 7px; height: 20px; border-radius: 5px; font-style: normal; font-size: .68rem; color: #fff; padding: 2px 4px; overflow: hidden; white-space: nowrap; }
.g-bar i.aprobada { background: var(--ok); } .g-bar i.solicitada { background: var(--warn); } .g-bar i.rechazada { background: var(--tx3); opacity: .5; } .g-bar i.aus { background: var(--bad); } .g-bar i.bloq { background: repeating-linear-gradient(45deg, var(--bad-soft), var(--bad-soft) 4px, transparent 4px, transparent 8px); top: 0; height: 100%; border-radius: 0; }
.g-meses { display: grid; grid-template-columns: repeat(12, 1fr); }
.g-meses span { padding: 4px; border-left: 1px solid var(--line); color: var(--tx3); font-weight: 700; }

/* Carta / alérgenos */
.alg { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.alg span { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--bg2); font-size: .85rem; }
.alg span.t { opacity: .55; outline: 1px dashed var(--tx3); }
.alg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.alg-grid label { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; }
.alg-grid select { min-height: 34px; padding: 4px 6px; font-size: .82rem; width: auto; margin-left: auto; }
.plato-fila { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plato-fila .pr { font-weight: 800; font-variant-numeric: tabular-nums; }
.plato-fila p { margin: 0; color: var(--tx2); font-size: .88rem; grid-column: 1 / -1; }
.matriz { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.matriz > div { border-radius: var(--r2); padding: 12px; min-height: 120px; }
.matriz h4 { margin: 0 0 6px; }
.m-estrella { background: var(--ok-soft); } .m-caballo { background: var(--info-soft); } .m-puzle { background: var(--warn-soft); } .m-perro { background: var(--bad-soft); }

/* Plano de sala */
.plano { position: relative; height: 420px; background: var(--bg2) radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px; border-radius: var(--r2); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.mesa { position: absolute; width: 72px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--card); border: 2px solid var(--tx3); border-radius: 12px; font-weight: 800; cursor: grab; user-select: none; font-size: .9rem; text-align: center; line-height: 1.1; }
.mesa.redonda { border-radius: 50%; }
.mesa small { font-weight: 500; font-size: .66rem; color: var(--tx2); max-width: 66px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mesa.ocupada { border-color: var(--acc); background: var(--acc-soft); }

/* Checklists */
.check-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-height: 52px; }
.check-item input { width: 26px; height: 26px; }
.check-item span { flex: 1; }
.check-item small { color: var(--tx3); font-size: .78rem; }
.check-item.hecho span { text-decoration: line-through; color: var(--tx3); }

/* Anuncios (huecos reservados) */
.ad-slot { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: var(--r2); color: var(--tx3); font: 700 .75rem var(--font); letter-spacing: .12em; background: repeating-linear-gradient(135deg, transparent, transparent 10px, color-mix(in srgb, var(--line) 35%, transparent) 10px, color-mix(in srgb, var(--line) 35%, transparent) 20px); margin: 22px 0; }
.ad-banner { min-height: 100px; } .ad-incontent { min-height: 250px; } .ad-cuadro { min-height: 250px; margin: 0; }
.ad-esquina { position: fixed; right: 12px; bottom: 12px; z-index: 35; width: 220px; height: 120px; background: var(--card); border: 1px dashed var(--tx3); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--tx3); font: 700 .75rem var(--font); letter-spacing: .12em; box-shadow: var(--sh); }
.ad-esquina button { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--tx2); }
@media (max-width: 600px) { .ad-esquina { width: 160px; height: 90px; } }

/* Guía SEO */
.guia { margin-top: 28px; }
.guia section { margin: 26px 0; }
.guia p, .guia li { max-width: 75ch; color: var(--tx); }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: p; padding: 0; list-style: none; }
.pasos li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 14px 52px; position: relative; }
.pasos li::before { counter-increment: p; content: counter(p); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 0 14px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style-position: outside; }
details p { margin-top: 0; }
.relacionadas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

/* Pie */
footer.pie { border-top: 1px solid var(--line); padding: 26px 0 90px; color: var(--tx2); font-size: .9rem; }
footer.pie .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
footer.pie h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tx3); }
footer.pie ul { list-style: none; padding: 0; margin: 0; }
footer.pie li { margin: 4px 0; }
footer.pie a { color: var(--tx2); text-decoration: none; }
footer.pie a:hover { color: var(--acc); }

/* Utilidades */
.dos { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .dos { grid-template-columns: 1fr 1fr; } }
.mt { margin-top: 14px; } .mb0 { margin-bottom: 0; }
.right { text-align: right; } .muted { color: var(--tx2); } .small { font-size: .85rem; }
.grande-num { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.color-pt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wizard-pasos { display: flex; gap: 6px; margin-bottom: 14px; }
.wizard-pasos span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.wizard-pasos span.on { background: var(--acc); }
.etiqueta-prev { border: 2px solid var(--tx); border-radius: 8px; padding: 10px; max-width: 320px; font-size: .9rem; background: #fff; color: #000; }
.qr-prev { display: flex; justify-content: center; padding: 16px; background: var(--bg2); border-radius: var(--r); }
.qr-prev canvas { max-width: 280px; width: 100%; height: auto; border-radius: 8px; }
.carta-pub { max-width: 760px; margin: 0 auto; }
.carta-pub .cat { margin-top: 26px; }
.carta-pub h2 { font-family: var(--serif); border-bottom: 2px solid var(--acc); padding-bottom: 4px; }
@media print { .cab, .ad-slot, .ad-esquina, footer.pie, .guia, .banda-copia, .acciones { display: none !important; } body { background: #fff; } }
