/* TFA Industries - estilos de las páginas nuevas. Colores tomados de la paleta global de Astra. */
:root{--tfa-rojo:var(--ast-global-color-0,#e11b14);--tfa-rojo-h:var(--ast-global-color-1,#c00802);--tfa-oscuro:var(--ast-global-color-2,#1f0a0c);--tfa-rosa:var(--ast-global-color-4,#fbeced);--tfa-borde:#ecdfe0;--tfa-ancho:1120px}

/* Secciones a ancho completo con contenido centrado */
.tfa-hero,.tfa-sec,.tfa-cta{margin:0!important;padding:clamp(40px,6vw,84px) 1.5rem;max-width:none!important;width:100%;box-sizing:border-box}
.tfa-hero>*,.tfa-sec>*,.tfa-cta>*{max-width:var(--tfa-ancho)!important;margin-left:auto!important;margin-right:auto!important}

/* Cabecera de página */
.tfa-hero{background:var(--tfa-oscuro);color:#fff;border-radius:0 0 56px 0}
.tfa-hero h1{color:#fff;font-size:clamp(30px,4.4vw,52px);line-height:1.1;margin-top:0;margin-bottom:18px}
.tfa-hero .tfa-lead{font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:#f3e6e7;margin-bottom:28px}
.tfa-kicker::before{content:attr(data-t)}
.tfa-kicker{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#ffb3b0;margin-top:0!important;margin-bottom:14px!important}
.tfa-hero .wp-block-button__link{background:var(--tfa-rojo);color:#fff;border-radius:999px;padding:15px 30px;font-weight:700;border:2px solid var(--tfa-rojo)}
.tfa-hero .wp-block-button__link:hover{background:var(--tfa-rojo-h);border-color:var(--tfa-rojo-h)}
.tfa-hero .is-style-outline .wp-block-button__link{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.tfa-hero .is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--tfa-oscuro)}
.tfa-hero--home .tfa-hero__cols{align-items:center;gap:clamp(24px,4vw,56px)}
.tfa-hero--home img{border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.35);width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

/* Secciones */
.tfa-sec h2,.tfa-cta h2{font-size:clamp(24px,2.6vw,34px);line-height:1.2;margin-top:0;margin-bottom:16px}
.tfa-sec h2:not(:first-child){margin-top:36px}
.tfa-sec p,.tfa-sec li{font-size:17px;line-height:1.7}
.tfa-sec--alt{background:var(--tfa-rosa)}
.tfa-sec li{margin-bottom:8px}
.tfa-sec a{color:var(--tfa-rojo-h);font-weight:600;text-underline-offset:3px}
.tfa-sec figure{margin-top:28px}
.tfa-sec figure img{border-radius:16px;width:100%;height:auto;max-height:460px;object-fit:cover}

/* Tarjetas */
.tfa-cards{gap:20px!important;margin-top:24px!important;margin-bottom:8px!important}
.tfa-cards>.wp-block-column{background:#fff;border:1px solid var(--tfa-borde);border-radius:16px;padding:26px 24px;box-shadow:0 6px 20px rgba(31,10,12,.05)}
.tfa-sec--alt .tfa-cards>.wp-block-column{border-color:#f2d5d6}
.tfa-cards h3{font-size:20px;line-height:1.25;margin-top:0;margin-bottom:10px}
.tfa-cards h3 a{color:var(--tfa-oscuro);text-decoration:none}
.tfa-cards h3 a:hover{color:var(--tfa-rojo-h);text-decoration:underline}
.tfa-cards p,.tfa-cards li{font-size:16px;line-height:1.6;margin-bottom:0}
.tfa-cards ul{margin:0;padding-left:18px}
.tfa-cards li{margin-bottom:8px}

/* Tablas */
.tfa-sec .wp-block-table{overflow-x:auto}
.tfa-sec table{border-collapse:collapse;width:100%;font-size:16px;background:#fff;border-radius:12px;overflow:hidden}
.tfa-sec th{background:var(--tfa-oscuro);color:#fff;text-align:left;padding:12px 14px;font-weight:600}
.tfa-sec td{border-bottom:1px solid var(--tfa-borde);padding:12px 14px;vertical-align:top}

/* Preguntas frecuentes */
.tfa-sec details{background:#fff;border:1px solid var(--tfa-borde);border-radius:12px;padding:0 20px;margin-bottom:10px}
.tfa-sec summary{cursor:pointer;font-weight:700;font-size:17px;padding:16px 0}
.tfa-sec details[open] summary{border-bottom:1px solid var(--tfa-borde);margin-bottom:12px}
.tfa-sec details p{margin-bottom:16px;padding-right:0}

/* Llamada final */
.tfa-cta{background:var(--tfa-oscuro);color:#fff;text-align:center}
.tfa-cta h2{color:#fff}
.tfa-cta p{color:#f3e6e7;font-size:18px;max-width:640px!important}
.tfa-cta .wp-block-buttons{justify-content:center;margin-top:24px!important}
.tfa-cta .wp-block-button__link{background:var(--tfa-rojo);color:#fff;border-radius:999px;padding:16px 34px;font-weight:700;font-size:17px}
.tfa-cta .wp-block-button__link:hover{background:var(--tfa-rojo-h)}
.tfa-cta a:not(.wp-block-button__link){color:#fff;font-weight:700}
.tfa-small{font-size:15px!important;margin-top:18px!important;opacity:.9}

/* Entradas del blog */
.single-post .entry-content{font-size:18px;line-height:1.75}
.single-post .entry-content h2{margin-top:36px}

/* Accesibilidad y móvil */
a:focus-visible,button:focus-visible,summary:focus-visible,.wp-block-button__link:focus-visible{outline:3px solid #ffb703;outline-offset:3px;border-radius:6px}
@media(max-width:781px){.tfa-hero{border-radius:0 0 32px 0}.tfa-hero .wp-block-button,.tfa-hero .wp-block-button__link{width:100%;text-align:center;box-sizing:border-box}.tfa-cards>.wp-block-column{padding:22px 20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Ajustes tras la primera revisión visual */
/* En castellano los títulos no llevan mayúscula en cada palabra */
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.tfa-hero h1,.tfa-sec h2,.tfa-sec h3,.tfa-cta h2,.entry-title,.ast-blog-single-element{text-transform:none!important}
.tfa-hero .is-style-outline .wp-block-button__link{background:transparent!important;color:#fff!important;border:2px solid rgba(255,255,255,.75)!important}
.tfa-hero .is-style-outline .wp-block-button__link:hover{background:#fff!important;color:var(--tfa-oscuro)!important}
.tfa-hero .wp-block-button__link,.tfa-cta .wp-block-button__link{text-transform:none;letter-spacing:0}

/* Columna de lectura más estrecha que el contenedor, solo en pantallas anchas */
@media(min-width:1180px){.tfa-hero:not(.tfa-hero--home) h1,.tfa-hero:not(.tfa-hero--home) .tfa-lead{padding-right:360px}.tfa-sec>p,.tfa-sec>ul,.tfa-sec>ol{padding-right:320px}}

/* ===== Segunda versión visual ===== */
.tfa-ico::before{content:'';display:block;width:52px;height:52px;margin-bottom:16px;border-radius:14px;background-color:var(--tfa-rosa);background-image:none}
.tfa-ico{position:relative}
.tfa-ico::after{content:'';position:absolute;left:24px;top:26px;width:52px;height:52px;background:var(--tfa-rojo);-webkit-mask:var(--ico) center/28px no-repeat;mask:var(--ico) center/28px no-repeat}
.tfa-sec--alt .tfa-ico::before{background-color:#fff;border:1px solid #f2d5d6;box-sizing:border-box}
.tfa-ico--reloj{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27/%3E%3Cpath%20d%3D%27M12%207v5l3%202%27/%3E%3C/svg%3E")}
.tfa-ico--check{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%202l8%203v6c0%205-3.5%209-8%2011-4.5-2-8-6-8-11V5z%27/%3E%3Cpath%20d%3D%27M9%2012l2%202%204-4%27/%3E%3C/svg%3E")}
.tfa-ico--oferta{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2012V4h8l10%2010-8%208z%27/%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%278.5%27%20r%3D%271.3%27/%3E%3C/svg%3E")}
.tfa-ico--fruta{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%207c-4-3-8%200-8%205%200%205%204%209%208%209s8-4%208-9c0-5-4-8-8-5z%27/%3E%3Cpath%20d%3D%27M12%207c0-2%201-4%203-5%27/%3E%3C/svg%3E")}
.tfa-ico--carro{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%204h2l2.5%2011h10L20%207H6%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2719%27%20r%3D%271.6%27/%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2719%27%20r%3D%271.6%27/%3E%3C/svg%3E")}
.tfa-ico--cruz{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%203h6v6h6v6h-6v6H9v-6H3V9h6z%27/%3E%3C/svg%3E")}
.tfa-ico--tienda{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%209l1.5-5h15L21%209%27/%3E%3Cpath%20d%3D%27M4%209v11h16V9%27/%3E%3Cpath%20d%3D%27M9%2020v-6h6v6%27/%3E%3C/svg%3E")}
.tfa-ico--bd{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cellipse%20cx%3D%2712%27%20cy%3D%276%27%20rx%3D%278%27%20ry%3D%273%27/%3E%3Cpath%20d%3D%27M4%206v6c0%201.7%203.6%203%208%203s8-1.3%208-3V6%27/%3E%3Cpath%20d%3D%27M4%2012v6c0%201.7%203.6%203%208%203s8-1.3%208-3v-6%27/%3E%3C/svg%3E")}
.tfa-ico--fichero{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M14%203H6v18h12V7z%27/%3E%3Cpath%20d%3D%27M14%203v4h4%27/%3E%3Cpath%20d%3D%27M9%2013h6M9%2017h6%27/%3E%3C/svg%3E")}
.tfa-ico--api{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M8%208l-4%204%204%204M16%208l4%204-4%204M13%206l-2%2012%27/%3E%3C/svg%3E")}
.tfa-ico--programa{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2713%27%20rx%3D%272%27/%3E%3Cpath%20d%3D%27M8%2021h8M12%2017v4%27/%3E%3C/svg%3E")}
.tfa-ico--antena{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2013v8%27/%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2711%27%20r%3D%272%27/%3E%3Cpath%20d%3D%27M7.8%2015a6%206%200%200%201%200-8M16.2%207a6%206%200%200%201%200%208M5%2018a10%2010%200%200%201%200-14M19%204a10%2010%200%200%201%200%2014%27/%3E%3C/svg%3E")}
.tfa-ico--etiqueta{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%2718%27%20height%3D%2712%27%20rx%3D%272%27/%3E%3Cpath%20d%3D%27M7%2010v4M10%2010v4M13%2010v4M16%2012h2%27/%3E%3C/svg%3E")}
.tfa-ico--persona{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27/%3E%3Cpath%20d%3D%27M4%2021c0-4%203.6-7%208-7s8%203%208%207%27/%3E%3C/svg%3E")}
.tfa-ico--doc{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l4%204v14H6z%27/%3E%3Cpath%20d%3D%27M9%2012l2%202%204-4%27/%3E%3C/svg%3E")}
.tfa-ico--fases{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%2714%27%20width%3D%275%27%20height%3D%277%27/%3E%3Crect%20x%3D%2710%27%20y%3D%279%27%20width%3D%275%27%20height%3D%2712%27/%3E%3Crect%20x%3D%2717%27%20y%3D%274%27%20width%3D%274%27%20height%3D%2717%27/%3E%3C/svg%3E")}
.tfa-ico--soporte{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2013a8%208%200%200%201%2016%200%27/%3E%3Crect%20x%3D%273%27%20y%3D%2713%27%20width%3D%274%27%20height%3D%276%27%20rx%3D%271%27/%3E%3Crect%20x%3D%2717%27%20y%3D%2713%27%20width%3D%274%27%20height%3D%276%27%20rx%3D%271%27/%3E%3Cpath%20d%3D%27M20%2019c0%202-2%203-5%203%27/%3E%3C/svg%3E")}
.tfa-ico--frio{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%202v20M4%206l16%2012M20%206L4%2018%27/%3E%3Cpath%20d%3D%27M9%204l3%203%203-3M9%2020l3-3%203%203%27/%3E%3C/svg%3E")}
.tfa-ico--ojo{--ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M2%2012s4-7%2010-7%2010%207%2010%207-4%207-10%207S2%2012%202%2012z%27/%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27/%3E%3C/svg%3E")}

/* Franja de datos */
.tfa-stats{background:#fff;padding:0 1.5rem!important;margin:0!important;max-width:none!important;border-bottom:1px solid var(--tfa-borde)}
.tfa-stats>*{max-width:var(--tfa-ancho)!important;margin:0 auto!important}
.tfa-stats__cols{gap:0!important;margin:0!important}
.tfa-stats__cols>.wp-block-column{padding:26px 18px;text-align:center;border-right:1px solid var(--tfa-borde)}
.tfa-stats__cols>.wp-block-column:last-child{border-right:0}
.tfa-stat__n{font-size:clamp(24px,2.6vw,34px)!important;font-weight:800;color:var(--tfa-oscuro);line-height:1.1!important;margin:0 0 6px!important}
.tfa-stat__t{font-size:14.5px!important;line-height:1.4!important;color:#5a4a4c;margin:0!important}
@media(max-width:781px){.tfa-stats__cols{display:grid!important;grid-template-columns:1fr 1fr}.tfa-stats__cols>.wp-block-column{border-bottom:1px solid var(--tfa-borde)}.tfa-stats__cols>.wp-block-column:nth-child(2n){border-right:0}}

/* Pasos */
.tfa-steps{gap:18px!important;margin-top:28px!important}
.tfa-step{background:#fff;border:1px solid var(--tfa-borde);border-radius:16px;padding:24px 22px}
.tfa-step__n{width:40px;height:40px;border-radius:50%;background:var(--tfa-oscuro);color:#fff!important;font-weight:800;display:grid;place-items:center;margin:0 0 14px!important;font-size:17px!important;line-height:1!important}
.tfa-step h3{font-size:19px;margin:0 0 8px;line-height:1.25}
.tfa-step p{font-size:15.5px!important;line-height:1.6!important;margin:0}

/* Comparativa */
.tfa-compare{gap:20px!important;margin-top:26px!important}
.tfa-cmp{border-radius:16px;padding:26px 24px}
.tfa-cmp h3{font-size:20px;margin:0 0 14px}
.tfa-cmp ul{list-style:none;margin:0;padding:0}
.tfa-cmp li{position:relative;padding-left:30px;margin-bottom:12px;font-size:16px!important;line-height:1.55!important}
.tfa-cmp li::before{position:absolute;left:0;top:1px;font-weight:800}
.tfa-cmp--antes{background:#fff;border:1px solid var(--tfa-borde)}
.tfa-cmp--antes li::before{content:'\2715';color:#8a7a7c}
.tfa-cmp--despues{background:var(--tfa-oscuro);color:#fff}
.tfa-cmp--despues h3{color:#fff}
.tfa-cmp--despues li::before{content:'\2713';color:#ff8a85}

/* Cita */
.tfa-quote{border-left:4px solid var(--tfa-rojo);background:#fff;border-radius:0 16px 16px 0;padding:24px 28px;margin:28px 0 0;box-shadow:0 6px 20px rgba(31,10,12,.05)}
.tfa-quote p{font-size:19px!important;line-height:1.6!important;font-style:italic;margin:0 0 10px}
.tfa-quote cite{font-style:normal;font-weight:700;font-size:15px;color:#5a4a4c}

/* Ritmo y tipografía */
.tfa-sec h2{letter-spacing:-.01em}
.tfa-hero h1{letter-spacing:-.02em}
.tfa-sec .tfa-intro{font-size:19px!important;color:#3d2f31}
.tfa-hero--home img{aspect-ratio:5/4}
.tfa-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px!important}
.tfa-badges span{display:inline-block;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 14px;font-size:13.5px;color:#f3e6e7}

/* Pie con datos de contacto */
.tfa-prefooter{background:#140608;color:#e9d9da;padding:clamp(36px,5vw,60px) 1.5rem}
.tfa-prefooter__in{max-width:var(--tfa-ancho);margin:0 auto;display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:36px}
.tfa-prefooter h3{color:#fff;font-size:16px;margin:0 0 14px;text-transform:none}
.tfa-prefooter p{font-size:15px;line-height:1.6;margin:0 0 10px}
.tfa-prefooter ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.tfa-prefooter a{color:#e9d9da;text-decoration:none;display:inline-block;padding:5px 0;font-size:15px}
.tfa-prefooter a:hover{color:#fff;text-decoration:underline}
.tfa-prefooter .tfa-lema{color:#ff8a85;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:12.5px}
@media(max-width:900px){.tfa-prefooter__in{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.tfa-prefooter__in{grid-template-columns:1fr}.tfa-prefooter a{padding:9px 0}}

/* Barra fija de contacto en móvil */
.tfa-bar{display:none}
@media(max-width:781px){
  .tfa-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#fff;border-top:1px solid var(--tfa-borde);box-shadow:0 -6px 20px rgba(0,0,0,.12);padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:10px}
  .tfa-bar a{flex:1;text-align:center;padding:13px 10px;border-radius:999px;font-weight:700;font-size:15.5px;text-decoration:none;min-height:48px;box-sizing:border-box}
  .tfa-bar__tel{border:2px solid var(--tfa-oscuro);color:var(--tfa-oscuro)}
  .tfa-bar__demo{background:var(--tfa-rojo);color:#fff;border:2px solid var(--tfa-rojo)}
  body{padding-bottom:74px}
}

/* Calculadora */
.tfa-calc{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start}
.tfa-calc h2{font-size:22px!important;margin:0 0 18px!important}
.tfa-calc__form{background:#fff;border:1px solid var(--tfa-borde);border-radius:18px;padding:28px}
.tfa-calc__campo{margin-bottom:20px}
.tfa-calc__campo label{display:block;font-weight:700;font-size:16px;line-height:1.35;margin-bottom:8px;color:var(--tfa-oscuro)}
.tfa-calc__campo input{width:100%;box-sizing:border-box;font-size:20px;font-weight:700;padding:12px 14px;border:2px solid #d9c9cb;border-radius:12px;background:#fff;color:var(--tfa-oscuro);min-height:52px}
.tfa-calc__campo input:focus{border-color:var(--tfa-rojo);outline:3px solid #ffd7d5}
.tfa-calc__campo small{display:block;margin-top:6px;font-size:14px;line-height:1.45;color:#5a4a4c}
.tfa-calc__res{background:var(--tfa-oscuro);color:#fff;border-radius:18px;padding:28px;position:sticky;top:110px}
.tfa-calc__res h2{color:#fff}
.tfa-calc__fila,.tfa-calc__total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0!important;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.14);font-size:16px!important}
.tfa-calc__fila strong{font-size:20px}
.tfa-calc__total{border-bottom:0;padding-top:18px;font-size:18px!important;font-weight:700}
.tfa-calc__total strong{font-size:clamp(30px,4vw,42px);color:#ff8a85;line-height:1}
.tfa-calc__nota{font-size:15px!important;line-height:1.55!important;color:#f3e6e7;margin:14px 0 0!important;padding-right:0!important}
@media(max-width:860px){.tfa-calc{grid-template-columns:1fr}.tfa-calc__res{position:static}}

/* Tercera pasada visual */
.tfa-stats{display:flex!important;justify-content:center}
.tfa-stats>.tfa-stats__cols{width:100%;max-width:var(--tfa-ancho)!important;flex-wrap:nowrap}
.tfa-stats__cols>.wp-block-column{flex:1 1 0!important}
.tfa-hero .wp-block-button__link,.tfa-cta .wp-block-button__link,.tfa-hero .is-style-outline .wp-block-button__link,.tfa-cta .is-style-outline .wp-block-button__link{text-transform:none!important;letter-spacing:0!important;font-size:16px!important}
.tfa-cta .is-style-outline .wp-block-button__link{background:transparent!important;color:#fff!important;border:2px solid rgba(255,255,255,.75)!important}
.tfa-cta .is-style-outline .wp-block-button__link:hover{background:#fff!important;color:var(--tfa-oscuro)!important}
.ast-custom-button,.ast-custom-button-link .ast-custom-button{white-space:nowrap;text-transform:none!important;letter-spacing:0!important}
@media(max-width:781px){.tfa-stats>.tfa-stats__cols{flex-wrap:wrap}}

/* Encabezado de portada: botones en una fila y transición limpia a la primera sección */
@media(min-width:1100px){.tfa-hero--home .wp-block-buttons{flex-wrap:nowrap;gap:10px}.tfa-hero--home .wp-block-button__link{padding:14px 22px!important;font-size:15.5px!important;white-space:nowrap}}
.tfa-hero--home{padding-bottom:clamp(48px,6vw,88px)}
.tfa-hero + .tfa-sec{padding-top:clamp(48px,6vw,88px)}

/* Tablas en móvil: cada fila pasa a ser una tarjeta */
@media(max-width:700px){
.tfa-sec table,.tfa-sec tbody,.tfa-sec tr,.tfa-sec td{display:block;width:100%;box-sizing:border-box}
.tfa-sec table{background:transparent;border-radius:0;overflow:visible}
.tfa-sec thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tfa-sec tr{background:#fff;border:1px solid var(--tfa-borde);border-radius:12px;padding:14px 16px;margin-bottom:12px}
.tfa-sec td{border:0!important;padding:3px 0!important}
.tfa-sec td:first-child{font-weight:700;color:var(--tfa-oscuro);font-size:17px;padding-bottom:6px!important}
}

/* El nombre del sitio no se parte aunque el menú crezca */
.site-title,.site-title a{white-space:nowrap}
@media(min-width:922px) and (max-width:1500px){.main-header-menu>.menu-item>.menu-link{padding-left:9px;padding-right:9px;font-size:15px}.main-header-menu{flex-wrap:nowrap}}

.main-header-menu>.menu-item>.menu-link{white-space:nowrap}
@media(min-width:922px) and (max-width:1200px){.main-header-menu>.menu-item>.menu-link{padding-left:7px;padding-right:7px;font-size:14px}.ast-builder-layout-element[data-section="section-hb-button-1"]{display:none}}

/* El menu principal nunca salta a una segunda linea */
@media(min-width:922px){.main-header-menu{flex-wrap:nowrap!important}}

/* Barra inferior del pie: sin el menú repetido (ya está en el bloque oscuro de arriba), una sola línea centrada y oscura */
.site-footer [data-section="section-footer-menu"],.site-footer .site-footer-primary-section-1{display:none!important}
.site-footer .site-primary-footer-wrap,.site-footer .site-below-footer-wrap{background:#140608!important;border-top:1px solid rgba(255,255,255,.10)!important;min-height:0!important;padding:0!important}
.site-footer .site-primary-footer-inner-wrap,.site-footer .site-below-footer-inner-wrap{display:block!important;padding:16px 1.5rem!important}
.site-footer .ast-footer-copyright,.site-footer .ast-footer-copyright p{color:#e6d6d8!important;font-size:14px;margin:0;text-align:center!important}

/* Enlaces legales al final del pie */
.tfa-prefooter__legal{max-width:1200px;margin:28px auto 0;padding:18px 20px 0;border-top:1px solid rgba(255,255,255,.12);font-size:13px;text-align:center}
.tfa-prefooter__legal a{color:inherit;opacity:.8;text-decoration:none}
.tfa-prefooter__legal a:hover{opacity:1;text-decoration:underline}
.tfa-form-legal{font-size:12.5px;line-height:1.5;opacity:.75;margin-top:10px}
