1import{d as m,r as t,j as e,L as p}from"./vendor-5KsvI26F.js";import{a as x,S as d}from"./index-CzIxtFWK.js";import{S as o}from"./SEOHead-aVwYpxul.js";import{A as g}from"./ArticleCard-u4QMRSI2.js";function N(){const[i,a]=t.useState([]),[l,c]=t.useState(!0);return t.useEffect(()=>{x.get("/specials").then(a).catch(()=>{}).finally(()=>c(!1))},[]),l?e.jsx("div",{className:"max-w-7xl mx-auto px-4 lg:px-6 py-8",children:e.jsx(d,{count:3})}):e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Especiales",description:"Series especiales de investigación y análisis"}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 lg:px-6 py-8",children:[e.jsx("h1",{className:"font-heading text-3xl mb-2",children:"Especiales"}),e.jsx("p",{className:"text-ink-secondary mb-8",children:"Series temáticas de investigación y análisis."}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.map(s=>e.jsxs(p,{to:`/especiales/${s.slug}`,className:"group bg-surface border border-rule rounded overflow-hidden",children:[s.coverImage&&e.jsx("img",{src:s.coverImage,alt:s.title,className:"w-full h-48 object-cover"}),e.jsxs("div",{className:"p-5",children:[e.jsx("h3",{className:"font-heading text-xl group-hover:text-accent transition-colors",children:s.title}),s.description&&e.jsx("p",{className:"text-sm text-ink-secondary mt-2 line-clamp-2",children:s.description})]})]},s.id))})]})]})}function v(){var r;const{slug:i}=m(),[a,l]=t.useState(null),[c,s]=t.useState(!0);return t.useEffect(()=>{x.get(`/specials/${i}`).then(l).catch(()=>l(null)).finally(()=>s(!1))},[i]),c?e.jsx("div",{className:"max-w-7xl mx-auto px-4 lg:px-6 py-8",children:e.jsx(d,{count:3})}):a?e.jsxs(e.Fragment,{children:[e.jsx(o,{title:a.title,description:a.description}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 lg:px-6 py-8",children:[e.jsx("h1",{className:"font-heading text-3xl mb-2",children:a.title}),a.description&&e.jsx("p",{className:"text-ink-secondary mb-8 max-w-2xl",children:a.description}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:(r=a.articles)==null?void 0:r.map(n=>e.jsx(g,{article:n},n.id))})]})]}):e.jsx("div",{className:"max-w-7xl mx-auto px-4 lg:px-6 py-16 text-center",children:e.jsx("h1",{className:"font-heading text-2xl",children:"Especial no encontrado"})})}export{v as EspecialDetail,N as EspecialesList};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.