/* ReconoSERte — página Terapia de Pareja: ciclo del conflicto */

.illus {
  display: block; border-radius: 24px; object-fit: cover;
  box-shadow: 0 24px 60px rgba(54, 64, 58, 0.18); border: 1px solid var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .illus-float { animation: illusFloat 10s ease-in-out infinite alternate; }
}
@keyframes illusFloat { from { transform: translateY(-5px) rotate(-0.3deg); } to { transform: translateY(7px) rotate(0.3deg); } }

/* ---------- Banda visual: el camino juntos ---------- */
.journey { padding: 0 0 88px; }
.journey-fig { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.journey-fig img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.journey-fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 40px 28px;
  background: linear-gradient(to top, rgba(45, 58, 50, 0.55), transparent);
  display: flex; justify-content: center;
}
.journey-quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: #fff; text-align: center; text-wrap: balance; max-width: 720px;
  text-shadow: 0 2px 12px rgba(45, 58, 50, 0.4);
}
@media (max-width: 700px) {
  .journey-fig img { aspect-ratio: 16 / 10; }
  .journey-fig figcaption { padding: 44px 20px 20px; }
}

/* ---------- Encabezado de sección con ilustración ---------- */
.media-head {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px;
  align-items: center; margin-bottom: 48px;
}
.media-head .media-ill {
  width: 100%; max-height: 300px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
  justify-self: end;
}
.media-head-flip { grid-template-columns: 0.85fr 1.15fr; }
.media-head-flip .section-head { order: 2; }
.media-head-flip .media-ill { order: 1; justify-self: start; }
@media (max-width: 920px) {
  .media-head, .media-head-flip { grid-template-columns: 1fr; gap: 28px; }
  .media-head-flip .section-head { order: 1; }
  .media-head-flip .media-ill { order: 2; }
  .media-head .media-ill { justify-self: stretch; max-height: 260px; }
}

/* ---------- El ciclo que se repite ---------- */
.cycle { background: var(--bg-soft); }
.cycle-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative; counter-reset: cyc;
}
.cycle-step {
  background: var(--card); border: 1px solid var(--line);
  padding: 28px 24px 26px; position: relative;
}
.cycle-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.cycle-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.cycle-step + .cycle-step { border-left: none; }
.cycle-step .cyc-num {
  counter-increment: cyc;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-soft); border: 1.5px solid var(--line);
}
.cycle-step .cyc-num::before { content: counter(cyc); }
.cycle-step h3 { font-size: 1.02rem; margin-bottom: 7px; }
.cycle-step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.cycle-step .cyc-arrow {
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--card);
  display: grid; place-items: center; z-index: 2;
}
.cycle-step .cyc-arrow svg { width: 13px; height: 13px; }
.cycle-step:last-child .cyc-arrow { display: none; }

.cycle-break {
  margin-top: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px;
  align-items: center; background: color-mix(in oklab, var(--lav) 30%, white);
  border: 1.5px dashed var(--lav-deep); border-radius: var(--radius); padding: 24px 28px;
}
.cycle-break .cb-ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--lav-deep); color: #fff;
  display: grid; place-items: center;
}
.cycle-break .cb-ico svg { width: 24px; height: 24px; }
.cycle-break h3 { font-size: 1.12rem; margin-bottom: 4px; }
.cycle-break p { font-size: 0.93rem; color: var(--ink-soft); max-width: 600px; }

@media (max-width: 920px) {
  .cycle-grid { grid-template-columns: 1fr; }
  .cycle-step { border-radius: 0 !important; border-left: 1px solid var(--line); }
  .cycle-step + .cycle-step { border-top: none; }
  .cycle-step:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .cycle-step:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .cycle-step .cyc-arrow { right: auto; left: 28px; top: auto; bottom: -13px; transform: rotate(90deg); }
  .cycle-break { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
