import{j as e}from"./jsx-runtime.u17CrQMm.js";import{r as c}from"./index.CO9X3OiW.js";function m({items:o}){const[n,a]=c.useState(null);return e.jsx("div",{children:o.map((s,t)=>{const r=n===t;return e.jsxs("div",{className:`border-b border-cream-200 transition-colors duration-300 ${r?"bg-cream-100":"bg-transparent hover:bg-cream-50"}`,children:[e.jsxs("button",{onClick:()=>a(r?null:t),className:"w-full flex items-center justify-between py-7 px-6 text-left cursor-pointer group",children:[e.jsx("h3",{className:`font-display text-2xl md:text-3xl font-light leading-snug pr-6 transition-colors duration-300
                ${r?"text-cream-900":"text-cream-800 group-hover:text-cream-900"}`,children:s.titulo}),e.jsx("span",{className:`shrink-0 w-7 h-7 flex items-center justify-center border rounded-full
                transition-all duration-300
                ${r?"border-cream-400 text-cream-500 rotate-45":"border-cream-300 text-cream-400 group-hover:border-cream-400"}`,children:e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[e.jsx("line",{x1:"6",y1:"0",x2:"6",y2:"12",stroke:"currentColor",strokeWidth:"1"}),e.jsx("line",{x1:"0",y1:"6",x2:"12",y2:"6",stroke:"currentColor",strokeWidth:"1"})]})})]}),e.jsx("div",{className:`overflow-hidden transition-all duration-500 ease-in-out ${r?"max-h-[1200px]":"max-h-0"}`,children:e.jsx("div",{className:"px-6 pb-10",children:s.texto.split(`

`).map((l,i)=>e.jsx("p",{className:"text-base text-cream-600 font-light leading-loose max-w-3xl mb-4 last:mb-0",children:l},i))})})]},t)})})}export{m as default};
