/* pub-transparencia — «Tu dinero, a la vista» (/publicidad/). Fondo blanco (entre el simulador oscuro y el proceso crema).
   Flujo: tarjeta (vertical en escritorio) de la que salen dos vías con monedas que viajan (translate) a sus destinos.
   En celular la tarjeta va arriba y las dos vías bajan en paralelo. .is-pausa congela las monedas fuera de pantalla. */

.pubt { --pubt-borde: #ECE5DD; --pubt-gris: #5F595B; background: #fff; color: var(--ink); }
.pubt__in { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 112px) var(--m); }

.pubt__cab { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.pubt__ceja { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #EEF9DC; color: #2F4D0B; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pubt__ceja::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5E9A16; box-shadow: 0 0 0 4px rgba(94, 154, 22, .18); }
.pubt h2 { font-size: clamp(32px, 4.2vw, 60px); }
.pubt__cab > p:last-child { max-width: 52ch; margin: 16px auto 0; color: var(--pubt-gris); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }

/* ── Flujo ── */
.pubt__flujo { display: grid; grid-template-columns: clamp(190px, 18vw, 240px) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px 0; align-items: center; padding: clamp(22px, 3vw, 44px); border-radius: clamp(24px, 2.6vw, 36px); background: #FAF7F3; box-shadow: inset 0 0 0 1px #F0EAE3; }
.pubt__tarjeta { position: relative; z-index: 1; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 300px; padding: 22px; overflow: hidden; border-radius: 22px; background: radial-gradient(120% 70% at 100% 0%, rgba(255, 91, 35, .85), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(210, 251, 140, .35), transparent 70%), #161314; color: #fff; box-shadow: 0 30px 50px -28px rgba(18, 16, 17, .7), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pubt__tarjeta::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 100% 0%, transparent 0 23px, rgba(255, 255, 255, .06) 23px 24px); }
.pubt__chip-t { position: absolute; left: 22px; top: 22px; width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #F4D9A6, #C9A462); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pubt__chip-t::before { content: ""; position: absolute; inset: 7px 0; border-block: 1px solid rgba(0, 0, 0, .2); }
.pubt__tarjeta small { position: relative; color: rgba(255, 255, 255, .7); font-size: 13px; }
.pubt__tarjeta > b { position: relative; font-size: 20px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.pubt__marca { position: absolute; right: 22px; top: 24px; display: flex; }
.pubt__marca i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.pubt__marca i + i { margin-left: -10px; background: rgba(255, 255, 255, .45); }

.pubt__fila { display: grid; grid-template-columns: minmax(48px, 1fr) minmax(0, 360px); align-items: center; }

/* Vías con monedas */
.pubt__via { position: relative; height: 40px; }
.pubt__via::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #DCD2C7 0 6px, transparent 6px 12px); }
.pubt__via > span { position: absolute; inset: 0; animation: pubt-flujo 2.7s linear infinite; will-change: transform, opacity; }
.pubt__via > span:nth-child(2) { animation-delay: -.9s; }
.pubt__via > span:nth-child(3) { animation-delay: -1.8s; }
.pubt__via i { position: absolute; left: -11px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 91, 35, .16), 0 4px 10px -2px rgba(255, 91, 35, .6); }
.pubt__via i::before { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 12px/1 var(--f); }
.pubt__via--b i { background: var(--lima); box-shadow: 0 0 0 4px rgba(210, 251, 140, .35), 0 4px 10px -2px rgba(94, 154, 22, .5); }
.pubt__via--b i::before { color: var(--noche); }
@keyframes pubt-flujo { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }

/* Destinos */
.pubt__dest { position: relative; display: grid; gap: 4px; padding: 22px 22px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--pubt-borde), 0 20px 40px -30px rgba(18, 16, 17, .4); }
.pubt__dest::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.pubt__dest--b::before { background: #8DC63F; }
.pubt__dest small { color: var(--pubt-gris); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pubt__dest > b { padding-right: 52px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.pubt__dest p { color: var(--pubt-gris); font-size: 15px; line-height: 1.45; }
.pubt__glifos { position: absolute; right: 22px; top: 22px; display: grid; grid-template-columns: repeat(2, 10px); gap: 4px; }
.pubt__glifos i { width: 10px; height: 10px; border-radius: 50%; background: #2D6CDF; }
.pubt__glifos i:nth-child(2) { background: #E5483B; } .pubt__glifos i:nth-child(3) { background: #F5B92E; } .pubt__glifos i:nth-child(4) { background: #2E9E5B; }
.pubt__m { position: absolute; right: 20px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--noche); color: var(--lima); font: 800 21px/1 'Marko Display', var(--f); }
.pubt__vivo { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #FAF7F3; box-shadow: inset 0 0 0 1px var(--pubt-borde); color: var(--pubt-gris); font-size: 13px; }
.pubt__vivo i { width: 7px; height: 7px; border-radius: 50%; background: #5E9A16; animation: pubt-late 1.6s ease-in-out infinite; }
.pubt__vivo b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes pubt-late { 50% { opacity: .3; } }

/* ── Compromisos ── */
.pubt__comp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 40px); }
.pubt__comp li { display: grid; align-content: start; gap: 6px; padding: 4px 4px 0 18px; border-left: 2px solid var(--pubt-borde); transition: border-color .4s; }
.pubt__comp li:hover { border-color: var(--accent); }
.pubt__comp li > i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 13px; background: #FFF1E9; color: var(--accent); }
.pubt__comp li:nth-child(even) > i { background: #EEF9DC; color: #4B7A12; }
.pubt__comp b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.pubt__comp span { color: var(--pubt-gris); font-size: 15px; line-height: 1.45; }

.pubt.is-pausa *, .pubt.is-pausa *::before { animation-play-state: paused !important; }

/* ── Tablet ── */
@media (max-width: 960px) {
	.pubt__comp { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}

/* ── Celular: tarjeta arriba (horizontal) y las dos vías bajando en paralelo ── */
@media (max-width: 680px) {
	.pubt__in { padding-top: 52px; padding-bottom: 52px; }
	.pubt__cab { margin-bottom: 24px; }
	.pubt__cab > p:last-child { font-size: 15.5px; }
	.pubt__flujo { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0 10px; padding: 14px; }
	.pubt__tarjeta { grid-column: 1 / -1; grid-row: 1; min-height: 0; height: 118px; padding: 16px; border-radius: 18px; }
	.pubt__chip-t { left: 16px; top: 16px; width: 34px; height: 25px; }
	.pubt__marca { right: 16px; top: 18px; }
	.pubt__tarjeta > b { font-size: 17px; }
	.pubt__fila { grid-row: 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-self: stretch; }
	.pubt__via { height: 44px; }
	.pubt__via::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; background: repeating-linear-gradient(180deg, #DCD2C7 0 5px, transparent 5px 10px); }
	.pubt__via > span { animation-name: pubt-baja; animation-duration: 1.9s; }
	.pubt__via > span:nth-child(2) { animation-delay: -.63s; }
	.pubt__via > span:nth-child(3) { animation-delay: -1.26s; }
	.pubt__via i { left: 50%; top: -9px; width: 18px; height: 18px; margin: 0 0 0 -9px; }
	.pubt__via i::before { font-size: 10px; }
	.pubt__dest { height: 100%; align-content: start; gap: 3px; padding: 16px 12px 14px; border-radius: 16px; }
	.pubt__dest::before { left: 12px; right: 12px; }
	.pubt__dest small { font-size: 12px; letter-spacing: .04em; }
	.pubt__dest > b { padding-right: 0; font-size: 15px; }
	.pubt__dest p { font-size: 13px; }
	.pubt__glifos, .pubt__m { display: none; }
	.pubt__vivo { gap: 5px; padding: 5px 8px; font-size: 11px; }
	/* compromisos: filas compactas (ícono a la izquierda) */
	.pubt__comp { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 22px; }
	.pubt__comp li { grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-left: 0; border-top: 1px solid var(--pubt-borde); }
	.pubt__comp li:first-child { border-top: 0; }
	.pubt__comp li > i { grid-row: span 2; width: 36px; height: 36px; margin: 2px 0 0; border-radius: 11px; }
	.pubt__comp li > i svg { width: 18px; height: 18px; }
	.pubt__comp b { font-size: 15px; }
	.pubt__comp span { font-size: 13.5px; }
}
@keyframes pubt-baja { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
	.pubt *, .pubt *::before { animation: none !important; transition: none !important; }
	.pubt__via > span:nth-child(1) { transform: translateX(30%); }
	.pubt__via > span:nth-child(2) { transform: translateX(65%); }
	.pubt__via > span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 680px) {
	.pubt__via > span:nth-child(1) { transform: translateY(30%); }
	.pubt__via > span:nth-child(2) { transform: translateY(70%); }
}
