/* diseno.css — Diseño PrestaShop page. Needs site.css + mantenimiento.css + servicios.css.
   The headline piece is .cw-flow: a vertical, alternating process timeline with a
   gradient spine (orange → coral → gold → green) and gradient icon nodes. */

/* ---- Hero CTA helper (reuse mantenimiento hero) ---- */
.cw-dp-hero .cw-mhero__sub{ max-width:40ch; }

/* ---- Story intro ---- */
.cw-dp-lead{ max-width:60ch; }

/* ---- Real store screenshot in the story figure ---- */
.cw-photo--shot .cw-shot{ width:100%; height:auto; display:block; border-radius:var(--radius-lg);
  border:1px solid var(--border); box-shadow:var(--shadow-md); }

/* ==========================================================================
   STAR SECTION — process flow / timeline
   ========================================================================== */
.cw-flow-sec{ position:relative; overflow:hidden; }
.cw-flow-sec__glow{ position:absolute; left:50%; top:8%; width:min(680px,90%); height:520px;
  transform:translateX(-50%); pointer-events:none; z-index:0;
  background:radial-gradient(50% 50% at 50% 30%, color-mix(in srgb,var(--orange-200) 38%,transparent), transparent 72%),
             radial-gradient(40% 40% at 70% 60%, color-mix(in srgb,var(--brand-mint) 40%,transparent), transparent 70%);
  filter:blur(34px); }

.cw-flow{ position:relative; max-width:1000px; margin:0 auto; z-index:1; }
/* the spine */
.cw-flow::before{ content:""; position:absolute; top:12px; bottom:12px; left:50%; width:3px;
  transform:translateX(-50%); border-radius:3px;
  background:linear-gradient(var(--brand-orange) 0%, var(--brand-coral) 42%, var(--brand-gold) 68%, var(--brand-green) 100%); }

.cw-flow__step{ position:relative; display:grid; grid-template-columns:1fr 80px 1fr;
  align-items:center; margin-bottom:1.5rem; }
.cw-flow__step:last-child{ margin-bottom:0; }

/* node = gradient circle with icon, white ring masks the spine behind it */
.cw-flow__node{ grid-column:2; justify-self:center; z-index:2; position:relative;
  width:66px; height:66px; border-radius:50%; color:#fff; display:grid; place-items:center;
  background:linear-gradient(140deg, var(--brand-orange), var(--coral-500));
  box-shadow:0 10px 22px rgba(240,129,6,.30), 0 0 0 6px var(--white); }
.cw-flow__node svg{ width:27px; height:27px; }

/* card */
.cw-flow__card{ position:relative; background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:1.35rem 1.5rem; box-shadow:var(--shadow-sm);
  transition:transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
.cw-flow__card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--orange-200); }

.cw-flow__num{ display:inline-block; font-size:.74rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--brand-orange); margin-bottom:.35rem; }
.cw-flow__card h3{ font-size:1.16rem; line-height:1.25; margin:0 0 .45rem; }
.cw-flow__card p{ margin:0; font-size:.95rem; line-height:1.55; }

/* alternation: odd → left of spine, even → right of spine */
.cw-flow__step:nth-child(odd) .cw-flow__card{ grid-column:1; margin-right:1.4rem; text-align:right; }
.cw-flow__step:nth-child(even) .cw-flow__card{ grid-column:3; margin-left:1.4rem; text-align:left; }

/* connector stub from card to spine */
.cw-flow__card::after{ content:""; position:absolute; top:50%; width:1.4rem; height:2px;
  background:var(--border-strong); transform:translateY(-50%); }
.cw-flow__step:nth-child(odd) .cw-flow__card::after{ right:-1.4rem; }
.cw-flow__step:nth-child(even) .cw-flow__card::after{ left:-1.4rem; }

/* end marker */
.cw-flow__end{ position:relative; z-index:2; display:flex; justify-content:center; margin-top:1.5rem; }
.cw-flow__end span{ display:inline-flex; align-items:center; gap:.5rem; padding:.6rem 1.3rem;
  background:var(--brand-green); color:#fff; border-radius:var(--radius-pill);
  font-weight:700; font-size:.95rem; box-shadow:0 8px 18px rgba(31,138,91,.28), 0 0 0 6px var(--white); }
.cw-flow__end svg{ width:18px; height:18px; }

/* ---- Capabilities tweak: tighter icon cards ---- */
.cw-dp-covers .cw-service p{ font-size:.92rem; }

/* ---- Responsive ---- */
@media (max-width:760px){
  .cw-flow{ max-width:520px; }
  .cw-flow::before{ left:33px; }
  .cw-flow__step{ grid-template-columns:66px 1fr; align-items:center; margin-bottom:1.1rem; }
  .cw-flow__node{ grid-column:1; justify-self:center; width:58px; height:58px; }
  .cw-flow__node svg{ width:23px; height:23px; }
  .cw-flow__step:nth-child(odd) .cw-flow__card,
  .cw-flow__step:nth-child(even) .cw-flow__card{ grid-column:2; margin:0 0 0 1.1rem; text-align:left; }
  .cw-flow__card::after{ display:none; }
  .cw-flow__end{ justify-content:flex-start; padding-left:5px; }
}
