
  /* Boceto D7 · Mezcla — base D1 con las secciones elegidas de D2, D3, D5 y D6:
     portada D1 · servicios D3 (lamas) · videos D6 · MotionWeb D1 + interfaz de D5 · Renders Mejorados D2 ·
     portfolio D6 (más grande) · nosotros D5 · equipo D3 · testimonios, reseñas y contacto D1 · logos de clientes (nuevo) */
  :root { --bg: #060c13; --surface: #0c1621; --ink: #e9eef2; --muted: #8796a2; --line: rgba(255,255,255,.09); --pad: clamp(16px, 4vw, 64px);
          --bp: rgba(53,215,240,.38); --cy: 53,215,240; --glass: rgba(14,26,38,.55); --s0: #4fd1a5; --s1: #f2b45a; --s2: #e8697a; }
  body { background: var(--bg); color: var(--ink); }
  main > section { overflow-x: clip; }
  ::selection { background: var(--mr-cyan); color: var(--bg); }

  /* Nav (D1) */
  .nav { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px var(--pad); transition: transform .6s var(--ease); }
  .nav.is-hidden { transform: translateY(-110%); }
  .nav.is-scrolled { background: linear-gradient(rgba(6,12,19,.92), rgba(6,12,19,0)); }
  .nav-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
  .nav-logo .mr-mark { width: 40px; }
  .nav-logo-txt { display: flex; gap: .45em; letter-spacing: .08em; white-space: nowrap; }   /* MOTION RENDERING con su espacio */
  .nav-links { display: flex; gap: 30px; font-size: 13px; font-weight: 500; color: #cfd8de; }
  .nav-links a:hover { color: var(--mr-cyan); }

  /* ===== HERO (D1): el video se ve dentro del logo y se entra por el cruce ===== */
  .hero { height: 330vh; position: relative; }
  .hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-top, .hero-bottom { position: absolute; left: 0; right: 0; text-align: center; z-index: 2; padding: 0 16px; }
  .hero-top { top: 16vh; font-size: 12px; font-weight: 600; letter-spacing: .6em; color: #9fb0bb; }
  .hero-bottom { bottom: 9vh; }
  .hero-bottom h1 { margin: 0; font-size: clamp(24px, 3.2vw, 50px); font-weight: 200; letter-spacing: -.02em; }
  .hero-bottom h1 b { font-weight: 700; }
  .hero-bottom small { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
  .hero-after { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 var(--pad) 11vh; opacity: 0;
                background: linear-gradient(transparent 30%, rgba(6,12,19,.9)); }
  .hero-after h2 { margin: 0; font-size: clamp(42px, 6.2vw, 112px); font-weight: 200; line-height: .95; letter-spacing: -.04em; max-width: none; }
  .hero-after h2 b { font-weight: 800; color: #fff; display: block; }
  .hero-after p { max-width: 560px; color: #c4cfd6; line-height: 1.6; font-size: 17px; margin: 28px 0 30px; }

  /* Tipografía común */
  .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mr-cyan); display: flex; gap: 12px; align-items: center; }
  .eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--mr-cyan); flex: none; }
  .h2 { font-size: clamp(40px, 6vw, 100px); font-weight: 200; letter-spacing: -.04em; line-height: .95; margin: 22px 0 0; }
  .h2 b { font-weight: 800; display: block; }
  .sub { max-width: 520px; color: #c4cfd6; font-size: 18px; line-height: 1.6; margin: 26px 0 0; }
  .center { display: flex; justify-content: center; margin-top: 6vh; }
  .split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
  .split-head .sub { margin: 0; }
  .tag { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bp); font-variant-numeric: tabular-nums; }

  /* ===== SERVICIOS (D3): acordeón de lamas fijado ===== */
  .svc-intro { padding: 20vh var(--pad) 8vh; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
  .svc-intro p { max-width: 400px; color: var(--muted); line-height: 1.6; margin: 0; }
  .acc-wrap { height: 380vh; position: relative; }
  .acc-sticky { position: sticky; top: 0; height: 100vh; padding: 88px var(--pad) 58px; display: flex; flex-direction: column; }
  .acc { flex: 1; min-height: 0; display: flex; gap: 6px; }
  .col { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 4px; cursor: pointer; background: var(--surface); transition: flex-grow 1.1s var(--ease); }
  .col.on { flex-grow: 7.5; cursor: default; }
  .col::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; z-index: 3; background: var(--mr-cyan); box-shadow: 0 0 18px rgba(53,215,240,.7);
                 transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease); }
  .col.on::before { transform: scaleY(1); }
  .col-media { position: absolute; inset: 0; }
  .col-media img, .col-media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.3); transform: scale(1.1); transition: filter 1s, transform 1.6s var(--ease); }
  .col:hover .col-media > * { filter: grayscale(.5) brightness(.5); }
  .col.on .col-media > * { filter: none; transform: scale(1); }
  .col-shade { position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
               background: linear-gradient(90deg, rgba(6,12,19,.93), rgba(6,12,19,.5) 50%, rgba(6,12,19,.05)), linear-gradient(0deg, rgba(6,12,19,.75), transparent 55%); }
  .col.on .col-shade { opacity: 1; }
  .col-tab { position: absolute; inset: 26px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: opacity .4s; }
  .col-tab em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--mr-cyan); }
  .col-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(17px, 1.6vw, 24px); font-weight: 300; white-space: nowrap; letter-spacing: -.01em; }
  .col.on .col-tab { opacity: 0; pointer-events: none; }
  .col-big { position: absolute; top: 18px; right: 26px; z-index: 2; font-size: clamp(90px, 10vw, 170px); font-weight: 800; line-height: .85; color: transparent; letter-spacing: -.05em;
             -webkit-text-stroke: 1px rgba(53,215,240,.6); opacity: 0; transition: opacity .6s; }
  .col.on .col-big { opacity: 1; transition-delay: .3s; }
  .col-body { position: absolute; z-index: 2; left: clamp(28px, 3.4vw, 56px); bottom: clamp(28px, 6vh, 60px); width: min(640px, 46vw); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .col.on .col-body { opacity: 1; visibility: visible; transition-delay: .3s; }
  .col-body small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mr-cyan); }
  .col-body h3 { font-size: clamp(44px, 5.4vw, 92px); font-weight: 700; margin: 0; letter-spacing: -.035em; line-height: .95; }
  .col-body p { color: #fff; font-size: clamp(19px, 1.65vw, 26px); font-weight: 400; line-height: 1.4; margin: 20px 0 30px; }
  .acc-bar { display: flex; align-items: center; gap: 18px; margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
  .acc-bar #accNum { color: #fff; }
  .acc-bar i { flex: 1; height: 1px; background: var(--line); position: relative; }
  .acc-bar i b { position: absolute; inset: 0; background: var(--mr-cyan); transform-origin: left; transform: scaleX(0); }

  /* ===== VIDEOS (título D1, mosaico D6: las piezas se encienden en orden salteado) ===== */
  .reel { padding: 20vh var(--pad) 0; }
  .bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8vh; }
  .tile { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--surface); margin: 0; border: 1px solid rgba(255,255,255,.1); transition: border-color .6s; }
  .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .tile img { opacity: 0; transform: scale(1.15); transition: opacity .9s, transform 1.6s var(--ease); }
  .tile.lit img { opacity: 1; transform: scale(1); }
  .tile.lit { border-color: transparent; }
  .tile video { opacity: 0; transition: opacity .5s; }
  .tile:hover video { opacity: 1; }
  .tile-n { position: absolute; top: 16px; left: 18px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.35); transition: color .6s; }
  .tile.lit .tile-n { color: #fff; }
  .tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.72)); z-index: 1; opacity: 0; transition: opacity .8s .2s; }
  .tile.lit figcaption { opacity: 1; }

  /* ===== MOTIONWEB (D1): vista previa fija + funciones + lista ===== */
  .mw { padding: 24vh var(--pad) 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: start; }
  .mw-preview { position: sticky; top: 14vh; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(53,215,240,.35); cursor: pointer; }
  .mw-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, transform 1.4s var(--ease); transform: scale(1.06); }
  .mw-preview img.on { opacity: 1; transform: scale(1); }
  .mw-preview .play { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; background: var(--mr-cyan); color: var(--bg);
                      display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .1em; z-index: 1; animation: pulse 2.4s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53,215,240,.5); } 70% { box-shadow: 0 0 0 30px rgba(53,215,240,0); } 100% { box-shadow: 0 0 0 0 rgba(53,215,240,0); } }
  .mw-uses { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 18px 0 0; max-width: 520px; padding-left: 16px; border-left: 2px solid var(--mr-cyan); }
  .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 5vh; }
  .feat { background: var(--bg); padding: 22px; }
  .feat b { display: flex; align-items: center; gap: 10px; font-size: 15px; }
  .feat b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mr-cyan); box-shadow: 0 0 12px var(--mr-cyan); flex: none; }
  .feat p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
  .mw-list { margin-top: 5vh; border-top: 1px solid var(--line); }
  .mw-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding .5s var(--ease), color .3s; }
  .mw-row b { font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; }
  .mw-row span { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; font-weight: 600; }
  .mw-row:hover, .mw-row.on { padding-left: 16px; color: var(--mr-cyan); }
  .mw .btn { margin-top: 5vh; }

  /* ===== RENDERS MEJORADOS (D2): marco de plano y el scroll pasa de "Antes" a "Después" ===== */
  .rm { padding: 24vh var(--pad) 0; }
  .rule { display: flex; align-items: center; gap: 16px; margin-bottom: 9vh; }
  .rule i { flex: 1; height: 9px; position: relative; transform-origin: left; transform: scaleX(0);
            background: linear-gradient(var(--bp), var(--bp)) 0 50% / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--bp) 0 1px, transparent 1px 48px) 0 0 / 100% 9px no-repeat; opacity: .7; }
  .rule .tag:last-child { color: var(--muted); }
  .rm-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; }
  .rm-head .sub { margin: 0; }
  .rm-pin { min-height: 100vh; display: flex; align-items: center; padding: 6vh 0; }
  .rm-stage { width: 100%; display: grid; grid-template-columns: 1.6fr 1fr; gap: 5vw; align-items: center; }
  .rm-stage > * { min-width: 0; }
  .rm-frame { position: relative; width: 100%; max-width: calc(64vh * 16 / 10); }
  .rm-frame .crn { position: absolute; width: 22px; height: 22px; border: 0 solid var(--mr-cyan); }
  .rm-frame .crn:nth-of-type(1) { left: -12px; top: -12px; border-width: 1px 0 0 1px; }
  .rm-frame .crn:nth-of-type(2) { right: -12px; top: -12px; border-width: 1px 1px 0 0; }
  .rm-frame .crn:nth-of-type(3) { left: -12px; top: calc(100% - 82px); border-width: 0 0 1px 1px; }
  .rm-frame .crn:nth-of-type(4) { right: -12px; top: calc(100% - 82px); border-width: 0 1px 1px 0; }
  .rm-frame > .tag { position: absolute; top: -30px; }
  .rm-frame > .tag.l { left: 0; } .rm-frame > .tag.r { right: 0; color: var(--muted); }
  .rm .cmp-stage { aspect-ratio: 16/10; border-radius: 6px; box-shadow: 0 50px 140px -50px rgba(53,215,240,.35); }
  .cmp-ruler { position: relative; height: 12px; margin-top: 10px;
               background: repeating-linear-gradient(90deg, rgba(53,215,240,.5) 0 1px, transparent 1px 2.5%) 0 100% / 100% 6px no-repeat, linear-gradient(rgba(53,215,240,.3), rgba(53,215,240,.3)) 0 100% / 100% 1px no-repeat; }
  .cmp-ruler i { position: absolute; right: 0; bottom: 0; height: 3px; width: calc((1 - var(--x)) * 100%); background: var(--mr-cyan); box-shadow: 0 0 12px var(--mr-cyan); }
  .rm .cmp-thumbs button { border-radius: 4px; }
  .rm-side { display: flex; flex-direction: column; align-items: flex-start; }
  .steps { display: grid; gap: 5vh; counter-reset: s; position: relative; align-self: stretch; }
  .step { counter-increment: s; position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 0 20px; }
  .step::before { content: '0' counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mr-cyan); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--mr-cyan); background: var(--bg); position: relative; z-index: 1; }
  .steps-line { position: absolute; left: 17px; top: 17px; bottom: 17px; width: 1px; background: var(--bp); transform-origin: top; transform: scaleY(0); }
  .step b { font-size: clamp(20px, 1.7vw, 26px); padding-top: 4px; } .step p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
  .rm-side .btn { margin: 6vh 0 0 54px; }

  /* ===== PORTFOLIO (D6, con imágenes más grandes) ===== */
  .shelves { padding: 24vh 0 0; }
  .shelves > .eyebrow, .shelves > .h2 { margin-left: var(--pad); margin-right: var(--pad); }
  .shelf { padding: 38px 0; border-top: 1px solid var(--line); margin: 0 var(--pad); }
  .shelf-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
  .shelf-head span { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--mr-cyan); }
  .shelf h3 { margin: 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; letter-spacing: -.02em; }
  .shelf small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
  .shelf-nav { margin-left: auto; display: flex; gap: 8px; align-self: center; }
  .shelf-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font: inherit; font-size: 18px; cursor: pointer;
                      display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
  .shelf-nav button:hover { background: var(--mr-cyan); border-color: var(--mr-cyan); color: var(--bg); }
  .strip-wrap { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .strip-wrap::-webkit-scrollbar { display: none; }
  .strip-wrap { cursor: grab; user-select: none; -webkit-user-select: none; }   /* se puede arrastrar con el mouse */
  .strip-wrap.dragging, .strip-wrap.dragging button { cursor: grabbing; }
  .strip { display: flex; gap: 14px; width: max-content; padding: 16px 0 34px; }   /* aire para el zoom y el brillo al pasar */
  /* imágenes a todo color; al pasar: se agranda apenas con borde cian y las demás de la fila bajan un poco */
  .strip button { flex: none; width: clamp(340px, 33vw, 560px); aspect-ratio: 16/10; border: 0; border-radius: 12px; background-size: cover; background-position: center; cursor: pointer;
                  position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.06); transition: transform .7s var(--ease), box-shadow .5s, opacity .5s, filter .5s; }
  .strip:hover button { opacity: .55; filter: saturate(.7); }
  .strip button:hover { opacity: 1; filter: none; transform: scale(1.04); z-index: 1; box-shadow: 0 0 0 2px var(--mr-cyan), 0 26px 60px -24px rgba(53,215,240,.55); }

  /* ===== NOSOTROS (D5): cifras con luz cenital ===== */
  .about { padding: 26vh var(--pad) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
  .about p { color: #c4cfd6; font-size: 18px; line-height: 1.7; margin: 0 0 20px; }
  .about p:first-child { font-size: clamp(20px, 1.9vw, 26px); color: #fff; line-height: 1.5; }
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14vh var(--pad) 0; }
  .stat { position: relative; padding: 40px 28px 34px; border-radius: 18px; background: linear-gradient(180deg, rgba(var(--cy),.06), rgba(255,255,255,.01) 60%); border: 1px solid var(--line); overflow: hidden; }
  .stat::before { content: ''; position: absolute; left: 18%; right: 18%; top: 0; height: 2px; background: var(--mr-cyan); box-shadow: 0 0 30px 6px rgba(var(--cy),.45); border-radius: 2px; }
  .stat b { display: block; font-size: clamp(46px, 5.6vw, 92px); font-weight: 200; letter-spacing: -.05em; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(var(--cy),.25); }
  .stat span { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

  /* ===== EQUIPO (D3): fichas con retrato ===== */
  .team-head { padding: 16vh var(--pad) 0; }
  .team-head h3 { font-size: clamp(30px, 3.6vw, 56px); font-weight: 200; letter-spacing: -.03em; line-height: 1; margin: 18px 0 0; }
  .team-head h3 b { font-weight: 800; }
  .team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 6vh var(--pad) 0; }
  .member { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
  .member:nth-child(4) { grid-column: 2 / span 2; } .member:nth-child(5) { grid-column: 4 / span 2; }
  .member:hover { border-color: rgba(53,215,240,.4); transform: translateY(-4px); }
  .portrait { aspect-ratio: 5 / 4; position: relative; overflow: hidden; background: linear-gradient(160deg, #10202e, #070e15); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.85) brightness(.85); transform: scale(1.04); transition: filter .8s, transform 1.4s var(--ease); }
  .portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 55%, rgba(6,12,19,.55)); transition: opacity .8s; }
  .member:hover .portrait img { filter: none; transform: scale(1); }
  .member:hover .portrait::after { opacity: .35; }
  .member > div:last-child { padding: 20px 22px 22px; }
  .member b { display: block; font-size: 17px; } .member span { font-size: 13px; color: var(--muted); }
  a.member { display: block; color: inherit; text-decoration: none; cursor: pointer; }   /* tarjeta con link a LinkedIn */
  .member .in { width: 15px; height: 15px; margin-left: 9px; vertical-align: -1px; fill: var(--muted); transition: fill .4s; }
  a.member:hover .in { fill: var(--mr-cyan); }

  /* ===== TESTIMONIOS (D1) ===== */
  .testi { padding: 24vh var(--pad) 0; }
  .testi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 7vh 0 0; }
  .tcard { position: relative; aspect-ratio: 9/14; border-radius: 14px; overflow: hidden; cursor: pointer; background: #060c13; border: 1px solid var(--line); transition: border-color .4s; }
  .tcard:hover { border-color: rgba(53,215,240,.4); }
  .tcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.75); }
  .tcard:hover img { transform: scale(1.06); filter: none; }
  /* las miniaturas (testimonio_*_card.webp) traen la cara a la misma altura y el nombre impreso por debajo del 70 %:
     la franja lo tapa y la página escribe nombre y empresa, iguales y alineados en las 5 */
  .tcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgba(6,12,19,.8) 63%, #060c13 70%); }
  .tcard div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 12px 9%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .tcard b { display: block; font-size: clamp(13px, 1.05vw, 16px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
  .tcard em { display: block; width: 36px; height: 1px; margin: 12px 0; background: var(--mr-cyan); box-shadow: 0 0 10px rgba(53,215,240,.6); }
  .tcard span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mr-cyan); white-space: nowrap; }
  .tcard i { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); color: #000; display: grid; place-items: center; font-style: normal; font-size: 12px; }

  /* ===== LOGOS DE CLIENTES (nuevo): dos cintas en sentido contrario ===== */
  .clients { margin: 13vh 0 13vh; padding: 7vh 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .clients-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 6vh; }
  .clients-head h3 { margin: 18px 0 0; font-size: clamp(24px, 2.6vw, 40px); font-weight: 200; letter-spacing: -.02em; line-height: 1.1; max-width: 760px; }
  .clients-head h3 b { font-weight: 800; }
  .clients-head small { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
  .logo-row { overflow: hidden; margin: 0 calc(var(--pad) * -1); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .logo-row + .logo-row { margin-top: 4vh; }
  .logo-track { display: flex; align-items: center; gap: clamp(48px, 6vw, 110px); width: max-content; padding: 6px 0; animation: logos 60s linear infinite; }
  .logo-row.rev .logo-track { animation-direction: reverse; animation-duration: 70s; }
  .logo-row:hover .logo-track { animation-play-state: paused; }
  @keyframes logos { to { transform: translateX(-50%); } }
  .logo { flex: none; display: grid; place-items: center; height: 84px; }
  .logo img { height: var(--h); width: auto; opacity: .5; transition: opacity .4s, filter .4s; }
  .logo:hover img { opacity: 1; filter: drop-shadow(0 0 18px rgba(53,215,240,.55)); }

  /* ===== CONTACTO (D1) ===== */
  .contact { margin-top: 24vh; padding: 18vh var(--pad) 6vh; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
  .glow { position: absolute; width: 70vw; height: 70vw; left: 50%; top: -20vw; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
          background: radial-gradient(circle, rgba(53,215,240,.16), transparent 60%); }
  .contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; }
  .contact .h2 { font-size: clamp(46px, 5.8vw, 104px); }
  .contact .h2 b { color: var(--mr-cyan); }
  .contact .sub { margin-bottom: 5vh; }
  .contact form { align-self: end; }
  .p-foot { position: relative; margin-top: 14vh; padding-top: 28px; border-top: 1px solid var(--line); }

  .boceto-tag { background: var(--mr-cyan); color: var(--bg); }

  /* Globito de WhatsApp: discreto, aparece al salir de la portada */
  .wa { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse;
        opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .6s, visibility .6s, transform .8s var(--ease); }
  .wa.show { opacity: 1; visibility: visible; transform: none; }
  .wa i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,22,33,.72); border: 1px solid rgba(37,211,102,.45);
          backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #25d366; box-shadow: 0 14px 40px -14px rgba(0,0,0,.8); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
  .wa svg { width: 22px; height: 22px; fill: currentColor; }
  .wa span { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: rgba(12,22,33,.85); border: 1px solid rgba(255,255,255,.1);
             color: #e9eef2; opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .35s, transform .5s var(--ease); }
  .wa:hover i { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 14px 40px -12px rgba(37,211,102,.6); }
  .wa:hover span { opacity: 1; transform: none; }

  @media (max-width: 1100px) { .nav-links { gap: 20px; font-size: 12px; } }
  @media (max-width: 900px) {
    .nav-links, .nav .btn { display: none; }
    .hero { height: 250vh; }
    .hero-after .btn { display: inline-flex; }
    /* servicios: las lamas se apilan */
    .svc-intro { padding-top: 12vh; }
    .acc-wrap { height: auto; }
    .acc-sticky { position: static; height: auto; padding: 0 var(--pad); }
    .acc { flex-direction: column; gap: 14px; }
    .col { flex: none; cursor: default; }
    .col::before { transform: scaleY(1); }
    .col-media { position: relative; aspect-ratio: 4 / 3; }
    .col-media img, .col-media video { filter: none; transform: none; }
    .col-shade, .col-tab, .acc-bar { display: none; }
    .col-big { opacity: 1; font-size: 72px; top: 12px; right: 14px; }
    .col-body { position: relative; left: auto; bottom: auto; width: auto; opacity: 1; visibility: visible; padding: 22px 20px 26px; }
    .col-body h3 { font-size: 32px; }
    .col-body p { font-size: 15px; }
    /* videos */
    .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tile:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
    .tile figcaption { font-size: 12px; padding: 12px; }
    /* motionweb */
    .mw, .about, .contact-grid, .rm-head { grid-template-columns: 1fr; gap: 28px; }
    .mw-preview { position: relative; top: 0; }
    .mw-preview .play { width: 84px; height: 84px; margin: -42px; font-size: 11px; }
    .feats { grid-template-columns: 1fr; }
    /* renders mejorados */
    .rule { margin-bottom: 6vh; }
    .rm-pin { min-height: 0; display: block; padding: 7vh 0 0; }
    .rm-stage { grid-template-columns: 1fr; gap: 8vh; }
    .rm-frame { max-width: none; }
    .rm-frame .crn:nth-of-type(1), .rm-frame .crn:nth-of-type(3) { left: -8px; }
    .rm-frame .crn:nth-of-type(2), .rm-frame .crn:nth-of-type(4) { right: -8px; }
    .rm .cmp-stage { aspect-ratio: 4/3.4; }
    .steps { gap: 4vh; }
    .rm-side .btn { margin-left: 0; }
    /* portfolio */
    .strip button { width: 78vw; }   /* en celular cada render ocupa casi todo el ancho */
    .shelf-head { align-items: center; }
    .shelf-nav button { width: 40px; height: 40px; font-size: 16px; }
    /* nosotros y equipo */
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 30px 18px 24px; }
    .team { grid-template-columns: 1fr; gap: 10px; }
    .member, a.member, .member:nth-child(4), .member:nth-child(5) { grid-column: auto; display: flex; align-items: center; }
    .portrait { aspect-ratio: auto; width: 110px; height: 110px; flex: none; }
    /* testimonios y logos */
    .testi-row { grid-template-columns: repeat(5, 62vw); overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); scrollbar-width: none; }
    .clients { margin: 9vh 0; padding: 6vh 0; }
    .logo { height: 60px; }
    .logo img { height: calc(var(--h) * .72); }
    .contact { margin-top: 14vh; padding-top: 12vh; }
    .wa { right: 14px; bottom: 14px; }
    .wa i { width: 46px; height: 46px; }
  }


  /* ===== PÁGINAS DE SERVICIO (renders, videos, tour360, motionweb) ===== */
  .sp-hero { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) 10vh; overflow: hidden; }
  .sp-hero-media { position: absolute; inset: 0; }
  .sp-hero-media img, .sp-hero-media video { width: 100%; height: 100%; object-fit: cover; }
  .sp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,19,.92), rgba(6,12,19,.45) 60%, rgba(6,12,19,.2)), linear-gradient(0deg, var(--bg), transparent 45%); }
  .sp-hero > *:not(.sp-hero-media) { position: relative; z-index: 1; }
  .sp-back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mr-cyan); margin-bottom: 4vh; }
  .sp-back:hover { color: #fff; }
  .sp-hero h1 { margin: 0; font-size: clamp(56px, 9vw, 160px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
  .sp-hero p { max-width: 720px; color: #fff; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.35; margin: 3.5vh 0 0; }
  .sp-sec { padding: 14vh 0 0; }
  .sp-sec > .eyebrow, .sp-sec > .h2, .sp-sec > .split-head { margin-left: var(--pad); margin-right: var(--pad); }
  .sp-cta { display: flex; justify-content: center; margin-top: 10vh; }
  .sp-sec.reel { padding: 14vh var(--pad) 0; }
  /* Videos y Tour360: todas las tarjetas en 16:9, igual que los videos, para que no se recorten.
     Videos: 3 columnas con el primero grande (15 videos = 6 filas justas; cierra con cualquier cantidad múltiplo de 3).
     Tour360: 2 columnas parejas. */
  .sp-sec.reel .bento { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .sp-sec.reel.tours .bento { grid-template-columns: repeat(2, 1fr); }
  .sp-sec.reel.tours .tile:nth-child(1) { grid-column: auto; grid-row: auto; aspect-ratio: 16/9; }
  .sp-sec.mw { padding: 14vh var(--pad) 0; }
  .mw .sub.big { font-size: clamp(20px, 1.8vw, 26px); color: #fff; line-height: 1.5; margin-top: 0; }
  .sp-sec.rm { padding: 18vh var(--pad) 0; }
  .sp-sec.rm .rm-pin { min-height: 0; padding: 8vh 0 0; }
  .more { padding: 20vh var(--pad) 0; }
  .more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6vh; }
  .more-card { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
  .more-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.45); transform: scale(1.05); transition: filter .8s, transform 1.4s var(--ease); }
  .more-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,12,19,.85), transparent 60%); }
  .more-card > *:not(img) { position: relative; z-index: 1; }
  .more-card em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--mr-cyan); }
  .more-card b { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; margin-top: 8px; }
  .more-card span { font-size: 14px; color: #c9d3da; margin-top: 10px; }
  .more-card:hover img { filter: none; transform: scale(1); }
  .home-clients { margin: 0; padding: 12vh var(--pad) 12vh; border-top: 0; }
  @media (max-width: 900px) {
    .sp-hero { min-height: 70vh; }
    .sp-hero h1 { font-size: clamp(38px, 11vw, 56px); }   /* "promocionales" entra en una línea a 390 px */
    .more-grid { grid-template-columns: 1fr; }
    .sp-sec.reel .bento { grid-template-columns: 1fr 1fr; }
  }
  .testi #reviews { margin-top: 12vh; }
  .rm-ask { margin: 0 0 4vh; font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; color: #fff; letter-spacing: -.01em; }
  .reel-hint { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
  .sp-sec.reel .reel-hint + .bento { margin-top: 3vh; }
  @media (hover: none) { .reel-hint { display: none; } }
  .upsell { margin: 5vh 0 0; padding: 20px 22px; border: 1px solid var(--line); border-left: 2px solid var(--mr-cyan); border-radius: 6px; color: #c9d3da; font-size: 15px; line-height: 1.6; max-width: 560px; }
  .upsell a { color: var(--mr-cyan); font-weight: 700; white-space: nowrap; }
  .upsell a:hover { color: #fff; }
  /* Tour360 en mosaico */
  .tours .tour-tile img { transition: opacity .9s, transform 1.6s var(--ease), filter .6s; filter: brightness(.8); }
  .tours .tour-tile:hover img { transform: scale(1.05); filter: none; }
  .tour-badge { position: absolute; top: 16px; right: 16px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--bg); background: var(--mr-cyan); padding: 6px 10px; border-radius: 999px; }
  .tours-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 7vh; }
  .tours-foot .upsell { margin: 0; }
  @media (hover: none) { .reel-hint.always { display: block; } }
  @media (max-width: 600px) {   /* celular: una columna, cada pieza a todo el ancho en 16:9 */
    .sp-sec.reel .bento, .sp-sec.reel.tours .bento { grid-template-columns: 1fr; }
    .sp-sec.reel .tile:nth-child(1) { grid-column: auto; grid-row: auto; aspect-ratio: 16/9; }
  }
  /* MotionWeb: funciones arriba y proyectos en filas alternadas */
  .mw-intro { padding: 14vh var(--pad) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; align-items: start; }
  .mw-intro .feats { margin-top: 0; }
  .showcase { padding: 22vh var(--pad) 0; }
  /* Proyectos MotionWeb: tarjetas grandes de a dos (opción B elegida) */

  #show { margin-top: 8vh; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .cd { position: relative; aspect-ratio: 16/11; border-radius: 14px; overflow: hidden; cursor: pointer; }
  .cd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: brightness(.82); transition: transform 1.6s var(--ease), filter .6s; }
  .cd:hover img { transform: scale(1); filter: none; }
  .cd::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,12,19,.92), transparent 55%); }
  .cd-info { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; display: flex; justify-content: space-between; align-items: end; gap: 18px; }
  .cd-info small { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mr-cyan); }
  .cd-info h3 { margin: 8px 0 0; font-size: clamp(26px, 2.6vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
  .cd .btn { flex: none; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease); }
  .cd:hover .btn { opacity: 1; transform: none; }
  @media (hover: none) { .cd .btn { opacity: 1; transform: none; } }
  @media (max-width: 900px) {
    .mw-intro { grid-template-columns: 1fr; gap: 24px; }
    #show { grid-template-columns: 1fr; }
  }
  .about p b { font-weight: 700; color: var(--mr-cyan); }
  .stat b { white-space: nowrap; }

/* Páginas de servicio: barra fija con los servicios (el actual en cian) y migas sobre el título */
.svc-bar { position: fixed; left: 0; right: 0; top: 86px; z-index: 59; display: flex; justify-content: center; padding: 0 var(--pad); pointer-events: none; transition: top .6s var(--ease); }
.nav.is-hidden + .svc-bar { top: 14px; }   /* al bajar se esconde el menú y la barra sube */
.svc-bar-in { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; max-width: 100%;
              background: rgba(10,19,29,.82); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
              box-shadow: 0 18px 40px -20px rgba(0,0,0,.9); overflow-x: auto; scrollbar-width: none; }
.svc-bar-in::-webkit-scrollbar { display: none; }
.svc-bar a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c4cfd6; white-space: nowrap; transition: background .3s, color .3s; }
.svc-bar a:hover { color: #fff; background: rgba(255,255,255,.06); }
.svc-bar a.on { background: var(--mr-cyan); color: var(--bg); }
.svc-bar .svc-home { color: var(--mr-cyan); }
.svc-bar i { flex: none; width: 1px; height: 20px; margin: 0 6px; background: rgba(255,255,255,.15); }
.sp-crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4vh; color: #8796a2; }
.sp-crumbs a { color: var(--mr-cyan); }
.sp-crumbs a:hover { color: #fff; }
.sp-crumbs b { color: #fff; }
@media (max-width: 900px) {
  .svc-bar { top: 64px; padding: 0 10px; }
  .nav.is-hidden + .svc-bar { top: 10px; }
  .svc-bar-in { justify-content: flex-start; }
  .svc-bar a { padding: 8px 13px; font-size: 12px; }
  .svc-bar .svc-home { position: sticky; left: -5px; z-index: 1; margin-left: -5px; padding-left: 18px; background: rgb(10,19,29); box-shadow: 10px 0 12px -4px rgb(10,19,29); }   /* "← Inicio" siempre visible */
  .sp-crumbs { font-size: 11px; letter-spacing: .14em; }
}

/* Pie: lugar para el globito de WhatsApp, que queda fijo abajo a la derecha */
.p-foot { padding-right: 76px; }
@media (max-width: 900px) { .p-foot { padding-right: 0; padding-bottom: 64px; } }
