import{j as r,x as v}from"./app-C417rstp.js";import{c as f}from"./index-C9OncgsG.js";import{m as s}from"./proxy-Bepa3l_N.js";function $({p:e,i}){const m="from-primary-50 to-secondary-50",x=o=>o?o.startsWith("http")?o:`/storage/${o}`:"/assets/images/placeholder_card.jpg",a="from-primary-500",t="to-secondary-600",n="text-primary-600",{ref:u,rX:g,rY:h,onMouseMove:b,onMouseLeave:y}=useTilt(6);x(e.fotoTarjeta||e.imagenHero);const l=e.titulo||e.resumen||"",d=e.descripcion||"",c=[e.titulo,e.modalidad,e.duracion].filter(Boolean);return r.jsxs(s.article,{initial:{opacity:0,y:40,scale:.95},whileInView:{opacity:1,y:0,scale:1},transition:{duration:.7,delay:i*.15,ease:[.23,1,.32,1]},viewport:{once:!0,amount:.15},className:"relative h-full",children:[r.jsxs(s.div,{ref:u,style:{rotateX:g,rotateY:h,transformStyle:"preserve-3d"},onMouseMove:b,onMouseLeave:y,className:`group h-full rounded-3xl border-2 border-primary-100/50 dark:border-primary-800/50
                   bg-white dark:bg-primary-950
                   shadow-xl hover:shadow-2xl hover:shadow-primary-500/20
                   transition-all duration-500 will-change-transform overflow-hidden
                   hover:border-primary-200/70 dark:hover:border-primary-700/70`,children:[r.jsxs("div",{className:"relative overflow-hidden",style:{aspectRatio:"1280 / 371"},children:[r.jsx("img",{src:e.fotoTarjeta,alt:e.nombre,className:`h-full w-full object-cover transition-transform duration-700
                     group-hover:scale-110 group-hover:brightness-110`,loading:"lazy"}),r.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${a} ${t}
                       opacity-20 group-hover:opacity-40 transition-all duration-500`}),r.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-500",style:{backgroundImage:"radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px)",backgroundSize:"20px 20px"}}),r.jsx("div",{className:`absolute top-4 right-4 px-4 py-2 rounded-xl
                         backdrop-blur-md bg-white/90 dark:bg-primary-900/90
                         border border-white/50 dark:border-primary-700/50
                         shadow-lg transform transition-all duration-500
                         group-hover:scale-110 group-hover:-translate-y-1`,children:r.jsx("span",{className:`text-xs font-bold ${n} uppercase tracking-wider`,children:"Pregrado"})})]}),r.jsxs("div",{className:"p-6 space-y-4",children:[r.jsxs("div",{children:[r.jsx("h3",{className:`text-xl font-bold bg-gradient-to-r ${a} ${t}
                          bg-clip-text text-transparent group-hover:scale-105
                          transition-transform duration-300 inline-block`,children:e.nombre}),l&&r.jsx("p",{className:"mt-2 text-sm text-primary-700 dark:text-primary-300 font-medium leading-relaxed",children:l}),d&&r.jsx("p",{className:"mt-2 text-sm text-primary-900/60 dark:text-primary-100/60 leading-relaxed",children:d})]}),c.length>0&&r.jsxs("div",{className:"space-y-2 pt-2",children:[r.jsx("p",{className:"text-xs font-semibold text-primary-900/50 dark:text-primary-100/50 uppercase tracking-wider",children:"Información"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:c.map((o,p)=>r.jsx(s.span,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},transition:{delay:i*.15+p*.08},className:`px-3 py-1.5 rounded-lg text-xs font-medium
                            bg-gradient-to-r ${m} dark:from-primary-900/30 dark:to-primary-800/30
                            ${n} border border-current/20
                            hover:scale-105 transition-transform duration-300 cursor-default`,children:o},`${o}-${p}`))})]}),r.jsx("div",{className:"flex flex-wrap gap-3 pt-4",children:r.jsxs(v,{href:route("oferta.pregrado.detalle",e.slug),className:`group/btn flex-1 inline-flex items-center justify-center gap-2
                rounded-xl px-5 py-3 text-sm font-bold text-white
                bg-gradient-to-r ${a} ${t}
                hover:shadow-lg hover:shadow-current/30
                hover:scale-105 active:scale-95
                transition-all duration-300 relative overflow-hidden`,children:[r.jsx("span",{className:"relative z-10",children:"Ver programa"}),r.jsx(f,{className:"relative z-10 group-hover/btn:translate-x-1 transition-transform"}),r.jsx("div",{className:`absolute inset-0 -translate-x-full group-hover/btn:translate-x-full
                  bg-gradient-to-r from-transparent via-white/30 to-transparent
                  transition-transform duration-1000`})]})})]}),r.jsxs("div",{className:`absolute inset-0 rounded-3xl opacity-0 group-hover:opacity-100
                      transition-opacity duration-500 pointer-events-none`,children:[r.jsx("div",{className:`absolute inset-x-0 top-0 h-px bg-gradient-to-r ${a} ${t}`}),r.jsx("div",{className:`absolute inset-y-0 right-0 w-px bg-gradient-to-b ${a} ${t}`}),r.jsx("div",{className:`absolute inset-x-0 bottom-0 h-px bg-gradient-to-l ${a} ${t}`}),r.jsx("div",{className:`absolute inset-y-0 left-0 w-px bg-gradient-to-t ${a} ${t}`})]})]}),r.jsx("div",{"aria-hidden":!0,className:`absolute -inset-1 rounded-3xl blur-3xl opacity-0 group-hover:opacity-30
                    transition-all duration-700 -z-10
                    bg-gradient-to-br ${a} ${t}`})]})}export{$ as default};
