import{j as e}from"./app-C417rstp.js";import{d as l,e as o,b as d,f as n,g as c,h as x}from"./index-C9OncgsG.js";import{m as t}from"./proxy-Bepa3l_N.js";import{A as m}from"./index-CIV8c8cT.js";function b({persona:i,index:a,isOpen:s,onToggle:r}){return e.jsxs(t.article,{...fadeIn(a*.08),whileHover:{y:-8},className:"group relative overflow-visible rounded-2xl bg-white shadow-lg hover:shadow-2xl transition-all duration-300 border border-gray-100 mt-24",children:[e.jsx("div",{className:"absolute top-0 left-0 right-0 h-20 bg-gradient-to-br from-blue-500 via-indigo-500 to-purple-500 opacity-90 rounded-t-2xl"}),e.jsx("div",{className:"absolute top-0 left-0 right-0 h-20 opacity-10 rounded-t-2xl",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"20px 20px"}}),e.jsx("div",{className:"relative -mt-20 mb-3 flex justify-center",children:e.jsxs(t.div,{whileHover:{scale:1.05,y:-4},transition:{duration:.3},className:"relative",children:[e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-8 bg-black/10 blur-xl rounded-full"}),e.jsx("div",{className:"absolute -top-2 -right-2 bg-white rounded-xl px-3 py-1.5 shadow-lg z-10 border border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-bold text-blue-600",children:[e.jsx(l,{className:"w-3 h-3"}),i.area]})}),e.jsx("img",{src:i.foto||"/assets/autoridades/placeholder.jpg",alt:i.nombre,className:"relative w-40 h-40 object-contain drop-shadow-2xl"})]})}),e.jsxs("div",{className:"relative px-6 pb-6 pt-2",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-1 group-hover:text-indigo-600 transition-colors",children:i.nombre}),e.jsx("p",{className:"text-sm font-semibold text-indigo-600 mb-2",children:i.cargo})]}),e.jsxs("button",{onClick:r,className:"flex items-center justify-between w-full text-sm font-semibold text-indigo-600 hover:text-indigo-700 transition-colors mb-4 px-3 py-2 rounded-lg hover:bg-indigo-50","aria-expanded":s,children:[e.jsx("span",{children:s?"Ver menos información":"Ver información de contacto"}),e.jsx(t.div,{animate:{rotate:s?180:0},transition:{duration:.3},children:e.jsx(o,{className:"w-4 h-4"})})]}),e.jsx(m,{initial:!1,children:s&&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:"space-y-3 pt-3 border-t border-gray-100",children:[e.jsxs("a",{href:`mailto:${i.email}`,className:"flex items-start gap-3 text-sm text-gray-700 hover:text-indigo-600 transition-colors group/item p-2 rounded-lg hover:bg-indigo-50",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-indigo-100 flex items-center justify-center flex-shrink-0 group-hover/item:bg-indigo-200 transition-colors",children:e.jsx(d,{className:"w-4 h-4 text-indigo-600"})}),e.jsxs("div",{className:"flex-1 min-w-0 pt-0.5",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:"Email"}),e.jsx("div",{className:"font-medium truncate",children:i.email})]})]}),e.jsxs("div",{className:"flex items-start gap-3 text-sm text-gray-700 p-2 rounded-lg",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-purple-100 flex items-center justify-center flex-shrink-0",children:e.jsx(n,{className:"w-4 h-4 text-purple-600"})}),e.jsxs("div",{className:"flex-1 pt-0.5",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:"Horario"}),e.jsxs("div",{className:"font-medium",children:[i.horario_dias," · ",i.horario_rango]})]})]}),i.ubicacion&&e.jsxs("div",{className:"flex items-start gap-3 text-sm text-gray-700 p-2 rounded-lg",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-blue-100 flex items-center justify-center flex-shrink-0",children:e.jsx(c,{className:"w-4 h-4 text-blue-600"})}),e.jsxs("div",{className:"flex-1 pt-0.5",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:"Ubicación"}),e.jsx("div",{className:"font-medium",children:i.ubicacion})]})]}),i.telefono&&e.jsxs("div",{className:"flex items-start gap-3 text-sm text-gray-700 p-2 rounded-lg",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-green-100 flex items-center justify-center flex-shrink-0",children:e.jsx(x,{className:"w-4 h-4 text-green-600"})}),e.jsxs("div",{className:"flex-1 pt-0.5",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:"Teléfono"}),e.jsx("div",{className:"font-medium",children:i.telefono})]})]})]})})})]}),e.jsx(t.div,{className:"absolute inset-0 rounded-2xl pointer-events-none",initial:{opacity:0},whileHover:{opacity:1},transition:{duration:.3},children:e.jsx("div",{className:"absolute inset-0 rounded-2xl ring-2 ring-indigo-500/50 ring-offset-2 ring-offset-white"})})]})}export{b as default};
