/* ===========================================================
   PULSO 365 — estilos específicos (hermana del Home)
   =========================================================== */

/* Hero — usa mismo pattern, solo ajustes de contenido */
.p365-hero h1 { max-width: 22ch; }

/* Lede after problem section */
.p365-lede {
  max-width: 820px; margin: 0 auto;
  font-size: 18px; color: var(--text); line-height: 1.75;
  text-align: center; text-wrap: pretty;
}

/* ---------- 4 DIMENSIONS ---------- */
.dims {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.dim {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dim:hover { border-color: var(--c-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dim-head { display: flex; flex-direction: column; gap: 4px; }
.dim-head .ico-line { margin-bottom: 8px; }
.dim-label {
  font-family: var(--sans); font-weight: 700;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-blue);
}
.dim h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; color: var(--c-navy);
  margin: 0; letter-spacing: -.01em;
}
.dim-q {
  font-family: var(--display); font-weight: 400;
  font-size: 17px; color: var(--c-navy);
  font-style: italic; margin: 2px 0 0;
}
.dim > p {
  font-size: 15.5px; color: var(--muted); line-height: 1.65;
  margin: 0;
}
.dim > p em { color: var(--c-orange); font-weight: 600; font-style: italic; }
.dim-measure {
  background: rgba(39,97,159,.05);
  border-left: 3px solid var(--c-blue);
  padding: 14px 18px; border-radius: 0 var(--r-tag) var(--r-tag) 0;
  font-size: 14.5px; color: var(--text); line-height: 1.55;
}
.dim-measure strong { color: var(--c-navy); font-weight: 800; }

/* ---------- PROTOCOL ---------- */
.protocol {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px; align-items: stretch;
}
.proto-step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 28px 24px;
  transition: all .2s ease;
  display: flex; flex-direction: column;
}
.proto-step:hover { border-color: var(--c-blue); box-shadow: var(--shadow-md); }
.proto-num {
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--c-blue);
  margin-bottom: 12px; letter-spacing: -.02em;
}
.proto-step h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; color: var(--c-navy); margin: 0 0 10px; line-height: 1.2;
}
.proto-step p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.proto-step p strong { color: var(--c-navy); font-weight: 700; }
.proto-arrow {
  display: flex; align-items: center; justify-content: center;
  list-style: none;
}

/* ---------- TIMELINE (caso narrado) ---------- */
.timeline {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column;
  position: relative;
}
/* Spine (vertical line) — positioned between time column and body */
.timeline::before {
  content: ''; position: absolute;
  left: 150px; top: 24px; bottom: 24px;
  width: 2px; background: var(--line);
}
.tl-item {
  display: grid; grid-template-columns: 130px 40px 1fr;
  align-items: start;
  gap: 0;
  padding: 14px 0;
  position: relative;
}
.tl-time {
  grid-column: 1;
  text-align: right; padding-right: 20px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  line-height: 1.45; padding-top: 14px;
}
.tl-time strong {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 16px; color: var(--c-navy); letter-spacing: -.01em;
  margin-top: 2px;
}
/* Dot — its own grid column, centered on the spine */
.tl-item::before {
  content: ''; grid-column: 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--c-blue);
  justify-self: center; margin-top: 18px;
  z-index: 1; box-shadow: 0 0 0 4px var(--white);
}
.tl-body {
  grid-column: 3;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 16px 20px;
  margin-left: 12px;
}
.tl-body p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.6; }
.tl-body p strong { color: var(--c-navy); font-weight: 700; }
.tl-body p em { color: var(--c-orange); font-style: italic; }

.tl-escalate .tl-body {
  background: rgba(210,123,76,.06);
  border-color: rgba(210,123,76,.3);
}
.tl-escalate::before { border-color: var(--c-orange) !important; }

.tl-resolved .tl-body {
  background: rgba(143,190,149,.1);
  border-color: rgba(143,190,149,.4);
}
.tl-resolved::before { border-color: var(--c-green) !important; }

.tl-closer {
  text-align: center; margin: 48px auto 0;
  max-width: 640px;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2vw, 22px); color: var(--c-navy);
  line-height: 1.45; text-wrap: balance;
}
.tl-closer strong { font-style: normal; font-weight: 700; color: var(--c-blue); }

/* ---------- STACK TECNOLÓGICO ---------- */
.stack {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.stack-layer {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px;
  position: relative;
  transition: all .2s ease;
}
.stack-layer:hover { border-color: var(--c-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stack-num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--c-blue); letter-spacing: .08em;
  background: rgba(39,97,159,.08);
  padding: 3px 9px; border-radius: 999px;
}
.stack-layer h4 {
  font-family: var(--display); font-weight: 700;
  font-size: 18px; color: var(--c-navy); margin: 0 0 10px;
  padding-right: 50px; line-height: 1.25;
}
.stack-layer p {
  font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .dims { grid-template-columns: 1fr; }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .protocol {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .proto-arrow { transform: rotate(90deg); padding: 4px 0; }
}
@media (max-width: 720px) {
  .stack { grid-template-columns: 1fr; }
  .p365-lede { font-size: 16.5px; }
  .dim { padding: 26px 22px; }
  .dim h3 { font-size: 24px; }

  /* Timeline: collapse — time inline, dot left-aligned, body below */
  .timeline::before { left: 8px; }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 28px;
  }
  .tl-item::before {
    position: absolute;
    left: 1px; top: 18px;
    margin-top: 0;
  }
  .tl-time {
    text-align: left;
    padding: 0; padding-top: 2px;
    font-size: 12.5px;
  }
  .tl-time br { display: none; }
  .tl-time strong { display: inline-block; font-size: 14px; margin: 0 0 0 6px; }
  .tl-body { margin-left: 0; }
}
