/* =====================================================================
   JOURNEY TO WELLNESS — HOJA GLOBAL DE CONTENIDO (Editor CMS)
   Desarrollado por Damos Soluciones
   Todas las reglas de componentes del contenido viven aquí. El CSS por
   página/publicación debe quedar VACÍO: no usar estilos en línea ni
   !important en el editor visual. Paleta: #482916 café · #899f82 salvia ·
   #939a59 oliva · #fae6d8 durazno · #414b5a texto.
   ===================================================================== */

/* 0. Listado About: fotos de tarjetas */
.jtw-about-list-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 18px;
  background: #f3f6f1
}

/* 1. BASE: bloques del tema usados como <div> dentro del editor
   (la portada usa <section> del tema y no se ve afectada) */
#content section>.container div.bg-color-op-1,
#content section>.container div.bg-color,
#content section>.container div.bg-light,
#content section>.container div.bg-dark {
  padding: clamp(24px, 5vw, 60px) !important;
  border-radius: 24px;
  box-sizing: border-box
}

#content section>.container div.bg-color-op-1+div.bg-color-op-1 {
  margin-top: 32px !important
}

#content section>.container div.bg-color-op-1>.container,
#content section>.container .container .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0
}

#content section>.container div.bg-color-op-1 .row,
#content section>.container .relative.z-2>.row {
  margin-top: 0
}

#content section>.container>*+.relative,
#content section>.container>*+.jtw-inner,
#content section>.container>*+.jtw-about,
#content section>.container>*+.row.first-row,
#content section>.container div.bg-color-op-1 {
  margin-top: 48px
}

#content section>.container #idkoi {
  padding-top: 0;
  padding-bottom: 0
}

#content section>.container #idkoi>.container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0
}

/* Pasos numerados de los bloques de servicio */
.journey-step-number {
  font: 500 40px/1 "Marcellus", serif;
  color: #899f82;
  margin-bottom: 12px
}

/* 2. CONTENEDORES DE COMPONENTES (páginas) */
.jtw-inner, .jtw-about {
  font-family: "Instrument Sans", Arial, sans-serif;
  color: #414b5a;
  margin: 0 0 55px
}

.jtw-inner *, .jtw-about * {
  box-sizing: border-box
}

:is(.jtw-inner, .jtw-about)>*+* {
  margin-top: 28px
}

:is(.jtw-inner, .jtw-about) h2 {
  font: 500 clamp(29px, 3.8vw, 44px)/1.2 "Marcellus", serif !important;
  color: #482916 !important;
  margin: 0 0 18px !important;
  letter-spacing: normal !important
}

:is(.jtw-inner, .jtw-about) h3 {
  font: 500 clamp(21px, 2.3vw, 25px)/1.35 "Marcellus", serif;
  color: #482916;
  margin: 0 0 12px
}

:is(.jtw-inner, .jtw-about) p {
  line-height: 1.8
}

:is(.jtw-inner, .jtw-about) .jtw-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #627b60;
  font-weight: 700;
  margin-bottom: 13px
}

/* 3. BLOQUES CON FONDO */
:is(.jtw-inner, .jtw-about) .jtw-hero {
  border-radius: 24px;
  padding: clamp(26px, 5vw, 58px);
  background: linear-gradient(125deg, #f4f7f2, #fae6d8 165%)
}

.jtw-about .jtw-block {
  background: #f6f8f4;
  border-radius: 24px;
  padding: clamp(26px, 5vw, 55px);
  margin: 25px 0
}

.jtw-about>.jtw-block:nth-of-type(2n) {
  background: #fae6d8
}

.jtw-about .jtw-block.alt {
  background: #fae6d8
}

.jtw-about .jtw-block.light {
  background: #f6f8f4
}

.jtw-about .jtw-block>p {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75
}

.jtw-about .jtw-block>p:last-child {
  margin-bottom: 0
}

.jtw-about .jtw-block ul {
  margin: 10px 0 0;
  padding-left: 20px
}

.jtw-about .jtw-block li {
  line-height: 1.8;
  margin-bottom: 6px;
  font-size: clamp(15px, 1.1vw, 17px)
}

.jtw-about .jtw-image-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin: 0 0 30px;
  padding: clamp(24px, 4vw, 45px);
  background: linear-gradient(120deg, #f3f7f2, #fae6d8);
  border-radius: 26px
}

.jtw-about .jtw-image-feature p {
  line-height: 1.8
}

.jtw-about .jtw-image-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 34px rgba(72, 41, 22, .10)
}

.jtw-about .jtw-image-feature.portrait img {
  aspect-ratio: 4/5;
  object-position: center 20%;
  max-height: 520px
}

.jtw-about .text-section {
  margin-top: 36px;
  margin-bottom: 36px
}

.jtw-about .text-section p {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.8
}

/* 4. GRILLAS Y TARJETAS */
:is(.jtw-inner, .jtw-about) .jtw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 42px
}

.jtw-about .jtw-block .jtw-grid {
  margin: 24px 0 0
}

:is(.jtw-inner, .jtw-about) .jtw-card {
  background: #fff;
  border: 1px solid #e0e6dc;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 26px rgba(72, 41, 22, .045);
  transition: transform .25s ease, box-shadow .25s ease
}

:is(.jtw-inner, .jtw-about) .jtw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 32px rgba(72, 41, 22, .09)
}

:is(.jtw-inner, .jtw-about) :is(.jtw-n, .jtw-step) {
  display: block;
  font: 29px "Marcellus", serif;
  color: #738d6f;
  margin-bottom: 14px
}

/* 5. PREGUNTAS FRECUENTES (acordeón) */
:is(.jtw-inner, .jtw-about) .jtw-faq {
  padding: clamp(22px, 4vw, 44px);
  border-radius: 22px;
  background: #f6f8f4
}

:is(.jtw-inner, .jtw-about) details {
  border-bottom: 1px solid #dbe2d8;
  padding: 16px 2px
}

:is(.jtw-inner, .jtw-about) summary {
  cursor: pointer;
  font-weight: 650;
  color: #482916;
  line-height: 1.5
}

:is(.jtw-inner, .jtw-about) details p {
  margin: 12px 0 0
}

/* 6. LLAMADO A LA ACCIÓN (fondo café): texto siempre claro */
:is(.jtw-inner, .jtw-about) .jtw-cta {
  background: #482916;
  color: #fff;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 45px);
  margin-top: 40px
}

:is(.jtw-inner, .jtw-about) .jtw-cta :is(h1, h2, h3, h4, p, li, span:not([class])) {
  color: #fff !important
}

:is(.jtw-inner, .jtw-about) .jtw-cta p {
  margin: 0 0 22px !important;
  font-size: clamp(16px, 1.15vw, 18px)
}

:is(.jtw-inner, .jtw-about) :is(.jtw-btn, .jtw-link, .jtw-button) {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  background: #fae6d8;
  color: #482916 !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s
}

:is(.jtw-inner, .jtw-about) :is(.jtw-btn, .jtw-link, .jtw-button):hover {
  background: #fff
}

/* 7. TEXTOS ESPECIALES */
.jtw-about .jtw-signature {
  font: 500 22px/1.4 "Marcellus", serif;
  color: #482916;
  margin-top: 20px
}

.jtw-about .jtw-list {
  columns: 2;
  column-gap: 40px;
  margin: 10px 0 0;
  padding-left: 20px
}

.jtw-about .jtw-list li {
  line-height: 1.9;
  break-inside: avoid
}

.jtw-about .jtw-note {
  font-size: 15px
}

/* 8. BLOG (.jtw-blog) */
.jtw-blog {
  font-family: "Instrument Sans", Arial, sans-serif;
  color: #414b5a;
  max-width: 1120px;
  margin: 0 auto 55px
}

.jtw-blog * {
  box-sizing: border-box
}

.jtw-blog .jtw-article-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 62px);
  background: linear-gradient(120deg, #f4f7f1, #fae6d8);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 48px);
  margin: 0 0 42px
}

.jtw-blog .jtw-article-hero img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(72, 41, 22, .12);
  display: block;
  height: auto
}

.jtw-blog .jtw-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: #657f60;
  text-transform: uppercase;
  margin: 0 0 14px
}

.jtw-blog h2 {
  font-family: "Marcellus", serif;
  font-weight: 500;
  color: #482916;
  font-size: clamp(30px, 3.65vw, 43px);
  line-height: 1.2;
  margin: 0 0 20px
}

.jtw-blog h3, .jtw-blog h4 {
  font-family: "Marcellus", serif;
  font-weight: 500;
  color: #482916;
  line-height: 1.3
}

.jtw-blog h3 {
  font-size: clamp(23px, 2.65vw, 30px);
  margin: 0 0 14px
}

.jtw-blog h4 {
  font-size: clamp(21px, 2.2vw, 26px);
  margin: 0 0 14px
}

.jtw-blog p, .jtw-blog li {
  line-height: 1.85
}

.jtw-blog p {
  margin-bottom: 16px
}

.jtw-blog .jtw-intro {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75
}

.jtw-blog .jtw-article-content {
  max-width: 940px;
  margin: 0 auto
}

.jtw-blog .jtw-article-content>.row, .jtw-blog .jtw-article-content>.col-md-12, .jtw-blog .jtw-article-content>section {
  border: 1px solid #e2e8de;
  background: #fff;
  border-radius: 20px;
  padding: clamp(22px, 3vw, 37px);
  margin: 0 0 23px;
  box-shadow: 0 10px 24px rgba(72, 41, 22, .045);
  display: block
}

.jtw-blog .jtw-article-content>.row>.col-md-12 {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0
}

.jtw-blog .jtw-article-content>.row .row {
  margin: 18px 0;
  padding: 0;
  display: block
}

.jtw-blog .jtw-article-content ol {
  list-style: none;
  counter-reset: jtw-steps;
  margin: 0;
  padding: 0
}

.jtw-blog .jtw-article-content ol>li {
  counter-increment: jtw-steps;
  position: relative;
  padding: 22px 26px 22px 82px;
  margin: 0 0 20px;
  border: 1px solid #e1e8de;
  background: #fff;
  border-radius: 20px;
  min-height: 84px
}

.jtw-blog .jtw-article-content ol>li:before {
  content: counter(jtw-steps, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 22px;
  font: 29px "Marcellus", serif;
  color: #718d6b
}

.jtw-blog .jtw-article-content ul {
  padding-left: 23px;
  margin: 16px 0
}

.jtw-blog .jtw-article-content ul li {
  padding-left: 6px;
  margin-bottom: 10px
}

.jtw-blog .jtw-article-content ul li::marker {
  color: #899f82
}

.jtw-blog .jtw-quote {
  margin: 38px auto;
  padding: 30px 36px;
  background: #f4f6ee;
  border-left: 5px solid #899f82;
  border-radius: 0 18px 18px 0;
  max-width: 940px;
  font-family: "Marcellus", serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  color: #482916
}

.jtw-blog .jtw-article-faq {
  background: #f5f7f2;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  margin: 42px auto 28px;
  max-width: 940px
}

.jtw-blog .jtw-article-faq details {
  border-bottom: 1px solid #dbe1d6;
  padding: 17px 2px
}

.jtw-blog .jtw-article-faq summary {
  font-weight: 700;
  color: #482916;
  cursor: pointer;
  line-height: 1.55
}

.jtw-blog .jtw-article-faq details p {
  margin: 14px 0 0
}

.jtw-blog .jtw-article-cta {
  background: #482916;
  color: #fff;
  border-radius: 24px;
  padding: clamp(27px, 4vw, 48px);
  margin: 32px auto 0;
  max-width: 940px
}

.jtw-blog .jtw-article-cta :is(h2, h3, p, li, span:not([class])) {
  color: #fff !important
}

.jtw-blog .jtw-article-cta p {
  margin: 0 0 22px
}

.jtw-blog .jtw-action {
  display: inline-block;
  border-radius: 30px;
  background: #fae6d8;
  color: #482916 !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 13px 26px
}

.jtw-blog .jtw-action:hover {
  background: #fff
}

/* 10. AJUSTES DE PLANTILLA (tema) */
/* Enlaces rápidos del pie: el tema usa space-between para 10 enlaces; con menos quedan muy separados */
footer .journey-quick-links {
  justify-content: flex-start !important;
  gap: 4px;
  height: auto !important
}

/* 11. RESPONSIVE Y ACCESIBILIDAD */
@media(max-width:780px) {
  :is(.jtw-inner, .jtw-about) .jtw-grid {
    grid-template-columns: 1fr !important
  }

  .jtw-about .jtw-image-feature {
    grid-template-columns: 1fr
  }

  .jtw-about .jtw-image-feature img {
    aspect-ratio: 16/10
  }

  .jtw-about .jtw-image-feature.portrait img {
    aspect-ratio: 4/5
  }

  .jtw-about .jtw-list {
    columns: 1
  }

  .jtw-about .jtw-block {
    padding: 24px
  }

  #content section>.container div.bg-color-op-1 {
    padding: 24px !important
  }

  .jtw-blog .jtw-article-hero {
    grid-template-columns: 1fr
  }

  .jtw-blog .jtw-article-hero img {
    aspect-ratio: 16/10;
    order: -1
  }

  .jtw-blog .jtw-article-content ol>li {
    padding-left: 68px
  }

  .jtw-blog .jtw-article-content ol>li:before {
    left: 15px
  }
}

@media(max-width:767px) {

  /* Formulario de contacto: el relleno anidado (caja + form + fila + columna) dejaba los campos angostos */
  .journey-contact-form {
    padding: 24px 18px !important
  }

  .journey-contact-form .row.quform-elements {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important
  }

  .journey-contact-form .contactForm__field {
    padding-left: 0 !important;
    padding-right: 0 !important
  }
}

@media(prefers-reduced-motion:reduce) {
  :is(.jtw-inner, .jtw-about) .jtw-card {
    transition: none
  }

  :is(.jtw-inner, .jtw-about) .jtw-card:hover {
    transform: none
  }

  .jtw-blog * {
    scroll-behavior: auto !important
  }
}