/* =========================================================
   SECCIÓN · Nuestros servicios (#servicios)
   Marca blanca + 2 tarjetas (boletos, comercios) + Data management
   (dashboard en vivo y agentes de IA, #data).
   ========================================================= */

/* --- Marca blanca (bloque destacado) --- */
.feature {
  display: grid; gap: 32px; margin-bottom: 24px; padding: clamp(24px, 4vw, 48px);
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 24px;
  transition: opacity .8s ease, transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.feature-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.feature-top > * { min-width: 0; }
.feature-top p { color: var(--ink-soft); }
.feature h3, .svc h3 { font-size: var(--step-2); font-weight: 800; font-stretch: 106%; letter-spacing: -.01em; }
.tag { display: block; margin-bottom: 10px; font-family: var(--f-display); font-weight: 600; font-stretch: 105%; font-size: 1.05rem; color: var(--orange-deep); }

.wl-figure { margin: 0; display: grid; gap: 10px; }
.wl-cap { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--f-display); font-weight: 700; font-stretch: 106%; font-size: 1.05rem; }
.wl-cap span:last-child { color: var(--orange-deep); }
/* En celular la ilustración se desliza de lado en vez de encogerse */
.wl-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-light); }
.wl-scroll img { width: 100%; min-width: 640px; height: auto; }

.wl-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wl-points > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.wl-points h4 { font-size: 1.1rem; font-weight: 700; font-stretch: 105%; line-height: 1.2; }
.wl-points p { color: var(--ink-soft); font-size: .98rem; }
.wl-points .ico { width: 36px; height: 36px; }
.wl-points > div:hover .ico { transform: rotate(-6deg) scale(1.1); }

/* --- Tarjetas de servicio --- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.svc {
  min-width: 0; display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 24px;
  transition: opacity .8s ease, transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.svc p { color: var(--ink-soft); }
.svc .more { margin-top: 4px; }
.svc:not(.js-reveal):hover, .svc.in:hover {
  transform: translateY(-6px); border-color: rgba(252, 102, 37, .55);
  box-shadow: 0 26px 50px -30px rgba(217, 78, 18, .55);
}
.svc:hover .ticks li::before { background: var(--orange); }

.formula { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; color: var(--ink); }
.formula em { font-style: normal; color: var(--orange-deep); }

/* --- Data management: dashboard en vivo + agentes de IA --- */
.data-feature {
  margin-top: 24px; padding: clamp(24px, 4vw, 48px); border-radius: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--night); color: var(--paper);
}
.data-feature > * { min-width: 0; }
.data-copy { display: grid; gap: 16px; }
.data-copy h3 { font-size: var(--step-2); font-weight: 800; font-stretch: 106%; letter-spacing: -.01em; }
.data-copy > p { color: var(--on-dark); }
.data-copy .tag { color: var(--orange); margin-bottom: 0; }
.data-points { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-dark); }
.data-points li { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line-dark); }
.data-points b { font-family: var(--f-display); font-weight: 700; font-stretch: 106%; }
.data-points span { color: var(--on-dark); font-size: .97rem; }
.data-copy .more { border-color: var(--line-dark); }
.data-copy .more > summary { color: var(--orange); }
.data-copy .more > summary:hover { color: var(--paper); }
.data-copy .ticks { color: var(--on-dark); }
.data-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.data-groups > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.data-groups .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.data-groups .ticks { font-size: .95rem; gap: 8px; }
.data-copy .formula { color: var(--paper); }
.data-copy .formula em { color: var(--orange); }

/* Maqueta del dashboard */
.dash {
  display: grid; gap: 14px; padding: 18px; border-radius: 18px;
  background: var(--night-2); border: 1px solid var(--line-dark);
  font-family: var(--f-mono); font-size: .72rem; color: var(--steel);
}
.dash-top { display: flex; align-items: center; gap: 14px; letter-spacing: .08em; }
.dash-top .ex { margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.kpis { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.kpis div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); min-width: 0; }
.kpis b { font-family: var(--f-display); font-stretch: 104%; font-size: clamp(.95rem, .75rem + .6vw, 1.2rem); color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { display: grid; gap: 8px; }
.bars span { position: relative; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.bars span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--orange-deep), var(--orange)); border-radius: 6px; }
.bars i { position: relative; padding-left: 10px; line-height: 24px; font-style: normal; color: var(--paper); }
.chat { display: grid; gap: 8px; font-family: var(--f-body); font-size: .9rem; }
.chat p { padding: 10px 14px; border-radius: 14px; max-width: 92%; }
.chat .q { justify-self: end; background: var(--orange); color: var(--night); border-bottom-right-radius: 4px; font-weight: 500; }
.chat .a { background: rgba(255, 255, 255, .07); color: var(--on-dark-strong); border-bottom-left-radius: 4px; }
.chat .a b { color: var(--paper); }

@media (max-width: 960px) {
  .feature-top, .wl-points, .svc-grid, .data-feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .data-groups { grid-template-columns: 1fr; }
  .wl-cap { display: none; }
}
