1import{r as d,j as e,L as C,h as H,n as J,i as X}from"./vendor-react-BtGqQFvK.js";import{P as W}from"./PageSEO-Cf3GPOjC.js";import{S as Z}from"./ScrollReveal-BY2SVMC2.js";import{S as ee}from"./SeoFAQBlock-BvkyI86l.js";import{F as se}from"./FundaeCreditCalculator-DQpO8Eja.js";import{C as ae}from"./CorporateROICalculator-Byu6V-4S.js";import{ec as z,a9 as te,aF as K,C as oe,Q as D,aU as re,S as M,L as ne,ap as le,u as E,s as ie,V as B,aY as ce,ab as de,Y as me,dr as ue,ei as pe,O as xe}from"./app-shell-CMj3qzLx.js";import{c as he}from"./clipboard-LYCV8Njj.js";import{C as O,t as I,a as F,g as ge}from"./corporateTools-CriUulDg.js";import{a as fe}from"./localizedPaths-BLxW-6Tb.js";import"./App-UtdOfdj1.js";import"./vendor-supabase-PhdYWwdx.js";import"./card-DX6FEdjS.js";import"./vendor-ui-zUh5tm1d.js";import"./vendor-query-CzlW6vM0.js";import"./vendor-i18n-Duo0qcql.js";import"./config-CI13lgno.js";import"./serviceWorker-BdOWgZKc.js";import"./useSiteSettingsCache-CfWB2_oA.js";import"./vendor-utils-BPqL1lCz.js";import"./vendor-motion-D4fhTsRL.js";import"./sv2-iframe-runtime-evNQzxL9.js";import"./pricingCurrency-j7ZhlbGd.js";import"./verticalSlugs-ytWY44Lp.js";const S=m=>new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(Math.max(0,Math.round(m))),L=[{id:"hotmart",name:"Hotmart",fee:.099,perSale:1,monthly:0},{id:"teachable",name:"Teachable Basic",fee:.05,perSale:0,monthly:39},{id:"udemy",name:"Udemy (venta orgánica)",fee:.63,perSale:0,monthly:0},{id:"gumroad",name:"Gumroad",fee:.1,perSale:.5,monthly:0}],be=[{max:500,name:"Starter",price:29},{max:2e3,name:"Growth",price:79},{max:5e3,name:"Pro",price:149},{max:1/0,name:"Enterprise",price:199}],q=d.memo(({isEN:m=!1})=>{const[a,s]=d.useState(3e3),[l,i]=d.useState(150),[g,b]=d.useState("hotmart"),[f,u]=d.useState(300),h=d.useMemo(()=>{const t=L.find(N=>N.id===g)??L[0],c=l>0?a/l:0,x=a*t.fee+c*t.perSale+t.monthly,r=be.find(N=>f<=N.max),j=r.price;return{p:t,sales:c,rivalCost:x,plan:r,klasooCost:j,saving:x-j}},[a,l,g,f]),o=(t,c)=>m?c:t;return e.jsxs("div",{className:"bg-card rounded-2xl border border-border/60 p-6 md:p-8 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(z,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-lg font-bold text-foreground",children:o("Cuánto te cuesta la comisión","What commission really costs you")})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-5",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"text-sm font-medium text-foreground",children:[o("Facturación mensual","Monthly revenue"),": ",e.jsx("strong",{children:S(a)})]}),e.jsx("input",{type:"range",min:300,max:3e4,step:100,value:a,onChange:t=>s(Number(t.target.value)),className:"w-full mt-2 accent-primary","aria-label":o("Facturación mensual","Monthly revenue")})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"text-sm font-medium text-foreground",children:[o("Precio medio del curso","Average course price"),": ",e.jsx("strong",{children:S(l)})]}),e.jsx("input",{type:"range",min:10,max:1e3,step:10,value:l,onChange:t=>i(Number(t.target.value)),className:"w-full mt-2 accent-primary","aria-label":o("Precio medio del curso","Average course price")})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"text-sm font-medium text-foreground",children:[o("Alumnos activos","Active students"),": ",e.jsx("strong",{children:f})]}),e.jsx("input",{type:"range",min:20,max:8e3,step:20,value:f,onChange:t=>u(Number(t.target.value)),className:"w-full mt-2 accent-primary","aria-label":o("Alumnos activos","Active students")})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"text-sm font-medium text-foreground",children:o("Plataforma actual","Current platform")}),e.jsx("select",{value:g,onChange:t=>b(t.target.value),className:"w-full mt-2 rounded-xl border border-border bg-background px-3 py-2 text-sm",children:L.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-5 rounded-xl bg-muted border border-border/60",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:h.p.name}),e.jsx("div",{className:"mt-1 text-3xl font-bold text-foreground",children:S(h.rivalCost)}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[o("al mes en comisiones y cuota","per month in fees and subscription")," ·"," ",Math.round(h.sales)," ",o("ventas","sales")]})]}),e.jsxs("div",{className:"p-5 rounded-xl bg-info-soft border-2 border-primary/25",children:[e.jsxs("div",{className:"text-xs font-semibold uppercase tracking-wider text-primary",children:["Klasoo ",h.plan.name]}),e.jsx("div",{className:"mt-1 text-3xl font-bold text-foreground",children:S(h.klasooCost)}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o("cuota fija · 0 % de comisión","flat subscription · 0% commission")})]}),h.saving>0&&e.jsxs("div",{className:"p-5 rounded-xl bg-success-soft border border-success/30",children:[e.jsxs("div",{className:"flex items-center gap-2 text-success font-bold",children:[e.jsx(te,{className:"w-4 h-4"}),o("Ahorro estimado","Estimated saving")]}),e.jsxs("div",{className:"mt-1 text-2xl font-bold text-foreground",children:[S(h.saving)," / ",o("mes","month")]}),e.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[S(h.saving*12)," ",o("al año","per year")]})]})]})]}),e.jsx("p",{className:"mt-6 text-xs text-muted-foreground leading-relaxed",children:o("Cálculo orientativo con las comisiones publicadas por cada plataforma. No incluye la tarifa de la pasarela de pago (Stripe, PayPalâ¦), que se paga en todos los casos. Verifica siempre los precios vigentes en la web de cada proveedor.","Indicative calculation using each platform's published fees. It excludes payment-provider fees (Stripe, PayPalâ¦), which apply in every case. Always check current pricing on each provider's website.")})]})});q.displayName="CommissionSavingsCalculator";const P=m=>new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(Math.max(0,Math.round(m))),$=[{id:"self",multiplier:1,es:"Curso grabado (autoestudio)",en:"Recorded self-paced course"}
1,{id:"cohort",multiplier:1.9,es:"Cohorte con clases en directo",en:"Live cohort"},{id:"mentoring",multiplier:3.2,es:"Programa con mentorÃa 1:1",en:"1:1 mentoring programme"}],U=[{id:"hobby",multiplier:.7,es:"Interés personal / hobby",en:"Personal interest / hobby"},{id:"skill",multiplier:1,es:"Habilidad profesional concreta",en:"A specific professional skill"},{id:"career",multiplier:1.5,es:"Cambio de trabajo o ascenso",en:"Career change or promotion"},{id:"revenue",multiplier:2.1,es:"Aumentar ingresos del alumno",en:"Increase the student's income"}],G=[{id:"new",multiplier:.75,es:"Empiezo, sin audiencia",en:"Starting out, no audience"},{id:"some",multiplier:1,es:"Audiencia pequeña, algún caso",en:"Small audience, some results"},{id:"known",multiplier:1.4,es:"Referente reconocido del nicho",en:"Recognised niche authority"}],Y=d.memo(({isEN:m=!1})=>{const a=(r,j)=>m?j:r,[s,l]=d.useState(8),[i,g]=d.useState("self"),[b,f]=d.useState("skill"),[u,h]=d.useState("some"),[o,t]=d.useState(40),c=d.useMemo(()=>{const r=$.find(A=>A.id===i),j=U.find(A=>A.id===b),N=G.find(A=>A.id===u),p=22*Math.min(s,10)+9*Math.max(0,s-10),n=Math.max(29,p*r.multiplier*j.multiplier*N.multiplier),v=n*.75,R=n*1.45;return{low:v,center:n,high:R,revenue:n*o,installment:n/3}},[s,i,b,u,o]),x="w-full px-3 py-2.5 rounded-xl border border-border bg-background text-sm text-foreground";return e.jsxs("div",{className:"bg-card rounded-2xl border border-border/60 p-6 md:p-8 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(z,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-lg font-bold text-foreground",children:a("Cuánto cobrar por tu curso","What to charge for your course")})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"text-sm font-semibold text-foreground",children:[a("Horas de contenido","Hours of content"),": ",s," h"]}),e.jsx("input",{type:"range",min:1,max:60,value:s,onChange:r=>l(Number(r.target.value)),className:"w-full mt-3 accent-primary","aria-label":a("Horas de contenido","Hours of content")})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"text-sm font-semibold text-foreground",children:[a("Alumnos esperados al año","Expected students per year"),": ",o]}),e.jsx("input",{type:"range",min:5,max:1e3,step:5,value:o,onChange:r=>t(Number(r.target.value)),className:"w-full mt-3 accent-primary","aria-label":a("Alumnos esperados al año","Expected students per year")})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground mb-2 block",children:a("Formato","Format")}),e.jsx("select",{value:i,onChange:r=>g(r.target.value),className:x,children:$.map(r=>e.jsx("option",{value:r.id,children:m?r.en:r.es},r.id))})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground mb-2 block",children:a("Resultado que promete","Promised outcome")}),e.jsx("select",{value:b,onChange:r=>f(r.target.value),className:x,children:U.map(r=>e.jsx("option",{value:r.id,children:m?r.en:r.es},r.id))})]}),e.jsxs("label",{className:"block md:col-span-2",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground mb-2 block",children:a("Tu autoridad en el nicho","Your authority in the niche")}),e.jsx("select",{value:u,onChange:r=>h(r.target.value),className:x,children:G.map(r=>e.jsx("option",{value:r.id,children:m?r.en:r.es},r.id))})]})]}),e.jsxs("div",{className:"mt-7 p-6 rounded-2xl bg-info-soft",children:[e.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-primary mb-2 flex items-center gap-1.5",children:[e.jsx(K,{className:"w-3.5 h-3.5"}),a("Rango de precio recomendado","Recommended price range")]}),e.jsxs("p",{className:"text-3xl md:text-4xl font-bold text-foreground",children:[P(c.low)," â ",P(c.high)]}),e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:[a("Precio de referencia","Reference price"),": ",e.jsx("strong",{children:P(c.center)})," ·"," ",a("3 plazos de","3 instalments of")," ",P(c.installment)]}),e.jsxs("p",{className:"mt-4 text-sm text-foreground",children:[a("Con","With")," ",o," ",a("alumnos al año facturarÃas","students a year you would bill")," ",e.jsx("strong",{children:P(c.revenue)})," ",a("(0 % de comisión en Klasoo).","(0% platform fees on Klasoo).")]})]})]})});Y.displayName="CoursePriceCalculator";const T={klasoo:{name:"Klasoo",es:"Todo-en-uno en español: cursos, membresÃas, comunidad, web con IA, pagos con IVA y 0 % de comisión.",en:"All-in-one: courses, memberships, community, AI website, EU-compliant payments and 0% fees."},moodle:{name:"Moodle",esPath:"/es/alternativas/moodle",enPath:"/en/alternatives/moodle",es:"Potente para centros formales, pero requiere hosting, mantenimiento y no vende por sà solo.",en:"Powerful for formal institutions, but needs hosting, maintenance and does not sell on its own."},thinkific:{name:"Thinkific",esPath:"/es/alternativas/thinkific",enPath:"/en/alternatives/thinkific",es:"Bien para cursos sueltos en inglés; flojo en facturación europea y marketing nativo.",en:"Good for standalone courses; weaker on EU invoicing and native marketing."},skool:{name:"Skool",esPath:"/es/alternativas/skool",enPath:"/en/alternatives/skool",es:"Centrado en comunidad y gamificación; muy limitado como campus y como tienda.",en:"Community and gamification first; very limited as a campus or a storefront."}
1,kajabi:{name:"Kajabi",esPath:"/es/alternativas/kajabi",enPath:"/en/alternatives/kajabi",es:"Completo pero caro y en inglés, sin IVA europeo automático ni soporte local.",en:"Complete but expensive, English-only support and no automatic EU VAT."},udemy:{name:"Udemy",esPath:"/es/alternativas/udemy",enPath:"/en/alternatives/udemy",es:"Marketplace con audiencia propia, pero el alumno no es tuyo y el reparto deja poco margen.",en:"Marketplace with built-in audience, but the student is not yours and margins are thin."}},w=[{es:"¿Qué vas a vender principalmente?",en:"What will you mainly sell?",options:[{es:"Cursos grabados",en:"Recorded courses",scores:{klasoo:2,thinkific:2,kajabi:1,udemy:1}},{es:"MembresÃa o suscripción",en:"Membership or subscription",scores:{klasoo:3,kajabi:2,skool:2}},{es:"Comunidad y acompañamiento",en:"Community and coaching",scores:{klasoo:2,skool:3,kajabi:1}},{es:"Formación para empresas",en:"Corporate training",scores:{klasoo:3,moodle:3}}]},{es:"¿Dónde están tus alumnos?",en:"Where are your students?",options:[{es:"España o Latinoamérica",en:"Spain or Latin America",scores:{klasoo:3,udemy:1}},{es:"Mercado anglosajón",en:"English-speaking market",scores:{kajabi:2,thinkific:2,skool:1,klasoo:1}},{es:"Mixto / internacional",en:"Mixed / international",scores:{klasoo:2,kajabi:1,thinkific:1}}]},{es:"¿Necesitas facturación con IVA europeo y contabilidad?",en:"Do you need EU VAT invoicing and accounting?",options:[{es:"SÃ, imprescindible",en:"Yes, essential",scores:{klasoo:3,moodle:-1,thinkific:-1,kajabi:-1}},{es:"No, lo llevo por fuera",en:"No, I handle it elsewhere",scores:{thinkific:1,kajabi:1,skool:1}}]},{es:"¿Cuánto quieres tocar la parte técnica?",en:"How much technical work do you want?",options:[{es:"Nada: que funcione solo",en:"None: it should just work",scores:{klasoo:3,kajabi:2,skool:2,thinkific:1}},{es:"Algo, si gano control",en:"Some, if I gain control",scores:{klasoo:1,thinkific:1,moodle:1}},{es:"Todo: quiero self-hosted",en:"All of it: I want self-hosted",scores:{moodle:3}}]},{es:"¿Te importa pagar comisión por venta?",en:"Do you mind paying per-sale commission?",options:[{es:"SÃ, quiero 0 % de comisión",en:"Yes, I want 0% fees",scores:{klasoo:3,moodle:1,udemy:-2}},{es:"No, si me traen alumnos",en:"No, if they bring students",scores:{udemy:3}}]},{es:"¿Necesitas web, landings y email marketing?",en:"Do you need a website, landing pages and email marketing?",options:[{es:"SÃ, todo dentro",en:"Yes, all built in",scores:{klasoo:3,kajabi:2}},{es:"Ya tengo web propia",en:"I already have a website",scores:{thinkific:1,skool:1,moodle:1,klasoo:1}}]}],V=d.memo(({isEN:m=!1})=>{const a=(o,t)=>m?t:o,[s,l]=d.useState(()=>w.map(()=>null)),i=s.filter(o=>o!==null).length,g=i===w.length,b=d.useMemo(()=>{const o={};return s.forEach((t,c)=>{if(t===null)return;const x=w[c].options[t];Object.entries(x.scores).forEach(([r,j])=>{o[r]=(o[r]??0)+j})}),Object.keys(T).map(t=>({id:t,score:o[t]??0})).sort((t,c)=>c.score-t.score)},[s]),f=(o,t)=>l(c=>c.map((x,r)=>r===o?t:x)),u=b[0],h=b.slice(1,3);return e.jsxs("div",{className:"bg-card rounded-2xl border border-border/60 p-6 md:p-8 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 mb-6",children:[e.jsx("h2",{className:"text-lg font-bold text-foreground",children:a("6 preguntas, una recomendación","6 questions, one recommendation")}),e.jsxs("span",{className:"text-xs font-semibold text-muted-foreground shrink-0",children:[i,"/",w.length]})]}),e.jsx("div",{className:"h-1.5 rounded-full bg-muted overflow-hidden mb-8",children:e.jsx("div",{className:"h-full bg-primary transition-all duration-500",style:{width:`${i/w.length*100}%`}})}),e.jsx("ol",{className:"space-y-7",children:w.map((o,t)=>e.jsxs("li",{children:[e.jsxs("p",{className:"text-sm font-bold text-foreground mb-3",children:[t+1,". ",m?o.en:o.es]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:o.options.map((c,x)=>{const r=s[t]===x;return e.jsx("button",{type:"button",onClick:()=>f(t,x),className:`px-4 py-2 rounded-full text-sm font-semibold border transition-colors ${r?"bg-primary text-primary-foreground border-primary":"bg-background text-foreground border-border hover:border-primary/50"}`,children:m?c.en:c.es},c.es)})})]},o.es))}),g&&e.jsxs("div",{className:"mt-9 p-6 rounded-2xl bg-info-soft",children:[e.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-primary mb-2 flex items-center gap-1.5",children:[e.jsx(oe,{className:"w-3.5 h-3.5"}),a("Tu resultado","Your result")]}),e.jsx("h3",{className:"text-2xl font-bold text-foreground",children:T[u.id].name}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:m?T[u.id].en:T[u.id].es}),e.jsx("div",{className:"mt-5 grid gap-3 sm:grid-cols-2",children:h.map(o=>{const t=T[o.id],c=m?t.enPath:t.esPath,x=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm font-bold text-foreground",children:t.name}),e.jsx("span",{className:"mt-1 block text-xs text-muted-foreground leading-relaxed",children:m?t.en:t.es})]});return c?e.jsx(C,{to:c,className:"p-4 rounded-xl bg-card border border-border/60 hover:border-primary/40 transition-colors",children:x},o.id):e.jsx("div",{className:"p-4 rounded-xl bg-card border border-border/60",children:x},o.id)})}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[e.jsxs(C,{to:m?"/en/pricing":"/es/precios",className:"inline-flex items-center gap-1.5 px-5 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold hover:opacity-90 transition-opacity",children:[a("Ver planes de Klasoo","See Klasoo pricing"),e.jsx(D,{className:"w-4 h-4"})]}),e.jsxs("button",{type:"button",onClick:()=>l(w.map(()=>null)),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-primary",children:[e.jsx(re,{className:"w-4 h-4"}),a("Repetir el test","Retake the quiz")]})]})]})]})});V.displayName="PlatformFitQuiz";const Q=d.memo(({isEN:m=!1})=>{const a=(p,n)=>m?n:p,[s,l]=d.useState(""),[i,g]=d.useState(""),[b,f]=d.useState(10),[u,h]=d.useState("principiante"),[o,t]=d.useState(!1),[c,x]=d.useState(null),r="w-full px-3 py-2.5 rounded-xl border border-border bg-background text-sm text-foreground",j=async()=>
1{if(s.trim().length<3){E.error(a("Escribe el tema del curso","Enter the course topic"));return}t(!0),x(null);try{const{data:p,error:n}=await ie.functions.invoke("public-syllabus-generator",{body:{topic:s,audience:i,hours:b,level:u,lang:m?"en":"es"}});if(n)throw n;const v=p?.syllabus;if(!v?.modules?.length)throw new Error("empty");x(v)}catch{E.error(a("No hemos podido generar el temario. Inténtalo de nuevo en unos minutos.","We couldn't generate the syllabus. Please try again in a few minutes."))}finally{t(!1)}},N=async()=>{if(!c)return;const p=[c.title??"",c.summary??"","",...(c.modules??[]).map((n,v)=>`${v+1}. ${n.title}${n.hours?` (${n.hours} h)`:""} 2`+(n.lessons??[]).map(R=>` - ${R}`).join(` 3`))].join(` 4`);await he(p),E.success(a("Temario copiado","Syllabus copied"))};return e.jsxs("div",{className:"bg-card rounded-2xl border border-border/60 p-6 md:p-8 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(M,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-lg font-bold text-foreground",children:a("Genera el temario de tu curso","Generate your course syllabus")})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("label",{className:"block md:col-span-2",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground mb-2 block",children:a("Tema del curso","Course topic")}),e.jsx("input",{value:s,onChange:p=>l(p.target.value),maxLength:160,placeholder:a("Ej: FotografÃa de producto con móvil","e.g. Product photography with a phone"),className:r})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground mb-2 block",children:a("Público al que va dirigido","Target audience")}),e.jsx("input",{value:i,onChange:p=>g(p.target.value),maxLength:160,placeholder:a("Ej: pequeños ecommerce","e.g. small ecommerce owners"),className:r})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground mb-2 block",children:a("Nivel","Level")}),e.jsxs("select",{value:u,onChange:p=>h(p.target.value),className:r,children:[e.jsx("option",{value:"principiante",children:a("Principiante","Beginner")}),e.jsx("option",{value:"intermedio",children:a("Intermedio","Intermediate")}),e.jsx("option",{value:"avanzado",children:a("Avanzado","Advanced")})]})]}),e.jsxs("label",{className:"block md:col-span-2",children:[e.jsxs("span",{className:"text-sm font-semibold text-foreground",children:[a("Duración total","Total length"),": ",b," h"]}),e.jsx("input",{type:"range",min:1,max:60,value:b,onChange:p=>f(Number(p.target.value)),className:"w-full mt-3 accent-primary","aria-label":a("Duración total","Total length")})]})]}),e.jsxs("button",{type:"button",onClick:j,disabled:o,className:"mt-6 inline-flex items-center gap-2 px-6 py-3 rounded-full bg-primary text-primary-foreground text-sm font-semibold hover:opacity-90 transition-opacity disabled:opacity-60",children:[o?e.jsx(ne,{className:"w-4 h-4 animate-spin"}):e.jsx(M,{className:"w-4 h-4"}),o?a("Generandoâ¦","Generatingâ¦"):a("Generar temario","Generate syllabus")]}),c&&e.jsxs("div",{className:"mt-8 p-6 rounded-2xl bg-info-soft",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-foreground",children:c.title}),c.summary&&e.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:c.summary})]}),e.jsx("button",{type:"button",onClick:N,title:a("Copiar temario","Copy syllabus"),"aria-label":a("Copiar temario","Copy syllabus"),className:"shrink-0 p-2 rounded-lg bg-card border border-border/60 hover:border-primary/40 transition-colors",children:e.jsx(le,{className:"w-4 h-4 text-primary"})})]}),e.jsx("ol",{className:"mt-6 space-y-5",children:(c.modules??[]).map((p,n)=>e.jsxs("li",{className:"p-4 rounded-xl bg-card border border-border/60",children:[e.jsxs("p",{className:"text-sm font-bold text-foreground",children:[n+1,". ",p.title,p.hours?e.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:[p.hours," h"]}):null]}),!!p.lessons?.length&&e.jsx("ul",{className:"mt-2 space-y-1",children:p.lessons.map(v=>e.jsxs("li",{className:"text-sm text-muted-foreground flex gap-2",children:[e.jsx("span",{className:"text-primary",children:"·"}),v]},v))}),p.outcome&&e.jsx("p",{className:"mt-2 text-xs text-muted-foreground italic",children:p.outcome})]},`${p.title}-${n}`))}),e.jsxs(C,{to:"/register",className:"mt-6 inline-flex items-center gap-1.5 px-5 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold hover:opacity-90 transition-opacity",children:[a("Crear este curso en Klasoo","Build this course in Klasoo"),e.jsx(D,{className:"w-4 h-4"})]})]})]})});Q.displayName="SyllabusGenerator";const y=1600,k=1131,ye=[{id:"classic",es:"Clásico",en:"Classic"},{id:"modern",es:"Moderno",en:"Modern"},{id:"minimal",es:"Minimalista",en:"Minimal"}],je=["#4091FF","#7C3AED","#059669","#DC2626","#B45309","#0F172A"];function Ne(m,a){const s=m.getContext("2d");if(!s)return;const{name:l,course:i,org:g,date:b,style:f,accent:u,isEN:h}=a;s.fillStyle=f==="modern"?"#0F172A":"#FFFFFF",s.fillRect(0,0,y,k);
4const o=f==="modern",t=o?"#F8FAFC":"#0F172A",c=o?"#94A3B8":"#64748B";f==="classic"?(s.strokeStyle=u,s.lineWidth=10,s.strokeRect(40,40,y-80,k-80),s.lineWidth=2,s.strokeRect(64,64,y-128,k-128)):f==="modern"?(s.fillStyle=u,s.fillRect(0,0,28,k),s.fillRect(y-28,0,28,k),s.globalAlpha=.08,s.beginPath(),s.arc(y-180,180,320,0,Math.PI*2),s.fill(),s.globalAlpha=1):(s.strokeStyle=u,s.lineWidth=3,s.beginPath(),s.moveTo(y/2-220,150),s.lineTo(y/2+220,150),s.stroke()),s.textAlign="center",s.fillStyle=c,s.font="600 34px 'Plus Jakarta Sans', Arial, sans-serif",s.fillText(g.toUpperCase(),y/2,f==="minimal"?130:170),s.fillStyle=u,s.font="800 84px 'Plus Jakarta Sans', Arial, sans-serif",s.fillText(h?"Certificate of Completion":"Certificado de Finalización",y/2,320),s.fillStyle=c,s.font="400 30px Arial, sans-serif",s.fillText(h?"This certificate is awarded to":"Se otorga el presente certificado a",y/2,420),s.fillStyle=t,s.font="italic 700 96px Georgia, 'Times New Roman', serif";const x=l.length>24?64:l.length>16?80:96;s.font=`italic 700 ${x}px Georgia, 'Times New Roman', serif`,s.fillText(l,y/2,570),s.strokeStyle=u,s.lineWidth=2,s.beginPath(),s.moveTo(y/2-340,610),s.lineTo(y/2+340,610),s.stroke(),s.fillStyle=c,s.font="400 30px Arial, sans-serif",s.fillText(h?"for successfully completing the course":"por completar satisfactoriamente el curso",y/2,690),s.fillStyle=t,s.font="700 52px 'Plus Jakarta Sans', Arial, sans-serif";const r=i.length>40?38:52;s.font=`700 ${r}px 'Plus Jakarta Sans', Arial, sans-serif`,s.fillText(i,y/2,770),s.fillStyle=c,s.font="400 28px Arial, sans-serif",s.fillText(b,y/2,880);const j=y-240,N=k-200;s.strokeStyle=u,s.lineWidth=4,s.beginPath(),s.arc(j,N,78,0,Math.PI*2),s.stroke(),s.lineWidth=2,s.beginPath(),s.arc(j,N,62,0,Math.PI*2),s.stroke(),s.fillStyle=u,s.font="700 20px Arial, sans-serif",s.fillText(h?"CERTIFIED":"CERTIFICADO",j,N+7),s.fillStyle=o?"rgba(148,163,184,0.5)":"rgba(100,116,139,0.55)",s.font="400 20px Arial, sans-serif",s.textAlign="right",s.fillText(h?"Created free with klasoo.com":"Creado gratis con klasoo.com",y-60,k-48)}const _=d.memo(({isEN:m=!1})=>{const a=(n,v)=>m?v:n,s=d.useRef(null),[l,i]=d.useState(a("MarÃa GarcÃa","Jane Smith")),[g,b]=d.useState(a("Marketing Digital Avanzado","Advanced Digital Marketing")),[f,u]=d.useState(a("Tu Academia","Your Academy")),[h,o]=d.useState(()=>new Date().toLocaleDateString(m?"en-GB":"es-ES",{day:"numeric",month:"long",year:"numeric"})),[t,c]=d.useState("classic"),[x,r]=d.useState("#4091FF");d.useEffect(()=>{const n=s.current;n&&Ne(n,{name:l,course:g,org:f,date:h,style:t,accent:x,isEN:m})},[l,g,f,h,t,x,m]);const j=()=>{const n=s.current;if(!n)return;const v=document.createElement("a");v.download=`${a("certificado","certificate")}-${l.toLowerCase().replace(/\s+/g,"-")}.png`,v.href=n.toDataURL("image/png"),v.click()},N="w-full px-4 py-3 rounded-xl border border-border bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-primary/40",p="block text-xs font-bold uppercase tracking-wider text-muted-foreground mb-1.5";return e.jsxs("div",{className:"rounded-2xl bg-card border border-border/60 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(B,{className:"w-5 h-5 text-primary"}),e.jsx("span",{className:"text-sm font-bold text-foreground",children:a("Personaliza y descarga tu certificado","Customise and download your certificate")})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:p,children:a("Nombre del alumno","Student name")}),e.jsx("input",{className:N,value:l,onChange:n=>i(n.target.value),maxLength:48})]}),e.jsxs("div",{children:[e.jsx("label",{className:p,children:a("Curso","Course")}),e.jsx("input",{className:N,value:g,onChange:n=>b(n.target.value),maxLength:70})]}),e.jsxs("div",{children:[e.jsx("label",{className:p,children:a("Academia / organización","Academy / organisation")}),e.jsx("input",{className:N,value:f,onChange:n=>u(n.target.value),maxLength:40})]}),e.jsxs("div",{children:[e.jsx("label",{className:p,children:a("Fecha","Date")}),e.jsx("input",{className:N,value:h,onChange:n=>o(n.target.value),maxLength:40})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[e.jsx("div",{className:"flex gap-2",children:ye.map(n=>e.jsx("button",{onClick:()=>c(n.id),className:`px-4 py-2 rounded-full text-xs font-bold border transition-colors ${t===n.id?"bg-primary text-primary-foreground border-primary":"bg-background text-muted-foreground border-border hover:border-primary/50"}`,children:m?n.en:n.es},n.id))}),e.jsx("div",{className:"flex gap-2 items-center ml-auto",children:je.map(n=>e.jsx("button",{"aria-label":n,onClick:()=>r(n),className:`w-7 h-7 rounded-full border-2 transition-transform ${x===n?"border-foreground scale-110":"border-transparent"}`,style:{backgroundColor:n}},n))})]}),e.jsx("div",{className:"rounded-xl overflow-hidden border border-border shadow-lg mb-6",children:e.jsx("canvas",{ref:s,width:y,height:k,className:"w-full h-auto block"})}),e.jsxs("button",{onClick:j,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-primary text-primary-foreground text-sm font-bold hover:opacity-90 transition-opacity",children:[e.jsx(ce,{className:"w-4 h-4"}),a("Descargar certificado (PNG)","Download certificate (PNG)")]}),e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:a("Todo se genera en tu navegador: ningún dato sale de tu dispositivo.","Everything is generated in your browser: no data leaves your device.")})]})});_.displayName="CertificateGenerator";const ve={"badge-euro":pe,percent:ue,"trending-up":me,tag:K,compass:de,sparkles:M,award:B},ke=d.memo(()=>{const a=H().pathname.startsWith("/en"),s=a?"Free tools for course creators":"Herramientas gratuitas para academias online",l=a?"Free calculators for online course businesses: FUNDAE training credit, platform fees and revenue forecasting.":"Calculadoras gratuitas para academias online: crédito FUNDAE, comisiones de plataformas y previsión de ingresos.";return e.jsxs(e.Fragment,{children:[e.jsx(W,{title:s,description:l,path:F(a),locale:a?"en_US":"es_ES",jsonLd:{"@context":"https://schema.org","@type":"ItemList",name:s,itemListElement:O.map((i,g)=>({"@type":"ListItem",position:g+1,name:(a?i.en:i.es).title,url:`https://klasoo.com${I(a,i)}`}))},alternates:[{hreflang:"es",href:"/es/herramientas"},{hreflang:"en",href:"/en/tools"},{hreflang:"x-default",href:"/es/herramientas"}]}),e.jsx("section",{className:"pt-28 pb-12 md:pt-36 md:pb-14 bg-card",children:e.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:e.jsxs(Z,{children:[e.jsx("p",{className:"text-xs font-bold tracking-[0.18em] uppercase text-primary mb-4",children:a?"Free tools":"Herramientas gratuitas"}),e.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-foreground leading-[1.1] tracking-tight",children:s}),e.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed max-w-2xl",children:l})]})})}),e.jsx("section",{className:"bg-muted py-14 md:py-20",children:e.jsx("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 grid gap-6 md:grid-cols-2",children:O.map(i=>{const g=a?i.en:i.es,b=ve[i.icon];return e.jsxs(C,{to:I(a,i),className:"group p-7 md:p-8 bg-card rounded-2xl border border-border/60 hover:border-primary/40 hover:shadow-lg transition-all",children:[e.jsx("div",{className:"w-11 h-11 rounded-xl bg-info-soft flex items-center justify-center mb-5",children:e.jsx(b,{className:"w-5 h-5 text-primary"})}),e.jsx("h2",{className:"corp-tool-card-title font-bold text-foreground group-hover:text-primary transition-colors",children:g.heading}),e.jsx("p",{className:"mt-3 text-sm text-muted-foreground leading-relaxed",children:g.description}),e.jsxs("span",{className:"mt-5 inline-flex items-center gap-1.5 text-sm font-semibold text-primary",children:[a?"Open tool":"Abrir herramienta",e.jsx(D,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]},i.esSlug)}
4)})})]})});ke.displayName="CorporateToolsIndex";const we=d.memo(()=>{const{slug:m}=J(),s=H().pathname.startsWith("/en"),l=ge(m);if(d.useEffect(()=>{window.scrollTo(0,0)},[m]),!l)return e.jsx(X,{to:F(s),replace:!0});const i=s?l.en:l.es,g=I(s,l),b=`https://klasoo.com${g}`,f=[{"@context":"https://schema.org","@type":"SoftwareApplication",name:i.title,description:i.description,url:b,applicationCategory:"BusinessApplication",operatingSystem:"Web",inLanguage:s?"en":"es",offers:{"@type":"Offer",price:"0",priceCurrency:"EUR"},publisher:{"@type":"Organization",name:"Klasoo",url:"https://klasoo.com"}},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Klasoo",item:`https://klasoo.com${s?"/en":"/es"}`},{"@type":"ListItem",position:2,name:s?"Tools":"Herramientas",item:`https://klasoo.com${F(s)}`},{"@type":"ListItem",position:3,name:i.heading,item:b}]}];return e.jsxs(e.Fragment,{children:[e.jsx(W,{title:`${i.title} | Klasoo`,description:i.description,path:g,keywords:i.keywords,locale:s?"en_US":"es_ES",jsonLd:f,alternates:[{hreflang:"es",href:`/es/herramientas/${l.esSlug}`},{hreflang:"en",href:`/en/tools/${l.enSlug}`},{hreflang:"x-default",href:`/es/herramientas/${l.esSlug}`}]}),e.jsx("section",{className:"pt-28 pb-10 md:pt-36 md:pb-12 bg-card",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:[e.jsxs("nav",{"aria-label":"breadcrumb",className:"text-xs text-muted-foreground mb-5",children:[e.jsx(C,{to:F(s),className:"hover:text-primary",children:s?"Tools":"Herramientas"}),e.jsx("span",{className:"mx-2",children:"/"}),e.jsx("span",{className:"text-foreground",children:i.heading})]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-foreground leading-[1.1] tracking-tight",children:i.heading}),e.jsx("p",{className:"mt-5 text-lg text-muted-foreground leading-relaxed max-w-2xl",children:i.intro})]})}),e.jsx("section",{className:"bg-muted py-10 md:py-14",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:[l.component==="fundae"&&e.jsx(se,{isEN:s}),l.component==="commissions"&&e.jsx(q,{isEN:s}),l.component==="roi"&&e.jsx(ae,{}),l.component==="price"&&e.jsx(Y,{isEN:s}),l.component==="quiz"&&e.jsx(V,{isEN:s}),l.component==="syllabus"&&e.jsx(Q,{isEN:s}),l.component==="certificate"&&e.jsx(_,{isEN:s}),e.jsxs("div",{className:"mt-8 p-6 rounded-2xl bg-card border border-border/60",children:[e.jsxs("h2",{className:"flex items-center gap-2 text-sm font-bold text-foreground mb-3",children:[e.jsx(xe,{className:"w-4 h-4 text-primary"}),s?"How this is calculated":"Cómo se calcula"]}),e.jsx("ul",{className:"space-y-2",children:i.notes.map(u=>e.jsxs("li",{className:"text-sm text-muted-foreground leading-relaxed flex gap-2",children:[e.jsx("span",{className:"text-primary",children:"·"}),u]},u))})]})]})}),e.jsx(ee,{items:i.faqs,heading:s?"Frequently asked questions":"Preguntas frecuentes",subheading:i.heading}),e.jsx("section",{className:"bg-card py-12 md:py-16 border-t border-border/50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:[e.jsx("h2",{className:"text-lg font-bold text-foreground mb-6",children:s?"Other free tools":"Otras herramientas gratuitas"}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[O.filter(u=>u.esSlug!==l.esSlug).map(u=>e.jsx(C,{to:I(s,u),className:"px-5 py-2.5 text-sm font-semibold text-primary bg-info-soft rounded-full hover:bg-primary hover:text-primary-foreground transition-colors",children:(s?u.en:u.es).heading},u.esSlug)),e.jsx(C,{to:fe(s,"precios"),className:"px-5 py-2.5 text-sm font-semibold text-primary bg-info-soft rounded-full hover:bg-primary hover:text-primary-foreground transition-colors",children:s?"Klasoo pricing":"Precios de Klasoo"})]})]})})]})});we.displayName="CorporateTool";export{ke as CorporateToolsIndex,we as default};
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.