1import{r as B}from"./rolldown-runtime-CXHxssQy.js";import{f as C,l as A,t as k}from"./vendor-core-DLV7unHF.js";import{r as p}from"./vendor-data-gP-SiX90.js";import{r as x}from"./i18n-BHBA6a-T.js";import{Dn as b,Dr as G,Hn as E,Hr as F,Jr as u,Sn as I,Un as S,Yr as $,Zn as j,ai as L,cr as h,qt as N}from"./vendor-ui-HbZeGnVr.js";import"./api-CRGwQGva.js";import{n as f}from"./blog-DStXtse2.js";import{t as _}from"./Layout-C37Fdnqj.js";import{t as D}from"./Breadcrumb-B6tkjLCO.js";import{t as q}from"./SEO-w_hz1TEB.js";var v=B(C(),1),e=A();function M({articleCount:t}){const{t:a}=x();return(0,e.jsxs)("div",{className:"relative overflow-hidden bg-gradient-to-r from-[#1a1a2e] via-[#2d1b3d] to-[#1a1a2e] text-white py-6 md:py-8",children:[(0,e.jsxs)("div",{className:"absolute inset-0 opacity-10",children:[(0,e.jsx)("div",{className:"absolute top-0 left-1/4 w-64 h-64 bg-[#E85A8B] rounded-full blur-3xl"}),(0,e.jsx)("div",{className:"absolute bottom-0 right-1/4 w-48 h-48 bg-[#F5A5C0] rounded-full blur-3xl"})]}),(0,e.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,e.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsx)("div",{className:"hidden sm:flex items-center justify-center w-10 h-10 rounded-xl bg-white/10 backdrop-blur-sm border border-white/10",children:(0,e.jsx)(u,{className:"w-5 h-5 text-[#F5A5C0]"})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"font-serif text-2xl md:text-3xl italic tracking-tight","data-testid":"blog-title",children:a.blog.title}),(0,e.jsx)("p",{className:"text-white/60 text-xs md:text-sm mt-0.5 max-w-md",children:a.blog.subtitle})]})]}),typeof t=="number"&&t>0&&(0,e.jsxs)("div",{className:"hidden md:flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 backdrop-blur-sm border border-white/10","data-testid":"blog-article-count",children:[(0,e.jsx)("span",{className:"text-xl font-bold text-[#F5A5C0]",children:t}),(0,e.jsx)("span",{className:"text-white/70 text-xs",children:a.blog.articleCount})]})]})})]})}var O={all:(0,e.jsx)(S,{className:"w-4 h-4"}),Ciencia:(0,e.jsx)(h,{className:"w-4 h-4"}),Salud:(0,e.jsx)(j,{className:"w-4 h-4"}),Investigación:(0,e.jsx)(b,{className:"w-4 h-4"}),Bienestar:(0,e.jsx)(N,{className:"w-4 h-4"}),GuÃa:(0,e.jsx)(u,{className:"w-4 h-4"}),General:(0,e.jsx)(E,{className:"w-4 h-4"})},P={all:{bg:"bg-pink-50",border:"border-pink-200",text:"text-pink-700",activeBg:"bg-gradient-to-r from-[#E85A8B] to-[#D64077]"},Ciencia:{bg:"bg-indigo-50",border:"border-indigo-200",text:"text-indigo-700",activeBg:"bg-gradient-to-r from-indigo-500 to-indigo-600"},Salud:{bg:"bg-rose-50",border:"border-rose-200",text:"text-rose-700",activeBg:"bg-gradient-to-r from-rose-500 to-rose-600"},Investigación:{bg:"bg-violet-50",border:"border-violet-200",text:"text-violet-700",activeBg:"bg-gradient-to-r from-violet-500 to-violet-600"},Bienestar:{bg:"bg-amber-50",border:"border-amber-200",text:"text-amber-700",activeBg:"bg-gradient-to-r from-amber-500 to-amber-600"},GuÃa:{bg:"bg-emerald-50",border:"border-emerald-200",text:"text-emerald-700",activeBg:"bg-gradient-to-r from-emerald-500 to-emerald-600"},General:{bg:"bg-slate-50",border:"border-slate-200",text:"text-slate-700",activeBg:"bg-gradient-to-r from-slate-500 to-slate-600"}},U={bg:"bg-gray-50",border:"border-gray-200",text:"text-gray-700",activeBg:"bg-gradient-to-r from-gray-500 to-gray-600"};function H({selectedCategory:t,onCategoryChange:a,articleCounts:n}){const{t:r}=x(),s=r.blog.categories,d={all:s.all,Ciencia:s.Ciencia||"Ciencia",Salud:s.Salud||"Salud",Investigación:s.Investigación||"Investigación",Bienestar:s.Bienestar||"Bienestar",GuÃa:s.GuÃa||"GuÃas",General:s.General||"General"},g=Object.entries(d);return(0,e.jsx)("div",{className:"flex gap-2.5 overflow-x-auto pb-4 mb-8 scrollbar-hide","data-testid":"blog-category-filter",children:g.map(([i,l])=>{const c=t===i,o=P[i]||U,y=O[i],m=n?.[i];return(0,e.jsxs)("button",{onClick:()=>a(i),className:` 2 group relative flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-semibold 3 whitespace-nowrap transition-all duration-200 border 4 ${c?`${o.activeBg} text-white border-transparent shadow-md shadow-black/10`:`${o.bg} ${o.text} ${o.border} hover:shadow-sm hover:-translate-y-0.5`} 5 `,"data-testid":`filter-${i}`,children:[(0,e.jsx)("span",{className:`transition-transform duration-200 ${c?"scale-110":"group-hover:scale-110"}`,children:y}),(0,e.jsx)("span",{children:l}),m!==void 0&&m>0&&(0,e.jsx)("span",{className:` 6 inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full text-[11px] font-bold leading-none 7 ${c?"bg-white/25 text-white":"bg-black/5 text-current"} 8 `,"data-testid":`filter-count-${i}`,children:m})]},i)})})}function T(t){return new Date(t).toLocaleDateString("es-ES",{day:"numeric",month:"short",year:"numeric"})}var w={Ciencia:{gradient:"from-indigo-500 via-purple-500 to-fuchsia-500",icon:h,accent:"bg-indigo-500",badge:"bg-indigo-500/90 backdrop-blur-sm"},Investigación:{gradient:"from-violet-600 via-purple-500 to-pink-500",icon:b,accent:"bg-violet-600",badge:"bg-violet-600/90 backdrop-blur-sm"},Salud:{gradient:"from-emerald-400 via-teal-500 to-cyan-500",icon:j,accent:"bg-emerald-500",badge:"bg-emerald-500/90 backdrop-blur-sm"}
8,Bienestar:{gradient:"from-amber-400 via-orange-400 to-rose-400",icon:N,accent:"bg-amber-500",badge:"bg-amber-500/90 backdrop-blur-sm"},GuÃa:{gradient:"from-blue-500 via-cyan-500 to-teal-400",icon:$,accent:"bg-blue-500",badge:"bg-blue-500/90 backdrop-blur-sm"},General:{gradient:"from-[#E85A8B] via-[#F06A9B] to-[#F5A5C0]",icon:I,accent:"bg-[#E85A8B]",badge:"bg-[#E85A8B]/90 backdrop-blur-sm"}},z=w.General;function K(t){return w[t]||z}function R(t){return t==="Ciencia"||t==="Investigación"}function Y({post:t}){const a=K(t.category),n=a.icon,r=R(t.category);return(0,e.jsx)(k,{href:`/blog/${t.slug}`,children:(0,e.jsxs)("article",{className:"bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 group cursor-pointer border border-gray-100/80 hover:border-gray-200 hover:-translate-y-1","data-testid":`blog-post-${t.id}`,children:[(0,e.jsxs)("div",{className:`relative aspect-[16/10] overflow-hidden bg-gradient-to-br ${a.gradient}`,children:[t.imageUrl&&!t.imageUrl.includes("/attached_assets/")?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("img",{src:t.imageUrl,alt:t.title,width:640,height:400,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700 ease-out"}),(0,e.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}):(0,e.jsxs)("div",{className:"w-full h-full flex items-center justify-center relative p-6",children:[(0,e.jsxs)("div",{className:"absolute inset-0 opacity-[0.07]",children:[(0,e.jsx)("div",{className:"absolute -top-6 -left-6 w-32 h-32 rounded-full bg-white blur-2xl"}),(0,e.jsx)("div",{className:"absolute -bottom-4 -right-4 w-40 h-40 rounded-full bg-white blur-3xl"}),(0,e.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-24 h-24 rounded-full bg-white blur-xl"})]}),(0,e.jsx)("span",{className:"absolute top-4 left-5 font-serif text-white/15 text-[72px] leading-none select-none",children:'"'}),(0,e.jsx)("span",{className:"absolute bottom-2 right-5 font-serif text-white/15 text-[72px] leading-none select-none rotate-180",children:'"'}),(0,e.jsx)("div",{className:"absolute bottom-3 right-3",children:(0,e.jsx)(n,{className:"w-7 h-7 text-white/25",strokeWidth:1.5})}),(0,e.jsx)("h3",{className:"font-serif text-white text-center text-lg md:text-xl leading-snug line-clamp-4 drop-shadow-md px-2",style:{fontFamily:"'Playfair Display', serif"},children:t.title})]}),(0,e.jsx)("div",{className:"absolute top-3 left-3 flex items-center gap-2",children:(0,e.jsxs)("span",{className:`${a.badge} text-white text-[11px] font-semibold px-3 py-1 rounded-full shadow-sm flex items-center gap-1.5`,children:[r&&(0,e.jsx)(h,{className:"w-3 h-3"}),t.category]})}),r&&(0,e.jsx)("div",{className:"absolute top-3 right-3",children:(0,e.jsxs)("span",{className:"bg-white/90 backdrop-blur-sm text-indigo-700 text-[10px] font-bold px-2.5 py-1 rounded-full shadow-sm flex items-center gap-1","data-testid":`badge-scientific-${t.id}`,children:[(0,e.jsx)(b,{className:"w-3 h-3"}),"CientÃfico"]})})]}),(0,e.jsxs)("div",{className:"p-5 flex flex-col",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 text-[11px] text-gray-400 mb-3 font-medium tracking-wide uppercase",children:[(0,e.jsxs)("span",{className:"flex items-center gap-1",children:[(0,e.jsx)(F,{className:"w-3 h-3"}),T(t.publishedAt)]}),(0,e.jsx)("span",{className:"w-1 h-1 rounded-full bg-gray-300"}),(0,e.jsxs)("span",{className:"flex items-center gap-1",children:[(0,e.jsx)(G,{className:"w-3 h-3"}),t.readTimeMinutes," min"]})]}),(0,e.jsx)("h2",{className:"font-bold text-gray-900 text-[17px] leading-snug mb-2 line-clamp-2 group-hover:text-[#E85A8B] transition-colors duration-200",children:t.title}),t.excerpt&&(0,e.jsx)("p",{className:"text-gray-500 text-[13px] leading-relaxed line-clamp-2 mb-4",children:t.excerpt}),(0,e.jsxs)("div",{className:"flex items-center text-[#E85A8B] text-sm font-semibold mt-auto pt-2 group-hover:gap-2 transition-all duration-200",children:[(0,e.jsx)(u,{className:"w-4 h-4 mr-1.5"}),"Leer artÃculo",(0,e.jsx)(L,{className:"w-3.5 h-3.5 ml-1 opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-200"})]})]})]})})}function se(){const{t}=x(),[a,n]=(0,v.useState)("all"),{data:r=[]}=p({queryKey:["/api/blog","all"],queryFn:()=>f()}),{data:s=[],isLoading:d,isError:g}=p({queryKey:["/api/blog",a],queryFn:()=>f(a!=="all"?{category:a}:void 0)}),i=(0,v.useMemo)(()=>
8{if(!r.length)return;const l={all:r.length};return r.forEach(c=>{const o=c.category||"General";l[o]=(l[o]||0)+1}),l},[r]);return(0,e.jsxs)(_,{children:[(0,e.jsx)(q,{title:"Blog de Bienestar Ãntimo ãGuÃas Expertas 2026ã | Ignis Love",description:"El blog de Ignis Love es tu fuente experta sobre bienestar Ãntimo y salud sexual en España. GuÃas con referencias cientÃficas, consejos de pareja y análisis de productos actualizados en 2026.",keywords:"blog bienestar Ãntimo, consejos parejas, salud sexual, artÃculos relaciones, guÃas intimidad",url:"/blog",type:"website",breadcrumbs:[{name:"Inicio",url:"/"},{name:"Blog",url:"/blog"}]}),(0,e.jsxs)("div",{className:"min-h-screen bg-[#FDF8FA]",children:[(0,e.jsx)(M,{articleCount:r.length}),(0,e.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,e.jsx)(D,{items:[{name:"Inicio",url:"/"},{name:"Blog",url:"/blog"}],className:"mb-6"}),(0,e.jsx)(H,{selectedCategory:a,onCategoryChange:n,articleCounts:i}),d?(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("div",{className:"animate-spin w-8 h-8 border-4 border-[#E85A8B] border-t-transparent rounded-full mx-auto"}),(0,e.jsx)("p",{className:"text-gray-500 mt-4",children:"Cargando artÃculos..."})]}):g?(0,e.jsx)("div",{className:"text-center py-12",children:(0,e.jsx)("p",{className:"text-red-500 font-medium",children:"No se pudieron cargar los artÃculos. Inténtalo de nuevo más tarde."})}):s.length===0?(0,e.jsx)("div",{className:"text-center py-12",children:(0,e.jsx)("p",{className:"text-gray-500",children:t.blog.noArticles})}):(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.map(l=>(0,e.jsx)(Y,{post:l},l.id))})]})]})]})}export{se as default};
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.