/* CM Rediseñador de Páginas · CSS global v1 */
.cmr-redesign-active .cmr-redesign-v1,
.cmr-redesign-active .cmr-redesign-v1 h1,
.cmr-redesign-active .cmr-redesign-v1 h2,
.cmr-redesign-active .cmr-redesign-v1 h3,
.cmr-redesign-active .cmr-redesign-v1 h4,
.cmr-redesign-active .cmr-redesign-v1 p,
.cmr-redesign-active .cmr-redesign-v1 li,
.cmr-redesign-active .cmr-redesign-v1 a,
.cmr-redesign-active .cmr-redesign-v1 span{font-family:'Ubuntu',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;box-sizing:border-box}
.cmr-redesign-active .cmr-content-row p,
.cmr-redesign-active .cmr-content-row li,
.cmr-redesign-active .cmr-faq-row p,
.cmr-redesign-active .cmr-faq-row li{font-size:17px;line-height:1.7;color:#626262}
.cmr-redesign-active .cmr-content-row h2,
.cmr-redesign-active .cmr-faq-row h2,
.cmr-redesign-active .cmr-cta-row h2{color:#242424!important;font-size:clamp(30px,2.8vw,42px)!important;line-height:1.13!important;font-weight:500!important;letter-spacing:-.025em!important;margin-bottom:22px!important}

/* Hero */
.cmr-redesign-active .cmr-hero{min-height:540px!important;background-position:center center!important;background-size:cover!important}
.cmr-redesign-active .cmr-hero h1{color:#fff!important;font-size:clamp(40px,4vw,58px)!important;line-height:1.06!important;font-weight:500!important;letter-spacing:-.03em!important;margin-bottom:20px!important;max-width:760px}
.cmr-redesign-active .cmr-hero p{color:rgba(255,255,255,.94)!important;font-size:18px!important;line-height:1.62!important;font-weight:300!important;max-width:700px}
.cmr-redesign-active .cmr-hero .nectar-button{background:#d58953!important;border-color:#d58953!important;color:#fff!important;font-family:'Ubuntu',sans-serif!important;font-weight:500!important}
.cmr-redesign-active .cmr-hero .nectar-button:hover{background:#fff!important;border-color:#fff!important;color:#d58953!important}

/* Filas y contenido */
.cmr-redesign-active .cmr-row-soft{background:#fffaf6!important}
.cmr-redesign-active .cmr-row-white{background:#fff!important}
.cmr-redesign-active .cmr-content-row strong{color:#242424}
.cmr-redesign-active .cmr-content-row a:not(.nectar-button){color:#d58953;text-decoration:none;border-bottom:1px solid rgba(213,137,83,.35)}
.cmr-redesign-active .cmr-content-row a:not(.nectar-button):hover{color:#3ab9cf;border-color:rgba(58,185,207,.4)}
.cmr-redesign-active .cmr-content-row ul{margin-left:0!important;padding-left:0!important;list-style:none!important}
.cmr-redesign-active .cmr-content-row ul>li{position:relative;list-style:none!important;padding-left:24px!important}
.cmr-redesign-active .cmr-content-row ul>li::marker{content:""!important;font-size:0!important}
.cmr-redesign-active .cmr-content-row ul>li:before{content:""!important;position:absolute;left:4px;top:.72em;width:7px;height:7px;border-radius:50%;background:#d58953!important}

/* Imágenes internas */
.cmr-redesign-active .cmr-photo{width:100%;height:470px;overflow:hidden;border-radius:18px;background:#f4f2ef}
.cmr-redesign-active .cmr-photo img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important;margin:0!important}
.cmr-redesign-active .cmr-photo-left>.row_col_wrap_12{flex-direction:row-reverse}

/* FAQ · misma estructura visual que la Home */
.cmr-redesign-active .cmr-faq-home .toggles{margin-top:8px}
.cmr-redesign-active .cmr-eyebrow{display:inline-block;margin-bottom:14px;color:#d58953;font-size:12px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:.15em;text-transform:uppercase}
.cmr-redesign-active .cmr-faq-home .cmr-title{margin:0 0 22px!important;color:#242424!important;font-size:clamp(30px,2.8vw,42px)!important;line-height:1.13!important;font-weight:500!important;letter-spacing:-.025em!important}
.cmr-redesign-active .cmr-faq-home .toggle{border-bottom:1px solid #eee6df!important}
.cmr-redesign-active .cmr-faq-home .toggle h3,
.cmr-redesign-active .cmr-faq-home .toggle-title a{font-family:'Ubuntu',sans-serif!important;font-weight:500!important;color:#242424!important}
.cmr-redesign-active .cmr-contact-card{padding:30px;background:#fffaf6;border:1px solid #f0dfd0;border-radius:18px;margin-bottom:14px}
.cmr-redesign-active .cmr-contact-card h3{margin:0 0 18px!important;color:#242424!important;font-size:26px!important;line-height:1.18!important;font-weight:500!important}
.cmr-redesign-active .cmr-contact-card p{margin-bottom:18px!important;font-size:15.5px!important;line-height:1.58!important;color:#626262!important}
.cmr-redesign-active .cmr-contact-card a{color:#242424!important;text-decoration:none!important;border:0!important}
.cmr-redesign-active .cmr-faq-contact-column .nectar-button{font-family:'Ubuntu',sans-serif!important;font-weight:500!important}

/* CTA final */
.cmr-redesign-active .cmr-cta-row{background:#fffaf6!important}
.cmr-redesign-active .cmr-cta-row .row_col_wrap_12{max-width:1180px;margin:0 auto}
.cmr-redesign-active .cmr-cta-row .nectar-button{background:#3ab9cf!important;border-color:#3ab9cf!important;color:#fff!important}

/* CTA móvil */
.cmr-mobile-cta{display:none}
@media(max-width:999px){
  .cmr-redesign-active .cmr-photo{height:390px}
  .cmr-redesign-active .cmr-photo-left>.row_col_wrap_12{flex-direction:column}
}
@media(max-width:690px){
  .cmr-redesign-active{padding-bottom:68px}
  .cmr-redesign-active .cmr-content-row p,
  .cmr-redesign-active .cmr-content-row li,
  .cmr-redesign-active .cmr-faq-row p{font-size:16px;line-height:1.65}
  .cmr-redesign-active .cmr-hero{min-height:480px!important;background-position:62% center!important}
  .cmr-redesign-active .cmr-hero h1{font-size:37px!important;line-height:1.08!important}
  .cmr-redesign-active .cmr-hero p{font-size:16px!important;line-height:1.58!important}
  .cmr-redesign-active .cmr-content-row h2,
  .cmr-redesign-active .cmr-faq-row h2,
  .cmr-redesign-active .cmr-cta-row h2{font-size:30px!important;line-height:1.16!important}
  .cmr-redesign-active .cmr-photo{height:310px;border-radius:14px}
  .cmr-redesign-active .cmr-faq-row>.row_col_wrap_12>.wpb_column:last-child>.vc_column-inner>.wpb_wrapper{padding:24px;border-radius:16px}
  .cmr-mobile-cta{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:flex;gap:8px;padding:8px 10px;background:#fff;border-top:1px solid #e6e0da;box-shadow:0 -8px 24px rgba(0,0,0,.08)}
  .cmr-mobile-cta a{flex:1;padding:12px 8px;border-radius:9px;text-align:center;text-decoration:none!important;font:700 14px/1.1 'Ubuntu',sans-serif}
  .cmr-mobile-call{border:1px solid #d58953;color:#d58953!important;background:#fff}
  .cmr-mobile-book{border:1px solid #3ab9cf;color:#fff!important;background:#3ab9cf}
}


/* ===== PILOTO APROBADO: IMPLANTOLOGÍA ===== */
/* =========================================================
   CLÍNICA DENTAL CM · PILOTO PÁGINA DE TRATAMIENTO
   Página: Implantología · ID 119
   Añadir DEBAJO del CSS existente.
   ========================================================= */

body.page-id-119 .cm-treatment-pilot,
body.page-id-119 .cm-treatment-pilot h1,
body.page-id-119 .cm-treatment-pilot h2,
body.page-id-119 .cm-treatment-pilot h3,
body.page-id-119 .cm-treatment-pilot h4,
body.page-id-119 .cm-treatment-pilot p,
body.page-id-119 .cm-treatment-pilot li,
body.page-id-119 .cm-treatment-pilot a,
body.page-id-119 .cm-treatment-pilot span {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    box-sizing: border-box;
}

body.page-id-119 .cm-treatment-pilot p,
body.page-id-119 .cm-treatment-pilot li {
    font-size: 17px;
    line-height: 1.7;
    color: #626262;
}

body.page-id-119 .cm-treatment-pilot strong {
    color: #242424;
}

/* HERO */

body.page-id-119 .cm-treatment-hero {
    min-height: 540px;
}

.cmtp-hero-copy {
    max-width: 690px;
}

.cmtp-hero-copy h1 {
    margin: 0 0 20px !important;
    color: #fff !important;
    font-size: clamp(40px, 4vw, 58px) !important;
    line-height: 1.06 !important;
    font-weight: 500 !important;
    letter-spacing: -.03em !important;
}

.cmtp-hero-copy p {
    max-width: 650px;
    margin: 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 18px !important;
    line-height: 1.62 !important;
    font-weight: 300 !important;
}

/* TITULARES Y TEXTO */

.cmtp-copy {
    max-width: 690px;
}

.cmtp-copy-wide {
    max-width: 820px;
}

.cmtp-copy h2,
.cmtp-split-title h2,
.cmtp-centered-heading h2,
.cmtp-detail-card h2,
.cmtp-faq-title {
    margin: 0 0 22px !important;
    color: #242424 !important;
    font-size: clamp(30px, 2.8vw, 42px) !important;
    line-height: 1.13 !important;
    font-weight: 500 !important;
    letter-spacing: -.025em !important;
}

.cmtp-copy p:first-of-type,
.cmtp-split-body p:first-of-type {
    margin-top: 0;
}

.cmtp-copy ul,
.cmtp-split-body ul,
.cmtp-summary-copy ul {
    margin: 18px 0 24px 0;
}

.cmtp-copy li,
.cmtp-split-body li,
.cmtp-summary-copy li {
    margin-bottom: 7px;
}

/* FOTOS */

.cmtp-photo {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #f4f2ef;
}

.cmtp-photo img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
}

.cmtp-photo-intro {
    height: 500px;
}

.cmtp-photo-intro img {
    object-position: center center !important;
}

.cmtp-photo-tall {
    height: 560px;
}

.cmtp-photo-tall img {
    object-position: center 45% !important;
}

.cmtp-photo-wide {
    height: 420px;
}

.cmtp-photo-wide img {
    object-position: center center !important;
}

/* BLOQUE PARTIDO */

.cmtp-split-content {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 70px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

.cmtp-split-title {
    position: sticky;
    top: 130px;
}

.cmtp-split-title h2 {
    max-width: 430px;
}

.cmtp-split-body {
    max-width: 700px;
}

.cmtp-check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 26px;
    padding: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
}

.cmtp-check-list li {
    position: relative;
    margin: 0 !important;
    padding: 12px 14px 12px 34px;
    border-bottom: 1px solid #eee6df;
    list-style: none !important;
    background-image: none !important;
}

.cmtp-check-list li::marker {
    content: "" !important;
    font-size: 0 !important;
}

.cmtp-check-list li:before {
    content: "" !important;
    position: absolute;
    left: 10px;
    top: 20px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d58953 !important;
}

/* RESUMEN DE TRATAMIENTOS */

.cmtp-centered-heading {
    max-width: 860px;
    margin: 0 auto 36px;
    text-align: center;
}

.cmtp-treatment-summary {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    max-width: 1180px;
    min-height: 440px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #f0dfd0;
    border-radius: 20px;
    background: #fff;
}

.cmtp-summary-copy {
    padding: 42px;
    align-self: center;
}

.cmtp-summary-copy p,
.cmtp-summary-copy li {
    font-size: 16.5px !important;
}

.cmtp-summary-photo {
    min-height: 440px;
    overflow: hidden;
}

.cmtp-summary-photo img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* DOS TARJETAS DE DETALLE */

.cmtp-two-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.cmtp-detail-card {
    position: relative;
    padding: 38px;
    border: 1px solid #ebe4de;
    border-radius: 18px;
    background: #fff;
}

.cmtp-detail-card:nth-child(2) {
    background: #fffaf6;
    border-color: #f0dfd0;
}

.cmtp-card-number {
    display: block;
    margin-bottom: 28px;
    color: #d58953;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: .14em;
}

.cmtp-detail-card h2 {
    font-size: 30px !important;
}

.cmtp-detail-card p {
    font-size: 16px !important;
}

.cmtp-detail-card > a {
    display: inline-block;
    margin-top: 7px;
    color: #d58953 !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(213,137,83,.45);
}

/* FAQ Y CONTACTO */


/* BOTONES */

body.page-id-119 .cm-treatment-pilot .nectar-button {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 500 !important;
}

/* CTA MÓVIL */

.cmtp-mobile-cta {
    display: none;
}

/* TABLET */

@media (max-width: 999px) {

    body.page-id-119 .cm-treatment-hero {
        min-height: 500px;
        background-position: 58% center !important;
    }

    .cmtp-photo-intro,
    .cmtp-photo-tall {
        height: 430px;
    }

    .cmtp-split-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cmtp-split-title {
        position: static;
    }

    .cmtp-split-title h2 {
        max-width: 700px;
    }

    .cmtp-treatment-summary {
        grid-template-columns: 1fr 1fr;
    }

    .cmtp-summary-copy {
        padding: 30px;
    }

    .cmtp-related-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* MÓVIL */

@media (max-width: 690px) {

    body.page-id-119 {
        padding-bottom: 68px;
    }

    body.page-id-119 .cm-treatment-pilot p,
    body.page-id-119 .cm-treatment-pilot li {
        font-size: 16px;
        line-height: 1.65;
    }

    body.page-id-119 .cm-treatment-hero {
        min-height: 480px;
        background-position: 62% center !important;
    }

    .cmtp-hero-copy h1 {
        font-size: 37px !important;
        line-height: 1.08 !important;
    }

    .cmtp-hero-copy p {
        font-size: 16px !important;
        line-height: 1.58 !important;
    }

    .cmtp-copy h2,
    .cmtp-split-title h2,
    .cmtp-centered-heading h2,
    .cmtp-faq-title {
        font-size: 30px !important;
        line-height: 1.16 !important;
    }

    .cmtp-photo {
        border-radius: 14px;
    }

    .cmtp-photo-intro,
    .cmtp-photo-tall,
    .cmtp-photo-wide {
        height: 310px;
    }

    .cmtp-check-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cmtp-treatment-summary {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 16px;
    }

    .cmtp-summary-copy {
        padding: 25px 22px;
    }

    .cmtp-summary-photo {
        min-height: 260px;
        height: 260px;
    }

    .cmtp-two-cards {
        grid-template-columns: 1fr;
    }

    .cmtp-detail-card {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .cmtp-detail-card h2 {
        font-size: 27px !important;
    }

    .cmtp-related-grid {
        grid-template-columns: 1fr;
    }

    .cmtp-related-card {
        min-height: 0;
        padding: 24px;
    }

    .cmtp-centered-heading {
        text-align: left;
        margin-bottom: 26px;
    }

    .cmtp-contact-card {
        padding: 25px 22px;
        border-radius: 16px;
    }

    .cmtp-mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        gap: 8px;
        padding: 8px 10px;
        background: #fff;
        border-top: 1px solid #e6e0da;
        box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    }

    .cmtp-mobile-cta a {
        flex: 1;
        padding: 12px 8px;
        border-radius: 9px;
        text-align: center;
        text-decoration: none !important;
        font-size: 14px;
        line-height: 1.1;
        font-weight: 700;
    }

    .cmtp-mobile-cta a:first-child {
        border: 1px solid #d58953;
        color: #d58953 !important;
        background: #fff;
    }

    .cmtp-mobile-cta a:last-child {
        border: 1px solid #3ab9cf;
        color: #fff !important;
        background: #3ab9cf;
    }
}

/* =========================================================
   V2 · CARRUSEL ORIGINAL "TAMBIÉN PUEDE INTERESARTE"
   Se conserva la estructura Flickity/Fancy Box del XML.
   ========================================================= */

body.page-id-119 .cmtp-original-related-slider h2 {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(30px, 2.8vw, 42px) !important;
    line-height: 1.13 !important;
    font-weight: 500 !important;
    letter-spacing: -.025em !important;
    color: #242424 !important;
}

body.page-id-119 .cmtp-original-related-slider .fancy-box a,
body.page-id-119 .cmtp-original-related-slider .nectar-fancy-box a {
    font-weight: 700 !important;
}

/* =========================================================
   V2 · FAQ IGUAL QUE LA HOME
   ========================================================= */

body.page-id-119 .cmtp-faq-home .toggles {
    margin-top: 8px;
}

body.page-id-119 .cmtp-faq-home .cm-contact-card {
    margin-bottom: 0;
}

/* Link interno SEO de bloques editoriales */
body.page-id-119 .cmtp-seo-link {
    display: inline-block;
    margin-top: 7px;
    color: #d58953 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(213,137,83,.45);
    padding-bottom: 2px;
}

body.page-id-119 .cmtp-seo-link:hover {
    color: #3ab9cf !important;
    border-color: rgba(58,185,207,.45);
}


/* v1.0.2 · normalización de cabeceras heredadas */
.cmr-redesign-active .cmr-hero .cmr-hero-inner{padding-top:0!important;padding-bottom:0!important;min-height:0!important}
@media(max-width:690px){
  .cmr-redesign-active .cmr-contact-card{padding:24px 22px;border-radius:16px}
}


/* =========================================================
   v1.0.3 · TOP 0 GLOBAL
   Salient Force Transparency es la solución principal.
   Esto actúa como fallback visual en escritorio.
   ========================================================= */
@media only screen and (min-width:1000px){
  body.cmr-redesign-active #header-space{
    display:none!important;
    height:0!important;
  }
  body.cmr-redesign-active .container-wrap{
    margin-top:0!important;
  }
  body.cmr-redesign-active .cmr-hero.first-section,
  body.cmr-redesign-active .full-width-content.first-section,
  body.cmr-redesign-active .full-width-section.first-section{
    margin-top:0!important;
  }
}
