/* Página general de Servicios: escena de la portada, etiquetas de cada servicio y objetivos. Clases con prefijo svx-. */

/* ── Portada: los cinco servicios unidos por una línea y una mini pantalla que muestra cada uno ── */
.svx-in { position: relative; z-index: 2; display: grid; gap: clamp(22px, 2.4vw, 34px); width: min(100%, 520px); }
.svx-chain { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.svx-chain::before, .svx-line { content: ''; position: absolute; left: 10%; right: 10%; top: 24px; height: 2px; border-radius: 2px; }
.svx-chain::before { background: rgba(255, 255, 255, .16); }
.svx-line { background: var(--lime); transform-origin: left center; }
.svx-node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; line-height: 1.15; text-align: center; color: #f2f5f8; }
.svx-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--lime); color: var(--on-lime); transition: background-color .3s ease, color .3s ease, scale .35s var(--ease-out), box-shadow .3s ease; }
.svx-ico svg { width: 22px; height: 22px; }
.svx-lb { transition: color .3s ease; }
/* Con animación: los servicios esperan apagados y se encienden a medida que llega la línea. */
.svx.is-live .svx-ico { background: #34465f; color: #b8c3d1; }
.svx.is-live .svx-lb { color: #9fabbb; }
.svx.is-live .is-done .svx-ico { background: var(--lime); color: var(--on-lime); }
.svx.is-live .is-on .svx-ico { background: #ffffff; color: var(--navy); scale: 1.14; box-shadow: 0 0 0 6px rgba(200, 212, 0, .38); }
.svx.is-live .is-done .svx-lb, .svx.is-live .is-on .svx-lb { color: #ffffff; }

.svx-card { padding: 0; overflow: hidden; border-radius: 20px; font-size: 1rem; box-shadow: 0 26px 64px rgba(0, 0, 0, .3); }
.svx-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; background: #eef1ee; color: #4f5c70; font-size: .875rem; }
.svx-name { font-weight: 600; color: #1d2a3d; }
.svx-ex { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #ffffff; box-shadow: inset 0 0 0 1px #d9ded9; font-size: .75rem; font-weight: 600; }
.svx-panels { display: grid; padding: 16px; }
.svx-p { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
/* Sin animación queda a la vista el primer servicio. */
.svx-p + .svx-p { visibility: hidden; }

.svx-web { padding: 0 6px 6px; border-radius: 12px; background: #101722; overflow: hidden; }
.svx-web .dv-bar { height: 28px; }
.svx-web .dv-dots b { width: 7px; }
.svx-web .dv-url { width: 52%; font-size: .6875rem; }
.svx-web img { width: 100%; aspect-ratio: 16 / 7.6; object-fit: cover; object-position: top; border-radius: 4px; }
.svx-ok { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: .9375rem; font-weight: 600; color: #1d2a3d; }
.svx-ok svg { width: 18px; height: 18px; color: #178a45; }

.svx-q { min-height: 44px; margin-bottom: 2px; font-weight: 500; }
.svx-q svg { color: var(--ui-soft); }
.svx-p .rank-row + .rank-row { margin-top: 0; }
.svx-p .rank-row svg { width: 18px; height: 18px; }

.svx-ad { display: grid; justify-items: start; gap: 2px; padding: 14px 16px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #e3e7e3; }
.svx-ad-tag { font-size: .8125rem; font-weight: 600; }
.svx-ad small { font-size: .8125rem; color: #4f5c70; }
.svx-ad b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.svx-ad .ad-btn { margin-top: 8px; }
.svx-ad .ad-btn svg { width: 16px; height: 16px; }
.svx-note { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #f0f3f1; font-size: .9375rem; color: #4f5c70; line-height: 1.25; }
.svx-note b { display: block; color: #1d2a3d; font-weight: 600; }

.svx-step { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #f0f3f1; font-weight: 500; }
.svx-step svg { width: 19px; height: 19px; }
.svx-step .ok { margin-left: auto; color: #178a45; }

.svx-shield { display: flex; align-items: center; gap: 10px; padding: 2px 2px 4px; font-size: 1.25rem; }
.svx-shield svg { width: 26px; height: 26px; color: #178a45; }
.svx-shield b { font-weight: 600; letter-spacing: -0.015em; }
.svx-stat { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 12px; background: #f0f3f1; }
.svx-stat span { color: #4f5c70; }
.svx-stat b { font-weight: 600; }

/* El objeto queda en la esquina, por encima de la cadena: la escena baja lo justo para no taparla. */
.svx-3d { width: clamp(84px, 7.4vw, 116px); right: clamp(8px, 1.2vw, 18px); top: clamp(8px, 1.2vw, 18px); }
.svx-in { margin-top: 60px; }

/* ── Mosaicos de servicios: lo que incluye cada uno, en etiquetas pequeñas ── */
.svx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; padding: 0; list-style: none; }
.svx-tags li { padding: 5px 12px; border-radius: 999px; background: rgba(29, 42, 61, .1); font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.t-white .svx-tags li { background: var(--surface); color: var(--soft); }
.t-navy .svx-tags li { background: rgba(255, 255, 255, .12); color: #dbe2ea; }

/* ── Lo que incluyen todos: tres beneficios ── */
.svx-band .gains { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Objetivos: cuatro metas, cada una con sus servicios clave ── */
#objetivos .sec-p { text-wrap: balance; }
.svx-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.svx-goal { display: flex; flex-direction: column; padding: clamp(20px, 2vw, 30px); border-radius: var(--tile-r); background: rgba(255, 255, 255, .07); color: #f2f5f8; transition: background-color .3s ease, translate .35s var(--ease-out), box-shadow .3s ease; }
.svx-goal-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--on-lime); transition: background-color .3s ease, color .3s ease; }
.svx-goal-ico svg { width: 23px; height: 23px; }
.svx-goal h3 { margin-top: 16px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); font-weight: 600; letter-spacing: -0.026em; line-height: 1.1; }
.svx-meter { display: grid; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #ffffff; color: #1d2a3d; font-size: .875rem; font-weight: 600; }
.svx-meter-t { display: flex; align-items: center; gap: 6px; }
.svx-meter-t svg { width: 16px; height: 16px; color: #178a45; }
.svx-meter-bar { height: 8px; border-radius: 8px; background: #e6eae6; overflow: hidden; }
.svx-meter-bar span { display: block; width: var(--w); height: 100%; border-radius: 8px; background: #7c8a00; transform-origin: left center; }
.svx-goal-k { margin-top: 18px; font-size: .875rem; color: #b8c3d1; }
.svx-goal-list { display: grid; margin-top: 6px; padding: 0; list-style: none; }
.svx-goal-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-weight: 500; line-height: 1.25; transition: color .15s ease; }
.svx-goal-list svg { flex: none; color: var(--lime); transition: translate .18s var(--ease-out); }
.svx-goal-list a:hover { color: #dfe65a; }
.svx-goal-list a:hover svg { translate: 2px -2px; }
.svx-goal-list a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.svx-goal.is-on { background: rgba(255, 255, 255, .13); translate: 0 -6px; box-shadow: inset 0 0 0 2px var(--lime); }
.svx-goal.is-on .svx-goal-ico { background: #ffffff; color: var(--navy); }

@media (max-width: 1023px) {
  .svx-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .svx-band .gains, .svx-goals { grid-template-columns: minmax(0, 1fr); }
  .svx-in { gap: 18px; margin-top: 0; }
  .svx-chain::before, .svx-line { top: 20px; }
  .svx-ico { width: 42px; height: 42px; }
  .svx-ico svg { width: 19px; height: 19px; }
  .svx-lb { display: none; }
  .svx-panels { padding: 12px; }
  .svx-3d { width: 64px; top: auto; right: 8px; bottom: 6px; }
}
