<style> #counter{ background: #f6101d; color: #ffffff!important; display: inline-block; font-size: 20pt; font-weight: bold; margin: 0 auto; padding: 5px 0; text-align: center; vertical-align: middle; width: 100%; } #counter_item{ display: inline-block; margin: 0 10px; vertical-align: middle; width: 280px; } .count_number{ font-size: 18pt; font-weight: bold; line-height: 18pt; background: #43144d; border-color: #2c2c2c; border-radius: 10px; border-style: none; border-width: 2px; display: inline-block; margin: 0 2px; padding: 15px 0; vertical-align: middle; width: 65px; } .counter_text{ display: inline-block; vertical-align: middle; } @media(max-width:680px){ #counter_item{ display: block; margin: 0 auto 5px auto; } #counter{ display: block; margin: 10px auto 0 auto; width: 90%; } } @media(max-width:350px){ #counter_item{ width: 250px; } .count_number{ width: 55px; } .mbi-truck{ margin: 0 8px; font-size: 20px; vertical-align: middle; } } </style> <div id="counter"><span class="counter_text">25 al 30 de Septiembre <i class="mbi mbi-truck"></i> Delivery gratis en toda la web </span></div>
<style> #counter{ font-family: inherit !important; background: #1f0044 !important; color: #fff !important; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 1em; row-gap: .7em; font-size: 18px; font-weight: normal !important; line-height: 1.2; margin: 0 auto !important; padding: .8em 1em !important; text-align: center; width: 100% !important; box-sizing: border-box; } #counter .counter_text{ display: inline-block !important; color: #fff !important; white-space: nowrap; font-size: 1em; font-weight: 800; line-height: 1.2 !important; } #counter #counter_item{ display: inline-flex !important; align-items: center; gap: .5em; width: auto !important; margin: 0 !important; } #counter .count_number{ display: inline-flex !important; align-items: baseline; justify-content: center; gap: .35em; width: auto !important; min-width: 0; margin: 0 !important; padding: .7em .9em .6em !important; background: #3b0a7a !important; color: #fff !important; border-radius: .7em !important; line-height: 1 !important; white-space: nowrap; box-sizing: border-box; } #counter .count_number b{ font-size: 1.25em; font-weight: 800; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; } #counter .count_number small{ font-size: .65em; font-weight: 400; letter-spacing: .03em; } /* Tablet */ @media (max-width: 900px){ #counter{ font-size: 16px; } } /* Celular: texto arriba, cajas abajo ocupando todo el ancho */ @media (max-width: 640px){ #counter{ font-size: 15px; padding: .8em .6em !important; width: 100% !important; } #counter .counter_text:first-child{ order: 1; display: inline-block !important; } #counter .counter_text:last-child{ order: 2; } #counter #counter_item{ order: 3; display: flex !important; width: 100% !important; gap: .35em; } #counter .count_number{ flex: 1 1 0; padding: .7em .2em .6em !important; gap: .25em; } #counter .count_number b{ font-size: 1.2em; } #counter .count_number small{ font-size: .68em; } } /* Celulares muy angostos */ @media (max-width: 360px){ #counter{ font-size: 13px; } } </style> <div id="counter"><span class="counter_text">Faltan solo</span><span id="counter_item"></span><span class="counter_text">para el Cyberday</span></div> <script> (function () { // Fecha objetivo: 2 de noviembre de 2026, 00:00 (hora local del visitante) var target = new Date(2026, 10, 2, 0, 0, 0).getTime(); var item = document.getElementById('counter_item'); function pad(n) { return n < 10 ? '0' + n : '' + n; } function box(value, label) { return '<span class="count_number"><b>' + value + '</b><small>' + label + '</small></span>'; } function render(d, h, m, s) { item.innerHTML = box(d, 'Días') + box(h, 'Horas') + box(m, 'Min') + box(s, 'Seg'); } function update() { var diff = target - Date.now(); if (diff <= 0) { render('00', '00', '00', '00'); clearInterval(timer); return; } var days = Math.floor(diff / 86400000); var hours = Math.floor((diff % 86400000) / 3600000); var minutes = Math.floor((diff % 3600000) / 60000); var seconds = Math.floor((diff % 60000) / 1000); render(pad(days), pad(hours), pad(minutes), pad(seconds)); } update(); var timer = setInterval(update, 1000); })(); </script>