import{r as c,j as e}from"./app-C417rstp.js";import{x as m,y as x,z as h,d as b}from"./index-C9OncgsG.js";import{m as o}from"./proxy-Bepa3l_N.js";function u({linea:t,index:s}){const l=(n=0)=>({initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},transition:{duration:.5,ease:[.22,1,.36,1],delay:n},viewport:{once:!0,amount:.1}}),i=["from-primary-500 to-primary-700","from-secondary-500 to-secondary-700","from-primary-600 to-secondary-600","from-secondary-600 to-primary-600","from-primary-700 to-secondary-500","from-secondary-700 to-primary-500","from-primary-500 to-secondary-700"],[d,a]=c.useState(!1),r=i[s%i.length];return e.jsxs(o.article,{...l(s*.1),onHoverStart:()=>a(!0),onHoverEnd:()=>a(!1),className:"group relative rounded-3xl overflow-hidden bg-white shadow-lg hover:shadow-2xl transition-all duration-500 h-full flex flex-col",children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${r} opacity-0 group-hover:opacity-5 transition-opacity duration-500`}),e.jsxs("div",{className:`relative bg-gradient-to-br ${r} p-8 pb-24 min-h-[220px] sm:min-h-[240px]`,children:[e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("span",{className:`inline-flex items-center gap-2 rounded-full px-4 py-1.5 text-xs font-bold ${t.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:[t.tipo==="Prioritaria"?e.jsx(m,{className:"w-3.5 h-3.5"}):e.jsx(x,{className:"w-3.5 h-3.5"}),t.tipo==="Prioritaria"?"Línea Prioritaria":"Línea de Investigación"]}),e.jsx("div",{className:"text-xs font-semibold text-white/90 bg-white/10 backdrop-blur-sm rounded-full px-3 py-1.5 border border-white/20",children:t.fecha})]}),e.jsx("h3",{className:"text-2xl font-black text-white leading-tight mb-3",children:t.nombre}),e.jsxs("div",{className:"inline-flex items-center gap-2 text-sm font-mono text-white/90 bg-white/10 backdrop-blur-sm rounded-lg px-3 py-1.5 border border-white/20",children:[e.jsx(h,{className:"w-3.5 h-3.5"}),t.codigo]})]}),e.jsx("div",{className:"absolute -bottom-20 -right-20 w-40 h-40 bg-white/10 rounded-full blur-2xl"}),e.jsx("div",{className:"absolute -bottom-10 -right-10 w-32 h-32 bg-white/5 rounded-full blur-xl"})]}),e.jsx("div",{className:"relative -mt-16 px-8 pb-8 flex-1 flex flex-col",children:e.jsxs("div",{className:"relative bg-white rounded-2xl shadow-xl border border-gray-100 p-6 mb-6 flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx("div",{className:`flex-shrink-0 w-10 h-10 rounded-full bg-gradient-to-br ${r} flex items-center justify-center`,children:e.jsx(b,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1 min-w-0",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 leading-snug",children:t.profesor})]})]}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",style:{display:"-webkit-box",WebkitLineClamp:4,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t.descripcion}),e.jsx("div",{className:"mt-auto"})]})}),e.jsx(o.div,{initial:{scaleX:0},animate:{scaleX:d?1:0},transition:{duration:.3},className:`absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r ${r} origin-left`})]})}export{u as default};
