/* pub-hero — hero de /publicidad/. Fondo propio «subasta / diana» (distinto a /web/ aurora+rejilla y a /marketing/ señal):
   anillos de mira con retícula, clics que estallan en el aire y una luz de barras que sube como pujas.
   Escena en em (escala con su font-size). Pasos .is-p1….is-p5 los pone pub-hero.js; sin JS vienen todos puestos (estado final).
   Solo transform/opacity; .is-pausado congela todo fuera de pantalla. */

.pubh { --cx: 73%; --cy: 56%; position: relative; isolation: isolate; overflow: hidden; background: #0a0909; color: #fff; }
/* La cabecera de esta página es transparente: el hero arranca bajo ella (m360.css da 76/64px a main en interiores) */
body:not(.home) main.pub-pag { padding-top: 0; }
.pubh__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1320px; min-height: min(100svh, 900px); margin: 0 auto; padding: calc(112px + clamp(16px, 2.6vw, 40px)) var(--m) clamp(56px, 6vw, 96px); }

/* ── Fondo «subasta» ── */
.pubh__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(70% 70% at var(--cx) var(--cy), #26150e 0%, #120d0c 42%, #0a0909 72%); }
.pubh__fondo > i, .pubh__fondo > span { position: absolute; display: block; }
/* Anillos de mira: líneas finas cada 56px, que se desvanecen hacia fuera; el anillo central respira en naranja */
.pubh__diana { left: var(--cx); top: var(--cy); width: min(1180px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 55px, rgba(255, 255, 255, .075) 55px 56px);
	-webkit-mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .5) 55%, transparent 96%); mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .5) 55%, transparent 96%); }
.pubh__diana::before, .pubh__diana::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.pubh__diana::before { width: 25.4%; aspect-ratio: 1; box-shadow: inset 0 0 0 1.5px rgba(255, 110, 60, .55), 0 0 40px rgba(255, 91, 35, .25), inset 0 0 50px rgba(255, 91, 35, .12); animation: pubh-fija 5s var(--ease) infinite; }
.pubh__diana::after { width: 9.6%; aspect-ratio: 1; box-shadow: inset 0 0 0 1.5px rgba(210, 251, 140, .6), 0 0 26px rgba(210, 251, 140, .25); }
@keyframes pubh-fija { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 50% { transform: translate(-50%, -50%) scale(1.06); opacity: .55; } }
/* Retícula: cruz de líneas finas con marcas de regla, centrada en la mira */
.pubh__mira { inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14) 30%, rgba(255, 255, 255, .14) 70%, transparent) 0 var(--cy) / 100% 1px no-repeat, linear-gradient(180deg, transparent, rgba(255, 255, 255, .12) 25%, rgba(255, 255, 255, .12) 80%, transparent) var(--cx) 0 / 1px 100% no-repeat; }
.pubh__mira::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--cy) - 4px); height: 9px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 28px); -webkit-mask-image: radial-gradient(40% 100% at var(--cx) 50%, #000, transparent); mask-image: radial-gradient(40% 100% at var(--cx) 50%, #000, transparent); }
.pubh__mira::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--cx) - 4px); width: 9px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 28px); -webkit-mask-image: radial-gradient(100% 40% at 50% var(--cy), #000, transparent); mask-image: radial-gradient(100% 40% at 50% var(--cy), #000, transparent); }
/* Clics que estallan en el aire */
.pubh__ondas { inset: 0; }
.pubh__ondas i { position: absolute; left: var(--x); top: var(--y); width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 130, 80, .7); opacity: 0; transform: scale(.15); animation: pubh-onda 6s cubic-bezier(.2, .7, .3, 1) var(--d, 0s) infinite; will-change: transform, opacity; }
.pubh__ondas i:nth-child(even) { box-shadow: inset 0 0 0 1.5px rgba(210, 251, 140, .65); }
.pubh__ondas i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255, 140, 90, .8); transform: scale(2); }
@keyframes pubh-onda { 0% { opacity: 0; transform: scale(.15); } 6% { opacity: 1; } 40%, 100% { opacity: 0; transform: scale(1); } }
/* Luz de barras: pujas que suben de izquierda a derecha y respiran despacio */
.pubh__barras { left: 0; right: 0; bottom: 0; height: 42%; display: flex; align-items: flex-end; gap: clamp(4px, .6vw, 10px); padding: 0 var(--m); opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(0deg, #000 30%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(0deg, #000 30%, transparent); mask-composite: intersect; }
.pubh__barras i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(0deg, rgba(255, 91, 35, 0), rgba(255, 91, 35, .28)); box-shadow: inset 0 1.5px 0 rgba(255, 140, 90, .75); transform-origin: bottom; animation: pubh-puja 4.6s ease-in-out calc(var(--k) * -.31s) infinite alternate; will-change: transform; }
.pubh__barras i:nth-last-child(-n+4) { background: linear-gradient(0deg, rgba(210, 251, 140, 0), rgba(210, 251, 140, .22)); box-shadow: inset 0 1.5px 0 rgba(210, 251, 140, .8); }
@keyframes pubh-puja { from { transform: scaleY(.84); } to { transform: scaleY(1); } }
.pubh__regla { left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent); }
.pubh__velo { inset: 0; background: linear-gradient(180deg, rgba(5, 4, 4, .9) 0, rgba(5, 4, 4, .5) 130px, transparent 260px), radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.pubh__grano { inset: 0; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pubh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #D2FB8C 20%, #FF5B23 60%, transparent); box-shadow: 0 0 18px rgba(255, 91, 35, .5); }

/* ── Texto ── */
.pubh__txt { position: relative; z-index: 2; min-width: 0; }
.pubh__txt > * { animation: pubh-sube .9s var(--ease) both; }
.pubh__txt > :nth-child(2) { animation-delay: .08s; }
.pubh__txt > :nth-child(3) { animation-delay: .16s; }
.pubh__txt > :nth-child(4) { animation-delay: .24s; }
.pubh__txt > :nth-child(5) { animation-delay: .32s; }
.pubh__txt > :nth-child(6) { animation-delay: .4s; }
@keyframes pubh-sube { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

.pubh__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .84); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
/* mini mira en la ceja */
.pubh__ceja::before { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 0 0 4px #0a0909, inset 0 0 0 6px var(--lima); }
.pubh h1 { max-width: 13ch; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(40px, 5.1vw, 82px); line-height: 1.02 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: #fff; text-wrap: balance; }
.pubh h1 .chispa { background: linear-gradient(135deg, #FF5B23 20%, #FF9A5C 60%, #D2FB8C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pubh__lead { max-width: 46ch; margin-top: 22px; color: rgba(255, 255, 255, .74); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }

.pubh__acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pubh__cta { min-height: 56px; box-shadow: 0 14px 34px -14px rgba(255, 91, 35, .8); }
.pubh__sec { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); }
.pubh__sec svg { color: var(--lima); transition: transform .3s var(--ease); }
.pubh__sec:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--lima); transform: translateY(-3px); }
.pubh__sec:hover svg { transform: translateY(3px); }
.pubh a:focus-visible { outline: 2px solid var(--lima); outline-offset: 4px; }

.pubh__canales { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.pubh__canales li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 500; }
.pubh__canales li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pubh__canales li:nth-child(even)::before { background: var(--lima); }
.pubh__promesas { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); list-style: none; color: rgba(255, 255, 255, .7); font-size: 14px; }
.pubh__promesas li { display: inline-flex; align-items: center; gap: 8px; }
.pubh__promesas svg { flex: none; color: var(--lima); }

/* ── Escena (todo en em) ── */
.pubh__escena { position: relative; height: 44em; min-width: 0; font: 400 clamp(11px, 1vw, 14px)/1.25 var(--f); color: var(--noche); }
.pubh__escena :is(b, small, i, em) { font-style: normal; }
.pubh__luz { position: absolute; left: 58%; top: 52%; width: 42em; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 110, 50, .5), rgba(255, 91, 35, .2) 50%, transparent); transform: translate(-50%, -50%); }

/* Tarjetas blancas comunes */
.pubh-g, .pubh-f, .pubh__chip, .pubh__ventas { position: absolute; border-radius: 1.3em; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 2em 4em -1.6em rgba(0, 0, 0, .85); }

/* Buscador */
.pubh-g { left: 0; top: 3.5em; z-index: 1; display: grid; gap: 1.1em; width: 76%; padding: 1.3em; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.pubh-g__barra { display: flex; align-items: center; gap: .8em; height: 3.2em; padding: 0 1.1em; border: 1px solid #E7E1DB; border-radius: 99px; box-shadow: 0 .3em 1em -.4em rgba(18, 16, 17, .2); }
.pubh-g__barra svg { flex: none; width: 1.3em; height: 1.3em; color: #6E6763; }
.pubh-g__glifo { display: grid; flex: none; grid-template-columns: repeat(2, .5em); gap: .15em; }
.pubh-g__glifo i { width: .5em; height: .5em; border-radius: 50%; background: #2D6CDF; }
.pubh-g__glifo i:nth-child(2) { background: #E5483B; } .pubh-g__glifo i:nth-child(3) { background: #F5B92E; } .pubh-g__glifo i:nth-child(4) { background: #2E9E5B; }
.pubh-g__q { flex: 1; min-width: 0; overflow: hidden; font-size: 1.1em; font-weight: 500; white-space: nowrap; text-overflow: clip; }
.pubh__escena:not(.is-p1) .pubh-g__q::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--accent); animation: pubh-caret .8s step-end infinite; }
@keyframes pubh-caret { 50% { opacity: 0; } }
.pubh-g__res { display: grid; gap: 1em; }
.pubh-g__ad { position: relative; display: grid; gap: .4em; padding: 1em 1.1em; border-radius: .9em; background: #FFF6F1; box-shadow: inset 0 0 0 1.5px rgba(255, 91, 35, .45); }
.pubh-g__ad > small { display: flex; align-items: center; gap: .6em; color: #6E6763; font-size: .85em; }
.pubh-g__ad > small b { padding: .15em .5em; border-radius: .3em; background: var(--noche); color: #fff; font-size: .9em; font-weight: 700; }
.pubh-g__tit { color: #1A4FC4; font-size: 1.28em; font-weight: 600; letter-spacing: -.01em; text-decoration: underline transparent; text-underline-offset: .18em; transition: text-decoration-color .3s; }
.pubh-g__d { color: var(--ink-2); font-size: .92em; line-height: 1.4; }
.pubh-g__links { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .25em; }
.pubh-g__links i { padding: .3em .7em; border-radius: 99px; background: #fff; color: #1A4FC4; font-size: .8em; font-weight: 600; box-shadow: inset 0 0 0 1px #E7E1DB; }
.pubh-g__org { display: grid; gap: .45em; padding: 0 1.1em; }
.pubh-g__org i { height: .55em; border-radius: 99px; background: #EEE9E4; }
.pubh-g__org i:first-child { width: 35%; height: .45em; }
.pubh-g__org i:nth-child(2) { width: 70%; height: .8em; background: #E3E9F6; }

/* Anuncio en el feed */
.pubh-f { left: 3%; top: 1em; z-index: 1; width: 22em; overflow: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.pubh-f__cab { display: flex; align-items: center; gap: .7em; padding: .8em 1em; }
.pubh-f__cab em { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: conic-gradient(from 200deg, #FF5B23, #D2FB8C, #FF5B23); box-shadow: inset 0 0 0 .2em #fff; }
.pubh-f__cab span { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.pubh-f__cab b { font-size: .95em; font-weight: 700; }
.pubh-f__cab small { color: #6E6763; font-size: .78em; }
.pubh-f__cab > i { width: 1.2em; height: .3em; background: radial-gradient(circle, #6E6763 .13em, transparent .15em) 0 0 / .4em 100%; }
.pubh-f img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.pubh-f__pie { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .9em 1em; background: #F6F2EE; }
.pubh-f__pie > span { display: grid; min-width: 0; line-height: 1.2; }
.pubh-f__pie small { color: #6E6763; font-size: .75em; }
.pubh-f__pie b { overflow: hidden; font-size: .95em; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.pubh-f__pie em { position: relative; flex: none; padding: .55em .9em; border-radius: .6em; background: var(--noche); color: #fff; font-size: .82em; font-weight: 700; }

/* Modo: solo se ve la tarjeta del tipo de escena actual */
.pubh__escena[data-modo="busca"] .pubh-f, .pubh__escena[data-modo="feed"] .pubh-g { opacity: 0; visibility: hidden; transform: translate3d(0, 1.4em, 0) scale(.96); transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }

/* Cursor que da clic + onda en lo clicado */
.pubh__cursor { position: absolute; z-index: 2; width: 2.1em; height: 2.1em; opacity: 0; pointer-events: none; filter: drop-shadow(0 .3em .5em rgba(0, 0, 0, .35)); }
.pubh-g__ad .pubh__cursor { left: 34%; top: 40%; }
.pubh-f__pie .pubh__cursor { right: 1.6em; top: 55%; }
.pubh__blanco::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5em; height: 5em; margin: -2.5em; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; }
.pubh-g__ad.pubh__blanco::after { left: 36%; top: 46%; }
.is-p2 .pubh__cursor { animation: pubh-clic 1.3s cubic-bezier(.5, 0, .2, 1) both; }
.is-p2 .pubh__blanco::after { animation: pubh-anillo .7s ease-out .75s both; }
.is-p2 .pubh-g__tit { text-decoration-color: currentColor; }
.is-p2 .pubh-f__pie em { animation: pubh-presiona .35s ease .75s both; }
@keyframes pubh-clic { 0% { opacity: 0; transform: translate3d(5em, 4em, 0); } 25% { opacity: 1; } 55% { transform: none; } 62% { transform: scale(.8); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes pubh-anillo { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1.4); } }
@keyframes pubh-presiona { 50% { transform: scale(.92); } }

/* Paso 0 (antes del resultado): resultados y chip escondidos; la tarjeta del feed entra en .is-p1 */
.pubh-g__res > *, .pubh__chip { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.pubh__escena:not(.is-p1) .pubh-g__res > * { opacity: 0; transform: translate3d(0, .8em, 0); }
.is-p1 .pubh-g__res > :nth-child(2) { transition-delay: .1s; }
.is-p1 .pubh-g__res > :nth-child(3) { transition-delay: .18s; }
.pubh__escena[data-modo="feed"]:not(.is-p1) .pubh-f { opacity: 0; transform: translate3d(0, 1.4em, 0) scale(.96); }

/* Chip de subasta / público */
.pubh__chip { right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: .8em; width: max-content; max-width: 19em; padding: .7em 1em .7em .7em; border-radius: 1em; background: rgba(250, 248, 245, .97); }
.pubh__chip > i { display: grid; flex: none; place-items: center; width: 2.6em; height: 2.6em; border-radius: .8em; background: var(--noche); color: var(--lima); }
.pubh__chip > i svg { width: 1.4em; height: 1.4em; }
.pubh__chip > span { display: grid; gap: .1em; min-width: 0; }
.pubh__chip b { font-size: 1.05em; font-weight: 700; }
.pubh__chip small { overflow: hidden; color: #6E6763; font-size: .85em; white-space: nowrap; text-overflow: ellipsis; }
.pubh__escena:not(.is-p1) .pubh__chip { opacity: 0; transform: translate3d(0, -.8em, 0) scale(.94); }

/* Celular con el chat */
.pubh__tel { position: absolute; right: 2%; bottom: 0; z-index: 2; width: 15.5em; aspect-ratio: 9 / 19; padding: .55em; border-radius: 2.4em; background: linear-gradient(160deg, #3a3637, #121011 40%, #2a2627); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 3em 5em -2em #000; transform: rotate(3deg); }
.pubh__pantalla { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 1.95em; background: #F3EEE7; }
.pubh__chat-cab { display: flex; align-items: center; gap: .5em; padding: 2em .8em .7em; background: var(--noche); color: #fff; }
.pubh__chat-cab svg { flex: none; width: 1em; height: 1em; }
.pubh__chat-cab em { flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121011' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 10h16l-1 10H5zM4 10l2-5h12l2 5'/%3E%3C/svg%3E") 50% 50% / 1.1em no-repeat; }
.pubh__chat-cab span { display: grid; line-height: 1.15; }
.pubh__chat-cab b { font-size: .9em; font-weight: 700; }
.pubh__chat-cab small { color: var(--lima); font-size: .72em; }
.pubh__hilo { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: .55em; padding: .8em .7em; background: radial-gradient(rgba(18, 16, 17, .06) 1px, transparent 1.4px) 0 0 / 1em 1em; }
.pubh__fecha { align-self: center; margin-bottom: auto; padding: .2em .7em; border-radius: 99px; background: rgba(255, 255, 255, .8); color: #6E6763; font-size: .7em; font-weight: 600; }
.pubh__msg { position: relative; max-width: 88%; padding: .55em .7em .4em; border-radius: .9em; font-size: .86em; line-height: 1.3; box-shadow: 0 1px 1px rgba(18, 16, 17, .1); transform-origin: left bottom; }
.pubh__msg small { display: block; margin-top: .2em; color: #6E6763; font-size: .75em; text-align: right; }
.pubh__msg--in { align-self: flex-start; border-bottom-left-radius: .2em; background: #fff; }
.pubh__msg--out { align-self: flex-end; border-bottom-right-radius: .2em; background: var(--lima); transform-origin: right bottom; }
.pubh__msg--out small { color: #4B5E2A; }
.pubh__escribe { display: none; align-self: flex-end; gap: .25em; padding: .7em .8em; border-radius: .9em; background: var(--lima); }
.pubh__escribe i { width: .45em; height: .45em; border-radius: 50%; background: #4B5E2A; animation: pubh-punto 1s ease-in-out infinite; }
.pubh__escribe i:nth-child(2) { animation-delay: .15s; } .pubh__escribe i:nth-child(3) { animation-delay: .3s; }
@keyframes pubh-punto { 50% { opacity: .3; transform: translateY(-.2em); } }
.pubh__chat-pie { display: flex; align-items: center; gap: .5em; padding: .6em .7em 1.1em; }
.pubh__chat-pie i { flex: 1; height: 2.2em; border-radius: 99px; background: #fff; }
.pubh__chat-pie b { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--accent); }

.pubh__msg, .pubh__aviso { transition: opacity .3s ease, transform .3s ease; }
.pubh__escena:not(.is-p3) .pubh__msg--in, .pubh__escena:not(.is-p5) .pubh__msg--out { position: absolute; opacity: 0; transform: scale(.6); }
.is-p3 .pubh__msg--in, .is-p5 .pubh__msg--out { animation: pubh-burbuja .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.is-p4:not(.is-p5) .pubh__escribe { display: flex; animation: pubh-burbuja .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pubh-burbuja { from { opacity: 0; transform: scale(.6); } }

/* Aviso de mensaje nuevo que cae sobre el celular */
.pubh__aviso { position: absolute; left: -38%; top: 13%; z-index: 3; display: flex; align-items: center; gap: .7em; width: max-content; padding: .6em .9em .6em .6em; border-radius: 1em; background: rgba(250, 248, 245, .97); box-shadow: 0 1.4em 2.6em -1em rgba(0, 0, 0, .7); transform: rotate(-3deg); }
.pubh__aviso > i { display: grid; flex: none; place-items: center; width: 2.4em; height: 2.4em; border-radius: .75em; background: var(--lima); color: var(--noche); }
.pubh__aviso > i svg { width: 1.3em; height: 1.3em; }
.pubh__aviso > span { display: grid; line-height: 1.2; }
.pubh__aviso b { font-size: .95em; font-weight: 700; }
.pubh__aviso small { color: #6E6763; font-size: .8em; }
.pubh__escena:not(.is-p3) .pubh__aviso { opacity: 0; transform: translate3d(0, -1em, 0) rotate(-3deg) scale(.9); }
.is-p3 .pubh__aviso { animation: pubh-pop .6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pubh-pop { from { opacity: 0; transform: translate3d(0, -1em, 0) rotate(-3deg) scale(.86); } }

/* Contador de ventas */
.pubh__ventas { left: 4%; bottom: 1.5em; z-index: 3; display: grid; width: 17.5em; padding: 1.1em 1.2em 1em; background: rgba(24, 22, 23, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2em 4em -1.6em #000; }
.pubh__ventas > small { display: flex; align-items: center; gap: .5em; color: rgba(255, 255, 255, .68); font-size: .82em; }
.pubh__ventas > small i { width: .45em; height: .45em; border-radius: 50%; background: var(--lima); box-shadow: 0 0 .7em var(--lima); }
.pubh__ventas > b { margin-top: .25em; font-family: 'Marko Display', var(--f); font-size: 3em; font-weight: 800; line-height: 1; color: var(--lima); font-variant-numeric: tabular-nums; }
.pubh__ventas > b.is-sube { animation: pubh-late .5s var(--ease); }
@keyframes pubh-late { 40% { transform: scale(1.18); } }
.pubh__spark { display: flex; align-items: flex-end; gap: .3em; height: 3em; margin-top: .7em; }
.pubh__spark i { flex: 1; height: var(--h); border-radius: .2em .2em 0 0; background: rgba(255, 255, 255, .22); transform-origin: bottom; animation: pubh-barra .6s cubic-bezier(.2, .9, .3, 1) calc(.6s + var(--k) * .06s) both; }
.pubh__spark i:last-child { background: var(--accent); }
@keyframes pubh-barra { from { transform: scaleY(0); } }
.pubh__mas { position: absolute; right: -1.2em; top: -1.6em; display: grid; padding: .5em .8em; border-radius: .8em; background: var(--accent); color: #fff; line-height: 1.15; box-shadow: 0 1em 2em -1em rgba(255, 91, 35, .9); }
.pubh__mas b { font-size: 1.05em; font-weight: 800; }
.pubh__mas small { color: rgba(255, 255, 255, .85); font-size: .75em; }
.pubh__escena:not(.is-p5) .pubh__mas { opacity: 0; transform: translate3d(0, .8em, 0) scale(.8); transition: opacity .25s, transform .25s; }
.is-p5 .pubh__mas { animation: pubh-pop2 .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pubh-pop2 { from { opacity: 0; transform: translate3d(0, .8em, 0) scale(.8); } }

/* Ciclos congelados mientras el hero no se ve */
.pubh.is-pausado *, .pubh.is-pausado *::before, .pubh.is-pausado *::after { animation-play-state: paused !important; }

/* ── Laptop ── */
@media (max-width: 1180px) {
	.pubh__escena { font-size: clamp(10px, 1.08vw, 13px); }
	.pubh-g { width: 80%; }
}

/* ── Tablet: una columna, escena centrada debajo ── */
@media (max-width: 960px) {
	.pubh { --cx: 50%; --cy: 74%; }
	.pubh__ondas { top: 52%; }
	.pubh__in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding-top: calc(112px + 24px); }
	.pubh h1 { max-width: 15ch; }
	.pubh__escena { width: min(100%, 640px); margin: 0 auto; font-size: 13px; }
}

/* ── Celular: escena compacta (todo escala con el font-size) ── */
@media (max-width: 600px) {
	.pubh { --cy: 78%; }
	.pubh__in { gap: 28px; padding-top: calc(96px + 20px); padding-bottom: 40px; }
	.pubh__ceja { margin-bottom: 18px; font-size: 12px; }
	.pubh h1 { font-size: clamp(36px, 10.6vw, 52px); }
	.pubh__lead { margin-top: 16px; font-size: 16px; }
	.pubh__acc { margin-top: 24px; }
	.pubh__cta, .pubh__sec { flex: 1 1 100%; }
	.pubh__canales { margin-top: 22px; gap: 6px; }
	.pubh__canales li { padding: 5px 10px 5px 9px; font-size: 12px; }
	.pubh__promesas { gap: 4px 14px; margin-top: 18px; padding-top: 14px; font-size: 13px; }
	.pubh__escena { height: 40em; font-size: min(2.7vw, 13px); }
	.pubh-g { top: 4.6em; width: 82%; padding: 1.1em; }
	.pubh-f { left: 0; top: 2em; width: 20em; }
	.pubh__tel { right: 0; width: 14em; }
	.pubh__aviso { left: -46%; }
	.pubh__ventas { left: 0; bottom: .5em; width: 16em; }
	.pubh__mas { right: -.8em; }
	.pubh__barras i:nth-child(odd) { display: none; }
	.pubh__ondas i { width: 100px; height: 100px; margin: -50px 0 0 -50px; }
	.pubh__diana { background: repeating-radial-gradient(circle, transparent 0 39px, rgba(255, 255, 255, .075) 39px 40px); }
}

@media (prefers-reduced-motion: reduce) {
	.pubh *, .pubh *::before, .pubh *::after { animation: none !important; transition: none !important; }
	.pubh__ondas { display: none; }
}
