import{r as l,j as e}from"./app-C417rstp.js";import{A as d,B as m,d as c,k as x,C as h,e as p}from"./index-C9OncgsG.js";import{m as t}from"./proxy-Bepa3l_N.js";import{A as g}from"./index-CIV8c8cT.js";function u({p:s}){const i=s.linea_investigacion??s.lineaInvestigacion,n=s.profesor_a_cargo??s.profesorACargo,[a,o]=l.useState(!1);return e.jsxs(t.article,{...fadeUp(.05),className:"group relative rounded-2xl border border-gray-200 bg-white shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary-500 via-secondary-500 to-primary-500"}),e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-100 bg-gradient-to-br from-gray-50 to-white",children:[e.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-xs font-semibold border ${estadoBadge(s.estado)}`,children:[e.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${s.estado==="Completado"?"bg-secondary-500":"bg-primary-500"}`}),s.estado]}),e.jsxs("div",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-600",children:[e.jsx(d,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:s.ano})]})]}),e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 leading-tight mb-4 group-hover:text-primary-700 transition-colors",children:s.titulo}),e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary-50 text-primary-800 px-3 py-1.5 rounded-lg text-xs font-medium border border-primary-100",children:[e.jsx(m,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:i})]})}),e.jsx("div",{className:"mb-4 pb-4 border-b border-gray-100",children:e.jsxs("div",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx(c,{className:"w-4 h-4 mt-0.5 text-secondary-600 flex-shrink-0"}),e.jsx("span",{className:"font-medium",children:n})]})}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed line-clamp-3 mb-4",children:s.descripcion}),Array.isArray(s.keywords)&&s.keywords.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:s.keywords.map(r=>e.jsx("span",{className:"inline-flex items-center rounded-md bg-gray-50 px-2.5 py-1 text-xs font-medium text-gray-700 border border-gray-200",children:r},r))}),e.jsxs("button",{onClick:()=>o(r=>!r),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-primary-700 hover:text-primary-800 transition-colors group/btn",children:[e.jsx(x,{className:"w-4 h-4"}),e.jsx("span",{children:a?"Ver menos":"Ver más detalles"}),a?e.jsx(h,{className:"w-4 h-4 transition-transform group-hover/btn:-translate-y-0.5"}):e.jsx(p,{className:"w-4 h-4 transition-transform group-hover/btn:translate-y-0.5"})]}),e.jsx(g,{initial:!1,children:a&&e.jsx(t.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.22,1,.36,1]},className:"overflow-hidden",children:e.jsxs("div",{className:"mt-4 rounded-xl border border-primary-100 bg-primary-50/30 p-4",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:"Descripción completa"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:s.descripcion})]})})})]})]})}export{u as default};
