/* =====================================================================
   TARJETERO · Estilos de las tarjetas (bios, historias y posts)
   Todo se mide en "em" a partir del ancho del contenedor (.tj-lienzo),
   así la misma tarjeta se ve igual en miniatura, en el celular de la
   ventana o a pantalla completa.
   ===================================================================== */

/* Contenedor obligatorio alrededor de cada tarjeta */
.tj-lienzo { container-type: inline-size; width: 100%; }

.tj {
  --tj-acento: #0b7a86;
  --tj-acento-ink: #ffffff;
  --tj-bg: #eef6f7;
  --tj-ink: #0b2e36;
  --tj-muted: #4e6b72;
  --tj-b1: #ffffff;
  --tj-b1-ink: var(--tj-ink);
  --tj-b2: color-mix(in srgb, var(--tj-acento) 14%, #ffffff);
  --tj-b2-ink: var(--tj-ink);
  --tj-k-b2: var(--tj-acento);
  --tj-hero: linear-gradient(140deg, var(--tj-acento), color-mix(in srgb, var(--tj-acento) 62%, #001a22));
  --tj-hero-ink: #ffffff;
  --tj-chip: var(--tj-acento);
  --tj-chip-ink: var(--tj-acento-ink);
  --tj-hero-chip: #ffffff;
  --tj-hero-chip-ink: #0b2e36;
  --tj-display: "Archivo", system-ui, sans-serif;
  --tj-body: "Archivo", system-ui, sans-serif;
  --tj-d-peso: 760;
  --tj-d-ancho: 100%;
  --tj-d-caso: none;
  --tj-d-track: -0.015em;
  --tj-d-estilo: normal;
  --tj-nombre: 1.62em;
  --tj-radio: 1.15em;
  --tj-chip-radio: 99em;
  --tj-linea: color-mix(in srgb, var(--tj-ink) 12%, transparent);
  --tj-retrato-fondo: color-mix(in srgb, var(--tj-acento) 24%, #ffffff);
  --tj-sombra: 0 .2em .8em rgba(10, 20, 30, .07);

  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  contain: content;
  font-size: 4.4444cqw;
  font-family: var(--tj-body);
  font-stretch: 100%;
  line-height: 1.3;
  color: var(--tj-ink);
  background-color: var(--tj-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.tj *, .tj *::before, .tj *::after { box-sizing: border-box; }
.tj :where(h2, h3, p, ul, li) { margin: 0; padding: 0; }
.tj ul { list-style: none; }
.tj img { display: block; max-width: none; }
.tj .ico { width: 1em; height: 1em; flex: none; }
:where(.tj) button {
  font: inherit; color: inherit; background: none; border: 0;
  padding: 0; margin: 0; cursor: pointer; text-align: inherit;
}

/* Tipografía */
.tj-d {
  font-family: var(--tj-display);
  font-weight: var(--tj-d-peso);
  font-stretch: var(--tj-d-ancho);
  font-style: var(--tj-d-estilo);
  text-transform: var(--tj-d-caso);
  letter-spacing: var(--tj-d-track);
  line-height: 1.02;
  text-wrap: balance;
}
.tj-nombre { font-size: var(--tj-nombre); }
.tj-titulo {
  display: block; font-size: .5em; font-weight: 650; font-style: normal;
  letter-spacing: .02em; text-transform: none; opacity: .85; margin-bottom: .2em;
}
.tj-nombre-txt { display: block; }
.tj-esp { font-size: .7em; font-weight: 700; letter-spacing: .01em; margin-top: .5em; opacity: .92; }
.tj-frase { font-size: .7em; line-height: 1.38; margin-top: .45em; opacity: .86; max-width: 17em; }
.tj-k {
  font-size: .6em; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--tj-acento); margin-bottom: .4em;
}
.tj-h { font-size: 1.1em; }
.tj-p { font-size: .7em; line-height: 1.38; color: var(--tj-muted); margin-top: .35em; }
.tj-resumen { display: none; }

/* Botón dentro del banner. Su ::after cubre el banner completo. */
.tj-chip {
  display: inline-flex; align-items: center; gap: .45em;
  margin-top: .85em; padding: .62em 1.05em;
  font-size: .68em; font-weight: 750; letter-spacing: .01em; white-space: nowrap;
  border-radius: var(--tj-chip-radio);
  background: var(--tj-chip); color: var(--tj-chip-ink);
}
.tj-chip::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tj-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tj-chip .ico { width: 1.15em; height: 1.15em; }

/* Imágenes */
.tj-retrato-marco { position: relative; isolation: isolate; pointer-events: none; }
.tj-retrato { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.tj-media { pointer-events: none; }
.tj-foto { width: 100%; height: 100%; object-fit: cover; }
.tj-ico3d { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 .3em .45em rgba(0, 0, 0, .2)); }
.tj-respaldo {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--tj-display); font-weight: 800; font-size: 2.2em;
  color: var(--tj-acento); background: var(--tj-retrato-fondo);
}
.tj-ico3d.tj-respaldo, .tj-foto.tj-respaldo { font-size: 1em; }

/* ---------------------------------------------------------------
   BIO
   --------------------------------------------------------------- */
.tj--bio { display: flex; flex-direction: column; gap: .7em; padding: .85em .85em 1.1em; min-height: 100%; }
.tj-b {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--tj-radio);
  background: var(--tj-b1); color: var(--tj-b1-ink);
}
.tj-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.tj-lista { width: 100%; margin-top: .5em; }
.tj-lista li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6em;
  font-size: .68em; padding: .45em 0; border-bottom: 1px solid var(--tj-linea);
}
.tj-lista li:last-child { border-bottom: 0; }
.tj-sv { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
.tj-precio { font-weight: 800; color: var(--tj-acento); white-space: nowrap; }

.tj-b--redes { background: transparent; overflow: visible; display: flex; flex-direction: column; align-items: center; padding-top: .3em; }
.tj-b--redes .tj-k { color: var(--tj-muted); }
.tj-redes { display: flex; gap: .6em; justify-content: center; }
.tj-red {
  display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%;
  background: var(--tj-b1); color: var(--tj-b1-ink); box-shadow: inset 0 0 0 1px var(--tj-linea);
}
.tj-red .ico { width: 1.05em; height: 1.05em; }
.tj-red:focus-visible { outline: 2px solid var(--tj-acento); outline-offset: 2px; }
.tj-pie { text-align: center; font-size: .55em; color: var(--tj-muted); opacity: .85; }

/* ----- Acomodo "póster": banners grandes que alternan lado ----- */
.tj[data-acomodo="poster"] .tj-b--portada,
.tj[data-acomodo="mosaico"] .tj-b--portada {
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: 14em;
  background: var(--tj-hero); color: var(--tj-hero-ink);
}
.tj[data-acomodo="mosaico"] .tj-b--portada { min-height: 12.6em; grid-column: 1 / -1; }
/* El padding derecho deja libre la franja que tapa la foto (margin-left: -1.6em). */
.tj[data-acomodo="poster"] .tj-b--portada .tj-txt,
.tj[data-acomodo="mosaico"] .tj-b--portada .tj-txt { padding: 1.15em 1.3em 1.15em 1.1em; justify-content: center; }
.tj-b--portada .tj-frase { text-wrap: balance; }
.tj[data-acomodo="poster"] .tj-b--portada .tj-retrato-marco,
.tj[data-acomodo="mosaico"] .tj-b--portada .tj-retrato-marco { align-self: end; height: 100%; min-height: 14em; margin-left: -1.6em; }
.tj[data-acomodo="mosaico"] .tj-b--portada .tj-retrato-marco { min-height: 12.6em; }
.tj[data-acomodo="poster"] .tj-b--portada .tj-retrato-marco .tj-retrato,
.tj[data-acomodo="mosaico"] .tj-b--portada .tj-retrato-marco .tj-retrato { position: absolute; inset: 0; object-position: bottom right; }
.tj[data-acomodo="poster"] .tj-b--portada .tj-chip,
.tj[data-acomodo="mosaico"] .tj-b--portada .tj-chip { background: var(--tj-hero-chip); color: var(--tj-hero-chip-ink); }

.tj[data-acomodo="poster"] .tj-b--servicios { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 11.6em; }
.tj[data-acomodo="poster"] .tj-b--servicios .tj-media { position: relative; }
.tj[data-acomodo="poster"] .tj-b--servicios .tj-foto { position: absolute; inset: 0; }
.tj[data-acomodo="poster"] .tj-b--servicios .tj-txt { padding: 1em 1em 1em .95em; justify-content: center; }

.tj[data-acomodo="poster"] :is(.tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp) {
  display: grid; grid-template-columns: 1fr 5.4em; align-items: center; gap: .5em;
  padding: 1em .9em 1em 1.1em; min-height: 8.4em;
}
.tj[data-acomodo="poster"] .tj-b--ubicacion { grid-template-columns: 5.4em 1fr; padding: 1em 1.1em 1em .9em; }
.tj[data-acomodo="poster"] :is(.tj-b--extra, .tj-b--whatsapp) .tj-media { order: 2; }
.tj[data-acomodo="poster"] .tj-b--extra,
.tj[data-acomodo="mosaico"] .tj-b--extra { background: var(--tj-b2); color: var(--tj-b2-ink); }
.tj[data-acomodo="poster"] .tj-b--extra .tj-k,
.tj[data-acomodo="mosaico"] .tj-b--extra .tj-k { color: var(--tj-k-b2); }
.tj[data-acomodo="poster"] .tj-b--extra .tj-p,
.tj[data-acomodo="mosaico"] .tj-b--extra .tj-p { color: inherit; opacity: .78; }
.tj[data-acomodo="poster"] .tj-b--whatsapp,
.tj[data-acomodo="mosaico"] .tj-b--whatsapp { background: var(--tj-hero); color: var(--tj-hero-ink); }
.tj[data-acomodo="poster"] .tj-b--whatsapp .tj-p,
.tj[data-acomodo="mosaico"] .tj-b--whatsapp .tj-p { color: inherit; opacity: .85; }
.tj[data-acomodo="poster"] .tj-b--whatsapp .tj-chip,
.tj[data-acomodo="mosaico"] .tj-b--whatsapp .tj-chip { background: var(--tj-hero-chip); color: var(--tj-hero-chip-ink); }

/* ----- Acomodo "mosaico": portada y mosaico de 2 columnas ----- */
.tj--bio[data-acomodo="mosaico"] { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; align-content: start; }
.tj[data-acomodo="mosaico"] :is(.tj-b--servicios, .tj-b--whatsapp, .tj-b--redes, .tj-pie) { grid-column: 1 / -1; }
.tj[data-acomodo="mosaico"] .tj-b--servicios .tj-media { position: relative; aspect-ratio: 16 / 8; }
.tj[data-acomodo="mosaico"] .tj-b--servicios .tj-foto { position: absolute; inset: 0; }
.tj[data-acomodo="mosaico"] .tj-b--servicios .tj-txt { padding: .9em 1em 1em; }
.tj[data-acomodo="mosaico"] :is(.tj-b--extra, .tj-b--ubicacion) { display: flex; flex-direction: column; padding: .85em .85em .9em; min-height: 11.4em; }
.tj[data-acomodo="mosaico"] :is(.tj-b--extra, .tj-b--ubicacion) .tj-media { width: 3.5em; margin-bottom: .45em; }
.tj[data-acomodo="mosaico"] :is(.tj-b--extra, .tj-b--ubicacion) .tj-h { font-size: .92em; }
.tj[data-acomodo="mosaico"] :is(.tj-b--extra, .tj-b--ubicacion) .tj-p { font-size: .62em; }
.tj[data-acomodo="mosaico"] :is(.tj-b--extra, .tj-b--ubicacion) .tj-chip { font-size: .6em; margin-top: auto; padding: .6em .9em; }
.tj[data-acomodo="mosaico"] :is(.tj-b--extra, .tj-b--ubicacion) .tj-txt { flex: 1; }
.tj[data-acomodo="mosaico"] .tj-b--whatsapp { display: grid; grid-template-columns: 1fr 4.4em; align-items: center; gap: .5em; padding: .9em .9em .9em 1.05em; }
.tj[data-acomodo="mosaico"] .tj-b--whatsapp .tj-media { order: 2; }

/* ----- Acomodo "enlaces": foto circular y botones con foto ----- */
.tj[data-acomodo="enlaces"] .tj-b--portada {
  display: flex; flex-direction: column-reverse; align-items: center; text-align: center;
  background: transparent; color: var(--tj-ink); overflow: visible; padding: .5em 0 .2em;
}
.tj[data-acomodo="enlaces"] .tj-b--portada .tj-txt { align-items: center; }
.tj[data-acomodo="enlaces"] .tj-b--portada .tj-retrato-marco {
  width: 8.2em; height: 8.2em; border-radius: 50%; overflow: hidden;
  background: var(--tj-hero); margin-bottom: .85em;
  box-shadow: 0 0 0 .28em var(--tj-bg), 0 0 0 .42em var(--tj-acento);
}
.tj[data-acomodo="enlaces"] .tj-b--portada .tj-retrato { object-fit: cover; object-position: 50% 8%; transform: scale(1.18) translateY(7%); }
.tj[data-acomodo="enlaces"] .tj-nombre { --tj-nombre: 1.42em; }
.tj[data-acomodo="enlaces"] .tj-frase { max-width: 19em; }
.tj[data-acomodo="enlaces"] .tj-b--portada .tj-chip { margin-top: .9em; }
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp) {
  display: grid; grid-template-columns: 4.1em 1fr 1em; align-items: center; gap: .85em;
  padding: .6em .9em .6em .6em; min-height: 5.3em; box-shadow: var(--tj-sombra);
}
.tj[data-acomodo="enlaces"] .tj-media {
  position: relative; width: 4.1em; height: 4.1em; overflow: hidden; display: grid; place-items: center;
  border-radius: calc(var(--tj-radio) * .72); background: var(--tj-b2);
}
.tj[data-acomodo="enlaces"] .tj-media .tj-foto { position: absolute; inset: 0; }
.tj[data-acomodo="enlaces"] .tj-media .tj-ico3d { width: 80%; }
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp) .tj-h { font-size: .95em; }
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp) .tj-p {
  font-size: .62em; margin-top: .25em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tj[data-acomodo="enlaces"] .tj-b--servicios .tj-lista { display: none; }
.tj[data-acomodo="enlaces"] .tj-b--servicios .tj-resumen { display: -webkit-box; }
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion) .tj-k { display: none; }
/* En enlaces el botón se vuelve una flecha discreta, pero sigue cubriendo todo el renglón */
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp) .tj-chip {
  margin: 0; padding: 0; background: none; color: inherit; width: 0; height: 0; overflow: visible;
}
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp) .tj-chip > * {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.tj[data-acomodo="enlaces"] :is(.tj-b--servicios, .tj-b--extra, .tj-b--ubicacion, .tj-b--whatsapp)::after {
  content: ""; grid-column: 3; width: .55em; height: .55em; justify-self: center;
  border-top: .14em solid currentColor; border-right: .14em solid currentColor;
  transform: rotate(45deg); opacity: .45;
}
.tj[data-acomodo="enlaces"] .tj-b--whatsapp { background: var(--tj-hero); color: var(--tj-hero-ink); }
.tj[data-acomodo="enlaces"] .tj-b--whatsapp .tj-p { color: inherit; opacity: .85; }
.tj[data-acomodo="enlaces"] .tj-b--whatsapp .tj-media { background: color-mix(in srgb, var(--tj-hero-ink) 16%, transparent); }

/* ---------------------------------------------------------------
   HISTORIA 9:16
   --------------------------------------------------------------- */
.tj--historia {
  aspect-ratio: 9 / 16; display: flex; flex-direction: column;
  padding: 2.1em 1.6em 1.5em; background: var(--tj-hero); color: var(--tj-hero-ink);
}
.tj-hs-arriba { position: relative; z-index: 2; }
.tj--historia .tj-esp { margin: 0 0 .6em; font-size: .78em; }
.tj--historia .tj-nombre { --tj-nombre: 2.25em; }
.tj--historia .tj-frase { font-size: .82em; max-width: 14.5em; margin-top: .65em; }
.tj-hs-servicios { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .45em; margin-top: 1.2em; }
.tj-hs-servicios li {
  font-size: .74em; font-weight: 750; padding: .5em .9em; border-radius: 99em;
  background: color-mix(in srgb, var(--tj-hero-ink) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tj-hero-ink) 26%, transparent);
}
.tj--historia .tj-retrato-marco { position: absolute; right: -4%; bottom: 0; width: 80%; height: 62%; z-index: 1; }
.tj--historia .tj-retrato { object-position: bottom right; }
.tj-hs-pie {
  position: relative; z-index: 2; margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: .8em;
  padding: .8em .9em; border-radius: min(var(--tj-radio), 1.2em);
  background: var(--tj-b1); color: var(--tj-b1-ink); box-shadow: 0 .4em 1.4em rgba(0, 0, 0, .2);
}
.tj-hs-wa { display: flex; align-items: center; gap: .6em; min-width: 0; }
.tj-hs-wa > .ico { width: 1.9em; height: 1.9em; color: #25d366; }
.tj-hs-wa-k { display: block; font-size: .64em; color: var(--tj-muted); }
.tj-hs-wa strong { display: block; font-size: .9em; }
.tj-qr { display: flex; flex-direction: column; align-items: center; gap: .25em; font-size: .52em; font-weight: 700; color: var(--tj-muted); }
.tj-qr .ico { width: 4.4em; height: 4.4em; padding: .35em; border-radius: .45em; background: #ffffff; color: #111111; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

/* ---------------------------------------------------------------
   POST 1:1
   --------------------------------------------------------------- */
.tj--post {
  aspect-ratio: 1; display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: 1fr auto;
  background: var(--tj-hero); color: var(--tj-hero-ink);
}
.tj-po-txt { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 1.5em 0 .8em 1.4em; }
.tj--post .tj-esp { margin: 0 0 .5em; font-size: .68em; }
.tj--post .tj-nombre { --tj-nombre: 1.7em; }
.tj--post .tj-frase { font-size: .68em; }
.tj-po-servicios { display: flex; flex-direction: column; gap: .4em; margin-top: .9em; }
.tj-po-servicios li { display: flex; align-items: center; gap: .45em; font-size: .66em; font-weight: 700; }
.tj-po-servicios .ico { width: 1.15em; height: 1.15em; color: var(--tj-hero-chip); }
.tj--post .tj-retrato-marco { grid-column: 2; grid-row: 1 / 3; align-self: end; height: 100%; margin-left: -2.2em; z-index: 1; }
.tj--post .tj-retrato { object-position: bottom right; }
.tj-po-pie {
  grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: .7em;
  margin: 0 1em 1em; padding: .6em .85em; border-radius: min(var(--tj-radio), 1em);
  background: var(--tj-b1); color: var(--tj-b1-ink); font-size: .66em; font-weight: 750;
  box-shadow: 0 .3em 1em rgba(0, 0, 0, .18);
}
.tj-po-wa, .tj-po-lugar { display: flex; align-items: center; gap: .45em; min-width: 0; }
.tj-po-lugar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-po-wa .ico { width: 1.35em; height: 1.35em; color: #25d366; }
.tj-po-lugar .ico { width: 1.1em; height: 1.1em; color: var(--tj-acento); }

/* ---------------------------------------------------------------
   FOTO PROPIA (una foto normal, sin recortar, subida en el armador)
   --------------------------------------------------------------- */
.tj--foto-propia .tj-retrato { object-fit: cover; object-position: 50% 25%; }
.tj--foto-propia[data-acomodo="poster"] .tj-b--portada .tj-retrato-marco,
.tj--foto-propia[data-acomodo="mosaico"] .tj-b--portada .tj-retrato-marco {
  margin: .9em .9em .9em 0; min-height: 0; border-radius: calc(var(--tj-radio) * .8); overflow: hidden;
}
.tj--foto-propia.tj--historia .tj-retrato-marco { right: 1.6em; bottom: 7.2em; width: 60%; height: 46%; border-radius: 1em; overflow: hidden; }
.tj--foto-propia.tj--post .tj-retrato-marco { margin: 1.3em 1.3em 3.8em -.4em; height: auto; align-self: stretch; border-radius: 1em; overflow: hidden; }
.tj--foto-propia .tj-retrato-marco::before { display: none; }

/* ---------------------------------------------------------------
   TEMAS
   --------------------------------------------------------------- */

/* Consultorio: salud, limpio y suave */
.tj[data-tema="consultorio"]:not([data-acomodo="enlaces"]) .tj-retrato-marco::before,
.tj[data-tema="consultorio"]:is(.tj--historia, .tj--post) .tj-retrato-marco::before {
  content: ""; position: absolute; z-index: -1; left: 10%; bottom: 10%; width: 86%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255, 255, 255, .17);
}

/* Despacho: legal y finanzas, marino con dorado */
.tj[data-tema="despacho"] {
  --tj-acento: #c8a45a; --tj-acento-ink: #0f1b2d;
  --tj-bg: #0f1b2d; --tj-ink: #f4efe6; --tj-muted: #b9b2a3;
  --tj-b1: #16253c; --tj-b1-ink: #f4efe6;
  --tj-b2: #f4efe6; --tj-b2-ink: #0f1b2d; --tj-k-b2: #7d6227;
  --tj-hero: linear-gradient(160deg, #1d2f4b, #0b1424);
  --tj-hero-ink: #f4efe6;
  --tj-chip: var(--tj-acento); --tj-chip-ink: var(--tj-acento-ink);
  --tj-hero-chip: var(--tj-acento); --tj-hero-chip-ink: var(--tj-acento-ink);
  --tj-display: "Bodoni Moda", Georgia, serif; --tj-d-peso: 600; --tj-d-track: 0;
  --tj-radio: .35em; --tj-chip-radio: .2em;
  --tj-linea: rgba(200, 164, 90, .3);
  --tj-retrato-fondo: #1d2f4b;
  --tj-sombra: none;
}
.tj[data-tema="despacho"] .tj-b:not(.tj-b--redes) { outline: 1px solid rgba(200, 164, 90, .5); outline-offset: -.42em; }
.tj[data-tema="despacho"] .tj-red { box-shadow: inset 0 0 0 1px rgba(200, 164, 90, .5); }

/* Taller: oficios y autos, carbón con amarillo de seguridad */
.tj[data-tema="taller"] {
  --tj-acento: #ffc20e; --tj-acento-ink: #1e2227;
  --tj-bg: #15181c; --tj-ink: #f5f5f2; --tj-muted: #a9afb7;
  --tj-b1: #23282e; --tj-b1-ink: #f5f5f2;
  --tj-b2: var(--tj-acento); --tj-b2-ink: var(--tj-acento-ink); --tj-k-b2: var(--tj-acento-ink);
  --tj-hero: #23282e; --tj-hero-ink: #f5f5f2;
  --tj-chip: var(--tj-acento); --tj-chip-ink: var(--tj-acento-ink);
  --tj-hero-chip: var(--tj-acento); --tj-hero-chip-ink: var(--tj-acento-ink);
  --tj-d-peso: 820; --tj-d-ancho: 70%; --tj-d-caso: uppercase; --tj-d-track: .01em;
  --tj-nombre: 1.9em;
  --tj-radio: .4em; --tj-chip-radio: .25em;
  --tj-linea: rgba(255, 255, 255, .12);
  --tj-retrato-fondo: #2f353c;
}
.tj[data-tema="taller"] :is(.tj-b--portada, .tj--historia)::after,
.tj--historia[data-tema="taller"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .7em; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--tj-acento) 0 .7em, #1e2227 .7em 1.4em);
}
.tj[data-acomodo="enlaces"][data-tema="taller"] .tj-b--portada::after { display: none; }
.tj[data-tema="taller"][data-acomodo="poster"] .tj-b--extra .tj-chip,
.tj[data-tema="taller"][data-acomodo="mosaico"] .tj-b--extra .tj-chip { background: #1e2227; color: var(--tj-acento); }

/* Salón: belleza, rubor con ciruela y foto en arco */
.tj[data-tema="salon"] {
  --tj-acento: #8e3b66; --tj-acento-ink: #ffffff;
  --tj-bg: #fbf1ee; --tj-ink: #3f1d33; --tj-muted: #87606f;
  --tj-b1: #ffffff; --tj-b2: #f4dcd6; --tj-b2-ink: #3f1d33;
  --tj-hero: linear-gradient(165deg, #f7e3de, #eac3ba); --tj-hero-ink: #3f1d33;
  --tj-hero-chip: var(--tj-acento); --tj-hero-chip-ink: var(--tj-acento-ink);
  --tj-display: "Bodoni Moda", Georgia, serif; --tj-d-peso: 500; --tj-d-estilo: italic; --tj-d-track: -.01em;
  --tj-nombre: 1.75em;
  --tj-radio: 1.6em;
  --tj-retrato-fondo: #eac3ba;
}
.tj[data-tema="salon"]:not([data-acomodo="enlaces"]) .tj-retrato-marco::before,
.tj[data-tema="salon"]:is(.tj--historia, .tj--post) .tj-retrato-marco::before {
  content: ""; position: absolute; z-index: -1; left: 12%; right: 4%; top: 12%; bottom: 0;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: rgba(255, 255, 255, .55);
}

/* Estudio: creativos, blanco y negro con tipografía ancha */
.tj[data-tema="estudio"] {
  --tj-acento: #111111; --tj-acento-ink: #ffffff;
  --tj-bg: #ffffff; --tj-ink: #111111; --tj-muted: #5c5c5c;
  --tj-b1: #ffffff; --tj-b2: #f0f0ed; --tj-b2-ink: #111111; --tj-k-b2: var(--tj-acento);
  --tj-hero: #111111; --tj-hero-ink: #ffffff;
  --tj-hero-chip: #ffffff; --tj-hero-chip-ink: #111111;
  --tj-d-peso: 800; --tj-d-ancho: 122%; --tj-d-track: -.035em;
  --tj-nombre: 1.4em;
  --tj-radio: 0; --tj-chip-radio: 0;
  --tj-linea: rgba(17, 17, 17, .85);
  --tj-retrato-fondo: #e9e9e6;
  --tj-sombra: none;
}
.tj[data-tema="estudio"] .tj-b:not(.tj-b--redes) { box-shadow: inset 0 0 0 1px #111111; }
.tj[data-tema="estudio"] .tj-red { border-radius: 0; box-shadow: inset 0 0 0 1px #111111; }

/* Mercado: comida y eventos, colores de fiesta y papel picado */
.tj[data-tema="mercado"] {
  --tj-acento: #cc4a24; --tj-acento-ink: #ffffff;
  --tj-bg: #fff4de; --tj-ink: #3a1a0e; --tj-muted: #7a5544;
  --tj-b1: #ffffff; --tj-b2: #ffd36e; --tj-b2-ink: #3a1a0e; --tj-k-b2: #9a3412;
  --tj-hero: var(--tj-acento); --tj-hero-ink: #fff8ec;
  --tj-hero-chip: #ffd36e; --tj-hero-chip-ink: #3a1a0e;
  --tj-display: "Nunito", system-ui, sans-serif; --tj-body: "Nunito", system-ui, sans-serif;
  --tj-d-peso: 900; --tj-d-track: -.01em;
  --tj-radio: 1.1em;
  --tj-retrato-fondo: #ffd36e;
}
.tj[data-tema="mercado"] .tj-b--portada::before,
.tj--historia[data-tema="mercado"]::before,
.tj--post[data-tema="mercado"]::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1em; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, transparent .4em, #1b9aaa .42em) 0 0 / 1.2em 1em repeat-x;
}
.tj[data-acomodo="enlaces"][data-tema="mercado"] .tj-b--portada::before { top: -.5em; }

/* Natural: bienestar, nutrición y mascotas */
.tj[data-tema="natural"] {
  --tj-acento: #3f6b4f; --tj-acento-ink: #ffffff;
  --tj-bg: #eef2ea; --tj-ink: #213528; --tj-muted: #5d7064;
  --tj-b1: #ffffff; --tj-b2: #dfe8d8; --tj-b2-ink: #213528;
  --tj-hero: linear-gradient(160deg, #d3e0cc, #b9ccb0); --tj-hero-ink: #1c2f22;
  --tj-hero-chip: var(--tj-acento); --tj-hero-chip-ink: var(--tj-acento-ink);
  --tj-display: "Nunito", system-ui, sans-serif; --tj-d-peso: 850; --tj-d-track: -.015em;
  --tj-radio: 1.7em;
  --tj-retrato-fondo: #c9d8c2;
}
.tj[data-tema="natural"]:not([data-acomodo="enlaces"]) .tj-retrato-marco::before,
.tj[data-tema="natural"]:is(.tj--historia, .tj--post) .tj-retrato-marco::before {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 2%; top: 16%; bottom: 3%;
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%; background: rgba(255, 255, 255, .5);
}

/* Noche: barbería, tatuajes, DJ; negro con dorado champaña */
.tj[data-tema="noche"] {
  --tj-acento: #d7b98a; --tj-acento-ink: #111111;
  --tj-bg: #0c0c0e; --tj-ink: #f3eee6; --tj-muted: #a39d93;
  --tj-b1: #18181c; --tj-b1-ink: #f3eee6;
  --tj-b2: #232329; --tj-b2-ink: #f3eee6;
  --tj-hero: radial-gradient(120% 95% at 78% 88%, #3b3224 0%, #151517 58%, #0c0c0e 100%); --tj-hero-ink: #f3eee6;
  --tj-chip: var(--tj-acento); --tj-chip-ink: var(--tj-acento-ink);
  --tj-hero-chip: var(--tj-acento); --tj-hero-chip-ink: var(--tj-acento-ink);
  --tj-d-peso: 700; --tj-d-ancho: 112%; --tj-d-caso: uppercase; --tj-d-track: .045em;
  --tj-nombre: 1.3em;
  --tj-radio: .8em;
  --tj-linea: rgba(215, 185, 138, .22);
  --tj-retrato-fondo: #2a2620;
  --tj-sombra: none;
}
.tj[data-tema="noche"] .tj-b:not(.tj-b--redes) { box-shadow: inset 0 0 0 1px rgba(215, 185, 138, .2); }

/* Aula: educación, azul cielo con amarillo */
.tj[data-tema="aula"] {
  --tj-acento: #2563eb; --tj-acento-ink: #ffffff;
  --tj-bg: #eaf3ff; --tj-ink: #12305c; --tj-muted: #4d6385;
  --tj-b1: #ffffff; --tj-b2: #fff1c2; --tj-b2-ink: #12305c; --tj-k-b2: #8a5a00;
  --tj-hero: var(--tj-acento); --tj-hero-ink: #ffffff;
  --tj-hero-chip: #ffcc33; --tj-hero-chip-ink: #12305c;
  --tj-display: "Nunito", system-ui, sans-serif; --tj-body: "Nunito", system-ui, sans-serif; --tj-d-peso: 900;
  --tj-radio: 1.4em;
  --tj-retrato-fondo: #ffcc33;
}
.tj--bio[data-tema="aula"] { background-image: radial-gradient(rgba(37, 99, 235, .13) .09em, transparent .1em); background-size: 1.1em 1.1em; }
.tj[data-tema="aula"]:not([data-acomodo="enlaces"]) .tj-retrato-marco::before,
.tj[data-tema="aula"]:is(.tj--historia, .tj--post) .tj-retrato-marco::before {
  content: ""; position: absolute; z-index: -1; right: 4%; bottom: 8%; width: 80%; aspect-ratio: 1;
  border-radius: 50%; background: #ffcc33;
}

/* Ejecutivo: inmobiliaria, seguros, consultoría y tecnología */
.tj[data-tema="ejecutivo"] {
  --tj-acento: #0e7c86; --tj-acento-ink: #ffffff;
  --tj-bg: #f2f6f8; --tj-ink: #0f2a3d; --tj-muted: #557086;
  --tj-b1: #ffffff; --tj-b2: #dcecef; --tj-b2-ink: #0f2a3d;
  --tj-hero: linear-gradient(135deg, #0f2a4a 0%, #0e5a70 60%, var(--tj-acento) 100%); --tj-hero-ink: #ffffff;
  --tj-hero-chip: #ffffff; --tj-hero-chip-ink: #0f2a3d;
  --tj-d-peso: 760; --tj-d-ancho: 104%; --tj-d-track: -.02em;
  --tj-radio: .9em;
  --tj-retrato-fondo: #cfe3e8;
}
.tj[data-tema="ejecutivo"]:not([data-acomodo="enlaces"]) .tj-b--portada::before,
.tj--historia[data-tema="ejecutivo"]::before,
.tj--post[data-tema="ejecutivo"]::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 52%, rgba(255, 255, 255, .07) 52% 68%, transparent 68%);
}
