/* Método MEDIPIE — versión 3B aprobada: bloques editoriales compactos */
.method-journey{overflow:visible}

.method-experience.method-blocks-ready,
.method-experience--page.method-blocks-ready{
  display:block;
}

.method-experience.method-blocks-ready > .method-visual,
.method-experience.method-blocks-ready > .method-steps,
.method-experience--page.method-blocks-ready > .method-visual,
.method-experience--page.method-blocks-ready > .method-steps{
  display:none!important;
}

.method-blocks{
  display:grid;
  gap:18px;
  max-width:1120px;
  margin:0 auto;
}

.method-block{
  display:grid;
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);
  align-items:center;
  gap:clamp(20px,2.6vw,34px);
  min-height:280px;
  padding:16px;
  border:1px solid rgba(21,28,144,.11);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,35,95,.08);
}

.method-block:nth-child(even){
  grid-template-columns:minmax(0,1.28fr) minmax(280px,.72fr);
}

.method-block:nth-child(even) .method-block__media{order:2}
.method-block:nth-child(even) .method-block__body{order:1}

.method-block__media{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  height:248px;
  overflow:hidden;
  border-radius:14px;
  background:linear-gradient(145deg,#eaf2f6,#dfe9ee);
}

.method-block__media picture,
.method-block__media img{
  width:100%;
  height:100%;
}

.method-block__media img{
  display:block;
  object-fit:contain;
  object-position:center;
}

.method-block__number{
  position:absolute;
  left:12px;
  bottom:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 12px;
  border:2px solid #fff;
  border-radius:999px;
  background:#09165e;
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  box-shadow:0 7px 18px rgba(9,22,94,.24);
}

.method-block__body{
  padding:clamp(4px,1.5vw,16px);
  max-width:590px;
}

.method-block:nth-child(even) .method-block__body{
  justify-self:end;
}

.method-block__eyebrow{
  display:block;
  margin-bottom:7px;
  color:#177ea5;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.method-block__body h3{
  margin:0 0 10px;
  color:var(--navy);
  font-size:clamp(1.35rem,2.1vw,1.85rem);
  line-height:1.12;
}

.method-block__body p{
  margin:0;
  color:var(--muted);
  font-size:clamp(.96rem,1.08vw,1.05rem);
  line-height:1.62;
}

.method-block__rule{
  width:42px;
  height:3px;
  margin:15px 0 0;
  border-radius:999px;
  background:#29b9df;
}

.visit-cta__phone a{
  display:inline-block;
  color:#fff;
  font-size:clamp(1.55rem,2.7vw,2.15rem);
  line-height:1.05;
  font-weight:900;
  letter-spacing:.01em;
}

@media(max-width:980px) and (min-width:821px){
  .method-block,
  .method-block:nth-child(even){
    grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);
    min-height:250px;
    gap:22px;
  }

  .method-block__media{height:218px}
}

@media(max-width:820px){
  .method-blocks{
    gap:14px;
    max-width:620px;
  }

  .method-block,
  .method-block:nth-child(even){
    grid-template-columns:42% minmax(0,58%);
    gap:0;
    min-height:190px;
    padding:0;
    overflow:hidden;
    border-radius:16px;
  }

  .method-block:nth-child(even) .method-block__media,
  .method-block:nth-child(even) .method-block__body{
    order:initial;
  }

  .method-block__media{
    height:100%;
    min-height:190px;
    border-radius:0;
  }

  .method-block__number{
    left:9px;
    bottom:9px;
    min-width:36px;
    height:36px;
    padding:0 9px;
    font-size:.72rem;
  }

  .method-block__body,
  .method-block:nth-child(even) .method-block__body{
    align-self:center;
    justify-self:stretch;
    padding:16px 15px;
  }

  .method-block__eyebrow{
    margin-bottom:5px;
    font-size:.66rem;
  }

  .method-block__body h3{
    margin-bottom:7px;
    font-size:clamp(1.08rem,4.8vw,1.35rem);
  }

  .method-block__body p{
    font-size:.9rem;
    line-height:1.52;
  }

  .method-block__rule{
    width:32px;
    margin-top:11px;
  }
}

@media(max-width:520px){
  .method-block,
  .method-block:nth-child(even){
    grid-template-columns:1fr;
    min-height:0;
  }

  .method-block__media{
    min-height:0;
    height:auto;
    aspect-ratio:16 / 9;
  }

  .method-block__body,
  .method-block:nth-child(even) .method-block__body{
    padding:16px 17px 18px;
  }

  .method-block__body h3{
    font-size:1.26rem;
  }
}

@media(prefers-reduced-motion:reduce){
  .method-block{scroll-behavior:auto!important}
}
