/*
Theme Name: Nya Dental
Description: Tema personalizado para Nya Dental
Version: 1.0
*/

  :root {
      --page-bg: #ffffff;
      --text-main: #707070;
      --text-soft: #707070;
      --arrow: #a4a4a4;
      --card-bg: rgba(244, 244, 244, 0.96);
    }

    html,
    body {
      height: 100%;
    }

     body {
      margin: 0;
      background: var(--page-bg);
      font-family: "Montserrat", sans-serif;
      color: var(--text-main);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page-shell {
      min-height: 100vh;
      padding: 0;
    }

    .layout {
      min-height: 100vh;
    }

    /* ── Burger toggle (mobile) ── */
    .burger-toggle {
      display: none;
      position: fixed;
      top: 0.9rem;
      right: 1.2rem;
      z-index: 1200;
      width: 36px;
      height: 36px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .burger-toggle span {
      display: block;
      width: 28px;
      height: 2px;
      background: var(--text-main);
      border-radius: 2px;
      position: absolute;
      left: 4px;
      transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s ease;
    }

    .burger-toggle span:nth-child(1) { top: 8px; }
    .burger-toggle span:nth-child(2) { top: 17px; }
    .burger-toggle span:nth-child(3) { top: 26px; }

    .burger-toggle.is-active span:nth-child(1) {
      top: 17px;
      transform: rotate(45deg);
    }

    .burger-toggle.is-active span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }

    .burger-toggle.is-active span:nth-child(3) {
      top: 17px;
      transform: rotate(-45deg);
    }

    /* ── Sidebar / nav ── */
    .sidebar {
      position: relative;
      background: var(--page-bg);
      padding: 6vh 4vw 5vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

 .menu-column {
    max-width: 158px;
    padding-left: 0px;
    text-align: center;
}

    .menu-group {
      margin-bottom: 1.8rem;
    }

    .menu-title {
      margin-bottom: 0.9rem;
      font-size: 1rem;
      font-weight:600 !important;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--text-main);
    }

    .menu-link {
      display: block;
      margin-bottom: 0.65rem;
      font-size: 0.85rem;
      font-weight: 400;
      line-height: 1.3;
      text-transform: uppercase;
      color: var(--text-soft);
      transition: color 0.2s ease;
    }

    .menu-link:hover {
      color: #4d4d4d;
    }

    /* ── Sidebar footer (Privacy / GPDR) ── */
    .sidebar-footer {
      margin-top: auto;
      display: flex;
      gap: 1.5rem;
      font-size: 0.85rem;
      font-weight: 400;
      text-transform: uppercase;
      color: var(--text-main);
      padding-top: 3rem;
      padding-bottom: 2rem;
    }

    .sidebar-footer a {
      color: var(--text-main);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .sidebar-footer a:hover {
      color: #4d4d4d;
    }

    /* ── Logo ── */
    .site-logo {
      display: block;
      margin-bottom: 2.5rem;
    }

    .site-logo img {
      display: block;
      max-width: 180px;
      height: auto;
    }

    /* ── Mobile top bar ── */
    .mobile-topbar {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 56px;
      background: #fff;
      z-index: 1090;
      align-items: center;
      justify-content: center;
      padding: 0 1.2rem;
    }

    .mobile-topbar img {
      height: 55px;
      width: auto;
      image-rendering: optimizeQuality;
    }

    /* ── Slider ── */
    .slider-stage {
      position: relative;
      background: var(--page-bg);
      padding: 0;
    }

    .slider-inner {
      position: relative;
      height: 100vh;
      min-height: 700px;
    }

    /* ── Video cover ── */
    .video-cover {
      position: relative;
      overflow: hidden;
    }

    .video-cover video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      transform: translate(-50%, -50%);
      object-fit: cover;
      display: block;
    }

    /* ── Ocultar flechas por defecto, mostrar solo en slider (unique clinic) ── */
    .prev-arrow,
    .arrow-rail {
      display: none !important;
    }

    body.page-template-unique-clinic .prev-arrow,
    body.page-template-unique-clinic .arrow-rail,
    body.page-template-unique_clinic .prev-arrow,
    body.page-template-unique_clinic .arrow-rail {
      display: flex !important;
    }

    .experience-slider,
    .experience-slider .slick-list,
    .experience-slider .slick-track {
      height: 100%;
    }

    .experience-slider .slick-slide {
      height: 100%;
    }

    .experience-slider .slick-slide > div {
      height: 100%;
    }

    .slide-item {
      position: relative;
      height: 100%;
      overflow: hidden;
      display: block !important;
    }

    .slide-visual {
      position: absolute;
      inset: 0;
    }

    .slide-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* ── Slide content banner ── */
    .slide-content {
      position: absolute !important;
      right: 6%;
      bottom: 0;
      top: auto !important;
      height: auto !important;
      max-height: none !important;
      width: min(300px, 36%);
      background: #ffffff;
      padding: 1.4rem 1.6rem 1.5rem;
      z-index: 2;
      align-self: auto !important;
      flex: none !important;
    }

    .slide-content h2 {
      margin: 0 0 0.55rem;
      font-size: clamp(2rem, 2.6vw, 3rem);
      line-height: 1;
      font-weight: 400;
      color: #000000;
    }

    .slide-content p {
      margin: 0;
      font-size: 0.88rem;
      line-height: 1.35;
      color: #000000;
    }

    /* ── Arrows (SVG) ── */
    .arrow-rail {
      position: relative;
      background: var(--page-bg);
    }

    .nav-arrow {
      position: absolute;
      top: 50%;
      border: 0;
      padding: 0;
      background: transparent;
      transform: translateY(-50%);
      cursor: pointer;
      z-index: 4;
      line-height: 0;
    }

    .nav-arrow svg {
      display: block;
      width: 32px;
      height: auto;
      transition: opacity .2s ease;
    }

    .nav-arrow:hover svg path {
      stroke: #767676;
    }

    .prev-arrow {
      right: 4vw;
    }

    .next-arrow {
      left: 50%;
      transform: translate(-50%, -50%);
    }



    .slider-stage .slick-dots {
      display: none !important;
    }

    .slider-stage .slick-dots button {
      width: 10px;
      height: 10px;
      border: 0;
      border-radius: 50%;
      padding: 0;
      font-size: 0;
      background: rgba(255, 255, 255, 0.45);
    }

    .slider-stage .slick-dots .slick-active button {
      background: rgba(255, 255, 255, 0.95);
    }

    /* ── Mobile arrows (hidden on desktop) ── */
    .mobile-prev,
    .mobile-next {
      display: none;
    }

    /* ── Mobile overlay ── */
    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.35);
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s ease;
    }

    .sidebar-overlay.is-visible {
      opacity: 1;
      pointer-events: auto;
    }

    @media (max-width: 1199.98px) {
      .menu-title {
        font-size: 1.1rem;
      }

      .menu-link {
        font-size: 0.95rem;
      }

      .sidebar-footer {
        font-size: 1.2rem;
      }

      .prev-arrow {
        right: 1.5rem;
      }
    }

    @media (max-width: 991.98px) {
      .burger-toggle {
        display: block;
      }

      .mobile-topbar {
        display: flex;
      }

      .site-logo {
        display: block;
        margin-bottom: 2rem;
        text-align: center;
      }

      .site-logo img {
        margin: 0 auto;
      }

      .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 1100;
        padding: 2rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform .4s cubic-bezier(.4,0,.2,1);
        overflow-y: auto;
        background: var(--page-bg);
        justify-content: flex-start;
      }

      .sidebar.is-open {
        transform: translateX(0);
      }

      .sidebar-overlay {
        display: block;
      }

      .slider-stage {
        position: relative;
        min-height: auto;
      }

      .slider-inner,
      .arrow-rail {
        min-height: auto;
      }

      .layout {
        min-height: auto;
      }

      .menu-column {
        max-width: none;
      }

      /* Arrows ON the photo in mobile */
      .prev-arrow,
      body.page-template-unique-clinic .prev-arrow,
      body.page-template-unique_clinic .prev-arrow {
        display: none !important;
      }

      .arrow-rail,
      body.page-template-unique-clinic .arrow-rail,
      body.page-template-unique_clinic .arrow-rail {
        display: none !important;
      }

      .mobile-prev,
      .mobile-next {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6;
      }

      .mobile-prev {
        left: 0.8rem;
      }

      .mobile-next {
        right: 0.8rem;
      }

      .mobile-prev svg,
      .mobile-next svg {
        width: 24px;
        height: auto;
      }

      .slider-inner {
        height: calc(100vh - 56px);
        min-height: 400px;
        margin-top: 56px;
      }

      .slide-content {
        right: 5%;
        bottom: 0;
        width: min(260px, 55%);
      }

      .slider-stage .slick-dots {
        bottom: 1rem;
        left: 1rem;
      }
    }

    @media (max-width: 575.98px) {
      .menu-group {
        margin-bottom: 1.25rem;
      }

      .menu-title {
        font-size: 1rem;
      }

      .menu-link {
        font-size: 0.85rem;
      }

      .sidebar-footer {
        gap: 1rem;
        font-size: 1rem;
      }

      .slider-inner {
        height: calc(100vh - 56px);
        min-height: 380px;
      }

      .slide-content {
        right: 4%;
        bottom: 0;
        width: min(200px, 52%);
        padding: 0.9rem 1rem 1rem;
      }

      .slide-content h2 {
        font-size: 1.5rem;
      }

      .slide-content p {
        font-size: 0.78rem;
      }
    }

    /* ═══════════════════════════════════
       Our Dentist page
       ═══════════════════════════════════ */

    .dentist-stage {
      position: relative;
      background: var(--page-bg);
      padding: 0;
      overflow: visible;
    }

    .dentist-page {
      padding: 9vh 4vw 6vh;
      box-sizing: border-box;
    }

    .dentist-header {
      margin-bottom: 2.5rem;
      border-bottom: 1px solid #d0d0d0;
      padding-bottom: 0.8rem;
    }

    .dentist-header h1 {
      font-family: "Montserrat", sans-serif;
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 300;
      color: var(--text-main);
      margin: 0;
    }

    .dentist-body {
      display: flex;
      gap: 5vw;
      align-items: flex-start;
    }

    /* Left column: photo + text side by side */
    .dentist-main {
      flex: 1 1 60%;
      min-width: 0;
    }

    .dentist-bio {
      margin-bottom: 1rem;
    }

    .dentist-bio p {
      font-size: 0.85rem;
      line-height: 1.55;
      color: var(--text-main);
      margin: 0 0 1rem;
    }

    .dentist-photo {
      max-width: 100%;
    }

    .dentist-photo img {
      display: block;
      width: 100%;
      height: auto;
    }

    /* Right column: Publications */
    .dentist-publications {
      flex: 0 0 30%;
      max-width: 30%;
    }

    .pub-section-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-main);
      margin: 0 0 1.5rem;
      text-transform: none;
    }

    .pub-year-group {
      margin-bottom: 0.8rem;
    }

    .pub-year {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-main);
      margin: 0 0 0.4rem;
      cursor: pointer;
      user-select: none;
      padding: 0.3rem 0;
    }

    .pub-items {
      display: none;
      padding-left: 0;
    }

    .pub-year-group.is-open .pub-items {
      display: block;
    }

    .pub-item {
      margin-bottom: 1.5rem;
    }

    .pub-text {
      font-size: 0.78rem;
      line-height: 1.45;
      color: var(--text-main);
      margin: 0 0 0.4rem;
    }

    .pub-meta {
      font-size: 0.7rem;
      line-height: 1.4;
      color: #999;
      margin: 0;
    }

    /* Ocultar flechas en dentist — regla global ya las oculta */

    /* Scroll solo del body, sin scroll interno */
    body.page-template-our-dentist,
    body.page-template-our-dentist html {
      height: auto !important;
      overflow-x: hidden;
    }

    body.page-template-our-dentist .page-shell {
      min-height: 0 !important;
      height: auto !important;
      overflow: visible !important;
    }

    body.page-template-our-dentist .layout {
      min-height: 0 !important;
      height: auto !important;
      flex-wrap: nowrap;
      overflow: visible !important;
    }

    body.page-template-our-dentist .sidebar {
      position: relative;
      flex-shrink: 0;
      justify-content: flex-start;
      align-self: stretch;
      min-height: 100vh;
    }

    body.page-template-our-dentist .dentist-stage {
      min-height: auto;
      overflow: visible !important;
    }

    @media (max-width: 991.98px) {
      .dentist-page {
        margin-top: 56px;
        padding: 2rem 1.5rem;
      }

      .dentist-body {
        flex-direction: column;
      }

      .dentist-main {
        display: flex;
        flex-direction: column;
      }

      .dentist-photo {
        order: -1;
        margin-bottom: 1.5rem;
        max-width: 100%;
      }

      .dentist-photo img {
        max-width: 100%;
        width: 100%;
      }

      .dentist-publications {
        flex: none;
        max-width: 100%;
      }

      body.page-template-our-dentist .sidebar {
        position: fixed;
        height: auto;
      }
    }

    @media (max-width: 575.98px) {
      .dentist-header h1 {
        font-size: 1.5rem;
      }

      .dentist-bio p {
        font-size: 0.8rem;
      }
    }

    /* ═══════════════════════════════════
       Páginas informativas (treatments, legal, etc.)
       Clases compartidas .info-*
       ═══════════════════════════════════ */

    .info-stage {
      position: relative;
      background: var(--page-bg);
      padding: 0;
      overflow: visible;
    }

    .info-page {
      padding: 8.5vh 4vw 6vh;
      box-sizing: border-box;
      max-width: 900px;
    }

    .info-header {
      margin-bottom: 2.5rem;
      border-bottom: 1px solid #d0d0d0;
      padding-bottom: 0.8rem;
    }

    .info-header h1 {
      font-family: "Montserrat", sans-serif;
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 300;
      color: var(--text-main);
      margin: 0;
    }

    .info-body {
      display: flex;
      align-items: flex-start;
    }

    .info-text {
      width: 100%;
    }

    .info-text p {
      font-size: 0.85rem;
      line-height: 1.65;
      color: var(--text-main);
      margin: 0 0 1rem;
    }

    .info-text strong,
    .info-text b {
      font-weight: 600;
      color: var(--text-main);
    }

    .info-text h2 {
      font-family: "Montserrat", sans-serif;
      font-size: 1.3rem;
      font-weight: 500;
      color: var(--text-main);
      margin: 2rem 0 0.8rem;
    }

    .info-text h3 {
      font-family: "Montserrat", sans-serif;
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text-main);
      margin: 1.5rem 0 0.6rem;
    }

    .info-text h4 {
      font-family: "Montserrat", sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-main);
      margin: 1.2rem 0 0.5rem;
    }

    .info-text ul,
    .info-text ol {
      font-size: 0.85rem;
      line-height: 1.65;
      color: var(--text-main);
      margin: 0 0 1rem;
      padding-left: 1.5rem;
    }

    .info-text li {
      margin-bottom: 0.3rem;
    }

    .info-text a {
      color: var(--text-main);
      text-decoration: underline;
      transition: color 0.2s ease;
    }

    .info-text a:hover {
      color: #4d4d4d;
    }

    /* Footer de página (Privacy / GPDR) */
    .page-footer {
      display: flex;
      gap: 1.5rem;
      margin-top: 4rem;
      padding-top: 2rem;
      padding-bottom: 2rem;
      border-top: 1px solid #d0d0d0;
      font-family: "Montserrat", sans-serif;
      font-size: 0.85rem;
      font-weight: 400;
      text-transform: uppercase;
      color: var(--text-main);
    }

    .page-footer a {
      color: var(--text-main);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .page-footer a:hover {
      color: #4d4d4d;
    }

    /* Scroll: páginas informativas */
    body.page-template-treatments,
    body.page-template-treatments html,
    body.page-template-legal,
    body.page-template-legal html {
      height: auto !important;
      overflow-x: hidden;
    }

    body.page-template-treatments .page-shell,
    body.page-template-legal .page-shell {
      min-height: 0 !important;
      height: auto !important;
      overflow: visible !important;
    }

    body.page-template-treatments .layout,
    body.page-template-legal .layout {
      min-height: 0 !important;
      height: auto !important;
      flex-wrap: nowrap;
      overflow: visible !important;
    }

    body.page-template-treatments .sidebar,
    body.page-template-legal .sidebar {
      position: relative;
      flex-shrink: 0;
      justify-content: flex-start;
      align-self: stretch;
      min-height: 100vh;
    }

    body.page-template-treatments .info-stage,
    body.page-template-legal .info-stage {
      min-height: auto;
      overflow: visible !important;
    }

    @media (max-width: 991.98px) {
      .info-page {
        margin-top: 56px;
        padding: 2rem 1.5rem;
      }

      body.page-template-treatments .sidebar,
      body.page-template-legal .sidebar {
        position: fixed;
        height: auto;
      }
    }

    @media (max-width: 575.98px) {
      .info-header h1 {
        font-size: 1.5rem;
      }

      .info-text p {
        font-size: 0.8rem;
      }

      .info-text h2 {
        font-size: 1.1rem;
      }

      .info-text h3 {
        font-size: 0.95rem;
      }
    }

    /* ═══════════════════════════════════
       Contact page
       ═══════════════════════════════════ */

    .contact-hero {
      margin-bottom: 2.5rem;
      border-radius: 0;
      overflow: hidden;
      max-height: 320px;
    }

    .contact-hero img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .contact-form-wrap {
      margin-top: 3rem;
    }

    .contact-success {
      background: #e8f5e9;
      border: 1px solid #a5d6a7;
      border-radius: 4px;
      padding: 1rem 1.2rem;
      margin-bottom: 2rem;
    }

    .contact-success p {
      margin: 0;
      font-size: 0.85rem;
      color: #2e7d32;
    }

    .contact-form .form-row {
      display: flex;
      gap: 1.5rem;
      margin-bottom: 1.2rem;
    }

    .contact-form .form-group {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .contact-form .form-group.full-width {
      flex: 0 0 100%;
    }

    .contact-form label {
      font-family: "Montserrat", sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-main);
      margin-bottom: 0.4rem;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .contact-form .required {
      color: #c0392b;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form input[type="date"],
    .contact-form select,
    .contact-form textarea {
      font-family: "Montserrat", sans-serif;
      font-size: 0.85rem;
      color: var(--text-main);
      border: 1px solid #d0d0d0;
      border-radius: 3px;
      padding: 0.6rem 0.8rem;
      background: #fff;
      transition: border-color 0.2s ease;
      outline: none;
      width: 100%;
      box-sizing: border-box;
    }

    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
      border-color: #888;
    }

    .contact-form textarea {
      resize: vertical;
      min-height: 100px;
    }

    .contact-form select {
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6' fill='%23707070'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.8rem center;
      padding-right: 2rem;
    }

    .consent-label {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      font-size: 0.78rem !important;
      text-transform: none !important;
      font-weight: 400 !important;
      line-height: 1.4;
      cursor: pointer;
    }

    .consent-label input[type="checkbox"] {
      width: auto;
      margin-top: 0.15rem;
      flex-shrink: 0;
    }

    .field-error {
      display: none;
      font-size: 0.75rem;
      color: #c0392b;
      margin-top: 0.3rem;
    }

    .has-error input,
    .has-error select,
    .has-error textarea {
      border-color: #c0392b !important;
    }

    .has-error .field-error {
      display: block;
    }

    .form-actions {
      margin-top: 1.5rem;
    }

    .btn-submit {
      font-family: "Montserrat", sans-serif;
      font-size: 0.85rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #fff;
      background: var(--text-main);
      border: none;
      border-radius: 3px;
      padding: 0.75rem 2.5rem;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .btn-submit:hover {
      background: #4d4d4d;
    }

    /* Scroll: contact */
    body.page-template-contact,
    body.page-template-contact html {
      height: auto !important;
      overflow-x: hidden;
    }

    body.page-template-contact .page-shell {
      min-height: 0 !important;
      height: auto !important;
      overflow: visible !important;
    }

    body.page-template-contact .layout {
      min-height: 0 !important;
      height: auto !important;
      flex-wrap: nowrap;
      overflow: visible !important;
    }

    body.page-template-contact .sidebar {
      position: relative;
      flex-shrink: 0;
      justify-content: flex-start;
      align-self: stretch;
      min-height: 100vh;
    }

    body.page-template-contact .info-stage {
      min-height: auto;
      overflow: visible !important;
    }

    @media (max-width: 991.98px) {
      .contact-form .form-row {
        flex-direction: column;
        gap: 0;
      }

      .contact-form .form-group {
        margin-bottom: 1rem;
      }

      body.page-template-contact .sidebar {
        position: fixed;
        height: auto;
      }
    }

    @media (max-width: 575.98px) {
      .contact-hero {
        max-height: 200px;
      }
    }

    /* ═══════════════════════════════════
       Info Treatments (individual treatment pages)
       ═══════════════════════════════════ */

    /* Show arrows on info-treatments (desktop) */
    body.page-template-info-treatments .prev-arrow,
    body.page-template-info-treatments .arrow-rail {
      display: flex !important;
    }

    /* Stage */
    .treatment-stage {
      position: relative;
      background: var(--page-bg);
      padding: 0;
    }

    /* Two-column flex: image left (55%), content right (45%) */
    .treatment-layout {
      display: flex !important;
      flex-direction: row !important;
      min-height: 100vh;
    }

    /* Heading styles */
    .treatment-heading,
    .treatment-heading-desktop {
      font-family: "Montserrat", sans-serif;
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 400;
      color: var(--text-main);
      margin: 0 0 1.8rem;
      text-transform: uppercase;
    }

    /* Desktop: hide the standalone h1, show h2 inside col-text */
    .treatment-layout > .treatment-heading {
      display: none;
    }

    .treatment-heading-desktop {
      display: block;
    }

    /* Left column: image (55%) */
    .treatment-col-image {
      flex: 0 0 55%;
      max-width: 55%;
      overflow: hidden;
      position: relative;
    }

    .treatment-col-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Mobile arrows on image – hidden on desktop */
    .treatment-mob-prev,
    .treatment-mob-next {
      display: none;
    }

    /* Right column: title + text */
    .treatment-col-text {
      flex: 1 1 45%;
      padding: 9vh 3vw 6vh 3vw;
    }

    /* Scroll fix: info-treatments (single body scroll) */
    body.page-template-info-treatments,
    body.page-template-info-treatments html {
      height: auto !important;
      overflow-x: hidden;
    }

    body.page-template-info-treatments .page-shell {
      min-height: 0 !important;
      height: auto !important;
      overflow: visible !important;
    }

    body.page-template-info-treatments .layout {
      min-height: 0 !important;
      height: auto !important;
      flex-wrap: nowrap;
      overflow: visible !important;
    }

    body.page-template-info-treatments .sidebar {
      position: relative;
      flex-shrink: 0;
      justify-content: flex-start;
      align-self: stretch;
      min-height: 100vh;
    }

    /* ── Mobile: título → imagen → texto (scroll del body) ── */
    @media (max-width: 991.98px) {
      body.page-template-info-treatments .sidebar {
        position: fixed;
        height: auto;
      }

      /* Hide desktop arrows in mobile */
      body.page-template-info-treatments .prev-arrow,
      body.page-template-info-treatments .arrow-rail {
        display: none !important;
      }

      .treatment-stage {
        height: auto;
        overflow: visible;
      }

      .treatment-layout {
        flex-direction: column !important;
        height: auto;
        margin-top: 56px;
      }

      /* Restore heading visibility on mobile, hide desktop h2 */
      .treatment-layout > .treatment-heading {
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
        margin: 0;
        padding: 2rem 1.5rem 1rem;
        order: 1;
      }

      .treatment-heading-desktop {
        display: none;
      }

      .treatment-col-image {
        flex: none;
        max-width: 100%;
        order: 2;
        position: relative;
      }

      .treatment-col-image picture {
        display: block;
        pointer-events: none;
      }

      .treatment-col-image img {
        height: auto;
      }

      .treatment-col-text {
        flex: none;
        padding: 1.5rem 1.5rem 2rem;
        overflow-y: visible;
        order: 3;
      }

      /* Show mobile arrows over the image */
      .treatment-mob-prev,
      .treatment-mob-next {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        text-decoration: none;
        pointer-events: auto;
        background: rgba(0,0,0,0.35);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        padding: 0;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        cursor: pointer;
      }

      .treatment-mob-prev { left: 0.8rem; }
      .treatment-mob-next { right: 0.8rem; }

      .treatment-mob-prev svg,
      .treatment-mob-next svg {
        width: 16px;
        height: 16px;
        display: block;
        pointer-events: none;
      }
    }

    @media (max-width: 575.98px) {
      .treatment-heading {
        font-size: 1.5rem;
      }
    }