{"id":1170,"date":"2026-06-14T22:28:08","date_gmt":"2026-06-14T22:28:08","guid":{"rendered":"https:\/\/www.globalhealthmag.com\/?page_id=1170"},"modified":"2026-06-14T22:29:57","modified_gmt":"2026-06-14T22:29:57","slug":"paquete-de-estilo-de-vida-saludable","status":"publish","type":"page","link":"https:\/\/www.globalhealthmag.com\/es\/paquete-de-estilo-de-vida-saludable\/","title":{"rendered":"Paquete de estilo de vida saludable"},"content":{"rendered":"    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes\">\n    <style>\n    .hl-wrap, .hl-wrap *, .hl-wrap *::before, .hl-wrap *::after {\n        box-sizing: border-box; margin: 0; padding: 0;\n    }\n    .hl-wrap {\n        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n        width: 100%; max-width: 100%; overflow-x: hidden;\n        background: #fff; color: #1d1d35; line-height: 1.5; font-size: 16px;\n    }\n    .hl-header {\n        background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);\n        padding: 24px 16px; text-align: center; color: #fff;\n    }\n    .hl-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }\n    .hl-header p { font-size: 13px; color: rgba(255,255,255,0.8); }\n    .hl-disclaimer {\n        background: #fff3cd; border: 1px solid #ffc107;\n        padding: 12px 16px; font-size: 13px; color: #856404; line-height: 1.5;\n        display: flex; align-items: flex-start; gap: 8px;\n    }\n    .hl-tabs-outer {\n        background: #fff; border-bottom: 2px solid #e5e7eb;\n        overflow-x: auto; -webkit-overflow-scrolling: touch;\n        scrollbar-width: none; -ms-overflow-style: none;\n    }\n    .hl-tabs-outer::-webkit-scrollbar { display: none; }\n    .hl-tabs {\n        display: flex; min-width: max-content; padding: 0 8px;\n    }\n    .hl-tab {\n        font-size: 13px; font-weight: 600; color: #6b7280;\n        padding: 14px 16px; border: none; background: transparent;\n        cursor: pointer; white-space: nowrap;\n        border-bottom: 3px solid transparent; margin-bottom: -2px;\n        min-height: 48px; display: flex; align-items: center; gap: 6px;\n    }\n    .hl-tab:hover { color: #1d1d35; }\n    .hl-tab.active { color: #2e7d32; border-bottom-color: #2e7d32; }\n    .hl-tab-icon { font-size: 18px; flex-shrink: 0; }\n\n    .hl-body { background: #f7f8fa; padding: 16px; min-height: 300px; }\n    .hl-panel { display: none; }\n    .hl-panel.active { display: block; }\n\n    .hl-card {\n        background: #fff; border-radius: 16px; border: 1px solid #e5e7eb;\n        padding: 20px 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);\n    }\n    .hl-card-header {\n        display: flex; align-items: center; gap: 12px; margin-bottom: 16px;\n        padding-bottom: 16px; border-bottom: 2px solid #f3f4f6;\n    }\n    .hl-card-icon {\n        width: 48px; height: 48px; border-radius: 12px;\n        background: #e8f5e9; display: flex; align-items: center; justify-content: center;\n        font-size: 24px; flex-shrink: 0;\n    }\n    .hl-card-title { font-size: 18px; font-weight: 700; color: #1d1d35; }\n    .hl-card-sub { font-size: 12px; color: #9ca3af; font-weight: 500; }\n\n    .hl-input-group { margin-bottom: 16px; }\n    .hl-input-group label {\n        font-size: 12px; font-weight: 700; color: #9ca3af;\n        text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px;\n    }\n    .hl-input-group input, .hl-input-group select {\n        width: 100%; font-size: 16px; padding: 12px; border: 2px solid #e5e7eb;\n        border-radius: 10px; min-height: 48px; outline: none;\n        background: #fff; -webkit-appearance: none; appearance: none;\n    }\n    .hl-input-group select {\n        background-image: url(\"data:image\/svg+xml,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'\/%3E%3C\/svg%3E\");\n        background-repeat: no-repeat; background-position: right 12px center;\n        padding-right: 32px;\n    }\n    .hl-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }\n    @media (max-width: 400px) { .hl-input-row { grid-template-columns: 1fr; } }\n\n    .hl-btn {\n        width: 100%; padding: 14px; background: #2e7d32; color: #fff;\n        border: none; border-radius: 12px; font-size: 16px; font-weight: 700;\n        cursor: pointer; margin-top: 12px; min-height: 48px;\n    }\n    .hl-result {\n        background: #e8f5e9; border-radius: 16px; padding: 20px;\n        margin-top: 16px; border-left: 4px solid #2e7d32;\n    }\n    .hl-result-title { font-size: 14px; font-weight: 700; color: #1b5e20; text-transform: uppercase; }\n    .hl-result-value { font-size: 36px; font-weight: 800; color: #1b5e20; line-height: 1.1; }\n    .hl-result-label { font-size: 14px; color: #6b7280; margin-top: 4px; }\n    .hl-badge {\n        display: inline-block; padding: 6px 16px; border-radius: 20px;\n        font-size: 13px; font-weight: 700; margin-top: 10px;\n    }\n    .hl-badge.good { background: #d1fae5; color: #065f46; }\n    .hl-badge.warning { background: #fef3c7; color: #92400e; }\n    .hl-badge.bad { background: #fee2e2; color: #991b1b; }\n\n    .hl-summary {\n        background: #1b5e20; padding: 20px 16px; color: #fff;\n    }\n    .hl-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }\n    .hl-summary-grid {\n        display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n        gap: 10px;\n    }\n    .hl-sum-card {\n        background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);\n        border-radius: 12px; padding: 14px 12px; text-align: center;\n    }\n    .hl-sum-val { font-size: 20px; font-weight: 800; color: #a5d6a7; }\n    .hl-sum-lbl { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-top: 4px; }\n\n    .hl-footer {\n        background: #0a3d0c; padding: 14px 16px;\n        font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.6;\n    }\n\n    @media (min-width: 768px) {\n        .hl-body { padding: 24px 32px; }\n        .hl-card { padding: 24px 28px; }\n        .hl-tab { padding: 16px 20px; font-size: 14px; }\n    }\n    <\/style>\n\n    <div class=\"hl-wrap\" id=\"hlSuite\">\n        <div class=\"hl-header\">\n            <h2>\ud83c\udf3f Healthy Lifestyle Suite<\/h2>\n            <p>Track habits, measure wellness, and improve your daily life<\/p>\n        <\/div>\n        <div class=\"hl-disclaimer\">\n            <span>\u26a0\ufe0f<\/span>\n            <span><strong>Disclaimer:<\/strong> These tools are for general wellness guidance and do not replace professional medical advice. Always consult a healthcare provider for personalized recommendations.<\/span>\n        <\/div>\n\n        <div class=\"hl-tabs-outer\">\n            <div class=\"hl-tabs\" id=\"hlTabRow\">\n                <button class=\"hl-tab active\" data-tab=\"habits\"><span class=\"hl-tab-icon\">\u2705<\/span>Habit Tracker<\/button>\n                <button class=\"hl-tab\" data-tab=\"aging\"><span class=\"hl-tab-icon\">\u23f3<\/span>Healthy Aging<\/button>\n                <button class=\"hl-tab\" data-tab=\"screentime\"><span class=\"hl-tab-icon\">\ud83d\udcf1<\/span>Screen Time<\/button>\n                <button class=\"hl-tab\" data-tab=\"wellness\"><span class=\"hl-tab-icon\">\ud83c\udf08<\/span>Wellness Score<\/button>\n                <button class=\"hl-tab\" data-tab=\"hydration\"><span class=\"hl-tab-icon\">\ud83d\udca7<\/span>Hydration<\/button>\n                <button class=\"hl-tab\" data-tab=\"sitting\"><span class=\"hl-tab-icon\">\ud83e\ude91<\/span>Sitting Time<\/button>\n                <button class=\"hl-tab\" data-tab=\"lifeexpectancy\"><span class=\"hl-tab-icon\">\ud83e\uddec<\/span>Life Expectancy<\/button>\n                <button class=\"hl-tab\" data-tab=\"lifestyle\"><span class=\"hl-tab-icon\">\ud83e\uddd8<\/span>Lifestyle Assessment<\/button>\n            <\/div>\n        <\/div>\n\n        <div class=\"hl-body\">\n            <div class=\"hl-panel active\" id=\"hl-panel-habits\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-aging\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-screentime\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-wellness\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-hydration\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-sitting\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-lifeexpectancy\"><\/div>\n            <div class=\"hl-panel\" id=\"hl-panel-lifestyle\"><\/div>\n        <\/div>\n\n        <div class=\"hl-summary\" id=\"hlSummary\">\n            <h3>\ud83d\udccb Your Lifestyle Dashboard<\/h3>\n            <div class=\"hl-summary-grid\" id=\"hlSummaryGrid\">\n                <div class=\"hl-sum-card\"><div class=\"hl-sum-val\">\u2014<\/div><div class=\"hl-sum-lbl\">Start exploring<\/div><\/div>\n            <\/div>\n        <\/div>\n        <div class=\"hl-footer\">\n            <strong>References:<\/strong> WHO healthy aging guidelines, CDC screen time recommendations, standard wellness scores. | <strong>GlobalHealthMag.com<\/strong>\n        <\/div>\n    <\/div>\n\n    <script>\n    (function() {\n        var suite = document.getElementById('hlSuite');\n        if (!suite) return;\n        var hlData = {};\n        function $(id) { return document.getElementById(id); }\n\n        \/\/ ---- Daily Habit Tracker ----\n        $('hl-panel-habits').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\u2705<\/div><div><div class=\"hl-card-title\">Daily Habit Tracker<\/div><div class=\"hl-card-sub\">Check off your healthy habits<\/div><\/div><\/div>\n            <div id=\"habit-checks\"><\/div>\n            <button class=\"hl-btn\" id=\"calcHabits\">Calculate Score<\/button>\n            <div id=\"habits-result\"><\/div>\n        <\/div>`;\n        var habitsList = [\"Drank enough water\",\"Ate fruits\/vegetables\",\"Exercised 30+ min\",\"Slept 7-9 hours\",\"No smoking\",\"Limited alcohol\",\"Took breaks from sitting\",\"Practiced gratitude\"];\n        var habitHTML = '';\n        habitsList.forEach(function(h, i) {\n            habitHTML += '<div style=\"display:flex;align-items:center;gap:10px;margin-bottom:8px;\"><input type=\"checkbox\" id=\"habit-'+i+'\" style=\"width:20px;height:20px;\"><label for=\"habit-'+i+'\" style=\"font-size:15px;\">'+h+'<\/label><\/div>';\n        });\n        $('habit-checks').innerHTML = habitHTML;\n        $('calcHabits').addEventListener('click', function() {\n            var count = 0;\n            for (var i=0; i<habitsList.length; i++) { if ($('habit-'+i).checked) count++; }\n            var pct = Math.round(count\/habitsList.length*100);\n            var msg = pct>=80 ? 'Excellent habits! \ud83c\udf1f' : pct>=50 ? 'Good progress \ud83d\udcaa' : 'Room for improvement \ud83c\udf31';\n            hlData.habits = pct+'%';\n            $('habits-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Daily Habit Score<\/div>\n                <div class=\"hl-result-value\">${pct}%<\/div>\n                <div class=\"hl-badge ${pct>=80?'good':pct>=50?'warning':'bad'}\">${msg}<\/div>\n                <div class=\"hl-result-label\">${count} of ${habitsList.length} healthy habits completed<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Healthy Aging Calculator ----\n        $('hl-panel-aging').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\u23f3<\/div><div><div class=\"hl-card-title\">Healthy Aging Score<\/div><div class=\"hl-card-sub\">Based on lifestyle & biometrics<\/div><\/div><\/div>\n            <div class=\"hl-input-row\">\n                <div class=\"hl-input-group\"><label>Age<\/label><input type=\"number\" id=\"age-age\" value=\"45\" min=\"18\"><\/div>\n                <div class=\"hl-input-group\"><label>BMI<\/label><input type=\"number\" id=\"age-bmi\" value=\"24\" step=\"0.1\"><\/div>\n            <\/div>\n            <div class=\"hl-input-group\"><label>Exercise (days\/week)<\/label><input type=\"number\" id=\"age-exercise\" value=\"3\" min=\"0\" max=\"7\"><\/div>\n            <div class=\"hl-input-group\"><label>Smoking<\/label><select id=\"age-smoke\"><option value=\"0\">Never<\/option><option value=\"1\">Former<\/option><option value=\"2\">Current<\/option><\/select><\/div>\n            <button class=\"hl-btn\" id=\"calcAging\">Estimate Biological Age<\/button>\n            <div id=\"aging-result\"><\/div>\n        <\/div>`;\n        $('calcAging').addEventListener('click', function() {\n            var age = parseInt($('age-age').value) || 45;\n            var bmi = parseFloat($('age-bmi').value) || 24;\n            var ex = parseInt($('age-exercise').value) || 0;\n            var smoke = parseInt($('age-smoke').value);\n            var bonus = 0;\n            if (bmi>=18.5 && bmi<25) bonus -= 2; else if (bmi>=30) bonus += 3;\n            bonus += (ex>=5 ? -3 : ex>=3 ? -1 : 2);\n            bonus += smoke*2;\n            var bioAge = age + bonus;\n            hlData.aging = bioAge + ' yrs';\n            $('aging-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Estimated Biological Age<\/div>\n                <div class=\"hl-result-value\">${bioAge} <span style=\"font-size:0.6em;\">years<\/span><\/div>\n                <div class=\"hl-badge ${bioAge<=age?'good':bioAge<=age+5?'warning':'bad'}\">${bioAge<=age?'Younger than calendar':'Older than calendar'}<\/div>\n                <div class=\"hl-result-label\">Chronological age: ${age}. Lifestyle adjustments can lower biological age.<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Screen Time Calculator ----\n        $('hl-panel-screentime').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\ud83d\udcf1<\/div><div><div class=\"hl-card-title\">Screen Time Assessment<\/div><div class=\"hl-card-sub\">Compare to recommended limits<\/div><\/div><\/div>\n            <div class=\"hl-input-group\"><label>Daily screen time (hours)<\/label><input type=\"number\" id=\"screen-hours\" value=\"6\" step=\"0.5\"><\/div>\n            <button class=\"hl-btn\" id=\"calcScreen\">Evaluate<\/button>\n            <div id=\"screen-result\"><\/div>\n        <\/div>`;\n        $('calcScreen').addEventListener('click', function() {\n            var h = parseFloat($('screen-hours').value) || 0;\n            var rec = 2; \/\/ hours for adults\n            var risk = h <= rec ? 'good' : h <= rec*2 ? 'warning' : 'bad';\n            var msg = h <= rec ? 'Within healthy limits' : 'Exceeds recommended time';\n            hlData.screentime = h + ' hrs';\n            $('screen-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Screen Time Evaluation<\/div>\n                <div class=\"hl-result-value\">${h} <span style=\"font-size:0.6em;\">hrs\/day<\/span><\/div>\n                <div class=\"hl-badge ${risk}\">${msg}<\/div>\n                <div class=\"hl-result-label\">CDC recommends less than 2 hours of recreational screen time for adults.<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Daily Wellness Score ----\n        $('hl-panel-wellness').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\ud83c\udf08<\/div><div><div class=\"hl-card-title\">Daily Wellness Score<\/div><div class=\"hl-card-sub\">Rate your day across key areas<\/div><\/div><\/div>\n            <div id=\"wellness-sliders\"><\/div>\n            <button class=\"hl-btn\" id=\"calcWellness\">Calculate Score<\/button>\n            <div id=\"wellness-result\"><\/div>\n        <\/div>`;\n        var wellnessAreas = [\"Sleep quality\",\"Mood\",\"Energy\",\"Physical activity\",\"Nutrition\",\"Social connection\",\"Stress management\",\"Mental focus\"];\n        var sliderHTML = '';\n        wellnessAreas.forEach(function(area, idx) {\n            sliderHTML += `<div style=\"margin-bottom:12px;\"><label style=\"font-weight:600;\">${area}<\/label><input type=\"range\" id=\"ws-${idx}\" min=\"0\" max=\"10\" value=\"7\" style=\"width:100%;\" oninput=\"this.nextElementSibling.textContent=this.value\"><span style=\"float:right;\">7<\/span><\/div>`;\n        });\n        $('wellness-sliders').innerHTML = sliderHTML;\n        $('calcWellness').addEventListener('click', function() {\n            var total=0;\n            for (var i=0; i<wellnessAreas.length; i++) { total += parseInt($('ws-'+i).value); }\n            var avg = (total\/wellnessAreas.length).toFixed(1);\n            var cls = avg>=8?'good':avg>=5?'warning':'bad';\n            hlData.wellness = avg + '\/10';\n            $('wellness-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Overall Wellness Score<\/div>\n                <div class=\"hl-result-value\">${avg} <span style=\"font-size:0.6em;\">\/10<\/span><\/div>\n                <div class=\"hl-badge ${cls}\">${avg>=8?'Thriving \ud83d\udc9a':avg>=5?'Okay \ud83c\udf3c':'Needs attention \ud83c\udf31'}<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Hydration Tracker ----\n        $('hl-panel-hydration').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\ud83d\udca7<\/div><div><div class=\"hl-card-title\">Hydration Tracker<\/div><div class=\"hl-card-sub\">Are you drinking enough?<\/div><\/div><\/div>\n            <div class=\"hl-input-group\"><label>Weight (kg)<\/label><input type=\"number\" id=\"hyd-weight\" value=\"68\" step=\"0.1\"><\/div>\n            <div class=\"hl-input-group\"><label>Water consumed today (liters)<\/label><input type=\"number\" id=\"hyd-consumed\" value=\"1.5\" step=\"0.1\"><\/div>\n            <button class=\"hl-btn\" id=\"calcHydration\">Check Hydration<\/button>\n            <div id=\"hydration-result\"><\/div>\n        <\/div>`;\n        $('calcHydration').addEventListener('click', function() {\n            var w = parseFloat($('hyd-weight').value) || 68;\n            var consumed = parseFloat($('hyd-consumed').value) || 0;\n            var needed = w * 0.033;\n            var pct = Math.round(consumed\/needed*100);\n            var status = pct>=90?'good':pct>=50?'warning':'bad';\n            hlData.hydration = consumed + ' \/ ' + needed.toFixed(1) + ' L';\n            $('hydration-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Hydration Status<\/div>\n                <div class=\"hl-result-value\">${pct}%<\/div>\n                <div class=\"hl-badge ${status}\">${pct>=90?'Well hydrated':pct>=50?'Could be better':'Dehydrated'}<\/div>\n                <div class=\"hl-result-label\">Recommended: ${needed.toFixed(1)} L\/day. You've had ${consumed} L.<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Sitting Time Calculator ----\n        $('hl-panel-sitting').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\ud83e\ude91<\/div><div><div class=\"hl-card-title\">Sitting Time Assessment<\/div><div class=\"hl-card-sub\">How sedentary are you?<\/div><\/div><\/div>\n            <div class=\"hl-input-group\"><label>Hours spent sitting per day<\/label><input type=\"number\" id=\"sit-hours\" value=\"8\" step=\"0.5\"><\/div>\n            <button class=\"hl-btn\" id=\"calcSitting\">Evaluate<\/button>\n            <div id=\"sitting-result\"><\/div>\n        <\/div>`;\n        $('calcSitting').addEventListener('click', function() {\n            var hrs = parseFloat($('sit-hours').value) || 8;\n            var risk = hrs<=4?'good':hrs<=8?'warning':'bad';\n            hlData.sitting = hrs + ' hrs';\n            $('sitting-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Sedentary Time<\/div>\n                <div class=\"hl-result-value\">${hrs} <span style=\"font-size:0.6em;\">hrs\/day<\/span><\/div>\n                <div class=\"hl-badge ${risk}\">${hrs<=4?'Low risk':hrs<=8?'Moderate risk':'High risk'}<\/div>\n                <div class=\"hl-result-label\">Excessive sitting is linked to health risks. Aim to break up sitting every 30\u201360 minutes.<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Life Expectancy Calculator ----\n        $('hl-panel-lifeexpectancy').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\ud83e\uddec<\/div><div><div class=\"hl-card-title\">Life Expectancy Estimator<\/div><div class=\"hl-card-sub\">Based on lifestyle factors<\/div><\/div><\/div>\n            <div class=\"hl-input-row\">\n                <div class=\"hl-input-group\"><label>Age<\/label><input type=\"number\" id=\"le-age\" value=\"40\" min=\"18\"><\/div>\n                <div class=\"hl-input-group\"><label>Sex<\/label><select id=\"le-sex\"><option value=\"male\">Male<\/option><option value=\"female\">Female<\/option><\/select><\/div>\n            <\/div>\n            <div class=\"hl-input-group\"><label>Exercise (days\/week)<\/label><input type=\"number\" id=\"le-exercise\" value=\"3\" min=\"0\" max=\"7\"><\/div>\n            <div class=\"hl-input-group\"><label>Smoking<\/label><select id=\"le-smoke\"><option value=\"0\">Never<\/option><option value=\"1\">Former<\/option><option value=\"2\">Current<\/option><\/select><\/div>\n            <div class=\"hl-input-group\"><label>Diet quality (1-10)<\/label><input type=\"number\" id=\"le-diet\" value=\"7\" min=\"1\" max=\"10\"><\/div>\n            <button class=\"hl-btn\" id=\"calcLife\">Estimate<\/button>\n            <div id=\"le-result\"><\/div>\n        <\/div>`;\n        $('calcLife').addEventListener('click', function() {\n            var age = parseInt($('le-age').value);\n            var sex = $('le-sex').value;\n            var base = sex==='male'?76:81;\n            var ex = parseInt($('le-exercise').value);\n            var smoke = parseInt($('le-smoke').value);\n            var diet = parseInt($('le-diet').value);\n            var adjust = (ex>=5?3:ex>=3?1:-2) + (smoke==0?2:smoke==1?0:-5) + (diet>=8?2:diet>=5?0:-3);\n            var estimated = base + adjust;\n            hlData.lifeexpectancy = estimated + ' yrs';\n            $('le-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Estimated Life Expectancy<\/div>\n                <div class=\"hl-result-value\">${estimated} <span style=\"font-size:0.6em;\">years<\/span><\/div>\n                <div class=\"hl-result-label\">Based on average baseline of ${base} years in your country, adjusted for lifestyle.<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        \/\/ ---- Healthy Lifestyle Assessment ----\n        $('hl-panel-lifestyle').innerHTML = `\n        <div class=\"hl-card\">\n            <div class=\"hl-card-header\"><div class=\"hl-card-icon\">\ud83e\uddd8<\/div><div><div class=\"hl-card-title\">Lifestyle Assessment<\/div><div class=\"hl-card-sub\">Rate your overall health habits<\/div><\/div><\/div>\n            <div id=\"lifestyle-questions\"><\/div>\n            <button class=\"hl-btn\" id=\"calcLifestyle\">Get Score<\/button>\n            <div id=\"lifestyle-result\"><\/div>\n        <\/div>`;\n        var lifestyleQ = [\"I eat a balanced diet\",\"I exercise regularly\",\"I manage stress well\",\"I get enough sleep\",\"I avoid smoking\",\"I limit alcohol\",\"I maintain a healthy weight\",\"I stay socially connected\"];\n        var qHTML = '';\n        lifestyleQ.forEach(function(q, i) {\n            qHTML += '<div class=\"hl-input-group\"><label>'+q+'<\/label><select id=\"ls-'+i+'\"><option value=\"3\">Strongly agree<\/option><option value=\"2\">Agree<\/option><option value=\"1\">Disagree<\/option><option value=\"0\">Strongly disagree<\/option><\/select><\/div>';\n        });\n        $('lifestyle-questions').innerHTML = qHTML;\n        $('calcLifestyle').addEventListener('click', function() {\n            var score = 0;\n            for (var i=0; i<lifestyleQ.length; i++) { score += parseInt($('ls-'+i).value); }\n            var max = lifestyleQ.length*3;\n            var pct = Math.round(score\/max*100);\n            var cls = pct>=80?'good':pct>=50?'warning':'bad';\n            hlData.lifestyle = pct + '%';\n            $('lifestyle-result').innerHTML = `<div class=\"hl-result\">\n                <div class=\"hl-result-title\">Lifestyle Score<\/div>\n                <div class=\"hl-result-value\">${pct}%<\/div>\n                <div class=\"hl-badge ${cls}\">${pct>=80?'Healthy lifestyle':pct>=50?'Moderate':'Needs improvement'}<\/div>\n            <\/div>`;\n            updateSummary();\n        });\n\n        function updateSummary() {\n            var items = [\n                {l:'Habit Score', v: hlData.habits || '\u2014'},\n                {l:'Biological Age', v: hlData.aging || '\u2014'},\n                {l:'Screen Time', v: hlData.screentime || '\u2014'},\n                {l:'Wellness Score', v: hlData.wellness || '\u2014'},\n                {l:'Hydration', v: hlData.hydration || '\u2014'},\n                {l:'Sitting Time', v: hlData.sitting || '\u2014'},\n                {l:'Life Expectancy', v: hlData.lifeexpectancy || '\u2014'},\n                {l:'Lifestyle Score', v: hlData.lifestyle || '\u2014'}\n            ];\n            var html = '';\n            items.forEach(function(i) {\n                html += '<div class=\"hl-sum-card\"><div class=\"hl-sum-val\">'+i.v+'<\/div><div class=\"hl-sum-lbl\">'+i.l+'<\/div><\/div>';\n            });\n            $('hlSummaryGrid').innerHTML = html;\n        }\n\n        \/\/ Tab switching\n        $('hlTabRow').addEventListener('click', function(e) {\n            var btn = e.target.closest('.hl-tab');\n            if (!btn) return;\n            suite.querySelectorAll('.hl-tab').forEach(b => b.classList.remove('active'));\n            btn.classList.add('active');\n            suite.querySelectorAll('.hl-panel').forEach(p => p.classList.remove('active'));\n            var panel = $('hl-panel-' + btn.dataset.tab);\n            if (panel) panel.classList.add('active');\n        });\n\n        \/\/ ---- Activate tab from URL hash (SEO deep linking) ----\n        (function() {\n            var hash = window.location.hash.substring(1);\n            if (hash) {\n                var targetTab = document.querySelector('.hl-tab[data-tab=\"' + hash + '\"]');\n                if (targetTab) {\n                    document.querySelectorAll('.hl-tab').forEach(function(b) { b.classList.remove('active'); });\n                    document.querySelectorAll('.hl-panel').forEach(function(p) { p.classList.remove('active'); });\n                    targetTab.classList.add('active');\n                    var panel = document.getElementById('hl-panel-' + hash);\n                    if (panel) panel.classList.add('active');\n                }\n            }\n        })();\n\n    })();\n    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1170","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Healthy Lifestyle Suite - GlobalHealth Magazine<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globalhealthmag.com\/es\/paquete-de-estilo-de-vida-saludable\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Healthy Lifestyle Suite\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globalhealthmag.com\/es\/paquete-de-estilo-de-vida-saludable\/\" \/>\n<meta property=\"og:site_name\" content=\"GlobalHealth Magazine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/globalhealthmag\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-14T22:29:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/healthy-lifestyle-suite\\\/\",\"url\":\"https:\\\/\\\/www.globalhealthmag.com\\\/healthy-lifestyle-suite\\\/\",\"name\":\"Healthy Lifestyle Suite - GlobalHealth Magazine\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/#website\"},\"datePublished\":\"2026-06-14T22:28:08+00:00\",\"dateModified\":\"2026-06-14T22:29:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/healthy-lifestyle-suite\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globalhealthmag.com\\\/healthy-lifestyle-suite\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/healthy-lifestyle-suite\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globalhealthmag.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Healthy Lifestyle Suite\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/#website\",\"url\":\"https:\\\/\\\/www.globalhealthmag.com\\\/\",\"name\":\"GlobalHealth Magazine\",\"description\":\"Health and Fitness Tips and Advice\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globalhealthmag.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/#organization\",\"name\":\"GlobalHealth Magazine\",\"url\":\"https:\\\/\\\/www.globalhealthmag.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.globalhealthmag.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/globalhealthmag-favicon.png\",\"contentUrl\":\"https:\\\/\\\/www.globalhealthmag.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/globalhealthmag-favicon.png\",\"width\":512,\"height\":512,\"caption\":\"GlobalHealth Magazine\"},\"image\":{\"@id\":\"https:\\\/\\\/www.globalhealthmag.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/globalhealthmag\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Secci\u00f3n \u00abEstilo de vida saludable\u00bb - Revista GlobalHealth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globalhealthmag.com\/es\/paquete-de-estilo-de-vida-saludable\/","og_locale":"es_ES","og_type":"article","og_title":"Healthy Lifestyle Suite","og_url":"https:\/\/www.globalhealthmag.com\/es\/paquete-de-estilo-de-vida-saludable\/","og_site_name":"GlobalHealth Magazine","article_publisher":"https:\/\/www.facebook.com\/globalhealthmag","article_modified_time":"2026-06-14T22:29:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globalhealthmag.com\/healthy-lifestyle-suite\/","url":"https:\/\/www.globalhealthmag.com\/healthy-lifestyle-suite\/","name":"Secci\u00f3n \u00abEstilo de vida saludable\u00bb - Revista GlobalHealth","isPartOf":{"@id":"https:\/\/www.globalhealthmag.com\/#website"},"datePublished":"2026-06-14T22:28:08+00:00","dateModified":"2026-06-14T22:29:57+00:00","breadcrumb":{"@id":"https:\/\/www.globalhealthmag.com\/healthy-lifestyle-suite\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globalhealthmag.com\/healthy-lifestyle-suite\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globalhealthmag.com\/healthy-lifestyle-suite\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globalhealthmag.com\/"},{"@type":"ListItem","position":2,"name":"Healthy Lifestyle Suite"}]},{"@type":"WebSite","@id":"https:\/\/www.globalhealthmag.com\/#website","url":"https:\/\/www.globalhealthmag.com\/","name":"Revista GlobalHealth","description":"Consejos sobre salud y forma f\u00edsica","publisher":{"@id":"https:\/\/www.globalhealthmag.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globalhealthmag.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.globalhealthmag.com\/#organization","name":"Revista GlobalHealth","url":"https:\/\/www.globalhealthmag.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.globalhealthmag.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.globalhealthmag.com\/wp-content\/uploads\/2023\/04\/globalhealthmag-favicon.png","contentUrl":"https:\/\/www.globalhealthmag.com\/wp-content\/uploads\/2023\/04\/globalhealthmag-favicon.png","width":512,"height":512,"caption":"GlobalHealth Magazine"},"image":{"@id":"https:\/\/www.globalhealthmag.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/globalhealthmag"]}]}},"_links":{"self":[{"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/pages\/1170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/comments?post=1170"}],"version-history":[{"count":1,"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/pages\/1170\/revisions"}],"predecessor-version":[{"id":1171,"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/pages\/1170\/revisions\/1171"}],"wp:attachment":[{"href":"https:\/\/www.globalhealthmag.com\/es\/wp-json\/wp\/v2\/media?parent=1170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}