PageSourceSearch

https://habitualmente.com/assets/route-DyxJ8fwy.js

js habitualmente.com collected 2026-10-02 04:52:00 UTC 204,439 bytes, 223 lines download raw bytes

1import{o as e,t}from"./react-C7THt1nu.js";import{I as n,N as r,P as i,U as a,W as o,a as s,j as c}from"./chunk-QUQL4437-BN_qlo7d.js";import{t as l}from"./jsx-runtime-4jVAV9N6.js";import{_ as u,i as d,n as f}from"./subscriber-DWD1Ai7S.js";import{t as p}from"./useDarkMode-DA6DN_80.js";import{n as m,t as h}from"./dist-BDQEzaCj.js";import{J as g,Nt as _,Q as v,U as y,W as b,Y as x,Z as S,at as C,hn as w,ht as T,qt as E,sr as D}from"./pro-light-svg-icons-BOXtcUqo.js";import{E as O,I as k,P as A,S as j,U as M,W as ee,Z as N,_ as P,b as F,d as te,f as ne,g as re,h as ie,n as ae,r as I,rt as oe,t as se}from"./pro-solid-svg-icons-Dw5e0lXt.js";import{i as ce}from"./funnels-KLafB1N0.js";import{n as le}from"./dist-BorfWxCv.js";import{t as L}from"./utils-DusR69S1.js";import{c as ue,d as de,k as fe,u as pe}from"./funnel-progress-CN-_wM0g.js";import{t as R}from"./utils-Bl5PCW7N.js";import{a as z,c as B,i as me,o as V,r as he,s as ge}from"./cfImage-DUMaIM0H.js";import{t as _e}from"./PodcastPlayer-DAaffQjT.js";import{n as ve}from"./user-Uw77RDNS.js";import{t as ye}from"./button-ghAlUI8p.js";import{a as be,i as xe,l as Se,n as Ce,o as we,s as Te,t as Ee,u as De}from"./form-DoPViD-8.js";import{t as Oe}from"./input-DIOlNQHA.js";import{t as ke}from"./EmailCorrectionModal-CymMEUAm.js";import{n as Ae,r as H,t as je}from"./react-Djhv-30z.js";import{_ as Me,a as Ne,b as Pe,c as Fe,d as Ie,f as Le,h as Re,i as ze,m as Be,o as Ve,p as He,r as Ue,s as We,t as Ge,u as Ke,v as qe,y as Je}from"./OfferCountdown-YuBqWK2U.js";import{a as Ye,i as Xe,r as Ze,t as Qe}from"./types-DLApqclO.js";import{n as $e,r as et}from"./analytics-CiPAt5zT.js";import{c as tt,d as nt,i as rt,l as it,n as at,r as ot,s as st,t as U,u as ct}
1from"./Markdown-CYSgO2ge.js";import{n as lt,t as ut}from"./Footer-Iwwrbg_-.js";import{c as dt,d as ft,f as pt,i as mt,l as ht,r as gt,s as _t,t as vt,u as yt}from"./free-brands-svg-icons-DAveMTmY.js";import{n as bt,r as xt,t as St}from"./JsonLd-ePvvtJGu.js";import{t as Ct}from"./ExitIntentPopup-XHx1i00k.js";import{n as W}from"./video-activity-DUuU6AK6.js";import{t as wt}from"./stream-react.esm-CIDV7kgd.js";import{a as Tt,i as Et,n as Dt,o as Ot,r as kt,t as At}from"./CoursePromo-D9ezQtx_.js";import{a as jt,c as Mt,i as Nt,n as Pt,o as Ft,r as G,s as It,t as Lt}from"./pricing-9kWXhTY-.js";import{n as Rt,t as zt}from"./Stars-BObauB51.js";import{a as Bt,c as Vt,h as Ht,i as Ut,l as Wt,m as Gt,n as K,o as Kt,p as qt,r as Jt,t as Yt,u as Xt}from"./time-units-D3eoYeWd.js";import{t as Zt}from"./thumbnail-request-CrsQ0GdL.js";import{t as Qt}from"./CourseCard-C8SRrBQN.js";import{t as $t}from"./useIsNativeApp-CrxtWWu7.js";import{t as en}from"./FAQ-DjVR7vPj.js";import{r as tn}from"./design-tokens-CYSiZodv.js";import{a as nn,c as rn,i as an,n as on,o as sn,r as cn}from"./offer-CaFn-g63.js";import{t as ln}from"./dist-Bk2HLANE.js";import{t as un}from"./phone-input-DOg7Cv9N.js";import{n as dn,r as fn,t as pn}from"./progress-Cli6cY3d.js";import{n as mn,r as hn,t as gn}from"./clock-BXx33imZ.js";import{t as _n}from"./NativePaywall-y1azwT5C.js";var q=e(t(),1),J=l(),vn=e=>{let t=u(),r=n(),i=ve(),a=f(),o=(0,q.useCallback)(n=>{let o=n.target.closest(`[data-bonus]`);if(!o)return;let s=o.getAttribute(`data-bonus`);if(!s)return;let c=s.split(`/`).pop(),l=e?.find(e=>e._sys?.relativePath===c);if(!l)return;n.preventDefault();let u=!!i,f=a?.subscriber?.exists&&a?.subscriber?.isConfirmed,p=l.file;if(u){p?window.location.href=p:r(`/app`);return}if(f){p?window.location.href=p:r(`/acceso-inmediato`);return}t(d((0,J.jsx)(nt,{...l})))},[e,t,r,i,a]);(0,q.useEffect)(()=>(document.addEventListener(`click`,o),()=>{document.removeEventListener(`click`,o)}),[o])},yn=320,bn=({loaderData:e,slug:t})=>{let{query:n,variables:r,data:i,bonuses:a}=e,o=`postEmbeds`in e?e.postEmbeds:void 0,c=`comments`in e?e.comments??void 0:void 0,l=`defaultExitIntentBonusSlug`in e?e.defaultExitIntentBonusSlug:void 0,{data:u}=Ae({query:n,variables:r,data:i});vn(a);let d=l?a?.find(e=>e._sys?.relativePath===`${l}.json`):void 0,{post:f}=u,{category:p,author:m,image:h,imageWidth:g,imageHeight:_,title:v,body:y}=f,[b]=(0,q.useState)(null);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(lt,{}),(0,J.jsxs)(`div`,{className:`relative w-full py-24 lg:py-32 dark:bg-[#080c13] flex items-center justify-center -mt-16`,children:[(0,J.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 2000 240`,className:`absolute left-0 right-0 bottom-0`,children:[(0,J.jsx)(`g`,{id:`BG`,className:`text-white dark:text-[#121a28]`,children:(0,J.jsx)(`rect`,{width:`2000`,height:`240`,fill:`currentColor`})}),(0,J.jsx)(`g`,{id:`Wave`,className:`text-[#f9f2e9] dark:text-[#080c13]`,children:(0,J.jsx)(`path`,{className:`path-initial`,fill:`currentColor`,d:`m0,0v24.1948c33.17-6.5645,71.16-11.1704,114.21-12.3782,35.08-0.9804,73.510.306,115.45,4.6441,32.94,3.4081,68.03,8.6984,105.35,16.2654,30.3,6.1418,62.06,13.7713,95.32,23.1037l-.83-0.4127c10.47,2.6551,20.91,5.2621,31.33,7.8126,34.95,8.5695,69.59,16.5553,103.91,23.9934,37.72,8.1689,75.07,15.6635,112.02,22.5078,40.21,7.4442,79.96,14.1215,119.24,20.0458,8.72,1.3145,17.41,2.5948,26.08,3.8369,17.63,2.5284,34.94,4.5716,52.33,6.8101,14,1.7815,27.93,3.4524,41.79,5.1071,25.44,2.9672,50.67,5.6305,75.68,8.0018,49.27,4.6723,97.69,8.2253,145.25,10.7416,49.49,2.6169,98.03,4.1207,145.61,4.5998,45.650.463,90.41,0,134.25-1.3206,37.07-1.1132,73.49-2.8283,109.25-5.0889,34.12-2.16,67.63-4.8112,100.52-7.9233,39.1-3.6919,77.32-8.024,114.64-12.9016,24.95-3.2631,49.5-6.7819,73.64-10.5181,32.3-5.0004,63.88-10.4014,94.71-16.1486,30.83-5.7412,60.91-11.8326,90.23-18.2079V0H0Z`,"data-path-to":`m0,0v33.29c33.17-9.03,71.16-15.37,114.21-17.03,35.08-1.35,73.51.42,115.45,6.39,32.94,4.69,68.03,11.97,105.35,22.38,30.3,8.45,62.06,18.95,95.32,31.79l-.83-.57c10.47,3.65,20.91,7.24,31.33,10.75,34.95,11.79,69.59,22.78,103.91,33.01,37.72,11.24,75.07,21.55,112.02,30.97,40.21,10.24,79.96,19.43,119.24,27.58,8.72,1.81,17.41,3.57,26.08,5.28,17.63,3.48,34.94,6.29,52.33,9.37,14,2.45,27.93,4.75,41.79,7.03,25.44,4.08,50.67,7.75,75.68,11.01,49.27,6.43,97.69,11.32,145.25,14.78,49.49,3.6,98.03,5.67,145.61,6.33,45.65.64,90.41,0,134.25-1.82,37.07-1.53,73.49-3.89,109.25-7,34.12-2.97,67.63-6.62,100.52-10.9,39.1-5.08,77.32
1-11.04,114.64-17.75,24.95-4.49,49.5-9.33,73.64-14.47,32.3-6.88,63.88-14.31,94.71-22.22,30.83-7.9,60.91-16.28,90.23-25.05V0H0Z`})})]}),(0,J.jsx)(`div`,{className:`flex items-center max-w-[68rem] mx-auto space-x-16 relative`,children:(0,J.jsxs)(`div`,{className:`flex flex-col items-center`,children:[p?(0,J.jsx)(s,{to:`/${p.id?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||``}`,className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-4 no-underline hover:opacity-80 transition-opacity`,children:p.title.toLowerCase()}):null,v?(0,J.jsx)(`h1`,{className:`font-display dark:text-white text-center text-[2rem] lg:text-[3rem] leading-none font-bold mb-8 capitalize`,children:f?.title}):null,m?(0,J.jsxs)(`div`,{className:`flex items-center text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-4`,children:[(0,J.jsx)(`img`,{width:40,height:40,loading:`lazy`,decoding:`async`,alt:m.title,className:`w-10 h-10 rounded-full mr-3`,src:`https://secure.gravatar.com/avatar/4052e6a43a9f720bbe57e9e81417b6b8?s=180&d=mm&r=g`}),`de `,m.title]}):null]})})]}),(0,J.jsxs)(`div`,{className:`bg-white dark:bg-[#121a28] group/section`,"data-section-bg":`colored`,children:[(0,J.jsxs)(`div`,{className:`max-w-[42rem] px-4 mx-auto content pb-16 text-lg lg:text-xl leading-relaxed`,children:[h?(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:f.title,src:z(h,{width:yn}),srcSet:V(h,{width:yn}),width:g??void 0,height:_??void 0,className:`float-right max-w-[20rem] ml-8 mb-8 rounded`}):null,y?(0,J.jsx)(tt,{value:`prose`,children:(0,J.jsx)(U,{body:y,postEmbeds:o,bonuses:a,slug:t,title:v})}):null,(0,J.jsx)(ot,{url:`https://habitualmente.com/${t}`,title:v}),(0,J.jsx)(st,{title:`Este artículo fue enviado primero a los suscriptores.`,subtitle:`Únete GRATIS y recibe el siguiente artículo antes que nadie. Además recibes contenidos y beneficios exclusivos de los que solo puedes enterarte por correo.`,cta:`¡Quiero ser parte!`})]}),(0,J.jsx)(`div`,{className:`max-w-[42rem] px-4 mx-auto py-16 text-lg lg:text-xl leading-relaxed`,children:y?(0,J.jsx)(tt,{value:`prose`,children:(0,J.jsx)(ct,{body:y})}):null})]}),(0,J.jsx)(bt,{comments:c??[],slug:t}),(0,J.jsx)(xt,{slug:t,replyingTo:b}),(0,J.jsx)(ut,{}),d&&(0,J.jsx)(Ct,{bonus:d,variant:`general`})]})},xn=({icon:e,cta:t,small:n,size:r,arrow:i,url:a,bonus:o})=>{let c=Mt(),l=Re(),u=!l?.bucket||l.bucket===`control`,d=qe(l?.offer.expiresAtUnix,l?.serverNowUnix),f=!!l?.offer.active&&!d.expired,p=n&&u?jt(c,n,f?Pt(c,!0).yearlyPerMonth:void 0):null,g=a===`/acceso-inmediato`&&l?Le(l.bucket):a,_=L(`relative flex items-center bg-[#f0a3a1] dark:text-[#121a28] font-bold px-4 lg:px-8 py-2 lg:py-3 rounded-full`,!r||r===`normal`?`text-base lg:text-xl`:r===`large`?`text-xl lg:text-2xl`:`text-sm lg:text-base`,i&&`lg:mb-8`),v=[...e&&m({prefix:`fal`,iconName:e})?[(0,J.jsx)(h,{className:`mr-2 lg:mr-4`,icon:m({prefix:`fal`,iconName:e})},`icon`)]:[],t,...p?[(0,J.jsx)(`div`,{className:`ml-2 lg:ml-4 text-sm lg:text-base self-stretch flex items-center font-medium border-l-2 pl-2 lg:pl-4 -mr-1 lg:-mr-2 -my-2 lg:-my-3 py-2 lg:py-3 border-l-[#f9f2e9] dark:border-l-[#121a28]`,children:p},`small`)]:[]],y=o&&typeof o==`object`&&`_sys`in o?o._sys?.relativePath:typeof o==`string`?o:null;return(0,J.jsxs)(`div`,{className:`relative`,children:[y?(0,J.jsx)(`button`,{type:`button`,"data-bonus":y,className:L(_,`cursor-pointer`),children:v}):g&&g.startsWith(`/`)?(0,J.jsx)(s,{to:g,className:_,children:v}):(0,J.jsx)(`a`,{href:g||`#`,onClick:e=>Ie(g??``,e),className:_,children:v}),i?(0,J.jsxs)(`div`,{className:`hidden lg:flex absolute left-[100%] ml-4 top-4 text-[#f0a3a1]`,children:[(0,J.jsx)(`svg`,{className:`w-16 mr-4 rotate-[230deg]`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1483.48 886.09`,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:`m971.32,297.59c-1.91-.38-3.81-.88-5.74-1.13-4.51-.6-10.46,2.15-12.51-4.43-2.12-6.81.06-12.92,5.18-17.7,7.1-6.64,14.11-13.45,21.77-19.41,36.24-28.21,75.94-51.22,114.68-75.65,90.12-56.82,185.91-104.36,272.86-166.38,5.25-3.74,11.13-6.8,17.08-9.3,19.31-8.1,27.66-2.73,28.18,18.39,8.11-1.7,17.72-8.7,23.84.7,7,10.73,18.65,16.19,25.82,26.65,9.5,13.85,16.3,28.67,19.84,44.84,2.99,13.6-.58,27.21-2.84,40.59-11.41,67.6-22.22,135.32-35.21,202.62-8.24,42.68-20.71,84.49-32.95,126.26-3.33,11.35-10.1,19.1-21.35,24.05-.83-4.9,6.15-7.48,2.86-12.88-4.88,3.63-9.75,7.22-14.57,10.87-1.31.99-2.66,2.27-4.26,1.12-1.53-1.1-.89-2.88-.67-4.49,1.41-10.2-3.52-13.97-13.15-9.82-6.46,2.78-10.69-.03-13.48-5.3-2.14-4.04-5.07-4.38-8.72-3.55-10.74,2.48-16.93-1.13-19.33-11.94-1.12-5.04-1.75-9.3-6.97-12.77-4.91-3.26-4.5-10.49-4.9-16.26-1.14-16.58-.09-33.15.36-49.73.09-3.37,2.67-8.46-.93-9.84-4.29-1.64-5.8,4.19-8,6.91-22.32,27.73-46.15,54.12-71,79.55-39.67,40.58-79.72,80.81-122.83,117.81-53.83,46.2-110.89,87.92-171.14,125.42-37.86,23.57-77.01,44.7-116.96,64.38-42.54,20.96-85.57,40.98-130.17,57.14-75.88,27.49-153.89,46.31-233.87,57.99-102.47,14.96-205.18,16.9-308.18,9.9-36.7-2.49-73.09-8.24-106.59-25.15-13.6-6.86-24.98-16.36-33.5-29.09-2.52-3.76-5.77-7.86-2.76-12.39,3.23-4.85,7.43-1.38,11.77-.99,10.62.96,16.86,7.66,24.22,13.55,12.77,10.23,28.43,12.32,43.97,13.89,42.29,4.25,84.51.51,
1126.63-2.54,67.51-4.89,134.43-14.41,200.44-29.64,87.11-20.11,170.44-50.76,250.81-89.77,103.44-50.21,199.87-111.17,286.12-187.46,51.16-45.24,99.23-93.7,144.92-144.51,10.45-11.62,21.73-22.48,31.55-34.73,4.09-5.1,10.75-7.41,13.2-14.9,1.59-4.86,8.19,1.89,13.04-1.5-11.01-1.09-8.09-6.03-3.71-11.19,15.28-18.03,30.23-36.32,43.96-55.58,1.48-2.07,2.87-4.21,3.31-7.97-8.48,3.95-17.07,7.67-25.41,11.9-24.26,12.31-48.52,24.58-74.5,33.05-7.14,2.33-13.73,6.34-20.84,8.78-8.82,3.03-17.92,5.22-26.9,7.78-2.39.68-2.76-.65-2.77-2.57-.01-1.75-.83-2.01-2.43-1.31-10.25,4.53-21.72,2.81-30.99,1.27-12.15-2.01-21.6-15.01-35.84-8.42-2.23,1.03-6.36-2.17-7.31-4.84-2.01-5.6,3.49-7.54,6.61-10.53,10.5-1.48,12.2-10.35,16.05-18.22-6.95.81-14.51,10.09-15.79,18.45Zm-59.68,300.01c.53.6,1.07,1.21,1.6,1.81,1.41-.69,2.93-1.2,4.2-2.08,36.15-24.95,70.21-52.5,102.33-82.45,41.61-38.8,79.25-81.42,117.87-123.08,10.46-11.28,22.75-21.06,30.3-35.01,2.02-3.73,5.48-7.44,11.28-2.03-1.65-3.44-5.02-6.96-2.45-8.94,11.42-8.8,16.19-22.62,25.75-32.76,7.35-7.79,14.01-16.13,17.3-26.8-15.61,15.32-27.35,34.29-44.48,48.07.51-5.59,6.26-7.98,6.83-15.33-23.16,26.85-45.19,52.39-67.23,77.93,15.77-11.13,25.79-27.95,41.45-38.96-36.84,43.64-75.85,85.2-116.06,125.64-40.47,40.71-83.9,78.11-128.7,113.99Zm395.99-262.96c-82.61,98.75-170.19,191.28-268.22,273.63,14.97-10.38,29.22-21.52,43.23-32.96,39.57-32.31,76.3-67.75,111.92-104.23,25.35-25.97,49.84-52.82,73.69-80.26,8.95-10.3,17.23-21.36,27.48-30.87,5.63-5.22,15.89-11.95,11.9-25.32Zm2.66-27.69c-62.68,76.18-131.23,146.99-200.57,217.07,74.06-65.76,142.49-136.67,200.57-217.07Zm-42.2-10.14c-52.73,61.83-106.98,122.11-162.51,181.24,60.49-54.8,114.56-115.37,162.51-181.24Zm93.76-246.17c-39.15,25.54-77.77,50.68-116.95,74.95,38.99-18.86,76.16-40.81,112.64-63.97,3.57-2.26,5.71-5.05,4.31-10.98Z`})}),(0,J.jsx)(`span`,{className:`font-['parlare'] text-[2rem] skew-y-[-4deg]`,dangerouslySetInnerHTML:{__html:i.split(` `).join(`&nbsp;`)}})]}):null]})},Sn=({body:e,richTextClassName:t})=>(0,J.jsx)(`div`,{className:L(`content max-w-[42rem] mb-8 lg:mb-16`,t??`text-xl`),children:(0,J.jsx)(tt,{value:`richText`,children:(0,J.jsx)(U,{body:e})})}),Cn=(e=typeof window>`u`?null:window)=>{try{return e?.localStorage||null}catch{return null}},wn=e=>{try{let t=new URL(e),n=t.hostname.match(/^customer-([a-z0-9]+)\.cloudflarestream\.com$/i),r=t.pathname.match(/^\/([^/]+)\/iframe\/?$/);return!n||!r?null:{customerCode:n[1],videoId:r[1]}}catch{return null}},Tn=e=>`home-hero-video-progress:${e}`,En=(e,t)=>{try{let n=e.getItem(Tn(t));if(!n)return null;let r=Number(n);return Number.isFinite(r)&&r>=3?r:null}catch{return null}},Dn=(e,t,n)=>{if(!(!Number.isFinite(n)||n<0))try{e.setItem(Tn(t),String(n))}catch{return}},On=1216,kn=(e,t)=>e?e.__typename===`PageBlocksVideoHeroBlocksButton`||e.__typename===`PageBlocksImageHeroBlocksButton`||e.__typename===`CategoryBlocksImageHeroBlocksButton`||e.__typename===`CategoryBlocksVideoHeroBlocksButton`?(0,J.jsx)(xn,{...e},t):e.__typename===`PageBlocksVideoHeroBlocksFaces`||e.__typename===`PageBlocksImageHeroBlocksFaces`||e.__typename===`CategoryBlocksImageHeroBlocksFaces`||e.__typename===`CategoryBlocksVideoHeroBlocksFaces`?(0,J.jsx)(Rt,{...e},t):e.__typename===`PageBlocksVideoHeroBlocksStars`||e.__typename===`PageBlocksImageHeroBlocksStars`||e.__typename===`CategoryBlocksImageHeroBlocksStars`||e.__typename===`CategoryBlocksVideoHeroBlocksStars`?(0,J.jsx)(zt,{...e},t):e.__typename===`PageBlocksImageHeroBlocksRichText`||e.__typename===`CategoryBlocksImageHeroBlocksRichText`?(0,J.jsx)(Sn,{...e},t):null:null,An=e=>{let{headline:t,subheadline:n,videoUrl:r,videoPoster:i,blocks:a=[],fullHeight:o=!0}=e,s=(0,q.useMemo)(()=>r?wn(r):null,[r]),{signedToken:c,thumbnailUrl:l,refresh:u}=kt(s?.videoId),d=Ot(i)?l??void 0:z(i,{width:On}),[f,p]=(0,q.useState)(null),[m,g]=(0,q.useState)(null),_=()=>c&&Tt(c)?{token:c,poster:d}:null,v=(0,q.useRef)(void 0),y=(0,q.useRef)(void 0),b=(0,q.useRef)(!1),[x,S]=(0,q.useState)(`first`),[C,w]=(0,q.useState)(!1),[T,E]=(0,q.useState)(!1),D=(0,q.useId)(),[O,k]=(0,q.useState)(0),[A,j]=(0,q.useState)(0),ee=`data-tina-field`in e?e[`data-tina-field`]:void 0;(0,q.useEffect)(()=>
1{if(b.current=!1,w(!1),E(!1),k(0),j(0),S(`first`),p(null),g(null),!s)return;let e=Cn(),t=e?En(e,s.videoId):null;t!==null&&(j(t),S(`returning`))},[s,r]),(0,q.useEffect)(()=>{if(!T)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[T]),(0,q.useEffect)(()=>(W(D,T||C),()=>W(D,!1)),[T,C,D]),(0,q.useEffect)(()=>{f||!c||!Tt(c)||p({token:c,poster:d})},[f,c,d]),(0,q.useEffect)(()=>{!T||m||!c||!Tt(c)||g({token:c,poster:d})},[T,m,c,d]);let N=e=>{if(!s||!Number.isFinite(e)||e<0)return;j(e);let t=Cn();t&&Dn(t,s.videoId,e)},P=e=>{let t=_();t||u(),g(t),b.current=!1,v.current?.pause(),y.current=void 0,k(e),E(!0)};return(0,J.jsxs)(`div`,{"data-tina-field":ee,"data-offer-hero":``,"data-video-mode":s?x:void 0,className:R(`flex flex-col justify-center items-center relative -mt-6 lg:-mt-12 px-4 lg:px-0`,o?`min-h-vh`:`py-12 lg:py-16`),children:[(0,J.jsx)(`div`,{className:`absolute inset-0 overflow-hidden flex items-center text-[#f0a3a1] dark:text-[#3a4760] opacity-25`,children:(0,J.jsx)(`svg`,{className:`w-auto h-[60%] lg:h-[80%] ml-auto -mr-[10rem] lg:-mr-[20rem]`,viewBox:`0 0 844 713`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:`M759.012 327.937C791.023 204.375 844 -2.0802e-05 844 -2.0802e-05C844 -2.0802e-05 843.823 0.237799 843.772 0.301591C839.982 5.62583 662.818 251.03 342.5 225.711C338.548 225.379 334.568 225.049 330.567 224.649C325.598 224.156 320.652 223.748 315.598 223.118C279.485 218.644 241.63 210.609 202.119 198.564L202.365 198.73C108.145 165.906 60.4798 205.406 41.9823 228.258C38.7326 232.692 35.5329 237.34 32.4839 242.355C22.3623 258.963 13.4552 278.585 7.56544 301.947C-15.158 392.143 4.92118 543.669 185.476 654.502C355.901 759.106 500.22 704.206 587.424 638.709C709.231 547.217 740.332 399.942 758.997 327.924`})})}),(0,J.jsxs)(`div`,{className:`relative max-w-[62rem] flex flex-col items-center text-center`,children:[(0,J.jsx)(`h1`,{"data-tina-field":H(e,`headline`),className:R(`font-display text-[2rem] lg:text-[3rem] leading-none font-bold mb-2 lg:mb-4 dark:text-white`),children:t}),(0,J.jsx)(`h2`,{"data-tina-field":H(e,`subheadline`),className:`text-lg lg:text-2xl`,children:n})]}),(0,J.jsx)(`div`,{"data-tina-field":H(e,`videoPoster`),className:`relative max-w-[38rem] w-full mt-4 lg:mt-8 mb-4 lg:mb-8`,children:(0,J.jsxs)(`div`,{className:`overflow-hidden w-full pb-[56.25%] relative rounded bg-black shadow-xl`,children:[s&&f?(0,J.jsx)(wt,{autoplay:!0,className:`absolute inset-0 h-full w-full [&>iframe]:block [&>iframe]:h-full [&>iframe]:w-full`,controls:!1,customerCode:s.customerCode,muted:!0,poster:f.poster,responsive:!1,src:f.token,streamRef:v,title:`Vídeo: ${t}`}):s?d?(0,J.jsx)(`img`,{width:1280,height:720,loading:`eager`,fetchPriority:`high`,alt:`Miniatura del vídeo: ${t}`,className:`absolute inset-0 h-full w-full object-cover`,"data-video-loading":!0,src:d}):(0,J.jsx)(`div`,{"data-video-loading":!0,className:`absolute inset-0 bg-black`}):C&&r?(0,J.jsx)(`iframe`,{allow:`accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:!0,className:`absolute inset-0 h-full w-full border-0`,src:r,title:`Vídeo: ${t}`}):d||r?(0,J.jsxs)(J.Fragment,{children:[d?(0,J.jsx)(`img`,{width:1280,height:720,loading:`eager`,fetchPriority:`high`,alt:`Miniatura del vídeo: ${t}`,className:`absolute inset-0 h-full w-full object-cover`,src:d}):null,r?(0,J.jsx)(`button`,{"aria-label":`Reproducir video`,className:`absolute inset-0 z-10 flex items-center justify-center text-white focus-visible:outline-4 focus-visible:outline-offset-[-4px] focus-visible:outline-white`,onClick:()=>w(!0),type:`button`,children:(0,J.jsx)(`span`,{className:`flex size-20 items-center justify-center rounded-lg bg-[#80333c] text-3xl shadow-2xl`,children:(0,J.jsx)(h,{className:`ml-1`,icon:M})})}):null]}):null,s&&x===`first`?(0,J.jsxs)(`button`,{"aria-label":`Reproducir video con sonido`,className:`absolute inset-0 z-10 flex items-center justify-center bg-black/10 text-white focus-visible:outline-4 focus-visible:outline-offset-[-4px] focus-visible:outline-white`,onClick:()=>
1P(0),type:`button`,children:[(0,J.jsxs)(`span`,{"data-video-prompt":`sound`,className:`absolute top-4 left-4 flex animate-pulse items-center gap-2 rounded-full bg-black/70 px-4 py-2 text-sm font-bold motion-reduce:animate-none`,children:[(0,J.jsx)(h,{icon:oe}),`Click para escuchar`]}),(0,J.jsx)(`span`,{className:`flex size-20 animate-pulse items-center justify-center rounded-full bg-[#80333c]/95 text-3xl shadow-2xl motion-reduce:animate-none`,children:(0,J.jsx)(h,{className:`ml-1`,icon:M})})]}):null,s&&x===`returning`?(0,J.jsxs)(`div`,{className:`absolute inset-0 z-10 flex flex-col items-center justify-center bg-black/70 px-6 text-center text-white`,children:[(0,J.jsx)(`h3`,{className:`mb-5 text-xl font-bold sm:text-2xl`,children:`Ya empezaste a ver este video`}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row`,children:[(0,J.jsx)(`button`,{className:`rounded-full bg-[#80333c] px-5 py-3 font-bold text-white focus-visible:outline-3 focus-visible:outline-offset-2 focus-visible:outline-white`,"data-video-action":`resume`,onClick:()=>P(A),type:`button`,children:`Seguir viendo`}),(0,J.jsx)(`button`,{className:`rounded-full bg-white px-5 py-3 font-bold text-[#80333c] focus-visible:outline-3 focus-visible:outline-offset-2 focus-visible:outline-white`,"data-video-action":`restart`,onClick:()=>{N(0),P(0)},type:`button`,children:`Volver a empezar`})]})]}):null,s&&x===`paused`?(0,J.jsx)(`button`,{"aria-label":`Continuar video con sonido`,className:`absolute inset-0 z-10 flex items-center justify-center bg-black/20 text-white focus-visible:outline-4 focus-visible:outline-offset-[-4px] focus-visible:outline-white`,onClick:()=>P(A),type:`button`,children:(0,J.jsx)(`span`,{className:`flex size-20 animate-pulse items-center justify-center rounded-full bg-[#80333c]/95 text-3xl shadow-2xl motion-reduce:animate-none`,children:(0,J.jsx)(h,{className:`ml-1`,icon:M})})}):null]})}),x===`paused`?(0,J.jsxs)(`div`,{"aria-label":`Continuar hacia Quiero empezar ahora`,className:`relative z-10 -mt-2 mb-4 flex animate-bounce flex-col items-center text-[#80333c] motion-reduce:animate-none dark:text-[#f0a3a1]`,children:[(0,J.jsx)(`span`,{className:`text-sm font-bold`,children:`Asegura tu plaza`}),(0,J.jsx)(h,{className:`text-2xl`,icon:ae})]}):null,a?.map(kn),s?(0,J.jsx)(Dt,{contentClassName:`w-[min(64rem,calc(100vw_-_2rem),calc((100vh_-_2rem)*16/9))]`,description:`Reproductor del video de presentación de Habitualmente`,onClose:()=>{if(b.current)return;b.current=!0;let e=y.current?.currentTime;typeof e==`number`&&N(e),S(`paused`),E(!1),g(null)},open:T,title:`Vídeo: ${t}`,children:m?(0,J.jsx)(wt,{autoplay:!0,className:`aspect-video w-full overflow-hidden rounded-lg bg-black [&>iframe]:block [&>iframe]:h-full [&>iframe]:w-full`,controls:!0,customerCode:s.customerCode,muted:!1,responsive:!1,src:m.token,startTime:O,streamRef:y,title:`Vídeo: ${t}`,onTimeUpdate:()=>{let e=y.current?.currentTime;typeof e==`number`&&N(e)}}):(0,J.jsx)(`div`,{"data-video-loading":!0,className:`flex aspect-video w-full animate-pulse items-center justify-center overflow-hidden rounded-lg bg-black text-white/50`,children:`Cargando video...`})}):null]})},jn=(e,t)=>{if(!e)return null;let{icon:n,text:r}=e;return(0,J.jsxs)(`div`,{className:`flex items-center`,children:[(0,J.jsx)(h,{className:`text-2xl lg:text-[2rem] mr-2 lg:mr-4`,icon:m({prefix:`fal`,iconName:n})}),(0,J.jsx)(`p`,{className:`font-display font-semibold text-sm lg:text-xl`,children:r})]},t)},Mn=e=>{let{icons:t}=e;return(0,J.jsx)(`div`,{"data-tina-field":`data-tina-field`in e?e[`data-tina-field`]:void 0,className:`flex bg-[#fbd4c4] dark:text-[#121a28] py-4 lg:py-8 px-4 lg:px-0`,children:(0,J.jsx)(`div`,{"data-tina-field":H(e,`icons`),className:`flex flex-col lg:flex-row mx-auto w-full max-w-[68rem] justify-evenly items-center gap-4 lg:gap-16`,children:t?t.map((e,t)=>(0,J.jsx)(`div`,{"data-tina-field":H(e),children:jn(e,t)},t)):null})})},Nn=896,Pn=[`(min-width: 1088px) 435px`,`(min-width: 1024px) 40vw`,`calc(80vw - 26px)`].join(`, `),Fn=[`(min-width: 1024px) calc(40vw - 77px)`,`calc(80vw - 51px)`].join(`, `),In=e=>L(`flex flex-col lg:flex-row items-center h-full mx-auto relative`,e?`max-w-full py-16 px-8 lg:px-24`:`max-w-[68rem] px-4 lg:px-0`),Ln=e=>{let{headline:t,subheadline:n,icon:r,list:i,blocks:a,image:o,imageWidth:s,imageHeight:c,backgroundColor:l,arrow:u=!1,fullWidth:d=!1}=e;return(0,J.jsxs)(`div`,{id:`hero`,"data-tina-field":`data-tina-field`in e?e[`data-tina-field`]:void 0,className:L(`relative w-full min-h-screen lg:h-screen flex items-center justify-center md:-mt-18 overflow-hidden`,l?`bg-[${l}]`:`dark:bg-[#080c13]`),children:[(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 2000 240`,className:`absolute left-0 right-0 bottom-0 -mb-px -mx-px z-10`,children:(0,J.jsx)(`g`,{id:`Wave`,className:`text-white dark:text-[#121a28]`,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:`M2000,240v-24.2c-33.2,6.6-71.2,11.2-114.2,12.4c-35.1,1-73.5-0.3-115.5-4.6c-32.9-3.4-68-8.7-105.3-16.3
2		c-30.3-6.1-62.1-13.8-95.3-23.1l0.8,0.4c-10.5-2.7-20.9-5.3-31.3-7.8c-34.9-8.6-69.6-16.6-103.9-24c-37.7-8.2-75.1-15.7-112-22.5
3		c-40.2-7.4-80-14.1-119.2-20c-8.7-1.3-17.4-2.6-26.1-3.8c-17.6-2.5-34.9-4.6-52.3-6.8c-14-1.8-27.9-3.5-41.8-5.1
4		c-25.4-3-50.7-5.6-75.7-8c-49.3-4.7-97.7-8.2-145.2-10.7c-49.5-2.6-98-4.1-145.6-4.6c-45.7-0.5-90.4,0-134.2,1.3
5		c-37.1,1.1-73.5,2.8-109.2,5.1c-34.1,2.2-67.6,4.8-100.5,7.9c-39.1,3.7-77.3,8-114.6,12.9c-24.9,3.3-49.5,6.8-73.6,10.5
6		c-32.3,5-63.9,10.4-94.7,16.1c-30.8,5.7-60.9,11.8-90.2,18.2V240H2000z`})})}),(0,J.jsxs)(`div`,{className:In(d),children:[(0,J.jsxs)(`div`,{className:`flex flex-col items-center lg:items-start pt-24 lg:pt-0 -mt-16`,children:[n?(0,J.jsx)(`span`,{"data-tina-field":H(e,`subheadline`),className:`font-['parlare'] text-2xl md:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-2 md:-mb-4`,children:n}):null,t?(0,J.jsx)(`h1`,{"data-tina-field":H(e,`headline`),className:L(`font-display text-[2.5rem] lg:text-[4rem] leading-none font-bold mb-6 capitalize text-center lg:text-left`,l?`text-white`:`dark:text-white`),children:t}):null,i&&i.length>0?(0,J.jsx)(`ul`,{"data-tina-field":H(e,`list`),className:`text-xl lg:pl-10 mb-4 flex flex-col items-center lg:block`,children:i.map((e,t)=>(0,J.jsxs)(`li`,{"data-tina-field":H(e),className:`relative mb-4 flex items-center gap-2 lg:block`,children:[r?(0,J.jsx)(h,{className:`lg:absolute lg:-left-8 lg:top-1.5 text-[#80333c] dark:text-white`,icon:m({prefix:`fas`,iconName:r})}):null,e?.title]},t))}):null,a?.map(kn),u?(0,J.jsx)(`svg`,{className:`w-32 -mt-4 mx-auto rotate-[220deg] scale-x-[-1]`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1483.48 886.09`,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:`m971.32,297.59c-1.91-.38-3.81-.88-5.74-1.13-4.51-.6-10.46,2.15-12.51-4.43-2.12-6.81.06-12.92,5.18-17.7,7.1-6.64,14.11-13.45,21.77-19.41,36.24-28.21,75.94-51.22,114.68-75.65,90.12-56.82,185.91-104.36,272.86-166.38,5.25-3.74,11.13-6.8,17.08-9.3,19.31-8.1,27.66-2.73,28.18,18.39,8.11-1.7,17.72-8.7,23.84.7,7,10.73,18.65,16.19,25.82,26.65,9.5,13.85,16.3,28.67,19.84,44.84,2.99,13.6-.58,27.21-2.84,40.59-11.41,67.6-22.22,135.32-35.21,202.62-8.24,42.68-20.71,84.49-32.95,126.26-3.33,11.35-10.1,19.1-21.35,24.05-.83-4.9,6.15-7.48,2.86-12.88-4.88,3.63-9.75,7.22-14.57,10.87-1.31.99-2.66,2.27-4.26,1.12-1.53-1.1-.89-2.88-.67-4.49,1.41-10.2-3.52-13.97-13.15-9.82-6.46,2.78-10.69-.03-13.48-5.3-2.14-4.04-5.07-4.38-8.72-3.55-10.74,2.48-16.93-1.13-19.33-11.94-1.12-5.04-1.75-9.3-6.97-12.77-4.91-3.26-4.5-10.49-4.9-16.26-1.14-16.58-.09-33.15.36-49.73.09-3.37,2.67-8.46-.93-9.84-4.29-1.64-5.8,4.19-8,6.91-22.32,27.73-46.15,54.12-71,79.55-39.67,40.58-79.72,80.81-122.83,117.81-53.83,46.2-110.89,87.92-171.14,125.42-37.86,23.57-77.01,44.7-116.96,64.38-42.54,20.96-85.57,40.98-130.17,57.14-75.88,27.49-153.89,46.31-233.87,57.99-102.47,14.96-205.18,16.9-308.18,9.9-36.7-2.49-73.09-8.24-106.59-25.15-13.6-6.86-24.98-16.36-33.5-29.09-2.52-3.76-5.77-7.86-2.76-12.39,3.23-4.85,7.43-1.38,11.77-.99,10.62.96,16.86,7.66,24.22,13.55,12.77,10.23,28.43,12.32,43.97,13.89,42.29,4.25,84.51.51,
6126.63-2.54,67.51-4.89,134.43-14.41,200.44-29.64,87.11-20.11,170.44-50.76,250.81-89.77,103.44-50.21,199.87-111.17,286.12-187.46,51.16-45.24,99.23-93.7,144.92-144.51,10.45-11.62,21.73-22.48,31.55-34.73,4.09-5.1,10.75-7.41,13.2-14.9,1.59-4.86,8.19,1.89,13.04-1.5-11.01-1.09-8.09-6.03-3.71-11.19,15.28-18.03,30.23-36.32,43.96-55.58,1.48-2.07,2.87-4.21,3.31-7.97-8.48,3.95-17.07,7.67-25.41,11.9-24.26,12.31-48.52,24.58-74.5,33.05-7.14,2.33-13.73,6.34-20.84,8.78-8.82,3.03-17.92,5.22-26.9,7.78-2.39.68-2.76-.65-2.77-2.57-.01-1.75-.83-2.01-2.43-1.31-10.25,4.53-21.72,2.81-30.99,1.27-12.15-2.01-21.6-15.01-35.84-8.42-2.23,1.03-6.36-2.17-7.31-4.84-2.01-5.6,3.49-7.54,6.61-10.53,10.5-1.48,12.2-10.35,16.05-18.22-6.95.81-14.51,10.09-15.79,18.45Zm-59.68,300.01c.53.6,1.07,1.21,1.6,1.81,1.41-.69,2.93-1.2,4.2-2.08,36.15-24.95,70.21-52.5,102.33-82.45,41.61-38.8,79.25-81.42,117.87-123.08,10.46-11.28,22.75-21.06,30.3-35.01,2.02-3.73,5.48-7.44,11.28-2.03-1.65-3.44-5.02-6.96-2.45-8.94,11.42-8.8,16.19-22.62,25.75-32.76,7.35-7.79,14.01-16.13,17.3-26.8-15.61,15.32-27.35,34.29-44.48,48.07.51-5.59,6.26-7.98,6.83-15.33-23.16,26.85-45.19,52.39-67.23,77.93,15.77-11.13,25.79-27.95,41.45-38.96-36.84,43.64-75.85,85.2-116.06,125.64-40.47,40.71-83.9,78.11-128.7,113.99Zm395.99-262.96c-82.61,98.75-170.19,191.28-268.22,273.63,14.97-10.38,29.22-21.52,43.23-32.96,39.57-32.31,76.3-67.75,111.92-104.23,25.35-25.97,49.84-52.82,73.69-80.26,8.95-10.3,17.23-21.36,27.48-30.87,5.63-5.22,15.89-11.95,11.9-25.32Zm2.66-27.69c-62.68,76.18-131.23,146.99-200.57,217.07,74.06-65.76,142.49-136.67,200.57-217.07Zm-42.2-10.14c-52.73,61.83-106.98,122.11-162.51,181.24,60.49-54.8,114.56-115.37,162.51-181.24Zm93.76-246.17c-39.15,25.54-77.77,50.68-116.95,74.95,38.99-18.86,76.16-40.81,112.64-63.97,3.57-2.26,5.71-5.05,4.31-10.98Z`})}):null]}),o?(0,J.jsx)(`div`,{"data-tina-field":H(e,`image`),className:`mt-auto pt-16 lg:-mx-16 max-w-4/5 lg:max-w-2/5 self-center lg:self-end`,children:(0,J.jsx)(`img`,{alt:``,src:z(o,{width:Nn}),srcSet:ge(o,{widths:he}),sizes:d?Fn:Pn,width:s??void 0,height:c??void 0,loading:`eager`,fetchPriority:`high`})}):null]})]})},Rn=({id:e,color:t,title:n,link:r=!0})=>{let i=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`inline-block w-3 h-3 mr-2 rounded-full`,style:t?{backgroundColor:t}:{}}),n]}),a=e?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||`/`,o=L(`text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] flex items-center`);return(0,J.jsx)(`div`,{className:`flex flex-wrap items-center justify-start space-x-4 my-4`,children:r?(0,q.createElement)(s,{to:a,className:o},i):(0,q.createElement)(`span`,{className:o},i)})},zn=680,Bn=[`(min-width: 1120px) 331px`,`(min-width: 1024px) calc((100vw - 128px) / 3)`,`(min-width: 768px) calc((100vw - 56px) / 2)`,`calc(100vw - 32px)`].join(`, `),Vn=e=>{let{title:t,content:n}=e;return(0,J.jsx)(`div`,{"data-tina-field":`data-tina-field`in e?e[`data-tina-field`]:void 0,className:`w-full bg-white dark:bg-[#121a28] px-4 py-8 md:py-16`,children:(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto relative`,children:[(0,J.jsx)(`span`,{"data-tina-field":H(e,`title`),className:`block font-['parlare'] text-xl md:text-2xl md:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] mb-4 md:mb-0 md:absolute md:-left-8 md:-top-8`,children:t}),(0,J.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-12 auto-rows-[1fr]`,children:n?n.map(e=>{if(!e||!e?.post)return null;let{id:t,title:n,image:r,category:i,author:a}=e.post,{title:o}=a||{};return(0,J.jsxs)(s,{className:`no-underline!`,to:`/`+t?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||``,children:[r?(0,J.jsx)(`div`,{className:`w-full pb-[56.25%] relative overflow-hidden grayscale-[0.5] rounded-lg`,children:(0,J.jsx)(`img`,{alt:``,className:`absolute inset-0`,src:z(r,{width:zn}),srcSet:ge(r,{widths:me}),sizes:Bn,loading:`lazy`,decoding:`async`})}):null,(0,J.jsxs)(`div`,{className:`px-4`,children:[(0,J.jsx)(Rn,{...i,link:!1}),(0,J.jsx)(`h2`,{className:`font-display text-[#121a28] dark:text-white text-xl lg:text-2xl leading-tight font-semibold mb-4`,children:n}),(0,J.jsxs)(`div`,{className:`flex items-center text-sm`,children:[(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:o,className:`w-8 h-8 rounded-full border-2 border-[#f9f2e9] dark:border-[#121a28] mr-2`,
6src:`https://secure.gravatar.com/avatar/4052e6a43a9f720bbe57e9e81417b6b8?s=180&d=mm&r=g`}),`de `,o]})]})]},t)}):null})]})})},Hn=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},Un=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i,Wn=e=>e.length===3?e.split(``).map(e=>e+e).join(``):e,Gn=e=>{let t=Un.exec(e.trim())?.[1];if(!t)return 0;let n=Wn(t),[r,i,a]=[0,2,4].map(e=>Hn(parseInt(n.slice(e,e+2),16)));return .2126*r+.7152*i+.0722*a},Kn=e=>Gn(e)>.5,qn=({image:e,imageWidth:t,imageHeight:n,title:r,content:i,index:a,items:o})=>{let s=L(`font-display bg-[#f0a3a1] text-white rounded-lg flex items-center justify-center`,`w-8 h-8 text-xl lg:w-12 lg:h-12 lg:text-[2rem] font-bold lg:pb-2`,a===0&&`lg:mt-16`);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex lg:hidden flex-col items-center mb-8`,children:[(0,J.jsx)(`span`,{className:s,children:a+1}),e?(0,J.jsx)(`img`,{alt:``,className:`max-w-[70%] w-full my-4`,src:e,width:t??void 0,height:n??void 0,loading:`lazy`,decoding:`async`}):null,(0,J.jsx)(`h3`,{className:`font-display text-2xl leading-none font-bold mb-3 text-center`,children:(0,J.jsx)(U,{body:r})}),(0,J.jsx)(`div`,{className:`text-base leading-relaxed text-center`,children:(0,J.jsx)(U,{body:i})})]}),(0,J.jsxs)(`div`,{className:L(`hidden lg:flex items-center w-full`,a%2&&`flex-row-reverse`),children:[(0,J.jsxs)(`div`,{className:`flex-1`,children:[(0,J.jsx)(`h3`,{className:`font-display text-[2rem] leading-none font-bold mb-6 ml-0`,children:(0,J.jsx)(U,{body:r})}),(0,J.jsx)(`div`,{className:`text-lg leading-relaxed`,children:(0,J.jsx)(U,{body:i})})]}),(0,J.jsxs)(`div`,{className:`w-48 self-stretch flex flex-col items-center`,children:[a===0?null:(0,J.jsx)(`span`,{className:L(`w-0.5 bg-[#f0a3a1] block`,a<o.length-1?`h-full`:`h-[25%]`)}),(0,J.jsx)(`span`,{className:s,children:a+1}),a<o.length-1?(0,J.jsx)(`span`,{className:`w-0.5 h-full bg-[#f0a3a1] block`}):null]}),(0,J.jsx)(`div`,{className:`flex-1 py-8 flex items-center justify-center`,children:(0,J.jsx)(`img`,{alt:``,className:`max-w-[70%] w-full`,src:e,width:t??void 0,height:n??void 0,loading:`lazy`,decoding:`async`})})]})]})},Jn=({items:e})=>e?.filter(e=>e!==null).map((t,n)=>(0,J.jsx)(qn,{...t,index:n,items:e?.filter(e=>e!==null)||[]},n)),Yn=({course:e,className:t})=>{let n=Mt(),{modules:r,value:i}=e||{},a=typeof i==`number`?G(n,Nt(n,i)):null,o=r?r.length:e?.moduleCount??null,s=r?r.reduce((e,t)=>e+(t?.lessons?.length||0),0):e?.lessonCount??null;return(0,J.jsxs)(`div`,{className:L(`flex flex-wrap justify-center gap-2 lg:gap-0 lg:space-x-8`,t),children:[typeof o==`number`?(0,J.jsxs)(`p`,{"data-course-stat":`modules`,"data-count":o,className:`flex items-center font-bold text-sm lg:text-base mb-0`,children:[(0,J.jsx)(h,{className:`text-base lg:text-xl mr-1 lg:mr-2`,icon:E}),` `,o,` Módulos`]}):null,typeof s==`number`?(0,J.jsxs)(`p`,{"data-course-stat":`lessons`,"data-count":s,className:`flex items-center font-bold text-sm lg:text-base mb-0`,children:[(0,J.jsx)(h,{className:`text-base lg:text-xl mr-1 lg:mr-2`,icon:C}),` `,s,` Videos HD`]}):null,a?(0,J.jsxs)(`p`,{"data-course-stat":`value`,className:`flex items-center font-bold text-sm lg:text-base line-through mb-0`,children:[(0,J.jsx)(h,{className:`text-base lg:text-xl mr-1 lg:mr-2`,icon:D}),`\xA0`,a,`\xA0`]}):null]})},Xn=({course:e})=>{let{cover:t,promoVideoId:n,title:r}=e||{};return(0,J.jsxs)(J.Fragment,{children:[t?(0,J.jsx)(`div`,{className:`relative max-w-[42rem] w-full mx-auto mt-4 lg:mt-8 mb-4 lg:mb-8`,children:(0,J.jsxs)(`div`,{className:`overflow-hidden w-full pb-[56.25%] relative rounded`,children:[(0,J.jsx)(`div`,{className:`absolute flex items-center justify-center inset-0 z-10`,children:n?(0,J.jsx)(At,{className:`absolute inset-0 flex items-center justify-center focus-visible:outline-3 focus-visible:outline-offset-[-3px] focus-visible:outline-white`,title:r||`este curso`,videoId:n,children:(0,J.jsx)(`span`,{className:`bg-[#80333c] text-white rounded-lg shadow-2xl w-20 lg:w-36 aspect-video flex items-center justify-center`,children:(0,J.jsx)(h,{className:`text-[2rem] lg:text-[3rem]`,icon:M})})}):(0,J.jsx)(`span`,{className:`bg-[#80333c] text-white rounded-lg shadow-2xl w-20 lg:w-36 aspect-video flex items-center justify-center`,children:(0,J.jsx)(h,{className:`text-[2rem] lg:text-[3rem]`,icon:M})})}),(0,J.jsx)(`img`,{alt:``,className:`absolute inset-0`,src:t,loading:`lazy`,decoding:`async`})]})}):null,(0,J.jsx)(Yn,{course:e})]})},Zn={c120ed42808607c99c7cafebe25ce310:`thumbnails/courses/cero-procrastinacion/1.jpg`,fe69ec6089373c1ff2f35dc4ba5d9a39:`thumbnails/courses/cero-procrastinacion/2.jpg`,"04f21b0c4892695918b65dc26978c425":`thumbnails/courses/cero-procrastinacion/3.jpg`,"1df04e046f792777fe07d46d60d40fb0":`thumbnails/courses/cero-procrastinacion/4.jpg`,"3784d0654afdacae9fa988a221c51d06":`thumbnails/courses/cero-procrastinacion/5.jpg`,"69274f2c7b1ede3557b248b82815a4e9":`thumbnails/courses/construye-habitos-permanentes/1.jpg`,"7599345bdf592c365c9b031d70e2f273":`thumbnails/courses/construye-habitos-permanentes/2.jpg`,"853c98248d35ad9f50b18d7a23f7a670":`thumbnails/courses/construye-habitos-permanentes/3.jpg`,d1d827f4278274c69e95dea4fe30fa88:`thumbnails/courses/construye-habitos-permanentes/4.jpg`,"4ec7fa661498854298326f5b6511dc91":`thumbnails/courses/reto-energia/1.jpg`,"8cc45e90b01bef16af9aeac7771428da":`thumbnails/courses/reto-energia/2.jpg`,"07fd5711f8615022e42d62128c1730f6":`thumbnails/courses/reto-energia/3.jpg`,"5eff4f606fc2354811749388a1072837":`thumbnails/courses/sistema-fitmente/1.jpg`,e5ee7d33ee510219137d8810c80892d5:`thumbnails/courses/sistema-fitmente/2.jpg`,"7ff91d435c209309eb41b79e21ea4c32":`thumbnails/courses/sistema-fitmente/3.jpg`,dd5d0d939e3d21a3febd6b672304fa95:`thumbnails/courses/sistema-fitmente/4.jpg`,"83cdd653e40ed3e28f64d84d48c51721":`thumbnails/courses/sistema-fitmente/5.jpg`,d3e202f30643e25147272b9a7bc69a16:`thumbnails/courses/sistema-fitmente/6.jpg`,"34906ec8c869676dd6b48375a111aee2":`thumbnails/courses/sistema-fitmente/7.jpg`,ebad8b41d9cb768bc609fc143b4ad3a5:`thumbnails/courses/sistema-fitmente/8.jpg`},Qn=e=>{let t=e?Zn[e]:void 0;return t?`${B}/${t}`:void 0},$n=1344,er=e=>{if(!e||typeof e!=`object`)return{};let t=e,n=t.lesson||t;return{title:n.title,summary:n.summary,...n.videoId?{videoId:n.videoId}:{},...typeof n.thumbnailTime==`number`?{thumbnailTime:n.thumbnailTime}:{}}},tr=e=>{let t=e?.lessons?.map(er).find(({videoId:e})=>!!e);return t?.videoId?{videoId:t.videoId,thumbnailTime:t.thumbnailTime}:void 0},nr=({gradientTo:e})=>(0,J.jsx)(`div`,{className:`opacity-50 text-[#121a28]`,children:(0,J.jsxs)(`div`,{className:`w-full relative pb-[177%] bg-[#f0a3a1] rounded-2xl lg:rou
6nded-3xl overflow-hidden`,children:[(0,J.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-b from-transparent to-[${e}]`}),(0,J.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center`,children:[(0,J.jsx)(h,{className:`text-[2rem] lg:text-[4rem]`,icon:w}),(0,J.jsx)(`span`,{className:`font-display text-[#121a28] font-bold text-base lg:text-[2rem]`,children:`Próximamente`})]})]})}),rr=50,ir=10,ar=({content:e})=>{let t=[...(e||[]).flatMap(e=>e?.course?[e.course]:[]).map(e=>({courseProps:e})),{comingSoonGradient:`#a4c9cc`},{comingSoonGradient:`#072f2a`}],n=t.length,[r,i]=(0,q.useState)(0),[a,o]=(0,q.useState)(null),s=(0,q.useRef)(0),c=(0,q.useRef)(!1),l=(0,q.useRef)(0),u=e=>{l.current=r,i(t=>(t+e+n)%n)},d=(e,t)=>{let r=(e-t+n)%n;return r>n/2&&(r-=n),r},f=e=>{s.current=e.clientX,c.current=!1,o(0)},p=e=>{if(a===null)return;let t=e.clientX-s.current;Math.abs(t)>ir&&(c.current=!0),o(t)},m=()=>{a!==null&&(Math.abs(a)>rr&&u(a<0?1:-1),o(null))};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{className:`max-w-[68rem] mx-auto flex flex-col items-center pt-8 lg:pt-16`,children:(0,J.jsxs)(`ul`,{className:`flex space-x-4 text-2xl lg:text-[2rem] list-none pl-0`,children:[(0,J.jsx)(`li`,{className:`mb-0 pl-0`,children:(0,J.jsx)(`button`,{"aria-label":`Curso anterior`,onClick:()=>u(-1),children:(0,J.jsx)(h,{className:`text-2xl lg:text-[2rem]`,icon:g})})}),(0,J.jsx)(`li`,{className:`mb-0 pl-0`,children:(0,J.jsx)(`button`,{"aria-label":`Curso siguiente`,onClick:()=>u(1),children:(0,J.jsx)(h,{className:`text-2xl lg:text-[2rem]`,icon:x})})})]})}),(0,J.jsxs)(`div`,{className:`relative w-full overflow-hidden mt-4 lg:mt-8 mb-8 lg:mb-16 select-none touch-pan-y cursor-grab active:cursor-grabbing`,onPointerDown:f,onPointerMove:p,onPointerUp:m,onPointerCancel:m,onPointerLeave:m,onClickCapture:e=>{c.current&&=(e.preventDefault(),e.stopPropagation(),!1)},children:[(0,J.jsx)(`div`,{className:`w-[68vw] max-w-[18rem] lg:w-72 mx-auto invisible`,children:(0,J.jsx)(`div`,{className:`pb-[177%]`})}),t.map((e,t)=>{let n=d(t,r),i=Math.abs(n-d(t,l.current))>2,o=a??0;return(0,J.jsx)(`div`,{className:L(`absolute top-0 left-1/2 w-[68vw] max-w-[18rem] lg:w-72`,a===null&&!i&&`transition-transform duration-300 ease-out`),style:{transform:`translateX(calc(-50% + ${n*107}% + ${o}px)) scale(${n===0?1:.92})`,zIndex:20-Math.abs(n),opacity:n===0?1:.8},children:`courseProps`in e?(0,J.jsx)(Qt,{expanded:!0,title:e.courseProps.title||``,summary:e.courseProps.summary||``,logo:e.courseProps.logo||void 0,background:e.courseProps.background||void 0,backgroundColor:e.courseProps.backgroundColor||void 0,modules:e.courseProps.modules?.filter(e=>e!==null).map(e=>({title:e.title||void 0,lessons:e.lessons?.filter(e=>e!==null)||[]}))||[],page:e.courseProps.page||void 0,promoTriggerVideoId:e.courseProps.promoVideoId}):(0,J.jsx)(nr,{gradientTo:e.comingSoonGradient})},t)})]})]})},or=({content:e})=>{let t=Mt(Re()?.currency);return(0,J.jsx)(`div`,{className:`mx-auto flex w-full max-w-[68rem] flex-wrap items-start justify-center gap-6 lg:gap-8`,children:(e||[]).map((e,n)=>{let{course:r}=e||{};return r?(0,J.jsx)(Qt,{title:r.title||``,summary:r.summary||``,logo:r.logo||void 0,background:r.background||void 0,backgroundColor:r.backgroundColor||void 0,modules:r.modules?.filter(e=>e!==null).map(e=>({title:e.title||void 0,lessons:e.lessons?.filter(e=>e!==null)||[]}))||[],page:r.page||void 0,bonusLabel:r.durationLabel?`Bono · ${r.durationLabel}`:`Bono`,valueLabel:typeof r.value==`number`?G(t,Nt(t,r.value)):void 0},n):null})})},sr=({content:e})=>{let[t,n]=(0,q.useState)(0),[r,i]=(0,q.useState)(0),[a,o]=(0,q.useState)(t),[s,c]=(0,q.useState)([0]),[l,u]=(0,q.useState)(r);t!==a&&(o(t),i(0)),r!==l&&(u(r),c([0]));let{course:d}=e?.[t]||{},{modules:f=[]}=d||{},{lessons:p=[],preview:g}=f?.[r]||{},_=tr(f?.[r]),y=_?.videoId,x=z(Qn(y),{width:$n}),C=_&&!x?Zt([_],$n).toString():``,[w,T]=(0,q.useState)({});(0,q.useEffect)(()=>{C&&fetch(`/api/courses/thumbnails?${C}`).then(e=>e.json()).then(e=>{e.thumbnails&&T(t=>({...t,...e.thumbnails}))}).catch(e=>{console.error(`Failed to load module thumbnail:`,e)}
6)},[C]);let E=x||y&&w[y]||g,D=d?.title||`este curso`,O=d?.promoVideoId,k=E?(0,J.jsx)(`div`,{className:`relative max-w-[42rem] w-full mx-auto mb-4 lg:mb-8`,children:(0,J.jsxs)(`div`,{className:`overflow-hidden w-full pb-[56.25%] relative rounded`,children:[(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:``,className:`absolute inset-0 h-full w-full object-cover`,src:E}),(0,J.jsx)(`div`,{className:`bg-[#121a28] absolute inset-0 opacity-10 dark:opacity-0`})]})}):null;return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(`div`,{className:`w-full max-w-[68rem] mx-auto flex flex-col justify-center items-center pb-8 lg:pb-16`,children:[e?.length&&e.length>1?(0,J.jsx)(`p`,{className:`flex items-center font-bold text-sm lg:text-base text-center mb-4 lg:mb-8`,children:`Elige tu curso:`}):null,(0,J.jsxs)(Xt,{value:String(t),onValueChange:e=>n(Number(e)),children:[(0,J.jsxs)(qt,{"aria-label":`Elige tu curso`,className:`w-full flex items-center justify-between gap-3 p-3 lg:p-4 mb-0 bg-[#f0a3a1] text-[#121a28] font-bold text-sm lg:text-xl 
6cursor-pointer outline-none`,children:[(0,J.jsx)(Gt,{asChild:!0,children:(0,J.jsxs)(`span`,{className:`flex items-center`,children:[d?.icon?(0,J.jsx)(h,{className:`mr-2 lg:mr-3`,icon:m({prefix:`fal`,iconName:d.icon})}):null,d?.title]})}),(0,J.jsx)(Bt,{children:(0,J.jsx)(h,{className:`text-base lg:text-xl`,icon:b})})]}),(0,J.jsx)(Wt,{children:(0,J.jsx)(Ut,{position:`popper`,sideOffset:0,className:`z-50 w-[var(--radix-select-trigger-width)] bg-white dark:bg-[#3a4760] shadow-2xl overflow-hidden`,children:(0,J.jsx)(Ht,{children:(e||[]).map((e,n)=>{if(n===t)return null;let{course:r}=e||{},{icon:i,title:a}=r||{};return(0,J.jsx)(Kt,{value:String(n),className:`flex items-center gap-3 p-3 lg:p-4 text-sm lg:text-xl font-bold text-[#121a28] dark:text-white cursor-pointer outline-none data-[highlighted]:bg-[#f0a3a1] data-[highlighted]:text-[#121a28]`,children:(0,J.jsxs)(Vt,{children:[i?(0,J.jsx)(h,{className:`mr-2 lg:mr-3`,icon:m({prefix:`fal`,iconName:i})}):null,a]})},n)})})})})]}),(0,J.jsxs)(`div`,{className:`bg-[#fbd4c4] w-full flex flex-col lg:flex-row justify-start`,children:[(0,J.jsx)(`div`,{className:`w-full lg:basis-1/3 p-4 lg:p-6`,children:(0,J.jsx)(`ul`,{className:`list-none pl-0 flex lg:block overflow-x-auto gap-2 lg:gap-0`,children:f?.map((e,t)=>{let{title:n}=e||{};return(0,J.jsx)(`li`,{className:`flex-1 mb-0 pl-0 min-w-[8rem] lg:min-w-0`,children:(0,J.jsxs)(`button`,{onClick:()=>i(t),className:L(`p-2 lg:p-4 w-full text-left text-[#121a28] leading-snug flex-shrink-0 lg:flex-shrink`,t===r?`bg-white dark:bg-[#121a28] dark:text-white`:`bg-[#fbd4c4]`),children:[(0,J.jsx)(`p`,{className:`mb-0`,children:(0,J.jsxs)(`span`,{className:`text-xs lg:text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-4`,children:[`Modulo `,t+1,`:`]})}),(0,J.jsx)(`p`,{className:`font-display font-semibold text-base lg:text-2xl`,children:n})]})},t)})})}),(0,J.jsxs)(`div`,{className:`w-full lg:basis-2/3 py-4 lg:py-6 px-4 lg:px-10 bg-white dark:bg-[#3a4760]`,children:[(0,J.jsx)(`p`,{className:`text-xs lg:text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-2 lg:mb-4`,children:`Vista previa del Modulo:`}),k&&O?(0,J.jsx)(At,{className:`block w-full text-left`,flowContent:!0,title:D,videoId:O,children:k}):k,(0,J.jsx)(`ul`,{className:`list-none pl-0`,children:(p||[]).map((e,t)=>{let{title:n,summary:r}=er(e),i=s.includes(t);return(0,J.jsxs)(`li`,{className:`mb-4 lg:mb-6 last:mb-0 pl-0`,children:[(0,J.jsxs)(`button`,{className:`flex w-full font-bold mb-2 lg:mb-4 last:mb-0 text-left`,onClick:()=>{c(i?s.filter(e=>e!==t):[...s,t])},children:[(0,J.jsxs)(`p`,{className:`text-sm lg:text-base !mb-0`,children:[(0,J.jsxs)(`span`,{className:`text-xs lg:text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-4 mr-2 lg:mr-4`,children:[`Lección `,t+1,`:`]}),n]}),(0,J.jsx)(h,{className:`ml-auto text-[#f0a3a1] flex-shrink-0`,icon:i?v:S})]}),i&&r?(0,J.jsx)(`div`,{className:`text-sm lg:text-base`,children:(0,J.jsx)(U,{body:r})}):null]},t)})})]})]})]})})},cr=e=>{if(e?.coursesBonus)return(0,J.jsx)(or,{...e});switch(e?.type){case`summary`:return(0,J.jsx)(ar,{...e});default:return(0,J.jsx)(sr,{...e})}},lr=e=>{let{imageUrl:t,imageWidth:n,imageHeight:r,icon:i,body:a,imageTitle:o,blockVideoId:s,fullHeight:c=!1}=e,l=`data-tina-field`in e?e[`data-tina-field`]:void 0,u=`course`in e?e.course:null;return(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(`div`,{"data-tina-field":l,className:`max-w-[68rem] w-full mx-auto flex flex-col items-center relative z-10 text-[#121a28] dark:text-white`,children:(0,J.jsxs)(`div`,{className:`bg-white dark:bg-[#3a4760] p-6 lg:p-12 w-full flex flex-col lg:flex-row items-center gap-4 lg:gap-0 lg:space-x-8 my-4 lg:my-8`,children:[(0,J.jsxs)(`div`,{className:L(`basis-2/3`,!t&&`mx-auto`),children:[(0,J.jsxs)(`h2`,{"data-tina-field":H(e,`imageTitle`),className:`font-display dark:text-white text-xl lg:text-[1.75rem] leading-tight lg:leading-none font-semibold mb-3 lg:mb-6 mt-0 ml-0`,children:[o,i?(0,J.jsx)(h,{icon:m({prefix:`fal`,iconName:i}),className:`text-xl lg:text-2xl text-[#f0a3a1] ml-2 lg:ml-4`}):null]}),(0,J.jsx)(`div`,{"data-tina-field":H(e,`body`),className:`text-sm lg:text-lg content`,children:(0,J.jsx)(tt,{value:`blockWithImage`,children:(0,J.jsx)(U,{body:a})})}),u?(0,J.jsx)(Yn,{className:`justify-start lg:space-x-6 mt-3 lg:mt-4`,course:u}):null]}),t?.includes(`programas`)?(0,J.jsx)(`div`,{"data-tina-field":H(e,`imageUrl`),className:`w-full lg:basis-1/2`,children:(0,J.jsx)(`div`,{className:`relative max-w-[42rem] w-full mx-auto lg:-my-4 lg:-mr-24`,children:s?(0,J.jsx)(At,{className:`block w-full`,title:o||`esta sección`,videoId:s,children:(0,J.jsxs)(`span`,{className:`overflow-hidden w-full pb-[56.25%] relative rounded-lg block`,children:[(0,J.jsx)(`span`,{className:`absolute flex items-center justify-center inset-0 z-10 bg-[#121a28]/10`,children:(0,J.jsx)(`span`,{className:`bg-[#80333c] text-white rounded-lg shadow-2xl px-6 lg:px-12 py-1 lg:py-2 scale-50 inline-flex`,children:(0,J.jsx)(h,{icon:M,className:`text-[2rem] lg:text-[3rem]`})})}),(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:o??``,className:`absolute inset-0`,src:t})]})}):(0,J.jsxs)(`div`,{className:`overflow-hidden w-full pb-[56.25%] relative rounded-lg`,children:[(0,J.jsx)(`div`,{className:`absolute flex items-center justify-center inset-0 z-10 bg-[#121a28]/10`,children:(0,J.jsx)(`button`,{className:`bg-[#80333c] text-white rounded-lg shadow-2xl px-6 lg:px-12 py-1 lg:py-2 scale-50`,children:(0,J.jsx)(h,{icon:M,className:`text-[2rem] lg:text-[3rem]`})})}),(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:o??``,className:`absolute inset-0`,src:t})]})})}):t?(0,J.jsx)(`div`,{"data-tina-field":H(e,`imageUrl`),className:`w-full lg:basis-1/2 flex items-center justify-center lg:-my-16 lg:!-mr-16`,children:s?(0,J.jsx)(At,{className:`block w-full`,title:o||`esta sección`,videoId:s,children:(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:o??``,className:L(`w-full h-auto object-contain`,!c&&`max-h-[280px]`),src:t,width:n??void 0,height:r??void 0})}):(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:o??``,className:L(`w-full h-auto object-contain`,!c&&`max-h-[280px]`),src:t,width:n??void 0,height:r??void 0})}):null]})})})},Y=32,X=e=>`${B}/faces/${e}.jpg`,ur=({plan:e,currency:t,amount:n,compareAt:r,children:i})=>(0,J.jsxs)(`p`,{"data-baseline-plan":e,className:`text-sm lg:text-lg`,children:[r===null?null:(0,J.jsx)(`s`,{"data-baseline-compare":``,className:`mr-1 opacity-70`,children:G(t,r)}),G(t,n),` `,i]}),dr=({priceCta:e,displayFaces:t,displayReviews:n})=>{let r=p(),i=$t(),a=Mt(),o=Lt[a],{claimOnce:c,notePricing:l,offer:u,serverNowUnix:d}=Be(),f=qe(u.expiresAtUnix,d),m=Pt(a,u.active&&!f.expired),{preOpen:g,doorsClosing:_}=Fe(),[v]=(0,q.useState)(()=>c(`precio`)?Ke:void 0);return(0,q.useEffect)(()=>i?void 0:l(),[i,l]),i?null:(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(`div`,{id:v,className:`w-full max-w-[46rem] mx-auto my-8 lg:my-16 scroll-mt-14 bg-[#fbd4c4] dark:bg-[#3a4760] p-4 sm:p-8 lg:p-16 text-center flex flex-col items-center justify-center`,children:[(0,J.jsx)(`p`,{className:`text-sm lg:text-lg uppercase tracking-widest uppercase font-bold text-[#80333c] dark:text-[#f0a3a1] mb-4 lg:mb-8`,children:`Acceso inmediato a`}),(0,J.jsx)(`img`,{width:1016,height:116,loading:`lazy`,decoding:`async`,alt:`Habitualmente Logo`,src:r?`https://cdn.habitualmente.com/habitualmente-logos/habitualmente-logo-dark.svg`:`https://cdn.habitualmente.com/habitualmente-logos/habitualmente-logo.svg`,className:`max-w-64 lg:max-w-96 h-auto mb-4 lg:mb-8`}),(0,J.jsxs)(`div`,{className:`flex flex-col items-center lg:flex-row lg:flex-wrap lg:justify-center`,children:[(0,J.jsxs)(`p`,{className:`font-display text-[#f0a3a1] font-bold text-[2rem] lg:text-[3rem] line-through !mb-0 lg:mr-4`,children:[`\xA0`,G(a,o.monthlyCompareAt),`\xA0`]}),(0,J.jsxs)(`p`,{"data-baseline-headline":``,className:`font-display text-[#121a28] dark:text-white font-bold text-[2rem] lg:text-[3rem]`,children:[`desde `,G(a,m.yearlyPerMonth),` / mes`]})]}),(0,J.jsx)(ur,{plan:`yearly`,currency:a,amount:m.yearlyPerMonth,compareAt:m.compareAtYearlyPerMonth,children:`/ mes cobrado anualmente`}),u.active&&!f.expired?(0,J.jsx)(`div`,{className:`mt-4 w-full`,children:(0,J.jsx)(ze,{remaining:f,ground:`card`})}):_?(0,J.jsx)(`div`,{className:`mt-4 w-full`,children:(0,J.jsx)(ze,{remaining:_.remaining,ground:`card`,label:_.copy.long,shortLabel:_.copy.short,phase:_.phase,withDays:!0})}):null,g?(0,J.jsx)(Ge,{remaining:g.remaining,label:g.copy.long,note:Ne}):(0,J.jsxs)(s,{to:`/acceso-inmediato`,className:`relative flex items-center bg-[#f0a3a1] text-[#121a28] text-base lg:text-2xl font-bold px-4 lg:px-8 py-2 lg:py-3 rounded-full mt-4 lg:mt-8 mb-2 lg:mb-4`,children:[(0,J.jsx)(h,{className:`mr-2 lg:mr-4`,icon:ne}),e]}),t?(0,J.jsxs)(`div`,{className:`relative flex items-center mt-2 lg:mt-4 text-xs lg:text-sm`,children:[(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:``,className:`w-6 h-6 lg:w-8 lg:h-8 rounded-full border-2 border-[#fbd4c4] dark:border-[#3a4760]`,src:z(X(1),{width:Y}),srcSet:V(X(1),{width:Y})}),(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:``,className:`w-6 h-6 lg:w-8 lg:h-8 rounded-full border-2 border-[#fbd4c4] dark:border-[#3a4760] -ml-2`,src:z(X(2),{width:Y}),srcSet:V(X(2),{width:Y})}),(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:``,className:`w-6 h-6 lg:w-8 lg:h-8 rounded-full border-2 border-[#fbd4c4] dark:border-[#3a4760] -ml-2`,src:z(X(3),{width:Y}),srcSet:V(X(3),{width:Y})}),(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:``,className:`w-6 h-6 lg:w-8 lg:h-8 rounded-full border-2 border-[#fbd4c4] dark:border-[#3a4760] -ml-2`,src:z(X(4),{width:Y}),srcSet:V(X(4),{width:Y})}),(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:``,className:`w-6 h-6 lg:w-8 lg:h-8 rounded-full border-2 border-[#fbd4c4] dark:border-[#3a4760] -ml-2`,src:z(X(5),{width:Y}),srcSet:V(X(5),{width:Y})}),(0,J.jsxs)(`p`,{className:`ml-2`,children:[`Únete a `,(0,J.jsx)(`strong`,{className:`font-semibold`,children:`1,047+`}
6),` alumnos de todo el mundo`]})]}):null,n?(0,J.jsxs)(`div`,{className:`relative flex items-center mt-1 lg:mt-2 italic text-sm lg:text-base`,children:[(0,J.jsx)(h,{className:`text-white`,icon:N}),(0,J.jsx)(h,{className:`text-white`,icon:N}),(0,J.jsx)(h,{className:`text-white`,icon:N}),(0,J.jsx)(h,{className:`text-white`,icon:N}),(0,J.jsx)(h,{className:`text-white`,icon:N}),(0,J.jsx)(`span`,{className:`ml-1 text-[0.625rem] lg:text-xs text-[#80333c] dark:text-[#f0a3a1]`,children:`4.9/5 estrellas (127 reseñas)`})]}):null,(0,J.jsxs)(`div`,{className:`w-full flex text-white space-x-3 lg:space-x-6 mt-4 lg:mt-8 opacity-75 text-white`,children:[(0,J.jsx)(`img`,{width:1e3,height:324,loading:`lazy`,decoding:`async`,alt:``,className:`flex-1 w-6 lg:w-8`,src:`https://cdn.habitualmente.com/payment-methods/visa-dark.svg`}),(0,J.jsx)(`img`,{width:999,height:776,loading:`lazy`,decoding:`async`,alt:``,className:`flex-1 w-6 lg:w-8 max-h-12`,src:`https://cdn.habitualmente.com/payment-methods/mastercard-dark.svg`}),(0,J.jsx)(`img`,{width:1e3,height:363,loading:`lazy`,decoding:`async`,alt:``,className:`flex-1 w-6 lg:w-8`,src:`https://cdn.habitualmente.com/payment-methods/amex-dark.svg`}),(0,J.jsx)(`img`,{width:468,height:223,loading:`lazy`,decoding:`async`,alt:``,className:`flex-1 w-6 lg:w-8`,src:`https://cdn.habitualmente.com/payment-methods/stripe-dark.svg`}),(0,J.jsx)(`img`,{width:453,height:101,loading:`lazy`,decoding:`async`,alt:``,className:`flex-1 w-6 lg:w-8`,src:`https://cdn.habitualmente.com/payment-methods/klarna-dark.svg`})]})]})})},Z=()=>(0,J.jsxs)(`svg`,{className:`w-56 h-auto shrink-0`,version:`1.1`,viewBox:`0 0 500 250`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,J.jsx)(`path`,{fill:`currentColor`,d:`M377.7,70.7c-1.3-0.3-2.7-0.4-4.1-0.6c-2.9-0.8-5.3-1-7.4-0.9c-2.1-1.2-4.6-2.2-7.7-3c-3-1.1-5.4-1.5-7.5-1.7
7        c-2.1-1.5-4.7-2.8-7.9-4l0,0c-3.1-1.4-5.7-2.1-7.8-2.3c-2.1-1.6-4.5-3.1-7.6-4.3h0c-3.1-1.4-5.6-2.1-7.7-2.3
8        c-2.1-1.6-4.5-3.2-7.5-4.5l0,0c-3.1-1.3-5.6-1.9-7.7-2c-2.1-1.6-4.6-3.2-7.7-4.5l-0.1,0l-0.1,0c-3.1-1-5.7-1.4-7.9-1.3
9        c-2.1-1.5-4.5-2.9-7.6-4l-0.1,0l-0.1,0c-3.1-0.6-5.6-0.7-7.7-0.3c-2.1-1.3-4.6-2.3-7.7-3l-0.1,0h-0.1c-3-0.1-5.5,0.3-7.6,1
10        c-2.1-0.9-4.6-1.5-7.7-1.8l-0.1,1.3l-0.1-1.3c-3.1,0.2-5.6,0.9-7.7,1.8c-2.1-0.7-4.5-1-7.6-1h-0.1l-0.1,0c-3.1,0.7-5.6,1.8-7.7,3
11        c-2.1-0.4-4.6-0.3-7.7,0.3l-0.1,0l-0.1,0c-3.1,1.1-5.5,2.5-7.6,4c-2.2-0.1-4.7,0.3-7.9,1.3l-0.1,0l-0.1,0c-3.1,1.3-5.6,2.8-7.7,4.5
12        c-2.1,0.2-4.7,0.8-7.7,2l0,0c-3.1,1.4-5.5,2.9-7.5,4.5c-2.1,0.2-4.7,0.9-7.8,2.3h0c-3.1,1.3-5.5,2.8-7.6,4.3
13        c-2.1,0.2-4.7,0.9-7.8,2.3l0,0c-3.2,1.1-5.8,2.5-7.9,4c-2.1,0.1-4.5,0.5-7.5,1.7c-3.2,0.7-5.6,1.8-7.7,3c-2.1-0.1-4.5,0.1-7.4,0.9
14        c-1.5,0.1-2.9,0.3-4.1,0.6c-0.5,0.1-0.8,0.2-1.2,0.3C80.8,50,40.6,29.7,0,29.6v5.1c41,0,82.4,21.7,123.8,43.5
15        c42,22,83.9,44.1,126.2,44.1c42.3,0,84.2-22.1,126.2-44.1C417.6,56.5,459,34.8,500,34.8v-5.1c-40.6,0-80.8,20.3-121.1,41.4
16        C378.5,71,378.1,70.8,377.7,70.7z M300.9,107.5c-1-2.5-2-5.1-3.1-7.7l-0.1-0.3l1.5-3.1c1.6-3.2,3.1-6.3,4.6-9.4
17        c2,5.5,4.3,11.2,6.5,16.7l-0.3,0.5C307.1,105.4,304,106.5,300.9,107.5z M259,112.4c1.9-5,4.1-10.2,6.4-15.6
18        c2.3,5.8,4.5,11.4,6.4,16.7c-0.2,0.6-0.5,1.1-0.7,1.7c-3.5,0.6-7.1,1-10.6,1.3C260.1,115.2,259.5,113.8,259,112.4z M257.9,116.7
19        c-0.1,0-0.3,0-0.4,0c0.1-0.2,0.2-0.4,0.2-0.6C257.7,116.3,257.8,116.5,257.9,116.7z M256.8,106.2c-1.7-4.2-3.5-8.7-5.5-13.2
20        l0.7-1.6c2-4.7,3.9-9.4,5.7-14c1.9,4.9,3.8,9.8,5.9,14.8l0.5,1.3c-2.3,5.2-4.4,10.2-6.4,15.2C257.4,107.8,257.2,107,256.8,106.2z
21            M250.1,93L250.1,93h-0.1H250.1L250.1,93z M250,89.6c-2.2-5.3-4.4-10.6-6.4-15.7c0-0.1,0.1-0.3,0.1-0.4c2.9-7.9,5.3-15.4,6.2-21.8
22        c0.9,6.4,3.3,13.8,6.2,21.8c0,0.1,0.1,0.2,0.1,0.4C254.4,79,252.2,84.3,250,89.6z M242.3,108.6c-2-4.9-4.1-10-6.4-15.2l0.5-1.2
23        c2-5,4-9.9,5.9-14.8c1.8,4.5,3.7,9.1,5.6,13.7l0.8,1.9c-1.9,4.5-3.8,8.9-5.4,13.2C242.8,107,242.6,107.8,242.3,108.6z M239.5,116.6
24        c-3.5-0.3-7.1-0.8-10.6-1.3c-0.2-0.6-0.5-1.1-0.7-1.7c1.9-5.3,4.1-10.9,6.4-16.7c2.4,5.4,4.5,10.6,6.4,15.6
25        C240.5,113.8,239.9,115.2,239.5,116.6z M242.3,116.1c0.1,0.2,0.2,0.4,0.2,0.6c-0.1,0-0.3,0-0.4,0
26        C242.2,116.5,242.3,116.3,242.3,116.1z M210.6,111.1c-1.8-3.9-3.6-7.8-5.5-11.8c2.2-5.6,4.4-11.2,6.4-16.7
27        c1.6,3.5,3.2,7.1,4.9,10.7l1.2,2.4c-2.1,5.4-4.2,10.6-6,15.5C211.3,111.3,210.9,111.2,210.6,111.1z M189.9,104.2l-0.3-0.5
28        c2.3-5.6,4.5-11.2,6.5-16.7c1.5,3.1,3,6.2,4.6,9.4l1.5,3.1l-0.1,0.3c-1.1,2.7-2.1,5.2-3.1,7.7C196,106.5,192.9,105.4,189.9,104.2z
29            M177.9,99.3c0.6-1.4,1.2-2.8,1.7-4.1c0.4-1,0.7-2,1.1-3c1.6,3.2,3.3,6.4,5,9.7l0.5,0.9C183.4,101.7,180.6,100.5,177.9,99.3z
30            M133.2,72.5c0.4-0.3,1-0.5,1.4-0.8c1.7,0.2,3,0.8,3.8,1.7c1.4,1.6,1.8,4.2,1.4,7.4c-3.2-1.7-6.4-3.4-9.6-5
31        C131,74.6,131.9,73.5,133.2,72.5z M145.3,72.4L145.3,72.4c0.9-1.9,2.4-3.7,4.5-5.3c2.8,0,4.6,1.1,5.2,3.3c1.1,3.7-0.1,9.8-2.4,17
32        c-2.7-1.3-5.3-2.7-8-4.1C143.8,79.3,143.8,75.6,145.3,72.4z M157.5,78.8c0.9,4.3,2.6,8.8,4.9,13.4c-2.5-1.2-5-2.4-7.5-3.6
33        C156.1,85,157,81.7,157.5,78.8z M165.5,61.2c3.3,0,5,1.8,5.3,5c0.5,5.7-2.2,14.8-6,25c-3.4-7-5.8-13.6-5.3-19.4
34        C159.8,67.9,161.8,64.3,165.5,61.2z M166.5,94.1L166.5,94.1L166.5,94.1c3.1-8.1,5.5-15.6,6.4-21.6c1,5.2,3.2,10.7,6.1,16.5
35        c0,0.1,0.1,0.1,0.1,0.1c-0.6,1.7-1.2,3.3-1.9,5c-0.6,1.4-1.1,2.7-1.6,4.1C172.5,96.9,169.5,95.5,166.5,94.1z M180.8,54.5
36        c3.3,0,5.1,1.9,5.4,5.3c0.5,5.9-2.1,15.3-5.9,25.9c-3.4-7.3-5.9-14.1-5.4-20.1C175.2,61.5,177.1,57.8,180.8,54.5z M188.4,66.1
37        c1,5.5,3.2,11.3,6.1,17.5c0,0.1,0.1,0.1,0.1,0.2c-2,5.6-4.3,11.3-6.6,17l-0.1-0.1c-2.1-4-4.2-7.9-6.1-11.7c0-0.1,0.1-0.2,0.1-0.3
38        C185.1,80.2,187.5,72.4,188.4,66.1z M196.3,48c3.3,0.2,5.1,2.2,5.4,5.8c0.5,6.1-2.1,15.7-5.8,26.5c-3.4-7.7-5.9-14.9-5.4-21.1
39        C190.7,55,192.6,51.3,196.3,48z M203.8,60.7c1,5.7,3.2,11.8,6,18.2c0.1,0.1,0.2,0.3,0.2,0.4c-2,5.6-4.2,11.3-6.4,16.9l-0.5-1
40        c-2-4-3.9-7.9-5.7-11.6c0-0.1,0.1-0.3,0.2-0.4C200.5,74.9,202.8,67.1,203.8,60.7z M211.7,42.2c3.4,0.6,5.1,2.8,5.4,6.6
41        c0.5,6.3-2.2,16.1-5.9,27c-3.5-8.3-6-16.1-5.5-22.5C206.1,49,208,45.3,211.7,42.2z M219.2,56c1,5.9,3.2,12.5,6,19.4
42        c0,0.1,0.1,0.2,0.1,0.3c-2,5.6-4.2,11.3-6.5,16.9l-0.1-0.3c-2.1-4.4-4.1-8.8-6-13c0.1-0.2,0.2-0.5,0.3-0.7
43        C216,70.2,218.3,62.4,219.2,56z M227.1,38c3.3,1.1,5,3.7,5.3,7.6c0.5,6.4-2.1,15.9-5.8,26.4c-3.5-8.8-5.9-17-5.4-23.5
44        C221.6,44.1,223.5,40.6,227.1,38z M234.5,52.6c1,6.2,3.3,13.4,6.2,21c0,0.1,0.1,0.2,0.1,0.4c-2,5.3-4.2,10.8-6.4,16.3
45        c-2.2-4.9-4.4-9.8-6.3-14.6c0-0.1,0.1-0.3,0.2-0.4C231.3,66.9,233.6,59.1,234.5,52.6z M242.3,35.9c3.5,1.7,5.2,4.6,5.5,8.8
46        c0.5,6.5-2.1,15.6-5.7,25.5c-3.5-9.5-6.1-18.3-5.6-24.8C236.9,41.2,238.8,38,242.3,35.9z M233.1,93.5c-2.3,5.7-4.4,11.1-6.4,16.5
47        c-2-4.6-4.1-9.4-6.3-14.2l0.1-0.3c2.2-5.5,4.4-11.1,6.4-16.4c1.7,4,3.4,8,5.3,12.2v0L233.1,93.5z M201.5,108.4
48        c0.8-1.9,1.5-3.9,2.3-5.8c1.3,2.6,2.5,5.2,3.7,7.7C205.4,109.6,203.5,109.1,201.5,108.4z M219.1,99c2.3,5,4.4,9.8,6.3,14.5
49        c-0.1,0.3-0.3,0.7-0.4,1c-3.7-0.7-7.3-1.5-11-2.5C215.7,107.8,217.3,103.5,219.1,99z M257.6,35.9c3.6,2.1,5.4,5.3,5.7,9.5
50        c0.5,6.5-2.1,15.3-5.6,24.8c-3.6-9.9-6.1-19-5.7-25.5C252.4,40.6,254.2,37.6,257.6,35.9z M265.4,52.6c0.9,6.5,3.3,14.3,6.3,22.6
51        c0.1,0.1,0.1,0.3,0.2,0.4c-2,4.7-4.1,9.6-6.3,14.6c-2.2-5.5-4.4-11-6.4-16.3c0-0.1,0.1-0.2,0.1-0.4C262.2,66,264.5,58.8,265.4,52.6
52        z M272.9,38c3.6,2.6,5.5,6.2,5.8,10.5c0.5,6.5-1.9,14.7-5.4,23.5c-3.6-10.5-6.2-20-5.7-26.4C267.9,41.6,269.6,39.1,272.9,38z
53            M280.8,56c1,6.4,3.3,14.2,6.2,22.6c0.1,0.2,0.2,0.5,0.3,0.7c-1.9,4.2-3.9,8.6-6,13l-0.1,0.3c-2.3-5.6-4.5-11.3-6.5-16.9
54        c0-0.1,0.1-0.2,0.1-0.3C277.6,68.4,279.8,61.9,280.8,56z M288.3,42.2c3.7,3.1,5.6,6.7,5.9,11.1c0.5,6.4-2,14.2-5.5,22.5
55        c-3.7-10.9-6.4-20.7-5.9-27C283.2,45,284.9,42.8,288.3,42.2z M296.2,60.7c1,6.3,3.3,14.1,6.3,22.6c0,0.1,0.1,0.3,0.1,0.4
56        c-1.8,3.7-3.7,7.6-5.7,11.6l-0.5,1c-2.2-5.6-4.4-11.3-6.4-16.9c0.1-0.1,0.2-0.3,0.2-0.4C293.1,72.5,295.2,66.4,296.2,60.7z
57            M309.6,59.2c0.5,6.2-2,13.4-5.4,21.1c-3.7-10.8-6.3-20.4-5.8-26.5c0.3-3.6,2.1-5.6,5.4-5.8C307.4,51.3,309.3,55,309.6,59.2z
58            M311.6,66.1c0.9,6.2,3.3,14.1,6.4,22.5c0,0.1,0.1,0.2,0.1,0.3c-1.9,3.8-4,7.7-6.1,11.7l-0.1,0.1c-2.3-5.7-4.6-11.4-6.6-17
59        c0-0.1,0.1-0.1,0.1-0.2C308.4,77.5,310.6,71.6,311.6,66.1z M325.1,65.6c0.5,6-2,12.8-5.4,20.1c-3.8-10.
596-6.4-20-5.9-25.9
60        c0.3-3.4,2-5.2,5.3-5.3C322.9,57.8,324.8,61.5,325.1,65.6z M279.6,95.8c-2.3,4.8-4.4,9.5-6.3,14.2c-2-5.3-4.1-10.8-6.4-16.5l1-2.2
61        v0c1.8-4.2,3.6-8.2,5.3-12.2c2,5.3,4.2,10.9,6.4,16.4L279.6,95.8z M274.6,113.5c1.9-4.7,4-9.5,6.3-14.5c1.8,4.4,3.4,8.8,5,13
62        c-3.6,1-7.3,1.8-11,2.5C274.8,114.2,274.7,113.9,274.6,113.5z M288.4,111.4c-1.8-4.9-3.9-10.2-6-15.5l1.2-2.4
63        c1.7-3.6,3.3-7.2,4.9-10.7c2,5.5,4.2,11.1,6.4,16.7c-1.9,3.9-3.8,7.9-5.6,11.8C289.1,111.2,288.7,111.3,288.4,111.4z M292.6,110.2
64        c1.2-2.5,2.4-5.1,3.6-7.7c0.8,1.9,1.5,3.9,2.3,5.8C296.5,109.1,294.6,109.6,292.6,110.2z M313.8,102.8l0.5-0.9
65        c1.7-3.3,3.4-6.5,5-9.7c0.4,1,0.7,2,1.1,3c0.5,1.3,1.1,2.7,1.7,4.1C319.4,100.5,316.6,101.7,313.8,102.8z M322.9,94.2
66        c-0.7-1.7-1.3-3.4-1.9-5c0,0,0.1-0.1,0.1-0.1c2.8-5.8,5.1-11.3,6.1-16.5c1,6,3.3,13.5,6.4,21.6v0l0,0c-3,1.4-6,2.8-9,4.1
67        C323.9,96.9,323.4,95.6,322.9,94.2z M340.5,71.8c0.5,5.8-1.9,12.4-5.3,19.4c-3.8-10.2-6.4-19.3-6-25c0.3-3.3,2-5,5.3-5
68        C338.2,64.3,340.2,67.9,340.5,71.8z M342.5,78.8c0.5,2.9,1.5,6.3,2.6,9.8c-2.5,1.3-5,2.4-7.5,3.6C339.8,87.5,341.6,83,342.5,78.8z
69            M347.4,87.4c-2.3-7.2-3.5-13.3-2.4-17c0.7-2.2,2.4-3.3,5.2-3.3c2.1,1.6,3.6,3.4,4.5,5.3c1.5,3.2,1.5,6.9,0.7,10.9
70        C352.7,84.7,350,86.1,347.4,87.4z M361.6,73.4c0.8-0.9,2.1-1.5,3.8-1.7c0.4,0.3,1,0.5,1.4,0.8h0c1.3,1,2.2,2.1,3,3.3
71        c-3.2,1.7-6.4,3.4-9.6,5C359.8,77.6,360.2,75,361.6,73.4z M357.6,68.7L357.6,68.7l0.2,0c1.6,0.4,2.9,0.8,4.2,1.3
72        c-0.9,0.4-1.7,1-2.3,1.7c-0.7,0.8-1.2,1.8-1.5,2.9c-0.2-1.1-0.6-2.2-1.1-3.3l0,0c-0.6-1.2-1.4-2.4-2.4-3.5
73        C355.6,68.1,356.5,68.2,357.6,68.7z M342.1,63c1.8,0.6,3.3,1.3,4.7,2c-2.1,0.8-3.5,2.2-4.2,4.5c-0.5-2.7-1.5-5.2-3.4-7.5
74        C340.1,62.4,340.9,62.5,342.1,63L342.1,63z M326.6,56.3c1.7,0.7,3.1,1.6,4.4,2.4c-2,0.7-3.2,2.3-3.8,4.5c-0.5-2.7-1.5-5.4-3.4-7.8
75        C324.7,55.7,325.5,55.8,326.6,56.3L326.6,56.3z M311.3,49.5c1.8,0.8,3.1,1.7,4.5,2.5c-2,0.7-3.3,2.3-4,4.5c-0.6-2.9-1.7-5.6-3.7-8
76        C309.2,48.9,310.1,49,311.3,49.5L311.3,49.5z M295.8,43c1.8,0.8,3.3,1.7,4.7,2.6c-2.2,0.8-3.6,2.6-4.3,5.1c-0.6-3.1-1.8-5.9-4-8.4
77        C293.4,42.5,294.5,42.6,295.8,43z M280.4,37.8c1.8,0.7,3.3,1.5,4.7,2.3c-2.2,1-3.6,2.8-4.3,5.4c-0.7-3.1-2.1-5.7-4.3-7.9
78        C277.8,37.5,278.9,37.5,280.4,37.8z M265.1,34.4c1.8,0.4,3.3,1.1,4.7,1.7c-2.2,1.3-3.6,3.4-4.3,6.2c-0.7-3-2.1-5.6-4.4-7.5
79        C262.3,34.6,263.5,34.4,265.1,34.4z M250,33.6c1.7,0.1,3.1,0.5,4.4,0.9c-2.3,1.7-3.7,4-4.4,7c-0.7-3-2.1-5.3-4.4-7
80        C246.9,34.1,248.3,33.8,250,33.6z M234.9,34.4c1.6,0,2.8,0.2,4,0.4c-2.3,1.9-3.8,4.4-4.4,7.5c-0.7-2.8-2.1-4.9-4.3-6.2
81        C231.6,35.5,233,34.9,234.9,34.4z M219.6,37.8c1.5-0.3,2.6-0.2,3.8-0.2c-2.2,2.2-3.6,4.8-4.3,7.9c-0.7-2.6-2.1-4.4-4.3-5.4
82        C216.3,39.2,217.7,38.4,219.6,37.8z M204.2,43c1.4-0.5,2.4-0.5,3.5-0.7c-2.2,2.5-3.4,5.3-4,8.4c-0.7-2.6-2.1-4.3-4.3-5.1
83        C200.9,44.7,202.3,43.8,204.2,43z M188.7,49.5L188.7,49.5c1.2-0.5,2.1-0.6,3.1-0.9c-2,2.4-3.1,5.1-3.7,8c-0.7-2.3-2-3.8-4-4.5
84        C185.6,51.2,187,50.3,188.7,49.5z M173.4,56.3L173.4,56.3c1.1-0.5,1.9-0.6,2.8-0.9c-1.9,2.4-2.9,5-3.4,7.8
85        c-0.7-2.2-1.9-3.8-3.8-4.5C170.3,57.9,171.7,57.1,173.4,56.3z M157.9,63L157.9,63c1.2-0.5,2-0.6,2.9-1c-1.9,2.3-2.9,4.8-3.4,7.5
86        c-0.7-2.2-2.1-3.7-4.2-4.5C154.6,64.3,156.1,63.6,157.9,63z M142.2,68.7L142.2,68.7l0.2,0c1.1-0.4,2-0.6,3-0.8
87        c-1,1.1-1.8,2.3-2.4,3.5l0,0c-0.5,1-0.9,2.2-1.1,3.3c-0.4-1.1-0.8-2.1-1.5-2.9c-0.6-0.7-1.4-1.3-2.3-1.7
88        C139.3,69.5,140.6,69.1,142.2,68.7z M124.7,73c0.7-0.1,1.3-0.2,2-0.3h0.1l0.1,0c1.2-0.3,2.1-0.5,3.1-0.7c-0.8,0.8-1.6,1.7-2.1,2.7
89        c-0.6-0.3-1.2-0.6-1.8-0.9C125.7,73.5,125.2,73.2,124.7,73z M245.3,116.9c-0.5-1.5-1.1-3-1.7-4.5c0.7-1.8,1.2-3.4,1.9-5.3
90        c1.4-3.5,2.9-7.2,4.4-10.8c1.5,3.6,3,7.2,4.4,10.8c0.7,1.9,1.2,3.5,1.9,5.3c-0.6,1.5-1.2,3.1-1.7,4.5c-1.6,0.1-3.1,0.3-4.7,0.3
91        C248.4,117.2,246.9,117,245.3,116.9z M372,74.7c-0.6-1-1.3-1.8-2.1-2.7c1,0.2,2,0.3,3.1,0.7l0.1,0h0.1c0.8,0.1,1.4,0.2,2,0.3
92        c-0.5,0.3-1,0.5-1.5,0.8C373.2,74,372.6,74.4,372,74.7z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,219.8c-41.5,0-83.1-12.6-124.6-25.3C83.6,181.9,41.8,169.2,0,169.2v2.6c2.2,0,4.3,0.2,6.5,0.2
93        c-0.3,0.1-0.6,0.3-0.8,0.4c-1.9,0.7-3.8,1.1-5.7,1.1v2.5c2.2,0,4.3-0.5,6.5-1.2c1.9-0.7,3.8-1.6,5.7-2.6c1.4,0.1,2.9,0.1,4.3,0.2
94        c-0.5,0.3-1,0.5-1.5,0.8c-5.1,2.8-10.1,5.6-15,5.6v2.6c5.5,0,10.9-3,16.2-6c1.6-0.9,3.2-1.8,4.9-2.6c1.8,0.2,3.6,0.3,5.4,0.6
95        c-3.9,1-7.7,3.1-11.5,5.2c-5.1,2.8-10.1,5.6-15,5.6v2.6c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.6,15-5.6c4.9,0,9.9,2.8,15,5.6
96        c5.4,3,10.7,6,16.2,6c2.3,0,4.5-0.5,6.7-1.3c2-0.7,4-1.7,6-2.8c1.1,0.3,2.1,0.5,3.2,0.8c-0.3,0.2-0.6,0.3-0.9,0.5
97        c-5.1,2.8-10.1,5.7-15,5.7c-4.9,0-9.9-2.8-15-5.7c-5.4-3-10.7-6-16.3-6c-5.5,0-10.9,3-16.2,6c-5.1,2.8-10.1,5.7-15,5.7v2.6
98        c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.6,15-5.6c4.9,0,9.9,2.8,15,5.6c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6
99        c1.1-0.6,2.2-1.2,3.2-1.8c1.2,0.3,2.4,0.7,3.6,1c-2.7,1.1-5.4,2.5-8.1,4c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6
100        c-5.4-3-10.7-6-16.3-6c-5.5,0-10.9,3-16.2,6c-5.1,2.8-10.1,5.6-15,5.6v2.6c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.6,15-5.6
101        c4.9,0,9.9,2.8,15,5.6c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6c3.7-2.1,7.4-4.1,11.1-5.1c6.9,1.9,13.7,3.9,20.6,6
102        c2.3,1.3,4.7,2.5,7.1,3.5c2.5,1,5,1.6,7.5,1.6c0.3,0,0.7,0,1,0l0,0l0.7-0.1c1.6,0.5,3.2,1,4.8,1.5c-0.6,0.2-1.2,0.6-1.8,0.7
103        c-1.6,0.5-3.2,0.8-4.8,0.8c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6
104        c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.3-6c-5.5,0-10.9,3-16.2,6c-5.1,2.8-10.1,5.6-15,5.6v2.6c5.5,0,10.9-3,16.2-6
105        c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.7,15-5.7
106        c4.9,0,9.9,2.8,15,5.7c5.3,3,10.7,6,16.2,6c1.9,0,3.7-0.4,5.6-0.9c1.6-0.5,3.3-1.2,4.9-2c1,0.3,2.1,0.6,3.1,0.9
107        c-4.6,2.5-9.1,4.9-13.6,4.9c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6
108        c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.3-6c-5.5,0-10.9,3-16.2,6c-5.1,2.8-10.1,5.6-15,5.6v2.6c5.5,0,10.9-3,16.2-6
109        c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.7,15-5.7
110        c4.9,0,9.9,2.8,15,5.7c5.3,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6l0.8-0.4c1.1,0.3,2.2,0.6,3.2,1c-1.8,0.9-3.5,1.7-5.3,2.7
111        c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6
112        c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.3-6c-5.5,0-10.9,3-16.2,6c-5.1,2.8-10.1,5.6-15,5.6v2.6c5.5,0,10.9-3,16.2-6
113        c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.7,15-5.7
114        c4.9,0,9.9,2.8,15,5.7c5.3,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6c2.6-1.4,5.1-2.8,7.6-3.9c11.2,3.3,22.3,6.3,33.5,9l0,0.1
115        c0.3,0.1,0.7,0.2,1.1,0.3v0c0.4,0.1,0.7,0.2,1.1,0.2l0,0c21.8,5.1,43.6,8.6,65.5,8.6c21.8,0,43.7-3.5,65.5-8.6v0
116        c0.4-0.1,0.7-0.1,1.1-0.2v0c0.4-0.1,0.7-0.2,1.1-0.3l0-0.1c11.2-2.7,22.4-5.7,33.5-9c2.5,1,5,2.4,7.6,3.9c5.3,3,10.7,6,16.3,6
117        c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.3,6c5.5,0,10.9-3,16.2-6
118        c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.3,6v-2.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6
119        c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.2,6
120        c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6c-1.7-1-3.5-1.8-5.3-2.7c1.1-0.3,2.2-0.6,3.3-1l0.7,0.4c5.4,3,10.8,6,16.3,6
121        c5.5,0,10.9-3,16.3-6c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6
122        c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.3,6v-2.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6
123        c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.2,6
124        c-5.1,2.8-10.1,5.6-15,5.6c-4.4,0-9-2.3-13.6-4.9c1-0.3,2.1-0.6,3.1-0.9c1.6,0.8,3.3,1.5,4.9,2c1.8,0.6,3.7,0.9,5.6,0.9
125        c5.5,0,10.9-3,16.3-6c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6
126        c5.1-2.8,10.1-5.7,15-5.7c4.9,0,9.9,2.8,15,5.7c5.4,3,10.7,6,16.3,6v-2.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6
127        c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.2,6
128        c-5.1,2.8-10.1,5.6-15,5.6c-1.6,0-3.2-0.3-4.8-0.8c-0.6-0.2-1.2-0.5-1.8-0.7c1.6-0.5,3.2-1,4.8-1.4c0.2,0,0.5,0.1,0.7,0.1h0
129        c0.4,0,0.7,0,1,0c2.5,0,5-0.6,7.5-1.6v0c2.4-0.9,4.8-2.2,7.1-3.4c6.9-2.1,13.7-4.1,20.6-6c3.6,1,7.3,3,11.1,5.1
130        c5.4,3,10.7,6,16.2,6c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.6,15-5.6c4.9,0,9.9,2.8,15,5.6c5.4,3,10.7,6,16.3,6v-2.6
131        c-4.9,0-9.9-2.8-15-5.6c-5.4-3-10.7-6-16.2-6c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.6-15,5.6c-4.9,0-9.9-2.8-15-5.6
132        c-2.7-1.5-5.4-2.9-8.1-4c1.2-0.3,2.4-0.7,3.6-1c1.1,0.6,2.1,1.1,3.2,1.8c5.4,3,10.7,6,16.3,6c5.5,0,10.9-3,16.2-6
133        c5.1-2.8,10.1-5.6,15-5.6c4.9,0,9.9,2.8,15,5.6c5.4,3,10.7,6,16.3,6v-2.6c-4.9,0-9.9-2.8-15-5.7c-5.4-3-10.7-6-16.2-6
134        c-5.5,0-10.9,3-16.3,6c-5.1,2.8-10.1,5.7-15,5.7c-4.9,0-10-2.8-15-5.7c-0.3-0.2-0.6-0.3-0.9-0.5c1.1-0.3,2.1-0.5,3.2-0.8
135        c2,1,4,2.1,6,2.8c2.2,0.8,4.5,1.3,6.8,1.3c5.5,0,10.9-3,16.2-6c5.1-2.8,10.1-5.6,15-5.6c4.9,0,9.9,2.8,15,5.6c5.4,3,10.7,6,16.3,6
136        v-2.6c-4.9,0-9.9-2.8-15-5.6c-3.8-2.1-7.6-4.2-11.4-5.2c1.8-0.2,3.6-0.4,5.4-0.6c1.6,0.8,3.2,1.7,4.8,2.6c5.4,3,10.7,6,16.3,6v-2.6
137        c-4.9,0-10-2.8-15-5.6c-0.5-0.3-1-0.5-1.5-0.8c1.4-0.1,2.9-0.1,4.3-0.2c1.9,1,3.8,1.9,5.7,2.6c2.2,0.8,4.3,1.2,6.5,1.2v-2.6
138        c-1.9,0-3.8-0.4-5.7-1.1c-0.3-0.1-0.6-0.3-0.8-0.4c2.2-0.1,4.3-0.2,6.5-0.2v-2.6c-41.9,0-83.6,12.7-125.4,25.4
139        C333.1,207.2,291.5,219.8,250,219.8z M68.4,183.2c-2,0.7-3.9,1.1-5.9,1.1c-4.9,0-9.9-2.8-15-5.6c-2-1.1-3.9-2.1-5.9-3.1
140        c2.4,0.4,4.8,0.8,7.1,1.2c2.2,1.2,4.4,2.3,6.6,3.1c2.4,0.9,4.8,1.5,7.2,1.5c0.8,0,1.7-0.1,2.5-0.2c0.7-0.1,1.3-0.3,2-0.4
141        c1.4,0.3,2.8,0.7,4.2,1C70.3,182.3,69.3,182.8,68.4,183.2z M452.5,178.7c-5.1,2.8-10.1,5.6-15,5.6c-2,0-3.9-0.4-5.9-1.1
142        c-1-0.3-1.9-0.9-2.9-1.3c1.4-0.4,2.8-0.7,4.2-1c0.7,0.2,1.4,0.3,2,0.4c0.8,0.1,1.7,0.2,2.5,0.2c2.4,0,4.8-0.6,7.2-1.5
143        c2.2-0.8,4.4-2,6.6-3.1c2.4-0.5,4.7-0.8,7.1-1.2C456.4,176.5,454.5,177.6,452.5,178.7z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,213c-41.5,0-83-13.3-124.6-26.5C83.6,173.2,41.9,159.9,0,159.9v2.7c41.5,0,83,13.3,124.6,26.5
144        c41.8,13.3,83.6,26.6,125.4,26.6c41.8,0,83.6-13.3,125.4-26.6c41.5-13.2,83.1-26.5,124.6-26.5v-2.7c-41.9,0-83.6,13.3-125.4,26.6
145        C333,199.8,291.5,213,250,213z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,206.2c-41.4,0-83-13.9-124.5-27.7h0C83.7,164.5,41.9,150.6,0,150.6v2.9c41.4,0,83,13.9,124.5,27.7
146        c41.8,13.9,83.6,27.9,125.5,27.9c41.9,0,83.7-13.9,125.5-27.9c41.5-13.9,83.1-27.7,124.5-27.7v-2.9c-41.9,0-83.7,13.9-125.5,27.9
147        C333,192.3,291.4,206.2,250,206.2z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,199.3c-41.4,0-83-14.5-124.5-29C83.7,155.8,41.9,141.3,0,141.3v3.1c41.4,0,83,14.5,124.5,28.9
148        c41.8,14.5,83.6,29.1,125.5,29.1c41.9,0,83.7-14.6,125.5-29.1c41.5-14.5,83.1-28.9,124.5-28.9v-3.1c-41.9,0-83.7,14.6-125.5,29.1
149        C333,184.9,291.4,199.3,250,199.3z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,192.5c-41.4,0-82.9-15.1-124.4-30.2C83.7,147.1,41.9,132,0,132v3.3c41.4,0,82.9,15.1,124.4,30.2
150        c41.8,15.2,83.6,30.3,125.6,30.3c41.9,0,83.7-15.2,125.5-30.3c41.5-15.1,83.1-30.2,124.4-30.2V132c-41.9,0-83.8,15.2-125.6,30.4
151        C332.9,177.4,291.4,192.5,250,192.5z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,185.6c-41.4,0-82.9-15.7-124.4-31.4C83.8,138.5,42,122.7,0,122.7v3.4c41.4,0,82.9,15.7,124.4,31.4
152        c41.8,15.8,83.6,31.6,125.6,31.6c42,0,83.8-15.8,125.6-31.6c41.5-15.7,83-31.4,124.4-31.4v-3.4c-42,0-83.8,15.8-125.6,31.6
153        C332.9,170,291.4,185.6,250,185.6z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,178.8c-41.3,0-82.8-16.3-124.3-32.6C83.8,129.8,42,113.4,0,113.4v3.6c41.3,0,82.8,16.3,124.3,32.6
154        C166.2,166,208,182.4,250,182.4c42,0,83.8-16.4,125.7-32.9c41.5-16.3,83-32.6,124.3-32.6v-3.6c-42,0-83.8,16.4-125.7,32.8
155        C332.8,162.5,291.3,178.8,250,178.8z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,172c-41.3,0-82.8-16.9-124.3-33.8C83.9,121.1,42,104,0,104v3.8c41.3,0,82.8,16.9,124.3,33.8
156        c41.8,17,83.7,34.1,125.7,34.1c42,0,83.9-17.1,125.7-34.1c41.5-16.9,83-33.8,124.3-33.8V104c-42,0-83.9,17.1-125.7,34.1
157        C332.8,155,291.3,172,250,172z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,165.1c-41.3,0-82.8-17.5-124.2-35C83.9,112.4,42,94.8,0,94.8v3.9c41.3,0,82.8,17.5,124.2,35
158        c41.9,17.7,83.7,35.3,125.8,35.3c42,0,83.9-17.7,125.8-35.3c41.5-17.5,82.9-35,124.2-35v-3.9c-42,0-83.9,17.7-125.8,35.3
159        C332.8,147.6,291.3,165.1,250,165.1z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,158.3c-41.3,0-82.7-18.1-124.2-36.2C84,103.8,42.1,85.5,0,85.5v4.1c41.3,0,82.7,18.1,124.2,36.2
160        c41.9,18.3,83.7,36.6,125.8,36.6c42.1,0,84-18.3,125.8-36.6c41.5-18.1,82.9-36.2,124.2-36.2v-4.1c-42.1,0-83.9,18.3-125.8,36.6
161        C332.7,140.2,291.3,158.3,250,158.3z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,151.4c-41.2,0-82.7-18.7-124.1-37.4C84,95.1,42.1,76.2,0,76.2v4.3c41.2,0,82.7,18.7,124.1,37.4
162        c41.9,18.9,83.8,37.8,125.9,37.8c42.1,0,84-18.9,125.9-37.8c41.5-18.7,82.9-37.4,124.1-37.4v-4.3c-42.1,0-84,18.9-125.9,37.8
163        C332.7,132.7,291.2,151.4,250,151.4z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,144.6c-41.2,0-82.6-19.3-124.1-38.7C84,86.4,42.2,66.9,0,66.9v4.5c41.2,0,82.6,19.3,124.1,38.7
164        C165.9,129.5,207.8,149,250,149c42.2,0,84-19.5,125.9-39.1c41.4-19.3,82.9-38.7,124.1-38.7v-4.5c-42.2,0-84.1,19.5-125.9,39.1
165        C332.6,125.3,291.2,144.6,250,144.6z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M374,97.9c-41.4,19.9-82.8,39.9-124,39.9c-41.1,0-82.6-19.9-124-39.9h0C84.1,77.7,42.2,57.6,0,57.6v4.6
166        c41.2,0,82.6,19.9,124,39.8c41.9,20.2,83.8,40.3,126,40.3c42.2,0,84.1-20.2,126-40.3c41.4-19.9,82.8-39.8,124-39.8v-4.6
167        C457.8,57.6,415.9,77.7,374,97.9L374,97.9z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,130.9c-41.1,0-82.5-20.5-123.9-41.1C84.1,69.1,42.2,48.3,0,48.3v4.8c41.1,0,82.5,20.5,123.9,41.1
168        c41.9,20.8,83.8,41.6,126.1,41.6c42.2,0,84.1-20.8,126.1-41.6c41.4-20.5,82.8-41.1,123.9-41.1v-4.8c-42.2,0-84.1,20.8-126.1,41.6
169        C332.5,110.4,291.1,130.9,250,130.9z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M250,124.1c-41.1,0-82.5-21.1-123.9-42.3C84.2,60.4,42.2,39,0,39v5c41.1,0,82.5,21.1,123.9,42.3
170        C165.8,107.6,207.8,129,250,129c42.2,0,84.2-21.4,126.1-42.8c41.4-21.1,82.8-42.3,123.9-42.3v-5c-42.2,0-84.2,21.4-126.1,42.8
171        C332.5,102.9,291.1,124.1,250,124.1z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M437.3,36.5c-19.9,7.6-39.2,17.6-57.2,27c-0.8-0.2-1.6-0.4-2.4-0.5c-1.1-0.2-2.1-0.3-3.1-0.4
172        c-1.1-0.3-2.3-0.6-3.5-0.8c-1.1-0.2-2.2-0.3-3.3-0.3c-1.2-0.6-2.4-1.1-3.6-1.5c-1.3-0.5-2.6-0.8-3.9-1.2c-1.2-0.4-2.5-0.9-3.8-1.2
173        v0c-1.2-0.3-2.4-0.5-3.6-0.7c-1.1-0.7-2.3-1.3-3.5-1.9c-1.4-0.6-2.8-1.2-4.1-1.7c-1.2-0.5-2.4-1-3.8-1.4v0
174        c-1.2-0.4-2.4-0.7-3.7-0.9c-1.2-0.8-2.4-1.5-3.6-2.2c-1.3-0.7-2.7-1.4-4.2-2
174c-1.3-0.5-2.6-1.1-3.9-1.5c-1.2-0.4-2.4-0.7-3.6-1
175        c-1.2-0.8-2.3-1.6-3.5-2.3h0c-1.4-0.8-2.8-1.5-4.2-2.1l-0.1,0c-1.3-0.5-2.7-1-4.1-1.4c-1.2-0.4-2.4-0.6-3.7-0.9
176        c-1.1-0.8-2.3-1.5-3.5-2.2c-1.4-0.8-2.8-1.4-4.2-2l-0.2-0.1l-0.1,0l-0.2-0.1l-0.2-0.1c-1.3-0.4-2.7-0.8-4-1.1h0
177        c-1.2-0.2-2.4-0.4-3.6-0.5c-1.1-0.7-2.3-1.3-3.5-1.9c-1.4-0.7-2.8-1.3-4.2-1.7l-0.4-0.1l-0.1,0l-0.2,0l-0.4-0.1l0,0
178        c-1.3-0.3-2.7-0.5-4.1-0.6c-1.2-0.1-2.3-0.1-3.5,0c-1.1-0.5-2.2-1-3.4-1.5c-1.3-0.5-2.7-0.9-4.2-1.2l0,0l-0.5-0.1l-0.2-0.1l-0.3,0
179        l-0.5,0c-1.3,0-2.7,0-4,0.1h0c-1.2,0.1-2.3,0.3-3.4,0.5c-1.1-0.4-2.3-0.7-3.4-0.9c-1.4-0.3-2.7-0.4-4.1-0.5l-0.4,0l-0.2,0l-0.2,0
180        l-0.4,0c-1.4,0.1-2.8,0.3-4.1,0.5c-1.1,0.2-2.3,0.5-3.4,0.9c-1.1-0.2-2.2-0.4-3.4-0.5h0c-1.4-0.1-2.7-0.2-4-0.1l-0.5,0l-0.3,0
181        l-0.2,0.1l-0.5,0.1l0,0c-1.4,0.3-2.8,0.7-4.2,1.2c-1.2,0.4-2.3,0.9-3.4,1.5c-1.2-0.1-2.4,0-3.5,0c-1.4,0.1-2.8,0.3-4.1,0.6l0,0
182        l-0.4,0.1l-0.2,0l-0.1,0l-0.4,0.1c-1.4,0.5-2.8,1.1-4.2,1.7c-1.2,0.6-2.4,1.2-3.5,1.9c-1.2,0.1-2.4,0.3-3.6,0.5h0
183        c-1.4,0.3-2.7,0.7-4,1.1h0l-0.2,0.1l-0.2,0.1l-0.1,0l-0.2,0.1c-1.4,0.6-2.9,1.3-4.2,2c-1.2,0.7-2.4,1.4-3.5,2.2
184        c-1.2,0.2-2.5,0.5-3.7,0.8c-1.3,0.4-2.7,0.9-4,1.4l-0.1,0c-1.5,0.7-2.9,1.4-4.3,2.1c-1.2,0.7-2.4,1.4-3.6,2.3
185        c-1.2,0.2-2.5,0.6-3.6,1c-1.3,0.4-2.6,1-3.9,1.5h0c-1.4,0.6-2.8,1.2-4.1,2c-1.2,0.6-2.4,1.4-3.5,2.2c-1.3,0.2-2.5,0.5-3.7,0.9v0
186        c-1.4,0.4-2.6,0.9-3.8,1.4c-1.3,0.5-2.7,1-4.2,1.7c-1.2,0.6-2.4,1.2-3.5,1.9c-1.2,0.2-2.4,0.4-3.6,0.7v0c-1.3,0.3-2.6,0.8-3.8,1.2
187        c-1.3,0.3-2.6,0.7-3.9,1.1c-1.2,0.4-2.4,0.9-3.6,1.5c-1.1,0.1-2.3,0.2-3.3,0.3c-1.2,0.2-2.4,0.5-3.5,0.8c-1,0.1-2.1,0.2-3.1,0.4
188        c-0.8,0.1-1.6,0.3-2.4,0.5c-18-9.4-37.3-19.4-57.2-27C42.3,28.7,21.2,23.3,0,23.3v4.8c20.5,0,41,5.3,61,12.9
189        c20.1,7.7,39.5,17.7,57.5,27.2l0.8,0.4l0.9-0.2c0.9-0.3,1.9-0.5,2.8-0.6c0.9-0.2,1.9-0.3,2.9-0.4l0.2,0l0.2-0.1
190        c1.1-0.3,2.2-0.5,3.3-0.7s2.2-0.3,3.2-0.3l0.5,0l0.5-0.2c1.1-0.6,2.3-1.1,3.4-1.5c1.2-0.4,2.4-0.8,3.7-1.1l0.2,0l0.1,0
191        c1.1-0.4,2.3-0.8,3.4-1.1h0c1.1-0.3,2.3-0.5,3.4-0.7l0.6-0.1l0.5-0.3c1.1-0.7,2.3-1.3,3.5-1.9c1.1-0.5,2.4-1,3.7-1.5l0.1,0
192        c1.2-0.5,2.4-1,3.5-1.3h0c1.2-0.4,2.3-0.7,3.5-0.9l0.5-0.1l0.5-0.3c1.1-0.8,2.3-1.5,3.5-2.1c1.3-0.7,2.5-1.3,3.8-1.8h0
193        c1.1-0.5,2.3-1,3.5-1.4c1.2-0.4,2.3-0.7,3.5-0.9l0.6-0.1l0.5-0.3c1.1-0.8,2.3-1.6,3.5-2.3c1.3-0.7,2.6-1.4,3.8-1.9
194        c1.1-0.4,2.3-0.9,3.5-1.2c1.2-0.3,2.4-0.6,3.5-0.8l0.6-0.1l0.5-0.4c1.1-0.8,2.3-1.5,3.5-2.2c1.2-0.7,2.5-1.3,3.8-1.9l0.2-0.1l0.1,0
195        h0c1.1-0.4,2.3-0.7,3.5-0.9c1.2-0.2,2.3-0.4,3.5-0.4l0.7,0l0.5-0.4c1.1-0.7,2.3-1.4,3.5-2c1.2-0.6,2.4-1.1,3.7-1.5l0.2-0.1l0.2,0
196        l0,0c1.2-0.2,2.3-0.4,3.5-0.5c1.2-0.1,2.4-0.1,3.5,0l0.7,0.1l0.6-0.3c1.1-0.6,2.2-1.1,3.4-1.5c1.2-0.4,2.4-0.8,3.6-1.1l0,0l0.3-0.1
197        l0.3,0c1.2,0,2.3,0,3.5,0.1c1.1,0.1,2.2,0.3,3.3,0.6l0.7,0.2l0.7-0.3c1.1-0.4,2.2-0.7,3.4-0.9c1.2-0.2,2.4-0.4,3.6-0.5l0.2,0l0.2,0
198        c1.2,0.1,2.4,0.3,3.5,0.5c1.2,0.2,2.3,0.5,3.4,0.9l0.7,0.3l0.7-0.2c1.1-0.3,2.2-0.5,3.3-0.6c1.1-0.1,2.3-0.1,3.5-0.1l0.3,0l0.3,0.1
199        v0c1.2,0.3,2.4,0.6,3.6,1.1h0c1.1,0.4,2.3,0.9,3.4,1.5l0.6,0.3l0.7-0.1c1.1-0.1,2.3-0.1,3.5,0c1.2,0.1,2.4,0.3,3.5,0.5l0,0l0.2,0
200        l0.2,0.1c1.3,0.5,2.5,1,3.7,1.5c1.2,0.6,2.3,1.2,3.5,2l0.5,0.4l0.7,0c1.2,0,2.3,0.2,3.5,0.4l0,0c1.2,0.3,2.4,0.6,3.5,0.9l0.1,0
201        l0.2,0.1c1.3,0.5,2.6,1.2,3.8,1.9c1.2,0.7,2.4,1.4,3.5,2.2l0.5,0.3l0.6,0.1c1.2,0.1,2.4,0.4,3.6,0.8c1.2,0.4,2.4,0.8,3.6,1.3
202        c1.3,0.6,2.5,1.2,3.7,1.9l0,0c1.2,0.7,2.4,1.4,3.5,2.3l0.5,0.3l0.6,0.1c1.1,0.2,2.3,0.5,3.5,0.9c1.2,0.4,2.4,0.9,3.4,1.3l0.1,0
203        c1.3,0.5,2.5,1.1,3.8,1.8c1.3,0.7,2.4,1.4,3.5,2.2l0.5,0.3l0.6,0.1c1.2,0.2,2.3,0.5,3.5,0.9h0c1.1,0.4,2.3,0.8,3.5,1.3l0.1,0
204        c1.3,0.5,2.6,1,3.7,1.5c1.2,0.6,2.4,1.2,3.5,1.9l0.5,0.3l0.6,0.1c1.1,0.1,2.3,0.4,3.4,0.7c1.1,0.3,2.3,0.7,3.4,1.1l0.1,0l0.2,0
205        c1.2,0.3,2.5,0.6,3.7,1.1c1.2,0.4,2.3,0.9,3.4,1.5l0.5,0.2l0.5,0c1,0,2.1,0.1,3.2,0.3c1.1,0.2,2.2,0.4,3.3,0.7l0.2,0.1l0.2,0
206        c1,0.1,2,0.2,2.9,0.4c1,0.2,1.9,0.4,2.8,0.6l0.9,0.2l0.8-0.4c18-9.4,37.4-19.5,57.6-27.1c19.9-7.6,40.5-12.9,61-12.9v0v-4.8v0
207        C478.9,23.3,457.7,28.7,437.3,36.5z`}),(0,J.jsx)(`path`,{fill:`currentColor`,d:`M483.2,211.1c-5-2.8-9.7-5.5-14.5-5.5v0c-4.8,0-9.5,2.6-14.5,5.5c-5.2,3-10.9,6.1-16.8,6.1
208        c-5.9,0-11.6-3.2-16.8-6.1l0,0c-5-2.8-9.7-5.5-14.5-5.5v0c-4.8,0-9.5,2.6-14.5,5.5v0c-5.2,3-10.9,6.1-16.8,6.1
209        c-5.9,0-11.2-2.9-16.4-5.9c-2.2-1.2-4.4-2.4-6.7-3.5l-0.8-0.4l-0.8,0.2l-34.5,9.2l0,0c-25.7,4.8-46.3,8.1-66.9,8.5
210        c-20.5,0.4-41.1-2.2-66.8-9l-0.1,0c-5.2-1.2-10.6-2.6-16.2-4.2c-5.7-1.5-11-3-16.1-4.5l-0.9-0.2l-0.8,0.4c-2.3,1.1-4.5,2.3-6.7,3.5
211        c-5.2,2.9-10.5,5.9-16.4,5.9c-5.9,0-11.6-3.2-16.8-6.1h0c-5-2.8-9.7-5.5-14.5-5.5v0c-4.8,0-9.4,2.6-14.5,5.5
212        c-5.2,3-10.9,6.1-16.8,6.1c-5.9,0-11.6-3.2-16.8-6.1c-5-2.8-9.7-5.5-14.5-5.5v0c-4.8,0-9.5,2.6-14.5,5.5c-5.2,3-10.9,6.1-16.8,6.1
213        v4.8c7.1,0,13.4-3.5,19.1-6.8c4.5-2.5,8.6-4.9,12.1-4.9v0c3.5,0,7.7,2.3,12.1,4.8c5.8,3.3,12,6.8,19.1,6.8c7.1,0,13.4-3.5,19.2-6.8
214        c4.4-2.5,8.6-4.9,12.1-4.9v0c3.5,0,7.7,2.3,12.1,4.8h0c5.8,3.3,12,6.8,19.2,6.8c7.1,0,12.9-3.2,18.7-6.5c1.9-1,3.7-2.1,5.5-3
215        c5.3,1.5,10.4,3,15.3,4.3c5.2,1.4,10.6,2.8,16.3,4.2h0c26.2,7,47.2,9.6,68.1,9.2c20.9-0.4,41.8-3.7,67.7-8.6l0.2,0l0.2,0l33.6-9
216        c1.8,0.9,3.7,1.9,5.6,3c5.8,3.2,11.6,6.5,18.7,6.5c7.1,0,13.4-3.5,19.1-6.8h0c4.4-2.5,8.6-4.9,12.1-4.9v0c3.5,0,7.7,2.3,12.1,4.8h0
217        c5.8,3.3,12,6.8,19.1,6.8c7.1,0,13.4-3.5,19.1-6.8c4.4-2.5,8.6-4.9,12.1-4.9v0c3.5,0,7.7,2.3,12.1,4.8h0c5.8,3.3,12,6.8,19.1,6.8
218        v-4.8C494.1,217.2,488.4,214.1,483.2,211.1L483.2,211.1z`})]}),fr=({title:e,icon:t,subheadline:n,intro:r,icons:i})=>(0,J.jsxs)(`div`,{className:`relative max-w-[68rem] flex flex-col items-center bg-white w-full mx-auto p-16 lg:p-32 dark:text-[#121a28] mb-8 lg:mb-16`,children:[(0,J.jsxs)(`div`,{className:`rotate-180 w-full absolute top-0 left-0 right-0 flex text-[#f9f2e9] overflow-hidden`,children:[(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{})]}),(0,J.jsxs)(`div`,{className:`w-full absolute bottom-0 left-0 right-0 flex text-[#f9f2e9] overflow-hidden`,children:[(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{}),(0,J.jsx)(Z,{})]}),t?(0,J.jsx)(h,{className:`relative text-[3rem] lg:text-[4rem] -mt-2 lg:-mt-4 mb-4 lg:mb-8 text-[#f0a3a1]`,icon:m({prefix:`fal`,iconName:t})}):null,n?(0,J.jsx)(`span`,{className:`relative font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-2 lg:-mb-4 text-center`,children:n}):null,e?(0,J.jsx)(`h2`,{className:`relative font-display text-[#121a28] text-[2rem] lg:text-[3rem] leading-none font-bold mb-4 lg:mb-8 text-center`,children:e}):null,(0,J.jsx)(`div`,{className:`text-base lg:text-xl leading-relaxed text-center content`,children:(0,J.jsx)(U,{body:r})}),(0,J.jsx)(`div`,{className:`mt-4 lg:mt-8 relative flex flex-wrap lg:flex-nowrap gap-4 lg:gap-0 mx-auto w-full max-w-[68rem] justify-evenly items-center text-[#f0a3a1] mb-4 lg:mb-8`,children:i?i.map(jn):null})]}
218),pr=({versusTitle:e,firstTitle:t,firstIcon:n,firstItems:r,secondTitle:i,secondIcon:a,secondItems:o})=>{let[s,c]=(0,q.useState)(0),l=L(`fa-li`,s===0?`text-[#80333c]`:`text-white`),{itemTitle:u,items:d}=s===0?{itemTitle:t,items:(r||[]).map(e=>e?.content)}:{itemTitle:i,items:(o||[]).map(e=>e?.content)};return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(`div`,{className:`max-w-[42rem] mx-auto flex flex-col justify-center items-center pb-8 lg:pb-16 px-4 lg:px-0`,children:[(0,J.jsxs)(`div`,{className:`flex items-center mb-8 lg:mb-16`,children:[(0,J.jsxs)(`button`,{className:`relative flex items-center bg-[#f0a3a1] dark:text-[#121a28] text-base lg:text-xl font-bold px-4 lg:px-8 py-2 lg:py-3 rounded-full`,onClick:()=>c(0),children:[n?(0,J.jsx)(h,{className:`mr-2 lg:mr-4`,icon:m({prefix:`fal`,iconName:n})}):null,t]}),(0,J.jsx)(`span`,{className:`bg-white text-xs lg:text-sm font-extrabold block rounded-full mx-2 lg:mx-4 w-6 h-6 lg:w-8 lg:h-8 flex items-center justify-center text-[#f0a3a1]`,children:`ó`}),(0,J.jsxs)(`button`,{className:`relative flex items-center bg-[#f0a3a1] dark:text-[#121a28] text-base lg:text-xl font-bold px-4 lg:px-8 py-2 lg:py-3 rounded-full`,onClick:()=>c(1),children:[a?(0,J.jsx)(h,{className:`mr-2 lg:mr-4`,icon:m({prefix:`fal`,iconName:a})}):null,i]})]}),(0,J.jsxs)(`div`,{className:`bg-[#fbd4c4] dark:text-[#121a28] p-8 lg:p-16 flex-col items-center`,children:[(0,J.jsx)(`span`,{className:`block font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-4 text-center`,children:e}),(0,J.jsx)(`h2`,{className:`max-w-lg mx-auto font-display text-[#121a28] dark:text-white text-[2rem] lg:text-[3rem] leading-none font-bold mb-8 lg:mb-16 mt-0 text-center`,children:u}),(0,J.jsx)(`ul`,{className:`fa-ul text-base lg:text-xl`,children:d.map((e,t)=>(0,J.jsxs)(`li`,{className:`mb-2 lg:mb-4`,children:[(0,J.jsx)(h,{className:l,icon:s===0?j:P}),(0,J.jsx)(U,{body:e})]},t))})]})]})})},mr=({firstTitle:e,firstItems:t,secondTitle:n,secondItems:r})=>(0,J.jsx)(J.Fragment,{children:[{title:e,items:t??[]},{title:n,items:r??[]}].map(({title:e,items:t},n)=>{let r=L(`fa-li`,n===0?`text-[#80333c]`:`text-[#f8b69c] dark:text-[#f7dcb4]`);return e?.trim()===``&&t.length===0?null:(0,J.jsxs)(`div`,{className:`max-w-[42rem] mx-auto flex flex-col justify-center items-center mb-8 lg:mb-16 last:mb-0 px-4 lg:px-0`,children:[(0,J.jsx)(`h2`,{className:`max-w-lg mx-auto font-display text-[#121a28] dark:text-white text-[2rem] lg:text-[3rem] leading-none font-bold mb-8 lg:mb-16 mt-0 text-center`,children:e}),(0,J.jsx)(`ul`,{className:`fa-ul text-base lg:text-xl`,children:t.map((e,t)=>(0,J.jsxs)(`li`,{className:`mb-2 lg:mb-4`,children:[(0,J.jsx)(h,{className:r,icon:n===0?j:P}),(0,J.jsx)(U,{body:e?.content})]},t))})]},n)})}),hr=({type:e=`choose`,...t})=>{switch(e){case`compare`:return(0,J.jsx)(mr,{...t});default:return(0,J.jsx)(pr,{...t})}},gr=500,_r=[`(min-width: 1024px) calc((100vw - 160px) / 4)`,`calc((100vw - 80px) / 2)`].join(`, `),vr=({id:e,title:t,image:n,totalShares:r})=>(0,J.jsxs)(s,{to:`/`+(e?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||``),className:`no-underline!`,children:[(0,J.jsx)(`div`,{className:`w-full pb-[56.25%] relative overflow-hidden mb-4 rounded md:rounded-lg`,children:n?(0,J.jsx)(`img`,{alt:t,className:`absolute inset-0`,src:z(n,{width:gr}),srcSet:ge(n,{widths:me}),sizes:_r,loading:`lazy`,decoding:`async`}):null}),(0,J.jsx)(`h2`,{className:`text-[#121a28] dark:text-white text-base md:text-lg leading-tight font-semibold m-0 mb-4`,children:t}),(0,J.jsxs)(`div`,{className:`flex items-center text-sm text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1]`,children:[(0,J.jsx)(`span`,{className:`bg-[#2c64f6] text-white rounded-full w-5 h-5 flex items-end justify-center border-2 border-[#f9f2e9] dark:border-[#121a28]`,children:(0,J.jsx)(h,{className:`text-sm`,icon:gt})}),(0,J.jsx)(`span`,{className:`bg-[#c8232c] text-white rounded-full w-5 h-5 flex items-end justify-center -ml-1 border-2 border-[#f9f2e9] dark:border-[#121a28]`,children:(0,J.jsx)(h,{className:`text-sm`,icon:_t})}),(0,J.jsx)(`span`,{className:`bg-[#000000] text-white rounded-full w-5 h-5 flex items-center justify-center -ml-1 border-2 border-[#f9f2e9] dark:border-[#121a28] mr-2`,children:(0,J.jsx)(h,{className:`text-sm`,icon:yt})}
218),r?parseInt(r,10).toLocaleString():null]})]}),yr=({content:e})=>{let t=r(),n=`popular`in t?t.popular:{};return(0,J.jsx)(J.Fragment,{children:(e||[]).map(e=>{let{category:t}=e||{},{id:r,icon:i,title:a,color:o}=t||{},c=`/`+(r?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||``);return(0,J.jsxs)(`div`,{className:`w-full mb-8 md:mb-16 px-4 lg:px-8`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,J.jsxs)(`h2`,{className:`font-display text-xl lg:text-[1.75rem] flex items-center leading-none font-bold m-0`,children:[(0,J.jsx)(h,{className:`text-[${o}] mr-2`,icon:m({prefix:`fal`,iconName:i})}),a]}),(0,J.jsx)(s,{to:c,className:`bg-[${o}] text-white text-xs lg:text-sm px-3 lg:px-4 py-1 lg:py-2 rounded-full`,children:`Ver todos`})]}),(0,J.jsx)(`div`,{className:`grid grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-8`,children:r&&n?.[r]?n[r].slice(0,4).map(({node:e})=>e?(0,J.jsx)(vr,{...e,color:o||`#f0a3a1`},e.id):null):null})]},r)})})},br=`https://cdn.habitualmente.com/airpods-mockup.png`,Q=256,xr=128,Sr=128,Cr=({title:e,subtitle:t,image:n,sectionContent:i,apple:a,spotify:o,youtube:c,tania:l})=>{let u=r(),d=`podcast`in u?u.podcast:[],f=`totalPodcasts`in u?u.totalPodcasts:0;return(0,J.jsxs)(`div`,{className:`bg-[#f9f2e9] dark:bg-[#121a28] pt-64 lg:pt-24 md:-mb-16 px-4 lg:px-0`,children:[(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto relative`,children:[(0,J.jsx)(`div`,{className:`absolute left-1/2 -translate-x-1/2 -top-72 w-64 lg:hidden`,children:(0,J.jsx)(`img`,{alt:``,src:z(n,{width:Q}),srcSet:V(n,{width:Q}),width:256,height:256,loading:`lazy`,decoding:`async`})}),(0,J.jsxs)(`div`,{className:`relative z-10 flex flex-col lg:flex-row bg-white dark:bg-[#3a4760] lg:space-x-16 p-6 lg:p-8 rounded-xl lg:rou
218nded-none`,children:[(0,J.jsx)(`div`,{className:`hidden lg:block max-w-64 -my-24`,children:(0,J.jsx)(`img`,{alt:``,src:z(n,{width:Q}),srcSet:V(n,{width:Q}),width:256,height:256,loading:`lazy`,decoding:`async`})}),(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(`span`,{className:`block font-['parlare'] text-xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] lg:-ml-8 text-center -mb-2 lg:text-left`,children:t}),(0,J.jsx)(`h2`,{className:`font-display text-[#121a28] dark:text-white text-2xl lg:text-[3rem] leading-none font-bold mb-4 lg:mb-8 mt-0 text-center lg:text-left`,children:e}),(0,J.jsx)(`div`,{className:`text-base lg:text-xl mb-4 lg:mb-6 text-center lg:text-left`,children:(0,J.jsx)(U,{body:i})}),(0,J.jsxs)(`button`,{className:`relative flex items-center justify-center lg:justify-start bg-[#f0a3a1] dark:text-[#121a28] text-base lg:text-xl font-bold px-6 lg:px-8 py-2 lg:py-3 rounded-full mb-4 w-full lg:w-auto`,children:[(0,J.jsx)(h,{className:`mr-2 lg:mr-4`,icon:ne}),`Suscríbete GRATIS`]}),(0,J.jsx)(`p`,{className:`text-xs lg:text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-4 text-center lg:text-left`,children:`ó escucha ahora en:`}),(0,J.jsxs)(`div`,{className:`flex space-x-4 justify-center lg:justify-start`,children:[a?(0,J.jsx)(`a`,{href:a,className:`w-10 h-10 lg:w-12 lg:h-12 rounded-xl lg:rou
218nded-2xl bg-gradient-to-t from-[#842dc1] to-[#d36cfc] text-2xl lg:text-[2rem] text-white flex items-center justify-center`,children:(0,J.jsx)(h,{icon:ee})}):null,o?(0,J.jsx)(`a`,{href:o,className:`w-10 h-10 lg:w-12 lg:h-12 rounded-xl lg:rounded-2xl bg-[#1dd05f] text-2xl lg:text-[2rem] text-white flex items-center justify-center`,children:(0,J.jsx)(h,{icon:dt})}):null,c?(0,J.jsx)(`a`,{href:c,className:`w-10 h-10 lg:w-12 lg:h-12 p-2 rounded-xl lg:rounded-2xl bg-[#FF0000] text-2xl lg:text-[2rem] text-white flex items-center justify-center`,children:(0,J.jsx)(h,{icon:pt})}):null]}),(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,alt:``,src:z(br,{width:xr}),srcSet:V(br,{width:xr}),width:2376,height:2315,className:`hidden lg:block absolute right-0 bottom-0 -mb-16 w-32 h-auto`})]})]})]}),(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto flex flex-col lg:flex-row`,children:[(0,J.jsxs)(`div`,{className:`lg:basis-3/4 mt-8 md:mt-16 lg:mt-24 px-4 lg:px-8`,children:[(0,J.jsx)(`p`,{className:`text-xs lg:text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-4 lg:mb-8`,children:`Los ultimos entrevistas:`}),d.map(({node:e},t)=>{if(!e)return null;let{id:n,image:r,title:i}=e;return(0,J.jsxs)(s,{to:`/entrevistas/`+(n?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||``),className:`w-full flex space-x-4 lg:space-x-8 items-center group border-b-2 last:border-b-0 border-b-[#f0a3a1] dark:border-b-[#3a4760] pb-4 lg:pb-8 px-2 lg:px-4 mb-4 lg:mb-8 no-underline!`,children:[(0,J.jsx)(`div`,{className:`w-12 h-12 lg:w-16 lg:h-16 shrink-0 grow-0 rounded-full overflow-hidden bg-[#cd6759] group-hover:bg-white relative`,children:(0,J.jsx)(`div`,{className:`absolute inset-0 bg-cover bg-center opacity-75 group-hover:opacity-100 grayscale-[0.5] mix-blend-multiply`,style:{backgroundImage:`url(${z(r,{width:Sr})})`}})}),(0,J.jsx)(h,{className:`!hidden md:block text-2xl lg:text-[2rem]`,icon:M}),(0,J.jsxs)(`h2`,{className:`font-display text-[#121a28] dark:text-white text-base lg:text-xl leading-snug font-semibold m-0`,children:[(0,J.jsxs)(`span`,{className:`text-[#f0a3a1] dark:text-[#3a4760] mr-2`,children:[((f||0)-t).toString().padStart(3,`0`),`:`]}),i]})]},n)})]}),(0,J.jsx)(`div`,{className:`hidden lg:block mt-auto w-full max-w-96 px-16`,children:l?(0,J.jsx)(`img`,{alt:`Tania Sanz`,src:z(l,{width:Q}),srcSet:V(l,{width:Q}),width:871,height:1485,loading:`lazy`,decoding:`async`}):null})]})]})},wr=e=>{let{lessons:t,lessonsCtaText:n,bonus:r}=e,i=`data-tina-field`in e?e[`data-tina-field`]:void 0,a=u();return(0,J.jsxs)(`div`,{"data-tina-field":i,className:`max-w-3xl w-full mx-auto text-center my-8`,children:[t&&t.length>0&&(0,J.jsx)(`ul`,{"data-tina-field":H(e,`lessons`),className:`list-none p-0 m-0`,children:t.map((e,t)=>(0,J.jsx)(`li`,{"data-tina-field":H(e),className:`last:border-b-0 border-b-2 py-8 px-4 mb-0`,children:(0,J.jsxs)(`p`,{className:`font-bold`,children:[(0,J.jsxs)(`span`,{className:`block text-sm uppercase tracking-widest uppercase font-bold text-[#f0a3a1] mb-2`,children:[(0,J.jsx)(h,{icon:_,className:`mr-2`}),`Lección #`,e?.number]}),e?.lessonTitle]})},t))}),n&&(0,J.jsx)(`p`,{className:`mt-8`,children:(0,J.jsxs)(`button`,{onClick:()=>{r&&a(d((0,J.jsx)(nt,{...r})))},className:`inline-flex items-center bg-[#f0a3a1] dark:text-[#121a28] text-white font-bold px-8 py-3 rounded-full text-2xl hover:bg-[#cd6759] transition-colors`,children:[(0,J.jsx)(h,{className:`mr-4`,icon:se}),n]})})]})},Tr=({threadKey:e,emptyHeading:t,nativeCommentsByThreadKey:n={}})=>{let r=e?.trim();return r?(0,J.jsxs)(`div`,{className:`w-full`,children:[(0,J.jsx)(bt,{comments:n[r]??[],slug:r,emptyHeading:t}),(0,J.jsx)(xt,{slug:r,replyingTo:null})]}):null},Er=({videoId:e,videoPoster:t})=>{let{signedToken:n}=kt(e),r=(0,q.useId)();return(0,q.useEffect)(()=>()=>W(r,!1),[r]),n?(0,J.jsx)(`div`,{className:`w-full max-w-3xl aspect-video bg-black rounded-lg overflow-hidden mb-8`,children:(0,J.jsx)(wt,{controls:!0,src:n,customerCode:Et,autoplay:!1,muted:!1,loop:!1,preload:`auto`,responsive:!0,className:`w-full h-full`,onPlay:()=>W(r,!0),onPause:()=>W(r,!1),onEnded:()=>W(r,!1)})}):(0,J.jsxs)(`div`,{className:`relative w-full max-w-3xl aspect-video bg-black rounded-lg overflow-hidden flex items-center justify-center mb-8`,children:[t&&(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,src:t,alt:`Video thumbnail`,className:`absolute inset-0 w-full h-full object-cover opacity-50`}
218),(0,J.jsx)(`div`,{"data-video-loading":!0,className:`animate-pulse text-white/50`,children:`Cargando video...`})]})},Dr=({icon:e,text:t,url:n,index:r,isLink:i})=>{let a=(0,J.jsxs)(J.Fragment,{children:[e&&(0,J.jsx)(`span`,{className:`bg-[#f0a3a1] text-white rounded-lg flex items-center justify-center w-8 h-8 lg:w-10 lg:h-10 shrink-0`,children:(0,J.jsx)(h,{icon:m({prefix:`fal`,iconName:e}),className:`text-base lg:text-xl`})}),(0,J.jsxs)(`span`,{className:i?`text-base lg:text-lg text-[#80333c] dark:text-[#f0a3a1] hover:text-[#6a2a32] dark:hover:text-[#e89393] underline`:`text-base lg:text-lg text-[#333] dark:text-[#f9f2e9]`,children:[r+1,`. `,t]})]});return i&&n?(0,J.jsx)(`li`,{className:`!pl-0 last:mb-0 flex items-center gap-3 lg:gap-4`,children:(0,J.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-3 lg:gap-4 no-underline`,children:a})}):(0,J.jsx)(`li`,{className:`!pl-0 last:mb-0 flex items-center gap-3 lg:gap-4`,children:a})},Or=({listStyle:e,items:t})=>{let n=e===`links`;return!t||t.length===0?null:(0,J.jsx)(`div`,{className:`bg-[#fbd4c4] dark:bg-[#3a4760] rounded-lg p-4 lg:p-6 mb-8 w-full max-w-lg`,children:(0,J.jsx)(`ol`,{className:`!list-none !pl-0 m-0 space-y-3`,children:t.map((e,t)=>(0,J.jsx)(Dr,{icon:e?.icon,text:e?.text||``,url:e?.url,index:t,isLink:n},t))})})},kr=({percent:e,progressLabel:t})=>(0,J.jsxs)(`div`,{className:`w-full max-w-lg mb-8`,children:[(0,J.jsx)(`div`,{className:`relative h-6 bg-[#e5e5e5] dark:bg-[#3a4760] rounded-full overflow-hidden`,children:(0,J.jsx)(`div`,{className:`absolute left-0 top-0 h-full bg-[#80333c] dark:bg-[#f0a3a1] transition-all duration-500`,style:{width:`${e}%`}})}),t&&(0,J.jsx)(`p`,{className:`text-center text-sm lg:text-base text-[#666] dark:text-[#a0a0a0] mt-2`,children:t})]}),Ar=({step1Title:e,step1Description:t,step2Title:r,step2Description:i,emailSubject:a,emailBody:o,emailButtonText:s,emailRedirectUrl:c})=>{let l=n(),u=a&&o?`mailto:?subject=${encodeURIComponent(a)}&body=${encodeURIComponent(o)}`:``;return(0,J.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 mb-8 w-full max-w-3xl`,children:[(0,J.jsxs)(`div`,{className:`bg-[#fbd4c4] dark:bg-[#080c13] rounded-lg p-6 text-center`,children:[(0,J.jsx)(`h4`,{className:`text-base lg:text-lg font-semibold text-[#f0a3a1] dark:text-[#3a4760] mb-2 line-through`,children:e||`Paso 1: Comparte con un amigo`}),(0,J.jsx)(`p`,{className:`text-sm text-[#f0a3a1] dark:text-[#3a4760] mb-3`,children:t||`Haz que tus amigos se enteren del Blog`}),(0,J.jsxs)(`div`,{className:`flex gap-2 justify-center`,children:[(0,J.jsxs)(`span`,{className:`inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg font-semibold text-sm bg-[#f0a3a1] dark:bg-[#3a4760] text-[#f9f2e9] dark:text-[#121a28] cursor-not-allowed`,children:[(0,J.jsx)(h,{icon:ht}),(0,J.jsx)(`span`,{children:`WhatsApp`})]}),(0,J.jsxs)(`span`,{className:`inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg font-semibold text-sm bg-[#f0a3a1] dark:bg-[#3a4760] text-[#f9f2e9] dark:text-[#121a28] cursor-not-allowed`,children:[(0,J.jsx)(h,{icon:mt}),(0,J.jsx)(`span`,{children:`Messenger`})]})]})]}),(0,J.jsxs)(`div`,{className:`bg-white dark:bg-[#3a4760] rounded-lg p-6 text-center border-2 border-[#80333c] dark:border-[#f0a3a1]`,children:[(0,J.jsx)(`h4`,{className:`text-base lg:text-lg font-semibold text-[#121a28] dark:text-white mb-2`,children:r||`Paso 2: Comparte por correo`}),(0,J.jsx)(`p`,{className:`text-sm text-[#666] dark:text-[#a0a0a0] mb-3`,children:i||`Avisa a una persona especial sobre el Blog`}),(0,J.jsxs)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>{et(`share`,{method:`Email`,content_type:`article`}),c&&setTimeout(()=>l(c),500)},className:`inline-flex items-center justify-center gap-2 px-6 py-3 rounded-lg font-semibold text-base lg:text-lg transition-all no-underline bg-[#80333c] hover:bg-[#6a2a32] dark:bg-[#f0a3a1] dark:hover:bg-[#e89393] text-white dark:text-[#121a28]`,children:[(0,J.jsx)(h,{icon:O}),(0,J.jsx)(`span`,{children:s||`Compartir por correo`})]})]})]})},$=Ze.filter(e=>e!==`wk1`),jr={"pre-open":$,discount:$,open:$,"last-48h":$,"trial-tail":[`wk1`],closed:$},Mr=e=>
218e===void 0?$:jr[e],Nr=(e,t,n)=>n?`${e}:${t}:offer`:`${e}:${t}`;Ze.flatMap(e=>Xe.flatMap(t=>[!1,!0].map(n=>Nr(e,t,n))));var Pr=e=>e.plan!==`wk1`&&e.amountToday<e.renewalAmount,Fr=(e,t)=>Pr(t)?e[Nr(t.plan,t.policy,t.discounted)]:void 0,Ir=`habitualmente-suscripcion`,Lr=`Suscripción Habitualmente`,Rr=`pricing01`,zr=`oferta_lanzamiento`,Br=e=>e/100,Vr=(e,t)=>({item_id:Ir,item_name:Lr,item_variant:t.plan,price:Br(t.amountToday),currency:e.toUpperCase(),quantity:1}),Hr=Rr,Ur=({offerActive:e,policy:t,bucket:n,funnelId:r},i)=>({offer_active:e,renewal_policy:t,plan_key:i,...n?{experiment_id:Hr,experiment_variant:n}:{},...r?{funnel_id:r}:{}}),Wr=({currency:e,coupons:t={}},n)=>{let r=Fr(t,n);return{currency:e.toUpperCase(),value:Br(n.amountToday),...r?{coupon:r}:{}}},Gr=(e,t,n)=>({event:`view_item`,ecommerce:{item_list_id:Rr,...Wr(e,n),items:t.map(t=>Vr(e.currency,t))},params:Ur(e,n.plan)}),Kr=(e,t,n)=>({event:`view_promotion`,ecommerce:{promotion_name:zr,...Wr(e,n),items:t.map(t=>Vr(e.currency,t))},params:Ur(e,n.plan)}),qr=(e,t)=>({event:`select_item`,ecommerce:{item_list_id:Rr,...Wr(e,t),items:[Vr(e.currency,t)]},params:Ur(e,t.plan)}),Jr=(e,t)=>({event:`select_promotion`,ecommerce:{promotion_name:zr,...Wr(e,t),items:[Vr(e.currency,t)]},params:Ur(e,t.plan)}),Yr=(e,t)=>({event:`begin_checkout`,ecommerce:{...Wr(e,t),items:[Vr(e.currency,t)]},params:Ur(e,t.plan)}),Xr=`wk4`,Zr=32,Qr=[1,2,3,4,5],$r=e=>`${B}/faces/${e}.jpg`,ei=[{name:`visa`,width:1e3,height:324},{name:`mastercard`,width:999,height:776},{name:`amex`,width:1e3,height:363},{name:`stripe`,width:468,height:223},{name:`klarna`,width:453,height:101}],ti=e=>`${e} semana${e===1?``:`s`}`,ni=e=>`cada ${ti(e)}`,ri=()=>tn.reduce((e,t)=>e+t.value,0),ii=e=>e.renewalPlan===e.plan&&e.renewalAmount===e.amountToday,ai=e=>e===1?`la primera semana`:`las primeras ${ti(e)}`,oi=(e,t)=>ii(e)?`${G(t,e.amountToday)} ${ni(e.weeks)}`:`${G(t,e.amountToday)} ${ai(e.weeks)}`,si=({quote:e,currency:t})=>(0,J.jsxs)(`span`,{"data-plan-subline":``,className:`flex flex-wrap items-center gap-x-1.5 text-sm leading-snug text-[#80333c] dark:text-[#f9f2e9]/80`,children:[e.compareAt===null?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`s`,{"data-plan-compare":`period`,className:`opacity-70`,children:G(t,e.compareAt)}),(0,J.jsx)(h,{"aria-hidden":!0,icon:I,className:`text-[0.7em]`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`rebajado a`})]}),(0,J.jsx)(`span`,{children:oi(e,t)})]}),ci=({quote:e,currency:t,isSelected:n})=>(0,J.jsxs)(`span`,{"data-plan-perday":``,className:L(`my-2 grid shrink-0 place-items-center py-2 pr-4 pl-7 text-center [clip-path:polygon(1.25rem_0,100%_0,100%_100%,1.25rem_100%,0_50%)]`,n?`bg-[#80333c] text-white dark:bg-[#f0a3a1] dark:text-[#121a28]`:`bg-[#fbd4c4] text-[#121a28] dark:bg-[#3a4760] dark:text-[#f9f2e9]`),children:[e.compareAtPerDay===null?null:(0,J.jsx)(`s`,{"data-plan-compare":`per-day`,className:`font-display text-sm leading-none font-bold tabular-nums opacity-70`,children:G(t,e.compareAtPerDay)}),(0,J.jsx)(`span`,{"data-plan-perday-amount":``,className:`font-display text-2xl leading-tight font-extrabold tabular-nums`,children:G(t,e.perDay)}),(0,J.jsx)(`span`,{className:`text-xs leading-none opacity-80`,children:`por día`})]}),li=(e,t)=>`Después, ${G(t,e.renewalAmount)} ${ni(e.renewalWeeks)}. Cancela cuando quieras desde Ajustes → Suscripción. 14 días de garantía. Impuestos incluidos.`,ui=({event:e,ecommerce:t,params:n})=>$e(e,t,n),di=({policy:e,cta:t,note:n})=>{let r=Be(),{currency:i,offer:a,coupons:o,serverNowUnix:c,courseCode:l,bucket:u,plans:d,funnelId:f,claimOnce:m,notePricing:g,setPricingVisible:_}=r,v=p(),y=qe(a.expiresAtUnix,c),b=a.active&&!y.expired,{preOpen:x,doorsClosing:S}=Fe(),C=Ye(e)?e:`regular`,[w,T]=(0,q.useState)(Xr),E=d.map(e=>It(i,e,C,b)),D=E.find(({plan:e})=>e===w)??E[E.length-1],O={currency:i,offerActive:b,policy:C,coupons:o,bucket:u,funnelId:f},[k]=(0,q.useState)(()=>m(`precio`)?Ke:void 0);(0,q.useEffect)(()=>g(),[g]);let A=(0,q.useRef)(null),[j,M]=(0,q.useState)(!1);(0,q.useEffect)(()=>{let e=A.current;if(!e||typeof IntersectionObserver>`u`)return;let t=new IntersectionObserver(([t])=>{_(e,t.isIntersecting),t.isIntersecting&&M(!0)},{threshold:.05});return t.observe(e),()=>{t.disconnect(),_(e,!1)}},[_]),(0,q.useEffect)(()=>{j&&(m(`view_item`)&&ui(Gr(O,E,D)),b&&m(`view_promotion`)&&ui(Kr
218(O,E,D)))},[j,m]);let ee=e=>{T(e.plan),ui(qr(O,e))},P=()=>{b&&ui(Jr(O,D)),ui(Yr(O,D))},F=`/acceso-inmediato?plan=${D.plan}${l?`&course=${l.toLowerCase()}`:``}`,te=t||`Empezar con ${ti(D.weeks)} por ${G(i,D.amountToday)}`,re=Math.min(...E.map(({amountToday:e})=>e)),ie=v?`${B}/habitualmente-logos/habitualmente-logo-dark.svg`:`${B}/habitualmente-logos/habitualmente-logo.svg`;return(0,J.jsxs)(`div`,{ref:A,id:k,"data-offer-state":b?`offer`:`regular`,className:`mx-auto my-8 flex w-full max-w-[46rem] scroll-mt-14 flex-col items-center bg-[#fbd4c4] p-4 text-center sm:p-6 lg:my-16 lg:p-16 dark:bg-[#3a4760]`,children:[(0,J.jsx)(`p`,{className:`mb-4 text-sm font-bold tracking-widest text-[#80333c] uppercase lg:mb-8 lg:text-lg dark:text-[#f0a3a1]`,children:`Acceso inmediato a`}),(0,J.jsx)(`img`,{width:1016,height:116,loading:`lazy`,decoding:`async`,alt:`Habitualmente Logo`,src:ie,className:`mb-4 h-auto max-w-64 lg:mb-8 lg:max-w-96`}),(0,J.jsxs)(`p`,{"data-offer-value-summary":``,className:`mb-6 flex flex-col items-center gap-x-4 gap-y-1 font-display text-base leading-tight font-bold sm:flex-row lg:text-lg`,children:[(0,J.jsxs)(`span`,{className:`text-[#f0a3a1]`,children:[(0,J.jsx)(`s`,{"data-offer-value":`courses`,className:`tabular-nums`,children:G(i,Nt(i,ri()))}),` `,`cada curso por separado`]}),(0,J.jsxs)(`span`,{className:`text-[#121a28] dark:text-white`,children:[`desde`,` `,(0,J.jsx)(`span`,{"data-offer-value":`lowest`,className:`tabular-nums`,children:G(i,re)})]})]}),We(r)&&!y.expired?(0,J.jsx)(ze,{remaining:y,ground:`card`}):S?(0,J.jsx)(ze,{remaining:S.remaining,ground:`card`,label:S.copy.long,shortLabel:S.copy.short,phase:S.phase,withDays:!0}):null,(0,J.jsx)(`div`,{role:`radiogroup`,"aria-label":`Elige tu plan`,className:`grid w-full gap-3`,children:E.map(e=>{let t=e.plan===w,n=e.plan===`wk4`;return(0,J.jsxs)(`button`,{type:`button`,role:`radio`,"data-plan":e.plan,"aria-checked":t,onClick:()=>ee(e),className:`flex flex-col text-left`,children:[n?(0,J.jsxs)(`span`,{"data-plan-badge":`popular`,className:`flex items-center justify-center gap-2 bg-[#80333c] py-1.5 text-[0.68rem] font-extrabold tracking-[0.14em] text-white uppercase dark:bg-[#f0a3a1] dark:text-[#121a28]`,children:[(0,J.jsx)(h,{"aria-hidden":!0,icon:N}),`Más popular`]}):null,(0,J.jsxs)(`span`,{className:L(`flex items-stretch gap-3 border-2 bg-white dark:bg-[#121a28]`,t?`border-[#80333c] dark:border-[#f0a3a1]`:`border-transparent`),children:[(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-3 py-4 pl-4`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:L(`grid size-5 shrink-0 place-items-center rounded-full border-2 border-[#fbd4c4] dark:border-[#f9f2e9]/40`,t&&`border-[#80333c] bg-[#80333c] dark:border-[#f0a3a1] dark:bg-[#f0a3a1]`),children:t?(0,J.jsx)(`span`,{className:`size-1.5 rounded-full bg-white dark:bg-[#121a28]`}):null}),(0,J.jsxs)(`span`,{className:`grid min-w-0 flex-1 gap-1`,children:[(0,J.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 font-display text-xl leading-tight font-bold text-[#121a28] dark:text-white`,children:[ti(e.weeks),e.plan===`wk12`?(0,J.jsx)(`span`,{"data-plan-badge":`best-price`,className:`rounded-full bg-[#f0a3a1] px-2.5 py-0.5 font-sans text-xs font-semibold text-[#121a28]`,children:`Mejor precio`}):null]}),(0,J.jsx)(si,{quote:e,currency:i})]})]}),(0,J.jsx)(ci,{quote:e,currency:i,isSelected:t})]})]},e.plan)})}),x?(0,J.jsx)(Ge,{remaining:x.remaining,label:x.copy.long,note:Ne}):(0,J.jsxs)(s,{to:F,onClick:P,className:`relative mt-4 mb-2 flex min-h-12 items-center rounded-full bg-[#f0a3a1] px-4 py-2 text-base font-bold text-[#121a28] lg:mt-8 lg:mb-4 lg:px-8 lg:py-3 lg:text-2xl`,children:[(0,J.jsx)(h,{"aria-hidden":!0,className:`mr-2 lg:mr-4`,icon:ne}),te]}),(0,J.jsx)(`p`,{"data-offer-renewal":``,className:`max-w-[42rem] text-sm leading-snug text-[#121a28]/66 dark:text-[#f9f2e9]/68`,children:li(D,i)}),(0,J.jsxs)(`div`,{className:`relative mt-2 flex items-center text-xs lg:mt-4 lg:text-sm`,children:[Qr.map(e=>(0,J.jsx)(`img`,{width:Zr,height:Zr,loading:`lazy`,decoding:`async`,alt:``,className:L(`h-6 w-6 rounded-full border-2 border-[#fbd4c4] lg:h-8 lg:w-8 dark:border-[#3a4760]`,e>1&&`-ml-2`),src:z($r(e),{width:Zr}),srcSet:V($r(e),{width:Zr})},e)),(0,J.jsxs)(`p`,{className:`ml-2`,children:[`Únete a `,(0,J.jsx)(`strong`,{className:`font-semibold`,children:`1,047+`}
218),` alumnos de todo el mundo`]})]}),(0,J.jsxs)(`div`,{className:`relative mt-1 flex items-center text-sm italic lg:mt-2 lg:text-base`,children:[Qr.map(e=>(0,J.jsx)(h,{"aria-hidden":!0,className:`text-white`,icon:N},e)),(0,J.jsx)(`span`,{className:`ml-1 text-[0.625rem] text-[#80333c] lg:text-xs dark:text-[#f0a3a1]`,children:`4.9/5 estrellas (127 reseñas)`})]}),(0,J.jsx)(`div`,{className:`mt-4 flex w-full space-x-3 text-white opacity-75 lg:mt-8 lg:space-x-6`,children:ei.map(({name:e,width:t,height:n})=>(0,J.jsx)(`img`,{width:t,height:n,loading:`lazy`,decoding:`async`,alt:``,className:`w-6 flex-1 lg:w-8`,src:`${B}/payment-methods/${e}-dark.svg`},e))}),n?(0,J.jsx)(`p`,{className:`mt-4 max-w-[42rem] text-sm text-[#121a28]/66 dark:text-[#f9f2e9]/68`,children:n}):null]})},fi=(e,t,n,r)=>{if(!e)return null;switch(e.__typename){case`PageBlocksSectionSectionBlocksImageList`:case`CategoryBlocksSectionSectionBlocksImageList`:return(0,J.jsx)(Jn,{...e},t);case`PageBlocksSectionSectionBlocksCourse`:case`CategoryBlocksSectionSectionBlocksCourse`:return(0,J.jsx)(Xn,{...e},t);case`PageBlocksSectionSectionBlocksCourses`:case`CategoryBlocksSectionSectionBlocksCourses`:return(0,J.jsx)(cr,{...e},t);case`PageBlocksSectionSectionBlocksBlockWithImage`:case`CategoryBlocksSectionSectionBlocksBlockWithImage`:return(0,J.jsx)(lr,{...e},t);case`PageBlocksSectionSectionBlocksPrice`:case`CategoryBlocksSectionSectionBlocksPrice`:return(0,J.jsx)(dr,{...e},t);case`PageBlocksSectionSectionBlocksGuarantee`:case`CategoryBlocksSectionSectionBlocksGuarantee`:return(0,J.jsx)(fr,{...e},t);case`PageBlocksSectionSectionBlocksVersus`:case`CategoryBlocksSectionSectionBlocksVersus`:return(0,J.jsx)(hr,{...e},t);case`PageBlocksSectionSectionBlocksFAQ`:case`CategoryBlocksSectionSectionBlocksFAQ`:return(0,J.jsx)(en,{...e,faqData:n},t);case`PageBlocksSectionSectionBlocksPopularCategories`:case`CategoryBlocksSectionSectionBlocksPopularCategories`:return(0,J.jsx)(yr,{...e},t);case`PageBlocksSectionSectionBlocksPodcastTeaser`:case`CategoryBlocksSectionSectionBlocksPodcastTeaser`:return(0,J.jsx)(Cr,{...e},t);case`PageBlocksSectionSectionBlocksBlockquote`:case`CategoryBlocksSectionSectionBlocksBlockquote`:return(0,J.jsx)(it,{...e,root:!0},t);case`PageBlocksSectionSectionBlocksRichText`:case`CategoryBlocksSectionSectionBlocksRichText`:return(0,J.jsx)(Sn,{...e},t);case`PageBlocksSectionSectionBlocksLessonsList`:case`CategoryBlocksSectionSectionBlocksLessonsList`:return(0,J.jsx)(wr,{...e},t);case`PageBlocksSectionSectionBlocksNativeComments`:case`CategoryBlocksSectionSectionBlocksNativeComments`:return(0,J.jsx)(Tr,{...e,nativeCommentsByThreadKey:r},t);case`PageBlocksSectionSectionBlocksVideo`:case`CategoryBlocksSectionSectionBlocksVideo`:return(0,J.jsx)(Er,{...e},t);case`PageBlocksSectionSectionBlocksIconList`:case`CategoryBlocksSectionSectionBlocksIconList`:return(0,J.jsx)(Or,{...e},t);case`PageBlocksSectionSectionBlocksProgress`:case`CategoryBlocksSectionSectionBlocksProgress`:return(0,J.jsx)(kr,{...e},t);case`PageBlocksSectionSectionBlocksSocialShare`:case`CategoryBlocksSectionSectionBlocksSocialShare`:return(0,J.jsx)(ot,{url:e.shareUrl||void 0,title:e.shareText||void 0,redirectUrl:e.redirectUrl||void 0},t);case`PageBlocksSectionSectionBlocksEmailShare`:case`CategoryBlocksSectionSectionBlocksEmailShare`:return(0,J.jsx)(Ar,{...e},t);case`PageBlocksSectionSectionBlocksExperto`:case`CategoryBlocksSectionSectionBlocksExperto`:return(0,J.jsx)(at,{...e,expertoImage:e.expertoImage??void 0,name:e.name??void 0,instagram:e.instagram??void 0,website:e.website??void 0,facebook:e.facebook??void 0},t);case`PageBlocksSectionSectionBlocksOfferPricing`:case`CategoryBlocksSectionSectionBlocksOfferPricing`:return(0,J.jsx)(di,{...e},t);case`PageBlocksSectionSectionBlocksOfferCountdown`:case`CategoryBlocksSectionSectionBlocksOfferCountdown`:return(0,J.jsx)(Ue,{...e},t);default:return null}},pi=e=>{let{className:t,sectiontitle:n,subheadline:r,icon:i,body:a,sectionBlocks:o,backgroundColor:s,backgroundImage:c,faqData:l,nativeCommentsByThreadKey:u}=e,d=`data-tina-field`in e?e[`data-tina-field`]:void 0,f=Mt(),p=n&&jt(f,n),g=r&&jt(f,r),_=o?.some(e=>e?.__typename?.match(/BlocksSectionSectionBlocksCourses/)&&`type`in e&&e.type===`summary`||e?.__typename?.match(/BlocksSectionSectionBlocksPopularCategories/))||t?.includes(`bg-`),v=s?Kn(s):!1,y=[`#ffffff`,`#f7dcb4`,`#f9f2e9`],b=!s&&!c||v,x=(0,J.jsxs)(J.Fragment,{children:[r?(0,J.jsx)(`span`,{"data-tina-field":H(e,`subheadline`),className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-2 lg:-mb-4 text-center`,children:g}):null,n?(0,J.jsxs)(`h2`,{"data-tina-field":H(e,`sectiontitle`),"data-headline-ink":b?`ink`:`inverse`,className:L(`max-w-3xl mx-auto font-display text-[2rem] lg:text-[3rem] leading-none font-bold m-0 mb-8 lg:mb-16 text-center`,b?`text-[#121a28] dark:text-white`:`text-white`),children:[p,i?(0,J.jsx)(h,{className:`text-2xl lg:text-[2rem] ml-2 lg:ml-4`,icon:m({prefix:`fal`,iconName:i})}):null]}):null,a&&a?.children?.length>0?(0,J.jsx)(`div`,{"data-tina-field":H(e,`body`),className:`text-base lg:text-xl leading-relaxed text-center w-full max-w-[48rem] mb-8 lg:mb-16 last:mb-0`,children:(0,J.jsx)(tt,{value:`section`,children:(0,J.jsx)(U,{body:a})})}):null,o?.map((e,t)=>fi(e,t,l,u))]});return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(`div`,{"data-tina-field":d,"data-section-bg":s&&!y.includes(s.toLowerCase())?`colored`:void 0,"data-section-surface":v?`bright`:void 0,className:L(`group/section mx-auto flex flex-col items-center py-8 lg:py-16 px-4 lg:px-0 content relative`,t,!s&&!_?`max-w-[68rem]`:`w-full`,s&&`bg-[${s.toLowerCase()}]`,v&&`dark:bg-[#121a28]`,s&&!v&&`text-white`),children:[c?(0,J.jsx)(`div`,{className:`bg-cover bg-center opacity-50 mix-blend-multiply absolute inset-0 grayscale`,style:{backgroundImage:`url("${c}")`}}):null,c?(0,J.jsx)(`div`,{className:`max-w-[68rem] mx-auto relative flex flex-col items-center w-full`,children:x}):x]})})},mi=400,hi=e=>{let{title:t,logos:n,advanced:r}=e,i=`data-tina-field`in e?e[`data-tina-field`]:void 0,{invert:a,className:o,textClassName:s}=r||{},c=p(),l=a?!c:c;return(0,J.jsxs)(`div`,{"data-tina-field":i,className:L(`flex flex-col py-4 lg:py-8 w-full px-4 lg:px-0`,o??`text-center items-center bg-[#fbd4c4] dark:text-[#121a28]`),children:[(0,J.jsx)(`p`,{"data-tina-field":H(e,`title`),className:L(`text-[0.625rem] md:text-xs lg:text-sm uppercase tracking-widest uppercase font-bold mb-4 lg:mb-8 text-center`,s??`text-[#f0a3a1] dark:text-[#f0a3a1]`),children:t}),(0,J.jsx)(`div`,{"data-tina-field":H(e,`logos`),className:L(`flex flex-wrap lg:flex-nowrap mx-auto w-full max-w-[68rem] gap-4 lg:space-x-8 lg:gap-0 justify-center lg:justify-evenly items-center px-4 lg:px-0`,l&&`opacity-25`),children:n?n.map((e,t)=>e?(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,"data-tina-field":H(e,`image`),className:L(`w-8 basis-[calc(20%-0.5rem)] lg:basis-auto lg:flex-1`,!e.size||e.size===`full`?`lg:basis-full`:`lg:basis-${e.size}`),alt:e.name,src:z(l?e?.imageDark:e?.image,{width:mi}),width:e.imageWidth??void 0,height:e.imageHeight??void 0},t):null):null})]})},gi=5,_i=[3,4,2],vi=e=>e===0?gi:_i[(e-1)%_i.length],yi=(e,t)=>{let n=[],r=0;for(let[i,a]of t.entries()){let t=r+vi(i);if(t>e.length)break;
218e.slice(r,t).forEach(e=>{n.push({type:`testimonial`,item:e})}),n.push({type:`video`,item:a}),r=t}return e.slice(r).forEach(e=>{n.push({type:`testimonial`,item:e})}),n},bi=96,xi=(0,q.forwardRef)(({videoTestimonial:e,onPlay:t,style:n},r)=>{let{name:i,country:a,posterUrl:o,accessibleLabel:s}=e,c=s||`Ver testimonio en video de ${i||`una alumna`}`;return o?(0,J.jsx)(`div`,{ref:r,style:n,className:`w-full p-4 sm:p-6 lg:w-1/3 lg:p-8`,children:(0,J.jsxs)(`button`,{type:`button`,className:`group relative block w-full overflow-hidden rounded-lg bg-[#121a28] text-left shadow-lg focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-[#80333c]`,"aria-label":c,onClick:()=>t(e),children:[(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,"data-tina-field":H(e,`posterUrl`),src:o,alt:``,className:`aspect-[4/5] w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`}),(0,J.jsx)(`span`,{className:`absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-transparent`}),(0,J.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,J.jsx)(`span`,{className:`flex size-20 items-center justify-center rounded-full bg-white/95 text-2xl text-[#80333c] shadow-xl transition-transform group-hover:scale-110`,children:(0,J.jsx)(h,{className:`ml-1`,icon:M})})}),(0,J.jsxs)(`span`,{className:`absolute right-6 bottom-6 left-6 text-white`,children:[(0,J.jsx)(`span`,{"data-tina-field":H(e,`name`),className:`block text-2xl font-bold`,children:i}),a?(0,J.jsx)(`span`,{"data-tina-field":H(e,`country`),className:`block text-sm`,children:a}):null]})]})}):null});xi.displayName=`VideoTestimonialCard`;var Si=({videoTestimonial:e,onClose:t})=>{let n=(0,q.useRef)(null),r=(0,q.useCallback)(t=>{t&&(n.current=t,e&&t.play().catch(()=>void 0))},[e]);return(0,q.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=t;let e=n.current;e&&(e.pause(),e.currentTime=0)}},[e]),(0,J.jsx)(Dt,{description:e?.country?`${e.name||`Alumna`}, ${e.country}`:`Testimonio de una alumna de Habitualmente`,onClose:t,open:!!e,title:e?.accessibleLabel||`Testimonio en video de ${e?.name||`una alumna`}`,children:e?.testimonialVideoUrl?(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(`video`,{ref:r,src:e.testimonialVideoUrl,poster:e.posterUrl||void 0,controls:!0,autoPlay:!0,playsInline:!0,className:`max-h-[85vh] w-full rounded-lg bg-black`})}):null})},Ci=({title:e,subheadline:t,intro:n,display:r})=>{let[i,a]=(0,q.useState)(0),[o,s]=(0,q.useState)(!1),[c,l]=(0,q.useState)(3),[u,d]=(0,q.useState)(48),f=(0,q.useRef)(null),p=(0,q.useRef)(0),m=(0,q.useRef)(0),g=288+u,_=Math.max(0,r.length-c);(0,q.useEffect)(()=>{let e=()=>{window.innerWidth<1024?(l(1),d(24)):(l(3),d(48))};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),i>_&&a(_);let v=(0,q.useCallback)(e=>{a(Math.max(0,Math.min(e,_)))},[_]),y=(0,q.useCallback)(()=>{v(i-1)},[i,v]),b=(0,q.useCallback)(()=>{v(i+1)},[i,v]);return(0,q.useEffect)(()=>{if(o)return;let e=setInterval(()=>{a(e=>{let t=e+1;return t>_?0:t})},5e3);return()=>clearInterval(e)},[_,o]),(0,q.useEffect)(()=>{let e=e=>{e.key===`ArrowLeft`?y():e.key===`ArrowRight`&&b()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y,b]),(0,J.jsxs)(`div`,{className:`w-full flex flex-col lg:flex-row bg-white dark:bg-[#121a28] pt-4 lg:pt-32`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,J.jsx)(`div`,{className:`lg:basis-1/2 flex flex-col px-8 lg:px-0`,children:(0,J.jsxs)(`div`,{className:`max-w-[34rem] lg:ml-auto`,children:[(0,J.jsx)(`span`,{className:`block font-['parlare'] text-xl md:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -ml-4 md:-ml-8`,children:t}),(0,J.jsx)(`h2`,{className:`font-display text-[#121a28] dark:text-white text-[2rem] md:text-[3rem] leading-none font-bold mb-4 md:mb-8`,children:e}),n&&n?.children?.length>0?(0,J.jsx)(`div`,{className:`text-xl leading-relaxed mb-8`,children:(0,J.jsx)(U,{body:n})}):null,(0,J.jsxs)(`ul`,{className:`flex space-x-4 text-[2rem]`,children:[(0,J.jsx)(`li`,{children:(0,J.jsx)(`button`,{onClick:y,disabled:i===0,className:`text-[#121a28] dark:text-white disabled:opacity-30 disabled:cursor-not-allowed transition-opacity`,"aria-label":`Testimonio anterior`,children:(0,J.jsx)(h,{className:`text-[2rem]`,icon:ie})})}),(0,J.jsx)(`li`,{children:(0,J.jsx)(`button`,{onClick:b,disabled:i===_,className:`text-[#121a28] dark:text-white disabled:opacity-30 disabled:cursor-not-allowed transition-opacity`,"aria-label":`Testimonio siguiente`,children:(0,J.jsx)(h,{className:`text-[2rem]`,icon:re})})})]})]})}),(0,J.jsx)(`div`,{className:`lg:basis-1/2 flex overflow-hidden px-8 lg:pl-12 mt-4 md:mt-8 mb-16`,onTouchStart:e=>{p.current=e.touches[0].clientX},onTouchMove:e=>{m.current=e.touches[0].clientX},onTouchEnd:()=>{let e=p.current-m.current;Math.abs(e)>50&&(e>0?b():y())},children:(0,J.jsx)(`div`,{ref:f,className:`flex space-x-6 lg:space-x-12 transition-transform duration-500 ease-out`,style:{transform:`translateX(-${i*g}px)`},children:r.map((e,t)=>{if(!e||!e.node)return null;let{node:{avatar:n,review:r,name:i,country:a}}=e;return(0,J.jsx)(`div`,{className:`w-72 flex-shrink-0`,children:(0,J.jsx)(`div`,{className:`w-full h-[32rem] bg-[#f9f2e9] dark:bg-[#3a4760] rounded-xl md:rounded-3xl overflow-hidden flex flex-col`,children:(0,J.jsxs)(`div`,{className:`px-6 md:px-8 py-4 md:py-6 flex flex-col h-full overflow-y-hidden text-ellipsis`,children:[(0,J.jsxs)(`div`,{className:`mb-4 text-lg flex-shrink-0`,children:[(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N})]}),i&&n?(0,J.jsx)(`div`,{className:`w-24 h-24 rounded-full overflow-hidden mb-4 flex-shrink-0`,children:(0,J.jsx)(`img`,{alt:i,src:z(n,{width:bi}),srcSet:V(n,{width:bi}),loading:`lazy`,decoding:`async`})}):null,i||!i&&a?(0,J.jsx)(`p`,{className:`font-bold text-xl md:text-2xl mb-4 flex-shrink-0`,children:i||`desde ${a}`}):null,(0,J.jsx)(`div`,{className:`md:text-lg flex-grow`,children:(0,J.jsx)(U,{body:r})})]})})},t)})})})]})},wi=e=>{let{title:t,subheadline:n,intro:r,category:i,toggle:a,style:o}=e,s=`data-tina-field`in e?e[`data-tina-field`]:void 0,l=`defaultCategory`in e?e.defaultCategory:void 0,{load:u,data:d,state:f}=c(),p=i?.filter(Boolean).join(`,`)||void 0,m=p??l,[g,_]=(0,q.useState)(!1),[v,y]=(0,q.useState)(m);m!==v&&(y(m),_(!1));let b=g?void 0:m;(0,q.useEffect)(()=>{let e=[`/api/v1/testimonials`];b&&e.push(`?category=${b}`),u(e.join(``))},[u,b]);let[x,S]=(0,q.useState)(!1),[C,w]=(0,q.useState)(null),{data:{testimonialConnection:{edges:T=[]}={}}={}}=d||{},E=(d?.variables)?.filter?.category?.in?.[0],D=E===b?T:[];(0,q.useEffect)(()=>{g||p||!l||f!==`idle`||!d||E===l&&(D?.length||_(!0))},[p,d,l,g,D?.length,E,f]);let O=D?.sort(e=>e&&e.node&&e.node.avatar?-1:1).filter(e=>!e||!e.node?!1:!g||!e.node.category?.length)||[],k=yi(O,(e.videoTestimonials||[]).filter(e=>!!e?.posterUrl&&!!e.testimonialVideoUrl));return o&&o===`carousel`&&O.length>0?(0,J.jsx)(Ci,{title:t,subheadline:n,intro:r,display:O}
218):(0,J.jsxs)(`div`,{"data-tina-field":s,className:L(`bg-[#fbd4c4] dark:bg-[#3a4760] dark:text-[#121a28] relative overflow-hidden rounded-lg`,a&&!x&&`max-h-[200vh]`),children:[(0,J.jsxs)(`div`,{className:`max-w-[42rem] mx-auto flex flex-col items-center pt-16 px-4`,children:[(0,J.jsx)(`span`,{"data-tina-field":H(e,`subheadline`),className:`font-['parlare'] text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-4 text-center`,children:n}),(0,J.jsx)(`h2`,{"data-tina-field":H(e,`title`),className:`font-display text-[#121a28] dark:text-white text-[3rem] leading-none font-bold mb-4 text-center`,children:t}),(0,J.jsxs)(`div`,{className:`flex items-center justify-center mt-8 mb-4 text-[2rem] space-x-2`,children:[(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N})]})]}),(0,J.jsxs)(`div`,{className:`w-full items-center justify-between mx-auto`,children:[f===`loading`?(0,J.jsx)(`div`,{className:`w-full flex items-center justify-center p-8`,children:(0,J.jsx)(h,{className:`text-[2rem] text-[#f0a3a1]`,icon:F,spin:!0})}):null,(0,J.jsx)(ln,{children:k.map((e,t)=>{if(e.type===`video`)return(0,J.jsx)(xi,{videoTestimonial:e.item,onPlay:w},`video-${e.item.testimonialVideoUrl}`);let n=e.item;if(!n||!n.node)return null;let{node:{avatar:r,review:i,name:a,occupation:o,country:s,stars:c}}=n;return(0,J.jsx)(`div`,{className:`w-full p-4 sm:p-6 lg:w-1/3 lg:p-8`,children:(0,J.jsxs)(`div`,{className:`px-4 md:px-8 py-6 z-10 overflow-hidden relative bg-white flex flex-col sm:flex-row gap-4 sm:gap-8 rounded-lg`,children:[r?(0,J.jsx)(`div`,{className:`w-24 h-24 shrink-0 rounded-full overflow-hidden relative`,children:(0,J.jsx)(`img`,{className:`absolute inset-0`,src:z(r,{width:bi}),srcSet:V(r,{width:bi}),alt:a||``,loading:`lazy`,decoding:`async`})}):null,(0,J.jsxs)(`div`,{children:[c?(0,J.jsxs)(`div`,{className:`mb-4 text-lg`,children:[(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N}),(0,J.jsx)(h,{className:`text-[#f8b69c] dark:text-[#f7dcb4]`,icon:N})]}):null,(0,J.jsx)(`div`,{className:`mb-4 text-lg`,children:(0,J.jsx)(U,{body:i})}),a||!a&&s?(0,J.jsxs)(`p`,{className:`text-right font-bold`,children:[`– `,a||`desde ${s}`]}):null,o||a&&s?(0,J.jsx)(`p`,{className:`text-sm font-light text-right text-[#f8b69c]`,children:o||s}):null]})]})},t)})})]}),(0,J.jsx)(Si,{videoTestimonial:C,onClose:()=>w(null)}),a&&!x?(0,J.jsxs)(`div`,{className:`z-10 absolute left-0 bottom-0 right-0 h-screen flex flex-col items-center justify-end bg-gradient-to-t from-[#fbd4c4] dark:from-[#3a4760] to-transparent`,children:[(0,J.jsx)(`button`,{className:`bg-[#80333c] text-white dark:bg-[#f0a3a1] dark:text-[#121a28] px-4 py-2 rounded-full mb-4`,onClick:()=>S(!0),children:`Leer más reseñas verificadas »`}),(0,J.jsx)(`p`,{className:`italic mb-8 text-[#f0a3a1]`,children:`4.9/5 estrellas (más de 127+ reseñas)`})]}):null]})},Ti=e=>{let{timerTitle:t,timerType:n,fixedDate:r,intervalDays:i,dayOfWeek:a,time:o,timezone:s,backgroundColor:c=`#080c13`}=e,l=`data-tina-field`in e?e[`data-tina-field`]:void 0,{days:u,hours:d,minutes:f,seconds:p}=Jt({timerType:n,fixedDate:r??void 0,intervalDays:i??void 0,dayOfWeek:a??void 0,time:o??void 0,timezone:s??void 0});return(0,J.jsx)(`section`,{"data-tina-field":l,className:`w-full py-8`,style:{backgroundColor:c??`#080c13`},children:(0,J.jsx)(`div`,{className:`row`,children:(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto text-center`,children:[t&&(0,J.jsx)(`p`,{"data-tina-field":H(e,`timerTitle`),className:`text-white text-2xl mb-4 font-bold`,children:t}),(0,J.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2 sm:gap-4 items-center`,children:[(0,J.jsx)(K,{value:u,label:`Días`}),(0,J.jsx)(Yt,{}),(0,J.jsx)(K,{value:d,label:`Horas`}),(0,J.jsx)(Yt,{}),(0,J.jsx)(K,{value:f,label:`Minutos`}),(0,J.jsx)(Yt,{}),(0,J.jsx)(K,{value:p,label:`Segundos`})]})]})})})},Ei=({pageSlug:e,editorialHero:t,closingCTA:n,backgroundImage:r,backgroundColor:i})=>{if(n===!0)return`closing`;if(t===!0)return`editorial`;if(e===`curso-gratis-habitos`){if(t==null&&r===`/images/curso-gratis-habitos-hero.webp`)return`editorial`;if(n==null&&!r&&i?.toLowerCase()===`#702b3a`)return`closing`}return`default`},Di=e=>{let{landingHeadline:t,landingSubheadline:n,landingCtaText:r,ctaSmall:i,icon:a,bonus:o,backgroundImage:s,backgroundColor:c,editorialHero:l,closingCTA:f,pageSlug:p,timerConfig:g}=e,_=Ei({pageSlug:p,editorialHero:l,closingCTA:f,backgroundImage:s,backgroundColor:c}),v=_===`editorial`,y=_===`closing`,b=e[`data-tina-field`],x=u(),S=()=>{o&&x(d((0,J.jsx)(nt,{...o})))},C={backgroundColor:c||`#111`,...y?{backgroundImage:`radial-gradient(circle at 85% 15%, rgba(240, 163, 161, 0.36), transparent 48%), linear-gradient(135deg, #702b3a, #421b2a)`}:!v&&s?{backgroundImage:`url(${s})`,backgroundPosition:`right center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}:{}};return(0,J.jsxs)(`div`,{"data-tina-field":b,className:`w-full flex items-center ${y?`relative isolate overflow-hidden min-h-[32rem] md:min-
218h-[36rem]`:v?`relative isolate overflow-hidden min-h-screen -mt-[72px]`:`min-h-screen -mt-32`}`,style:C,children:[v&&s&&(0,J.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-cover bg-[65%_center] md:bg-center`,style:{backgroundImage:`url(${s})`}}),v&&(0,J.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[#f7f2e6]/90 md:bg-transparent md:bg-[linear-gradient(90deg,rgba(247,242,230,0.99)_0%,rgba(247,242,230,0.94)_42%,rgba(247,242,230,0.35)_70%,rgba(247,242,230,0.02)_100%)]`}),(0,J.jsx)(`div`,{className:`row w-full ${y?`px-6 py-20 text-center md:py-24`:v?`relative z-10 px-6 py-28 text-left md:px-10 md:py-32`:`text-center py-15`}`,children:(0,J.jsxs)(`div`,{className:y?`max-w-[52rem] mx-auto`:v?`max-w-[35rem] md:ml-[max(2rem,calc((100vw-72rem)/2))]`:`max-w-[62rem] mx-auto`,children:[t&&(0,J.jsx)(`h1`,{"data-tina-field":H(e,`landingHeadline`),className:`font-display leading-[1.2] font-bold mb-6 capitalize ${y?`text-white text-[clamp(2.6rem,5vw,4rem)]`:v?`text-[#080c13] text-[clamp(2.8rem,5vw,4.5rem)]`:`text-[#080c13] text-[4rem]`}`,children:(0,J.jsx)(U,{body:t,components:{p:e=>(0,J.jsx)(J.Fragment,{children:e.children}),strong:e=>(0,J.jsx)(`span`,{className:`inline-block`,style:{backgroundImage:`url(https://habitualmente.com/curso-gratis-habitos/img/underline-red.png)`,backgroundRepeat:`no-repeat`,backgroundPosition:`bottom center`,padding:`0 10px 8px 10px`,margin:`0 -10px 0 -10px`},children:e.children})}})}),n&&(0,J.jsx)(`h2`,{"data-tina-field":H(e,`landingSubheadline`),className:y?`text-xl md:text-2xl font-medium leading-[1.4] text-white`:v?`text-[clamp(1.25rem,2vw,1.65rem)] font-medium leading-[1.4] text-[#080c13]`:`text-3xl font-medium leading-[1.4] mb-8 dark:text-[#080c13]`,children:(0,J.jsx)(U,{body:n,components:{p:e=>(0,J.jsx)(J.Fragment,{children:e.children}),bold:e=>(0,J.jsx)(`span`,{className:`inline-block`,style:{backgroundImage:`url(https://habitualmente.com/curso-gratis-habitos/img/underline-red.png)`,backgroundRepeat:`no-repeat`,backgroundPosition:`bottom center`,padding:`0 10px 8px 10px`,margin:`0 -10px 0 -10px`},children:e.children})}})}),r&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`button`,{onClick:S,className:`inline-flex items-center bg-white text-[#b53441] font-bold px-8 py-3 rounded-full uppercase hover:bg-[#b53441] hover:text-white transition-colors ${y||v?`mt-8 text-lg md:text-xl`:`mt-15 text-[1.75rem]`}`,children:[r,a&&(0,J.jsx)(h,{className:`ml-4`,icon:m({prefix:`fal`,iconName:a})})]}),i&&(0,J.jsx)(`button`,{onClick:S,className:`block underline text-base mt-4 bg-transparent border-none cursor-pointer ${v?`text-[#080c13]`:`text-white mx-auto`}`,children:i})]}),g&&(0,J.jsx)(`div`,{className:`mt-10`,children:(0,J.jsx)(Ti,{...g,backgroundColor:`transparent`})})]})})]})},Oi=()=>{let e=new Date,t=e.getHours(),n=e.getMinutes().toString().padStart(2,`0`),r=t>=12?`pm`:`am`;return`${t%12||12}:${n} ${r}`},ki=e=>{let t=e.split(`@`)[1]?.toLowerCase()||``;return t===`gmail.com`?`gmail`:t===`outlook.com`||t===`hotmail.com`||t.startsWith(`live.`)||t.startsWith(`hotmail.`)||t.startsWith(`outlook.`)?`outlook`:t.includes(`yahoo`)?`yahoo`:t===`icloud.com`||t===`mac.com`||t===`me.com`?`apple`:`other`},Ai={gmail:{name:`Gmail`,bgColor:`#ffffff`,accentColor:`#5f6368`,highlightColor:`#fcf3cf`,searchUrl:e=>`https://mail.google.com/mail/u/0/#search/from%3A${encodeURIComponent(e)}`,ctaText:`Haz click aquí para ir a tu Gmail`,icon:(0,J.jsx)(()=>(0,J.jsx)(`img`,{src:`/img/gmail.svg`,alt:`Gmail`,className:`w-6 h-6`,loading:`lazy`,decoding:`async`}),{})},outlook:{name:`Outlook`,bgColor:`#ffffff`,accentColor:`#605e5c`,highlightColor:`#e3f2fd`,searchUrl:()=>`https://outlook.live.com/mail/0/`,ctaText:`Haz click aquí para ir a tu Outlook`,icon:(0,J.jsx)(()=>(0,J.jsx)(`img`,{src:`/img/outlook.svg`,alt:`Outlook`,className:`w-6 h-6`,loading:`lazy`,decoding:`async`}),{})},yahoo:{name:`Yahoo`,bgColor:`#ffffff`,accentColor:`#41415c`,highlightColor:`#f3e5f5`,searchUrl:e=>`https://mail.yahoo.com/d/search/keyword=from%3A${encodeURIComponent(e)}`,ctaText:`Haz click aquí para ir a tu Yahoo Mail`,icon:(0,J.jsx)(()=>(0,J.jsx)(h,{icon:ft,className:`w-6 h-6 text-[#6001d2]`}),{})},apple:{name:`Apple Mail`,bgColor:`#ffffff`,accentColor:`#333333`,highlightColor:`#e8f5e9`,searchUrl:()=>``,ctaText:``,icon:(0,J.jsx)(()=>(0,J.jsx)(h,{icon:vt,className:`w-6 h-6 text-[#333]`}),{})},other:{name:`Tu bandeja de entrada:`,bgColor:`#ffffff`,accentColor:`#666666`,highlightColor:`#fff3e0`,searchUrl:()=>``,ctaText:``,icon:null}},ji=()=>
218(0,J.jsx)(`svg`,{viewBox:`0 0 20 20`,className:`w-4 h-4 text-[#c4c4c4]`,children:(0,J.jsx)(`rect`,{x:`2`,y:`2`,width:`16`,height:`16`,rx:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`})}),Mi=()=>(0,J.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`w-4 h-4 text-[#c4c4c4]`,children:(0,J.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z`})}),Ni=({filled:e=!0})=>(0,J.jsx)(`svg`,{viewBox:`0 0 24 24`,className:L(`w-4 h-4`,e?`text-[#f4b400]`:`text-[#c4c4c4]`),children:(0,J.jsx)(`polygon`,{fill:e?`currentColor`:`none`,stroke:`currentColor`,strokeWidth:e?`0`:`1.5`,points:`1,4 17,4 23,12 17,20 1,20 7,12`})}),Pi=e=>{let t=e.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():e.slice(0,2).toUpperCase()},Fi=({highlighted:e=!1,senderName:t,subject:n,preview:r,time:i,isImportant:a=!1,blurred:o=!1})=>(0,J.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2.5 border-b border-[#e0e0e0] ${e?`bg-[#fff8e1]`:`bg-white`} ${o?`blur-[4px] opacity-60 select-none`:``}`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,J.jsx)(ji,{}),(0,J.jsx)(Mi,{}),(0,J.jsx)(Ni,{filled:a})]}),(0,J.jsxs)(`div`,{className:`flex-1 min-w-0 flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:L(`font-semibold text-sm shrink-0`,e?`text-[#202124]`:`text-[#5f6368]`),children:t}),(0,J.jsx)(`span`,{className:L(`font-semibold text-sm truncate`,e?`text-[#202124]`:`text-[#5f6368]`),children:n}),(0,J.jsxs)(`span`,{className:`text-sm text-[#5f6368] truncate hidden sm:inline`,children:[`- `,r]})]}),(0,J.jsx)(`span`,{className:`text-xs text-[#5f6368] shrink-0`,children:i})]}),Ii=({highlighted:e=!1,senderName:t,subject:n,preview:r,time:i,blurred:a=!1})=>(0,J.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-3 border-b border-[#e5e5e5] ${e?`border-l-[3px] border-l-[#0078d4] bg-white`:`bg-white`} ${a?`blur-[4px] opacity-60 select-none`:``}`,children:[(0,J.jsx)(`div`,{className:`w-10 h-10 rounded-full flex items-center justify-center text-white text-sm font-semibold shrink-0`,style:{backgroundColor:`#8764b8`},children:Pi(t)}),(0,J.jsxs)(`div`,{className:`flex-1 min-w-0 flex flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`span`,{className:`font-semibold text-sm text-[#242424]`,children:t}),(0,J.jsx)(`span`,{className:`text-xs text-[#0078d4] shrink-0`,children:i})]}),(0,J.jsx)(`span`,{className:`font-semibold text-sm text-[#0078d4] truncate`,children:n}),(0,J.jsx)(`span`,{className:`text-sm text-[#616161] truncate`,children:r})]})]}),Li=({highlighted:e=!1,senderName:t,subject:n,preview:r,time:i,blurred:a=!1})=>(0,J.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2.5 border-b border-[#e5e5e5] bg-white ${a?`blur-[4px] opacity-60 select-none`:``}`,children:[(0,J.jsx)(ji,{}),e&&(0,J.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-[#0f69ff] shrink-0`}),!e&&(0,J.jsx)(`div`,{className:`w-2 shrink-0`}),(0,J.jsx)(`span`,{className:`text-sm text-[#1d1d1f] shrink-0`,children:t}),(0,J.jsx)(Mi,{}),(0,J.jsx)(`span`,{className:`font-semibold text-sm text-[#1d1d1f] truncate`,children:n}),(0,J.jsx)(`span`,{className:`text-sm text-[#5e5e5e] truncate`,children:r}),(0,J.jsx)(`span`,{className:`text-xs text-[#5e5e5e] shrink-0 ml-auto`,children:i})]}),Ri=({highlighted:e=!1,senderName:t,subject:n,preview:r,time:i,blurred:a=!1})=>(0,J.jsxs)(`div`,{className:`flex items-start gap-2 px-3 py-3 border-b border-[#e5e5e5] bg-white ${a?`blur-[4px] opacity-60 select-none`:``}`,children:[e&&(0,J.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-[#007aff] shrink-0 mt-1`}),!e&&(0,J.jsx)(`div`,{className:`w-2 shrink-0`}),(0,J.jsxs)(`div`,{className:`flex-1 min-w-0 flex flex-col gap-0.5`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`span`,{className:`font-semibold text-sm text-[#000]`,children:t}),(0,J.jsx)(`span`,{className:`text-xs text-[#8e8e93] shrink-0`,children:i})]}),(0,J.jsx)(`span`,{className:`text-sm text-[#000] truncate`,children:n}),(0,J.jsx)(`span`,{className:`text-sm text-[#8e8e93] line-clamp-2`,children:r})]})]}),zi=e=>e.provider===`outlook`?(0,J.jsx)(Ii,{...e}):e.provider===`apple`?(0,J.jsx)(Ri,{...e}):e.provider===`yahoo`?(0,J.jsx)(Li,{...e}):(0,J.jsx)(Fi,{...e}),Bi=({senderName:e,senderEmail:t,emailSubject:n,emailPreview:r})=>{let[i]=a(),o=f(),s=ki(i.get(`email`)||o?.subscriber?.email||``),c=Ai[s],l=Oi();return(0,J.jsx)(`div`,{className:`w-full max-w-3xl mx-auto`,children:(0,J.jsxs)(`div`,{className:`rounded-lg overflow-hidden shadow-2xl border border-[#e0e0e0]`,children:[(0,J.jsxs)(`div`,{className:`bg-[#f5f5f5] px-3 py-2 border-b border-[#e0e0e0] flex items-center gap-2`,children:[c.icon,(0,J.jsx)(`span`,{className:`text-sm font-medium text-[#5f6368]`,children:c.name})]}),(0,J.jsx)(zi,{highlighted:!0,senderName:e,subject:n,preview:r,time:l,isImportant:!0,provider:s}),c.searchUrl(t)&&(0,J.jsx)(`div`,{className:`py-4 px-3 bg-white border-b border-[#e0e0e0] flex justify-center`,children:(0,J.jsxs)(`a`,{href:c.searchUrl(t),target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 bg-[#80333c] hover:bg-[#6a2a32] text-white px-6 py-3 rounded-full text-lg font-semibold transition-colors no-u
218nderline! animate-[wiggle_1s_ease-in-out_infinite] [&_svg]:text-white [&_img]:brightness-0 [&_img]:invert`,children:[c.icon,c.ctaText]})}),(0,J.jsx)(zi,{blurred:!0,senderName:`Marketing`,subject:`Oferta especial`,preview:`No te pierdas esta oportunidad...`,time:`11:30 am`,provider:s}),s!==`outlook`&&s!==`apple`&&s!==`yahoo`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(zi,{blurred:!0,senderName:`Newsletter`,subject:`Las noticias de hoy`,preview:`Resumen semanal de...`,time:`10:15 am`,provider:s}),(0,J.jsx)(zi,{blurred:!0,senderName:`Updates`,subject:`Actualización de cuenta`,preview:`Tu cuenta ha sido...`,time:`9:42 am`,provider:s})]})]})})},Vi={gmail:(0,J.jsx)(`img`,{src:`/img/gmail.svg`,alt:``,className:`w-4 h-4`,loading:`lazy`,decoding:`async`}),outlook:(0,J.jsx)(`img`,{src:`/img/outlook.svg`,alt:``,className:`w-4 h-4`,loading:`lazy`,decoding:`async`}),yahoo:(0,J.jsx)(h,{icon:ft,className:`w-4 h-4`}),apple:(0,J.jsx)(h,{icon:vt,className:`w-4 h-4`}),other:null},Hi={gmail:`Gmail`,outlook:`Outlook`,yahoo:`Yahoo`,apple:`Apple`,other:`Otro`},Ui=[`gmail`,`outlook`,`yahoo`,`apple`,`other`],Wi=({tips:e,detectedProvider:t})=>{let n=t!==`other`,r=(0,q.useMemo)(()=>{if(!e)return[];let r=Ui.filter(t=>e.some(e=>e?.provider===t&&e.tips&&e.tips.length>0));return n&&r.includes(t)?[t]:r},[e,t,n]),[i,a]=(0,q.useState)(r.includes(t)?t:r[0]||`gmail`),o=(0,q.useMemo)(()=>e&&e.find(e=>e?.provider===i)?.tips?.filter(e=>e!==null)||[],[e,i]);return r.length===0?null:(0,J.jsxs)(J.Fragment,{children:[r.length>1&&(0,J.jsx)(`div`,{className:`flex flex-wrap justify-center gap-2 mb-6`,children:r.map(e=>(0,J.jsxs)(`button`,{onClick:()=>a(e),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors inline-flex items-center gap-2 cursor-pointer ${i===e?`bg-[#80333c] text-white [&_svg]:text-white [&_img]:brightness-0 [&_img]:invert`:`bg-[#fbd4c4] text-[#80333c] hover:bg-[#f0a3a1]`}`,children:[Vi[e],Hi[e]]},e))}),(0,J.jsx)(`div`,{className:`space-y-6`,children:o.map((e,t)=>(0,J.jsxs)(`div`,{className:`bg-white dark:bg-[#080c13] rounded-lg overflow-hidden`,children:[e.tipTitle&&(0,J.jsx)(`div`,{className:`bg-[#fbd4c4] px-4 py-3`,children:(0,J.jsxs)(`h4`,{className:`text-lg font-semibold text-[#80333c] m-0`,children:[t+1,`. `,e.tipTitle]})}),(0,J.jsxs)(`div`,{className:`p-4`,children:[e.tipDescription&&(0,J.jsx)(`div`,{className:`content`,children:(0,J.jsx)(U,{body:e.tipDescription})}),e.videoUrl&&(0,J.jsx)(`div`,{className:`aspect-video rounded overflow-hidden`,children:(0,J.jsx)(`iframe`,{src:e.videoUrl,title:e.tipTitle||`Tip ${t+1}`,className:`w-full h-full`,frameBorder:`0`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:!0})})]})]},t))})]})},Gi=({tips:e,mobileTips:t})=>{let[n]=a(),r=f(),i=ki(n.get(`email`)||r?.subscriber?.email||``),o=t&&t.some(e=>e?.tips&&e.tips.length>0);return!e||!e.some(e=>e?.tips&&e.tips.length>0)?null:o?(0,J.jsxs)(`div`,{className:`w-full max-w-3xl mx-auto`,children:[(0,J.jsx)(`div`,{className:`hidden lg:block`,children:(0,J.jsx)(Wi,{tips:e,detectedProvider:i})}),(0,J.jsx)(`div`,{className:`lg:hidden`,children:(0,J.jsx)(Wi,{tips:t,detectedProvider:i})})]}):(0,J.jsx)(`div`,{className:`w-full max-w-3xl mx-auto`,children:(0,J.jsx)(Wi,{tips:e,detectedProvider:i})})},Ki=e=>{let{confirmationHeadline:t,countdownMinutes:n=5,checkEmailText:r,senderName:i=`Tania Sanz`,senderEmail:o=`[email protected]`,emailSubject:s=`IMPORTANTE: Por favor confirma tu correo`,emailPreview:c=`finaliza correctamente tu inscripción`,instructionsIntro:l,emailProviderTips:p,emailProviderTipsMobile:m,footerNote:h}=e,g=e[`data-tina-field`],_=u(),[v]=a(),y=f(),b=v.get(`email`)||y?.subscriber?.email,[x]=(0,q.useState)(()=>`confirmation_${Date.now()}`),{minutes:S,seconds:C,total:w}=Jt({timerType:`session`,sessionMinutes:n??5,sessionKey:x}),T=w<=0;return(0,J.jsx)(`div`,{"data-tina-field":g,className:`py-8 lg:py-12`,children:(0,J.jsxs)(`div`,{className:`max-w-3xl mx-auto px-4`,children:[t&&(0,J.jsx)(`div`,{"data-tina-field":H(e,`confirmationHeadline`),className:`text-center mb-8`,children:(0,J.jsx)(U,{body:t,components:{h1:e=>(0,J.jsx)(`h1`,{className:`font-display text-[2.5rem] lg:text-[3.75rem] font-bold leading-tight text-[#80333c] dark:text-[#f0a3a1]`,children:e.children}),p:e=>(0,J.jsx)(`p`,{className:`font-display text-[2rem] lg:text-[3rem] leading-none font-bold text-[#121a28] dark:text-white`,children:e.children})}})}),(0,J.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2 sm:gap-4 items-center mb-8`,children:[(0,J.jsx)(K,{value:S,label:`Minutos`,bgColor:`#080c13`,labelColor:`#3a4760`}),(0,J.jsx)(Yt,{color:`#080c13`}),(0,J.jsx)(K,{value:C,label:`Segundos`,bgColor:`#080c13`,labelColor:`#3a4760`})]}),T&&(0,J.jsx)(`div`,{className:`text-center mb-6 text-[#80333c] font-semibold`,children:`¡El tiempo ha terminado! Pero aún puedes confirmar tu correo.`}),(0,J.jsxs)(`p`,{className:`text-center text-lg lg:text-xl text-[#333] dark:text-[#f9f2e9] mb-8`,children:[r||`Ve a tu correo y encuentra el email de confirmación que acabo de enviarte`,b&&(0,J.jsxs)(J.Fragment,{children:[` a `,(0,J.jsx)(`strong`,{children:b}),` (`,(0,J.jsx)(`button`,{type:`button`,onClick:()=>{_(d((0,J.jsx)(ke,{})))},className:`text-[#80333c] dark:text-[#f0a3a1] underline hover:no-underline cursor-pointer`,children:`¿está mal?`}),`)`]}),`:`]}),(0,J.jsx)(`div`,{className:`mb-8`,children:(0,J.jsx)(Bi,{senderName:i||`Tania Sanz`,senderEmail:o||`[email protected]`,emailSubject:s||`IMPORTANTE: Por favor confirma tu correo`,emailPreview:c||`finaliza correctamente tu inscripción`})}),l&&(0,J.jsx)(`div`,{className:`text-center mb-8`,children:(0,J.jsx)(U,{body:l,components:{p:e=>(0,J.jsx)(`p`,{className:`text-base lg:text-lg text-[#333] dark:text-[#f9f2e9] mb-3`,children:e.children}),strong:e=>(0,J.jsx)(`strong`,{className:`text-[#80333c] dark:text-[#f0a3a1] font-bold`,children:e.children})}})}),p&&p.length>0&&(0,J.jsx)(`div`,{className:`mb-8`,children:(0,J.jsx)(Gi,{tips:p,mobileTips:m})}),h&&(0,J.jsx)(`div`,{className:`text-center text-sm lg:text-base bg-[#f0a3a1] text-[#121a28] rounded-lg p-4 lg:p-6`,children:(0,J.jsx)(U,{body:h,components:{a:e=>(0,J.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`text-[#80333c] underline`,children:e.children})}})})]})})},qi=/^\d{4}-\d{2}-\d{2}$/,Ji=e=>{if(!qi.test(e))return;let[t,n,r]=e.split(`-`).map(Number),i=new Date(Date.UTC(t,n-1,r));return i.toISOString().slice(0,10)===e?i:void 0},Yi=[12,14,16],Xi=(e,t)=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+t)),Zi=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Qi=e=>`${Zi[e.getUTCMonth()]} ${e.getUTCDate()}, ${e.getUTCFullYear()}`,$i=(e,t)=>{if(!e||t!==Yi.length)return[];let n=Ji(e);return n?Yi.map(e=>Qi(Xi(n,e))):[]},ea=(e,t)=>e===`lecciones`?`Lección #${t+1}`:e===`correos`?`Correo ${t+1}`:e===`capsulas`?`Cápsula #${t+1}`:e===`modulos`?`Módulo #${t+1}`:e===`entrenamiento`?`Entrenamiento #${t+1}`:[`Parte Uno`,`Parte Dos`,`Parte Tres`][t]||`Parte ${t+1}`,ta=(e,t)=>e+1===t?`active`:e+1<=t?`unlocked`:`locked`,na=({label:e,title:t,url:n,status:r,sendDate:i})=>
218{let a=i??(e===t?void 0:t),o=(0,J.jsxs)(`div`,{className:R(`flex-1 flex flex-col items-start justify-center px-3 py-2 rounded transition-colors bg-[#3a4760] hover:bg-[#f0a3a1] group`,r===`active`&&`bg-[#f0a3a1]`,r===`locked`&&`bg-[#121a28] hover:bg-[#121a28]`),children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 whitespace-nowrap`,children:[(0,J.jsx)(`span`,{className:R(`text-xs lg:text-sm font-semibold text-white`,r===`active`&&`text-[#121a28]`,r===`locked`&&`text-[#3a4760]`,r!==`locked`&&`group-hover:text-[#121a28]`),children:e}),(0,J.jsx)(h,{icon:r===`locked`?A:k,className:R(`text-xs text-[#fbd4c4]`,r===`active`&&`text-[#121a28]`,r===`locked`&&`text-[#3a4760]`,r!==`locked`&&`group-hover:text-[#121a28]`)})]}),a?(0,J.jsx)(`span`,{className:R(`text-[0.75rem] whitespace-nowrap`,r===`active`&&`!text-white`,r===`locked`&&`text-[#3a4760]`,r!==`locked`&&`text-[#f0a3a1] group-hover:text-[#121a28]`),children:a}):null]});return r===`locked`?(0,J.jsx)(`div`,{className:`shrink-0 flex cursor-not-allowed`,children:o}):(0,q.createElement)([`active`,`locked`].includes(r)?`div`:s,{to:n,className:`shrink-0 flex no-underline !no-underline`},o)},ra=({lessons:e,seriesType:t,currentLesson:n})=>{let r=f()?.subscriber,i=$i(r?.enrollmentDay,e?.length??0),a=e?.map((e,r)=>(0,J.jsx)(na,{label:ea(t,r),title:e.title,url:e.url,status:ta(r,n),sendDate:i[r]},r));return(0,J.jsxs)(`header`,{className:`bg-[#080c13] w-full px-2 lg:px-6 py-4 lg:py-3 flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4`,children:[(0,J.jsx)(`img`,{width:1016,height:116,decoding:`async`,src:`https://cdn.habitualmente.com/habitualmente-logos/habitualmente-logo-dark.svg`,className:`max-w-40 lg:max-w-48 h-auto mx-auto lg:mx-0`,alt:`Habitualmente`}),(0,J.jsx)(`nav`,{className:`flex justify-start lg:justify-end gap-1 lg:gap-2 overflow-x-auto pb-2 lg:pb-0 -mb-2 lg:mb-0 scrollbar-none`,children:a})]})},ia=(e,t)=>e?.some(e=>e.url.replace(/\/$/,``)===t)??!1,aa=()=>(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 2000 240`,className:`pointer-events-none absolute left-0 right-0 bottom-0 -mb-px -mx-px z-10`,children:(0,J.jsx)(`g`,{id:`Wave`,className:`text-[#f9f2e9] dark:text-[#121a28]`,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:`M2000,240v-24.2c-33.2,6.6-71.2,11.2-114.2,12.4c-35.1,1-73.5-0.3-115.5-4.6c-32.9-3.4-68-8.7-105.3-16.3
219		c-30.3-6.1-62.1-13.8-95.3-23.1l0.8,0.4c-10.5-2.7-20.9-5.3-31.3-7.8c-34.9-8.6-69.6-16.6-103.9-24c-37.7-8.2-75.1-15.7-112-22.5
220		c-40.2-7.4-80-14.1-119.2-20c-8.7-1.3-17.4-2.6-26.1-3.8c-17.6-2.5-34.9-4.6-52.3-6.8c-14-1.8-27.9-3.5-41.8-5.1
221		c-25.4-3-50.7-5.6-75.7-8c-49.3-4.7-97.7-8.2-145.2-10.7c-49.5-2.6-98-4.1-145.6-4.6c-45.7-0.5-90.4,0-134.2,1.3
222		c-37.1,1.1-73.5,2.8-109.2,5.1c-34.1,2.2-67.6,4.8-100.5,7.9c-39.1,3.7-77.3,8-114.6,12.9c-24.9,3.3-49.5,6.8-73.6,10.5
223		c-32.3,5-63.9,10.4-94.7,16.1c-30.8,5.7-60.9,11.8-90.2,18.2V240H2000z`})})}),oa=({index:e,thumbnail:t,url:n,status:r,seriesType:i})=>{let a=(0,J.jsxs)(`div`,{className:R(`relative aspect-video rounded overflow-hidden transition-all`),children:[t?(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,src:t,alt:`${ea(i,e)}`,className:R(`absolute inset-0 w-full h-full object-cover`,r===`locked`&&`grayscale`)}):(0,J.jsx)(`div`,{className:`absolute inset-0 w-full h-full bg-[#3a4760]/40 flex items-center justify-center`,children:(0,J.jsx)(`span`,{className:`text-2xl font-bold text-white/50`,children:e+1})}),r!==`active`&&(0,J.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-black/50`,children:r===`locked`?(0,J.jsx)(h,{icon:A,className:`text-[2.5rem] text-[#080c13]`}):(0,J.jsx)(h,{icon:M,className:`text-[2.5rem] text-white`})})]});return r===`locked`?(0,J.jsx)(`div`,{className:`cursor-not-allowed`,children:a}):(0,J.jsx)(s,{to:n,className:`no-underline`,children:a})},sa=({videoId:e,poster:t})=>{let{signedToken:n}=kt(e);return n?(0,J.jsx)(`div`,{className:`w-full aspect-video bg-black rounded-lg overflow-hidden`,children:(0,J.jsx)(wt,{controls:!0,src:n,customerCode:Et,defaultTextTrack:`es`,autoplay:!0,muted:!1,loop:!1,preload:`auto`,responsive:!0,className:`w-full h-full`})}):(0,J.jsxs)(`div`,{className:`relative w-full aspect-video bg-black rounded-lg overflow-hidden flex items-center justify-center`,children:[t&&(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,src:t,alt:`Video thumbnail`,className:`absolute inset-0 w-full h-full object-cover opacity-50`}
223),(0,J.jsx)(`div`,{"data-video-loading":!0,className:`animate-pulse text-white/50`,children:`Cargando video...`})]})},ca=e=>{let{variant:t,seriesType:n=`lecciones`,currentLesson:r=1,lessonHeadline:a,pageHeadline:o,lessons:s,lessonVideoUrl:c,videoPoster:l,audioUrl:u,featuredImage:d}=e,f=e[`data-tina-field`],p=i().pathname.replace(/\/$/,``),m=s?.map(e=>({title:e?.lessonTitle||``,url:e?.lessonUrl||`#`})),h=ia(m,p),g=h?r:0;return(0,J.jsxs)(`div`,{"data-tina-field":f,className:R(t===`video`&&`min-h-screen`),children:[(0,J.jsx)(ra,{lessons:m,seriesType:n,currentLesson:g}),(0,J.jsxs)(`div`,{className:`relative bg-[#080c13] pt-8 pb-32 lg:pt-16 lg:pb-40 -mb-8 lg:-mb-16`,children:[(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto px-4`,children:[h&&(0,J.jsx)(`div`,{className:`font-['parlare'] text-center lowercase text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-2 lg:-mb-4 text-center`,children:ea(n,r-1)}),(0,J.jsx)(`h1`,{"data-tina-field":H(e,o?`pageHeadline`:`lessonHeadline`),className:`font-display text-[1.75rem] lg:text-[2.5rem] leading-tight font-bold text-center text-white mb-8 lg:mb-12`,children:o||a}),t===`video`&&c&&(0,J.jsxs)(`div`,{className:`flex gap-[2%]`,children:[(0,J.jsx)(`div`,{className:`flex-1`,children:(0,J.jsx)(sa,{videoId:c,poster:l||void 0})}),s&&s.length>0&&(0,J.jsx)(`div`,{className:`hidden lg:flex flex-col w-[22.7%] shrink-0 gap-[4.7%]`,children:s.map((e,t)=>(0,J.jsx)(oa,{index:t,thumbnail:e?.lessonThumbnail||void 0,url:e?.lessonUrl||`#`,status:ta(t,g),seriesType:n},t))})]}),t===`audio`&&u&&(0,J.jsx)(`div`,{className:`max-w-3xl mx-auto`,children:(0,J.jsx)(_e,{variant:`full`,darkBackground:`#121a28`,episode:{slug:`lesson-${r}`,title:a||`Lección ${r}`,image:d||void 0,audioUrl:u}})})]}),(0,J.jsx)(aa,{})]})]})},la=832,ua=e=>{let{heroKicker:t,heroHeadline:n,heroSubtext:r,heroBullets:i,ctaButtonText:a,ctaButtonUrl:o,heroMicrocopy:c,heroImage:l,heroImageWidth:u,heroImageHeight:d}=e,f=e[`data-tina-field`];return(0,J.jsxs)(`section`,{"data-tina-field":f,className:`relative w-full overflow-hidden bg-[#f9f2e9] dark:bg-[#121a28] -mt-6 lg:-mt-12`,children:[(0,J.jsx)(`div`,{className:`pointer-events-none absolute -top-24 -right-24 w-[36rem] h-[36rem] rounded-full bg-[#fbd4c4]/40 dark:bg-[#3a4760]/40 blur-3xl`}),(0,J.jsxs)(`div`,{className:`relative max-w-[68rem] mx-auto px-4 lg:px-0 pt-24 pb-12 lg:py-24 grid lg:grid-cols-2 gap-8 lg:gap-12 items-center`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col items-center lg:items-start text-center lg:text-left`,children:[t?(0,J.jsx)(`span`,{"data-tina-field":H(e,`heroKicker`),className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] mb-2`,children:t}):null,n?(0,J.jsx)(`h1`,{"data-tina-field":H(e,`heroHeadline`),className:`font-display text-[2.25rem] lg:text-[3.5rem] leading-[1.05] font-bold text-[#121a28] dark:text-white mb-5`,children:n}):null,r?(0,J.jsx)(`div`,{"data-tina-field":H(e,`heroSubtext`),className:`content text-base lg:text-xl leading-relaxed text-[#121a28]/80 dark:text-white/80 max-w-xl mb-6`,children:(0,J.jsx)(U,{body:r})}):null,i&&i.length>0?(0,J.jsx)(`ul`,{"data-tina-field":H(e,`heroBullets`),className:`flex flex-wrap justify-center lg:justify-start gap-x-5 gap-y-2 mb-8`,children:i.map((e,t)=>(0,J.jsxs)(`li`,{className:`flex items-center gap-2 text-base lg:text-lg font-medium text-[#121a28] dark:text-white`,children:[(0,J.jsx)(h,{icon:P,className:`text-[#7bbf6a]`}),e?.text]},t))}):null,a?(0,J.jsxs)(`div`,{className:`flex flex-col items-center lg:items-start gap-3`,children:[(0,J.jsxs)(s,{to:o||`/acceso-inmediato`,className:`inline-flex items-center gap-3 bg-[#80333c] hover:bg-[#6a2a32] text-white font-bold text-lg lg:text-xl px-8 py-4 rounded-full shadow-lg transition-colors`,children:[a,(0,J.jsx)(h,{icon:I})]}),c?(0,J.jsx)(`p`,{"data-tina-field":H(e,`heroMicrocopy`),className:`text-sm text-[#121a28]/60 dark:text-white/60 max-w-md`,children:c}):null]}):null]}),l?(0,J.jsxs)(`div`,{"data-tina-field":H(e,`heroImage`),className:`relative flex justify-center`,children:[(0,J.jsx)(`div`,{className:`pointer-events-none absolute inset-0 m-auto w-[70%] h-[70%] rounded-[3rem] bg-[#f0a3a1]/25 blur-2xl`}),(0,J.jsx)(`img`,{width:u??void 0,height:d??void 0,fetchPriority:`high`,alt:``,src:z(l,{width:la}),loading:`eager`,className:`relative w-[72%] sm:w-[58%] lg:w-full max-w-[26rem] h-auto drop-shadow-2xl`})]}):null]})]})},da=[`#3a4760`,`#072f2a`,`#cd6759`,`#f0a3a1`,`#80333c`],fa=e=>{switch(e){case`2`:return`sm:grid-cols-2`;
223case`4`:return`sm:grid-cols-2 lg:grid-cols-4`;default:return`sm:grid-cols-2 lg:grid-cols-3`}},pa=({item:e})=>{let{cardVariant:t,cardTitle:n,cardBody:r,cardImage:i,cardIcon:a,cardSpan:o,cardBg:s}=e,c=s||`#ffffff`,l=da.includes(c.toLowerCase()),u=t||(i?`feature`:`text`),d=a?m({prefix:`fal`,iconName:a}):void 0;return(0,J.jsxs)(`div`,{"data-tina-field":H(e,`cardTitle`),style:{backgroundColor:c},className:L(`flex flex-col rounded-3xl p-6 lg:p-8 shadow-sm ring-1 ring-black/5 overflow-hidden`,o===`2`&&`sm:col-span-2`,l?`text-white`:`text-[#121a28]`),children:[u===`feature`&&i?(0,J.jsx)(`div`,{className:`relative mb-6 -mx-2 -mt-2 rounded-2xl bg-gradient-to-b from-[#fbe9e0] to-white dark:from-[#3a4760] dark:to-[#28324a] flex items-end justify-center h-56 lg:h-64 overflow-hidden`,children:(0,J.jsx)(`img`,{decoding:`async`,alt:``,src:i,loading:`lazy`,className:`h-[112%] w-auto object-contain object-bottom translate-y-2 drop-shadow-xl`})}):null,u===`area`&&d?(0,J.jsx)(`div`,{className:L(`w-14 h-14 rounded-2xl flex items-center justify-center text-2xl mb-5`,l?`bg-white/15 text-white`:`bg-[#fbe9e0] text-[#80333c]`),children:(0,J.jsx)(h,{icon:d})}):null,n?(0,J.jsx)(`h3`,{className:`font-display text-xl lg:text-2xl font-bold leading-tight mb-2`,children:n}):null,r?(0,J.jsx)(`div`,{className:L(`content text-sm lg:text-base leading-relaxed`,l?`text-white/85`:`text-[#121a28]/75`),children:(0,J.jsx)(U,{body:r})}):null]})},ma=e=>{let{bentoKicker:t,bentoTitle:n,bentoSubtitle:r,bentoColumns:i,bentoBg:a,bentoItems:o,ctaButtonText:c,ctaButtonUrl:l,bentoNote:u}=e,d=e[`data-tina-field`],f=a||`#f9f2e9`,p=da.includes(f.toLowerCase());return(0,J.jsx)(`section`,{"data-tina-field":d,style:{backgroundColor:f},className:L(`w-full py-14 lg:py-24`,p&&`text-white`),children:(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto px-4 lg:px-0`,children:[(0,J.jsxs)(`div`,{className:`text-center max-w-2xl mx-auto mb-10 lg:mb-14`,children:[t?(0,J.jsx)(`span`,{"data-tina-field":H(e,`bentoKicker`),className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] block mb-2`,children:t}):null,n?(0,J.jsx)(`h2`,{"data-tina-field":H(e,`bentoTitle`),className:L(`font-display text-[2rem] lg:text-[3rem] leading-none font-bold mb-4`,p?`text-white`:`text-[#121a28] dark:text-white`),children:n}):null,r?(0,J.jsx)(`p`,{"data-tina-field":H(e,`bentoSubtitle`),className:L(`text-base lg:text-xl`,p?`text-white/80`:`text-[#121a28]/70 dark:text-white/70`),children:r}):null]}),o&&o.length>0?(0,J.jsx)(`div`,{className:L(`grid grid-cols-1 gap-4 lg:gap-6`,fa(i)),children:o.filter(e=>e!==null).map((e,t)=>(0,J.jsx)(pa,{item:e},t))}):null,c?(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-3 mt-12`,children:[(0,J.jsxs)(s,{to:l||`/acceso-inmediato`,className:`inline-flex items-center gap-3 bg-[#80333c] hover:bg-[#6a2a32] text-white font-bold text-lg lg:text-xl px-8 py-4 rounded-full shadow-lg transition-colors`,children:[c,(0,J.jsx)(h,{icon:I})]}),u?(0,J.jsx)(`p`,{className:L(`text-sm`,p?`text-white/60`:`text-[#121a28]/60 dark:text-white/60`),children:u}):null]}):null]})})},ha=e=>{let{faqKicker:t,faqTitle:n,faqItems:r}=e,i=e[`data-tina-field`],[a,o]=(0,q.useState)(0);return(0,J.jsx)(`section`,{"data-tina-field":i,className:`w-full bg-[#f9f2e9] dark:bg-[#121a28] py-14 lg:py-24`,children:(0,J.jsxs)(`div`,{className:`max-w-3xl mx-auto px-4 lg:px-0`,children:[(0,J.jsxs)(`div`,{className:`text-center mb-10 lg:mb-14`,children:[t?(0,J.jsx)(`span`,{"data-tina-field":H(e,`faqKicker`),className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] block mb-2`,children:t}):null,n?(0,J.jsx)(`h2`,{"data-tina-field":H(e,`faqTitle`),className:`font-display text-[2rem] lg:text-[3rem] leading-none font-bold text-[#121a28] dark:text-white`,children:n}):null]}),(0,J.jsx)(`div`,{className:`flex flex-col gap-3`,children:(r||[]).filter(e=>e!==null).map((e,t)=>{let n=a===t;return(0,J.jsxs)(`div`,{className:`rounded-2xl bg-white dark:bg-[#3a4760] ring-1 ring-black/5 overflow-hidden`,children:[(0,J.jsxs)(`button`,{type:`button`,onClick:()=>o(n?null:t),className:`w-full flex items-center justify-between gap-4 text-left px-6 py-5 cursor-pointer`,"aria-expanded":n,children:[(0,J.jsx)(`span`,{className:`font-display text-lg lg:text-xl font-semibold text-[#121a28] dark:text-white`,children:e.faqQuestion}),(0,J.jsx)(h,{icon:te,className:L(`text-[#80333c] dark:text-[#f0a3a1] transition-transform shrink-0`,n&&`rotate-180`)})]}),(0,J.jsx)(`div`,{className:L(`grid transition-all duration-300 ease-in-out`,n?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`),children:(0,J.jsx)(`div`,{className:`overflow-hidden`,children:(0,J.jsx)(`div`,{className:`content px-6 pb-6 text-base leading-relaxed text-[#121a28]/80 dark:text-white/80`,children:(0,J.jsx)(U,{body:e.faqAnswer})})})})]},t)})})]})})},ga=e=>{let{ctaKicker:t,ctaHeadline:n,ctaBody:r,ctaButtonText:i,ctaButtonUrl:a,ctaBg:o}=e,c=e[`data-tina-field`];return(0,J.jsxs)(`section`,{"data-tina-field":c,style:{backgroundColor:o||`#80333c`},className:`relative w-full overflow-hidden py-16 lg:py-28 text-white`,children:[(0,J.jsx)(`div`,{className:`pointer-events-none absolute -bottom-32 -left-24 w-[34rem] h-[34rem] rounded-full bg-white/10 blur-3xl`}),(0,J.jsx)(`div`,{className:`pointer-events-none absolute -top-32 -right-24 w-[30rem] h-[30rem] rounded-full bg-white/10 blur-3xl`}),(0,J.jsxs)(`div`,{className:`relative max-w-[52rem] mx-auto px-4 lg:px-0 text-center flex flex-col items-center`,children:[t?(0,J.jsx)(`span`,{"data-tina-field":H(e,`ctaKicker`),className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#fbd4c4] skew-y-[-4deg] mb-2`,children:t}):null,n?(0,J.jsx)(`h2`,{"data-tina-field":H(e,`ctaHeadline`),className:`font-display text-[2.25rem] lg:text-[3.5rem] leading-[1.05] font-bold mb-6`,children:n}):null,r?(0,J.jsx)(`div`,{"data-tina-field":H(e,`ctaBody`),className:`content text-lg lg:text-2xl leading-relaxed text-white/90 mb-10 max-w-2xl`,children:(0,J.jsx)(U,{body:r})}):null,i?(0,J.jsxs)(s,{to:a||`/acceso-inmediato`,className:`inline-flex items-center gap-3 bg-white text-[#80333c] hover:bg-[#f9f2e9] font-bold text-lg lg:text-2xl px-10 py-5 rounded-full shadow-xl transition-colors`,children:[i,(0,J.jsx)(h,{icon:I})]}):null]})]})},_a=[`#3a4760`,`#072f2a`],va=e=>{let{fsKicker:t,fsTitle:n,fsSubtitle:r,fsBg:i,fsItems:a,ctaButtonText:o,ctaButtonUrl:c,fsNote:l}=e,u=e[`data-tina-field`],[d,f]=(0,q.useState)(0),p=(a||[]).filter(e=>e!==null),g=i||`#f9f2e9`,_=_a.includes(g.toLowerCase());return p.length===0?null:(0,J.jsx)(`section`,{"data-tina-field":u,style:{backgroundColor:g},className:L(`w-full py-14 lg:py-24`,_&&`text-white`),children:(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto px-4 lg:px-0`,children:[(0,J.jsxs)(`div`,{className:`text-center max-w-2xl mx-auto mb-10 lg:mb-16`,children:[t?(0,J.jsx)(`span`,{"data-tina-field":H(e,`fsKicker`),className:`font-['parlare'] text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] block mb-2`,children:t}):null,n?(0,J.jsx)(`h2`,{"data-tina-field":H(e,`fsTitle`),className:L(`font-display text-[2rem] lg:text-[3rem] leading-none font-bold mb-4`,_?`text-white`:`text-[#121a28] dark:text-white`),children:n}):null,r?(0,J.jsx)(`p`,{"data-tina-field":H(e,`fsSubtitle`),className:L(`text-base lg:text-xl`,_?`text-white/80`:`text-[#121a28]/70 dark:text-white/70`),children:r}):null]}),(0,J.jsxs)(`div`,{className:`grid lg:grid-cols-2 gap-8 lg:gap-14 items-start`,children:[(0,J.jsx)(`div`,{className:`hidden lg:block lg:sticky lg:top-24`,children:(0,J.jsx)(`div`,{className:`relative rounded-[2rem] bg-gradient-to-b from-[#fbe9e0] to-white dark:from-[#3a4760] dark:to-[#28324a] h-[520px] flex items-end justify-center overflow-hidden ring-1 ring-black/5`,children:p.map((e,t)=>e.fsItemImage?(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,src:e.fsItemImage,alt:``,className:L(`absolute bottom-0 h-[106%] w-auto object-contain object-bottom drop-shadow-2xl transition-opacity duration-500 ease-out`,t===d?`opacity-100`:`opacity-0`)},t):null)})}),(0,J.jsx)(`div`,{className:`flex flex-col gap-3`,children:p.map((e,t)=>{let n=t===d,r=e.fsItemIcon?m({prefix:`fal`,iconName:e.fsItemIcon}):void 0;return(0,J.jsxs)(`div`,{"data-tina-field":H(e,`fsItemTitle`),className:L(`rounded-2xl ring-1 transition-colors`,n?`bg-white dark:bg-[#3a4760] ring-[#f0a3a1] shadow-sm`:`bg-white/40 dark:bg-white/5 ring-black/5 dark:ring-white/10 hover:bg-white/70 dark:hover:bg-white/10`),children:[(0,J.jsxs)(`button`,{type:`button`,onClick:()=>f(t),"aria-expanded":n,className:`w-full flex items-center gap-4 px-5 py-4 text-left cursor-pointer`,children:[r?(0,J.jsx)(`span`,{className:L(`w-10 h-10 rounded-xl flex items-center justify-center shrink-0 transition-colors`,n?`bg-[#80333c] text-white`:`bg-[#fbe9e0] text-[#80333c]`),children:(0,J.jsx)(h,{icon:r})}):null,(0,J.jsx)(`span`,{className:L(`font-display text-lg lg:text-xl font-semibold flex-1`,_?`text-white`:`text-[#121a28] dark:text-white`),children:e.fsItemTitle}),(0,J.jsx)(h,{icon:te,className:L(`shrink-0 transition-transform text-[#80333c] dark:text-[#f0a3a1]`,n&&`rotate-180`)})]}),(0,J.jsx)(`div`,{className:L(`grid transition-all duration-300 ease-in-out`,n?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`),children:(0,J.jsx)(`div`,{className:`overflow-hidden`,children:(0,J.jsxs)(`div`,{className:L(`content px-5 pb-5 text-sm lg:text-base leading-relaxed`,_?`text-white/85`:`text-[#121a28]/75`),children:[(0,J.jsx)(U,{body:e.fsItemBody}),e.fsItemImage?(0,J.jsx)(`img`,{loading:`lazy`,decoding:`async`,src:e.fsItemImage,alt:``,width:e.fsItemImageWidth??void 0,height:e.fsItemImageHeight??void 0,className:`lg:hidden mt-5 mx-auto max-h-[360px] w-auto object-contain drop-shadow-xl`}):null]})})})]},t)})})]}),o?(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-3 mt-14`,children:[(0,J.jsxs)(s,{to:c||`/acceso-inmediato`,className:`inline-flex items-center gap-3 bg-[#80333c] hover:bg-[#6a2a32] text-white font-bold text-lg lg:text-xl px-8 py-4 rounded-full shadow-lg transition-colors`,children:[o,(0,J.jsx)(h,{icon:I})]}),l?(0,J.jsx)(`p`,{className:L(`text-sm`,_?`text-white/60`:`text-[#121a28]/60 dark:text-white/60`),children:l}):null]}):null]})})},ya=Date.UTC(2026,8,3),ba=1440*60*1e3,xa=7*ba,Sa=14,Ca=e=>(e??[]).flatMap(e=>e?.url?[{...e.label?{label:e.label}:{},url:e.url}]:[]),wa=(e,t)=>
223{let n=Math.floor((e.getTime()-ya)/xa);return Math.min(Math.max(n,0),t-1)},Ta=(e,t)=>{if(t<1)return;let n=Ji(e);if(n)return wa(n,t)},Ea=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())-Sa*ba),Da=(e,t,n=new Date)=>{let r=Ca(e);if(r.length!==0)return r[(t?Ta(t,r.length):void 0)??wa(Ea(n),r.length)]},Oa=`ES`,ka=`text-white caret-white`,Aa=({needsIdentity:e,phoneLabel:t,submitLabel:n,isSubmitting:r,onSubmit:i,tinaFields:a})=>{let o=De({resolver:Se(e?dn:fn),defaultValues:e?{phone:``,firstName:``,email:``}:{phone:``}});return(0,J.jsx)(Ee,{...o,children:(0,J.jsxs)(`form`,{onSubmit:o.handleSubmit(i),className:`max-w-md mx-auto`,children:[e&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(xe,{control:o.control,name:`firstName`,render:({field:e})=>(0,J.jsxs)(be,{className:`mb-6`,children:[(0,J.jsx)(we,{className:`text-white`,children:`Tu primer nombre`}),(0,J.jsx)(Ce,{children:(0,J.jsx)(Oe,{placeholder:`Tu primer nombre`,className:ka,...e})}),(0,J.jsx)(Te,{})]})}),(0,J.jsx)(xe,{control:o.control,name:`email`,render:({field:e})=>(0,J.jsxs)(be,{className:`mb-6`,children:[(0,J.jsx)(we,{className:`text-white`,children:`Tu correo electrónico`}),(0,J.jsx)(Ce,{children:(0,J.jsx)(Oe,{type:`email`,placeholder:`Tu correo electrónico`,className:ka,...e})}),(0,J.jsx)(Te,{})]})})]}),(0,J.jsx)(xe,{control:o.control,name:`phone`,render:({field:e})=>(0,J.jsxs)(be,{className:`mb-6`,children:[(0,J.jsx)(we,{"data-tina-field":a?.phoneLabel,className:`text-white`,children:t}),(0,J.jsx)(Ce,{children:(0,J.jsx)(un,{placeholder:`Tu número de WhatsApp`,defaultCountry:Oa,international:!0,className:`[&_input]:text-white [&_input]:caret-white`,...e})}),(0,J.jsx)(Te,{})]})}),(0,J.jsxs)(ye,{type:`submit`,disabled:r,className:`w-full bg-[#25D366] hover:bg-[#1da851] text-[#080c13]`,children:[(0,J.jsx)(h,{fixedWidth:!0,className:`text-base`,icon:ht}),(0,J.jsx)(`span`,{"data-tina-field":a?.submitLabel,children:r?`Enviando...`:n})]})]})})},ja=Object.defineProperty,Ma=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable,Fa=(e,t,n)=>t in e?ja(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ia=(e,t)=>{for(var n in t||={})Na.call(t,n)&&Fa(e,n,t[n]);if(Ma)for(var n of Ma(t))Pa.call(t,n)&&Fa(e,n,t[n]);return e},La=(e,t)=>{var n={};for(var r in e)Na.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ma)for(var r of Ma(e))t.indexOf(r)<0&&Pa.call(e,r)&&(n[r]=e[r]);return n},Ra;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;
223for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,l=Math.floor(s/a),u=[],d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<a;n++){let i=e.slice(r,r+l-o+(n<c?0:1));r+=i.length;let a=t.reedSolomonComputeRemainder(i,d);n<c&&i.push(0),u.push(i.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let o=t-a,s=t+1&2?i:this.size-1-i;!this.isFunction[s][o]&&n<e.length*8&&(this.modules[s][o]=r(e[n>>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();
223r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+i),10),i*3+1,r),e+=i}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let r=[],i;for(i=0;i+2<=t.length;i+=2){let a=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i+1)),n(a,11,r)}return i<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else if(t<1e6)n(6,3,r),n(t,21,r);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;let o=a;e.QrSegment=a})(Ra||={}),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(Ra||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(Ra||={});
223var za=Ra,Ba={L:za.QrCode.Ecc.LOW,M:za.QrCode.Ecc.MEDIUM,Q:za.QrCode.Ecc.QUARTILE,H:za.QrCode.Ecc.HIGH},Va=128,Ha=`L`,Ua=`#FFFFFF`,Wa=`#000000`,Ga=!1,Ka=1,qa=4,Ja=0,Ya=.1;function Xa(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Za(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1))}function Qa(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*Ya),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function $a(e,t){return t==null?e?qa:Ja:Math.max(Math.floor(t),0)}function eo({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=q.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...za.QrSegment.makeSegments(t)),e),[]);return za.QrCode.encodeSegments(r,Ba[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=q.useMemo(()=>{let e=c.getModules(),t=$a(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:Qa(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var to=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),no=q.forwardRef(function(e,t){let n=e,{value:r,size:i=Va,level:a=Ha,bgColor:o=Ua,fgColor:s=Wa,includeMargin:c=Ga,minVersion:l=Ka,boostLevel:u,marginSize:d,imageSettings:f}=n,p=La(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=La(p,[`style`]),g=f?.src,_=q.useRef(null),v=q.useRef(null),y=q.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=q.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=eo({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});q.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=Za(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,to?t.fill(new Path2D(Xa(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),q.useEffect(()=>{x(!1)},[g]);let E=Ia({height:i,width:i},m),D=null;return g!=null&&(D=q.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T?.crossOrigin})),q.createElement(q.Fragment,null,q.createElement(`canvas`,Ia({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});no.displayName=`QRCodeCanvas`;var ro=q.forwardRef(function(e,t){let n=e,{value:r,size:i=Va,level:a=Ha,bgColor:o=Ua,fgColor:s=Wa,includeMargin:c=Ga,minVersion:l=Ka,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=La(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=eo({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=Za(g,v.excavation)),b=q.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=Xa(y,h);return q.createElement(`svg`,Ia({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&q.createElement(`title`,null,d),q.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),q.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});ro.displayName=`QRCodeSVG`;var io=`(min-width: 1024px)`,ao=()=>{let[e,t]=(0,q.useState)(!1);return(0,q.useEffect)(()=>{let e=window.matchMedia(io),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e},oo=2500,so=({headline:e,text:t,joinUrl:n,joinLabel:r,copyLabel:i,helpText:a,tinaFields:o})=>{let s=ao(),[c,l]=(0,q.useState)(!1);return(0,q.useEffect)(()=>
223{if(!c)return;let e=setTimeout(()=>l(!1),oo);return()=>clearTimeout(e)},[c]),(0,J.jsxs)(`div`,{className:`text-center`,children:[(0,J.jsx)(`h1`,{"data-tina-field":o?.headline,className:`font-display text-[1.75rem] lg:text-[2.5rem] leading-tight font-bold text-white mb-4`,children:e}),t&&(0,J.jsx)(`p`,{"data-tina-field":o?.text,className:`text-[#fbd4c4] text-base lg:text-lg mb-8`,children:t}),n&&(0,J.jsxs)(`div`,{className:`max-w-md mx-auto flex flex-col gap-3`,children:[(0,J.jsx)(ye,{asChild:!0,size:`lg`,className:`w-full bg-[#25D366] hover:bg-[#1da851] text-[#080c13]`,children:(0,J.jsxs)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:[(0,J.jsx)(h,{fixedWidth:!0,className:`text-xl`,icon:ht}),(0,J.jsx)(`span`,{"data-tina-field":o?.joinLabel,children:r})]})}),(0,J.jsxs)(ye,{type:`button`,variant:`outline`,onClick:async()=>{try{if(!navigator.clipboard)throw Error(`clipboard unavailable`);await navigator.clipboard.writeText(n??``),l(!0),le.success(`Enlace copiado`)}catch{le.error(`No pudimos copiar el enlace. Usa el botón de arriba.`)}},className:`w-full bg-transparent border-[#f0a3a1] text-[#fbd4c4] hover:bg-[#f0a3a1] hover:text-[#080c13]`,children:[(0,J.jsx)(h,{fixedWidth:!0,className:`text-base`,icon:c?y:T}),(0,J.jsx)(`span`,{"data-tina-field":o?.copyLabel,children:c?`¡Enlace copiado!`:i})]}),s&&(0,J.jsxs)(`div`,{className:`mt-6 flex flex-col items-center gap-3`,children:[(0,J.jsx)(`div`,{className:`bg-white rounded-2xl p-4`,children:(0,J.jsx)(ro,{value:n,size:168,level:`M`,bgColor:`#ffffff`,fgColor:`#080c13`,title:`Código QR del grupo de WhatsApp`})}),(0,J.jsx)(`p`,{className:`text-[#fbd4c4]/70 text-sm`,children:`O escanea este código con la cámara de tu teléfono`})]})]}),a&&(0,J.jsx)(`p`,{"data-tina-field":o?.helpText,className:`text-[#fbd4c4]/70 text-sm mt-8 max-w-md mx-auto`,children:a})]})},co=e=>{let{joinSeriesType:t=`correos`,joinCurrentLesson:n=2,joinHeadline:r,joinSubheadline:a,joinLessons:o,joinPhoneLabel:s,joinSubmitLabel:l,joinConfirmationHeadline:u,joinConfirmationText:d,joinGroupLinks:p,joinGroupButtonLabel:m,joinCopyButtonLabel:h,joinGroupHelpText:g}=e,_=e[`data-tina-field`],v=i().pathname.replace(/\/$/,``),y=o?.map(e=>({title:e?.joinLessonTitle||``,url:e?.joinLessonUrl||`#`})),b=ia(y,v),x=b?n:0,S=f()?.subscriber,C=c(),[w,T]=(0,q.useState)(!1),[E,D]=(0,q.useState)(),O=Da(p?.map(e=>({label:e?.joinGroupLabel??void 0,url:e?.joinGroupUrl??void 0})),E??S?.enrollmentDay),k=w||!!S?.hasPhone,A=!S?.exists;return(0,q.useEffect)(()=>{if(!(C.state!==`idle`||!C.data)){if(C.data.error){le.error(C.data.error);return}C.data.enrollmentDay&&D(C.data.enrollmentDay),T(!0)}},[C.state,C.data]),(0,J.jsxs)(`div`,{"data-tina-field":_,className:`min-h-screen`,children:[(0,J.jsx)(ra,{lessons:y,seriesType:t,currentLesson:x}),(0,J.jsxs)(`div`,{className:`relative bg-[#080c13] pt-8 pb-32 lg:pt-16 lg:pb-40 -mb-8 lg:-mb-16`,children:[(0,J.jsxs)(`div`,{className:`relative z-20 max-w-[40rem] mx-auto px-4`,children:[b&&(0,J.jsx)(`div`,{className:`font-['parlare'] text-center lowercase text-2xl lg:text-[2rem] text-[#f0a3a1] skew-y-[-4deg] -mb-2 lg:-mb-4`,children:ea(t,n-1)}),k?(0,J.jsx)(so,{headline:u||`¡Listo! Ya estás dentro`,text:d||`Entra al grupo desde el botón de abajo. Te esperamos.`,joinUrl:O?.url,joinLabel:m||`Entrar al grupo de WhatsApp`,copyLabel:h||`Copiar el enlace del grupo`,helpText:g||`¿No se abre el grupo? Copia el enlace y pégalo en el buscador de WhatsApp.`,tinaFields:{headline:H(e,`joinConfirmationHeadline`),text:H(e,`joinConfirmationText`),joinLabel:H(e,`joinGroupButtonLabel`),copyLabel:H(e,`joinCopyButtonLabel`),helpText:H(e,`joinGroupHelpText`)}}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h1`,{"data-tina-field":H(e,`joinHeadline`),className:`font-display text-[1.75rem] lg:text-[2.5rem] leading-tight font-bold text-center text-white mb-4`,children:r}),a&&(0,J.jsx)(`p`,{"data-tina-field":H(e,`joinSubheadline`),className:`text-center text-[#fbd4c4] text-base lg:text-lg mb-8`,children:a}),(0,J.jsx)(Aa,{needsIdentity:A,phoneLabel:s||`Tu número de WhatsApp`,submitLabel:l||`Quiero entrar al grupo`,isSubmitting:C.state!==`idle`,onSubmit:e=>C.submit({phone:e.phone,...e.firstName?{firstName:e.firstName}:{},...e.email?{email:e.email}:{}},{method:`POST`,action:`/api/subscriber/whatsapp`}
223),tinaFields:{phoneLabel:H(e,`joinPhoneLabel`),submitLabel:H(e,`joinSubmitLabel`)}},A?`identity`:`phone`)]})]}),(0,J.jsx)(aa,{})]})]})},lo=[{key:`alta`,label:`bajo`,steps:1,badge:`bg-[#80333c] text-white dark:bg-[#a96f79]`,fill:`bg-[#80333c] dark:bg-[#a96f79]`},{key:`media`,label:`medio-bajo`,steps:2,badge:`bg-[#cd6759] text-white dark:bg-[#eeae7d] dark:text-[#121a28]`,fill:`bg-[#cd6759] dark:bg-[#eeae7d]`},{key:`baja`,label:`regular`,steps:3,badge:`bg-[#f8b69c] text-white dark:bg-[#e8c583] dark:text-[#121a28]`,fill:`bg-[#f8b69c] dark:bg-[#e8c583]`},{key:`fuerte`,label:`optimó`,steps:4,badge:`bg-[#072f2a] text-white dark:bg-[#94c2a1] dark:text-[#121a28]`,fill:`bg-[#072f2a] dark:bg-[#94c2a1]`}],uo=`bg-[#f9f2e9] dark:bg-[#121a28]`,fo=lo[3],po=e=>e>=75?lo[0]:e>=50?lo[1]:e>=25?lo[2]:lo[3],mo=e=>{let t=po(e);return t.steps<=3?t:{...t,steps:3}},ho=`grid grid-cols-2 gap-x-3 sm:gap-x-6 md:grid-cols-[minmax(8rem,1fr)_1fr_1fr]`,go=({column:e,children:t})=>(0,J.jsx)(`p`,{"data-plan-column":e,className:`text-[0.7rem] font-bold uppercase tracking-[0.14em] text-[#f0a3a1]`,children:t}),_o=({bucket:e,column:t})=>(0,J.jsxs)(`div`,{"data-plan-column":t,"data-bucket":e.key,children:[(0,J.jsx)(`span`,{className:`inline-block rounded-full px-2.5 py-1 text-[0.66rem] font-bold uppercase tracking-[0.06em] ${e.badge}`,children:e.label}),(0,J.jsx)(`span`,{className:`mt-2 flex gap-1`,"aria-hidden":`true`,children:Array.from({length:4},(t,n)=>(0,J.jsx)(`span`,{"data-bar-segment":``,"data-filled":n<e.steps,className:`h-[5px] flex-1 rounded-sm ${n<e.steps?e.fill:uo}`},n))})]}),vo=({slug:e})=>{let[t,n]=(0,q.useState)(void 0);if((0,q.useEffect)(()=>{let t=pe(e);if(!t)return;let r=!1;return fetch(`/api/funnel/doc?slug=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():void 0).then(e=>{r||!e?.doc||n({doc:e.doc,state:hn({doc:e.doc,answers:de(t),prefilled:ue(t),hasName:!!t.name,hasEmail:!!t.email})})}).catch(()=>void 0),()=>{r=!0}},[e]),!t)return null;let{doc:r,state:i}=t,a=e=>e?fe(r.dimensions).find(t=>t.key===e):void 0,o=i.score.dimensions.filter(e=>e.max>0);if(!o.length)return null;let s=a(i.score.primary),c=s?.resultHeadline||(s?.label?`Tu mayor fuga está en ${s.label.toLowerCase()}`:`Tu resultado`),l=i.score.strength,u=l&&l.key!==i.score.primary?a(l.key)?.strengthCopy:void 0;return(0,J.jsx)(`section`,{className:`w-full bg-[#f9f2e9] py-10 dark:bg-[#121a28] lg:py-16`,children:(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl px-4`,children:[(0,J.jsx)(`span`,{className:`mb-2 block skew-y-[-4deg] font-['parlare'] text-2xl text-[#f0a3a1]`,children:`tu plan personalizado`}),(0,J.jsx)(`h2`,{className:`font-display text-[2rem] font-bold leading-[1.05] text-[#121a28] dark:text-white lg:text-[2.5rem]`,children:c}),u?(0,J.jsx)(`p`,{className:`mt-3 text-[#121a28]/66 dark:text-[#f9f2e9]/68`,children:u}):null,(0,J.jsxs)(`div`,{className:`mt-8`,children:[(0,J.jsxs)(`div`,{className:`${ho} px-4 pb-2 pt-2 sm:px-6 bg-card`,children:[(0,J.jsx)(`div`,{className:`hidden md:block`}),(0,J.jsx)(go,{column:`today`,children:`Hoy`}),(0,J.jsx)(go,{column:`goal`,children:`Con tu plan`})]}),o.map(e=>(0,J.jsxs)(`div`,{"data-dimension":e.key,className:`${ho} items-center px-4 py-5 sm:px-6 bg-card mt-1`,children:[(0,J.jsxs)(`div`,{className:`col-span-2 mb-3 flex items-center gap-2.5 md:col-span-1 md:mb-0`,children:[(0,J.jsx)(h,{icon:mn(a(e.key)?.icon),className:`h-4 w-4 shrink-0 text-[#f0a3a1]`}),(0,J.jsx)(`span`,{className:`text-[0.95rem] font-semibold leading-tight`,children:e.label||e.key})]}),(0,J.jsx)(_o,{bucket:mo(e.pct),column:`today`}),(0,J.jsx)(_o,{bucket:fo,column:`goal`})]},e.key))]})]})})},yo=(e,t)=>{let[n,r]=(0,q.useState)(t),i=(0,q.useRef)(null);(0,q.useEffect)(()=>{i.current=null,r(t)},[t]);let a=rn(e,n)?.endsAtUnix;return(0,q.useEffect)(()=>{if(a===void 0||a<=n)return;let e=Je();i.current??={serverUnix:t+Pe(t),sinceMs:e()};let{serverUnix:o,sinceMs:s}=i.current,c=o+(e()-s)/1e3,l=setTimeout(()=>r(a),Math.max(a-c,0)*1e3);return()=>clearTimeout(l)},[a,n,t]),n},bo=e=>typeof e==`object`&&!!e,xo=e=>{if(Array.isArray(e)){for(let t of e)if(!(!bo(t)||!Array.isArray(t.blocks))){for(let e of t.blocks)if(bo(e)&&e.bonus)return e.bonus}}},So=`/plan`,Co=(e,t)=>{if(!e?.endsWith(So))return;let n=(t?.code??e.slice(0,-5)).toLowerCase();return ce(n)&&n!==`test`?n:void 0},wo=`PageBlocksExperiment`,To=`PageBlocksExperimentVariantsBlocks`,Eo=e=>typeof e==`object`&&!!e,Do=e=>Eo(e)&&e.__typename===wo,Oo=e=>
223Array.isArray(e)&&e.some(Do),ko=e=>{if(Array.isArray(e))return e.map(ko);if(!Eo(e))return e;let t={};for(let[n,r]of Object.entries(e))t[n]=n===`__typename`&&typeof r==`string`&&r.startsWith(To)?`PageBlocks${r.slice(34)}`:ko(r);return t},Ao=e=>Array.isArray(e)?ko(e):[],jo=(e,t)=>{if(!t)return[];let n=(e.variants??[]).find(e=>e?.key===t);return n?Ao(n.blocks):[]},Mo=(e,t,n,r,i,a,o)=>{if(!e)return null;let s=H(e);switch(e.__typename){case`PageBlocksVideoHero`:return(0,J.jsx)(An,{"data-tina-field":s,...e},t);case`PageBlocksIcons`:return(0,J.jsx)(Mn,{"data-tina-field":s,...e},t);case`PageBlocksImageHero`:return(0,J.jsx)(Ln,{"data-tina-field":s,...e},t);case`PageBlocksFeatured`:return(0,J.jsx)(Vn,{"data-tina-field":s,...e},t);case`PageBlocksSection`:return(0,J.jsx)(pi,{"data-tina-field":s,...e,faqData:n,nativeCommentsByThreadKey:r},t);case`PageBlocksLogos`:return(0,J.jsx)(hi,{"data-tina-field":s,...e},t);case`PageBlocksTestimonials`:return(0,J.jsx)(wi,{"data-tina-field":s,...e,defaultCategory:a?._sys?.filename??void 0},t);case`PageBlocksCountdownTimer`:return(0,J.jsx)(Ti,{"data-tina-field":s,...e},t);case`PageBlocksLessonsList`:return(0,J.jsx)(wr,{"data-tina-field":s,...e},t);case`PageBlocksLandingCTA`:return(0,J.jsx)(Di,{"data-tina-field":s,...e,pageSlug:o},t);case`PageBlocksBlockWithImage`:return(0,J.jsx)(lr,{"data-tina-field":s,...e},t);case`PageBlocksConfirmationHero`:return(0,J.jsx)(Ki,{"data-tina-field":s,...e},t);case`PageBlocksLaunchLesson`:return(0,J.jsx)(ca,{"data-tina-field":s,...e},t);case`PageBlocksEnergyTest`:return(0,J.jsx)(rt,{"data-tina-field":s},t);case`PageBlocksSistemaHero`:return(0,J.jsx)(ua,{"data-tina-field":s,...e},t);case`PageBlocksBento`:return(0,J.jsx)(ma,{"data-tina-field":s,...e},t);case`PageBlocksFaqInline`:return(0,J.jsx)(ha,{"data-tina-field":s,...e},t);case`PageBlocksSistemaCta`:return(0,J.jsx)(ga,{"data-tina-field":s,...e},t);case`PageBlocksWhatsappJoin`:return(0,J.jsx)(co,{"data-tina-field":s,...e},t);case`PageBlocksFeatureShowcase`:return(0,J.jsx)(va,{"data-tina-field":s,...e},t);case`PageBlocksExperiment`:return i?.editing?(0,J.jsx)(`div`,{"data-tina-field":s,children:(e.variants??[]).map((e,t)=>e?(0,J.jsxs)(`section`,{"data-variant-key":e.key??void 0,children:[(0,J.jsxs)(`p`,{className:`mx-auto max-w-5xl px-4 pt-8 font-mono text-xs uppercase tracking-widest text-[#f0a3a1]`,children:[`Variante: `,e.key]}),Ao(e.blocks).map((e,t)=>Mo(e,t,n,r,i,a))]},e.key??t):null)},t):(0,J.jsx)(q.Fragment,{children:jo(e,i?.bucket).map((e,t)=>Mo(e,t,n,r,i,a))},t);default:return null}},No=({loaderData:e})=>{let{query:t,variables:n,data:r,bonuses:i}=e,a=`faqData`in e?e.faqData:[],o=`nativeCommentsByThreadKey`in e?e.nativeCommentsByThreadKey:void 0,{data:s}=Ae({query:t,variables:n,data:r}),{edit:c}=je();vn(i);let{page:{landing:l,blocks:u,course:d,exitIntent:p,showCta:m,centeredLogo:h,minimalFooter:g,hideHeader:_}={}}=s,v=s.page?._sys?.relativePath?.replace(/\.json$/,``),y=d,b=Co(v,y),x=f()?.subscriber,S=`serverNowUnix`in e?e.serverNowUnix:0,C=`viewerTimeZone`in e?e.viewerTimeZone:void 0,w=Me(x),T=Oo(u)?w:void 0,E=`currency`in e?e.currency:Qe.EUR,D=`offerCoupons`in e?e.offerCoupons:{},[O,k]=(0,q.useState)(void 0);(0,q.useEffect)(()=>{k(pn())},[]);let A=`defaultExitIntentBonusSlug`in e?e.defaultExitIntentBonusSlug:void 0,j=A?i?.find(e=>e._sys?.relativePath===`${A}.json`):void 0,M=p?.bonus??xo(u),[ee,N]=(0,q.useState)(null);(0,q.useEffect)(()=>{N(new URLSearchParams(window.location.search).get(`offer`))},[]);let P=S?on(x,C):void 0,F=yo(P,S),te=S?sn(ee,F):void 0,ne=S?nn(ee,F):void 0,re=S?cn(P,F):{active:!1,expired:!1},ie=te??re,ae=ne===void 0?gn(P,F):ne??void 0,I=an(ee),oe=Mr(I?I.phase:rn(P,F)?.phase),se=S?Ft(x?.offer?.expires_at_unix,S):{active:!1,expired:!1};return`nativePaywall`in e&&e.nativePaywall&&b?(0,J.jsxs)(`main`,{className:`min-h-screen pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)]`,children:[(0,J.jsx)(vo,{slug:b}),(0,J.jsx)(_n,{course:tn.find(({code:e})=>e.toLowerCase()===b),offer:se,serverNowUnix:S})]}):(0,J.jsx)(He,{currency:E,serverNowUnix:F,offer:ie,launchClock:ae,coupons:D,bucket:T,plans:oe,courseCode:y?.code??void 0,funnelId:O,children:(0,J.jsxs)(`div`,{className:`flex flex-col min-h-screen`,children:[!_&&(0,J.jsx)(lt,{landing:l,showCta:m??!0,centeredLogo:h,bonus:l?M:j,ctaUrl:l&&!M?Le(T):void 0}),(0,J.jsx)(`main`,{className:`flex-1`,children:u?.map((e,t)=>(0,J.jsxs)(q.Fragment,{children:[Mo(e,t,a,o,{bucket:w,editing:c},y,v),t===0&&b?(0,J.jsx)(vo,{slug:b}):null]},t))}),(0,J.jsx)(ut,{landing:l,minimalFooter:g}),(0,J.jsx)(Ve,{}),p?.type===`funnel`?(0,J.jsx)(Ct,{course:d,config:p,variant:`funnel`}):l&&p?.bonus?(0,J.jsx)(Ct,{bonus:p.bonus,config:p,pageSlug:v,variant:`landing`}):!l&&j?(0,J.jsx)(Ct,{bonus:j,variant:`general`}):null]})},v??`page`)},Po=({currentPage:e,totalPages:t,baseUrl:n})=>{if(t<=1)return null;let r=e=>e===1?n:`${n}/${e}`,i=(()=>{let n=[];if(t<=20)for(let e=1;e<=t;e++)n.push(e);else{let r=Math.max(1,e-10),i=Math.min(t,e+10);e<=10?i=20:e>=t-10&&(r=t-20+1),r>1&&(n.push(1),r>2&&n.push(`ellipsis`));for(let e=r;e<=i;e++)n.push(e);i<t&&(i<t-1&&n.push(`ellipsis`),n.push(t))}return n})(),a=e>1,o=e<t;return(0,J.jsx)(`div`,{className:`w-full py-16 px-8`,children:(0,J.jsxs)(`div`,{className:`flex items-center justify-center gap-2 flex-wrap`,role:`navigation`,"aria-label":`Paginación`,children:[a&&(0,J.jsx)(s,{to:r(e-1),className:`px-3 py-2 text-sm rounded hover:bg-[#f0a3a1] hover:text-white transition-colors no-u
223nderline`,rel:`prev`,"aria-label":`Página anterior`,children:`«`}),i.map((t,n)=>{if(t===`ellipsis`)return(0,J.jsx)(`span`,{className:`px-3 py-2 text-sm`,children:`...`},`ellipsis-${n}`);let i=t===e;return(0,J.jsx)(s,{to:r(t),className:`px-3 py-2 text-sm rounded transition-colors no-underline ${i?`bg-[#f0a3a1] text-white font-bold`:`hover:bg-[#f0a3a1] hover:text-white`}`,"aria-current":i?`page`:void 0,"aria-label":`Página ${t}`,children:t},t)}),o&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(s,{to:r(e+1),className:`px-3 py-2 text-sm rounded hover:bg-[#f0a3a1] hover:text-white transition-colors no-underline`,rel:`next`,"aria-label":`Página siguiente`,children:`»`}),e<t-1&&(0,J.jsx)(s,{to:r(t),className:`px-3 py-2 text-sm rounded hover:bg-[#f0a3a1] hover:text-white transition-colors no-underline ml-1`,"aria-label":`Última página`,children:`Última »`})]})]})})},Fo=680,Io=[`(min-width: 1120px) 331px`,`calc((100vw - 128px) / 3)`].join(`, `),Lo=(e,t)=>{switch(e?.__typename){case`CategoryBlocksVideoHero`:return(0,J.jsx)(An,{...e},t);case`CategoryBlocksIcons`:return(0,J.jsx)(Mn,{...e},t);case`CategoryBlocksImageHero`:return(0,J.jsx)(Ln,{...e},t);case`CategoryBlocksSection`:return(0,J.jsx)(pi,{...e},t);case`CategoryBlocksLogos`:return(0,J.jsx)(hi,{...e},t);case`CategoryBlocksTestimonials`:return(0,J.jsx)(wi,{...e},t);case`CategoryBlocksBlockWithImage`:return(0,J.jsx)(lr,{...e},t);default:return null}},Ro=({loaderData:e,slug:t})=>{let{query:n,variables:r,data:i}=e,a=`posts`in e?e.posts:[],o=`bonuses`in e?e.bonuses:[],c=`currentPage`in e?e.currentPage:1,l=`totalPages`in e?e.totalPages:1,u=`categorySlug`in e?e.categorySlug:t,{data:d}=Ae({query:n,variables:r,data:i});vn(o);let{category:f}=d,{blocks:p}=f;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(lt,{}),p?.map((e,t)=>Lo(e,t)),(0,J.jsx)(`div`,{className:`w-full bg-white dark:bg-[#121a28] pt-16 px-4 pb-16`,children:(0,J.jsxs)(`div`,{className:`max-w-[68rem] mx-auto relative`,children:[(0,J.jsx)(`div`,{className:`grid grid-cols-3 gap-12 auto-rows-[1fr]`,children:a.map(({node:e})=>{if(!e)return null;let{id:t,title:n,image:r,category:i,author:a}=e,{title:o}=a||{};return(0,J.jsxs)(s,{className:`no-underline!`,to:`/`+(t?.split(`/`)?.pop()?.replace(/\.\w+$/,``)||``),children:[r?(0,J.jsx)(`div`,{className:`w-full pb-[56.25%] relative overflow-hidden grayscale-[0.5] rounded-lg`,children:(0,J.jsx)(`img`,{alt:``,className:`absolute inset-0`,src:z(r,{width:Fo}),srcSet:ge(r,{widths:me}),sizes:Io,loading:`lazy`,decoding:`async`})}):null,(0,J.jsxs)(`div`,{className:`px-4`,children:[(0,J.jsx)(Rn,{...i,link:!1}),(0,J.jsx)(`h2`,{className:`font-display text-[#121a28] dark:text-white text-2xl leading-tight font-semibold mb-4`,children:n}),(0,J.jsxs)(`div`,{className:`flex items-center text-sm`,children:[(0,J.jsx)(`img`,{width:32,height:32,loading:`lazy`,decoding:`async`,alt:o,className:`w-8 h-8 rounded-full border-2 border-[#f9f2e9] dark:border-[#121a28] mr-2`,src:`https://secure.gravatar.com/avatar/4052e6a43a9f720bbe57e9e81417b6b8?s=180&d=mm&r=g`}),`de `,o]})]})]},t)})}),(0,J.jsx)(Po,{currentPage:c,totalPages:l,baseUrl:`/${u}`})]})}),(0,J.jsx)(ut,{})]})},zo=e=>e===`index`?`https://habitualmente.com`:`https://habitualmente.com/${e}`,Bo=e=>!!e,Vo=(e,t)=>({"@context":`https://schema.org`,"@type":`Article`,headline:e.title,...e.date&&{datePublished:e.date},...e.modified&&{dateModified:e.modified},...e.excerpt&&{description:e.excerpt},...e.image&&{image:e.image},url:t,...e.author&&{author:{"@type":`Person`,name:e.author.title,...e.author.url&&{url:`https://habitualmente.com${e.author.url}`},...e.author.image&&{image:e.author.image},...e.author.sameAs&&{sameAs:[e.author.sameAs.instagram,e.author.sameAs.twitter,e.author.sameAs.linkedin,e.author.sameAs.youtube,e.author.sameAs.pinterest].filter(
223Bo)}}},publisher:{"@type":`Organization`,name:`Habitualmente`,url:`https://habitualmente.com`}}),Ho=e=>({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Inicio`,item:`https://habitualmente.com`},...e.category?[{"@type":`ListItem`,position:2,name:e.category.title,item:`https://habitualmente.com/${e.category._sys?.filename}`},{"@type":`ListItem`,position:3,name:e.title}]:[{"@type":`ListItem`,position:2,name:e.title}]]}),Uo=(e,t)=>[Vo(e,t),Ho(e)],Wo=({data:e,params:t})=>{if(!e)return[{title:`Habitualmente`},{name:`description`,content:`Mejora tus hábitos y transforma tu vida`}];let{data:n,isCategory:r}=e,i=(t[`*`]||``).replace(/^\/+|\/+$/g,``),a=i.split(`/`).pop()||`index`;if(r&&n.category){let{category:e}=n;return[{tagName:`link`,rel:`canonical`,href:zo(a)},{title:e.title?`${e.title} | Habitualmente`:`Habitualmente`},{name:`description`,content:e.description||`Mejora tus hábitos y transforma tu vida`}]}if(n.post){let{post:e}=n;return[{tagName:`link`,rel:`canonical`,href:zo(a)},{title:e.title?`${e.title} | Habitualmente`:`Habitualmente`},{name:`description`,content:e.excerpt||e.title||``},...e.image?[{property:`og:image`,content:e.image}]:[]]}if(n.page){let{page:e}=n,t=e.title===`Home`;return[{tagName:`link`,rel:`canonical`,href:zo(i||`index`)},{title:t?`Habitualmente`:`${e.title} | Habitualmente`},{name:`description`,content:e.description||`Mejora tus hábitos y transforma tu vida`},...e.ogImage?[{property:`og:image`,content:e.ogImage}]:[],{property:`og:title`,content:t?`Habitualmente`:`${e.title} | Habitualmente`},{property:`og:description`,content:e.description||`Mejora tus hábitos y transforma tu vida`}]}return[{title:`Habitualmente`},{name:`description`,content:`Mejora tus hábitos y transforma tu vida`}]},Go=({loaderData:e,params:t})=>{let n=(t[`*`]||``).replace(/\/+$/,``).split(`/`).pop()||`index`;if(e.isCategory)return(0,J.jsx)(Ro,{loaderData:e,slug:n});if(`post`in e.data&&e.data.post){let{post:t}=e.data;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(St,{data:Uo(t,zo(n))}),(0,J.jsx)(bn,{loaderData:e,slug:n})]})}return(0,J.jsx)(No,{loaderData:e})},Ko={unconfirmedBar:e=>e!==`/home`&&!/^\/(chp|cp|fm|re)\/plan\/?$/.test(e)},qo=o(Go);export{No as a,Ro as i,Wo as n,qo as r,Ko as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.