/* ═══════════════════════════════════════════════════════════
   CREA — WEB · mockups de la sección Servicios  (v3 · real)
   Logos reales de plataformas · trabajo real (Aura) · video real.
   Estado base = visible. La clase .play (web-mockups.js) reproduce
   la animación de entrada al ver / cambiar de tab.
═══════════════════════════════════════════════════════════ */

/* ───────── primitivas de logo ───────── */
.lgtile { background: #fff; border-radius: 13px; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.05); }
.lgtile img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.lgdot { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 5px 13px rgba(0,0,0,0.4); flex-shrink: 0; overflow: hidden; padding: 6px; box-sizing: border-box; }
.lgdot img { width: 100%; height: 100%; object-fit: contain; }
.lgdot--mads { padding: 3px; }

/* ═════════ PAID MEDIA · dashboard ═════════ */
.mk-ads { padding: clamp(14px,3.5vw,18px); display: flex; flex-direction: column; gap: 15px; }
.mk-ads__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-ads__hd-t { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.mk-ads__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #3FE39A; font-weight: 600; white-space: nowrap; }
.mk-ads__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3FE39A; animation: pulse 1.5s ease-in-out infinite; }

/* inversión → ventas */
.mk-roi { display: grid; grid-template-columns: 1fr auto 1.25fr; align-items: stretch; gap: 9px; }
.mk-roi__cell { border-radius: 14px; padding: 13px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); position: relative; min-width: 0; display: flex; flex-direction: column; }
.mk-roi__lab { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.mk-roi__val { display: block; margin-top: 8px; font-family: var(--f-display); text-transform: uppercase; font-weight: 600; font-size: clamp(17px,4.4vw,24px); line-height: 0.95; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-roi__out { background: linear-gradient(140deg, rgba(46,204,128,0.18), rgba(46,204,128,0.03)); border-color: rgba(46,204,128,0.38); }
.mk-roi__out .mk-roi__val { color: #3FE39A; }
.mk-roi__roas { align-self: flex-start; margin-top: 9px; font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.02em; color: #06281a; background: #3FE39A; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.mk-roi__arrow { display: grid; place-items: center; color: rgba(255,255,255,0.4); }
.mk-roi__arrow svg { width: 22px; height: 22px; }
.mk-ads.play .mk-roi__arrow svg { animation: flowArrow 1.6s var(--ease-io) infinite; }
@keyframes flowArrow { 0%,100% { transform: translateX(-2px); opacity: .5; } 50% { transform: translateX(2px); opacity: 1; } }

/* gráfico de resultados */
.mk-chart { position: relative; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); padding: 14px 15px 11px; }
.mk-chart svg { display: block; width: 100%; height: 78px; overflow: visible; }
.mk-chart__area { fill: url(#adsFill); opacity: 0; }
.mk-chart__line { fill: none; stroke: #4D7FE8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(77,127,232,0.5)); stroke-dasharray: 460; stroke-dashoffset: 460; }
.mk-chart__dot { fill: #fff; stroke: #4D7FE8; stroke-width: 2.5; opacity: 0; }
.mk-ads.play .mk-chart__line { animation: lineDraw 1.5s var(--ease-io) .2s forwards; }
.mk-ads.play .mk-chart__area { animation: fadeIn .9s ease .9s forwards; }
.mk-ads.play .mk-chart__dot { animation: dotPop .4s var(--spring) 1.5s forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes dotPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.mk-chart__tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.42); }
.mk-chart__tag b { color: #3FE39A; font-weight: 700; white-space: nowrap; }

/* rendimiento por plataforma (logos reales) */
.mk-perf { display: flex; flex-direction: column; gap: 11px; }
.mk-perf__row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; }
.mk-perf__mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-perf__name { font-size: 11.5px; color: rgba(255,255,255,0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-perf__bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mk-perf__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width 1.1s var(--spring) .35s; }
.mk-ads.play .mk-perf__bar i { width: var(--w); }
.mk-perf__val { font-family: var(--f-display); text-transform: uppercase; font-size: 15px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.mk-ads.play .mk-perf__row { opacity: 0; transform: translateY(8px); animation: fadeUp .45s var(--spring) forwards; }
.mk-ads.play .mk-perf__row:nth-child(1){animation-delay:.3s}.mk-ads.play .mk-perf__row:nth-child(2){animation-delay:.42s}
.mk-ads.play .mk-perf__row:nth-child(3){animation-delay:.54s}.mk-ads.play .mk-perf__row:nth-child(4){animation-delay:.66s}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ═════════ cartel · logos que manejamos ═════════ */
.srv-logos { margin-top: 24px; border-radius: 18px; padding: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.srv-logos__lab { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.srv-logos__row { display: flex; flex-wrap: wrap; gap: 14px; }
.srv-logos__item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 62px; }
.srv-logos__item .lgtile { width: 60px; height: 60px; padding: 12px; }
.srv-logos__item .lgtile--mads { padding: 6px; }
.srv-logos__item span { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.02em; color: rgba(255,255,255,0.5); text-align: center; line-height: 1.3; }

/* ═════════ cartel · tienda ═════════ */
.srv-store { margin-top: 24px; }
.srv-store__lab { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.srv-store__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.srv-store__card { border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 78px; box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.srv-store__card--tn { background: #fff; }
.srv-store__card--tn .ic { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; }
.srv-store__card--tn .wd { height: 19px; }
.srv-store__card--ml { background: #FFE600; padding: 12px; }
.srv-store__card--ml img { height: 58px; max-width: 100%; object-fit: contain; }

/* ═════════ BRANDING · trabajo real (Aura) ═════════ */
.mk-brand { padding: 14px; }
.mk-bw { display: flex; flex-direction: column; gap: 11px; }
.mk-bw__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mk-bw__hd b { font-family: var(--f-display); text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: #fff; }
.mk-bw__hd span { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.mk-bw__hero { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 18px 36px rgba(0,0,0,0.4); }
.mk-bw__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-bw__row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.mk-bw__row figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1.35; box-shadow: 0 12px 26px rgba(0,0,0,0.35); }
.mk-bw__row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-brand.play .mk-bw__hero, .mk-brand.play .mk-bw__row figure { opacity: 0; transform: translateY(14px) scale(.96); animation: bwIn .6s var(--spring) forwards; }
.mk-brand.play .mk-bw__hero { animation-delay: .15s; }
.mk-brand.play .mk-bw__row figure:nth-child(1) { animation-delay: .35s; }
.mk-brand.play .mk-bw__row figure:nth-child(2) { animation-delay: .47s; }
@keyframes bwIn { to { opacity: 1; transform: none; } }
.mk-bw__pal { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.mk-bw__sw { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); flex-shrink: 0; }
.mk-bw__deliv { margin-left: auto; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.5); text-align: right; line-height: 1.5; }
.mk-brand.play .mk-bw__sw { opacity: 0; transform: scale(.4); animation: swIn .4s var(--spring) forwards; }
.mk-brand.play .mk-bw__sw:nth-child(1){animation-delay:.6s}.mk-brand.play .mk-bw__sw:nth-child(2){animation-delay:.68s}
.mk-brand.play .mk-bw__sw:nth-child(3){animation-delay:.76s}.mk-brand.play .mk-bw__sw:nth-child(4){animation-delay:.84s}
@keyframes swIn { to { opacity: 1; transform: none; } }

/* ═════════ PRODUCCIÓN · video real ═════════ */
.mk-prod { padding: 0; }
.mk-prodvid { position: relative; aspect-ratio: 16/10; background: #000; overflow: hidden; }
.mk-prodvid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-prodvid__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 28%, transparent 62%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
.mk-prodvid__rec { position: absolute; top: 13px; left: 14px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; font-weight: 600; }
.mk-prodvid__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.mk-prodvid__tc { position: absolute; top: 13px; right: 14px; font-family: var(--f-mono); font-size: 10px; color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; background: rgba(0,0,0,0.35); padding: 3px 8px; border-radius: 6px; }
.mk-prodvid__cap { position: absolute; left: 14px; bottom: 13px; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.mk-prodvid__cap b { display: block; font-family: var(--f-display); font-size: 14px; letter-spacing: 0.02em; font-weight: 600; margin-top: 3px; }
.mk-prodpipe { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 18px clamp(14px,3vw,20px) 20px; }
.mk-prodpipe::before { content: ""; position: absolute; top: calc(18px + 23px); left: 12.5%; right: 12.5%; height: 2px; background: rgba(255,255,255,0.1); }
.mk-prodpipe__fill { position: absolute; top: calc(18px + 23px); left: 12.5%; width: 0; height: 2px; background: linear-gradient(90deg, var(--navy-light), #3FE39A); max-width: 75%; }
.mk-prod.play .mk-prodpipe__fill { animation: pipeFill 2s var(--ease-io) .3s forwards; }
@keyframes pipeFill { to { width: 75%; } }
.mk-pstage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mk-pstage__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #15151f; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.4); transition: color .35s, border-color .35s, background .35s, transform .35s var(--spring), box-shadow .35s; }
.mk-pstage__ic svg { width: 21px; height: 21px; }
.mk-pstage__t { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.45); transition: color .35s; }
.mk-prod.play .mk-pstage.lit .mk-pstage__ic { background: var(--navy); border-color: var(--navy-light); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(27,47,110,0.55); }
.mk-prod.play .mk-pstage.lit .mk-pstage__t { color: #fff; }

/* ═════════ WEB · storefront con producto real ═════════ */
.mk-web { padding: clamp(14px,3.5vw,18px); }
.mk-web-frame { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.mk-web-url { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #ececf0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.mk-web-url .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,0.18); }
.mk-web-url .bar { margin-left: 8px; flex: 1; font-family: var(--f-mono); font-size: 9.5px; color: #6a6a72; background: #fff; border-radius: 100px; padding: 4px 12px; display: flex; align-items: center; gap: 6px; }
.mk-web-url .bar::before { content: ""; width: 8px; height: 8px; border-radius: 2px 2px 0 0; border: 1.4px solid #9a9aa2; border-bottom: none; box-shadow: 0 3px 0 -1px #9a9aa2; }
.mk-web-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: var(--navy); }
.mk-web-logo { height: 17px; display: flex; align-items: center; }
.mk-web-logo img { height: 100%; width: auto; display: block; filter: brightness(0) invert(1); opacity: .96; }
.mk-web-nav { display: flex; gap: 14px; margin-left: 6px; }
.mk-web-nav i { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-style: normal; }
.mk-web-cart { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #fff; position: relative; }
.mk-web-cart svg { width: 19px; height: 19px; }
.mk-web-cart__n { font-family: var(--f-mono); font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 100px; background: var(--red); color: #fff; display: grid; place-items: center; }
.mk-web.play .mk-web-head { animation: webBuild .55s var(--spring) backwards; }
.mk-web.play .mk-web-logo { animation: webBuild2 .5s var(--spring) .15s backwards; }
@keyframes webBuild { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes webBuild2 { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.mk-web-hero { position: relative; padding: 18px 16px 20px; background: linear-gradient(135deg, #1B2F6E, #2a4690); color: #fff; }
.mk-web-hero .t { font-family: var(--f-display); text-transform: uppercase; font-weight: 600; font-size: 19px; line-height: 1.05; letter-spacing: 0.01em; }
.mk-web-hero .s { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.mk-web-hero .btn { margin-top: 12px; display: inline-block; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 8px 16px; border-radius: 100px; }
.mk-web.play .mk-web-hero > * { opacity: 0; transform: translateY(8px); animation: fadeUp .45s var(--spring) forwards; }
.mk-web.play .mk-web-hero > *:nth-child(1){animation-delay:.3s}.mk-web.play .mk-web-hero > *:nth-child(2){animation-delay:.4s}.mk-web.play .mk-web-hero > *:nth-child(3){animation-delay:.5s}
.mk-web-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; padding: 14px; background: #f4f4f6; }
.mk-pcard { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.mk-pcard__img { aspect-ratio: 1/1; border-radius: 7px; overflow: hidden; background: #eee; }
.mk-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mk-pcard__pr { font-family: var(--f-display); text-transform: uppercase; font-size: 12px; font-weight: 600; color: #1B2F6E; letter-spacing: 0.01em; }
.mk-pcard__add { width: 20px; height: 20px; border-radius: 6px; background: #1B2F6E; color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.mk-web.play .mk-pcard { opacity: 0; transform: translateY(12px) scale(.9); animation: pcardIn .5s var(--spring) forwards; }
.mk-web.play .mk-pcard:nth-child(1){animation-delay:.7s}.mk-web.play .mk-pcard:nth-child(2){animation-delay:.82s}.mk-web.play .mk-pcard:nth-child(3){animation-delay:.94s}
.mk-web.play .mk-pcard:nth-child(4){animation-delay:1.06s}.mk-web.play .mk-pcard:nth-child(5){animation-delay:1.18s}.mk-web.play .mk-pcard:nth-child(6){animation-delay:1.3s}
@keyframes pcardIn { to { opacity: 1; transform: none; } }
.mk-web-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; background: #fff; border-top: 1px solid rgba(0,0,0,0.06); }
.mk-web-foot span { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.04em; color: #8a8a92; text-transform: uppercase; }
.mk-web-foot img { height: 13px; }

/* ───────── responsive ───────── */
@media (max-width: 560px) {
  .mk-roi { grid-template-columns: 1fr; }
  .mk-roi__arrow { transform: rotate(90deg); padding: 2px 0; }
  .srv-store__row { grid-template-columns: 1fr; }
  .srv-logos__item { width: 56px; }
  .srv-logos__item .lgtile { width: 54px; height: 54px; }
  .mk-web-grid { grid-template-columns: repeat(2,1fr); }
}

/* ───────── reduce motion ───────── */
@media (prefers-reduced-motion: reduce) {
  .mk-ads.play *, .mk-brand.play *, .mk-prod.play *, .mk-web.play * { animation-duration: .001s !important; animation-delay: 0s !important; }
  .mk-chart__line { stroke-dashoffset: 0 !important; }
  .mk-chart__area, .mk-chart__dot { opacity: 1 !important; }
  .mk-ads.play .mk-perf__bar i { transition: none; }
}
