/* TuFísico · diseño v3 «oriental» (16-nov-2026). Se carga encima de estilo.css solo con body.tf-v3.
   Ambiente japonés sutil: papel washi, dragón a tinta (Kanō Naganobu, dominio público), ensō, kanji en marca de agua,
   sellos hanko en los títulos, trazos de pincel, ondas seigaiha y movimiento suave (desactivado con «reducir movimiento»). */
@property --tf-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

body.tf-v3{
  --tf-kanji:'Noto Serif JP','Hiragino Mincho ProN','Yu Mincho',serif;
  --tf-pincel:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23f)' fill='%23121212' d='M2 7C40 3 120 2 210 3S360 5 398 6L392 9C300 11 180 11 90 11S20 11 3 10Z'/%3E%3C/svg%3E");
  --tf-pincel-rojo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23f)' fill='%23c8211a' d='M2 7C40 3 120 2 210 3S360 5 398 6L392 9C300 11 180 11 90 11S20 11 3 10Z'/%3E%3C/svg%3E");
  --tf-seigaiha:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23121212' stroke-width='1.1'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0M8 24a16 16 0 0 1 32 0M16 24a8 8 0 0 1 16 0'/%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0M-16 12a16 16 0 0 1 32 0M-8 12a8 8 0 0 1 16 0M24 12a24 24 0 0 1 48 0M32 12a16 16 0 0 1 32 0M40 12a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
  background:var(--tf-papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")!important;
}

/* ===== sello hanko junto a los títulos ===== */
body.tf-v3 h2[data-kanji]{display:flex;align-items:center;gap:14px}
body.tf-v3 h2[data-kanji]::before{content:attr(data-kanji);flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:5px;background:var(--tf-rojo);color:#fff;font:700 21px/1 var(--tf-kanji);box-shadow:inset 0 0 0 2px #c8211a,inset 0 0 0 3px #ffffff55;transform:rotate(-3deg)}
body.tf-v3 .tf-cabeza{border-bottom:0;padding-bottom:20px;background:var(--tf-pincel) left bottom/100% 9px no-repeat}

/* ===== portada: héroe con dragón, ensō y kanji ===== */
body.tf-v3 .tf-heroe{position:relative;overflow:hidden;min-height:min(760px,92vh);display:flex;align-items:center}
body.tf-v3 .tf-heroe::before{content:"";position:absolute;inset:-20%;background:radial-gradient(36% 42% at 72% 58%,rgba(200,33,26,.13),transparent 70%),radial-gradient(30% 30% at 20% 20%,rgba(255,255,255,.04),transparent 70%);animation:tf-niebla 26s ease-in-out infinite alternate;pointer-events:none}
@keyframes tf-niebla{from{transform:translate3d(-2%,0,0)}to{transform:translate3d(3%,-2%,0)}}
body.tf-v3 .tf-heroe-foto{display:none}
body.tf-v3 .tf-heroe-grid{display:block;position:relative;z-index:2;width:100%}
body.tf-v3 .tf-heroe-grid>div{max-width:620px}
body.tf-v3 .tf-heroe h1{font-size:clamp(44px,6vw,80px);text-shadow:0 2px 30px #000}
body.tf-v3 .tf-heroe h1 em{box-shadow:none;background:var(--tf-pincel-rojo) left 92%/100% .22em no-repeat;padding-bottom:.06em}
body.tf-v3 .tf-arte{position:absolute;inset:0;pointer-events:none;z-index:1}
body.tf-v3 .tf-enso{position:absolute;right:13%;top:50%;width:min(44vw,600px);aspect-ratio:1;translate:calc(var(--tf-mx,0)*-10px) calc(-50% + var(--tf-sy,0px)*.10);opacity:.92;
  -webkit-mask:conic-gradient(from 30deg,#000 var(--tf-ang),transparent 0);mask:conic-gradient(from 30deg,#000 var(--tf-ang),transparent 0);animation:tf-enso 2.6s cubic-bezier(.65,.05,.3,1) .35s forwards}
@keyframes tf-enso{to{--tf-ang:360deg}}
body.tf-v3 .tf-dragon{mix-blend-mode:screen;position:absolute;right:-6%;top:50%;width:min(72vw,1040px);translate:calc(var(--tf-mx,0)*-26px) calc(-50% + var(--tf-sy,0px)*.22 + var(--tf-my,0)*-14px);opacity:0;
  -webkit-mask:radial-gradient(ellipse 58% 60% at 55% 50%,#000 30%,transparent 74%);mask:radial-gradient(ellipse 58% 60% at 55% 50%,#000 30%,transparent 74%);animation:tf-aparece 3s ease .2s forwards,tf-respira 16s ease-in-out 3s infinite alternate}
@keyframes tf-aparece{to{opacity:var(--tf-op,.5)}}
@keyframes tf-respira{from{scale:1}to{scale:1.045}}
body.tf-v3 .tf-kanji-v{position:absolute;right:2.2%;top:9%;writing-mode:vertical-rl;font:700 clamp(54px,8vw,124px)/1 var(--tf-kanji);color:#fff;opacity:.07;letter-spacing:.12em}
body.tf-v3 .tf-arte-credito{position:absolute;right:16px;bottom:10px;font-size:11px;color:#ffffff66;z-index:2}
body.tf-v3 .tf-arte-credito a{color:#ffffff88!important;text-decoration:none}
body.tf-v3 .tf-buscador{box-shadow:0 18px 50px #000a}

/* ===== disciplinas: foto en gris que se colorea, kanji y pincel ===== */
body.tf-v3 .tf-disc{position:relative}
body.tf-v3 .tf-disc img{filter:grayscale(1) contrast(1.08) brightness(.92);transition:filter .5s ease,transform .6s ease}
body.tf-v3 .tf-disc:hover img{filter:none}
body.tf-v3 .tf-disc-kanji{position:absolute;top:10px;right:10px;writing-mode:vertical-rl;font:700 22px/1.05 var(--tf-kanji);color:#fff;text-shadow:0 1px 10px #000c;letter-spacing:.08em;opacity:.9}
body.tf-v3 .tf-disc-pie{position:relative;border-bottom:0}
body.tf-v3 .tf-disc-pie::after{content:"";position:absolute;left:0;bottom:-2px;height:7px;width:28%;background:var(--tf-pincel) left/100% 100% no-repeat;transition:width .5s ease}
body.tf-v3 .tf-disc:hover .tf-disc-pie::after{width:100%;background-image:var(--tf-pincel-rojo)}

/* ===== listas, aviso, preguntas ===== */
body.tf-v3 ul.tf-lista-puntos li{transition:padding .25s ease,background .25s ease}
body.tf-v3 ul.tf-lista-puntos li:hover{padding-left:10px;background:linear-gradient(90deg,#c8211a14,transparent 70%)}
body.tf-v3 .tf-aviso{position:relative;overflow:hidden;border-top:0;background:#fff var(--tf-pincel-rojo) left top/100% 8px no-repeat}
body.tf-v3 .tf-aviso::after{content:"";position:absolute;right:0;top:0;bottom:0;width:38%;background:var(--tf-seigaiha);opacity:.07;-webkit-mask:linear-gradient(90deg,transparent,#000);mask:linear-gradient(90deg,transparent,#000);pointer-events:none}
body.tf-v3 .tf-aviso>*{position:relative;z-index:1}
body.tf-v3 .tf-faq details[open] p{animation:tf-sube .45s ease}
@keyframes tf-sube{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* ===== bandas de páginas índice y fichas: kanji de la disciplina ===== */
body.tf-v3 .tf-banda{overflow:hidden}
body.tf-v3 .tf-banda.tf-con-foto{background:linear-gradient(90deg,rgba(18,18,18,.95) 0%,rgba(18,18,18,.88) 55%,rgba(18,18,18,.7) 100%),var(--tf-fondo) center 35%/cover no-repeat,var(--tf-negro)}
body.tf-v3 .tf-kanji-banda{position:absolute;right:4%;top:50%;translate:0 -50%;writing-mode:vertical-rl;font:700 clamp(70px,10vw,150px)/1 var(--tf-kanji);color:#fff;opacity:.09;letter-spacing:.1em;pointer-events:none;z-index:0}
body.tf-v3 .tf-banda h1{position:relative}
body.tf-v3 .tf-banda h1::after{content:"";display:block;width:120px;height:9px;margin-top:14px;background:var(--tf-pincel-rojo) left/100% 100% no-repeat}

/* ===== bandas interiores: dragón entre olas (Soga Shōhaku) y caligrafía de la disciplina dentro del ensō ===== */
body.tf-v3 .tf-arte-banda{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
body.tf-v3 .tf-dragon-olas{position:absolute;right:-10%;top:50%;width:min(82vw,1250px);translate:0 -50%;mix-blend-mode:screen;opacity:0;
  -webkit-mask:radial-gradient(ellipse 60% 70% at 60% 50%,#000 30%,transparent 76%);mask:radial-gradient(ellipse 60% 70% at 60% 50%,#000 30%,transparent 76%);
  animation:tf-aparece 2.6s ease .1s forwards,tf-respira 18s ease-in-out 2.6s infinite alternate;--tf-op:.42}
body.tf-v3 .tf-caligrafia{position:absolute;right:7%;top:50%;width:clamp(170px,19vw,270px);aspect-ratio:1;translate:0 -50%}
body.tf-v3 .tf-cabficha .tf-caligrafia{width:clamp(150px,15vw,220px);top:46%}
body.tf-v3 .tf-caligrafia .tf-enso{position:absolute;inset:0;width:100%;height:100%;right:auto;top:auto;translate:none;opacity:.95}
body.tf-v3 .tf-caligrafia span{position:absolute;inset:0;display:grid;place-items:center;writing-mode:vertical-rl;font:700 clamp(40px,4.6vw,70px)/1 var(--tf-kanji);color:#f3efe6;letter-spacing:.06em;text-shadow:0 2px 24px #000;opacity:0;animation:tf-tinta 1.6s ease 1.5s forwards}
@keyframes tf-tinta{from{opacity:0;filter:blur(8px);scale:1.08}to{opacity:.93;filter:none;scale:1}}
body.tf-v3 .tf-banda.tf-con-foto{background:linear-gradient(90deg,rgba(18,18,18,.96) 0%,rgba(18,18,18,.9) 50%,rgba(18,18,18,.8) 100%),var(--tf-fondo) center 35%/cover no-repeat,var(--tf-negro)}
body.tf-v3 .tf-kanji-banda{display:none}

/* ===== sellos hanko en las tarjetas de la ficha y en «Otros clubes» ===== */
body.tf-v3 .tf-tarjeta h3, body.tf-v3 .tf-relac h2{display:flex;align-items:center;gap:12px}
body.tf-v3 .tf-tarjeta h3::before, body.tf-v3 .tf-relac h2::before{content:"館";flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;border-radius:4px;background:var(--tf-rojo);color:#fff;font:700 17px/1 var(--tf-kanji);box-shadow:inset 0 0 0 2px #c8211a,inset 0 0 0 3px #ffffff55;transform:rotate(-3deg)}
body.tf-v3 .tf-tarjeta.tf-negra h3::before{content:"門"}
body.tf-v3 .tf-relac h2::before{content:"隣";width:36px;height:36px;font-size:20px}

/* ===== listado de clubes: barra roja al pasar el ratón ===== */
body.tf-v3 .directorist-archive-items .directorist-listing-single{position:relative;overflow:hidden}
body.tf-v3 .directorist-archive-items .directorist-listing-single::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--tf-rojo);transform:scaleY(0);transform-origin:top;transition:transform .35s ease;z-index:1}
body.tf-v3 .directorist-archive-items .directorist-listing-single:hover::before{transform:scaleY(1)}
body.tf-v3 .directorist-archive-items .directorist-listing-single:hover{background:#fff}

/* ===== páginas normales (guías, legales): título con pincel ===== */
body.tf-v3:not(.tf-portada):not(.tf-hub):not(.tf-ficha) .entry-title::after{content:"";display:block;width:110px;height:9px;margin-top:12px;background:var(--tf-pincel-rojo) left/100% 100% no-repeat}

/* ===== ficha y página índice: títulos con pincel ===== */
body.tf-v3 .tf-texto h2{padding-bottom:10px;background:var(--tf-pincel) left bottom/90px 7px no-repeat}
body.tf-v3 .tf-relac h2{border-bottom:0;padding-bottom:16px;background:var(--tf-pincel) left bottom/100% 9px no-repeat}
body.tf-v3 .tf-tarjeta{border-top:0;background:#fff var(--tf-pincel) left top/100% 6px no-repeat}
body.tf-v3 .tf-tarjeta.tf-negra{background:var(--tf-negro) var(--tf-pincel-rojo) left top/100% 6px no-repeat}

/* ===== pie: ondas seigaiha entrando en el negro ===== */
body.tf-v3 .tf-pie{position:relative;border-top:0;margin-top:30px}
body.tf-v3 .tf-pie::before{content:"";position:absolute;left:0;right:0;top:-30px;height:30px;background:var(--tf-seigaiha) repeat-x left bottom;opacity:.22}
body.tf-v3 .tf-pie-cols>div:first-child{position:relative}
body.tf-v3 .tf-pie-cols>div:first-child::after{content:"武道";position:absolute;left:0;bottom:-40px;font:700 64px/1 var(--tf-kanji);color:#fff;opacity:.05;letter-spacing:.15em;pointer-events:none}

/* ===== aparición al bajar ===== */
html.tf-js body.tf-v3 .tf-rev{opacity:0;transform:translateY(22px);transition:opacity .9s ease var(--tf-d,0ms),transform .9s cubic-bezier(.2,.7,.2,1) var(--tf-d,0ms)}
html.tf-js body.tf-v3 .tf-rev.tf-visto{opacity:1;transform:none}

/* ===== móvil ===== */
@media (max-width:921px){
  body.tf-v3 .tf-heroe{min-height:auto}
  body.tf-v3 .tf-heroe-grid{padding-top:40px!important}
  body.tf-v3 .tf-dragon{width:130vw;right:-45%;top:30%;--tf-op:.26}
  body.tf-v3 .tf-enso{width:78vw;right:-28%;top:26%;opacity:.4}
  body.tf-v3 .tf-heroe-grid>div{position:relative}
  body.tf-v3 .tf-heroe .tf-lead{text-shadow:0 1px 12px #000}
  body.tf-v3 .tf-kanji-v{font-size:56px;top:4%}
  body.tf-v3 .tf-caligrafia{width:120px;right:4%;top:22%;opacity:.55}
  body.tf-v3 .tf-caligrafia span{font-size:34px}
  body.tf-v3 .tf-dragon-olas{width:160vw;right:-50%;--tf-op:.28}
}

/* ===== quien pide menos movimiento: todo quieto y visible ===== */
@media (prefers-reduced-motion: reduce){
  body.tf-v3 .tf-heroe::before, body.tf-v3 .tf-dragon, body.tf-v3 .tf-dragon-olas, body.tf-v3 .tf-caligrafia span{animation:none!important}
  body.tf-v3 .tf-dragon{opacity:.5}
  body.tf-v3 .tf-dragon-olas{opacity:.42}
  body.tf-v3 .tf-caligrafia span{opacity:.93}
  body.tf-v3 .tf-enso{animation:none!important;-webkit-mask:none;mask:none}
  html.tf-js body.tf-v3 .tf-rev{opacity:1;transform:none;transition:none}
}
