import{j as e}from"./app-C417rstp.js";import{x as o,y as d,z as n,A as x,d as c,n as m}from"./index-C9OncgsG.js";function f({linea:s,index:r}){const i=(a="left",l=0)=>({initial:{opacity:0,x:a==="left"?-40:40},whileInView:{opacity:1,x:0},transition:{duration:.6,ease:[.22,1,.36,1],delay:l},viewport:{once:!0,amount:.2}}),t=gradientColors[r%gradientColors.length];return e.jsx(motion.article,{...i("left",r*.05),className:"group relative rounded-2xl overflow-hidden bg-white shadow-md hover:shadow-xl transition-all duration-300 border border-gray-200",children:e.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.jsxs("div",{className:`relative bg-gradient-to-br ${t} p-6 md:w-64 flex flex-col justify-between`,children:[e.jsxs("div",{children:[e.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-xs font-bold mb-4 ${s.tipo==="Prioritaria"?"bg-white/20 text-white backdrop-blur-sm border border-white/30":"bg-white/10 text-white/90 backdrop-blur-sm border border-white/20"}`,children:[s.tipo==="Prioritaria"?e.jsx(o,{className:"w-3 h-3"}):e.jsx(d,{className:"w-3 h-3"}),s.tipo==="Prioritaria"?"Prioritaria":"Línea"]}),e.jsx("h3",{className:"text-xl font-black text-white leading-tight mb-3",children:s.nombre}),e.jsxs("div",{className:"space-y-2 text-sm text-white/90",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(n,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"font-mono text-xs",children:s.codigo})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"text-xs",children:s.fecha})]})]})]}),e.jsx("div",{className:"absolute -bottom-10 -right-10 w-32 h-32 bg-white/10 rounded-full blur-2xl"})]}),e.jsxs("div",{className:"flex-1 p-6 flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4 pb-4 border-b border-gray-100",children:[e.jsx("div",{className:`flex-shrink-0 w-10 h-10 rounded-full bg-gradient-to-br ${t} flex items-center justify-center`,children:e.jsx(c,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"Investigador Principal"}),e.jsx("div",{className:"text-sm font-bold text-gray-900",children:s.profesor})]})]}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed mb-4",children:s.descripcion})]}),e.jsxs(motion.button,{whileHover:{x:5},className:`self-start inline-flex items-center gap-2 rounded-lg bg-gradient-to-r ${t} px-5 py-2.5 text-sm font-semibold text-white shadow-md hover:shadow-lg transition-shadow group/btn`,children:[e.jsx("span",{children:"Ver más"}),e.jsx(m,{className:"w-4 h-4 transition-transform group-hover/btn:translate-x-1"})]})]})]})})}export{f as default};
