/**
 * [loh_test_bucodental] — Test Bucodental (portado de Origen)
 *
 * CSS extraído de style.css del tema antiguo (bloque .page-template-test-bucodental,
 * líneas 12148–12745) y re-scopeado a .loh-test-bucodental. El hero y la intro se
 * montan en Elementor (la intro necesita las clases `introduccion` en la sección
 * y `doTest` en el botón — ver docs/build-spec-elementor-loh.md).
 * Fuentes: DIN-Bold/DIN-Regular del origen → DIN (700/400) del site nuevo.
 * Se encola solo en la página que contiene el shortcode (functions.php).
 */

/* ── Helpers globales del origen, scopeados al wrapper ── */

.loh-test-bucodental .oculto {
    display: none !important;
}
.loh-test-bucodental .wrap-sizing {
    width: 90%;
    max-width: 1500px;
    margin: auto;
}
.loh-test-bucodental .main-button {
    color: #000;
    font-family: DIN, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 23px;
    padding: 11px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    width: 80%;
    max-width: 300px;
    text-align: center;
    -webkit-transition: all 750ms;
    transition: all 750ms;
}
.loh-test-bucodental .hvr-sweep-to-top {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}
.loh-test-bucodental .hvr-sweep-to-top:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    -webkit-transform: scaleY(0);
    -ms-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50% 100%;
    -ms-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
.loh-test-bucodental .hvr-sweep-to-top:active,
.loh-test-bucodental .hvr-sweep-to-top:focus,
.loh-test-bucodental .hvr-sweep-to-top:hover {
    color: #fff;
}
.loh-test-bucodental .hvr-sweep-to-top:active:before,
.loh-test-bucodental .hvr-sweep-to-top:focus:before,
.loh-test-bucodental .hvr-sweep-to-top:hover:before {
    -webkit-transform: scaleY(1);
    -ms-transform: scaleY(1);
    transform: scaleY(1);
}
.loh-test-bucodental .checkboxFilter {
    width: 90%;
    position: relative;
    padding-bottom: 7px;
}
.loh-test-bucodental .checkboxFilter label {
    cursor: pointer;
    position: absolute;
    width: 20px;
    height: 20px;
    top: -1px;
    left: 0;
    background: #fff;
    border: 1px solid #000;
}
.loh-test-bucodental .checkboxFilter label:after {
    opacity: 0;
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #000;
    border: 1px solid #000;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}
.loh-test-bucodental .checkboxFilter label:hover:after {
    opacity: 0.5;
}
.loh-test-bucodental .checkboxFilter .filter {
    float: left;
    padding-right: 20px;
}
.loh-test-bucodental .checkboxFilter .filter input {
    opacity: 0;
}
.loh-test-bucodental .checkboxFilter .nameFilterCheck {
    display: table;
    font-family: DIN, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000;
}
.loh-test-bucodental .checkboxFilter input[type="checkbox"]:checked + label:after {
    opacity: 1;
}

/* ── Bloque portado del origen (re-scopeado) ── */


.loh-test-bucodental .contenido {
    max-width: 1145px !important;
    width: 90%;
    background-color: #fff;
    padding-bottom: 100px;
}
.loh-test-bucodental .contenido > img {
    width: 50%;
    max-width: 320px;
    margin: auto;
    display: none;
    margin-bottom: 100px;
}
.loh-test-bucodental .contenido h1,
.loh-test-bucodental .contenido h2 {
    width: 90%;
    max-width: 727px;
    font-family: DIN, sans-serif;
    font-weight: 700;
    color: #d12421;
    font-size: 42px;
    line-height: 52px;
    text-transform: uppercase;
    text-align: center;
    margin: auto;
}
.loh-test-bucodental .contenido .page-title {
    width: 90%;
    max-width: 727px;
    font-family: DIN, sans-serif;
    font-weight: 700;
    color: #d12421;
    font-size: 42px;
    line-height: 52px;
    text-transform: uppercase;
    text-align: center;
    margin: auto;
}
.loh-test-bucodental .contenido h3,
.loh-test-bucodental .contenido .subtitle {
    width: 90%;
    max-width: 727px;
    margin: auto;
    font-family: DIN, sans-serif;
    font-weight: 700;
    color: #000;
    font-size: 26px;
    line-height: 29px;
    text-align: center;
    display: block;
    text-transform: uppercase;
    margin-top: 11px;
    margin-bottom: 0;
}
.loh-test-bucodental .contenido > p {
    display: block;
    width: 90%;
    max-width: 727px;
    margin: auto;
    font-family: DIN, sans-serif;
    font-weight: 400;
    text-align: center;
    margin-top: 14px;
    font-size: 18px;
    line-height: 25px;
}
.loh-test-bucodental .contenido > p strong {
    font-family: DIN, sans-serif;
    font-weight: 700;
}
.loh-test-bucodental .contenido > p a {
    font-family: DIN, sans-serif;
    font-weight: 700;
    color: #d12421;
    text-decoration: underline;
}
.loh-test-bucodental .contenido > p a:hover {
    text-decoration: none;
}
.loh-test-bucodental .contenido .sweep-marca::before {
    background: #d12421;
}
.loh-test-bucodental .contenido .sweep-marca {
    color: #d12421;
    border-top: 1px solid #d12421;
    border-bottom: 1px solid #d12421;
}
.loh-test-bucodental .contenido a {
    margin: auto;
    margin-top: 50px;
}
.loh-test-bucodental .contenido a:hover {
    color: #fff;
}
.loh-test-bucodental .contenido.out {
    opacity: 0;
    pointer-events: none;
}
.loh-test-bucodental .contenido.second {
    margin-top: 60px;
    margin-bottom: 120px;
}
@media (max-width: 730px) {
    .loh-test-bucodental .contenido.second {
        margin-bottom: 60px;
    }
}

@media (max-width: 1024px) {
    .loh-test-bucodental .contenido {
        margin-top: 0;
    }
    .loh-test-bucodental .contenido > img {
        display: table;
        margin-top: 100px;
    }
}

@media (max-width: 730px) {
    .loh-test-bucodental .contenido p {
        font-size: 21px;
    }
}

@media (max-width: 375px) {
    .loh-test-bucodental .contenido {
        margin-top: 0;
    }
    .loh-test-bucodental .contenido > img {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

.loh-test-bucodental .question-block {
    margin: auto;
    width: 90%;
    max-width: 700px !important;
    -webkit-transition: opacity 0.5s, padding-bottom 0s;
    transition: opacity 0.5s, padding-bottom 0s;
    padding-bottom: 50px;
}
.loh-test-bucodental .question-block h2 {
    width: 100%;
    text-align: center;
    font-size: 26px;
    line-height: 35px;
}
.loh-test-bucodental .question-block .options {
    margin: auto;
    width: 70%;
}
.loh-test-bucodental .question-block .options a {
    display: block;
    width: 100%;
    font-family: DIN, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 63px;
    color: #000;
    text-align: center;
    background-color: #efefef;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}
.loh-test-bucodental .question-block .options a + a {
    margin-top: 13px;
}
.loh-test-bucodental .question-block .options a:hover {
    color: #fff;
    background-color: #000;
}
@media (max-width: 730px) {
    .loh-test-bucodental .question-block .options a {
        line-height: 1;
        padding-top: 13px;
        padding-bottom: 13px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

.loh-test-bucodental .question-block.first {
    padding-bottom: 0;
}
.loh-test-bucodental .question-block.out {
    opacity: 0;
    pointer-events: none;
}
.loh-test-bucodental .preload-wrapper {
    margin: auto;
    width: 90%;
    max-width: 700px !important;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    padding-bottom: 50px;
    transition: all 0.5s;
}
.loh-test-bucodental .preload-wrapper.out {
    padding-bottom: 0;
    display: none;
}
.loh-test-bucodental .preload-wrapper .preload {
    margin: auto;
    width: 70%;
    height: 12px;
    border-radius: 6px;
    border: solid 1px #c4c5c5;
}
.loh-test-bucodental .preload-wrapper .preload > div {
    display: block;
    width: calc(100% - 4px);
    height: 8px;
    margin-top: 2px;
    margin-left: 2px;
    border-radius: 6px;
    background-color: #d12421;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}
.loh-test-bucodental .the-end {
    width: 90%;
    max-width: 700px !important;
}
.loh-test-bucodental .the-end .respuestas {
    width: 80%;
    max-width: 655px;
    margin: auto;
    margin-top: 60px;
}
.loh-test-bucodental .the-end .respuestas > div {
    display: block;
    width: 100%;
}
.loh-test-bucodental .the-end .respuestas > div > p {
    display: block;
    width: 90%;
    max-width: 727px;
    margin: auto;
    font-family: DIN, sans-serif;
    font-weight: 400;
    text-align: center;
    font-size: 18px;
    line-height: 25px;
}
.loh-test-bucodental .the-end .respuestas > div > p strong {
    font-family: DIN, sans-serif;
    font-weight: 700;
}
.loh-test-bucodental .the-end .respuestas > div > p a {
    font-family: DIN, sans-serif;
    font-weight: 700;
    color: #d12421;
    text-decoration: underline;
}
.loh-test-bucodental .the-end .respuestas > div > p a:hover {
    text-decoration: none;
}
.loh-test-bucodental .the-end .respuestas > div + div {
    border-top: 1px solid #d12421;
    margin-top: 25px;
    padding-top: 25px;
}
.loh-test-bucodental .the-end .sendInfo {
    display: block;
    background-color: #d12421;
    width: 70%;
    max-width: 700px !important;
    margin: auto;
    margin-top: 60px;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
}
.loh-test-bucodental .the-end .sendInfo > p {
    font-family: DIN, sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
    color: #fff;
    width: 90%;
    max-width: 727px;
    margin: auto;
}
.loh-test-bucodental .the-end .sendInfo > p:first-child {
    font-size: 16px;
}
.loh-test-bucodental .the-end .sendInfo .form {
    border: 1px solid #fff;
    width: 345px;
    margin: auto;
    margin-top: 18px;
    margin-bottom: 30px;
    position: relative;
}
.loh-test-bucodental .the-end .sendInfo .form input {
    width: 252px;
    height: 32px;
    font-family: DIN, sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 16px;
    line-height: 32px;
    text-indent: 12px;
    border: 0;
    background-color: #d12421;
    display: inline-block;
    float: left;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}
.loh-test-bucodental .the-end .sendInfo .form input::-webkit-input-placeholder {
    color: #fff;
}
.loh-test-bucodental .the-end .sendInfo .form input::-moz-placeholder {
    color: #fff;
}
.loh-test-bucodental .the-end .sendInfo .form input:-ms-input-placeholder {
    color: #fff;
}
.loh-test-bucodental .the-end .sendInfo .form input::-ms-input-placeholder {
    color: #fff;
}
.loh-test-bucodental .the-end .sendInfo .form input::placeholder {
    color: #fff;
}
.loh-test-bucodental .the-end .sendInfo .form input.error {
    color: #000;
}
.loh-test-bucodental .the-end .sendInfo .form input.error::-webkit-input-placeholder {
    color: #000;
}
.loh-test-bucodental .the-end .sendInfo .form input.error::-moz-placeholder {
    color: #000;
}
.loh-test-bucodental .the-end .sendInfo .form input.error:-ms-input-placeholder {
    color: #000;
}
.loh-test-bucodental .the-end .sendInfo .form input.error::-ms-input-placeholder {
    color: #000;
}
.loh-test-bucodental .the-end .sendInfo .form input.error::placeholder {
    color: #000;
}
.loh-test-bucodental .the-end .sendInfo .form > a {
    width: calc(100% - 257px);
    height: 34px;
    border-left: 1px solid #fff;
    font-family: DIN, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    display: inline-block;
    margin-top: 0;
}
.loh-test-bucodental .the-end .sendInfo .form > a:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    -webkit-transform: scaleY(0);
    -ms-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50% 100%;
    -ms-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    -webkit-transition-property: transform;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
.loh-test-bucodental .the-end .sendInfo .form > a:active,
.loh-test-bucodental .the-end .sendInfo .form > a:focus,
.loh-test-bucodental .the-end .sendInfo .form > a:hover {
    color: #d12421;
}
.loh-test-bucodental .the-end .sendInfo .form > a:active:before,
.loh-test-bucodental .the-end .sendInfo .form > a:focus:before,
.loh-test-bucodental .the-end .sendInfo .form > a:hover:before {
    -webkit-transform: scaleY(1);
    -ms-transform: scaleY(1);
    transform: scaleY(1);
}
.loh-test-bucodental .the-end .sendInfo .form .message {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}
.loh-test-bucodental .the-end .sendInfo .form .message > div {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 80%;
    margin-left: 10%;
    text-align: center;
}
.loh-test-bucodental .the-end .sendInfo .form .message > div span {
    color: #fff;
    display: inline-block;
    margin-right: 10px;
}
.loh-test-bucodental .the-end .sendInfo .form .message > div a {
    display: inline-block;
    color: #fff;
    text-decoration: underline;
    text-align: left;
    margin-top: 0;
}
.loh-test-bucodental .the-end .sendInfo .form .message > div a:hover {
    text-decoration: none;
}
.loh-test-bucodental .the-end .sendInfo .form .message.out {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 730px) {
    .loh-test-bucodental .the-end .sendInfo .form {
        width: 80%;
        border: 0;
    }
    .loh-test-bucodental .the-end .sendInfo .form input {
        width: 100%;
        border: 1px solid #fff;
        display: block;
        float: none;
    }
    .loh-test-bucodental .the-end .sendInfo .form > a {
        display: block;
        margin-top: 20px;
        width: 90px;
        border: 1px solid #fff;
    }
}

.loh-test-bucodental .the-end .sendInfo .checkboxFilter {
    margin: auto;
    margin-top: 10px;
    width: 80%;
    max-width: 345px;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter .filter {
    padding-right: 10px;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter label {
    width: 15px;
    height: 15px;
    border: 1px solid #fff;
    background: #d12421;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter label:after {
    width: 13px;
    height: 13px;
    background: #fff;
    border: 1px solid #d12421;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter .nameFilterCheck {
    color: #fff;
    text-transform: none;
    font-size: 13px;
    font-family: DIN, sans-serif;
    font-weight: 700;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter .nameFilterCheck a {
    color: #fff;
    text-decoration: underline;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter .nameFilterCheck a:hover {
    text-decoration: none;
}
.loh-test-bucodental .the-end .sendInfo .checkboxFilter.error label {
    border: 1px solid #000;
}
.loh-test-bucodental .the-end.out {
    display: none;
}
@media (max-width: 1024px) {
    .loh-test-bucodental .the-end {
        margin-top: 0;
    }
}

@media (max-width: 730px) {
    .loh-test-bucodental .the-end {
        margin-top: -60px;
    }
    .loh-test-bucodental .the-end .respuestas > div > p {
        font-size: 21px;
    }
    .loh-test-bucodental .the-end .sendInfo {
        width: 100%;
    }
    .loh-test-bucodental .the-end .sendInfo .nameFilterCheck {
        font-size: 17px;
    }
    .loh-test-bucodental .the-end .sendInfo .nameFilterCheck p {
        font-size: 14px;
    }
}


/* ── Botón "Realizar el test" (.doTest) — mismo look que .boton-principal ──
   La clase doTest va en el WIDGET Botón de Elementor (Avanzado → Clases CSS),
   por eso el selector apunta al .elementor-button interno. Se incluye también
   a.doTest por si la clase se aplica directamente a un enlace. Réplica de
   .boton-principal (style.css) — esos selectores no aplican en esta página. */

.doTest .elementor-button,
a.doTest {
    font-family: DIN;
    font-size: 18px;
    font-weight: 600;
    color: #d12421;
    text-align: center;
    text-transform: uppercase;
    background-color: transparent;
    display: inline-block;
    padding-block: 12px;
    padding-inline: 20px;
    border-style: solid;
    border-color: #d12421;
    border-block-width: 1px;
    border-inline-width: 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
    line-height: 22px;
    min-width: 300px;
}
.doTest .elementor-button::before,
a.doTest::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #d12421;
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.3s ease-out;
}
.doTest .elementor-button:is(:active, :focus, :hover),
a.doTest:is(:active, :focus, :hover) {
    color: #fff;
    background-color: transparent;
}
.doTest .elementor-button:is(:active, :focus, :hover)::before,
a.doTest:is(:active, :focus, :hover)::before {
    transform: scaleY(1);
}

/* ── Intro (montada en Elementor) — paridad tipográfica con Origen ──
   Origen: .contenido .subtitle / .page-title / > p (base rem 14px → px).
   El markup aquí es Elementor: heading (div) = subtítulo, heading (h1) = título,
   text-editor = párrafo. Todo dentro del contenedor con clase `introduccion`. */

.introduccion .elementor-widget-heading .elementor-heading-title {
    width: 90%;
    max-width: 727px;
    margin: auto;
    font-family: DIN, sans-serif;
    font-weight: 700;
    color: #000;
    font-size: 26px;
    line-height: 29px;
    text-align: center;
    text-transform: uppercase;
}
.introduccion .elementor-widget-heading h1.elementor-heading-title {
    color: #d12421;
    font-size: 42px;
    line-height: 52px;
}
.introduccion .elementor-widget-text-editor p {
    width: 90%;
    max-width: 727px;
    margin: 14px auto 0;
    font-family: DIN, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
}

/* ── Intro: espaciados y comportamiento — paridad con Origen ──
   Origen: .contenido a { margin-top: 50px } (gap texto→botón),
   .contenido { padding-bottom: 100px } (aire inferior de la sección),
   .contenido.out { opacity: 0 } (fade al arrancar el test — la intro aquí es
   un contenedor Elementor, no hereda esa regla del bloque portado). */

.introduccion {
    padding-bottom: 100px;
    transition: opacity 0.5s;
}
.introduccion.out {
    opacity: 0;
    pointer-events: none;
}
.introduccion .doTest {
    margin-top: 50px;
}

/* Responsive intro (Origen solo ajusta el párrafo; título y subtítulo no cambian) */
@media (max-width: 730px) {
    .introduccion .elementor-widget-text-editor p {
        font-size: 21px;
    }
}
