/* TendenciasFX · Herramientas gratuitas · estilos comunes v2.5 (15-10-2026: cabecera simetrica, la frase sin max-width)
   Una sola hoja para todas las herramientas: la cabecera y el pie con el aspecto de tendenciasfx.com,
   la plantilla de la página (tfx-herr-*) y los componentes de las calculadoras.
   No depende de WordPress ni del tema. Fuentes propias en _comun/fuentes/ (apartado 8).
   v2.4 (15-10-2026): la herramienta «Fuerza de divisas» (12).
   v2.3 (JH, 15-10-2026): en el pie, la columna «Herramientas» y los enlaces legales junto al copyright.
   v2.2 (JH, «web tools.pptx», 15-10-2026): menú con sus desplegables (1), recuadros en tarjeta con la cabecera
   más oscura y sin raya de color (2b), tablas a todo el ancho con cabecera oscura y filas alternas (2c), las dos
   cajas del pie como en WordPress (3), bloque final de la mentoría (9), página índice (10) y lotaje (11). */

:root {
  --tinta: #2f323a; --tinta2: #52565e; --tenue: #6b7079;
  --gris: #474c55; --claro: #e1e0dc; --borde: #b9bbc0; --fondo: #f6f6f4;
  --verde: #82c341; --verde-texto: #4d8316; --oro: #f9c20a;
  --nominal: #3d7a14; --real: #c48a00; --puesto: #9a9ca1; --error: #b3261e;
  /* tarjetas y tablas (como las de la web: franja gris rayada arriba, cuerpo blanco, borde fino) */
  --t-borde: #d9dadd; --t-cab: #eceeef; --t-raya: repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 2px, transparent 2px 9px); --t-alterna: #f8f8f9;
  --oswald: Oswald, "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", "Avenir Next Condensed", sans-serif;
  --quick: Quicksand, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --texto: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ancho: 1040px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.tfx-herr-con-barra { scroll-padding-bottom: 80px; }
body { margin: 0; background: #f4f4f4; color: var(--tinta); font: 17px/1.65 var(--texto); }
img { max-width: 100%; height: auto; }
a { color: var(--verde-texto); }
a:hover { color: #3c6711; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--nominal); outline-offset: 2px; }
.tfx-herr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tfx-herr-saltar { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--oro); color: var(--tinta); font-family: var(--quick); font-weight: 600; }
.tfx-herr-saltar:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* 1. CABECERA DEL SITIO Y MENÚ (como el de Astra en tendenciasfx.com: 80 px, desplegables de 240 px en el
   ordenador al pasar el ratón o con el teclado, y el botón de menú en el móvil). Sin JavaScript: :hover y
   :focus-within en el ordenador, <details> en el móvil. El menú lo escribe montar_paginas.py. */
.tfx-herr-sitio-cab { position: relative; z-index: 30; background: var(--gris); }
.tfx-herr-sitio-cab-in { max-width: 1180px; min-height: 80px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tfx-herr-logo { display: block; line-height: 0; }
.tfx-herr-logo img { width: 198px; height: auto; }
.tfx-herr-menu > ul { display: flex; margin: 0; padding: 0; list-style: none; }
.tfx-herr-menu li { position: relative; margin: 0; }
.tfx-herr-menu > ul > li > a { display: flex; align-items: center; gap: 6px; height: 80px; padding: 0 15px; color: #fff; text-decoration: none; font: 500 15px/1 var(--quick); }
.tfx-herr-menu > ul > li:hover > a, .tfx-herr-menu > ul > li:focus-within > a { color: var(--verde); }
.tfx-herr-flecha { width: 10px; height: 7px; fill: currentColor; flex: none; }
.tfx-herr-menu .tfx-herr-sub { position: absolute; left: 0; top: 100%; z-index: 40; width: 240px; margin: 0; padding: 0; list-style: none; background: var(--gris); box-shadow: 0 4px 10px -2px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden; transform: translateY(-.5em); transition: visibility .2s ease, transform .2s ease, opacity .2s ease; }
.tfx-herr-menu li:hover > .tfx-herr-sub, .tfx-herr-menu li:focus-within > .tfx-herr-sub { opacity: 1; visibility: visible; transform: none; }
.tfx-herr-menu .tfx-herr-sub a { display: block; padding: 13.5px 15px; color: #fff; text-decoration: none; font: 500 15px/1.45 var(--quick); }
.tfx-herr-menu .tfx-herr-sub a:hover, .tfx-herr-menu .tfx-herr-sub a:focus-visible { color: var(--verde); }
.tfx-herr-menu-movil { display: none; }
.tfx-herr-menu-movil > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--verde); color: var(--verde); }
.tfx-herr-menu-movil > summary::-webkit-details-marker { display: none; }
.tfx-herr-menu-movil > summary svg { width: 20px; height: 20px; fill: currentColor; }
.tfx-herr-menu-movil > summary .tfx-herr-cerrar, .tfx-herr-menu-movil[open] > summary .tfx-herr-abrir { display: none; }
.tfx-herr-menu-movil[open] > summary .tfx-herr-cerrar { display: block; }
.tfx-herr-menu-movil > nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--gris); border-top: 1px solid #5b606a; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.tfx-herr-menu-movil ul { margin: 0; padding: 0; list-style: none; }
.tfx-herr-menu-movil li { position: relative; margin: 0; }
.tfx-herr-menu-movil a { display: block; padding: 10px 56px 10px 20px; color: #fff; text-decoration: none; font: 500 15px/1.4 var(--quick); }
.tfx-herr-menu-movil a:hover { color: var(--verde); }
.tfx-herr-menu-movil li > details > summary { position: absolute; right: 8px; top: 0; width: 44px; height: 41px; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.tfx-herr-menu-movil li > details > summary::-webkit-details-marker { display: none; }
.tfx-herr-menu-movil li > details > summary .tfx-herr-flecha { width: 13px; height: 9px; transition: transform .2s; }
.tfx-herr-menu-movil li > details[open] > summary .tfx-herr-flecha { transform: rotate(180deg); }
.tfx-herr-menu-movil .tfx-herr-sub a { padding-left: 44px; position: relative; }
.tfx-herr-menu-movil .tfx-herr-sub a::before { content: ""; position: absolute; left: 30px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
@media (max-width: 921px) {
  .tfx-herr-sitio-cab-in { min-height: 70px; }
  .tfx-herr-menu { display: none; }
  .tfx-herr-menu-movil { display: block; }
  .tfx-herr-logo img { width: 150px; }
}

/* 2. PÁGINA */
.tfx-herr-pag { max-width: var(--ancho); margin: 8px auto 0; background: #fff; }
.tfx-herr-cabecera { background: linear-gradient(135deg, #1f3a12 0%, #3a6420 100%); color: #fff; padding: 40px clamp(20px, 5vw, 56px) 44px; }
.tfx-herr-migas { margin: 0 0 14px; font: 14px/1.4 var(--quick); color: #c9cbcf; }
.tfx-herr-migas a { color: #c9cbcf; text-decoration: none; }
.tfx-herr-migas a:hover { color: var(--oro); }
.tfx-herr-migas span[aria-hidden] { margin: 0 6px; }
.tfx-herr-insignia { display: inline-block; margin: 0 0 14px; padding: 4px 12px; background: var(--oro); color: var(--tinta); font: 500 13px/1.4 var(--quick); letter-spacing: .05em; text-transform: uppercase; }
.tfx-herr-h1 { margin: 0 0 12px; font: 300 clamp(32px, 4.4vw, 48px)/1.15 var(--oswald); letter-spacing: .01em; color: #fff; }
.tfx-herr-frase { margin: 0 0 18px; max-width: none; font-size: 19px; line-height: 1.5; color: #e6e7e9; }
.tfx-herr-autor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font: 15px/1.4 var(--quick); color: #e6e7e9; }
.tfx-herr-autor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--verde); }
.tfx-herr-autor a { color: var(--oro); text-decoration: none; }
.tfx-herr-herramienta { padding: 24px; border: 1px solid var(--claro); border-top: 0; }
.tfx-herr-cuerpo { padding: 8px clamp(20px, 5vw, 56px) 40px; }
.tfx-herr-seccion { margin: 40px 0 0; }
.tfx-herr-h2 { margin: 0 0 14px; font: 300 30px/1.2 var(--oswald); color: var(--gris); }
.tfx-herr-h3 { margin: 22px 0 8px; font: 600 19px/1.35 var(--quick); color: var(--tinta); }
.tfx-herr-seccion p { margin: 0 0 14px; }
.tfx-herr-seccion-video:has(.tfx-herr-video[data-video=""]) { display: none; }
.tfx-herr-video { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; background: var(--tinta); display: flex; align-items: center; justify-content: center; }
.tfx-herr-video iframe, .tfx-herr-video-boton { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tfx-herr-video-boton { padding: 0; background: #000; cursor: pointer; }
.tfx-herr-video-boton img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.tfx-herr-video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; background: var(--oro); border-radius: 12px; }
.tfx-herr-video-play::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent var(--tinta); }
.tfx-herr-faq-item { padding: 0 0 6px; border-bottom: 1px solid var(--claro); }
.tfx-herr-fuentes ul { margin: 0 0 14px 1.2em; padding: 0; }
.tfx-herr-fuentes li, .tfx-herr-fuentes p { font-size: 15px; line-height: 1.6; }
.tfx-herr-fuentes li { margin: 0 0 8px; }
.tfx-herr-insertar textarea { display: block; width: 100%; min-height: 128px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--borde); background: var(--fondo); font: 13px/1.5 Consolas, "Courier New", monospace; color: var(--tinta); resize: vertical; }
/* lo que falta por escribir (JH): se ve a propósito y desaparece con el texto final */
.tfx-herr-pendiente { padding: 10px 12px; background: #fff8dc; border: 1px dashed #c9a100; color: #5c4700; font-size: 15px; line-height: 1.5; }
.tfx-herr-cabecera .tfx-herr-pendiente { background: rgba(255,248,220,.14); border-color: var(--oro); color: #fff4c2; }
h2.tfx-herr-pendiente { font-size: 24px; }
a.tfx-herr-pendiente { display: inline-block; text-decoration: none; }

/* 2b. RECUADROS EN TARJETA (JH, 15-10-2026: «que parezcan una tarjeta de esas, con el fondo un poco más oscuro
   en el título, y sin esa línea gruesa de color en un lado»). La cabecera lleva el gris rayado de las tarjetas
   de Recursos; el cuerpo, blanco; el borde, fino. Sirve para «qué hacer con esto», el ejemplo, el bloque de
   la mentoría, el resultado y los avisos de las calculadoras. */
.tfx-herr-tarjeta { background: #fff; border: 1px solid var(--t-borde); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.tfx-herr-tarjeta-cab { margin: 0; padding: 14px 22px; background: var(--t-cab) var(--t-raya); border-bottom: 1px solid var(--t-borde); }
h2.tfx-herr-tarjeta-cab { font: 300 26px/1.25 var(--oswald); color: var(--tinta); }
.tfx-herr-tarjeta-cuerpo { padding: 20px 22px 6px; }
.tfx-herr-tarjeta-cuerpo > :last-child { margin-bottom: 14px; }
@media (max-width: 767px) { .tfx-herr-tarjeta-cab { padding: 12px 16px; } h2.tfx-herr-tarjeta-cab { font-size: 23px; } .tfx-herr-tarjeta-cuerpo { padding: 16px 16px 4px; } }

/* 2c. TABLAS (JH, 15-10-2026): a todo el ancho de su columna, cabecera con el gris de las tarjetas, filas
   alternas con un gris del 3 %, el texto a la izquierda y las cifras a la derecha (cabecera incluida).
   En el móvil se desplazan dentro de su marco; la de «Compruébalo tú» se apila en fichas. */
.tfx-herr-tabla-ancha { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 4px 0 20px; }
.tfx-herr-tabla-simple { width: 100%; margin: 4px 0 20px; border-collapse: collapse; border: 1px solid var(--t-borde); font-size: 16px; font-variant-numeric: tabular-nums; background: #fff; }
.tfx-herr-tabla-ancha > .tfx-herr-tabla-simple { margin: 0; }
.tfx-herr-tabla-simple caption { padding: 0 0 8px; text-align: left; font: 600 15px/1.4 var(--quick); color: var(--verde-texto); }
.tfx-herr-tabla-simple th, .tfx-herr-tabla-simple td { padding: 10px 14px; border-bottom: 1px solid #e7e8ea; text-align: left; vertical-align: top; }
.tfx-herr-tabla-simple thead th { background: var(--t-cab) var(--t-raya); border-bottom: 1px solid var(--t-borde); font: 600 15px/1.35 var(--quick); color: var(--tinta); }
.tfx-herr-tabla-simple tbody tr:nth-child(even) { background: var(--t-alterna); }
.tfx-herr-tabla-simple tbody th { font-weight: 400; color: var(--tinta2); }
.tfx-herr-tabla-simple .tfx-herr-destacada > * { font-weight: 700; color: var(--tinta); background: #fbf3dc; }
/* tablas de cifras: todas las columnas menos la primera, a la derecha (también su cabecera) */
.tfx-herr-tabla-cifras td, .tfx-herr-tabla-cifras thead th:not(:first-child) { text-align: right; }
/* fichas de dos columnas (concepto y valor): la etiqueta ocupa la mitad */
.tfx-herr-tabla-ficha tbody th { width: 50%; }
.tfx-herr-tabla-esc { min-width: 420px; }
.tfx-herr-tabla-casos th, .tfx-herr-tabla-casos td { padding: 12px 18px; }
.tfx-herr-tabla-casos td:nth-child(2) { font-family: Consolas, "Courier New", monospace; font-size: 14px; }
.tfx-herr-tabla-casos td:last-child, .tfx-herr-tabla-casos thead th:last-child { text-align: right; }
.tfx-herr-tabla-casos td:last-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 640px) {
  .tfx-herr-tabla-simple { font-size: 14.5px; }
  .tfx-herr-tabla-simple th, .tfx-herr-tabla-simple td { padding: 8px 9px; }
  .tfx-herr-tabla-apilable, .tfx-herr-tabla-apilable tbody, .tfx-herr-tabla-apilable tr, .tfx-herr-tabla-apilable th, .tfx-herr-tabla-apilable td { display: block; width: auto; }
  .tfx-herr-tabla-apilable { border: 0; background: none; }
  .tfx-herr-tabla-apilable caption { display: block; }
  .tfx-herr-tabla-apilable thead { display: none; }
  .tfx-herr-tabla-apilable tbody tr { margin: 0 0 10px; border: 1px solid var(--t-borde); background: #fff !important; }
  .tfx-herr-tabla-apilable tbody th { padding: 10px 12px; background: var(--t-cab) var(--t-raya); border-bottom: 1px solid var(--t-borde); color: var(--tinta); font-weight: 600; }
  .tfx-herr-tabla-apilable td { padding: 6px 12px; border: 0; text-align: left !important; white-space: normal !important; }
  .tfx-herr-tabla-apilable td::before { content: attr(data-et); display: block; font: 600 12.5px/1.4 var(--quick); letter-spacing: .04em; text-transform: uppercase; color: var(--tenue); }
  .tfx-herr-tabla-apilable td:last-child { padding-bottom: 12px; }
}

/* 3. LAS DOS CAJAS DEL FINAL Y EL PIE. Las cajas, iguales que en las páginas de WordPress (functions.php
   tfx_caja_suscripcion y style.css del tema hijo, apartados 17, 18.7, 18.8, 24 y 27): gris claro, borde fino,
   título en negrita de 16 px, botón gris oscuro con la letra verde, 28 px arriba y abajo. */
.tfx-herr-cajas-pie { max-width: 1040px; margin: 0 auto; padding: 28px 20px; }
.tfx-herr-dos-cajas { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; align-items: stretch; }
@media (min-width: 768px) { .tfx-herr-dos-cajas { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; } }
.tfx-herr-caja { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px; background: #f2f2f2; border: 1px solid #dcdcdc; }
.tfx-herr-caja form { display: flex; flex-direction: column; flex: 1 1 auto; margin: 0; }
.tfx-herr-caja-tit { display: block; margin: 0 0 6px; font: 600 16px/1.35 var(--texto); color: #2f323a; }
.tfx-herr-caja-linea { display: block; margin: 0 0 16px; font: 15px/1.5 var(--texto); color: #474c56; }
.tfx-herr-caja-fila { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: auto; }
.tfx-herr-caja-campo { flex: 1 1 auto; min-width: 0; width: auto; height: 42px; margin: 0; padding: 4px 10px; font: 15px var(--texto); color: #2f333a; background: #fff; border: 1px solid #dcdcdc; border-radius: 5px; }
.tfx-herr-caja-boton { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; height: 42px; margin: 0; padding: 0 18px; font: 600 15px/1 var(--texto); color: #72c320; background: #3e4249; border: 0; border-radius: 5px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.tfx-herr-caja-boton:hover { color: #72c320; background: #2f333a; }
a.tfx-herr-caja-boton { margin-top: auto; }
.tfx-herr-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) {
  .tfx-herr-caja { padding: 20px; }
  .tfx-herr-caja-fila { flex-wrap: wrap; }
  .tfx-herr-caja-campo { flex: 1 1 100%; width: 100%; }
}
.tfx-herr-sitio-pie { background: var(--gris); color: #e1e0dc; }
.tfx-herr-sitio-pie-in { max-width: 1180px; margin: 0 auto; padding: 36px 20px 20px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.tfx-herr-sitio-pie h2 { margin: 0 0 6px; font: 700 16px/1.4 var(--quick); color: var(--verde); }
.tfx-herr-sitio-pie ul { list-style: none; margin: 0; padding: 0; }
.tfx-herr-sitio-pie li { margin: 0 0 6px; }
.tfx-herr-sitio-pie a { color: #fff; text-decoration: none; font: 16px/1.5 var(--quick); }
.tfx-herr-sitio-pie a:hover { color: var(--verde); }
.tfx-herr-redes { display: flex; gap: 10px; margin-top: 14px; }
.tfx-herr-redes a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #6b7079; }
.tfx-herr-redes svg { width: 20px; height: 20px; fill: #fff; }
.tfx-herr-copy { max-width: 1180px; margin: 0 auto; padding: 12px 20px 28px; font: 13px/1.5 var(--quick); color: #c9cbcf; }
.tfx-herr-copy span { white-space: nowrap; }
.tfx-herr-legal { margin-left: 14px; }
.tfx-herr-legal a { color: #c9cbcf; text-decoration: none; font: inherit; }
.tfx-herr-legal a:hover { color: var(--verde); }
@media (max-width: 480px) { .tfx-herr-legal { display: block; margin: 4px 0 0; } }
@media (max-width: 767px) { .tfx-herr-sitio-pie-in { grid-template-columns: 1fr 1fr; } }

/* 4. BOTONES (los de la web: gris oscuro y oro, esquinas rectas) */
.tfx-herr-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid var(--gris); border-radius: 0; background: var(--gris); color: var(--oro); font: 600 14.5px/1.2 var(--quick); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.tfx-herr-boton:hover { background: var(--verde); border-color: var(--verde); color: #fff; }
.tfx-herr-boton-claro { background: #fff; color: var(--tinta); }
.tfx-herr-boton-oro { background: var(--oro); border-color: var(--oro); color: var(--tinta); }
.tfx-herr-enlace { display: inline; padding: 0; margin: 0; border: 0; background: none; color: var(--verde-texto); font: inherit; text-decoration: underline; cursor: pointer; }
.tfx-herr-estado { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--verde-texto); }
.tfx-herr-estado:empty { display: none; }

/* 5. LAS CALCULADORAS (widget, también en /insertar/) */
.tfx-herr-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; font: 16px/1.5 var(--texto); color: var(--tinta); }
.tfx-herr-app:not(.tfx-herr-app-lista) { min-height: 600px; }
@media (min-width: 860px) {
  .tfx-herr-app { grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 20px 28px; align-items: start; }
  .tfx-herr-app .tfx-herr-privacidad, .tfx-herr-app .tfx-herr-modos { grid-column: 1 / -1; }
  .tfx-herr-app .tfx-herr-form { grid-row: 3 / span 3; position: sticky; top: 12px; }
  .tfx-herr-app .tfx-herr-resultado, .tfx-herr-app .tfx-herr-compartir, .tfx-herr-app .tfx-herr-aviso { grid-column: 2; }
}
.tfx-herr-cargando { margin: 0; color: var(--tenue); }
.tfx-herr-privacidad { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 14px/1.4 var(--quick); color: var(--tinta2); }
.tfx-herr-privacidad svg { flex: none; width: 18px; height: 18px; fill: var(--verde-texto); }
.tfx-herr-modos { display: flex; border: 1px solid var(--gris); width: max-content; max-width: 100%; }
.tfx-herr-modos label { position: relative; margin: 0; cursor: pointer; flex: 1 1 auto; }
.tfx-herr-modos input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tfx-herr-modos span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; text-align: center; font: 600 15px/1.2 var(--quick); color: var(--tinta2); background: #fff; }
.tfx-herr-modos input:checked + span { background: var(--gris); color: #fff; }
.tfx-herr-modos input:focus-visible + span { outline: 2px solid var(--nominal); outline-offset: -4px; }
@media (max-width: 480px) { .tfx-herr-modos { width: 100%; } .tfx-herr-modos label { flex: 1 1 50%; } .tfx-herr-modos span { height: 100%; padding: 8px 8px; font-size: 14px; } }
.tfx-herr-form { margin: 0; min-width: 0; }
.tfx-herr-grupo { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.tfx-herr-leyenda { margin: 0 0 10px; padding: 0; font: 600 13px/1.3 var(--quick); letter-spacing: .08em; text-transform: uppercase; color: var(--verde-texto); }
.tfx-herr-campo { margin: 0 0 14px; min-width: 0; }
.tfx-herr-campo > label, .tfx-herr-etiqueta { display: block; margin: 0 0 6px; font: 600 15px/1.3 var(--quick); color: var(--tinta); }
.tfx-herr-fila { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 12px; }
@media (max-width: 359px) { .tfx-herr-fila { grid-template-columns: 1fr; } }
.tfx-herr-entrada { display: flex; align-items: stretch; height: 48px; background: #fff; border: 1px solid var(--borde); }
.tfx-herr-entrada:focus-within { border-color: var(--nominal); box-shadow: 0 0 0 2px rgba(61,122,20,.28); }
.tfx-herr-entrada:has([aria-invalid="true"]) { border-color: var(--error); }
.tfx-herr-entrada input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: transparent; outline: none; font: 17px/1.2 var(--texto); color: var(--tinta); font-variant-numeric: tabular-nums; }
.tfx-herr-entrada input:disabled { background: var(--fondo); color: var(--tenue); }
.tfx-herr-unidad { display: flex; align-items: center; padding: 0 12px; background: var(--fondo); color: var(--tinta2); font-size: 15px; white-space: nowrap; border-right: 1px solid var(--claro); }
.tfx-herr-unidad-fin { border-right: 0; border-left: 1px solid var(--claro); }
.tfx-herr-app select { display: block; width: 100%; height: 48px; margin: 0; padding: 0 38px 0 12px; border: 1px solid var(--borde); border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23474c55' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font: 16px/1.2 var(--texto); color: var(--tinta); }
.tfx-herr-app select:focus { outline: none; border-color: var(--nominal); box-shadow: 0 0 0 2px rgba(61,122,20,.28); }
.tfx-herr-app select:disabled { background-color: var(--fondo); color: var(--tenue); }
.tfx-herr-ayuda, .tfx-herr-error { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--tenue); }
.tfx-herr-error { color: var(--error); font-weight: 600; }
.tfx-herr-opciones-rent { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; }
.tfx-herr-radio { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; cursor: pointer; }
.tfx-herr-radio input, .tfx-herr-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--nominal); }
.tfx-herr-periodo { display: flex; flex-wrap: wrap; }
.tfx-herr-periodo label { position: relative; margin: 0; cursor: pointer; }
.tfx-herr-periodo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tfx-herr-periodo span { display: block; padding: 9px 12px; border: 1px solid var(--borde); margin-right: -1px; font: 600 14px/1.2 var(--quick); color: var(--tinta2); background: #fff; }
.tfx-herr-periodo input:checked + span { background: var(--gris); border-color: var(--gris); color: #fff; }
.tfx-herr-periodo input:focus-visible + span { outline: 2px solid var(--nominal); outline-offset: 2px; }
.tfx-herr-periodo input:disabled + span { opacity: .45; cursor: not-allowed; }
.tfx-herr-mas { margin: 0 0 14px; border: 1px solid var(--t-borde); background: #fff; }
.tfx-herr-mas > summary { cursor: pointer; padding: 12px 14px; min-height: 44px; font: 600 15px/1.3 var(--quick); color: var(--verde-texto); background: var(--t-cab) var(--t-raya); }
.tfx-herr-mas[open] > summary { border-bottom: 1px solid var(--t-borde); }
.tfx-herr-mas-in { padding: 14px 14px 2px; }
.tfx-herr-acciones { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 15px; }

/* resultado: tarjeta con la cabecera gris (sin la raya verde de arriba) */
.tfx-herr-resultado { min-width: 0; padding: 0; background: #fff; border: 1px solid var(--t-borde); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.tfx-herr-lleno { padding: 0 20px 20px; }
.tfx-herr-vacio { padding: 26px 16px; text-align: center; }
.tfx-herr-vacio-txt { margin: 0 0 16px; font-size: 17px; color: var(--tinta2); }
.tfx-herr-res-titulo { margin: 0 -20px 16px; padding: 12px 20px; background: var(--t-cab) var(--t-raya); border-bottom: 1px solid var(--t-borde); font: 600 15px/1.4 var(--quick); color: var(--tinta); }
.tfx-herr-principal { padding: 0; background: #fff; border: 1px solid var(--t-borde); }
.tfx-herr-cifra-et { display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--fondo); border-bottom: 1px solid #e7e8ea; font: 600 14px/1.3 var(--quick); color: var(--tinta2); }
.tfx-herr-cifra-et i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--real); }
.tfx-herr-principal strong { display: block; margin: 0; padding: 10px 16px 0; font: 300 clamp(38px, 5vw, 52px)/1.05 var(--oswald); color: var(--tinta); overflow-wrap: anywhere; }
.tfx-herr-cifra-nota { display: block; margin: 0; padding: 6px 16px 14px; font-size: 13.5px; line-height: 1.4; color: var(--tenue); }
.tfx-herr-escenarios { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 10px 0 0; }
.tfx-herr-esc { padding: 0 0 10px; background: #fff; border: 1px solid var(--t-borde); min-width: 0; }
.tfx-herr-esc-et { display: block; padding: 7px 12px; background: var(--fondo); border-bottom: 1px solid #e7e8ea; font: 600 13px/1.3 var(--quick); letter-spacing: .04em; text-transform: uppercase; color: var(--tinta2); }
.tfx-herr-esc-medio .tfx-herr-esc-et { background: #fbf3dc; color: var(--tinta); }
.tfx-herr-esc strong { display: block; margin: 2px 0 0; padding: 4px 12px 0; font: 300 23px/1.2 var(--oswald); color: var(--tinta); overflow-wrap: anywhere; }
.tfx-herr-esc-nota { display: block; margin: 2px 0 0; padding: 0 12px; font-size: 12.5px; line-height: 1.35; color: var(--tenue); }
@media (max-width: 480px) {
  .tfx-herr-escenarios { grid-template-columns: 1fr; gap: 6px; }
  .tfx-herr-esc { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; padding: 0 0 8px; }
  .tfx-herr-esc-et { grid-column: 1 / -1; }
  .tfx-herr-esc strong { grid-column: 2; grid-row: 2 / span 2; font-size: 22px; padding: 4px 12px 0 0; }
  .tfx-herr-esc-nota { grid-column: 1; padding-top: 6px; }
}
.tfx-herr-supuesto, .tfx-herr-duplica { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--tinta2); }
.tfx-herr-duplica { padding: 8px 10px; background: #fff; border: 1px solid var(--t-borde); font-size: 14px; }
.tfx-herr-detalle-tit { margin: 16px 0 0; font: 600 14px/1.3 var(--quick); color: var(--tinta2); }
.tfx-herr-desglose { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 18px; margin: 8px 0 0; padding: 0; }
@media (max-width: 420px) { .tfx-herr-desglose { grid-template-columns: 1fr; } }
.tfx-herr-desglose > div { padding: 10px 0; border-top: 1px solid var(--claro); min-width: 0; }
.tfx-herr-desglose dt { margin: 0; font-size: 14px; font-weight: 600; color: var(--tinta2); }
.tfx-herr-desglose dd { margin: 2px 0 0; font: 300 23px/1.2 var(--oswald); color: var(--tinta); overflow-wrap: anywhere; }
.tfx-herr-desglose dd.tfx-herr-sub { font: 13px/1.35 var(--texto); color: var(--tenue); }
.tfx-herr-grafico { position: relative; margin: 18px 0 0; padding: 0; }
.tfx-herr-grafico-titulo { margin: 0 0 6px; font: 600 15px/1.3 var(--quick); }
.tfx-herr-leyenda-graf { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 6px; padding: 0; list-style: none; }
.tfx-herr-leyenda-graf li { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--tinta2); }
.tfx-herr-leyenda-graf i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.tfx-herr-leyenda-graf i.tfx-herr-clave-banda { height: 10px; background: rgba(196,138,0,.3); }
.tfx-herr-leyenda-graf i.tfx-herr-clave-area { height: 10px; background: rgba(154,156,161,.3); }
.tfx-herr-leyenda-graf .tfx-herr-leyenda-nota { color: var(--tenue); font-style: italic; }
.tfx-herr-lienzo { width: 100%; min-height: 240px; background: #fff; border: 1px solid var(--claro); cursor: crosshair; touch-action: pan-y; }
.tfx-herr-lienzo svg { display: block; max-width: none; height: auto; }
.tfx-herr-rejilla { stroke: #e6e7e9; stroke-width: 1; }
.tfx-herr-eje { fill: var(--tenue); font: 12px var(--texto); font-variant-numeric: tabular-nums; }
.tfx-herr-tooltip { position: absolute; z-index: 2; min-width: 170px; padding: 8px 10px; background: #fff; border: 1px solid #d9dadd; box-shadow: 0 4px 14px rgba(0,0,0,.12); pointer-events: none; }
.tfx-herr-tooltip p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--tenue); }
.tfx-herr-tooltip .tfx-herr-tt-ano { font-weight: 600; color: var(--tinta); }
.tfx-herr-tooltip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.tfx-herr-tooltip strong { color: var(--tinta); font-variant-numeric: tabular-nums; }
.tfx-herr-tabla { margin: 14px 0 0; }
.tfx-herr-tabla summary { cursor: pointer; padding: 8px 0; min-height: 44px; font: 600 15px/1.8 var(--quick); color: var(--verde-texto); }
.tfx-herr-tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--t-borde); }
.tfx-herr-tabla table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.tfx-herr-tabla th, .tfx-herr-tabla td { padding: 7px 10px; border-bottom: 1px solid #ecece9; text-align: right; white-space: nowrap; }
.tfx-herr-tabla tbody tr:nth-child(even) > * { background: var(--t-alterna); }
.tfx-herr-tabla thead th { position: sticky; top: 0; background: var(--t-cab); font-weight: 600; color: var(--tinta); border-bottom: 1px solid var(--t-borde); }
.tfx-herr-tabla th[scope="row"], .tfx-herr-tabla thead th:first-child { position: sticky; left: 0; text-align: left; background: var(--fondo); }
.tfx-herr-tabla thead th:first-child { background: var(--t-cab); }
/* fijar y comparar, y los «¿y si…?» */
.tfx-herr-comparar { margin: 16px 0 0; padding: 0 14px 14px; background: #fff; border: 1px solid var(--t-borde); }
.tfx-herr-comparar-tit { margin: 0 -14px 12px; padding: 10px 14px; background: var(--t-cab) var(--t-raya); border-bottom: 1px solid var(--t-borde); font: 600 15px/1.3 var(--quick); }
.tfx-herr-fijado { margin: 10px 0 0; padding: 10px 12px; background: var(--fondo); font-size: 14px; line-height: 1.5; }
.tfx-herr-fijado strong { font-variant-numeric: tabular-nums; }
.tfx-herr-ysi { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.tfx-herr-ysi button { flex: 1 1 210px; text-align: left; justify-content: flex-start; }
.tfx-herr-ysi button[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: var(--tinta); }
.tfx-herr-ysi-res { margin: 10px 0 0; padding: 0; list-style: none; }
.tfx-herr-ysi-res li { margin: 0 0 8px; padding: 10px 12px; background: var(--fondo); border: 1px solid #e7e8ea; font-size: 14px; line-height: 1.5; }
.tfx-herr-ysi-res .tfx-herr-pendiente { margin-top: 6px; font-size: 13.5px; }
.tfx-herr-mas-pos { color: var(--nominal); font-weight: 600; }
.tfx-herr-menos { color: var(--error); font-weight: 600; }
.tfx-herr-compartir { margin: 0; }
.tfx-herr-compartir-tit { margin: 0 0 8px; font: 600 15px/1.3 var(--quick); }
.tfx-herr-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.tfx-herr-aviso { margin: 0; font-size: 13px; line-height: 1.45; color: var(--tenue); }
/* barra fija abajo en el móvil con la cifra principal */
.tfx-herr-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--gris); color: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.2); font: 500 14px/1.3 var(--quick); }
.tfx-herr-barra strong { display: block; font: 300 22px/1.1 var(--oswald); color: #fff; }
.tfx-herr-barra .tfx-herr-boton { min-height: 40px; }
@media (min-width: 860px) { .tfx-herr-barra { display: none !important; } }

/* 6. VERSIÓN PARA INSERTAR (/insertar/) */
.tfx-herr-insertada { margin: 0; padding: 12px; background: #fff; }
.tfx-herr-h1-insertada { margin: 0 0 12px; font: 300 26px/1.2 var(--oswald); color: var(--tinta); }
.tfx-herr-marca { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--claro); font: 13px/1.5 var(--texto); color: var(--tenue); }

@media (max-width: 767px) {
  .tfx-herr-pag { margin-top: 0; }
  .tfx-herr-cabecera { padding: 28px 18px 30px; }
  .tfx-herr-herramienta { padding: 16px 12px; }
  .tfx-herr-cuerpo { padding: 4px 16px 32px; }
  .tfx-herr-lleno { padding: 0 12px 16px; }
  .tfx-herr-res-titulo { margin: 0 -12px 14px; padding: 10px 12px; }
  .tfx-herr-frase { font-size: 17px; }
  .tfx-herr-h2 { font-size: 26px; }
}

/* 7. IMPRIMIR O GUARDAR EN PDF */
@media print {
  body { background: #fff; font-size: 12pt; }
  .tfx-herr-sitio-cab, .tfx-herr-sitio-pie, .tfx-herr-copy, .tfx-herr-cajas-pie, .tfx-herr-barra, .tfx-herr-compartir, .tfx-herr-modos,
  .tfx-herr-acciones, .tfx-herr-comparar, .tfx-herr-seccion-video, .tfx-herr-insertar, .tfx-herr-saltar, .tfx-herr-faq, .tfx-herr-mentoria,
  .tfx-herr-vacio button, .tfx-herr-tooltip, .tfx-herr-copiar-lote { display: none !important; }
  .tfx-herr-pag, .tfx-herr-cabecera { margin: 0; box-shadow: none; }
  .tfx-herr-cabecera { background: none; color: var(--tinta); padding: 0 0 12px; }
  .tfx-herr-h1, .tfx-herr-frase, .tfx-herr-autor { color: var(--tinta); }
  .tfx-herr-app { display: block; }
  .tfx-herr-resultado, .tfx-herr-grafico, .tfx-herr-tabla table { break-inside: avoid; }
  .tfx-herr-tabla-scroll { overflow: visible; }
  a { color: var(--tinta); text-decoration: none; }
}

/* 8. FUENTES PROPIAS (14-10-2026, con permiso de JH): Oswald 300 y Quicksand variable 400-600, solo el juego
   latino de Google Fonts (acentos, ñ, ¿, ¡ y €). Licencia SIL OFL 1.1: _comun/fuentes/OFL-oswald.txt y
   OFL-quicksand.txt. Servidas desde aqui, sin llamar a Google. */
@font-face { font-family: Oswald; font-style: normal; font-weight: 300; font-display: swap; src: url(/herramientas/_comun/fuentes/oswald-300.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/herramientas/_comun/fuentes/quicksand.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 9. BLOQUE FINAL DE LA MENTORÍA (JH, 15-10-2026), común a todas las herramientas: después de las preguntas
   frecuentes. Una tarjeta sobria, sin aspecto de anuncio: antetítulo en la cabecera gris, título, dos o tres
   frases, una foto opcional (data-foto; vacía no se ve) y un solo enlace, a la tabla de precios. */
.tfx-herr-mentoria .tfx-herr-tarjeta-cab { font: 600 13px/1.4 var(--quick); letter-spacing: .08em; text-transform: uppercase; color: var(--tinta2); }
.tfx-herr-mentoria-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 22px 24px; align-items: center; }
.tfx-herr-mentoria-in:has(> .tfx-herr-mentoria-foto:not([data-foto=""])) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.tfx-herr-mentoria-foto { margin: 0; }
.tfx-herr-mentoria-foto[data-foto=""] { display: none; }
.tfx-herr-mentoria-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tfx-herr-mentoria-txt > :last-child { margin-bottom: 0; }
.tfx-herr-mentoria .tfx-herr-h2 { margin: 0 0 12px; color: var(--tinta); }
.tfx-herr-mentoria-enlace { margin: 18px 0 0; }
.tfx-herr-mentoria-enlace a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--gris); color: var(--tinta); background: #fff; font: 600 15px/1.3 var(--quick); text-decoration: none; transition: background .2s, color .2s; }
.tfx-herr-mentoria-enlace a::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); flex: none; }
.tfx-herr-mentoria-enlace a:hover { background: var(--gris); color: #fff; }
.tfx-herr-mentoria-enlace a.tfx-herr-pendiente::after { display: none; }
@media (max-width: 767px) { .tfx-herr-mentoria-in, .tfx-herr-mentoria-in:has(> .tfx-herr-mentoria-foto:not([data-foto=""])) { grid-template-columns: 1fr; padding: 16px; } }

/* 10. PÁGINA ÍNDICE /herramientas/ (JH, 15-10-2026): las tarjetas de /recursos-tfx/ (style.css del tema hijo,
   18.13 y 21): franja gris rayada con el icono, título en Oswald, una frase y el botón gris con letra dorada
   pegado abajo. Tres por fila en el ordenador, dos en tableta y una en el móvil. Las que aún no existen, sin
   enlace y con el botón apagado. */
.tfx-herr-pag-indice { background: transparent; }
.tfx-herr-pag-indice .tfx-herr-cabecera { margin: 0; }
.tfx-herr-tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1080px; margin: 40px auto 20px; padding: 0 20px; }
.tfx-herr-rec { display: flex; flex-direction: column; min-width: 0; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.12); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.tfx-herr-rec:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.18); color: inherit; }
.tfx-herr-rec-img { display: flex; align-items: center; justify-content: center; height: 170px; background: #eceeef repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 9px); }
.tfx-herr-rec-img svg { width: 120px; height: 120px; }
.tfx-herr-rec-cuerpo { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tfx-herr-rec h2 { margin: 0 0 10px; font: 300 22px/1.2 var(--oswald); color: #2f323a; }
.tfx-herr-rec p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #474c56; }
@media (min-width: 641px) { .tfx-herr-rec p { min-height: 7.75em; } }
.tfx-herr-rec-boton { margin-top: auto; display: block; padding: 12px 14px; text-align: center; background: #474c55; color: #f9c20a; font: 600 15px/1.65 var(--quick); transition: background .2s; }
a.tfx-herr-rec:hover .tfx-herr-rec-boton { background: #2f323a; }
.tfx-herr-rec-pronto .tfx-herr-rec-img { opacity: .55; }
.tfx-herr-rec-pronto h2 { color: #6b7079; }
.tfx-herr-rec-pronto .tfx-herr-rec-boton { background: #e4e5e7; color: #6b7079; }
@media (max-width: 1100px) { .tfx-herr-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tfx-herr-tarjetas { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 24px; padding: 0 16px; } }

/* 11. CALCULADORA DE LOTAJE (15-10-2026) */
.tfx-herr-lote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 4px 0 2px; }
.tfx-herr-lote strong { font: 300 clamp(52px, 7vw, 68px)/1 var(--oswald); color: var(--tinta); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tfx-herr-lote .tfx-herr-lote-ud { font: 500 18px/1 var(--quick); color: var(--tinta2); }
.tfx-herr-lote .tfx-herr-boton { margin-left: auto; }
.tfx-herr-sinlote strong { font-size: clamp(34px, 4.6vw, 44px); color: var(--tinta2); }
.tfx-herr-linea { margin: 10px 0 0; font-size: 16px; line-height: 1.55; }
.tfx-herr-linea b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tfx-herr-equiv { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--tinta2); }
.tfx-herr-avisos { margin: 14px 0 0; padding: 0; list-style: none; }
.tfx-herr-avisos li { margin: 0 0 8px; padding: 0; background: #fff; border: 1px solid var(--t-borde); font-size: 14.5px; line-height: 1.5; }
.tfx-herr-avisos li b { display: block; padding: 7px 12px; background: var(--t-cab) var(--t-raya); border-bottom: 1px solid var(--t-borde); font: 600 13px/1.35 var(--quick); letter-spacing: .04em; text-transform: uppercase; color: var(--tinta); }
.tfx-herr-avisos li span { display: block; padding: 9px 12px; }
.tfx-herr-avisos li.tfx-herr-grave b { background: #fbe9e7; color: #8c1d18; }
.tfx-herr-tipo { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--tinta2); }
.tfx-herr-porque { margin: 16px 0 0; border: 1px solid var(--t-borde); }
.tfx-herr-porque > summary { cursor: pointer; padding: 10px 14px; min-height: 44px; font: 600 15px/1.5 var(--quick); color: var(--verde-texto); background: var(--t-cab) var(--t-raya); }
.tfx-herr-porque[open] > summary { border-bottom: 1px solid var(--t-borde); }
.tfx-herr-porque ol { margin: 0; padding: 12px 14px 12px 36px; font-size: 14.5px; line-height: 1.55; }
.tfx-herr-porque li { margin: 0 0 6px; }
.tfx-herr-porque li:last-child { margin: 0; }
.tfx-herr-lado { margin: -4px 0 14px; font-size: 14px; line-height: 1.4; color: var(--tinta2); }
.tfx-herr-lado:empty { display: none; }
.tfx-herr-contrato { margin: 0 0 14px; border: 1px solid var(--t-borde); background: #fff; }
.tfx-herr-contrato > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; min-height: 44px; font-size: 14px; line-height: 1.4; color: var(--tinta2); background: var(--t-cab) var(--t-raya); list-style: none; }
.tfx-herr-contrato > summary::-webkit-details-marker { display: none; }
.tfx-herr-contrato > summary span:last-child { margin-left: auto; color: var(--verde-texto); font-weight: 600; text-decoration: underline; }
.tfx-herr-contrato[open] > summary { border-bottom: 1px solid var(--t-borde); }
.tfx-herr-contrato-in { padding: 12px 12px 2px; }
.tfx-herr-instrumento-nombre { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--tinta2); }
.tfx-herr-rachas-sec { margin: 0; padding: 28px clamp(20px, 5vw, 56px) 8px; border: 1px solid var(--claro); border-top: 0; }
.tfx-herr-rachas-sec > .tfx-herr-h2 { margin-bottom: 10px; }
.tfx-herr-rachas { font: 16px/1.5 var(--texto); }
.tfx-herr-rachas .tfx-herr-fila { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 480px) { .tfx-herr-rachas .tfx-herr-fila { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.tfx-herr-rachas-frase { margin: 4px 0 14px; padding: 14px 16px; background: var(--fondo); border: 1px solid #e7e8ea; font-size: 16px; line-height: 1.6; }
.tfx-herr-rachas .tfx-herr-tabla-simple tr.tfx-herr-destacada > * { background: #fbf3dc; }
@media (max-width: 767px) { .tfx-herr-rachas-sec { padding: 20px 12px 4px; } }
.tfx-herr-pasos { margin: 0 0 14px; padding: 0 0 0 1.4em; }
.tfx-herr-pasos li { margin: 0 0 6px; }
.tfx-herr-tabla-simple .tfx-herr-sub { font-size: 13px; font-weight: 400; color: var(--tenue); }
.tfx-herr-referencia { margin: 18px 0 20px; background: #fff; }
.tfx-herr-referencia-in { padding: 14px 14px 2px; }
.tfx-herr-referencia-in .tfx-herr-tabla-ancha { margin-bottom: 16px; }

/* 12. FUERZA DE DIVISAS (15-10-2026). La tabla va escrita en el HTML (la pintan el plugin y actualizar_fuerza.py);
   fuerza.js pone los botones de ordenar, el selector de la ventana del precio y los minigráficos. Color nunca solo:
   cada cifra lleva su signo y cada cambio su flecha. En el móvil, 4 columnas: divisa (fija), fundamental con su
   cambio, la ventana de precio elegida (12 semanas al entrar) y el minigráfico o la marca «No coinciden». */
.tfx-fz { --fz-sube: #3d7a14; --fz-baja: #8a5a00; --fz-oro-fondo: #fdf6dc; }
.tfx-fz-frase { margin: 0 0 10px; font-size: 18px; line-height: 1.55; color: var(--tinta); }
.tfx-fz-sello { margin: 0 0 16px; font: 500 14px/1.45 var(--quick); color: var(--tinta2); }
.tfx-fz-controles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.tfx-fz-controles .tfx-herr-etiqueta { margin: 0; }
.tfx-fz-controles .tfx-herr-ayuda { margin: 0; flex: 1 1 220px; }
.tfx-fz-controles[hidden] { display: none; }
.tfx-fz-marco { margin: 0 0 14px; }
.tfx-fz-tabla { font-size: 15px; }
.tfx-fz-tabla th, .tfx-fz-tabla td { padding: 8px 10px; vertical-align: middle; }
.tfx-fz-tabla thead th { vertical-align: bottom; white-space: nowrap; }
.tfx-fz-th2 { display: block; font-weight: 500; }
.tfx-fz-tabla tbody th { position: sticky; left: 0; z-index: 1; background: #fff; }
.tfx-fz-tabla tbody tr:nth-child(even) th { background: var(--t-alterna); }
.tfx-fz-cod { font-weight: 700; color: var(--tinta); }
.tfx-fz-nom { color: var(--tinta2); }
.tfx-fz-etq { display: block; margin: 2px 0 0; font: 600 12px/1.3 var(--quick); color: var(--tenue); }
.tfx-fz-c-fund { white-space: nowrap; }
.tfx-fz-pf { display: inline-block; min-width: 1.5em; font: 300 22px/1 var(--oswald); color: var(--tinta); }
.tfx-fz-cambio { font: 600 13px/1 var(--quick); white-space: nowrap; }
.tfx-fz-sube { color: var(--fz-sube); }
.tfx-fz-baja { color: var(--fz-baja); }
.tfx-fz-igual { color: var(--tenue); }
.tfx-fz-nueva { padding: 2px 6px; background: var(--t-cab); color: var(--tinta2); font-size: 12px; }
.tfx-fz-tabla .tfx-fz-p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tfx-fz-pct { font-weight: 600; }
.tfx-fz-pp { display: block; font-size: 12.5px; font-weight: 400; color: var(--tenue); }
.tfx-fz-c-hist { white-space: nowrap; }
.tfx-fz-spark { display: inline-block; width: 64px; height: 22px; vertical-align: middle; }
.tfx-fz-spark svg { display: block; width: 64px; height: 22px; overflow: visible; }
.tfx-fz-spark line { stroke: #e1e0dc; stroke-width: 1; }
.tfx-fz-spark polyline { fill: none; stroke: var(--verde-texto); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tfx-fz-spark circle { fill: var(--verde-texto); }
.tfx-fz-desac { display: inline-block; padding: 2px 7px; border: 1px solid #c9a100; background: var(--fz-oro-fondo); color: #5c4700; font: 600 12.5px/1.3 var(--quick); white-space: nowrap; }
.tfx-fz-desac-movil { display: none; }
/* la ventana de precio elegida, resaltada en el ordenador */
.tfx-fz-tabla[data-ventana="1"] .tfx-fz-v1, .tfx-fz-tabla[data-ventana="4"] .tfx-fz-v4, .tfx-fz-tabla[data-ventana="12"] .tfx-fz-v12 { background-color: rgba(249, 194, 10, .1); }
/* los botones de ordenar (los pone fuerza.js dentro de cada título de columna) */
.tfx-fz-orden { display: inline-flex; align-items: flex-end; gap: 6px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.tfx-fz-orden > span { display: block; }
.tfx-fz-orden::after { content: ""; flex: none; width: 0; height: 0; margin: 0 0 5px; border: 4px solid transparent; border-top-color: #a3a6ad; }
.tfx-fz-tabla th[aria-sort="ascending"] .tfx-fz-orden::after { margin: 0 0 9px; border-top-color: transparent; border-bottom-color: var(--tinta); }
.tfx-fz-tabla th[aria-sort="descending"] .tfx-fz-orden::after { border-top-color: var(--tinta); }
.tfx-fz-orden:hover { color: var(--verde-texto); }
.tfx-fz-leyenda { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--tinta2); }
.tfx-fz-historia { font-size: 13px; font-variant-numeric: tabular-nums; }
.tfx-fz-historia th, .tfx-fz-historia td { padding: 6px 3px; text-align: center; }
.tfx-fz-historia tbody th { padding: 6px 8px; }
.tfx-fz-historia tbody th { position: sticky; left: 0; background: #fff; white-space: nowrap; text-align: left; }
.tfx-fz-historia tbody tr:nth-child(even) th { background: var(--t-alterna); }
.tfx-fz-historia abbr { text-decoration: none; }
@media (max-width: 767px) {
  .tfx-fz-tabla:not(.tfx-fz-compacta) .tfx-fz-p, .tfx-fz-tabla:not(.tfx-fz-compacta) .tfx-fz-c-desac { display: none; }
  .tfx-fz-tabla[data-ventana="1"] .tfx-fz-v1, .tfx-fz-tabla[data-ventana="4"] .tfx-fz-v4, .tfx-fz-tabla[data-ventana="12"] .tfx-fz-v12 { display: table-cell; background-color: transparent; }
  .tfx-fz-desac-movil { display: block; }
  .tfx-fz-fila-desac .tfx-fz-spark { display: none; }
  .tfx-fz-tabla { font-size: 14px; }
  .tfx-fz-tabla th, .tfx-fz-tabla td { padding: 7px 5px; }
  .tfx-fz-tabla thead th { white-space: normal; font-size: 12.5px; line-height: 1.25; }
  .tfx-fz-orden { flex-direction: column; align-items: flex-start; gap: 3px; }
  .tfx-fz-p .tfx-fz-orden { align-items: flex-end; }
  .tfx-fz-orden::after, .tfx-fz-tabla th[aria-sort="ascending"] .tfx-fz-orden::after { margin: 0; }
  .tfx-fz-spark, .tfx-fz-spark svg { width: 48px; height: 18px; }
  .tfx-fz-desac-movil .tfx-fz-desac { white-space: normal; }
  .tfx-fz-nom { display: block; font-size: 12px; line-height: 1.3; }
  .tfx-fz-etq { font-size: 11px; }
  .tfx-fz-pf { font-size: 20px; }
  .tfx-fz-frase { font-size: 16.5px; }
  .tfx-fz-desac { padding: 2px 5px; font-size: 11.5px; }
}
@media (max-width: 370px) { .tfx-fz-tabla th, .tfx-fz-tabla td { padding: 7px 3px; } }
