import{j as e,x as l}from"./app-C417rstp.js";import{f as o,k as n,F as d,E as x,c,o as m}from"./index-C9OncgsG.js";import{m as h}from"./proxy-Bepa3l_N.js";function u({p:r,i:a}){const i=r.foto_tarjeta||r.imagen_hero||"/assets/images/postgrado/fallback.jpg",s=r.colorFrom||"from-primary-500",t=r.colorTo||"to-secondary-600";return e.jsxs(h.article,{...fadeUp(a*.06),className:"relative overflow-hidden rounded-3xl border border-primary-100/70 bg-white/70 backdrop-blur-lg shadow-lg hover:shadow-xl transition",children:[e.jsx("div",{className:"absolute left-0 top-0 h-full w-2 bg-gradient-to-b from-primary-400 to-primary-600","aria-hidden":!0}),e.jsx("div",{className:"absolute left-4 top-4 z-10",children:e.jsx("span",{className:"inline-flex items-center rounded-full bg-primary-600/90 text-white text-[10px] uppercase tracking-widest px-3 py-1",children:"POSGRADO"})}),e.jsxs("div",{className:"relative overflow-hidden",style:{aspectRatio:"16 / 6"},children:[e.jsx("img",{src:i,alt:r.nombre,className:"object-cover w-full h-full transition-transform duration-700 hover:scale-[1.03]",loading:"lazy"}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-tr ${s} ${t} opacity-15`})]}),e.jsxs("div",{className:"p-6 md:p-7",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("h3",{className:"text-xl md:text-2xl font-bold text-ink",children:r.nombre}),r.tipo&&e.jsx("span",{className:`shrink-0 inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold text-white bg-gradient-to-r ${s} ${t}`,children:r.tipo})]}),r.resumen&&e.jsx("p",{className:"mt-3 text-sm md:text-[15px] leading-relaxed text-ink/80",children:r.resumen}),e.jsxs("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-3 gap-3 text-[13px]",children:[e.jsxs("div",{className:"flex items-center gap-2 text-ink/70",children:[e.jsx(o,{})," ",r.duracion||"—"]}),e.jsxs("div",{className:"flex items-center gap-2 text-ink/70",children:[e.jsx(n,{})," ",r.modalidad||"—"]}),e.jsxs("div",{className:"flex items-center gap-2 text-ink/70",children:[e.jsx(d,{})," ",r.titulo||"—"]})]}),(r.resolucion||r.resolucion_senescyt)&&e.jsxs("div",{className:"mt-2 text-[12px] text-ink/60",children:["Resolución CES: ",r.resolucion||r.resolucion_senescyt]}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[r.brochure&&e.jsxs("a",{href:r.brochure,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-xl bg-primary-600 text-white px-4 py-2 text-sm font-semibold hover:bg-primary-700",children:["Brochure ",e.jsx(x,{})]}),r.malla&&e.jsxs("a",{href:r.malla,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-xl border border-primary-300 text-ink px-4 py-2 text-sm font-semibold hover:bg-primary-50",children:["Plan de estudios ",e.jsx(c,{})]}),e.jsxs(l,{href:`/oferta/posgrado/${r.slug}`,className:"inline-flex items-center gap-2 rounded-xl bg-gradient-to-r from-primary-600 to-primary-500 text-white px-4 py-2 text-sm font-semibold hover:brightness-110",children:["Conocer más ",e.jsx(m,{})]})]})]})]})}export{u as default};
