/* 17300 Herramientas 0.1.0 · usa los tokens del tema the17300 (con valores de respaldo). */
.t-herr{--h-papel:var(--paper,#EFE7D6);--h-papel2:var(--paper-2,#E6DCC6);--h-tinta:var(--ink,#151515);--h-rojo:var(--red-web,#B81E16);--h-gris:var(--concrete-text,#66625A);
	margin:2.5rem 0;font-family:var(--f-texto,Inter,system-ui,sans-serif);color:var(--h-tinta)}
.t-herr *,.t-herr *::before,.t-herr *::after{box-sizing:border-box}
.t-herr__form{background:var(--h-papel2);border-top:6px solid var(--h-tinta);padding:clamp(1.25rem,3vw,2.25rem);position:relative}
.t-herr__form::after{content:"";position:absolute;top:-6px;right:0;width:34%;height:6px;background:var(--h-rojo);clip-path:polygon(12% 0,100% 0,100% 100%,0 100%)}
.t-herr__intro{margin:0 0 1.5rem;color:var(--h-gris)}
.t-herr__rejilla{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1.75rem}
.t-herr__campo{display:flex;flex-direction:column;gap:.35rem;margin:0;min-width:0;border:0;padding:0}
.t-herr label,.t-herr legend{font-family:var(--f-etiqueta,Oswald,"Arial Narrow",sans-serif);font-weight:500;font-size:1rem;line-height:1.3;letter-spacing:.01em}
.t-herr__opc{font-weight:400;color:var(--h-gris);text-transform:none}
.t-herr__entrada{display:flex;align-items:stretch}
.t-herr input[type=number],.t-herr select,.t-herr textarea{width:100%;min-height:48px;padding:.6rem .75rem;border:2px solid var(--h-tinta);border-radius:0;background:#fff;color:var(--h-tinta);font:inherit;font-size:1.05rem}
.t-herr textarea{min-height:auto;resize:vertical}
.t-herr__unidad{display:flex;align-items:center;padding:0 .8rem;background:var(--h-tinta);color:var(--h-papel);font-family:var(--f-etiqueta,Oswald,sans-serif);font-weight:600}
.t-herr input:focus-visible,.t-herr select:focus-visible,.t-herr textarea:focus-visible,.t-herr button:focus-visible,.t-herr a:focus-visible,.t-herr summary:focus-visible{outline:3px solid var(--h-rojo);outline-offset:2px}
.t-herr [aria-invalid=true]{border-color:var(--h-rojo);box-shadow:0 0 0 2px var(--h-rojo)}
.t-herr__ayuda{margin:0;font-size:.875rem;color:var(--h-gris)}
.t-herr__radios{flex-direction:row;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem}
.t-herr__radios legend{width:100%;margin-bottom:.35rem}
.t-herr__radios label{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font-family:var(--f-texto,Inter,sans-serif);font-weight:400}
.t-herr input[type=radio]{width:1.15rem;height:1.15rem;accent-color:var(--h-rojo);margin:0;flex:none}
.t-herr__hip{margin:1.5rem 0 0;border-top:1px solid var(--h-tinta);padding-top:1rem}
.t-herr__hip summary{cursor:pointer;font-family:var(--f-etiqueta,Oswald,sans-serif);font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--h-rojo);min-height:44px;display:flex;align-items:center}
.t-herr__tabla{width:100%;border-collapse:collapse;margin:1rem 0;background:var(--h-papel)}
.t-herr__tabla th,.t-herr__tabla td{padding:.6rem .75rem;border-bottom:1px solid rgba(21,21,21,.2);text-align:left;vertical-align:middle}
.t-herr__tabla thead th{background:var(--h-tinta);color:var(--h-papel);font-family:var(--f-etiqueta,Oswald,sans-serif);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.t-herr__tabla td{font-variant-numeric:tabular-nums;white-space:nowrap}
.t-herr__tabla--hip{max-width:480px}
.t-herr__tabla--hip input{max-width:6rem}
.t-herr__acciones{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;margin-top:1.75rem}
.t-herr .t-boton{cursor:pointer;border:0}
.t-herr__enlace{background:none;border:0;padding:0;min-height:44px;color:var(--h-rojo);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.t-herr__nota{font-size:.875rem;color:var(--h-gris);margin:.75rem 0 0}
.t-herr__aviso-campo{border-left:4px solid var(--h-rojo);padding:.5rem .75rem;background:#fff;margin:1rem 0}
.t-herr__subtitulo{font-family:var(--f-etiqueta,Oswald,sans-serif);font-weight:600;font-size:1.15rem;text-transform:uppercase;letter-spacing:.04em;margin:2rem 0 .75rem}
.t-herr__resultado{margin-top:2rem;padding:clamp(1.25rem,3vw,2.25rem);background:var(--h-papel);border:2px solid var(--h-tinta);box-shadow:10px 10px 0 var(--h-tinta)}
.t-herr__resultado:focus{outline:none}
.t-herr__titulo-res{font-family:var(--f-titular,Anton,Impact,sans-serif);font-weight:400;text-transform:uppercase;font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.05;margin:0 0 1rem}
.t-herr__frase{font-size:clamp(1.1rem,2.2vw,1.3rem);line-height:1.45;font-weight:600;margin:0 0 1rem}
.t-herr__barras{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.t-herr__barras li{display:grid;grid-template-columns:minmax(9rem,14rem) 1fr auto;gap:.75rem;align-items:center}
.t-herr__barra{display:block;height:14px;background:var(--h-papel2);position:relative;overflow:hidden}
.t-herr__barra-relleno{display:block;height:100%;background:var(--h-tinta);transition:width .3s}
.t-herr__barras li.es-floja .t-herr__barra-relleno{background:var(--h-rojo)}
.t-herr__barra-valor{font-variant-numeric:tabular-nums;font-size:.9rem;white-space:nowrap}
.t-herr__equilibrio{margin:1.5rem 0 0;padding:1rem 1.25rem;background:var(--h-tinta);color:var(--h-papel);font-weight:600}
.t-herr__lista{margin:0;padding-left:1.4rem;display:grid;gap:.6rem}
.t-herr__lista--acciones .t-enlace-flecha{display:inline-flex;min-height:auto}
.t-herr__wa-bloque{margin-top:1.5rem;display:grid;gap:.6rem;max-width:560px}
.t-herr__wa{justify-self:start}
/* test */
.t-herr__contexto{border:0;padding:0;margin:0 0 1rem;display:grid;gap:1rem}
.t-herr__preguntas{list-style:none;margin:0;padding:0;display:grid;gap:1rem;counter-reset:q}
.t-herr__item{counter-increment:q;background:var(--h-papel);padding:1rem 1.25rem;scroll-margin:6rem}
.t-herr__pregunta{border:0;margin:0;padding:0;min-width:0}
.t-herr__pregunta--ctx{background:var(--h-papel);padding:1rem 1.25rem}
.t-herr__pregunta legend{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.6rem;padding:0}
.t-herr__item .t-herr__q::before{content:counter(q) ". ";color:var(--h-rojo)}
.t-herr__area{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--h-rojo);font-weight:600}
.t-herr__q{font-family:var(--f-texto,Inter,sans-serif);font-weight:600;font-size:1.02rem}
.t-herr__opciones{display:flex;flex-wrap:wrap;gap:.5rem}
.t-herr__opcion{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.4rem .9rem;border:2px solid var(--h-tinta);background:#fff;cursor:pointer;font-family:var(--f-texto,Inter,sans-serif)!important;font-weight:400!important}
.t-herr__opcion:has(input:checked){background:var(--h-tinta);color:var(--h-papel)}
.t-herr__progreso{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;margin-bottom:1rem;position:sticky;top:0;z-index:2;background:var(--h-papel2);padding:.5rem 0}
.t-herr__progreso .t-herr__barra-relleno{background:var(--h-rojo)}
.t-herr__progreso-texto{margin:0;font-size:.875rem;font-variant-numeric:tabular-nums}
.t-herr__nota-grande{margin:0;font-family:var(--f-titular,Anton,Impact,sans-serif);font-size:1.5rem}
.t-herr__nota-num{font-size:clamp(4rem,12vw,6.5rem);line-height:1;color:var(--h-rojo)}
.t-herr__tramo{font-family:var(--f-etiqueta,Oswald,sans-serif);font-weight:600;text-transform:uppercase;letter-spacing:.04em;font-size:1.4rem;margin:.25rem 0 .75rem}
.t-herr__cierre{margin-top:1.5rem;font-weight:600}
/* tarjeta en otras páginas e índice */
.t-herr-tarjeta{margin:3rem 0;padding:clamp(1.25rem,3vw,2rem);background:var(--ink,#151515);color:var(--paper,#EFE7D6);border-left:10px solid var(--red-web,#B81E16);max-width:var(--t-prosa,720px)}
.t-herr-tarjeta .t-etiqueta{color:var(--paper,#EFE7D6);opacity:.85;margin:0 0 .4rem}
.t-herr-tarjeta__titulo{font-family:var(--f-titular,Anton,Impact,sans-serif);text-transform:uppercase;font-size:clamp(1.4rem,3vw,2rem);line-height:1.1;margin:0 0 .6rem}
.t-herr-tarjeta__texto{margin:0 0 1.25rem}
.t-herr-tarjeta .t-boton:hover{background:var(--paper,#EFE7D6);color:var(--ink,#151515)}
.t-herr-indice{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1.5rem;margin:2rem 0}
.t-herr-indice .t-herr-tarjeta{margin:0;max-width:none}
@media (max-width:700px){
	.t-herr__rejilla{grid-template-columns:1fr}
	.t-herr__barras li{grid-template-columns:1fr auto}
	.t-herr__barras .t-herr__barra{grid-column:1/-1;order:3}
	.t-herr__resultado{box-shadow:6px 6px 0 var(--h-tinta)}
	.t-herr__opciones{flex-direction:column}
	.t-herr__opcion{width:100%}
	.t-herr__tabla:not(.t-herr__tabla--hip) thead{display:none}
	.t-herr__tabla:not(.t-herr__tabla--hip) tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid rgba(21,21,21,.25);padding:.4rem 0}
	.t-herr__tabla:not(.t-herr__tabla--hip) th[scope=row]{grid-column:1/-1;border:0;padding-bottom:0}
	.t-herr__tabla:not(.t-herr__tabla--hip) td{border:0}
	.t-herr__tabla:not(.t-herr__tabla--hip) td::before{content:attr(data-label);display:block;font-size:.75rem;text-transform:uppercase;color:var(--h-gris)}
}
@media (prefers-reduced-motion:reduce){.t-herr__barra-relleno{transition:none}}
@media print{
	header,footer,nav,.t-wa-flotante,.t-herr__form,.t-herr__no-imprimir,.t-herr__wa-bloque,.t-cta,#t17300-cookies,[class*=cookies],[class*=nauzona]{display:none!important}
	.t-herr__resultado{box-shadow:none;border:1px solid #000}
	.t-herr__barra,.t-herr__barra-relleno,.t-herr__equilibrio{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
