/* Bloque «ads» — Visual Ads. La escena se dibuja en un lienzo de tamaño fijo (.ads__escala) que JS escala para caber. */
#ads.bloque { height: 450vh; }

/* ---------- nube de términos (fondo) ---------- */
#ads .ads__nube { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#ads .ads__nube-mov { width: min(1080px, calc(100vw - 24px)); }
#ads .ads__nube-txt { text-align: center; font-size: clamp(15px, 1.55vw, 22px); line-height: 1.75; }
#ads .ads__nube-pal { opacity: .12; }
#ads .ads__marca {
  position: relative; display: inline-flex; align-items: center; gap: .18em; margin: 0 .2em; vertical-align: middle;
  font-family: var(--display); font-size: clamp(54px, 7.5vw, 116px); line-height: 1; color: var(--texto);
}
#ads .ads__marca img { width: .62em; height: auto; }
#ads .ads__marca b { color: var(--oro); font-weight: 400; }
#ads .ads__marca-raya {
  position: absolute; left: 0; right: 0; bottom: -.08em; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--oro), var(--oro-claro)); transform-origin: 0 50%;
}

/* ---------- marco: texto a la izquierda, escena a la derecha ---------- */
#ads .ads__marco {
  position: absolute; inset: var(--nav-alto) 0 0 0; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); grid-template-rows: minmax(0, 1fr); column-gap: 28px;
  padding: 16px max(16px, calc((100vw - 1180px) / 2)) 24px;
}
#ads .ads__texto { position: relative; z-index: 2; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
#ads .ads__zona { position: relative; min-height: 0; }

/* frases cinéticas */
#ads .ads__golpes {
  position: relative; width: 100%; height: 1em; margin-top: 8px;
  font-family: var(--display); font-size: clamp(30px, 3.4vw, 52px); line-height: 1; letter-spacing: .01em;
}
#ads .ads__frase { position: absolute; left: 0; top: 0; white-space: nowrap; transform-origin: 0 50%; color: var(--texto); }
#ads .ads__pal { display: inline-block; white-space: nowrap; }
#ads .ads__l { position: relative; display: inline-block; transform-origin: 50% 60%; }
#ads .ads__l-o {
  position: absolute; left: 0; top: 0; opacity: 0;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ranura tipo tragaperras */
#ads .ads__ranura { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(22px, 2.3vw, 32px); line-height: 1; }
#ads .ads__ranura-en { color: var(--suave); }
#ads .ads__ventana {
  position: relative; display: block; height: 1.3em; overflow: hidden; padding: 0 .45em; border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, .4); background: rgba(11, 11, 12, .45);
}
#ads .ads__ventana::before, #ads .ads__ventana::after { content: ''; position: absolute; left: 0; right: 0; height: .38em; z-index: 1; pointer-events: none; }
#ads .ads__ventana::before { top: 0; background: linear-gradient(to bottom, rgba(11, 11, 12, .9), rgba(11, 11, 12, 0)); }
#ads .ads__ventana::after { bottom: 0; background: linear-gradient(to top, rgba(11, 11, 12, .9), rgba(11, 11, 12, 0)); }
#ads .ads__carrete { display: block; }
#ads .ads__canal { display: block; height: 1.3em; line-height: 1.32em; color: var(--oro-claro); white-space: nowrap; }

/* ---------- escena (coordenadas de diseño: 680 × 620) ---------- */
#ads .ads__escala { position: absolute; left: 50%; top: 50%; width: 680px; height: 620px; transform: translate(-50%, -50%); transform-origin: 50% 50%; }
#ads .ads__halo-env { position: absolute; left: 40px; top: 5px; width: 600px; height: 600px; z-index: 0; }
#ads .ads__halo { inset: 0; width: 100%; height: 100%; }

#ads .ads__ico { position: absolute; left: 340px; top: 305px; width: 0; height: 0; z-index: 1; }
#ads .ads__ico-orb { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; will-change: transform; }
#ads .ads__ico-orb img { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(11, 11, 12, .55)); }

/* celular con el anuncio */
#ads .ads__cel-env { position: absolute; left: 215px; top: 50px; width: 250px; height: 510px; z-index: 2; }
#ads .ads__cel-flota { width: 100%; height: 100%; }
#ads .ads__cel { width: 100%; height: 100%; padding: 9px; border-radius: 44px; }
#ads .ads__pantalla { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 35px; background: var(--negro-2); }
#ads .ads__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#ads .ads__sombra { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(to top, rgba(11, 11, 12, .92), rgba(11, 11, 12, .5) 45%, rgba(11, 11, 12, 0)); }
#ads .ads__isla { position: absolute; top: 10px; left: 50%; width: 78px; height: 22px; margin-left: -39px; border-radius: 12px; background: var(--negro); }
#ads .ads__cel svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ads .ads__acc { position: absolute; right: 10px; bottom: 134px; display: flex; flex-direction: column; gap: 16px; color: var(--texto); }
#ads .ads__acc svg { width: 24px; height: 24px; }
#ads .ads__pie { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
#ads .ads__autor { display: flex; align-items: center; gap: 8px; }
#ads .ads__avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: var(--negro); font: 700 14px/1 var(--cuerpo);
  box-shadow: 0 0 0 2px rgba(242, 239, 232, .85);
}
#ads .ads__autor-txt { display: flex; flex-direction: column; line-height: 1.2; }
#ads .ads__autor-txt b { font-size: 13px; font-weight: 600; color: var(--texto); }
#ads .ads__autor-txt span { font-size: 11px; color: var(--suave); }
#ads .ads__renglon { display: block; width: 82%; height: 6px; border-radius: 3px; background: rgba(242, 239, 232, .28); }
#ads .ads__renglon--corto { width: 56%; }
#ads .ads__cta {
  position: relative; margin-top: 4px; height: 36px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 12px; border-radius: 10px; overflow: hidden;
  background: rgba(242, 239, 232, .16); border: 1px solid rgba(242, 239, 232, .18); color: var(--texto); font-size: 13px; font-weight: 600;
}
#ads .ads__cta svg { width: 16px; height: 16px; }
#ads .ads__cta-luz {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 12px;
  background: linear-gradient(90deg, var(--oro), var(--oro-claro)); color: var(--negro); opacity: 0;
}

/* embudo */
#ads .ads__embudo { position: absolute; left: 496px; top: 64px; width: 184px; z-index: 3; display: flex; flex-direction: column; align-items: center; }
#ads .ads__paso {
  position: relative; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  background: rgba(18, 18, 20, .66); border: 1px solid rgba(242, 239, 232, .14); color: var(--suave); font-size: 13px; font-weight: 600;
}
#ads .ads__paso--1 { width: 184px; }
#ads .ads__paso--2 { width: 160px; }
#ads .ads__paso--3 { width: 136px; }
#ads .ads__paso--4 { width: 112px; }
#ads .ads__paso-punto { width: 8px; height: 8px; border-radius: 50%; background: rgba(242, 239, 232, .3); }
#ads .ads__paso-luz {
  position: absolute; inset: -1px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: inherit;
  background: linear-gradient(90deg, rgba(201, 168, 76, .34), rgba(226, 200, 118, .18)); border: 1px solid var(--oro); color: var(--oro-claro);
  box-shadow: 0 0 24px rgba(201, 168, 76, .35); opacity: 0;
}
#ads .ads__paso-luz .ads__paso-punto { background: var(--oro-claro); box-shadow: 0 0 10px var(--oro-claro); }
#ads .ads__flecha { display: block; width: 18px; height: 18px; margin: 2px 0; color: var(--oro); opacity: .35; }
#ads .ads__flecha svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* panel «Campaña» (ancho fijo: el cursor usa sus coordenadas) */
#ads .ads__panel { position: absolute; left: 0; top: 370px; z-index: 4; width: 270px; padding: 16px; border-radius: 20px; color: var(--texto); }
#ads .ads__panel-cab { display: flex; align-items: center; gap: 8px; height: 28px; }
#ads .ads__panel-tit { font-size: 15px; font-weight: 600; line-height: 28px; }
#ads .ads__estado { display: grid; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
#ads .ads__estado > span { grid-area: 1 / 1; padding: 3px 8px; border-radius: 999px; white-space: nowrap; text-align: center; }
#ads .ads__estado-off { background: rgba(242, 239, 232, .10); color: var(--suave); }
#ads .ads__estado-on { background: rgba(201, 168, 76, .18); color: var(--oro-claro); opacity: 0; }
#ads .ads__switch { position: relative; flex: none; margin-left: auto; width: 46px; height: 28px; border-radius: 14px; background: rgba(242, 239, 232, .16); }
#ads .ads__switch-oro { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--oro), var(--oro-claro)); opacity: 0; }
#ads .ads__switch-bola { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--texto); box-shadow: 0 2px 6px rgba(11, 11, 12, .45); }
#ads .ads__pres { margin-top: 16px; }
#ads .ads__mini { display: block; font-size: 12px; line-height: 16px; color: var(--suave); }
#ads .ads__barra { position: relative; margin-top: 10px; height: 6px; border-radius: 3px; background: rgba(242, 239, 232, .12); }
#ads .ads__barra-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--oro), var(--oro-claro)); transform-origin: 0 50%; transform: scaleX(.35); }
#ads .ads__barra-bola {
  position: absolute; left: -8px; top: -5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--texto); border: 3px solid var(--oro); transform: translateX(83.3px);
}
#ads .ads__graf { margin-top: 18px; }
#ads .ads__graf svg { display: block; margin-top: 8px; width: 238px; height: 84px; overflow: visible; }
#ads .ads__graf-rejilla line { stroke: rgba(242, 239, 232, .08); stroke-width: 1; }
#ads .ads__graf-linea { fill: none; stroke: var(--oro-claro); stroke-width: 2.5; stroke-linecap: round; }
#ads .ads__stop-a { stop-color: var(--oro); stop-opacity: .45; }
#ads .ads__stop-b { stop-color: var(--oro); stop-opacity: 0; }
#ads .ads__graf-aura { fill: rgba(226, 200, 118, .28); }
#ads .ads__graf-nucleo { fill: var(--texto); }
#ads .ads__ruta { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; }
#ads .ads__ruta .cursor { left: 0; top: 0; will-change: transform; }

/* ---------- movimiento reducido / sin GSAP: estado final legible, frases por fundido ---------- */
#ads .ads--quieto .ads__frase { opacity: 0; transition: opacity .45s ease; }
#ads .ads--quieto .ads__frase.es-activa { opacity: 1; }
#ads .ads--quieto .ads__l-o { opacity: 1; }
#ads .ads--quieto .ads__nube { opacity: .2; }
#ads .ads--quieto .ads__marca { opacity: 0; }

/* ---------- celular: titular arriba, escena debajo, menos piezas (lienzo 420 × 570) ---------- */
@media (max-width: 760px) {
  #ads .ads__marco { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; }
  #ads .ads__texto { align-self: stretch; flex: none; gap: 10px; }
  #ads .ads__zona { flex: 1 1 auto; }
  #ads .ads__golpes { font-size: 30px; margin-top: 2px; }
  #ads .ads__ranura { font-size: 22px; }
  #ads .ads__nube-txt { font-size: 14px; }
  #ads .ads__marca { font-size: 52px; }

  #ads .ads__escala { width: 420px; height: 570px; }
  #ads .ads__halo-env { left: -25px; top: -25px; }
  #ads .ads__ico { left: 275px; top: 275px; }
  #ads .ads__ico--extra, #ads .ads__embudo { display: none; }
  #ads .ads__cel-env { left: 150px; top: 20px; }
  #ads .ads__panel { left: 0; top: 330px; }
}
@media (max-width: 760px) and (max-height: 680px) {
  #ads .ads__lema { display: none; }
}
