/* =========================================================
   Evolf · Home — sección de servicios (.hs-)
   ========================================================= */
.hs { --hs-navy-900: var(--navy-900, #0A1433); --hs-navy: var(--navy, #13295D); --hs-purple: var(--purple, #5B19C4); --hs-cyan: var(--cyan, #00CACF);
  --hs-hair: var(--hair-light, rgba(19,41,93,.16)); --hs-muted: var(--muted-light, rgba(19,41,93,.78)); --hs-ease: cubic-bezier(.2,.7,0,1); }
.hs-h2 { font-size: clamp(36px, 4.2vw, 60px) !important; }
.hs-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.hs-intro { margin: 0; max-width: 50ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--hs-muted); }
.hs-intro b { color: var(--hs-navy); }

.hs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hs-item { display: flex; }
.hs-card { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--hs-hair); color: var(--hs-purple);
  text-decoration: none; transition: transform .5s var(--hs-ease), box-shadow .5s var(--hs-ease), border-color .4s; }
.hs-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(19,41,93,.55); border-color: rgba(91,25,196,.4); }
.hs-q { font-size: 15px; font-weight: 600; font-style: italic; color: var(--hs-purple); margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--hs-hair); }
.hs-top { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-muted); }
.hs-top b { color: var(--hs-purple); letter-spacing: 0; font-size: 13px; }
.hs-name { font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--hs-navy); }
.hs-prom { font-size: 16px; line-height: 1.45; color: var(--hs-muted); min-height: 2.9em; }

/* Raíl de fases: se dibuja al entrar en pantalla */
.hs-rail { list-style: none; margin: 14px 0 26px; padding: 0 0 0 22px; position: relative; display: grid; gap: 12px; align-content: start; }
.hs-rail::before, .hs-rail::after { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--hs-hair); }
.hs-rail::after { background: linear-gradient(var(--hs-purple), var(--hs-cyan)); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--hs-ease) .2s; }
.hs-rail li { position: relative; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--hs-navy); opacity: .35; transition: opacity .5s ease calc(.25s + var(--k) * .22s); }
.hs-rail li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--hs-hair);
  transition: background .4s ease calc(.25s + var(--k) * .22s), border-color .4s ease calc(.25s + var(--k) * .22s); z-index: 1; }
.hs-rail li span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-purple); margin-bottom: 1px; }
.hs-on .hs-rail::after { transform: scaleY(1); }
.hs-on .hs-rail li { opacity: 1; }
.hs-on .hs-rail li::before { background: var(--hs-purple); border-color: var(--hs-purple); }

/* Bundles: escala de semanas */
.hs-weeks { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 10px; padding-bottom: 22px; }
.hs-weeks i { position: relative; height: 8px; border-radius: 1px; background: rgba(255,255,255,.12); overflow: hidden; }
.hs-weeks i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hs-purple), #8A4DF0); transform: scaleX(0); transform-origin: left;
  transition: transform .35s linear calc(.2s + (var(--w) - 1) * .2s); }
.hs-weeks i.is-key::after { background: var(--hs-cyan); }
.hs-weeks em { position: absolute; left: 0; top: 12px; font-style: normal; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.45); white-space: nowrap; }
.hs-weeks i.is-key em { color: var(--hs-cyan); }
.hs-weeks i { overflow: visible; }
.hs-on .hs-weeks i::after { transform: scaleX(1); }
.hs-weeks { margin-top: 14px; }
.hs-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-areas small { font-size: 12px; font-weight: 600; padding: 5px 9px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); }

.hs-go { margin-top: auto; margin-bottom: 0; padding-top: 16px; border-top: 1px solid var(--hs-hair); font-size: 15px; font-weight: 700; color: var(--hs-purple); }
.hs-go span { display: inline-block; transition: transform .35s var(--hs-ease); }
.hs-card:hover .hs-go span { transform: translateX(5px); }

/* Tarjeta destacada (bundles) */
.hs-card--dark { background: var(--hs-navy-900); border-color: var(--hs-navy-900); color: var(--hs-cyan);
  background-image: radial-gradient(rgba(0,202,207,.18) 1px, transparent 1.4px); background-size: 20px 20px; background-position: 0 0; }
.hs-card--dark:hover { border-color: var(--hs-cyan); box-shadow: 0 30px 60px -30px rgba(10,20,51,.8); }
.hs-card--dark .hs-q { color: var(--hs-cyan); border-color: rgba(255,255,255,.14); }
.hs-card--dark .hs-top { color: rgba(255,255,255,.6); }
.hs-card--dark .hs-top b { color: var(--hs-cyan); }
.hs-card--dark .hs-name { color: #fff; }
.hs-card--dark .hs-prom { color: rgba(255,255,255,.82); }
.hs-card--dark .hs-rail::before { background: rgba(255,255,255,.16); }
.hs-card--dark .hs-rail li { color: #fff; }
.hs-card--dark .hs-rail li span { color: var(--hs-cyan); }
.hs-card--dark .hs-rail li::before { background: var(--hs-navy-900); border-color: rgba(255,255,255,.3); }
.hs-on .hs-card--dark .hs-rail li::before { background: var(--hs-cyan); border-color: var(--hs-cyan); }
.hs-card--dark .hs-go { color: #fff; border-color: rgba(255,255,255,.14); }

.hs-foot { margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 16px; color: var(--hs-muted); }
.hs-foot b { color: var(--hs-navy); }
.hs-link { font-weight: 700; color: var(--hs-purple); text-decoration: none; border-bottom: 1px solid rgba(91,25,196,.35); padding-bottom: 2px; }
.hs-link:hover { border-color: var(--hs-purple); }

@media (max-width: 1080px) {
  .hs-grid { grid-template-columns: 1fr; max-width: 640px; }
  .hs-head { grid-template-columns: 1fr; gap: 20px; }
  .hs-prom { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-rail::after, .hs-rail li, .hs-rail li::before, .hs-weeks i::after, .hs-weeks-lbl b { transition: none; }
}
.hs-weeks i:nth-child(2) em, .hs-weeks i:nth-child(3) em, .hs-weeks i:nth-child(5) em { display: none; }
.hs-weeks i:nth-child(6) em { left: auto; right: 0; }
