PageSourceSearch

https://echale.es/_next/static/chunks/app/(site)/blog/page-c7b9c30d18b717b5.js

js echale.es collected 2026-10-07 03:05:39 UTC 13,441 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8034],{5361:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FadeInWhenVisible:()=>n});var a=r(95155),s=r(18310),i=r(38939);let l=[.16,1,.3,1];function n({children:e,className:t,delay:r=0,y:o=24}){let d=(0,s.I)();return(0,a.jsx)(i.PY1.div,{className:t,initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-10% 0px 0px 0px"},variants:{hidden:{opacity:0,y:d?0:o},visible:{opacity:1,y:0,transition:{duration:.6*!d,delay:d?0:r,ease:l}}},children:e})}},5772:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var a=r(97651),s=r.n(a)},7888:(e,t,r)=>{"use strict";r.d(t,{i:()=>l});var a=r(7571),s=r(81766);let i=(0,a.OX)({projectId:s.Lg,dataset:s.RT});function l(e){return i.image(e)}},9005:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let s={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};s.node;let i=(0,a.A)(s)},12572:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let s={name:"newspaper",size:24,node:[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]};s.node;let i=(0,a.A)(s)},14195:(e,t,r)=>{"use strict";r.d(t,{BlogHero:()=>u});var a=r(95155),s=r(18310),i=r(38939),l=r(12572),n=r(98574),o=r(59608),d=r(48254);let c=[.16,1,.3,1];function u(){let e=(0,s.I)();return(0,a.jsxs)("section",{className:"bg-bg-950 relative isolate min-h-[48vh] overflow-hidden rounded-b-[clamp(2.5rem,6vw,5rem)]",children:[(0,a.jsx)(n.P,{}),(0,a.jsxs)("div",{className:"relative z-10 flex min-h-[48vh] flex-col items-center justify-center gap-6 px-6 pt-28 pb-20 sm:pt-20 text-center",children:[(0,a.jsx)(i.PY1.div,{initial:{opacity:0,y:e?0:-12},animate:{opacity:1,y:0},transition:{duration:.5,ease:c},children:(0,a.jsx)(o.R,{icon:l.A,variant:"dark",children:d.fh.badge})}),(0,a.jsx)(i.PY1.h1,{initial:{opacity:0,y:16*!e},animate:{opacity:1,y:0},transition:{duration:.5,ease:c,delay:.1*!e},className:"tracking-tightest text-fg-inverse sm:text-display md:text-display-lg max-w-3xl text-4xl font-semibold text-balance",children:d.fh.title}),(0,a.jsx)(i.PY1.p,{initial:{opacity:0,y:16*!e},animate:{opacity:1,y:0},transition:{duration:.6,ease:c,delay:.2*!e},className:"text-fg-inverse-secondary text-lead mx-auto max-w-2xl font-normal",children:d.fh.subtitle})]})]})}},26398:(e,t,r)=>{"use strict";r.d(t,{BlogExplorer:()=>f});var a=r(95155),s=r(12115),i=r(65377),l=r(9005),n=r(5772),o=r(98500),d=r.n(o),c=r(12572),u=r(7888),m=r(55666),x=r(48254);function h({post:e,featured:t=!1}){var r,s;let i=(r=e.publishedAt)?new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long",year:"numeric"}).format(new Date(r)):null,l=(s=e.body,s?.length?Math.max(1,Math.round((0,m.bo)(s).trim().split(/\s+/).filter(Boolean).length/200)):null),o=e.tags?.[0];return(0,a.jsxs)(d(),{href:`/blog/${e.slug}/`,className:`group glass hover:shadow-lift flex h-full flex-col overflow-hidden rounded-2xl transition-shadow ${t?"lg:flex-row":""}`,children:[(0,a.jsx)("div",{className:`relative w-full overflow-hidden ${t?"aspect-[16/10] lg:aspect-auto lg:w-1/2":"aspect-[4/3]"}`,children:e.coverImage?(0,a.jsx)(n.default,{src:(0,u.i)(e.coverImage).width(t?900:500).height(t?560:375).fit("crop").url(),alt:e.coverImage.alt||e.title,fill:!0,sizes:t?"(min-width: 1024px) 50vw, 100vw":"(min-width: 1024px) 33vw, 100vw",className:"object-cover transition-transform duration-500 group-hover:scale-105"}):(0,a.jsx)("div",{className:"bg-brand-muted flex h-full w-full items-center justify-center",children:(0,a.jsx)(c.A,{size:t?40:28,className:"text-brand-solid"})})}),(0,a.jsxs)("div",{className:`flex flex-1 flex-col gap-3 p-6 ${t?"lg:justify-center lg:p-8":""}`,children:[o&&(0,a.jsx)("span",{className:"bg-brand-muted text-brand-solid w-fit rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide uppercase",children:o.title}),(0,a.jsx)("h3",{className:`text-fg-050 tracking-tightest font-semibold text-balance ${t?"text-2xl lg:text-3xl":"line-clamp-2 text-lg"}`,children:e.title}),e.excerpt&&(0,a.jsx)("p",{className:`text-fg-300 text-sm font-normal ${t?"line-clamp-3":"line-clamp-2"}`,children:e.excerpt}),(0,a.jsxs)("div",{className:"text-fg-500 mt-auto flex flex-wrap items-center gap-x-2 gap-y-1 pt-2 text-xs font-medium",children:[e.author&&(0,a.jsx)("span",{children:e.author}
1),e.author&&i&&(0,a.jsx)("span",{"aria-hidden":!0,children:"\xb7"}),i&&(0,a.jsx)("span",{children:i}),l&&(i||e.author)&&(0,a.jsx)("span",{"aria-hidden":!0,children:"\xb7"}),l&&(0,a.jsxs)("span",{children:[l," ",x.KP.readingTimeSuffix]})]})]})]})}var p=r(5361);function f({posts:e,tags:t}){let[r,n]=(0,s.useState)(""),[o,d]=(0,s.useState)(null),[c,u]=(0,s.useState)(6),m=""!==r.trim()||null!==o,g=(0,s.useMemo)(()=>{let t=r.trim().toLowerCase();return e.filter(e=>{let r=!t||e.title.toLowerCase().includes(t)||e.excerpt?.toLowerCase().includes(t),a=!o||e.tags?.some(e=>e.title===o);return r&&a})},[e,r,o]),b=m?null:g[0],v=b?g.slice(1):g,y=v.slice(0,c),j=y.length<v.length;return(0,a.jsx)("section",{className:"bg-bg-900 relative px-6 py-14 sm:py-24",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-5 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"relative w-full sm:max-w-sm",children:[(0,a.jsx)(i.A,{size:18,className:"text-fg-500 pointer-events-none absolute top-1/2 left-4 -translate-y-1/2","aria-hidden":!0}),(0,a.jsx)("input",{type:"search",value:r,onChange:e=>{n(e.target.value),u(6)},placeholder:x.Ve.placeholder,"aria-label":x.Ve.placeholder,className:"focus:border-brand-solid focus:ring-brand-solid/20 text-fg-050 placeholder:text-fg-500 w-full rounded-full border border-[rgba(15,31,16,.16)] bg-white py-3 pr-4 pl-11 text-sm transition-colors focus:ring-2 focus:outline-none"})]}),t.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{d(null),u(6)},className:`rounded-full px-3.5 py-1.5 text-xs font-semibold tracking-wide uppercase transition-colors ${null===o?"bg-brand-solid text-brand-on":"text-fg-300 hover:border-brand-solid/40 border border-[rgba(15,31,16,.14)]"}`,children:x.Ve.allTagsLabel}),t.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{d(e===o?null:e),u(6)},className:`rounded-full px-3.5 py-1.5 text-xs font-semibold tracking-wide uppercase transition-colors ${o===e?"bg-brand-solid text-brand-on":"text-fg-300 hover:border-brand-solid/40 border border-[rgba(15,31,16,.14)]"}`,children:e},e))]})]}),0===g.length?(0,a.jsxs)("div",{className:"mt-16 flex flex-col items-center gap-4 text-center",children:[(0,a.jsx)("p",{className:"text-fg-050 text-xl font-semibold tracking-tight",children:x.Ve.noResultsTitle}),(0,a.jsx)("p",{className:"text-fg-300 max-w-md text-sm",children:x.Ve.noResultsBody}),(0,a.jsxs)("button",{type:"button",onClick:function(){n(""),d(null),u(6)},className:"text-brand-muted hover:text-fg-050 mt-1 inline-flex items-center gap-1.5 text-sm font-medium transition-colors",children:[(0,a.jsx)(l.A,{size:14}),x.Ve.resetLabel]})]}):(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(p.FadeInWhenVisible,{className:"mt-12",children:(0,a.jsx)(h,{post:b,featured:!0})}),(0,a.jsx)("div",{className:"mt-8 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:y.map((e,t)=>(0,a.jsx)(p.FadeInWhenVisible,{delay:.05*t,children:(0,a.jsx)(h,{post:e})},e._id))}),j&&(0,a.jsx)("div",{className:"mt-10 flex justify-center",children:(0,a.jsx)("button",{type:"button",onClick:()=>u(e=>e+6),className:"border-brand-muted/30 text-fg-050 hover:border-brand-solid hover:bg-brand-solid hover:text-brand-on rounded-full border px-6 py-3 text-sm font-medium transition-colors",children:x.Ve.loadMoreLabel})})]})]})})}},34426:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Button:()=>u});var a=r(95155),s=r(98500),i=r.n(s),l=r(38939),n=r(91337);let o={type:"spring",stiffness:320,damping:32,mass:.6},d={type:"spring",stiffness:420,damping:30,mass:.5},c={md:"px-7 py-3.5 font-medium",sm:"px-5 py-2.5 text-sm font-medium"};function u({href:e,children:t,variant:r="primary",size:s="md",className:m,target:x,rel:h,onClick:p,fullWidth:f=!1}){return(0,a.jsx)(l.PY1.div,{whileHover:{y:-4,transition:o},whileTap:{scale:.97,y:0,transition:d},className:f?"block":"inline-block",children:(0,a.jsxs)(i(),{href:e,target:x,rel:h,onClick:p,className:(0,n.cn)("group ease-brand relative inline-flex items-center gap-2 overflow-hidden rounded-full transition-[box-shadow,background-color,border-color,color] duration-300",f&&"w-full justify-center",c[s],"primary"===r?"bg-brand-solid text-brand-on shadow-soft hover:shadow-lift":"text-fg-inverse hover:border-brand-solid hover:bg-brand-solid hover:text-brand-on border border-[rgba(245,244,242,.45)] bg-[rgba(245,244,242,.06)]",m),children:[(0,a.jsx)("span",{className:"relative z-10 inline-flex items-center gap-2",children:t}
1),(0,a.jsx)("span",{"aria-hidden":!0,className:"ease-brand absolute inset-0 -translate-x-full skew-x-12 bg-white/25 transition-transform duration-1000 group-hover:translate-x-full"})]})})}},43771:(e,t,r)=>{Promise.resolve().then(r.bind(r,5361)),Promise.resolve().then(r.bind(r,26398)),Promise.resolve().then(r.bind(r,14195)),Promise.resolve().then(r.bind(r,34426)),Promise.resolve().then(r.bind(r,90209)),Promise.resolve().then(r.t.bind(r,98500,23))},48254:(e,t,r)=>{"use strict";r.d(t,{KP:()=>i,Ve:()=>s,fh:()=>a});let a={badge:"Blog",title:"Recursos sobre marketing digital, sin relleno",subtitle:"SEO, Google Ads, Meta Ads y captaci\xf3n de leads explicados igual de directo que el resto de la web: sin humo ni promesas vac\xedas."},s={placeholder:"Buscar art\xedculos...",allTagsLabel:"Todos",noResultsTitle:"No hay art\xedculos con esos filtros",noResultsBody:"Prueba con otra b\xfasqueda o quita el filtro de categor\xeda.",resetLabel:"Quitar filtros",loadMoreLabel:"Cargar m\xe1s art\xedculos"},i={backLabel:"Volver al blog",readingTimeSuffix:"min de lectura",ctaTitle:"\xbfTienes dudas sobre esto?",ctaBody:"Hablamos directo, sin compromiso.",cta:"Contactar",authorLabel:"Escrito por",tocLabel:"En este art\xedculo",tocMobileHint:"Toca para ir a un apartado",shareLabel:"Compartir",shareCopiedLabel:"Enlace copiado",relatedTitle:"Art\xedculos relacionados",preferredSourceTitle:"\xbfTe ha sido \xfatil este art\xedculo?",preferredSourceBody:"A\xf1ade \xc9chale como fuente preferida en Google y te mostrar\xe1 m\xe1s de nuestros contenidos cuando busques.",preferredSourceCta:"A\xf1adir a fuentes preferidas"}},51811:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(12115),s=r(90209);function i(e,t=[],r=[]){let l,n="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,t,r):e,o=(0,a.forwardRef)(({className:e,...t},r)=>(0,a.createElement)(s.default,{ref:r,icon:n,className:e,...t}));return n.name&&(o.displayName=(l=(e=>{let t="",r=!1;for(let a of e){if("-"===a||"_"===a||a<=" "){r=t.length>0;continue}0===t.length?t+=a.toLowerCase():t+=r?a.toUpperCase():a,r=!1}return t})(n.name)).charAt(0).toUpperCase()+l.slice(1)),o}},59608:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var a=r(95155),s=r(91337);function i({icon:e,children:t,variant:r="light",className:l,as:n="span"}){return(0,a.jsxs)(n,{className:(0,s.cn)("inline-flex items-center gap-2 rounded-full px-3 py-1.5 font-mono text-xs leading-none font-medium","light"===r?"glass text-fg-300":"text-fg-inverse-secondary border border-[rgba(245,244,242,.16)] bg-[rgba(245,244,242,.06)]",l),children:[(0,a.jsx)(e,{size:15,strokeWidth:2,className:"text-brand-solid shrink-0","aria-hidden":!0}),t]})}},65377:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let i=(0,a.A)(s)},81766:(e,t,r)=>{"use strict";r.d(t,{Lg:()=>s,RT:()=>a});let a=i("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),s=i("aslrx9iq","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");function i(e,t){if(void 0===e)throw Error(t);return e}},91337:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var a=r(29722),s=r(622);function i(...e){return(0,s.QP)((0,a.$)(e))}},97651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={default:function(){return c},getImageProps:function(){return d}};for(var s in a)Object.defineProperty(t,s,{enumerable:!0,get:a[s]});let i=r(73623),l=r(95413),n=r(38437),o=i._(r(36095));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=n.Image},98574:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var a=r(95155),s=r(91337);function i({className:e}){return(0,a.jsx)("div",{className:(0,s.cn)("pointer-events-none absolute inset-0 overflow-hidden",e),"aria-hidden":!0,
1children:(0,a.jsx)("div",{className:"aurora-veil"})})}}},e=>{e.O(0,[8500,1874,6311,8437,2068,8441,3794,7358],()=>e(e.s=43771)),_N_E=e.O()}]);

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.