/* ==========================================================================
   Texturizador 3D (/texturizador) — usa los tokens de style.css
   El JS sale de tools/texturizador (node build.mjs).
   ========================================================================== */

[hidden] { display: none !important; }

/* --- Cabecera compacta ---------------------------------------------------- */
.tx-cabecera {
  position: relative;
  padding: clamp(20px, 2.6vw, 34px) var(--pad-page) clamp(14px, 1.6vw, 20px);
  background: var(--grad-hero);
  overflow: hidden;
}
.tx-cabecera::before {
  content: ""; position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(77, 184, 205, .08), transparent 62%);
  filter: blur(50px); pointer-events: none;
}
.tx-cabecera__inner { position: relative; max-width: 1440px; margin: 0 auto; display: grid; gap: 6px; }
.tx-cabecera h1 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.03em; text-wrap: balance; }
.tx-cabecera__tono { color: var(--accent); }
.tx-cabecera__sub { max-width: 980px; font-size: clamp(14.5px, 1.2vw, 16px); line-height: 1.5; color: var(--ink-soft); }
/* Enlace a la página que explica la herramienta con vídeos (/herramientas/texturizador-3d) */
.tx-cabecera__sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* --- App -------------------------------------------------------------------- */
.tx { padding: 12px var(--pad-page) 64px; background: var(--bg); }
.tx__app {
  max-width: 1440px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 16px;
  /* Ocupa lo que queda de pantalla bajo el menú y la cabecera: se ve entera sin bajar. */
  height: clamp(600px, calc(100vh - 84px - var(--alto-cabecera, 130px) - 30px), 1000px);
}

/* --- Vista ------------------------------------------------------------------ */
.tx__vista { min-width: 0; min-height: 0; }
.tx-escenario {
  position: relative; height: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 12%, #2b3643 0%, #171e27 52%, #0f1419 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
}
.tx-escenario__lienzo { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.tx-escenario__lienzo:active { cursor: grabbing; }
.tx-escenario__lienzo > canvas { width: 100% !important; height: 100% !important; display: block; }
.tx-escenario__pista {
  position: absolute; bottom: 14px; left: 104px; right: 70px;
  text-align: center; font-size: 12px; color: var(--ink-faint); pointer-events: none;
}

.tx-ficha {
  position: absolute; top: 14px; left: 14px; max-width: calc(100% - 130px);
  display: grid; gap: 1px; padding: 8px 12px;
  background: rgba(12, 15, 19, .55); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(8px); pointer-events: none;
}
.tx-ficha strong { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-ficha span { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.tx-herramientas {
  position: absolute; left: 14px; bottom: 44px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.tx-herramienta {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 9px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  background: rgba(12, 15, 19, .58); border: 1px solid var(--line); border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.tx-herramienta svg { width: 17px; height: 17px; flex: none; }
.tx-herramienta:hover { color: var(--ink); background: rgba(30, 38, 47, .75); }
.tx-herramienta[aria-pressed="true"] { color: #0c0f13; background: var(--accent); border-color: var(--accent); }
.tx-herramienta:focus-visible, .tx-herramienta:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-herramienta--color select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tx-herramienta__muestra { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }

.tx-trabajando {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; font-size: 12.5px; color: var(--ink-soft);
  background: rgba(12, 15, 19, .7); border: 1px solid var(--line); border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.tx-trabajando__rueda {
  width: 13px; height: 13px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent);
  animation: tx-girar .8s linear infinite;
}
@keyframes tx-girar { to { transform: rotate(360deg); } }
.tx-trabajando__barra { display: none; width: 90px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.tx-trabajando.con-barra .tx-trabajando__barra { display: block; }
.tx-trabajando__barra span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
/* Cancelar un cálculo largo (sale a los 4 s de estar leyendo o preparando la pieza) */
.tx-trabajando__cancelar {
  margin-left: 4px; padding: 3px 10px; border-radius: var(--r-pill);
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.08); border: 1px solid var(--line); cursor: pointer;
}
.tx-trabajando__cancelar:hover { background: rgba(255,255,255,.14); }
.tx-trabajando__cancelar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-trabajando__cancelar[hidden] { display: none; }

.tx-soltar {
  position: absolute; inset: 10px; z-index: 5;
  display: grid; place-items: center;
  border: 2px dashed var(--accent); border-radius: calc(var(--r-lg) - 6px);
  background: rgba(12, 20, 26, .78);
  font-size: 17px; font-weight: 600; color: var(--ink);
  pointer-events: none;
}
.tx-sin-webgl {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 24px;
  background: rgba(12, 15, 19, .92); text-align: center;
}
.tx-sin-webgl p { max-width: 420px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.tx-sin-webgl strong { display: block; margin-bottom: 6px; color: var(--ink); }

/* Comparar */
.tx-comparador { position: absolute; inset: 0; pointer-events: none; --corte: 50%; }
.tx-comparador__linea { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 2px; margin-left: -1px; background: rgba(255,255,255,.85); box-shadow: 0 0 12px rgba(0,0,0,.4); }
.tx-comparador__asa {
  position: absolute; top: 50%; left: var(--corte);
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  display: grid; place-items: center;
  color: #0c0f13; background: #fff; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  pointer-events: auto; cursor: ew-resize; touch-action: none;
}
.tx-comparador__asa svg { width: 20px; height: 20px; }
.tx-comparador__rotulo {
  position: absolute; top: 64px; padding: 4px 10px; font-size: 12px; font-weight: 600;
  color: var(--ink); background: rgba(12,15,19,.6); border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.tx-comparador__rotulo--izq { right: calc(100% - var(--corte) + 12px); }
.tx-comparador__rotulo--der { left: calc(var(--corte) + 12px); }

/* Cubo, ejes y botones de la vista */
.tx-cubo { position: absolute; top: 12px; right: 12px; width: 80px; height: 80px; display: grid; place-items: center; pointer-events: none; }
.tx-cubo__caja { position: relative; width: 52px; height: 52px; transform-style: preserve-3d; pointer-events: auto; }
.tx-cubo__cara {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 600; color: #dfe6ec;
  background: rgba(60, 70, 82, .92); border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  backface-visibility: hidden; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.tx-cubo__cara:hover, .tx-cubo__cara:focus-visible { background: var(--accent); color: #0c0f13; outline: none; }
.tx-ejes { position: absolute; left: 10px; bottom: 6px; width: 78px; height: 78px; pointer-events: none; overflow: visible; opacity: .9; }
.tx-ejes text { font: 700 12px/1 var(--font); }
.tx-nav {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 4px; padding: 4px;
  background: rgba(12, 15, 19, .55); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px);
}
.tx-nav__boton { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-soft); border-radius: 10px; transition: background .15s var(--ease), color .15s var(--ease); }
.tx-nav__boton svg { width: 19px; height: 19px; }
.tx-nav__boton:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.tx-nav__boton:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tx-nav__boton.is-activo { background: var(--accent); color: #0c0f13; }
.tx-herramientas { bottom: 96px; }

/* --- Panel ------------------------------------------------------------------ */
.tx__panel {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.tx-pasos {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 10px 10px 8px;
  background: rgba(19, 26, 33, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.tx-pasos [role="tab"] {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted);
  border-radius: 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tx-pasos [role="tab"] span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft); background: rgba(255,255,255,.08);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tx-pasos [role="tab"]:hover { color: var(--ink); }
.tx-pasos [role="tab"][aria-selected="true"] { color: var(--ink); background: rgba(77,184,205,.1); }
.tx-pasos [role="tab"][aria-selected="true"] span { color: #0c0f13; background: var(--accent); }
.tx-pasos [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.tx-paso { display: grid; gap: 16px; padding: 16px 18px 22px; align-content: start; }
.tx-bloque { display: grid; gap: 12px; }
.tx-bloque--general { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tx-etiqueta { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-muted); }
.tx-ayuda { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.tx-ayuda--intro { font-size: 13.5px; }
.tx-ayuda--centro { text-align: center; margin-top: -6px; }
.tx-ayuda--error { color: #f6cdc8; }
.tx-siguiente { width: 100%; margin-top: 4px; }

/* Subir */
.tx-subir {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 22px 16px;
  border: 1.5px dashed rgba(77,184,205,.45); border-radius: var(--r-md);
  background: rgba(77,184,205,.05);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.tx-subir:hover { background: rgba(77,184,205,.1); border-color: var(--accent); }
.tx-subir:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-subir svg { width: 30px; height: 30px; color: var(--accent); }
.tx-subir strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.tx-subir span { font-size: 13px; color: var(--ink-muted); }

.tx-ejemplos { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-chip {
  padding: 7px 13px; font-size: 13px; font-weight: 500; color: var(--ink-soft);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.tx-chip:hover { color: var(--ink); background: rgba(255,255,255,.09); }
.tx-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: rgba(77,184,205,.12); }
.tx-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tx-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tx-datos div { display: grid; gap: 2px; padding: 10px 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); border-radius: 12px; }
.tx-datos span { font-size: 11.5px; color: var(--ink-faint); }
.tx-datos strong { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tx-avisos { display: grid; gap: 6px; }
.tx-avisos li {
  padding: 9px 12px; font-size: 13px; line-height: 1.45; color: #f5e2b8;
  background: rgba(229,180,84,.08); border: 1px solid rgba(229,180,84,.25); border-radius: 10px;
}
.tx-avisos li.is-error { color: #f6cdc8; background: rgba(224,103,90,.1); border-color: rgba(224,103,90,.35); }

.tx-giros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tx-boton-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 10px; font-size: 13px; font-weight: 500; color: var(--ink-soft);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.tx-boton-sec:hover:not(:disabled) { color: var(--ink); background: rgba(255,255,255,.1); }
.tx-boton-sec:disabled { opacity: .4; cursor: default; }
.tx-boton-sec:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-boton-sec svg { width: 17px; height: 17px; }
.tx-boton-sec--dado { justify-self: start; }
.tx-eje { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; font-size: 10.5px; font-weight: 700; color: #0c0f13; border-radius: 4px; }
.tx-eje--x { background: #e5484d; }
.tx-eje--y { background: #46a758; }
.tx-eje--z { background: #3e8ef7; }

/* Controles */
.tx-control { display: grid; gap: 7px; min-width: 0; }
.tx-control__nombre {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.tx-control__nombre output { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; text-align: right; }
.tx-control__fila { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; align-items: center; }
.tx-num {
  display: flex; align-items: center;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tx-num:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,184,205,.18); }
.tx-num input {
  width: 100%; min-width: 0; padding: 8px 2px 8px 10px;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
  background: none; border: 0; outline: none; -moz-appearance: textfield;
}
.tx-num input::-webkit-outer-spin-button, .tx-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tx-num span { padding-right: 10px; font-size: 12.5px; color: var(--ink-faint); }
.tx-select {
  width: 100%; padding: 9px 34px 9px 12px; font-size: 14px; color: var(--ink);
  background: rgba(0,0,0,.28) linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%) calc(100% - 18px) 50% / 5px 5px no-repeat;
  border: 1px solid var(--line); border-radius: 10px; appearance: none;
}
.tx-select option { background: #151a21; color: var(--ink); }
.tx-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,184,205,.18); }

.tx__panel input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.tx__panel input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); }
.tx__panel input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); }
.tx__panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; margin-top: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: transform .15s var(--ease);
}
.tx__panel input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 3px solid var(--accent); }
.tx__panel input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.tx__panel input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.tx-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); border-radius: 13px; }
.tx-seg label { flex: 1 1 auto; position: relative; }
.tx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tx-seg span {
  display: block; padding: 8px 10px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink-muted);
  border-radius: 9px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.tx-seg span:hover { color: var(--ink); }
.tx-seg input:checked + span { color: #0c0f13; background: var(--ink); box-shadow: var(--shadow-xs); }
.tx-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-seg--pincel label { flex: 1 1 40%; }

.tx-casilla { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; width: fit-content; }
.tx-casilla input { width: 17px; height: 17px; accent-color: var(--accent); }

.tx-interruptor {
  position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start;
  cursor: pointer;
}
.tx-interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.tx-interruptor::before {
  content: ""; grid-row: 1; grid-column: 1; width: 38px; height: 22px; margin-top: 1px; border-radius: 22px;
  background: rgba(255,255,255,.16); transition: background .2s var(--ease);
}
.tx-interruptor::after {
  content: ""; position: absolute; left: 3px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s var(--ease-out-fuerte);
}
.tx-interruptor:has(input:checked)::before { background: var(--accent); }
.tx-interruptor:has(input:checked)::after { transform: translateX(16px); }
.tx-interruptor:has(input:focus-visible)::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-interruptor span { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.tx-interruptor strong { font-size: 14px; font-weight: 600; color: var(--ink); }

.tx-mas { border-top: 1px solid var(--line-soft); padding-top: 12px; display: grid; gap: 14px; }
.tx-mas:not([open]) { gap: 0; }
.tx-mas summary { cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.tx-mas summary::-webkit-details-marker { display: none; }
.tx-mas summary::before { content: "+"; display: inline-block; width: 16px; color: var(--accent); font-weight: 700; transition: transform .2s var(--ease); }
.tx-mas[open] summary::before { transform: rotate(45deg); }
.tx-mas summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.tx-enlace { font-size: 13px; font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }

/* Galería */
.tx-buscador { position: relative; }
.tx-buscador svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--ink-faint); pointer-events: none; }
.tx-buscador input {
  width: 100%; padding: 10px 12px 10px 38px; font-size: 14.5px; color: var(--ink);
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px;
}
.tx-buscador input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,184,205,.18); }
.tx-categorias { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: -4px -2px 0; padding: 2px; }
.tx-categorias::-webkit-scrollbar { display: none; }
.tx-categorias label { position: relative; flex: none; }
.tx-categorias input { position: absolute; opacity: 0; pointer-events: none; }
.tx-categorias span {
  display: block; padding: 6px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: var(--r-pill); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.tx-categorias span:hover { color: var(--ink); }
.tx-categorias input:checked + span { color: #0c0f13; background: var(--ink); border-color: var(--ink); }
.tx-categorias input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.tx-galeria {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px;
  max-height: 330px; overflow-y: auto; padding: 2px 4px 2px 2px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.tx-tex { display: grid; gap: 5px; padding: 0; text-align: center; border-radius: 12px; }
.tx-tex__img {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 11px; border: 1.5px solid var(--line-soft);
  background: #1b222b;
  transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
canvas.tx-tex__img { opacity: 0; transition: opacity .3s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.tx-tex.is-lista canvas.tx-tex__img, .tx-tex--imagen canvas.tx-tex__img { opacity: 1; }
.tx-tex--imagen .tx-tex__img { color: var(--accent); background: rgba(77,184,205,.07); border-style: dashed; border-color: rgba(77,184,205,.45); }
.tx-tex--imagen svg { width: 30px; height: 30px; }
.tx-tex__nombre {
  font-size: 11.5px; line-height: 1.25; color: var(--ink-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.tx-tex:hover .tx-tex__img { border-color: var(--line); transform: translateY(-1px); }
.tx-tex:hover .tx-tex__nombre { color: var(--ink); }
.tx-tex[aria-selected="true"] .tx-tex__img { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,184,205,.22); }
.tx-tex[aria-selected="true"] .tx-tex__nombre { color: var(--ink); font-weight: 600; }
.tx-tex:focus-visible { outline: none; }
.tx-tex:focus-visible .tx-tex__img { outline: 2px solid var(--accent); outline-offset: 2px; }

.tx-params__cab { display: grid; gap: 2px; }
.tx-params__cab strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.tx-params__cab span { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
#tx-params-textura { padding-top: 14px; border-top: 1px solid var(--line-soft); }

.tx-imagen { display: grid; gap: 12px; padding: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.tx-imagen__cab { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.tx-imagen__cab canvas { width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.tx-imagen__cab strong { font-size: 14.5px; color: var(--ink); }
.tx-imagen__cab > div { display: grid; gap: 6px; }

.tx-proyecciones { display: grid; gap: 6px; }
.tx-proyecciones label { position: relative; }
.tx-proyecciones input { position: absolute; opacity: 0; pointer-events: none; }
.tx-proyecciones span {
  display: grid; gap: 1px; padding: 9px 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink-muted);
  background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); border-radius: 11px; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.tx-proyecciones strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tx-proyecciones span:hover { border-color: var(--line); }
.tx-proyecciones input:checked + span { border-color: var(--accent); background: rgba(77,184,205,.1); }
.tx-proyecciones input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tx-calco { display: grid; gap: 8px; }

.tx-pincel { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tx-pincel__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Comprobaciones */
.tx-comprobar { display: grid; gap: 8px; }
.tx-resumen {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; font-size: 14.5px; font-weight: 600; line-height: 1.35;
  border-radius: var(--r-sm); border: 1px solid transparent;
}
.tx-resumen:empty { display: none; }
.tx-resumen::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 13px; }
.tx-resumen--ok { color: #cdeedd; background: rgba(87,177,132,.12); border-color: rgba(87,177,132,.35); }
.tx-resumen--ok::before { background-color: var(--green-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230c0f13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tx-resumen--aviso { color: #f5e2b8; background: rgba(229,180,84,.1); border-color: rgba(229,180,84,.35); }
.tx-resumen--aviso::before { background-color: #e5b454; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v6M8 12.3v.2' fill='none' stroke='%230c0f13' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tx-resumen--mal { color: #f6cdc8; background: rgba(224,103,90,.12); border-color: rgba(224,103,90,.4); }
.tx-resumen--mal::before { background-color: #e0675a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%230c0f13' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tx-checks { display: grid; gap: 6px; }
.tx-check {
  position: relative; display: grid; gap: 2px; padding: 9px 12px 9px 40px;
  font-size: 13px; line-height: 1.45; color: var(--ink-muted);
  background: rgba(0,0,0,.18); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.tx-check strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.tx-check::before {
  content: ""; position: absolute; left: 11px; top: 10px; width: 19px; height: 19px; border-radius: 6px;
  background: rgba(255,255,255,.08) no-repeat center / 12px;
}
.tx-check--ok::before { background-color: var(--green-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230c0f13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tx-check--aviso { border-color: rgba(229,180,84,.28); }
.tx-check--aviso::before { background-color: #e5b454; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v6M8 12.3v.2' fill='none' stroke='%230c0f13' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tx-check--mal { border-color: rgba(224,103,90,.4); }
.tx-check--mal::before { background-color: #e0675a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%230c0f13' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tx-check--info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 7.2v4.6M8 4.4v.2' fill='none' stroke='%239aa5af' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tx-descargar { width: 100%; padding: 16px 28px; font-size: 16.5px; font-weight: 600; }

/* --- Ventana de descarga ------------------------------------------------------- */
.tx-dialogo {
  width: min(480px, calc(100vw - 32px)); padding: 26px 26px 22px;
  color: var(--ink); background: #141a21;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.tx-dialogo::backdrop { background: rgba(6, 9, 12, .72); backdrop-filter: blur(4px); }
.tx-dialogo[open] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: tx-aparecer .25s var(--ease-out-fuerte); }
@keyframes tx-aparecer { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.tx-dialogo__cerrar-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.tx-dialogo__cerrar { width: 34px; height: 34px; font-size: 22px; line-height: 1; color: var(--ink-muted); border-radius: 50%; }
.tx-dialogo__cerrar:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.tx-dialogo h2 { font-size: 24px; letter-spacing: -0.02em; padding-right: 30px; }
.tx-dialogo__texto { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-top: -6px; }
.tx-dialogo__estado {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; font-size: 13px; color: var(--ink-soft);
  background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); border-radius: 12px;
  margin-right: 34px;
}
.tx-dialogo__estado .tx-trabajando__barra { display: block; flex: 1 1 100%; width: auto; }
.tx-dialogo__estado.is-error { color: #f6cdc8; border-color: rgba(224,103,90,.4); }
.tx-dialogo__redes { display: grid; gap: 8px; }
.tx-red {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 14px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.tx-red svg { width: 28px; height: 28px; flex: none; }
.tx-red span { display: grid; gap: 1px; }
.tx-red strong { font-size: 15.5px; font-weight: 600; }
.tx-red small { font-size: 12.5px; opacity: .85; }
.tx-red--youtube { color: #fff; background: #e62117; box-shadow: 0 8px 22px rgba(230, 33, 23, .28); }
.tx-red--youtube:hover { transform: translateY(-1px); background: #f4271c; box-shadow: 0 12px 28px rgba(230, 33, 23, .38); }
.tx-red--instagram { color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.tx-red--instagram svg { color: #e1306c; }
.tx-red--instagram:hover { background: rgba(255,255,255,.09); }
.tx-red:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tx-dialogo--suscrito .tx-red--youtube { color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); box-shadow: none; }
.tx-dialogo--suscrito .tx-red--youtube svg { color: #e62117; }
.tx-dialogo__pie { display: grid; gap: 8px; justify-items: center; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.tx-dialogo__pie .btn { width: 100%; margin-top: 12px; white-space: normal; } /* que el texto se parta en móviles estrechos */
.tx-dialogo__pie .btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.tx-dialogo__pie .tx-ayuda { text-align: center; min-height: 1em; }

/* --- Guía de abajo ------------------------------------------------------------ */
.tx-faq { display: grid; gap: 10px; }
.tx-faq details { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.tx-faq summary { cursor: pointer; font-size: 16.5px; font-weight: 600; color: var(--ink); list-style: none; }
.tx-faq summary::-webkit-details-marker { display: none; }
.tx-faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; transition: transform .2s var(--ease); }
.tx-faq details[open] summary::after { transform: rotate(45deg); }
.tx-faq p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.tx-guia__mas { margin-top: 28px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.tx-guia__mas a, .tx-guia__creditos a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.tx-guia__creditos { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }

/* --- Tableta y móvil ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .tx__app { grid-template-columns: minmax(0, 1fr) minmax(330px, 370px); }
}
@media (max-width: 900px) {
  .tx__app { --alto-vista: clamp(290px, 46vh, 540px); grid-template-columns: minmax(0, 1fr); height: auto; gap: 10px; }
  .tx__vista { height: var(--alto-vista); position: sticky; top: 64px; z-index: 3; }
  .tx__panel { overflow: visible; }
  .tx-pasos { top: calc(64px + var(--alto-vista)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .tx-galeria { max-height: 300px; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .tx__vista { position: static; height: 58vh; }
  .tx-pasos { top: 64px; }
}
@media (max-width: 520px) {
  .tx { padding-left: 10px; padding-right: 10px; }
  .tx-paso { padding: 14px 14px 20px; }
  .tx-escenario__pista { display: none; }
  .tx-cubo { transform: scale(.8); transform-origin: top right; }
  .tx-herramienta span:not(.tx-herramienta__muestra) { display: none; }
  .tx-herramienta { padding: 8px; }
  .tx-herramientas { bottom: 12px; left: 12px; flex-direction: row; }
  .tx-ejes { display: none; }
  .tx-control__fila { grid-template-columns: minmax(0, 1fr) 92px; }
  .tx-galeria { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-trabajando__rueda { animation-duration: 2s; }
  .tx-dialogo[open] { animation: none; }
  .tx-tex__img, .tx-seg span, .tx-chip, .tx-interruptor::after { transition: none; }
}

/* Archivo listo: la rueda pasa a ser una marca */
.tx-dialogo__estado.is-listo { color: #cdeedd; border-color: rgba(87,177,132,.35); background: rgba(87,177,132,.1); }
.tx-dialogo__estado.is-listo .tx-trabajando__rueda {
  animation: none; border: 0; width: 18px; height: 18px;
  background: var(--green-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230c0f13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tx-dialogo__estado.is-listo .tx-trabajando__barra, .tx-dialogo__estado.is-error .tx-trabajando__barra { display: none; }
.tx-dialogo__estado.is-error .tx-trabajando__rueda { animation: none; border-color: #e0675a; }

/* Relieve de otro color: muestras */
.tx-bloque--color { padding: 12px 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.tx-muestras { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-muestra {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--muestra); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.tx-muestra:hover { transform: scale(1.08); }
.tx-muestra[aria-pressed="true"] { box-shadow: 0 0 0 2px #141a21, 0 0 0 4px var(--accent); }
.tx-muestra:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tx-apoyar { width: 100%; justify-content: flex-start; }
.tx-apoyar[aria-pressed="true"] { color: #0c0f13; background: var(--accent); border-color: var(--accent); }

.tx-control--linea { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tx-select--corto { width: auto; min-width: 110px; padding-top: 7px; padding-bottom: 7px; }
.tx-ayuda--nota { color: var(--blue-ink); }
.tx-descargar[disabled] { opacity: .5; cursor: progress; transform: none; box-shadow: none; }
.tx-dialogo__aviso { text-align: left !important; font-size: 12.5px; color: var(--ink-faint); }

/* --- Bienvenida y recorrido ------------------------------------------------- */
.tx-bienvenida .tx-dialogo__pie { border-top: 0; padding-top: 0; }
.tx-bienvenida .tx-dialogo__pie .btn { margin-top: 4px; }
.tx-bienvenida .tx-dialogo__texto { margin-top: -4px; }
.tx-tour { position: fixed; inset: 0; z-index: 90; }
.tx-tour__foco {
  position: fixed; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(6, 9, 12, .72), 0 0 0 2px var(--accent) inset;
  transition: left .35s var(--ease-out-fuerte), top .35s var(--ease-out-fuerte), width .35s var(--ease-out-fuerte), height .35s var(--ease-out-fuerte);
  pointer-events: none;
}
.tx-tour__tarjeta {
  position: fixed; display: grid; gap: 8px;
  padding: 18px 18px 14px; background: #141a21; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  transition: left .35s var(--ease-out-fuerte), top .35s var(--ease-out-fuerte);
}
.tx-tour__titulo { font-size: 17px; font-weight: 600; padding-right: 28px; }
.tx-tour__texto { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.tx-tour__cerrar { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; font-size: 20px; color: var(--ink-muted); border-radius: 50%; }
.tx-tour__cerrar:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.tx-tour__pie { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.tx-tour__puntos { display: flex; gap: 5px; margin-right: auto; }
.tx-tour__puntos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .2s var(--ease), width .2s var(--ease); }
.tx-tour__puntos span.is-activo { width: 18px; border-radius: 4px; background: var(--accent); }
.tx-tour__siguiente { padding: 10px 20px; font-size: 14.5px; }
body.tx-con-tour { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .tx-tour__foco, .tx-tour__tarjeta { transition: none; }
}

/* Galería por grupos */
.tx-galeria { max-height: 400px; }
.tx-galeria__grupo {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 1;
  padding: 8px 2px 6px; margin-top: 2px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: linear-gradient(#171d25 70%, rgba(23, 29, 37, 0));
}
.tx-categorias small { font-size: 11px; font-weight: 600; opacity: .6; margin-left: 2px; }

.tx-unidades { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tx-unidades .tx-ayuda { flex-basis: 100%; }
.tx-galeria-vacia { padding: 10px 2px; }
/* Móvil: el aviso de trabajo abajo (arriba tapaba la ficha) y el botón de cookies de la web, a un lado */
@media (max-width: 520px) {
  .tx-trabajando { top: auto; bottom: 62px; }
}
.tx-pagina #e3d-cookie-reopen { left: auto; right: 14px; }
@media (max-width: 900px) {
  /* Móvil: el botón de las cookies tapaba «Temas» y los «Siguiente» de la derecha. No se quita
     (es la forma de cambiar el consentimiento): más pequeño y en la esquina izquierda. */
  .tx-pagina #e3d-cookie-reopen { left: 8px; right: auto; bottom: 8px; width: 32px; height: 32px; font-size: 16px; opacity: .85; }
}

/* Temas: botón que despliega todos (antes una fila que solo se movía con trackpad) */
.tx-filtros { display: flex; gap: 8px; }
.tx-filtros .tx-buscador { flex: 1; min-width: 0; }
.tx-temas {
  flex: none; display: inline-flex; align-items: center; gap: 7px; max-width: 52%;
  padding: 0 11px 0 12px; font-size: 14px; font-weight: 500; color: var(--ink);
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.tx-temas span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-temas small { font-size: 11.5px; font-weight: 600; opacity: .65; margin-left: 3px; }
.tx-temas svg { width: 17px; height: 17px; flex: none; color: var(--ink-muted); }
.tx-temas .tx-temas__flecha { width: 16px; height: 16px; transition: transform .2s var(--ease-out-fuerte); }
.tx-temas:hover { border-color: rgba(255,255,255,.28); }
.tx-temas:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,184,205,.18); }
.tx-temas[aria-expanded="true"] { border-color: var(--accent); }
.tx-temas[aria-expanded="true"] .tx-temas__flecha { transform: rotate(180deg); }
.tx-temas.is-filtrado { color: var(--accent); border-color: rgba(77,184,205,.55); background: rgba(77,184,205,.08); }
.tx-temas.is-filtrado svg { color: var(--accent); }
.tx-categorias {
  flex-wrap: wrap; overflow: visible; margin: 0; padding: 10px;
  background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); border-radius: 12px;
  animation: tx-desplegar .18s var(--ease-out-fuerte);
}
.tx-categorias[hidden] { display: none; }
.tx-categorias label { flex: none; }
@keyframes tx-desplegar { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tx-categorias { animation: none; }
  .tx-temas .tx-temas__flecha { transition: none; }
}

/* --- Revisión del 28-sep ------------------------------------------------------- */
/* Sin la herramienta (sin WebGL 2 o sin el cálculo): el aviso ocupa todo, sin un panel muerto */
.tx__panel[hidden] { display: none !important; }
.tx__app--sin { grid-template-columns: minmax(0, 1fr); }
/* Anillo de foco también en las casillas numéricas (Escala, tamaño, profundidad) */
.tx-num input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 520px) {
  /* Casillas que se puedan tocar bien (24 px como mínimo) */
  .tx-casilla { min-height: 32px; }
  .tx-casilla input { width: 20px; height: 20px; }
  /* La ficha de la pieza, solo con el nombre: no tapa la parte de arriba del modelo */
  .tx-ficha { top: 8px; left: 8px; padding: 5px 9px; max-width: calc(100% - 110px); }
  .tx-ficha span { display: none; }
  .tx-ficha strong { font-size: 12.5px; }
}

/* --- Aviso de beta (29-sep) --------------------------------------------------------- */
.tx-cabecera__beta { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.tx-cabecera__beta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tx-cabecera__beta__marca {
  display: inline-block; margin-right: 6px; padding: 1px 9px; vertical-align: 1px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1px solid rgba(77,184,205,.45); border-radius: var(--r-pill);
}
/* TikTok en las peticiones de seguir (bienvenida y descarga), discreto como Instagram */
.tx-red--tiktok { color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.tx-red--tiktok svg { color: #25f4ee; filter: drop-shadow(1.5px 1px 0 #fe2c55); }
.tx-red--tiktok:hover { background: rgba(255,255,255,.09); }
