/* TuFísico · diseño v4 (17-nov-2026). Encima de estilo.css y estilo-v3.css, con body.tf-v4.
   Dragones en línea tipo tatuaje como fondo de los bloques (SVG libres de Wikimedia Commons pasados a contorno),
   tarjetas de disciplina en paneles verticales, sello con kanji en cada club del listado y ficha tipo ofuda. */
body.tf-v4{
  --tf-dr-escamas-rojo:url("img/dragon-escamas-rojo.svg?2");
  --tf-dr-escamas-claro:url("img/dragon-escamas-claro.svg?2");
  --tf-dr-escamas-tinta:url("img/dragon-escamas-tinta.svg?2");
  --tf-dr-serp-rojo:url("img/dragon-serpiente-rojo.svg?2");
  --tf-dr-serp-tinta:url("img/dragon-serpiente-tinta.svg?2");
  --tf-dr-serp-claro:url("img/dragon-serpiente-claro.svg?2");
}
/* capa de dragón reutilizable */
body.tf-v4 .tf-bloque, body.tf-v4 .tf-pie, body.tf-v4 .tf-aviso, body.tf-v4 .tf-texto, body.tf-v4 .tf-tarjeta{position:relative;isolation:isolate}
body.tf-v4 .tf-bloque>.tf-env{position:relative;z-index:1}
body.tf-v4 .tf-bloque::before{content:"";position:absolute;pointer-events:none;z-index:0;background-repeat:no-repeat;background-size:contain}

/* ===== bloque de disciplinas: gran dragón de escamas en rojo, a la derecha ===== */
body.tf-v4 #disciplinas{overflow:hidden}
body.tf-v4 #disciplinas::before{background-image:url("img/dragon-escamas-rojo.svg?2");right:-170px;top:-30px;width:860px;height:880px;opacity:.22;transform:scaleX(-1) rotate(-6deg)}
/* ===== provincias: dragón serpiente en tinta, cruzando ===== */
body.tf-v4 #provincias{overflow:hidden}
body.tf-v4 #provincias::before{background-image:url("img/dragon-serpiente-tinta.svg?2");left:-120px;bottom:-120px;width:1250px;height:810px;opacity:.10}
/* ===== cómo funciona: bloque negro con dragón claro ===== */
body.tf-v4 .tf-bloque:has(.tf-dos){background:var(--tf-negro);color:#d4d0c8;overflow:hidden}
body.tf-v4 .tf-bloque:has(.tf-dos)::before{background-image:url("img/dragon-escamas-claro.svg?2");left:-140px;top:-40px;width:760px;height:780px;opacity:.16}
body.tf-v4 .tf-bloque:has(.tf-dos) h2{color:#fff!important}
body.tf-v4 .tf-bloque:has(.tf-dos) .tf-dos p{color:#cfcac0}
body.tf-v4 .tf-bloque:has(.tf-dos) .tf-dos a{color:#fff!important}
body.tf-v4 .tf-aviso{background:#fff;margin-top:56px}
body.tf-v4 .tf-aviso::after{background:url("img/dragon-serpiente-rojo.svg?2") no-repeat right center/auto 150%;width:55%;opacity:.16;-webkit-mask:none;mask:none}
/* ===== preguntas: serpiente en tinta muy suave ===== */
body.tf-v4 .tf-bloque.tf-blanco:has(.tf-faq){overflow:hidden}
body.tf-v4 .tf-bloque.tf-blanco:has(.tf-faq)::before{background-image:url("img/dragon-serpiente-tinta.svg?2");right:-160px;top:20px;width:760px;height:500px;opacity:.09;transform:scaleX(-1)}
body.tf-v4 .tf-faq summary{padding-left:26px;position:relative}
body.tf-v4 .tf-faq summary::before{content:"";position:absolute;left:2px;top:.55em;width:9px;height:9px;background:var(--tf-rojo);transform:rotate(45deg)}

/* ===== tarjetas de disciplina: paneles verticales ===== */
body.tf-v4 .tf-discs{grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:40px}
body.tf-v4 .tf-disc{position:relative;aspect-ratio:3/4.15;overflow:hidden;border-radius:2px;background:var(--tf-negro);isolation:isolate}
body.tf-v4 .tf-disc img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:cover;filter:grayscale(1) contrast(1.15) brightness(.72);transition:transform 1.2s cubic-bezier(.2,.7,.2,1),filter .6s ease}
body.tf-v4 .tf-disc::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(18,18,18,0) 35%,rgba(18,18,18,.94) 100%)}
body.tf-v4 .tf-disc::after{content:"";position:absolute;inset:10px;z-index:2;border:1px solid rgba(255,255,255,.18);pointer-events:none;transition:inset .4s ease,border-color .4s ease}
body.tf-v4 .tf-disc:hover img{transform:scale(1.07);filter:grayscale(.15) contrast(1.05) brightness(.82)}
body.tf-v4 .tf-disc:hover::after{inset:6px;border-color:var(--tf-rojo)}
body.tf-v4 .tf-disc-kanji{z-index:3;top:22px;right:20px;font-size:clamp(30px,3vw,46px);opacity:.92;transition:transform .5s ease}
body.tf-v4 .tf-disc:hover .tf-disc-kanji{transform:translateY(-4px)}
body.tf-v4 .tf-disc-pie{position:absolute;left:22px;right:22px;bottom:22px;z-index:3;display:block;padding:0;border:0}
body.tf-v4 .tf-disc strong{display:block;color:#fff!important;font-size:clamp(24px,2.4vw,32px);margin-bottom:6px}
body.tf-v4 .tf-disc:hover strong{color:#fff!important}
body.tf-v4 .tf-disc-pie span{color:#d6d1c6;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
body.tf-v4 .tf-disc-pie::after{position:static;display:block;margin-top:12px;width:44px;height:6px;background:var(--tf-pincel-rojo) left/100% 100% no-repeat;transition:width .5s ease}
body.tf-v4 .tf-disc:hover .tf-disc-pie::after{width:100%}

/* ===== listas (resto de disciplinas y provincias) ===== */
body.tf-v4 ul.tf-lista-puntos li{padding:11px 4px;border-bottom:1px solid var(--tf-linea)}
body.tf-v4 ul.tf-lista-puntos li a{font:600 20px/1.1 var(--tf-titular)!important;letter-spacing:.01em}
body.tf-v4 ul.tf-lista-puntos li span{min-width:42px;text-align:center;font:600 12px/1 var(--tf-cuerpo);color:var(--tf-rojo);border:1px solid #c8211a55;border-radius:3px;padding:5px 6px}
body.tf-v4 ul.tf-lista-puntos li:hover span{background:var(--tf-rojo);color:#fff;border-color:var(--tf-rojo)}

/* ===== listados de clubes: sello rojo con el kanji de la disciplina ===== */
body.tf-v4 .directorist-archive-items .directorist-listing-single{min-height:96px}
body.tf-v4 .tf-sello-club{position:absolute;left:20px;top:20px;z-index:2;width:52px;height:56px;display:grid;place-items:center;background:var(--tf-rojo);color:#fff;border-radius:3px;font:700 17px/1.02 var(--tf-kanji);writing-mode:vertical-rl;letter-spacing:.02em;box-shadow:inset 0 0 0 2px #c8211a,inset 0 0 0 3px #ffffff55;transform:rotate(-2deg);transition:transform .3s ease}
body.tf-v4 .directorist-listing-single:hover .tf-sello-club{transform:rotate(0) scale(1.05)}
body.tf-v4 .directorist-archive-items .directorist-listing-single.tf-con-sello .directorist-listing-single__info,
body.tf-v4 .directorist-archive-items .directorist-listing-single.tf-con-sello .directorist-listing-single__meta{padding-left:92px!important}
body.tf-v4 .directorist-archive-items .directorist-listing-single::before{width:3px}

/* ===== páginas índice y fichas: dragón fijo a un lado, detrás del contenido ===== */
body.tf-v4.tf-hub .site-content, body.tf-v4.tf-ficha .site-content{position:relative;isolation:isolate}
body.tf-v4.tf-hub .tf-lista, body.tf-v4.tf-ficha .tf-ficha-cuerpo, body.tf-v4.tf-hub .tf-env, body.tf-v4.tf-ficha .tf-relac{position:relative;z-index:1}
body.tf-v4.tf-hub::after, body.tf-v4.tf-ficha::after{content:"";position:fixed;right:-190px;bottom:-90px;width:640px;height:660px;background:url("img/dragon-escamas-rojo.svg?2") no-repeat center/contain;opacity:.14;pointer-events:none;z-index:-1;transform:scaleX(-1)}
body.tf-v4.tf-hub::before, body.tf-v4.tf-ficha::before{content:"";position:fixed;left:-260px;top:30%;width:760px;height:500px;background:url("img/dragon-serpiente-tinta.svg?2") no-repeat center/contain;opacity:.07;pointer-events:none;z-index:-1}

/* texto de las páginas: dragón muy suave en la esquina de la caja */
body.tf-v4 .tf-texto::after{content:"";position:absolute;right:16px;bottom:16px;width:260px;height:180px;background:url("img/dragon-serpiente-claro.svg?2") no-repeat right bottom/contain;opacity:.9;pointer-events:none;z-index:-1}

/* ===== ficha: tarjeta de datos como un ofuda (talismán de papel) ===== */
body.tf-v4 .tf-tarjeta:not(.tf-negra){background:#fbf7ee;border:1px solid #c8211a;border-radius:2px;outline:1px solid #c8211a;outline-offset:-6px;padding:26px 26px 24px}
body.tf-v4 .tf-tarjeta:not(.tf-negra)::after{content:"";position:absolute;right:10px;bottom:10px;width:150px;height:150px;background:url("img/dragon-escamas-rojo.svg?2") no-repeat center/contain;opacity:.10;pointer-events:none;z-index:-1}
body.tf-v4 .tf-tarjeta .tf-fila{border-color:#e6dccb}
body.tf-v4 .tf-tarjeta.tf-negra{overflow:hidden}
body.tf-v4 .tf-tarjeta.tf-negra::after{content:"";position:absolute;right:-30px;bottom:-30px;width:220px;height:160px;background:url("img/dragon-serpiente-rojo.svg?2") no-repeat center/contain;opacity:.35;pointer-events:none;z-index:-1}

/* ===== pie: dragón serpiente en rojo ===== */
body.tf-v4 .tf-pie{overflow:hidden}
body.tf-v4 .tf-pie::after{content:"";position:absolute;right:-60px;top:20px;width:720px;height:470px;background:url("img/dragon-serpiente-rojo.svg?2") no-repeat center/contain;opacity:.30;pointer-events:none;z-index:0;transform:scaleX(-1)}
body.tf-v4 .tf-pie>.tf-env{position:relative;z-index:1}
body.tf-v4 .tf-pie::before{z-index:1}

/* ===== móvil ===== */
@media (max-width:921px){
  body.tf-v4 .tf-discs{grid-template-columns:1fr 1fr;gap:12px}
  body.tf-v4 .tf-disc-pie{left:14px;right:14px;bottom:14px}
  body.tf-v4 .tf-disc-kanji{top:14px;right:12px;font-size:28px}
  body.tf-v4 #disciplinas::before{width:520px;height:540px;right:-220px;opacity:.10}
  body.tf-v4.tf-hub::after, body.tf-v4.tf-ficha::after, body.tf-v4.tf-hub::before, body.tf-v4.tf-ficha::before{display:none}
  body.tf-v4 .tf-pie::after{width:420px;height:280px;right:-120px}
  body.tf-v4 .directorist-archive-items .directorist-listing-single.tf-con-sello .directorist-listing-single__info,
  body.tf-v4 .directorist-archive-items .directorist-listing-single.tf-con-sello .directorist-listing-single__meta{padding-left:80px!important}
  body.tf-v4 .tf-sello-club{left:14px;width:46px;height:50px;font-size:15px}
}
