{"id":459,"date":"2022-03-29T03:39:59","date_gmt":"2022-03-29T03:39:59","guid":{"rendered":"https:\/\/radiohuancayo.com.pe\/wp54\/?page_id=459"},"modified":"2026-09-22T09:59:59","modified_gmt":"2026-09-22T14:59:59","slug":"programacion","status":"publish","type":"page","link":"https:\/\/radiohuancayo.com.pe\/wp54\/programacion\/","title":{"rendered":"Programaci\u00f3n"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"459\" class=\"elementor elementor-459\">\n\t\t\t\t\t\t<section data-marvy_enable_drop_animation=\"false\" data-marvy_enable_fancy_rotate=\"false\" data-marvy_enable_flying_object=\"false\" data-marvy_enable_ripples_animation=\"false\" data-marvy_enable_waves_animation=\"false\" data-marvy_enable_rings_animation=\"false\" data-marvy_enable_topology_animation=\"false\" data-marvy_enable_gradient_animation=\"false\" data-marvy_enable_snow_animation=\"false\" data-marvy_enable_firework_animation=\"false\" data-marvy_enable_cloud_animation=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-09b8855 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-column-slider-no wpr-equal-height-no\" data-id=\"09b8855\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7753e61\" data-id=\"7753e61\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5cc0a9c elementor-widget elementor-widget-html\" data-id=\"5cc0a9c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- CONTENEDOR PRINCIPAL EMBED WORDPRESS -->\n<div class=\"wp-schedule-embed\">\n    <div class=\"wp-schedule-card\">\n        \n        <!-- ENCABEZADO CON RELOJ Y PROGRAMA ACTUAL AL AIRE -->\n        <div class=\"wp-live-banner\">\n            <div class=\"wp-banner-top\">\n                <span class=\"wp-live-badge\"><span class=\"wp-live-dot\"><\/span> EN VIVO AHORA<\/span>\n                <span class=\"wp-clock\" id=\"wp-clock\">00:00:00<\/span>\n            <\/div>\n            <div class=\"wp-current-info\">\n                <h3 id=\"wp-current-title\">Cargando programa...<\/h3>\n                <p id=\"wp-current-host\">Conductor: --<\/p>\n            <\/div>\n            <div class=\"wp-date\" id=\"wp-date\">--<\/div>\n        <\/div>\n\n        <!-- PESTA\u00d1AS D\u00cdAS DE LA SEMANA -->\n        <div class=\"wp-tabs\">\n            <button class=\"wp-tab-btn\" id=\"tab-weekday\" onclick=\"wpSelectTab('weekday')\">Lun - Vie<\/button>\n            <button class=\"wp-tab-btn\" id=\"tab-saturday\" onclick=\"wpSelectTab('saturday')\">S\u00e1bado<\/button>\n            <button class=\"wp-tab-btn\" id=\"tab-sunday\" onclick=\"wpSelectTab('sunday')\">Domingo<\/button>\n        <\/div>\n\n        <!-- LISTA DE PROGRAMAS DE LA PESTA\u00d1A SELECCIONADA -->\n        <ul class=\"wp-program-list\" id=\"wp-program-list\">\n            <!-- Renderizado din\u00e1mico v\u00eda JS -->\n        <\/ul>\n\n    <\/div>\n<\/div>\n\n<!-- ESTILOS CSS AISLADOS -->\n<style>\n    .wp-schedule-embed {\n        width: 100%;\n        max-width: 95%;\n        margin: 20px auto;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif !important;\n        color: #f3f4f6;\n    }\n\n    .wp-schedule-card {\n        background: #111827;\n        border-radius: 16px;\n        padding: 20px;\n        box-shadow: 0 10px 25px rgba(0,0,0,0.3);\n        border: 1px solid #1f2937;\n        box-sizing: border-box;\n    }\n\n    .wp-schedule-card * {\n        box-sizing: border-box;\n        margin: 0;\n        padding: 0;\n    }\n\n    \/* Banner En Vivo *\/\n    .wp-live-banner {\n        background: linear-gradient(135deg, #1e1b4b, #312e81);\n        border-radius: 12px;\n        padding: 16px;\n        margin-bottom: 20px;\n        border: 1px solid #4338ca;\n    }\n\n    .wp-banner-top {\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n        margin-bottom: 10px;\n    }\n\n    .wp-live-badge {\n        display: inline-flex;\n        align-items: center;\n        gap: 6px;\n        background-color: #ef4444;\n        color: #ffffff;\n        padding: 4px 10px;\n        border-radius: 20px;\n        font-size: 0.7rem;\n        font-weight: 700;\n        letter-spacing: 0.5px;\n    }\n\n    .wp-live-dot {\n        width: 6px;\n        height: 6px;\n        background-color: #ffffff;\n        border-radius: 50%;\n        animation: wpPulse 1.2s infinite;\n    }\n\n    .wp-clock {\n        font-size: 1.1rem;\n        font-weight: 700;\n        color: #38bdf8;\n        font-family: monospace;\n    }\n\n    .wp-current-info h3 {\n        font-size: 1.25rem !important;\n        font-weight: 700 !important;\n        color: #ffffff !important;\n        margin-bottom: 4px !important;\n    }\n\n    .wp-current-info p {\n        font-size: 0.88rem !important;\n        color: #c7d2fe !important;\n    }\n\n    .wp-date {\n        font-size: 0.75rem;\n        color: #818cf8;\n        margin-top: 8px;\n        text-transform: capitalize;\n    }\n\n    \/* Pesta\u00f1as *\/\n    .wp-tabs {\n        display: flex;\n        gap: 8px;\n        background: #1f2937;\n        padding: 4px;\n        border-radius: 10px;\n        margin-bottom: 16px;\n    }\n\n    .wp-tab-btn {\n        flex: 1;\n        padding: 8px 12px;\n        border: none;\n        background: transparent;\n        color: #9ca3af;\n        font-size: 0.85rem;\n        font-weight: 600;\n        border-radius: 8px;\n        cursor: pointer;\n        transition: all 0.2s ease;\n    }\n\n    .wp-tab-btn:hover {\n        color: #ffffff;\n    }\n\n    .wp-tab-btn.active {\n        background: #374151;\n        color: #38bdf8;\n        box-shadow: 0 2px 4px rgba(0,0,0,0.2);\n    }\n\n    \/* Lista de Programas *\/\n    .wp-program-list {\n        list-style: none !important;\n        display: flex;\n        flex-direction: column;\n        gap: 10px;\n        max-height: 600px;\n        overflow-y: auto;\n        padding-right: 4px;\n    }\n\n    .wp-program-item {\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n        background: #1f2937;\n        padding: 12px 14px;\n        border-radius: 10px;\n        border-left: 4px solid #4b5563;\n        transition: transform 0.2s ease;\n    }\n\n    .wp-program-item.is-live {\n        background: #1e293b;\n        border-left-color: #22c55e;\n        box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);\n    }\n\n    .wp-prog-details {\n        display: flex;\n        flex-direction: column;\n        gap: 3px;\n    }\n\n    .wp-prog-title {\n        font-size: 0.95rem;\n        font-weight: 600;\n        color: #f9fafb;\n    }\n\n    .wp-prog-host {\n        font-size: 0.8rem;\n        color: #9ca3af;\n    }\n\n    .wp-prog-meta {\n        display: flex;\n        flex-direction: column;\n        align-items: flex-end;\n        gap: 4px;\n    }\n\n    .wp-prog-time {\n        font-size: 0.8rem;\n        font-weight: 620;\n        color: #38bdf8;\n        background: #111827;\n        padding: 3px 8px;\n        border-radius: 6px;\n    }\n\n    .wp-live-tag {\n        font-size: 0.65rem;\n        font-weight: 700;\n        color: #22c55e;\n        text-transform: uppercase;\n        letter-spacing: 0.5px;\n    }\n\n    @keyframes wpPulse {\n        0% { opacity: 1; transform: scale(1); }\n        50% { opacity: 0.3; transform: scale(1.2); }\n        100% { opacity: 1; transform: scale(1); }\n    }\n<\/style>\n\n<!-- L\u00d3GICA EN JAVASCRIPT -->\n<script>\n(function() {\n    \/\/ PARRILLAS DE PROGRAMACI\u00d3N (Nombre, Conductor, Inicio, Fin)\n    const scheduleWeekday = [\n        { title: \"Madrugadas RH\", host: \"Dj Sapito\", start: \"00:00\", end: \"04:00\" },\n        { title: \"La Hora del Gallo\", host: \"Bertoni Macha\", start: \"04:00\", end: \"06:00\" },\n        { title: \"Huancayo Noticias\", host: \"Mayela Huam\u00e1n y Johairo D\u00edaz\", start: \"06:00\", end: \"09:00\" },\n        { title: \"K tal Ma\u00f1ana\", host: \"Luis Calixto\", start: \"09:00\", end: \"12:00\" },\n        { title: \"De Buena Onda\", host: \"Mart\u00edn Mantari\", start: \"12:00\", end: \"15:00\" },\n        { title: \"A Toda Radio\", host: \"Michel S\u00e1nchez\", start: \"15:00\", end: \"18:00\" },\n        { title: \"Extrovertidos\", host: \"Edison Santana\", start: \"18:00\", end: \"21:00\" },\n        { title: \"Templaditos\", host: \"Augusto Pe\u00f1a\", start: \"21:00\", end: \"23:59\" }\n    ];\n\n    const scheduleSaturday = [\n        { title: \"Madrugadas RH\", host: \"Dj Sapito\", start: \"00:00\", end: \"04:00\" },\n        { title: \"La Hora del Gallo\", host: \"Bertoni Macha\", start: \"04:00\", end: \"06:00\" },\n        { title: \"Huancayo Noticias\", host: \"Mayela Huam\u00e1n y Johairo D\u00edaz\", start: \"06:00\", end: \"09:00\" },\n        { title: \"Ranking de la Semana\", host: \"Mart\u00edn Mantari\", start: \"09:00\", end: \"12:00\" },\n        { title: \"A Toda Radio\", host: \"Michel S\u00e1nchez\", start: \"12:00\", end: \"15:00\" },\n        { title: \"En Acci\u00f3n\", host: \"Victor Solano\", start: \"15:00\", end: \"18:00\" },\n        { title: \"Atrapados\", host: \"Estheffany Espinal\", start: \"18:00\", end: \"21:00\" },\n        { title: \"Discoteca Uno\", host: \"Dj Sapito\", start: \"21:00\", end: \"23:59\" }\n\n    ];\n\n    const scheduleSunday = [\n        { title: \"Madrugadas RH\", host: \"Dj Sapito\", start: \"00:00\", end: \"04:00\" },\n        { title: \"La Hora del Gallo\", host: \"Noemi Laime\", start: \"04:00\", end: \"06:00\" },\n        { title: \"El Ma\u00f1anero\", host: \"Luis Calixto\", start: \"06:00\", end: \"09:00\" },\n        { title: \"La Pachamanca del Domingo\", host: \"Edison Santana\", start: \"09:00\", end: \"12:00\" },\n        { title: \"Atrapados\", host: \"Estheffany Espinal\", start: \"12:00\", end: \"15:00\" },\n        { title: \"En Acci\u00f3n\", host: \"Victor Solano\", start: \"15:00\", end: \"18:00\" },\n        { title: \"Activados\", host: \"Augusto Pe\u00f1a\", start: \"18:00\", end: \"21:00\" },\n        { title: \"Templaditos\", host: \"C\u00e9sar Balde\u00f3n\", start: \"21:00\", end: \"23:59\" }\n    ];\n\n    let currentTab = 'weekday'; \/\/ 'weekday', 'saturday', 'sunday'\n\n    function getTimeObj(timeStr) {\n        const [h, m] = timeStr.split(':').map(Number);\n        const d = new Date();\n        d.setHours(h, m, 0, 0);\n        return d;\n    }\n\n    function pad(n) { return n < 10 ? '0' + n : n; }\n\n    function getScheduleByDay(dayNum) {\n        if (dayNum === 0) return { key: 'sunday', list: scheduleSunday };\n        if (dayNum === 6) return { key: 'saturday', list: scheduleSaturday };\n        return { key: 'weekday', list: scheduleWeekday };\n    }\n\n    function getScheduleByKey(key) {\n        if (key === 'sunday') return scheduleSunday;\n        if (key === 'saturday') return scheduleSaturday;\n        return scheduleWeekday;\n    }\n\n    \/\/ Cambiar de pesta\u00f1a manualmente\n    window.wpSelectTab = function(tabKey) {\n        currentTab = tabKey;\n        document.querySelectorAll('.wp-tab-btn').forEach(btn => btn.classList.remove('active'));\n        const activeBtn = document.getElementById(`tab-${tabKey}`);\n        if (activeBtn) activeBtn.classList.add('active');\n        renderList();\n    };\n\n    function renderList() {\n        const listEl = document.getElementById('wp-program-list');\n        if (!listEl) return;\n\n        const now = new Date();\n        const todayDayNum = now.getDay();\n        const todaySchedule = getScheduleByDay(todayDayNum);\n\n        const listToRender = getScheduleByKey(currentTab);\n        listEl.innerHTML = '';\n\n        listToRender.forEach(prog => {\n            const start = getTimeObj(prog.start);\n            const end = getTimeObj(prog.end);\n            \n            \/\/ Verificar si este programa es EN VIVO en este instante\n            const isLive = (currentTab === todaySchedule.key) && (now >= start && now < end);\n\n            const li = document.createElement('li');\n            li.className = `wp-program-item ${isLive ? 'is-live' : ''}`;\n            li.innerHTML = `\n                <div class=\"wp-prog-details\">\n                    <span class=\"wp-prog-title\">${prog.title}<\/span>\n                    <span class=\"wp-prog-host\">\ud83c\udf99\ufe0f Conduce: ${prog.host}<\/span>\n                <\/div>\n                <div class=\"wp-prog-meta\">\n                    <span class=\"wp-prog-time\">${prog.start} - ${prog.end}<\/span>\n                    ${isLive ? '<span class=\"wp-live-tag\">\u25cf Al Aire<\/span>' : ''}\n                <\/div>\n            `;\n            listEl.appendChild(li);\n        });\n    }\n\n    function updateClockAndLive() {\n        const now = new Date();\n\n        \/\/ 1. Reloj\n        const clockEl = document.getElementById('wp-clock');\n        if (clockEl) {\n            clockEl.textContent = `${pad(now.getHours())}:${pad(now.getMinutes())}:${pad(now.getSeconds())}`;\n        }\n\n        \/\/ 2. Fecha\n        const dateEl = document.getElementById('wp-date');\n        if (dateEl) {\n            const options = { weekday: 'long', day: 'numeric', month: 'long' };\n            dateEl.textContent = now.toLocaleDateString('es-ES', options);\n        }\n\n        \/\/ 3. Obtener programa activo del d\u00eda de hoy\n        const todaySchedule = getScheduleByDay(now.getDay());\n        let liveProg = null;\n\n        for (let prog of todaySchedule.list) {\n            const start = getTimeObj(prog.start);\n            const end = getTimeObj(prog.end);\n            if (now >= start && now < end) {\n                liveProg = prog;\n                break;\n            }\n        }\n\n        \/\/ 4. Actualizar Banner \"En Vivo\"\n        const titleEl = document.getElementById('wp-current-title');\n        const hostEl = document.getElementById('wp-current-host');\n\n        if (liveProg) {\n            if (titleEl) titleEl.textContent = liveProg.title;\n            if (hostEl) hostEl.textContent = `Conduce: ${liveProg.host}`;\n        } else {\n            if (titleEl) titleEl.textContent = \"Fuera de Transmisi\u00f3n\";\n            if (hostEl) hostEl.textContent = \"Conduce: --\";\n        }\n\n        \/\/ Actualizar lista si hay cambio de minuto\/estado\n        renderList();\n    }\n\n    \/\/ Inicializaci\u00f3n autom\u00e1tica\n    function init() {\n        const now = new Date();\n        const todaySchedule = getScheduleByDay(now.getDay());\n        \n        \/\/ Seleccionar pesta\u00f1a correspondiente al d\u00eda actual\n        wpSelectTab(todaySchedule.key);\n        \n        updateClockAndLive();\n        setInterval(updateClockAndLive, 1000);\n    }\n\n    if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', init);\n    } else {\n        init();\n    }\n})();\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>EN VIVO AHORA 00:00:00 Cargando programa&#8230; Conductor: &#8212; &#8212; Lun &#8211; Vie S\u00e1bado Domingo<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-459","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/pages\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":28,"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/pages\/459\/revisions"}],"predecessor-version":[{"id":31177,"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/pages\/459\/revisions\/31177"}],"wp:attachment":[{"href":"https:\/\/radiohuancayo.com.pe\/wp54\/wp-json\/wp\/v2\/media?parent=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}