import{j as e,x as b}from"./app-CPVBqm33.js";import{l as g,n as f,m as j,o as p,k as u}from"./index-C-3n-phi.js";import{m as N}from"./proxy-Btka435s.js";function y({p:s,index:m}){var r,i,o,n,d,c,x;const a=s.estado==="En ejecución",l=s.estado==="Propuesta";return e.jsxs(N.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.4,delay:m*.05},className:"group relative bg-white border-2 border-slate-200 hover:border-blue-900 hover:shadow-md transition-all overflow-hidden",children:[e.jsx("div",{className:"p-6 sm:p-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start gap-6",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"flex items-start gap-4 mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-3",children:[e.jsx("h3",{className:"text-xl sm:text-2xl font-serif font-bold text-slate-900 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",a?"bg-blue-50 text-blue-900 border-blue-900":l?"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",children:[e.jsx(g,{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 leading-relaxed mb-6 text-sm sm:text-base font-light border-l-2 border-slate-300 pl-4",children:s.resumen}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6 mb-6",children:[(((r=s.directores)==null?void 0:r.length)>0||((i=s.colaboradores)==null?void 0:i.length)>0)&&e.jsxs("div",{children:[e.jsxs("h4",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider mb-3 flex items-center gap-2",children:[e.jsx(f,{className:"w-4 h-4",strokeWidth:2})," Equipo de Investigación"]}),e.jsxs("div",{className:"space-y-2",children:[(o=s.directores)==null?void 0:o.slice(0,2).map((t,h)=>e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-slate-600 font-light",children:[t.rol,":"]})," ",e.jsx("span",{className:"text-slate-900 font-medium",children:t.nombre})]},`dir-${h}`)),((n=s.directores)==null?void 0:n.length)+(((d=s.colaboradores)==null?void 0:d.length)||0)>2&&e.jsxs("div",{className:"text-xs text-slate-500 font-medium",children:["+",(((c=s.directores)==null?void 0:c.length)||0)+(((x=s.colaboradores)==null?void 0:x.length)||0)-2," colaboradores adicionales"]})]})]}),s.linea&&e.jsxs("div",{children:[e.jsxs("h4",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider mb-3 flex items-center gap-2",children:[e.jsx(j,{className:"w-4 h-4",strokeWidth:2})," Línea de Investigación"]}),e.jsx("span",{className:"inline-flex items-center gap-2 text-sm font-medium px-4 py-2 bg-slate-100 text-slate-800 border border-slate-300",children:s.linea})]})]}),s.ods&&s.ods.length>0&&e.jsxs("div",{className:"pt-6 border-t-2 border-slate-200",children:[e.jsxs("h4",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider mb-3 flex items-center gap-2",children:[e.jsx(p,{className:"w-4 h-4",strokeWidth:2})," Objetivos de Desarrollo Sostenible"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.ods.map(t=>e.jsx("span",{className:"text-xs px-3 py-2 bg-slate-100 text-slate-700 border border-slate-300 font-medium",children:t},t))})]})]}),e.jsx("div",{className:"flex lg:flex-col gap-3 lg:items-end lg:justify-start",children:e.jsxs(b,{href:s.link||`/proyectos/${s.id}`,className:"group/link inline-flex items-center justify-center gap-2 px-6 py-3 bg-blue-900 hover:bg-blue-800 text-white font-medium text-sm transition-all hover:shadow-md whitespace-nowrap uppercase tracking-wide",children:["Ver Detalles",e.jsx(u,{className:"w-4 h-4 group-hover/link:translate-x-1 transition-transform",strokeWidth:2})]})})]})}),e.jsx("div",{className:["absolute left-0 top-0 bottom-0 w-2",a?"bg-blue-900":l?"bg-slate-600":"bg-slate-400"].join(" ")}),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{y as default};
