import{j as e,x as i}from"./app-CPVBqm33.js";import{l as o,m as n,n as d,k as x}from"./index-C-3n-phi.js";import{m as c}from"./proxy-Btka435s.js";function g({p:s,index:r}){const t=s.estado==="En ejecución",a=s.estado==="Propuesta";return e.jsxs(c.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:r*.05},whileHover:{y:-6},className:"group relative border-2 border-slate-200 bg-white hover:border-blue-900 hover:shadow-lg transition-all overflow-hidden",children:[e.jsx("div",{className:["h-2 w-full",t?"bg-blue-900":a?"bg-slate-600":"bg-slate-400"].join(" ")}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-4",children:[e.jsx("h3",{className:"text-xl font-serif font-bold text-slate-900 leading-tight group-hover:text-blue-900 transition-colors",children:s.titulo}),s.estado&&e.jsx("span",{className:["flex-shrink-0 text-xs font-bold px-3 py-1.5 uppercase tracking-wide border-2",t?"bg-blue-50 text-blue-900 border-blue-900":a?"bg-slate-100 text-slate-700 border-slate-400":"bg-slate-50 text-slate-600 border-slate-300"].join(" "),children:s.estado})]}),s.periodo&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-600 mb-4 font-light",children:[e.jsx(o,{className:"w-4 h-4",strokeWidth:1.5}),e.jsx("span",{className:"font-medium",children:s.periodo})]}),s.resumen&&e.jsx("p",{className:"text-slate-700 text-sm leading-relaxed mb-5 line-clamp-3 font-light",children:s.resumen}),s.linea&&e.jsx("div",{className:"mb-4",children:e.jsxs("span",{className:"inline-flex items-center gap-2 text-xs font-medium px-3 py-2 bg-slate-100 text-slate-800 border border-slate-300",children:[e.jsx(n,{className:"w-3.5 h-3.5",strokeWidth:2})," ",s.linea]})}),s.directores&&s.directores.length>0&&e.jsx("div",{className:"mb-5 pb-5 border-b border-slate-200",children:e.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[e.jsx(d,{className:"w-4 h-4 text-slate-500 mt-0.5 flex-shrink-0",strokeWidth:1.5}),e.jsxs("div",{children:[e.jsx("div",{className:"text-slate-900 font-medium",children:s.directores[0].nombre}),s.directores.length>1&&e.jsxs("div",{className:"text-slate-600 text-xs mt-1 font-light",children:["+",s.directores.length-1," colaborador",s.directores.length-1>1?"es":""]})]})]})}),s.ods&&s.ods.length>0&&e.jsxs("div",{className:"flex flex-wrap gap-2 mb-5",children:[s.ods.slice(0,2).map(l=>e.jsx("span",{className:"text-xs px-3 py-1.5 bg-slate-100 text-slate-700 border border-slate-300 font-medium",children:l},l)),s.ods.length>2&&e.jsxs("span",{className:"text-xs px-3 py-1.5 bg-slate-50 text-slate-600 border border-slate-200 font-medium",children:["+",s.ods.length-2]})]}),e.jsxs(i,{href:s.link||`/proyectos/${s.id}`,className:"group/link inline-flex items-center gap-2 text-blue-900 hover:text-blue-800 font-medium text-sm transition-all uppercase tracking-wide",children:["Ver Detalles",e.jsx(x,{className:"w-4 h-4 group-hover/link:translate-x-1 transition-transform",strokeWidth:2})]})]}),e.jsx("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-blue-900 transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left"})]})}export{g as default};
