:root {
  --marca: #0f766e;
  --marca-suave: #e6f4f2;
  --tinta: #1c2421;
  --tinta-2: #5b6662;
  --linea: #e3e7e5;
  --fondo: #f6f7f6;
  --blanco: #ffffff;
  --rojo: #b42318;
  --rojo-suave: #fdecea;
  --verde: #127a3e;
  --verde-suave: #e7f6ec;
  --radio: 12px;
  --sombra: 0 1px 2px rgba(16, 24, 20, .06), 0 2px 8px rgba(16, 24, 20, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta); background: var(--fondo); font-size: 15px; line-height: 1.5;
}
a { color: var(--marca); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
small, .suave { color: var(--tinta-2); }
code { background: var(--fondo); padding: 1px 5px; border-radius: 6px; font-size: .92em; word-break: break-all; }

/* ---------- formularios ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
.campo { margin-bottom: 14px; }
.campo small { display: block; font-weight: 400; margin-top: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date],
input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cdd4d1; border-radius: 10px; font: inherit;
  background: var(--blanco); color: var(--tinta);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marca); outline-offset: 0; border-color: var(--marca); }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #cdd4d1; border-radius: 10px; background: #fff; }
textarea { min-height: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--marca); }
.fila { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.boton, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--marca); background: var(--marca);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 42px;
}
.boton:hover, button:hover { filter: brightness(.94); }
.boton.sec, button.sec { background: var(--blanco); color: var(--marca); }
.boton.peligro, button.peligro { background: var(--blanco); color: var(--rojo); border-color: #f0b8b2; }
.boton.ancho, button.ancho { width: 100%; }
.boton.peq, button.peq { padding: 5px 10px; min-height: 32px; font-size: .88rem; }
.acciones { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- avisos ---------- */
.aviso { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--verde-suave); color: var(--verde); }
.aviso.error { background: var(--rojo-suave); color: var(--rojo); }
.aviso ul { margin: 0; padding-left: 18px; }

/* ---------- tarjetas y tablas ---------- */
.caja { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; margin-bottom: 18px; box-shadow: var(--sombra); }
.caja > h2:first-child, .caja > h3:first-child { margin-top: 0; }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th, .tabla td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-2); font-weight: 600; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.desplaza { overflow-x: auto; }
.etiqueta { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--fondo); color: var(--tinta-2); }
.etiqueta.ok { background: var(--verde-suave); color: var(--verde); }
.etiqueta.mal { background: var(--rojo-suave); color: var(--rojo); }
.cifras { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.cifra { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; box-shadow: var(--sombra); }
.cifra b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.cifra span { font-size: .85rem; color: var(--tinta-2); }

/* ---------- estructura del panel y la administración ---------- */
.marco { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.marco > * { min-width: 0; }
.lateral { background: linear-gradient(180deg, #0f1f1b 0%, #0b1714 100%); color: #b9cdc7; padding: 18px 12px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.05); }
.lateral .logo { display: block; margin: 4px 10px 6px; }
.lateral .logo-marca { height: 34px; width: auto; display: block; }
.lateral .zona { margin: 0 10px 14px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6f8f86; font-weight: 600; }
.lateral .club { display: flex; align-items: center; gap: 11px; padding: 8px 10px 16px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.lateral .club-ini, .lateral .club-logo { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.lateral .club-logo { background: #fff; }
.lateral .club-logo img { width: 100%; height: 100%; object-fit: contain; }
.lateral .club-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lateral .club-txt b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral .club-txt small { color: #7f9e95; font-size: .76rem; margin-top: 2px; }
.lateral nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.lateral nav .seccion { display: block; margin: 16px 12px 6px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #6f8f86; font-weight: 600; }
.lateral nav a { position: relative; display: flex; align-items: center; gap: 11px; color: #b9cdc7; text-decoration: none; padding: 8px 12px; border-radius: 9px; font-size: .93rem; transition: background .15s, color .15s; }
.lateral nav a .ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.lateral nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lateral nav a:hover .ico { opacity: 1; }
.lateral nav a.activo { background: rgba(94,234,212,.11); color: #fff; font-weight: 600; }
.lateral nav a.activo .ico { color: #5eead4; opacity: 1; }
.lateral nav a.activo::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #5eead4; }
.lateral nav a.externo { margin-top: 12px; color: #8fb0a7; font-size: .88rem; }
.lateral .usuario { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.05); }
.lateral .avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--marca, #0f766e); color: #fff; font-weight: 700; font-size: .9rem; }
.lateral .quien { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.lateral .quien b { color: #fff; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral .quien small { color: #7f9e95; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral .salir { color: #9fc4ba; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; }
.lateral .salir:hover { background: rgba(255,255,255,.1); color: #fff; }
.lateral .salir .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lateral .version { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 10px 0; font-size: .74rem; color: #5f7d75; }
.lateral .version img { height: 16px; width: auto; opacity: .55; }
.contenido { padding: 28px 32px; max-width: 1100px; width: 100%; }
.cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecera h1 { margin: 0; }
.franja-admin { background: #fff7e0; color: #7a5600; padding: 8px 32px; font-size: .9rem; border-bottom: 1px solid #f0dfa8; }
@media (max-width: 820px) {
  .marco { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lateral { position: static; height: auto; padding: 12px 12px 8px; }
  .lateral .club { padding: 4px 4px 10px; }
  .lateral .zona { margin-bottom: 8px; }
  .lateral nav { flex: none; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .lateral nav .seccion { display: none; }
  .lateral nav a { white-space: nowrap; flex: none; padding: 7px 11px; font-size: .88rem; background: rgba(255,255,255,.04); }
  .lateral nav a.activo::before { display: none; }
  .lateral nav a.externo { margin-top: 0; }
  .lateral { position: relative; }
  .lateral .version, .lateral .usuario .avatar, .lateral .usuario .quien { display: none; }
  .lateral .usuario { position: absolute; top: 14px; right: 12px; margin: 0; padding: 0; background: none; }
  .lateral .salir { width: 38px; height: 38px; background: rgba(255,255,255,.06); }
  .contenido { padding: 18px 16px; }
}

/* ---------- acceso ---------- */
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.acceso .caja { width: 100%; max-width: 380px; }
.acceso .logo-k { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; font-weight: 700; font-size: 1.2rem; }
.acceso .logo-k img { height: 54px; width: auto; max-width: 100%; }
.version { font-size: .78rem; opacity: .7; }

/* ---------- web del cliente ---------- */
.movil { max-width: 460px; margin: 0 auto; padding: 0 16px 40px; }
.movil .cab { text-align: center; padding: 26px 0 12px; }
.movil .cab img.logo { max-width: 160px; max-height: 80px; object-fit: contain; }
.movil .cab .nombre { font-size: 1.4rem; font-weight: 700; margin-top: 8px; }
.ventajas { list-style: none; padding: 0; margin: 0 0 6px; }
.ventajas li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--linea); }
.ventajas li:last-child { border-bottom: 0; }
.ventajas li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--marca); opacity: .9; }
.tarjeta-socio { background: var(--marca); color: #fff; border-radius: 18px; padding: 20px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.12); margin-bottom: 18px; }
.tarjeta-socio .club { font-weight: 700; font-size: 1.05rem; opacity: .95; }
.tarjeta-socio .qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; height: 220px; margin: 14px auto 8px; }
.tarjeta-socio .qr img { width: 100%; height: 100%; display: block; }
.tarjeta-socio .cod { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.3rem; letter-spacing: .12em; font-weight: 700; }
.tarjeta-socio .saldo { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
.tarjeta-socio .saldo b { display: block; font-size: 1.5rem; }
.tarjeta-socio .saldo span { font-size: .82rem; opacity: .85; }
.progreso .puntos { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.progreso .punto { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--marca); display: grid; place-items: center; font-size: .75rem; color: var(--marca); font-weight: 700; }
.progreso .punto.lleno { background: var(--marca); color: #fff; }
.progreso .punto.regalo { border-style: dashed; }
.barra { height: 10px; background: var(--marca-suave); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.barra i { display: block; height: 100%; background: var(--marca); border-radius: 99px; }
.premio { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.premio:last-child { border-bottom: 0; }
.premio .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--marca-suave); color: var(--marca); display: grid; place-items: center; flex: none; font-weight: 700; }
.pie-cliente { text-align: center; font-size: .82rem; color: var(--tinta-2); margin-top: 26px; }
.pie-cliente a { color: var(--tinta-2); }

/* ---------- cartel QR ---------- */
.cartel { background: #fff; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--linea); padding: 40px 36px; text-align: center; }
.cartel .titulo { font-size: 2rem; font-weight: 800; color: var(--marca); margin-bottom: 6px; }
.cartel .qr { width: 320px; max-width: 100%; margin: 22px auto; }
.cartel .pasos { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.cartel .pasos div { max-width: 140px; }
.cartel .pasos b { display: block; color: var(--marca); font-size: 1.4rem; }
@media print {
  body { background: #fff; }
  .lateral, .no-imprimir, .franja-admin { display: none !important; }
  .marco { display: block; }
  .contenido { padding: 0; }
  .cartel { border: 0; }
}

/* ---------- Compra X, regalo ---------- */
.tarjetas-lista { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.tx { background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.tx-cab { background: var(--marca); color: #fff; padding: 18px 20px 16px; }
.tx-cab h2 { margin: 0 0 2px; font-size: 1.15rem; }
.tx-cab small { color: rgba(255,255,255,.85); }
.sellos { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.sello { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); }
.sello.regalo { border: 2px dashed #F5C84C; display: grid; place-items: center; font-size: .9rem; }
.sellos.claro .sello { border-color: var(--marca); }
.sellos.claro .sello.lleno { background: var(--marca); }
.sellos.claro .sello.regalo { border-color: #d9a400; background: #fff7d6; }
.tx-cuerpo { padding: 16px 20px; flex: 1; }
.tx-cuerpo .lin { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.tx-cuerpo .lin > span:first-child { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tinta-2); width: 64px; flex: none; padding-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--fondo); border: 1px solid var(--linea); font-size: .86rem; }
.chip.fam { background: var(--marca-suave); border-color: transparent; color: var(--tinta); font-weight: 600; }
.chip button { all: unset; cursor: pointer; font-weight: 700; color: var(--tinta-2); padding: 0 2px; }
.chip button:hover { color: var(--rojo); }
.tx-pie { display: flex; border-top: 1px solid var(--linea); }
.tx-pie div { flex: 1; padding: 10px 6px; text-align: center; border-right: 1px solid var(--linea); }
.tx-pie div:last-child { border-right: 0; }
.tx-pie b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tx-pie span { font-size: .76rem; color: var(--tinta-2); }
.tx-nueva { border: 2px dashed #cdd4d1; border-radius: 18px; display: grid; place-items: center; min-height: 240px; text-decoration: none; color: var(--tinta-2); font-weight: 600; text-align: center; padding: 20px; }
.tx-nueva:hover { border-color: var(--marca); color: var(--marca); }
.tx-nueva b { display: block; font-size: 2rem; line-height: 1; margin-bottom: 6px; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.editor .previa { position: sticky; top: 20px; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .editor .previa { position: static; } }
.paso { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.paso i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.paso h2 { margin: 0; }
.segmentos { display: inline-flex; background: var(--fondo); border: 1px solid var(--linea); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmentos label { margin: 0; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--tinta-2); }
.segmentos input { display: none; }
.segmentos label:has(input:checked) { background: var(--blanco); color: var(--marca); box-shadow: var(--sombra); }
.contador { display: inline-flex; align-items: center; border: 1px solid #cdd4d1; border-radius: 12px; overflow: hidden; }
.contador button { border: 0; border-radius: 0; background: var(--fondo); color: var(--tinta); min-height: 46px; width: 46px; font-size: 1.3rem; padding: 0; }
.contador input { width: 64px !important; text-align: center; border: 0 !important; font-size: 1.25rem; font-weight: 700; border-radius: 0 !important; }
.selector { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; height: 380px; }
@media (max-width: 700px) { .selector { grid-template-columns: 1fr; height: auto; } .selector .fams { max-height: 200px; } .selector .prods { max-height: 320px; } }
.selector .fams { background: var(--fondo); overflow: auto; border-right: 1px solid var(--linea); }
.selector .prods { overflow: auto; }
.fam-fila { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--linea); font-size: .92rem; }
.fam-fila:hover { background: #eef1ef; }
.fam-fila.activa { background: var(--blanco); font-weight: 600; box-shadow: inset 3px 0 0 var(--marca); }
.fam-fila .n { margin-left: auto; color: var(--tinta-2); font-size: .8rem; }
.fam-fila .marca-toda { font-size: .7rem; background: var(--marca); color: #fff; border-radius: 99px; padding: 1px 7px; }
.prod-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linea); background: var(--blanco); position: sticky; top: 0; z-index: 1; }
.prod-fila { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--linea); cursor: pointer; font-weight: 400; margin: 0; }
.prod-fila:hover { background: #f8faf9; }
.prod-fila input { width: 18px; height: 18px; accent-color: var(--marca); flex: none; }
.prod-fila .precio { margin-left: auto; color: var(--tinta-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.prod-fila.incluido { color: var(--tinta-2); }
.vacio { padding: 30px 16px; text-align: center; color: var(--tinta-2); }
.elegidos { min-height: 42px; padding: 10px 12px; border: 1px dashed #cdd4d1; border-radius: 12px; margin-bottom: 12px; }
.sugerencias { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.sugerencias button { min-height: 32px; padding: 4px 12px; font-size: .86rem; font-weight: 500; background: var(--blanco); color: var(--tinta); border-color: var(--linea); }
.sugerencias button.activo { border-color: var(--marca); color: var(--marca); background: var(--marca-suave); font-weight: 700; }
.franja-cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--marca-suave); margin-bottom: 18px; font-size: .92rem; }
.franja-cat.falta { background: #fff7d6; }
.previa-tarjeta { border-radius: 18px; background: var(--marca); color: #fff; padding: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.previa-tarjeta .t { font-weight: 700; font-size: 1.05rem; }
.previa-tarjeta p { margin: 12px 0 0; font-size: .9rem; color: rgba(255,255,255,.92); }

/* ---------- grupo de menú (Configuración) ---------- */

/* ---------- editor de correos ---------- */
.barra-ed { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; border: 1px solid var(--linea); border-radius: 12px 12px 0 0; background: var(--fondo); position: sticky; top: 0; z-index: 5; }
.barra-ed button { min-height: 34px; min-width: 34px; padding: 4px 9px; background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); border-radius: 8px; font-weight: 500; font-size: .9rem; }
.barra-ed button:hover { border-color: var(--marca); color: var(--marca); filter: none; }
.barra-ed button.activo { background: var(--marca); color: #fff; }
.barra-ed select { width: auto; padding: 6px 8px; font-size: .88rem; border-radius: 8px; min-height: 34px; }
.barra-ed .sep { width: 1px; height: 24px; background: var(--linea); margin: 0 4px; }
.barra-ed .color { position: relative; margin: 0; display: inline-grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--linea); border-radius: 8px; background: var(--blanco); font-weight: 800; cursor: pointer; color: #c0392b; }
.barra-ed .color.fondo { color: #e0b400; }
.barra-ed .color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.panel-enlace { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--linea); border-top: 0; background: #fffdf3; }
.panel-enlace input[type=text], .panel-enlace input[type=url] { flex: 1; min-width: 180px; }
.panel-enlace .color { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; }
.panel-enlace .color input { width: 40px; height: 34px; padding: 2px; }
.hoja { border: 1px solid var(--linea); border-top: 0; border-radius: 0 0 12px 12px; background: #f3f4f2; padding: 20px; margin-bottom: 8px; }
#editor { max-width: 600px; margin: 0 auto; min-height: 340px; background: #fff; border-radius: 10px; padding: 28px; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; color: #1c2421; outline: none; box-shadow: var(--sombra); }
#editor:focus { box-shadow: 0 0 0 2px var(--marca); }
#editor img { max-width: 100%; height: auto; }
#editor h1 { font-size: 28px; } #editor h2 { font-size: 22px; } #editor h3 { font-size: 18px; }
#editor blockquote { border-left: 4px solid var(--marca); margin: 0; padding: 4px 14px; color: #5b6662; }
#fuente { width: 100%; min-height: 380px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.panel-enlace[hidden] { display: none; }
[hidden] { display: none !important; }

/* ---------- logo del comercio ---------- */
.logo-zona { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .logo-zona { grid-template-columns: 1fr; } }
.subir-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed #cdd4d1; border-radius: 14px; text-align: center; cursor: pointer; background: var(--fondo); font-weight: 400; margin-bottom: 12px; }
.subir-logo:hover, .subir-logo.encima { border-color: var(--marca); background: var(--marca-suave); }
.subir-logo input { display: none; }
.subir-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 6px; }
.medidas { margin: 0 0 12px; padding-left: 18px; font-size: .92rem; color: var(--tinta-2); }
.medidas li { margin-bottom: 4px; }
.previa-logo { border-radius: 14px; padding: 18px; text-align: center; color: #fff; margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.previa-logo img { max-height: 70px; max-width: 220px; object-fit: contain; }
.previa-logo span { border: 2px dashed rgba(255,255,255,.6); border-radius: 10px; padding: 14px 30px; font-weight: 600; }
.previa-logo small { opacity: .8; font-size: .78rem; }
.previa-logo.claro { background: #fff; border: 1px solid var(--linea); color: var(--tinta-2); }
.previa-logo.claro img { max-height: 80px; max-width: 160px; }
.previa-logo.claro span { border-color: #cdd4d1; color: var(--tinta-2); }

/* ---------- club de socios ---------- */
.club-regla { border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: var(--fondo); }
.club-regla-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.club-familias { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; max-height: 260px; overflow: auto; background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; padding: 10px 12px; }
.club-familias .check { margin-bottom: 6px; }
.socio-club { border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; background: linear-gradient(135deg, var(--marca), #10201c); color: #fff; }
.socio-club .titulo { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.socio-club b { display: block; font-size: 1.15rem; margin: 2px 0 6px; }
.socio-club ul { margin: 0; padding-left: 18px; }
.socio-club small { color: rgba(255,255,255,.8); display: block; margin-top: 6px; }
.etiqueta.club { background: var(--marca-suave, #e6f4f1); color: var(--marca); }
.ahorro { color: var(--verde, #15803d); font-weight: 600; font-size: .88rem; }
.ahorro-total { background: var(--verde-suave, #e8f6ee); color: var(--verde, #15803d); border-radius: 10px; padding: 8px 12px; margin: 4px 0 8px; font-size: .92rem; }
