El Amor entre Pantallas y Redes Sociales
<style>
/* Efecto de titileo (pulse) para la alerta de precio */
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.price-alert {
display: inline-block;
animation: pulse 1.2s ease-in-out infinite;
}
</style>
<!-- BARRA DE URGENCIA + VISTAS DINÁMICAS -->
<div style="display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 15px;">
<span style="background: #ffe6e6; color: #d32f2f; padding: 6px 12px; border-radius: 4px; font-weight: bold; font-size: 14px;" class="price-alert"> ¡EL PRECIO ESTÁ POR SUBIR! </span> <span style="background: #f5f5f5; color: #555; padding: 6px 12px; border-radius: 4px; font-size: 14px;" id="viewers-count-container"> <span id="viewers-count">31</span> personas están viendo </span>
</div>
<!-- CONTADOR URGENCIA -->
<div id="urgency-box" style="background:#e63946; color:white; padding:20px; border-radius:12px; text-align:center; max-width:360px; margin:auto; box-shadow:0 4px 10px rgba(0,0,0,0.1);">
<h2 style="margin:0 0 8px; font-size:24px;">🔥 ¡OFERTA SOLO POR HOY!</h2>
<p style="margin:0 0 8px;">
Tu lugar solo está reservado por <strong>10 minutos</strong>,<br>
en caso de no acceder se cederá a otra persona.
</p>
<p style="margin:0 0 12px;">La oferta se termina en:</p>
<div id="countdown" style="font-size:48px; font-weight:bold; line-height:1;">10:00</div>
<p style="margin:4px 0; font-size:14px;">MINUTOS SEGUNDOS</p>
<button style="margin-top:12px; background:white; color:#e63946; font-weight:bold; padding:10px 20px; border:none; border-radius:8px; font-size:14px; cursor:pointer;">
¡AHORRÁ EL 50%!
</button>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var totalSeconds = 600; // 10 minutos
var countdownEl = document.getElementById('countdown');
function updateTimer() {
var m = Math.floor(totalSeconds / 60);
var s = totalSeconds % 60;
countdownEl.textContent = ('0' + m).slice(-2) + ':' + ('0' + s).slice(-2);
if (totalSeconds > 0) totalSeconds--;
}
updateTimer();
setInterval(updateTimer, 1000);
});
</script>