/* =========================================================
   Evolf · Página de Servicios
   Depende de los tokens de css/evolf-casos.css (.cx-page).
   ========================================================= */
.sv-page { --sv-top: 89px; }                          /* altura de la cabecera del sitio */

/* ---------- Hero: tres tarjetas de entrada ---------- */
.sv-h1 { max-width: none; font-size: clamp(42px, 6vw, 88px); }
.hero h1.sv-h1 span { display: inline; }
.sv-pick { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sv-pick-card {
  position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 24px 24px 22px;
  text-decoration: none; color: #fff; border: 1px solid var(--cx-hair-d); background: rgba(255,255,255,.03);
  transition: border-color .4s, background .4s, transform .5s var(--cx-ease);
}
.sv-pick-card:hover { border-color: rgba(0,202,207,.6); background: rgba(0,202,207,.06); transform: translateY(-3px); }
.sv-pick-num { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--cx-cyan); }
.sv-pick-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sv-pick-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.sv-pick-prom { font-size: 15px; line-height: 1.5; color: var(--cx-muted-d); }
.sv-pick-cta { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--cx-cyan); }

/* ---------- Selector fijo ---------- */
.sv-switch { position: sticky; top: var(--sv-top); z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cx-hair-l); }
.sv-switch-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.sv-switch a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 18px 18px 0;
  font-size: 14px; font-weight: 700; color: rgba(19,41,93,.5); text-decoration: none; transition: color .3s;
}
.sv-switch a + a { padding-left: 18px; border-left: 1px solid var(--cx-hair-l); }
.sv-switch-num { font-size: 11px; letter-spacing: .1em; color: var(--cx-purple); opacity: .6; }
.sv-switch a.is-on { color: var(--cx-navy); }
.sv-switch a.is-on .sv-switch-num { opacity: 1; }
.sv-switch-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.sv-switch a + a .sv-switch-bar { left: 18px; }
.sv-switch-bar > i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--cx-purple), var(--cx-cyan)); transition: width .15s linear; }

/* ---------- Sección de servicio ---------- */
.sv-svc { scroll-margin-top: calc(var(--sv-top) + 56px); }
.sv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.sv-aside { align-self: stretch; }
.sv-sticky { position: sticky; top: calc(var(--sv-top) + 88px); display: grid; gap: 18px; justify-items: start; }
.sv-num { font-size: clamp(64px, 8vw, 120px); font-weight: 700; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(91,25,196,.35); }
.sv-dark .sv-num { -webkit-text-stroke-color: rgba(0,202,207,.45); }
.sv-title { margin: 0; }
.sv-prom { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1.25; color: var(--cx-purple); }
.sv-dark .sv-prom { color: var(--cx-cyan); }
.sv-intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cx-muted-l); }
.sv-dark .sv-intro { color: var(--cx-muted-d); }
.sv-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-points li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.45; color: var(--cx-navy); font-weight: 600; }
.sv-dark .sv-points li { color: #fff; }
.sv-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 2px solid var(--cx-cyan); border-bottom: 2px solid var(--cx-cyan); transform: rotate(-45deg); }
.sv-ideal { margin: 4px 0; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--cx-navy); background: #fff; border-left: 3px solid var(--cx-purple); }
.band-white .sv-ideal { background: var(--cx-paper); }
.sv-dark .sv-ideal { color: #fff; background: rgba(255,255,255,.05); border-left-color: var(--cx-cyan); }
.sv-main { display: grid; gap: 40px; min-width: 0; }
.sv-vis-cap { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-muted-l); margin-bottom: 16px; }
.sv-dark .sv-vis-cap { color: rgba(255,255,255,.6); }

/* ---------- Fases (raíl ligado al scroll) ---------- */
.sv-phases { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; display: grid; gap: 22px; --p: 0; }
.sv-rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--cx-hair-l); }
.sv-dark .sv-rail { background: var(--cx-hair-d); }
.sv-rail > i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--cx-purple), var(--cx-cyan)); box-shadow: 0 0 12px rgba(0,202,207,.5); }
.sv-rail > i::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #E6FEFF; box-shadow: 0 0 0 4px rgba(0,202,207,.25), 0 0 18px var(--cx-cyan); opacity: calc(var(--p) * 40); }
.sv-ph { position: relative; }
.sv-ph-dot {
  position: absolute; left: -64px; top: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--cx-muted-l); background: #fff; border: 1.5px solid var(--cx-hair-l); border-radius: 50%;
  transition: color .4s, background .4s, border-color .4s, box-shadow .5s, transform .5s var(--cx-ease);
}
.band-paper .sv-ph-dot { background: var(--cx-paper); }
.sv-dark .sv-ph-dot { color: rgba(255,255,255,.5); background: var(--cx-navy-900); border-color: var(--cx-hair-d); }
.sv-ph-card {
  padding: 20px 24px 22px; background: #fff; border: 1px solid var(--cx-hair-l);
  opacity: .45; filter: saturate(.3); transform: translateX(10px);
  transition: opacity .5s var(--cx-ease), filter .5s, transform .6s var(--cx-ease), border-color .4s, box-shadow .5s;
}
.band-white .sv-ph-card { background: var(--cx-paper); }
.sv-dark .sv-ph-card { background: rgba(255,255,255,.035); border-color: var(--cx-hair-d); }
.sv-ph-when { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-purple); }
.sv-dark .sv-ph-when { color: var(--cx-cyan); }
.sv-ph-card h3 { margin: 6px 0 8px; font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--cx-navy); }
.sv-dark .sv-ph-card h3 { color: #fff; }
.sv-ph-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--cx-muted-l); }
.sv-dark .sv-ph-card p { color: var(--cx-muted-d); }
/* fase alcanzada */
.sv-ph.is-on .sv-ph-card { opacity: 1; filter: none; transform: none; }
.sv-ph.is-on .sv-ph-dot { color: #fff; background: var(--cx-purple); border-color: var(--cx-purple); }
.sv-dark .sv-ph.is-on .sv-ph-dot { color: var(--cx-navy-900); background: var(--cx-cyan); border-color: var(--cx-cyan); }
/* fase actual */
.sv-ph.is-now .sv-ph-card { border-color: rgba(91,25,196,.45); box-shadow: 0 18px 40px -24px rgba(91,25,196,.45); }
.sv-dark .sv-ph.is-now .sv-ph-card { border-color: rgba(0,202,207,.55); box-shadow: 0 18px 40px -24px rgba(0,202,207,.5); }
.sv-ph.is-now .sv-ph-dot { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(91,25,196,.14); }
.sv-dark .sv-ph.is-now .sv-ph-dot { box-shadow: 0 0 0 6px rgba(0,202,207,.18), 0 0 20px rgba(0,202,207,.5); }
.sv-ph-opt .sv-ph-card { border-style: dashed; }
.sv-ph-opt .sv-ph-dot { border-style: dashed; font-size: 18px; }

/* ---------- Bundles: calendario de 6 semanas ---------- */
.sv-gantt { position: relative; margin: 0; padding: 22px 24px 26px; background: #fff; border: 1px solid var(--cx-hair-l); --g: 0; }
.sv-gantt-weeks, .sv-gantt-rows, .sv-gantt-marks { display: grid; grid-template-columns: repeat(7, 1fr); }
.sv-gantt-weeks span { font-size: 11px; font-weight: 700; color: var(--cx-muted-l); padding-bottom: 8px; border-bottom: 1px solid var(--cx-hair-l); }
.sv-gantt-weeks span + span { padding-left: 8px; border-left: 1px dashed var(--cx-hair-l); }
.sv-gantt-plus { color: var(--cx-purple) !important; }
.sv-gantt-rows { row-gap: 8px; padding: 14px 0 6px; }
.sv-bar {
  grid-column: calc(var(--s) + 1) / span var(--w); height: 30px; display: flex; align-items: center; padding: 0 12px; overflow: hidden;
  font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, var(--cx-navy), #2A4A92);
  clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--cx-ease); transition-delay: calc(var(--s) * 140ms);
}
.sv-bar-mvp { background: linear-gradient(90deg, var(--cx-purple), #7A3CE0); }
.sv-bar-fit { background: linear-gradient(90deg, #0C9EA3, var(--cx-cyan)); color: var(--cx-navy-900); }
.sv-bar-boost { background: repeating-linear-gradient(135deg, rgba(91,25,196,.12) 0 6px, rgba(91,25,196,.04) 6px 12px); color: var(--cx-purple); border: 1px dashed var(--cx-purple); }
.sv-gantt.is-in .sv-bar { clip-path: inset(0 0 0 0); }
.sv-gantt-marks { position: relative; height: 34px; }
.sv-mark { grid-column: var(--s) / span 2; position: relative; padding: 10px 0 0 10px; font-size: 12px; color: var(--cx-muted-l); opacity: 0; transition: opacity .6s ease 1.1s; }
.sv-mark::before { content: ""; position: absolute; left: 0; top: -160px; bottom: 0; border-left: 2px solid var(--cx-purple); }
.sv-mark-2::before { border-color: var(--cx-cyan); }
.sv-mark b { color: var(--cx-navy); }
.sv-gantt.is-in .sv-mark { opacity: 1; }

/* ---------- Bundles por área ---------- */
.sv-sub { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: var(--cx-navy); }
.sv-bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv-bundle { position: relative; padding: 20px; background: #fff; border: 1px solid var(--cx-hair-l); transition: border-color .3s, transform .4s var(--cx-ease); }
.sv-bundle:hover { border-color: var(--cx-purple); transform: translateY(-3px); }
.sv-bundle-cloud { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-purple); }
.sv-bundle h4 { margin: 8px 0; font-size: 19px; color: var(--cx-navy); }
.sv-bundle p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cx-muted-l); }
.sv-includes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.sv-includes span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-muted-l); margin-right: 6px; }
.sv-includes b { font-size: 13px; font-weight: 600; color: var(--cx-navy); padding: 7px 11px; background: #fff; border: 1px solid var(--cx-hair-l); }

/* ---------- Health check: escáner ---------- */
.sv-scan { position: relative; margin: 0; padding: 22px 24px; overflow: hidden; background: rgba(255,255,255,.03); border: 1px solid var(--cx-hair-d); }
.sv-scan-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sv-scan-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--cx-hair-d); font-size: 15px; color: rgba(255,255,255,.85); }
.sv-scan-list li:last-child { border-bottom: 0; }
.sv-st { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid currentColor; opacity: 0; filter: blur(4px); transform: translateX(8px); transition: opacity .5s ease, filter .5s ease, transform .5s var(--cx-ease); transition-delay: calc(var(--d) * 260ms + 300ms); }
.sv-st-ok { color: #3FE0A1; }
.sv-st-mejora { color: #FFC857; }
.sv-st-riesgo { color: #FF6B81; }
.sv-scan.is-in .sv-st { opacity: 1; filter: none; transform: none; }
.sv-scan-beam { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0,202,207,.18) 70%, rgba(0,202,207,.7) 98%, transparent); }
.sv-scan.is-in .sv-scan-beam { animation: sv-beam 2.4s var(--cx-ease) .2s 1 both; }
@keyframes sv-beam { 0% { opacity: 1; transform: translateY(-60px); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--scan-h, 360px)); } }

/* ---------- Comparativa ---------- */
.sv-table { border-top: 1px solid var(--cx-hair-l); }
.sv-tr { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); border-bottom: 1px solid var(--cx-hair-l); }
.sv-tr > span { padding: 16px 18px; font-size: 15px; line-height: 1.45; color: var(--cx-navy); }
.sv-tr > span:first-child { padding-left: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-muted-l); }
.sv-tr > span + span { border-left: 1px solid var(--cx-hair-l); }
.sv-th > span { font-size: 17px; font-weight: 700; }
.sv-th b { color: var(--cx-purple); font-size: 12px; letter-spacing: .1em; margin-right: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-sticky { position: static; }
  .sv-pick { grid-template-columns: 1fr; }
  .sv-bundle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sv-switch-in { grid-template-columns: repeat(3, auto); overflow-x: auto; }
  .sv-switch a { padding-right: 14px; white-space: nowrap; font-size: 13px; }
  .sv-phases { padding-left: 52px; }
  .sv-ph-dot { left: -52px; width: 36px; height: 36px; }
  .sv-rail { left: 17px; }
  .sv-gantt-weeks span { font-size: 10px; }
  .sv-bar span { font-size: 10px; }
  .sv-tr { grid-template-columns: 1fr; }
  .sv-tr > span + span { border-left: 0; padding-left: 0; }
  .sv-th { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-ph-card, .sv-bar, .sv-st, .sv-mark { transition: none !important; }
  .sv-scan-beam { display: none; }
}
