
/* Accesibilidad/contraste: textos sobre fondos negros siempre blancos. */
body.tejidoteca-calculator-page .thc__example-table thead th,
body.tejidoteca-calculator-page .thc__tabs button:not(.is-active),
body.tejidoteca-calculator-page .thc__hero,
body.tejidoteca-calculator-page .thc__hero h1,
body.tejidoteca-calculator-page .thc__hero p {
    color:#fff !important;
}
body.tejidoteca-calculator-page .thc__example-table thead th{
    opacity:1 !important;
    font-weight:400 !important;
}


/* Mantener un único H1 visible: el H1 corporativo dentro de la calculadora. */
body.tejidoteca-calculator-page #main-content h1.entry-title,
body.tejidoteca-calculator-page #left-area h1.entry-title,
body.tejidoteca-calculator-page #left-area article.page > h1:first-of-type,
body.tejidoteca-calculator-page .et_post_meta_wrapper h1.entry-title,
body.tejidoteca-calculator-page h1.entry-title.main_title{
    display:none!important;
}


/* Página calculadora: eliminar la columna lateral vacía de Divi. */
body.tejidoteca-calculator-page #main-content .container::before{display:none!important}
body.tejidoteca-calculator-page #sidebar{display:none!important}
body.tejidoteca-calculator-page #left-area{float:none!important;width:100%!important;padding-right:0!important}
body.tejidoteca-calculator-page #left-area article.et_pb_post,
body.tejidoteca-calculator-page #left-area .entry-content{width:100%!important;max-width:none!important}
body.tejidoteca-calculator-page .et_post_meta_wrapper>h1.entry-title{display:none!important}

/* Contenido SEO bajo la herramienta. */
.thc__seo{margin-top:34px;padding:30px;border:1px solid #ddd;background:#fff}
.thc__seo>h2{margin:0 0 14px;padding:0;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:32px;font-weight:400;line-height:1.1;letter-spacing:.4px}
.thc__seo>h2:not(:first-child){margin-top:34px}
.thc__seo>p{font-size:17px;line-height:1.65}
.thc__seo a{color:var(--rosa)!important;text-decoration:none}
.thc__seo a:hover,.thc__seo a:focus{text-decoration:underline}
.thc__seo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}
.thc__seo-grid article{padding:20px;background:#f6f6f6;border-top:3px solid var(--rosa)}
.thc__seo-grid h3{margin:0 0 9px;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:23px;font-weight:400;line-height:1.1}
.thc__seo-grid p{margin:0;font-size:16px;line-height:1.55}
.thc__example-table-wrap{overflow-x:auto}
.thc__example-table{width:100%;border-collapse:collapse;font-size:16px}
.thc__example-table th,.thc__example-table td{padding:11px 12px;border:1px solid #ddd;text-align:left}
.thc__example-table th{background:#000;color:#fff;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:18px;font-weight:400}
.thc__faq details{border-top:1px solid #ddd;padding:14px 0}
.thc__faq details:last-child{border-bottom:1px solid #ddd}
.thc__faq summary{cursor:pointer;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:21px;letter-spacing:.25px}
.thc__faq p{margin:10px 0 0;font-size:16px;line-height:1.6}
@media(max-width:800px){.thc__seo-grid{grid-template-columns:1fr}}
@media(max-width:560px){.thc__seo{padding:22px 16px}.thc__seo>h2{font-size:28px}}


.thc{--rosa:#ff0099;--negro:#000;--gris:#f4f4f4;max-width:1080px;margin:0 auto;padding:28px 0 48px;font-family:Abel,Arial,sans-serif;color:#111}
.thc *{box-sizing:border-box}.thc__header{padding:32px;background:#000;color:#fff;border-bottom:5px solid var(--rosa)}
.thc__eyebrow{margin:0 0 5px;color:var(--rosa);font-size:14px;letter-spacing:1.2px}.thc__header h1{margin:0 0 9px;color:#fff;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:clamp(34px,5vw,58px);font-weight:400;line-height:1}.thc__header p:last-child{margin:0;max-width:820px;font-size:18px;line-height:1.45}
.thc__tabs{display:flex;gap:2px;background:#000;padding:0 2px 2px}.thc__tab{flex:1;padding:15px 12px;border:0;background:#222;color:#fff;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:20px;letter-spacing:.5px;cursor:pointer}.thc__tab.is-active{background:var(--rosa)}
.thc__panel{padding:30px;border:1px solid #ddd;border-top:0;background:#fff}.thc__formgrid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}.thc label{display:flex;flex-direction:column;gap:7px;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:18px;letter-spacing:.5px}.thc input,.thc select{width:100%;min-height:50px;padding:10px 13px;border:1px solid #aaa;border-radius:0;background:#fff;color:#111;font-family:Abel,Arial,sans-serif;font-size:18px}.thc input:focus,.thc select:focus{outline:2px solid var(--rosa);outline-offset:1px;border-color:var(--rosa)}
.thc__notice{margin:18px 0 0;padding:12px 14px;border-left:4px solid var(--rosa);background:#fff3fa;font-size:16px}.thc__results{margin-top:22px}.thc__result-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.thc__result{padding:15px;background:var(--gris);border-top:3px solid var(--rosa)}.thc__result span{display:block;margin-bottom:4px;font-size:14px}.thc__result strong{display:block;font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:28px;font-weight:400}.thc__error{padding:12px;background:#fff1f1;border-left:4px solid #c00}
.thc__lead{font-size:18px}.thc__ply-row{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(180px,1.2fr) 44px;gap:10px;align-items:center;margin-bottom:10px}.thc__ply-label{font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:18px}.thc__remove{height:50px;border:0;background:#111;color:#fff;font-size:26px;cursor:pointer}.thc__remove:hover{background:var(--rosa)}.thc__add{margin-top:6px;padding:11px 16px;border:1px solid var(--rosa);background:#fff;color:var(--rosa);font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-size:18px;cursor:pointer}.thc__add:hover{background:var(--rosa);color:#fff}.thc__footnote{margin-top:18px;color:#555;font-size:15px}
.thc__formula-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.thc__formula-grid article{padding:20px;background:#f6f6f6;border-top:4px solid var(--rosa)}.thc__formula-grid h2,.thc__results h3{font-family:"Bebas Neue",Bebas,Impact,sans-serif;font-weight:400;letter-spacing:.5px}.thc__formula-grid h2{font-size:26px}.thc__formula-grid p{font-size:16px;line-height:1.5}
@media(max-width:800px){.thc__result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thc__formula-grid{grid-template-columns:1fr}.thc__ply-row{grid-template-columns:72px 1fr 1fr 44px}}
@media(max-width:560px){.thc{padding-top:0}.thc__header{padding:24px 18px}.thc__tabs{flex-direction:column}.thc__formgrid{grid-template-columns:1fr}.thc__panel{padding:20px 14px}.thc__result-grid{grid-template-columns:1fr 1fr}.thc__ply-row{grid-template-columns:1fr 44px}.thc__ply-label{grid-column:1/-1}.thc__ply-row input,.thc__ply-row select{grid-column:1/2}.thc__remove{grid-column:2/3;grid-row:2/4;height:110px}.thc__result strong{font-size:24px}}

/* v0.5.3 · Imagen de calculadora en el hero negro */
.thc__header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,29%)!important;align-items:center!important;gap:22px!important;overflow:hidden;padding:24px 28px 24px 32px!important}
.thc__header-copy{min-width:0}.thc__header-media{align-self:stretch;display:flex;align-items:center;justify-content:center;min-height:180px}.thc__header-media img{display:block;width:min(310px,118%);height:auto;margin:-28px 0 -30px;transform:rotate(-3deg);filter:drop-shadow(0 16px 14px rgba(0,0,0,.7))}
@media(max-width:680px){.thc__header{grid-template-columns:1fr!important}.thc__header-media{min-height:135px}.thc__header-media img{width:min(260px,70%)}}

/* ==========================================================
   v0.5.10 · INTERACCIÓN DE PESTAÑAS Y SUPERVISIÓN TÉCNICA
   ========================================================== */

/* Pestañas CONVERSIÓN / VARIOS CABOS / FÓRMULAS */
.thc__tab{
    position:relative;
    z-index:1;
    transform:translateY(0);
    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease!important;
}
.thc__tab:not(.is-active):hover,
.thc__tab:not(.is-active):focus-visible{
    z-index:2;
    background:var(--rosa)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    transform:translateY(-3px);
    box-shadow:0 7px 15px rgba(0,0,0,.22);
}
.thc__tab.is-active:hover,
.thc__tab.is-active:focus-visible{
    z-index:2;
    background:#c90076!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    transform:translateY(-3px);
    box-shadow:0 7px 15px rgba(0,0,0,.22);
}
.thc__tab:focus-visible{
    outline:3px solid #fff!important;
    outline-offset:-5px!important;
}
.thc__tab:active{
    transform:translateY(0) scale(.99);
    box-shadow:none;
}

/* Firma / revisión técnica al final de la página */
.thc__review{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:8px 15px;
    margin-top:30px;
    padding:18px 22px;
    border-top:3px solid var(--rosa);
    border-bottom:1px solid #ddd;
    background:#fafafa;
    color:#222;
    text-align:center;
}
.thc__review-kicker{
    color:var(--rosa);
    font-family:Oswald,Arial,sans-serif;
    font-size:13px;
    font-weight:700;
    letter-spacing:.9px;
    text-transform:uppercase;
}
.thc__review-details{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:6px 11px;
    font-family:Abel,Arial,sans-serif;
    font-size:15px;
}
.thc__review-details strong{
    color:#111;
    font-family:Oswald,Arial,sans-serif;
    font-weight:700;
}
.thc__review-brand{
    padding-left:11px;
    border-left:1px solid #ccc;
    color:var(--rosa);
    font-family:Oswald,Arial,sans-serif;
    font-weight:700;
    letter-spacing:.4px;
}
.thc__review-role{
    color:#666;
}
@media(max-width:620px){
    .thc__review{
        align-items:center;
        flex-direction:column;
        padding:18px 16px;
    }
    .thc__review-details{
        flex-direction:column;
        gap:3px;
    }
    .thc__review-brand{
        padding-left:0;
        border-left:0;
    }
}

/* v0.5.11 · Firma MRCHIMINI enlazada */
.thc__review-signature,
.thc__review-signature:link,
.thc__review-signature:visited{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#111!important;
    -webkit-text-fill-color:#111!important;
    text-decoration:none!important;
    transition:
        color .18s ease,
        transform .18s ease,
        opacity .18s ease!important;
}
.thc__review-signature strong{
    color:inherit!important;
    -webkit-text-fill-color:inherit!important;
}
.thc__review-signature .thc__review-brand{
    color:#e6007e!important;
    -webkit-text-fill-color:#e6007e!important;
}
.thc__review-signature:hover,
.thc__review-signature:focus-visible{
    color:#e6007e!important;
    -webkit-text-fill-color:#e6007e!important;
    transform:translateY(-2px);
}
.thc__review-signature:hover .thc__review-brand,
.thc__review-signature:focus-visible .thc__review-brand{
    color:#111!important;
    -webkit-text-fill-color:#111!important;
}
.thc__review-signature:focus-visible{
    outline:2px solid #e6007e!important;
    outline-offset:4px!important;
}
@media(max-width:620px){
    .thc__review-signature{
        justify-content:center;
        flex-wrap:wrap;
    }
}
