/* Tarjeta que abre el QR. Los formatos del diseño no limitan el área de contacto. */
.tjd-vista {
  width:100%; max-width:1000px; margin:0 auto; padding:0 0 22px;
  color:var(--canvas-text,var(--text)); font-size:16px; line-height:1.5;
}
.tjd-vista [hidden] { display:none!important; }
.tjd-vista .tjd-nombre[tabindex="-1"]:focus { outline:none; box-shadow:none; }
.tjd-vista *, .tjd-vista *::before, .tjd-vista *::after { box-sizing:border-box; }
.tjd-vista :is(a,button,input,summary):focus-visible {
  outline:3px solid var(--gold,#b8860b); outline-offset:4px;
  box-shadow:0 0 0 2px #fff;
}
.tjd-vista .tjd-nav {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:4px 18px; margin:0 0 12px; color:var(--canvas-muted,var(--muted));
}
.tjd-vista .tjd-nav a {
  display:inline-flex; align-items:center; gap:9px; min-height:44px;
  color:inherit; font-size:14px; text-decoration:none;
}
.tjd-vista .tjd-nav a:hover { text-decoration:underline; text-underline-offset:4px; }
.tjd-vista .tjd-nav > span { font-size:13px; }

.tjd-vista .tjd-card {
  --tjd-paper:#f2ebdf; --tjd-body:#fffdfa; --tjd-ink:#29261f;
  --tjd-muted:#665f54; --tjd-line:#ded6c9; --tjd-accent:#75362d;
  --tjd-button:#75362d; --tjd-button-ink:#fff; --tjd-soft:#ede4d7;
  --tjd-profile-ink:#29261f; --tjd-profile-muted:#665f54;
  --tjd-cover:#d4c5ac; --tjd-cover-ink:#73654d;
  display:grid; grid-template-columns:minmax(0,.93fr) minmax(0,1.57fr);
  align-items:stretch; min-width:0; overflow:hidden; isolation:isolate;
  border:1px solid var(--tjd-line); border-radius:16px;
  background:var(--tjd-body); color:var(--tjd-ink);
  box-shadow:0 3px 8px #26211a05,0 18px 45px #26211a0a;
}
.tjd-vista .tjd-identidad {
  position:relative; min-width:0; background:var(--tjd-paper);
  color:var(--tjd-profile-ink); border-right:1px solid var(--tjd-line);
}
.tjd-vista .tjd-portada {
  position:relative; isolation:isolate; height:158px; overflow:hidden;
  background:var(--tjd-cover); color:var(--tjd-cover-ink);
}
.tjd-vista .tjd-portada::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:repeating-linear-gradient(125deg,transparent 0 22px,currentColor 23px 24px,transparent 25px 49px);
  opacity:.13;
}
.tjd-vista .tjd-portada::after {
  content:""; position:absolute; width:182px; height:182px; right:-41px; top:-57px;
  border:1px solid currentColor; border-radius:50%; opacity:.25;
  box-shadow:0 0 0 22px var(--tjd-cover),0 0 0 23px currentColor;
  pointer-events:none;
}
.tjd-vista .tjd-portada-foto {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:center 48%; display:block; z-index:0;
}
.tjd-vista .tjd-portada:has(.tjd-portada-foto)::after { display:none; }
.tjd-vista .tjd-perfil { position:relative; padding:0 28px 30px; min-width:0; }
.tjd-vista .tjd-avatar {
  position:relative; display:grid; place-items:center; width:94px; height:94px;
  margin-top:-47px; margin-bottom:20px; overflow:hidden;
  border:5px solid var(--tjd-paper); border-radius:50%;
  background:var(--tjd-profile-ink); color:var(--tjd-paper);
  box-shadow:0 4px 14px #10191412;
}
.tjd-vista .tjd-avatar > img { display:block; width:100%; height:100%; object-fit:cover; }
.tjd-vista .tjd-avatar > img.tjd-logo { object-fit:contain; background:#fff; padding:9px; }
.tjd-vista .tjd-avatar > span { font:700 29px/1 var(--font-display,system-ui); letter-spacing:-.06em; }
.tjd-vista .tjd-tipo {
  margin:0 0 9px; font-size:11px; line-height:1.4; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--tjd-profile-muted);
}
.tjd-vista .tjd-nombre {
  margin:0; font:650 clamp(29px,3vw,38px)/1.08 var(--font-display,system-ui);
  letter-spacing:-.025em; text-transform:none; color:var(--tjd-profile-ink);
  overflow-wrap:anywhere; text-wrap:balance;
}
.tjd-vista .tjd-oficio {
  margin:11px 0 0; font-size:16px; line-height:1.4; font-weight:650;
  color:var(--tjd-profile-ink); overflow-wrap:anywhere;
}
.tjd-vista .tjd-lema {
  margin:17px 0 0; padding-top:17px; border-top:1px solid var(--tjd-line);
  font-size:15px; line-height:1.55; color:var(--tjd-profile-muted); overflow-wrap:anywhere;
}
.tjd-vista .tjd-cuerpo { padding:27px 30px 25px; min-width:0; }
.tjd-vista .tjd-seccion {
  margin:0 0 15px; font:650 22px/1.15 var(--font-display,system-ui);
  letter-spacing:-.015em; color:var(--tjd-ink); text-transform:none;
}
.tjd-vista .tjd-rapidas {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(82px,1fr)); gap:9px;
  margin:0 0 20px;
}
.tjd-vista .tjd-accion {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  min-width:0; min-height:86px; padding:12px 7px; border:1px solid var(--tjd-line);
  border-radius:10px; color:var(--tjd-ink); background:var(--tjd-body);
  font:550 14px/1.3 var(--font,system-ui); text-align:center; text-decoration:none;
  cursor:pointer; transition:background .15s,border-color .15s;
}
.tjd-vista .tjd-accion:hover { background:var(--tjd-soft); border-color:var(--tjd-accent); }
.tjd-vista .tjd-icono { width:22px; height:22px; display:block; flex:none; color:var(--tjd-accent); }
.tjd-vista .tjd-icono svg { display:block; width:100%; height:100%; }
.tjd-vista .tjd-accion > .tjd-icono {
  width:31px; height:31px; border-radius:50%; display:grid; place-items:center;
  background:var(--tjd-soft); padding:6px;
}
.tjd-vista .tjd-enlaces { margin:0; border-top:1px solid var(--tjd-line); }
.tjd-vista .tjd-enlace {
  display:flex; align-items:center; gap:13px; min-height:70px; padding:12px 1px;
  border-bottom:1px solid var(--tjd-line); color:var(--tjd-ink); text-decoration:none;
}
.tjd-vista .tjd-enlace > span:not(.tjd-flecha):not(.tjd-icono) { min-width:0; flex:1; }
.tjd-vista .tjd-enlace small { display:block; color:var(--tjd-muted); font-size:12px; line-height:1.4; margin-bottom:2px; }
.tjd-vista .tjd-enlace strong { display:block; font-size:15px; font-weight:550; line-height:1.4; overflow-wrap:anywhere; }
.tjd-vista .tjd-enlace:hover strong { text-decoration:underline; text-underline-offset:3px; }
.tjd-vista .tjd-flecha { margin-left:auto; color:var(--tjd-muted); flex:none; font-size:20px; }
.tjd-vista .tjd-flecha .tjd-icono { width:17px; height:17px; color:inherit; }
.tjd-vista .tjd-redes { display:flex; flex-wrap:wrap; gap:5px 18px; margin-top:12px; }
.tjd-vista .tjd-redes a.tjd-accion {
  display:inline-flex; flex-direction:row; align-items:center; gap:7px;
  min-height:44px; padding:4px 0; border:0; border-radius:0; background:transparent;
  font-size:14px; color:var(--tjd-ink); text-decoration:none;
}
.tjd-vista .tjd-redes a:hover { text-decoration:underline; text-underline-offset:4px; }
.tjd-vista .tjd-redes a.tjd-accion > .tjd-icono { width:18px; height:18px; padding:0; border-radius:0; background:transparent; }
.tjd-vista .tjd-servicios { margin-top:18px; padding-top:16px; border-top:1px solid var(--tjd-line); }
.tjd-vista .tjd-servicios .tjd-seccion { margin-bottom:10px; font-size:19px; }
.tjd-vista .tjd-servicios ul { display:flex; flex-wrap:wrap; gap:5px 18px; margin:0; padding:0; list-style:none; }
.tjd-vista .tjd-servicios li {
  display:flex; gap:8px; align-items:baseline; min-width:0; margin:0;
  font-size:14px; line-height:1.55; color:var(--tjd-ink);
}
.tjd-vista .tjd-servicios li::before { content:""; width:7px; height:2px; flex:none; align-self:center; background:var(--tjd-accent); }
.tjd-vista :is(.tjd-rapidas,.tjd-enlaces,.tjd-redes):empty { display:none; }
.tjd-vista .tjd-utilidades { display:flex; align-items:stretch; gap:9px; flex-wrap:wrap; margin-top:24px; }
.tjd-vista :is(.tjd-guardar,.tjd-compartir) {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:48px; min-width:0; padding:10px 15px; border:1px solid var(--tjd-line);
  border-radius:8px; font:650 14px/1.35 var(--font,system-ui); cursor:pointer;
  background:var(--tjd-body); color:var(--tjd-ink); text-decoration:none;
}
.tjd-vista .tjd-guardar { flex:1 1 180px; background:var(--tjd-button); color:var(--tjd-button-ink); border-color:var(--tjd-button); }
.tjd-vista .tjd-guardar .tjd-icono { color:inherit; width:19px; height:19px; }
.tjd-vista .tjd-compartir { flex:0 1 auto; }
.tjd-vista .tjd-compartir .tjd-icono { width:18px; height:18px; }
.tjd-vista .tjd-guardar:hover { filter:brightness(1.12); }
.tjd-vista .tjd-compartir:hover { background:var(--tjd-soft); }
.tjd-vista .tjd-estado { margin:9px 0 0; color:var(--tjd-muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.tjd-vista .tjd-estado:empty { margin:0; }
.tjd-vista :is(.tjd-qr-panel,.tjd-diseno) { margin-top:20px; border-top:1px solid var(--tjd-line); }
.tjd-vista :is(.tjd-qr-panel,.tjd-diseno) > summary {
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:14px;
  min-height:50px; padding:11px 1px; color:var(--tjd-ink); font-size:14px;
  font-weight:550; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.tjd-vista :is(.tjd-qr-panel,.tjd-diseno) > summary::-webkit-details-marker { display:none; }
.tjd-vista :is(.tjd-qr-panel,.tjd-diseno) > summary::after {
  content:""; width:8px; height:8px; flex:none; margin-right:4px;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg); transition:transform .15s;
}
.tjd-vista :is(.tjd-qr-panel,.tjd-diseno)[open] > summary::after { transform:rotate(225deg); }
.tjd-vista .tjd-qr-contenido { display:grid; grid-template-columns:146px minmax(0,1fr); align-items:center; gap:20px; padding:3px 0 4px; }
.tjd-vista .tjd-qr { min-width:0; background:#fff; border:1px solid #dedede; border-radius:5px; padding:3px; }
.tjd-vista .tjd-qr svg { display:block; width:100%; height:auto; max-width:none; }
.tjd-vista .tjd-qr-acciones { min-width:0; }
.tjd-vista .tjd-qr-acciones p { margin:0 0 9px; color:var(--tjd-muted); font-size:13px; line-height:1.5; }
.tjd-vista .tjd-qr-acciones button {
  display:inline-flex; align-items:center; min-height:44px; padding:7px 0;
  border:0; background:transparent; color:var(--tjd-accent); font:650 14px/1.3 var(--font,system-ui);
  cursor:pointer; text-align:left; text-decoration:underline; text-underline-offset:4px;
}
.tjd-vista .tjd-qr-acciones button + button { margin-left:15px; }
.tjd-vista .tjd-cuerpo .tje-enlace { color:var(--tjd-muted); font-size:13px; margin-top:10px; }
.tjd-vista .tjd-cuerpo .tje-enlace input {
  min-height:44px; width:100%; min-width:0; border:1px solid var(--tjd-line); padding:7px;
  color:var(--tjd-ink); background:var(--tjd-body); font-size:14px;
}
.tjd-vista .tjd-qr-acciones [data-tj-qr-estado] { margin:8px 0 0; }
.tjd-vista .tjd-qr-acciones [data-tj-qr-estado]:empty { margin:0; }
.tjd-vista .tjd-diseno > img { display:block; width:100%; height:auto; object-fit:contain; border-radius:5px; }
.tjd-vista .tjd-pie {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:5px 16px; padding:14px 2px 0; color:var(--canvas-muted,var(--muted));
  font-size:13px; line-height:1.45;
}
.tjd-vista .tjd-pie a { display:inline-flex; align-items:center; gap:7px; min-height:44px; color:inherit; text-underline-offset:4px; }
.tjd-vista .tjd-pie p { margin:0; }
.tjd-vista .tjd-demo-nota {
  max-width:72ch; margin:12px 0 0; color:var(--canvas-muted,var(--muted)); font-size:13px; line-height:1.5;
}
.tjd-vista .tjd-card .tjd-demo-nota { color:var(--tjd-muted); }

/* Del muestrario al destino real del código. */
.tjm-vista .tjm-compartir [data-tjm-abrir] { background:var(--ink); border-color:var(--ink); color:#fff; text-decoration:none; }
.tjm-vista .tjm-compartir [data-tjm-abrir]:hover { text-decoration:underline; text-underline-offset:3px; }

/* Módulos enteros: el QR conserva bordes uniformes también en URLs más largas. */
.tjm-lienzo .tjm-qr { width:calc(var(--tjm-qr-lado,49) * 3px + 4px); }
.tjm-lienzo[data-formato="vertical"] .tjm-qr { width:calc(var(--tjm-qr-lado,49) * 2px + 4px); }
@container (max-width:470px) {
  .tjm-lienzo[data-formato="horizontal"] .tjm-qr { width:calc(var(--tjm-qr-lado,49) * 2px + 4px); }
  .tjm-lienzo[data-modelo="tipografica"][data-formato="horizontal"]:not([data-largo="si"]) .tjm-identidad { width:calc(89% - var(--tjm-qr-lado,49) * 2px - 4px); }
  .tjm-lienzo[data-modelo="nocturna"][data-formato="horizontal"]:not([data-largo="si"]) .tjm-identidad { width:calc(89% - var(--tjm-qr-lado,49) * 2px - 4px); }
  .tjm-lienzo[data-formato="vertical"] .tjm-servicios { max-width:calc(85% - var(--tjm-qr-lado,49) * 2px - 4px); }
}

/* Cuatro identidades, con la misma estructura y el mismo orden de acciones. */
.tjd-vista .tjd-card[data-modelo="editorial"] .tjd-nombre { font-family:Georgia,"Times New Roman",serif; font-weight:600; letter-spacing:-.045em; }
.tjd-vista .tjd-card[data-modelo="editorial"] .tjd-avatar { border-radius:8px; }
.tjd-vista .tjd-card[data-modelo="taller"] {
  --tjd-paper:#233c30; --tjd-body:#fbfcf8; --tjd-ink:#20362b;
  --tjd-muted:#57645b; --tjd-line:#dce3d9; --tjd-accent:#325b41;
  --tjd-button:#244b34; --tjd-button-ink:#fff; --tjd-soft:#edf2e6;
  --tjd-profile-ink:#f8f6e8; --tjd-profile-muted:#cedaca;
  --tjd-cover:#365540; --tjd-cover-ink:#d4e9ab;
}
.tjd-vista .tjd-card[data-modelo="taller"] .tjd-identidad { border-right-color:#233c30; }
.tjd-vista .tjd-card[data-modelo="taller"] .tjd-lema { border-color:#597361; }
.tjd-vista .tjd-card[data-modelo="taller"] .tjd-portada::before {
  background:linear-gradient(currentColor 1px,transparent 1px),linear-gradient(90deg,currentColor 1px,transparent 1px);
  background-size:24px 24px; opacity:.12;
}
.tjd-vista .tjd-card[data-modelo="tipografica"] {
  --tjd-paper:#f5c747; --tjd-body:#fffefa; --tjd-ink:#25231d;
  --tjd-muted:#625f55; --tjd-line:#e5dec9; --tjd-accent:#5b4616;
  --tjd-button:#25231d; --tjd-button-ink:#fff; --tjd-soft:#fcf1cf;
  --tjd-profile-ink:#25231d; --tjd-profile-muted:#55451d;
  --tjd-cover:#22221d; --tjd-cover-ink:#f5c747;
}
.tjd-vista .tjd-card[data-modelo="tipografica"] .tjd-nombre { font-weight:700; text-transform:uppercase; line-height:1.03; }
.tjd-vista .tjd-card[data-modelo="tipografica"] .tjd-lema { border-color:#c7a035; }
.tjd-vista .tjd-card[data-modelo="tipografica"] .tjd-avatar { border-radius:9px; }
.tjd-vista .tjd-card[data-modelo="nocturna"] {
  --tjd-paper:#181e24; --tjd-body:#212a33; --tjd-ink:#f0f3f5;
  --tjd-muted:#bdc8d2; --tjd-line:#46515d; --tjd-accent:#dce7c1;
  --tjd-button:#dce7c1; --tjd-button-ink:#202820; --tjd-soft:#303d47;
  --tjd-profile-ink:#f0f3f5; --tjd-profile-muted:#b9c6d0;
  --tjd-cover:#2e3d4b; --tjd-cover-ink:#a4b7c5;
}
.tjd-vista .tjd-card[data-modelo="nocturna"] .tjd-nombre { font-weight:600; letter-spacing:.005em; }
.tjd-vista .tjd-card[data-modelo="nocturna"] .tjd-portada::before {
  background:radial-gradient(ellipse at 20% 90%,currentColor 0,transparent 68%); opacity:.4;
}

@media (min-width:760px) {
  .tjd-vista .tjd-card[data-formato="vertical"] { grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr); }
  .tjd-vista .tjd-card[data-formato="vertical"] .tjd-portada { height:184px; }
}
@media (max-width:860px) {
  .tjd-vista .tjd-cuerpo { padding:24px; }
  .tjd-vista .tjd-perfil { padding:0 23px 27px; }
}
@media (max-width:759px) {
  .tjd-vista { max-width:520px; }
  .tjd-vista .tjd-card { grid-template-columns:minmax(0,1fr); border-radius:14px; }
  .tjd-vista .tjd-identidad { border-right:0; border-bottom:1px solid var(--tjd-line); }
  .tjd-vista .tjd-portada { height:126px; }
  .tjd-vista .tjd-portada-foto { object-position:center 48%; }
  .tjd-vista .tjd-perfil { padding:0 23px 23px; text-align:center; }
  .tjd-vista .tjd-avatar { width:90px; height:90px; margin:-45px auto 13px; }
  .tjd-vista .tjd-tipo { font-size:10px; margin-bottom:7px; }
  .tjd-vista .tjd-nombre { font-size:31px; line-height:1.09; }
  .tjd-vista .tjd-oficio { margin-top:8px; }
  .tjd-vista .tjd-lema { margin:13px auto 0; padding-top:12px; max-width:37ch; font-size:14px; }
  .tjd-vista .tjd-cuerpo { padding:21px 22px 18px; }
  .tjd-vista .tjd-seccion { font-size:20px; margin-bottom:12px; }
  .tjd-vista .tjd-rapidas { margin-bottom:16px; gap:8px; }
  .tjd-vista .tjd-accion { min-height:80px; padding:10px 6px; }
  .tjd-vista .tjd-enlace { min-height:66px; }
  .tjd-vista .tjd-utilidades { display:grid; grid-template-columns:minmax(0,1fr) max-content; margin-top:20px; }
  .tjd-vista :is(.tjd-guardar,.tjd-compartir) { gap:7px; padding-inline:10px; }
  .tjd-vista .tjd-qr-contenido { grid-template-columns:132px minmax(0,1fr); gap:15px; }
  .tjd-vista .tjd-qr-acciones button { display:flex; }
  .tjd-vista .tjd-qr-acciones button + button { margin:0; }
  .tjd-vista .tjd-card[data-modelo="taller"] .tjd-identidad { border-bottom-color:#233c30; }
}
@media (max-width:375px) {
  .tjd-vista .tjd-cuerpo { padding:18px 15px 15px; }
  .tjd-vista .tjd-perfil { padding-left:17px; padding-right:17px; }
  .tjd-vista .tjd-nombre { font-size:28px; }
  .tjd-vista .tjd-accion { font-size:13px; }
  .tjd-vista .tjd-rapidas { grid-template-columns:repeat(auto-fit,minmax(67px,1fr)); gap:6px; }
  .tjd-vista .tjd-qr-contenido { grid-template-columns:124px minmax(0,1fr); gap:12px; }
  .tjd-vista :is(.tjd-guardar,.tjd-compartir) { padding:10px 8px; }
}
@media (max-width:359px) {
  .tjd-vista .tjd-utilidades { grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .tjd-vista *, .tjd-vista *::after { transition:none!important; }
}
@media print {
  .tjd-vista :is(.tjd-nav,.tjd-utilidades,.tjd-pie,.tjd-demo-nota,.tjd-qr-acciones button) { display:none!important; }
  .tjd-vista .tjd-card { box-shadow:none; break-inside:avoid; print-color-adjust:exact; }
  .tjd-vista .tjd-qr-panel > :not(summary) { display:grid!important; }
}

/* La ficha del negocio y su vista previa utilizan la misma composición. */
.tjd-vista .tjd-servicios > p { margin:0 0 10px; color:var(--tjd-muted); font-size:14px; }
.tjd-vista .tjd-servicios-enlaces { align-items:stretch; }
.tjd-vista .tjd-servicios-enlaces li { padding:0; }
.tjd-vista .tjd-consulta-servicio {
  display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:6px 11px;
  color:var(--tjd-ink); text-decoration:none; font:inherit;
}
.tjd-vista .tjd-consulta-servicio:hover { color:var(--tjd-accent); text-decoration:underline; }
.tjd-vista .tjd-consulta-servicio .tjd-icono { width:15px; height:15px; flex:none; }
.tjd-vista.tjd-previa { container-type:inline-size; padding:0; }
.tjd-vista.tjd-previa .tjd-accion, .tjd-vista.tjd-previa .tjd-enlace { cursor:default; }
.tjd-vista.tjd-previa .tjd-redes .tjd-accion {
  flex-direction:row; border:0; padding:0; min-height:auto; background:transparent; color:var(--tjd-accent);
}
@container (max-width:690px) {
  .tjd-previa .tjd-card { grid-template-columns:1fr; }
  .tjd-previa .tjd-identidad { border-right:0; border-bottom:1px solid var(--tjd-line); }
  .tjd-previa .tjd-cuerpo { padding:18px; }
}

/* Perfil del negocio en el modelo Taller. El diseño para imprimir conserva su formato. */
.tjd-vista:has(> .tjw-tarjeta) { max-width:1160px; }
.tjd-vista .tjw-tarjeta {
  --tjw-tinta:#112b24; --tjw-crema:#fcf7e8; --tjw-hilo:#d9bb79;
  display:block; overflow:hidden; border:1px solid #dddccf; border-radius:15px;
  background:#fcfbf6; color:#1d2b23; box-shadow:0 12px 34px #27281c0c;
}
.tjw-cabecera {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);
  color:var(--tjw-crema); background:var(--tjw-tinta);
}
.tjw-identidad {
  position:relative; align-self:center; z-index:1; min-width:0; padding:clamp(22px,2.7vw,36px);
}
.tjw-marca { display:flex; align-items:center; gap:12px; margin-bottom:15px; }
.tjd-vista .tjw-marca .tjd-avatar {
  flex:none; width:49px; height:40px; margin:0; padding:4px; border:0; border-radius:3px;
  background:#efe6c9; color:var(--tjw-tinta); outline:1px dashed #957d52; outline-offset:-5px;
  box-shadow:0 3px 7px #061b1266; transform:rotate(-3deg);
}
.tjd-vista .tjw-marca .tjd-avatar:has(img) { outline:none; background:#fff; }
.tjd-vista .tjw-marca .tjd-avatar img { padding:0; background:transparent; }
.tjd-vista .tjw-marca .tjd-avatar span { font:700 24px/1 var(--font-display); letter-spacing:-.04em; }
.tjw-marca p { margin:0; color:#eee2c6; font-size:12px; font-weight:650; letter-spacing:.035em; overflow-wrap:anywhere; }
.tjd-vista .tjw-tarjeta .tjd-nombre {
  max-width:14ch; margin:0; color:var(--tjw-crema);
  font:700 clamp(44px,4.8vw,72px)/.99 var(--font-display); letter-spacing:-.038em; text-transform:uppercase;
}
.tjd-vista .tjw-cabecera .tjd-lema {
  max-width:38ch; margin:13px 0 0; padding:0; border:0; color:#e5e4d8; font-size:15px; line-height:1.5;
}
.tjd-vista .tjw-cabecera .tjd-utilidades { display:flex; gap:9px; margin-top:19px; }
.tjd-vista .tjw-cabecera :is(.tjd-guardar,.tjd-compartir) {
  flex:none; min-height:43px; padding:9px 13px; border-radius:7px; font-size:13px;
}
.tjd-vista .tjw-cabecera .tjd-guardar { background:var(--tjw-crema); color:var(--tjw-tinta); border-color:transparent; }
.tjd-vista .tjw-cabecera .tjd-compartir { background:transparent; color:var(--tjw-crema); border-color:#94a69a; }
.tjd-vista .tjw-cabecera .tjd-compartir:hover { background:#28473c; }
.tjd-vista .tjw-cabecera .tjd-compartir .tjd-icono { color:inherit; }
.tjd-vista .tjw-cabecera .tjd-estado { color:#f2e8c8; }
.tjd-vista .tjw-cabecera .tje-enlace { display:block; margin-top:8px; color:var(--tjw-crema); }
.tjd-vista .tjw-cabecera .tje-enlace input { width:100%; padding:8px; font:inherit; }
.tjw-foto {
  position:relative; min-width:0; overflow:hidden; min-height:275px; margin-left:-12px;
  clip-path:polygon(6% 0,100% 0,100% 100%,0 100%);
}
.tjd-vista .tjw-foto .tjd-portada-foto { object-position:48% 62%; }
.tjw-sin-foto {
  grid-template-columns:1fr;
  background:repeating-linear-gradient(135deg,transparent 0 32px,#ffffff08 33px,transparent 34px),var(--tjw-tinta);
}
.tjw-sin-foto .tjw-identidad { max-width:680px; }
.tjw-sin-foto .tjd-nombre { max-width:23ch; }
.tjw-contenido { display:grid; grid-template-columns:minmax(0,1.68fr) minmax(0,1fr); gap:clamp(21px,2.4vw,34px); padding:clamp(19px,2.65vw,33px); }
.tjw-contenido.tjw-sin-servicios { grid-template-columns:minmax(0,1fr); }
.tjw-servicios,.tjw-contactar { min-width:0; }
.tjd-vista .tjw-contenido .tjd-seccion {
  margin:0 0 13px; font:650 clamp(21px,1.75vw,27px)/1.1 var(--font-display);
  letter-spacing:-.015em; color:#183327;
}
.tjw-contactar { padding-left:clamp(14px,2vw,28px); border-left:1px solid #d8dacd; }
.tjw-sin-servicios .tjw-contactar { padding:0; border:0; }
.tjw-oficios { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.tjw-oficios li { min-width:0; margin:0; }
.tjw-oficios :is(button,.tjd-consulta-servicio,.tjw-oficio-info) {
  display:block; height:100%; width:100%; min-width:0; padding:0; overflow:hidden;
  color:#193025; background:#f2f1e7; border:1px solid #dddfd1; border-radius:8px;
  text-align:left; text-decoration:none; font:inherit;
}
.tjw-oficios :is(button,a) { cursor:pointer; }
.tjw-muestrario li > button { display:flex; flex-direction:column; align-items:stretch; }
.tjw-materia {
  display:block; width:100%; aspect-ratio:1.58;
  background-color:#d6cfad; background-image:url('/assets/img/tarjeta-taller/oficios.webp');
  background-repeat:no-repeat; background-size:300% auto;
}
.tjw-materia-0 { background-position:0% 51%; }
.tjw-materia-1 { background-position:50% 51%; }
.tjw-materia-2 { background-position:100% 51%; }
.tjw-oficio-pie { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:10px 12px; min-height:48px; }
.tjw-muestrario .tjw-oficio-pie { flex:1; }
.tjw-oficio-nombre { font-size:14px; line-height:1.32; font-weight:650; overflow-wrap:anywhere; }
.tjd-vista .tjw-oficio-pie .tjd-icono { width:16px; height:16px; flex:none; }
.tjw-oficios :is(a,button):hover { border-color:#78907a; color:#153c29; }
.tjw-oficios :is(a,button):hover .tjw-oficio-nombre { text-decoration:underline; text-underline-offset:3px; }
.tjd-vista .tjw-contactar .tjd-rapidas { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 10px; }
.tjd-vista .tjw-contactar .tjd-rapidas .tjd-accion {
  flex:1 1 auto; min-height:42px; flex-direction:row; gap:5px; padding:7px; border-color:#cbd3c6;
  background:#f7f8f1; color:#163b2c; border-radius:6px; font-size:13px;
}
.tjd-vista .tjw-contactar .tjd-rapidas .tjd-accion > .tjd-icono { width:16px; height:16px; padding:0; background:none; border-radius:0; }
.tjd-vista .tjw-contactar .tjd-enlace { min-height:47px; padding:7px 0; gap:8px; }
.tjd-vista .tjw-contactar .tjd-enlace strong { font-size:14px; }
.tjd-vista .tjw-contactar .tjd-demo-nota { margin:6px 0 0; font-size:12px; }
.tjw-recursos { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); align-items:start; padding:0 clamp(19px,2.65vw,33px) 17px; gap:0 26px; }
.tjd-vista .tjw-recursos details { min-width:0; margin:0; }
.tjd-vista .tjw-recursos summary { min-height:48px; font-weight:650; }
.tjd-vista .tjw-tarjeta :is(a,button,summary):focus-visible { outline-color:#b78530; }

/* También responde al espacio disponible en el editor y en la revisión privada. */
.tjd-vista:has(> .tjw-tarjeta) { container-type:inline-size; }
@container (max-width:790px) {
  .tjw-contenido { grid-template-columns:minmax(0,1.38fr) minmax(0,1fr); gap:17px; }
  .tjw-oficios { grid-template-columns:1fr; gap:7px; }
  .tjw-muestrario li button { display:grid; grid-template-columns:76px minmax(0,1fr); }
  .tjw-materia { height:100%; aspect-ratio:auto; min-height:54px; }
}
@container (max-width:600px) {
  .tjd-vista .tjw-tarjeta { border-radius:12px; }
  .tjw-cabecera { grid-template-columns:1fr; }
  .tjw-foto { grid-row:1; min-height:0; margin:0; aspect-ratio:1.95; clip-path:none; }
  .tjd-vista .tjw-foto .tjd-portada-foto { object-position:50% 64%; }
  .tjw-identidad { padding:17px 19px 20px; }
  .tjw-marca { gap:9px; margin-bottom:9px; }
  .tjd-vista .tjw-marca .tjd-avatar { width:39px; height:32px; }
  .tjd-vista .tjw-marca .tjd-avatar span { font-size:19px; }
  .tjw-marca p { font-size:11px; }
  .tjd-vista .tjw-tarjeta .tjd-nombre { font-size:clamp(33px,10cqw,48px); max-width:20ch; }
  .tjd-vista .tjw-cabecera .tjd-lema { margin-top:8px; font-size:14px; }
  .tjd-vista .tjw-cabecera .tjd-utilidades { margin-top:13px; }
  .tjw-contenido { grid-template-columns:1fr; gap:20px; padding:19px; }
  .tjw-contactar { grid-row:1; padding:0; border:0; }
  .tjd-vista .tjw-contenido .tjd-seccion { font-size:23px; }
  .tjw-recursos { grid-template-columns:1fr; padding:0 19px 13px; }
}
@media print {
  .tjd-vista .tjw-tarjeta { box-shadow:none; }
  .tjw-recursos { display:block; }
}

.tjd-vista .tjw-consulta {
  width:min(420px,calc(100% - 24px)); padding:clamp(18px,3vw,27px);
  color:var(--tjd-ink,#203a2e); background:var(--tjd-body,#fffefa);
  border:1px solid var(--tjd-line,#cdd6cb); border-top:4px solid var(--tjd-accent,#325b41);
  border-radius:12px;
}
.tjw-consulta h2 { color:inherit; }
.tjw-consulta p { color:var(--tjd-muted,#546057); }
.tjw-consulta textarea { color:var(--tjd-ink,#203a2e); background:var(--tjd-soft,#edf2e6); }
.tjw-consulta .tjw-consulta-acciones { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.tjw-consulta [data-tjw-copiar] { background:var(--tjd-button,#244b34); color:var(--tjd-button-ink,#fff); border-color:transparent; font-weight:650; }
.tjw-consulta [role=status] { margin:8px 0 0; }

/* La página compartida por QR empieza en la identidad del titular. Las marcas
   acompañan el pie en el flujo del documento, fuera de los controles de contacto. */
body.pagina-tarjeta {
  display:flex; flex-direction:column;
  padding-bottom:env(safe-area-inset-bottom);
}
.pagina-tarjeta :is(#appHeader,#bottomNav) { display:none; }
.pagina-tarjeta #view {
  flex:1 0 auto; width:100%; max-width:1220px;
  padding:clamp(12px,3vw,42px) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));
}
.pagina-tarjeta #bottomSponsors { position:static; flex:none; width:100%; z-index:auto; }
