import{j as e,x as h}from"./app-C417rstp.js";import{n as m}from"./index-C9OncgsG.js";import{u as w}from"./use-reduced-motion-CJ2Omd5R.js";import{m as i}from"./proxy-Bepa3l_N.js";function b({href:n,titleLeft:s="Proyectos",titleRight:o="de Graduación",subtitle:a="Investigación aplicada, innovación y soluciones reales desde DETRI",bgImage:r="/assets/images/epn.png",ctaLabel:l="Ver más",className:d=""}){const t=w(),c=t?{hidden:{opacity:0},show:{opacity:1,transition:{duration:.3}}}:{hidden:{width:0,opacity:0},show:{width:"100%",opacity:1,transition:{duration:1.1,ease:[.17,.84,.44,1],delay:.15}}},p=t?{hidden:{opacity:0,x:0},show:{opacity:1,x:0,transition:{duration:.35}}}:{hidden:{opacity:0,x:-80,skewX:-8},show:{opacity:1,x:0,skewX:0,transition:{type:"spring",stiffness:140,damping:16,delay:.25}}},x=t?{hidden:{opacity:0,x:0},show:{opacity:1,x:0,transition:{duration:.35}}}:{hidden:{opacity:0,x:80,skewX:8},show:{opacity:1,x:0,skewX:0,transition:{type:"spring",stiffness:140,damping:16,delay:.32}}};return e.jsxs("section",{className:`relative overflow-hidden rounded-3xl shadow-2xl ring-1 ring-white/10 ${d}`,"aria-label":"Proyectos de Titulación",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:r,alt:"Fondo Proyectos de Titulación",className:"h-full w-full object-cover object-center",loading:"lazy"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-black/40 to-black/60"}),e.jsx("div",{className:"absolute inset-0 mix-blend-overlay pointer-events-none bg-[radial-gradient(480px_200px_at_10%_8%,rgba(255,255,255,0.08),transparent),radial-gradient(560px_260px_at_90%_92%,rgba(255,255,255,0.06),transparent)]"})]}),e.jsxs("div",{className:"relative mx-auto max-w-7xl px-6 py-16 md:py-24 lg:py-28",children:[e.jsxs(i.div,{initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-100px"},variants:c,className:"relative h-16 md:h-20 rounded-xl bg-secondary/50 backdrop-blur-md ring-1 ring-white/20 overflow-hidden",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-1/3 bg-gradient-to-r from-white/15 to-transparent"}),e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-white/15 to-transparent"}),e.jsxs("div",{className:"absolute inset-0 flex items-center justify-center gap-3 md:gap-5 px-4",children:[e.jsx(i.span,{initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-120px"},variants:p,className:"text-white font-extrabold text-2xl md:text-4xl drop-shadow-[0_2px_8px_rgba(0,0,0,0.45)]",children:s}),e.jsx(i.span,{initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-120px"},variants:x,className:"text-white/95 italic font-semibold text-2xl md:text-4xl drop-shadow-[0_2px_8px_rgba(0,0,0,0.45)]",children:o})]})]}),a&&e.jsx(i.p,{initial:{opacity:0,y:8},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-120px"},transition:{duration:.5,delay:.28},className:"mt-5 md:mt-7 max-w-3xl text-base md:text-lg text-white/90",children:a}),e.jsx(i.div,{initial:{opacity:0,y:8},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-120px"},transition:{duration:.5,delay:.36},className:"mt-8",children:e.jsxs(h,{href:route(n),className:"inline-flex items-center gap-2 rounded-full bg-primary px-5 py-3 text-white font-semibold shadow-lg ring-1 ring-white/10 transition hover:-translate-y-0.5 hover:shadow-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-white/60",children:[l,e.jsx(m,{className:"text-xl"})]})})]}),e.jsx(i.div,{initial:{opacity:0},whileHover:{opacity:1},className:"pointer-events-none absolute inset-0 rounded-3xl ring-2 ring-secondary/40"})]})}export{b as default};
