import{r as n,j as a,x as o}from"./app-C417rstp.js";import{b as m,g as p,q as x,r as g,s as h,t as u,u as v}from"./index-C9OncgsG.js";import{N as b}from"./Navbar-BOYHqzDk.js";function y(){const[r,s]=n.useState(!1);n.useEffect(()=>{const e=()=>s(window.scrollY>300);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);const l=()=>window.scrollTo({top:0,behavior:"smooth"}),c=[{icon:x,href:"#",label:"Facebook"},{icon:g,href:"#",label:"Instagram"},{icon:h,href:"#",label:"LinkedIn"},{icon:u,href:"#",label:"YouTube"}],d=[{title:"Académico",links:[{name:"Grado",href:"landing.ofertaGrado"},{name:"Postgrado",href:"landing.ofertaPosgrado"},{name:"Laboratorios",href:"landing.centrosLaboratorios"}]},{title:"Investigación",links:[{name:"Proyectos",href:"landing.lineasInvestigacion"},{name:"Investigaciones",href:"landing.proyectosInvestigacion"},{name:"Publicaciones",href:"landing.publicaciones"}]}];return a.jsxs("footer",{className:"relative mt-20",children:[a.jsx("div",{className:"pointer-events-none absolute inset-x-0 -top-12 h-24 bg-gradient-to-b from-primary-100/30 via-secondary-100/20 to-transparent animate-pulse",style:{animationDuration:"4s"}}),a.jsxs("div",{className:"relative overflow-hidden bg-gradient-to-br from-primary-900 via-primary-800 to-secondary-900",children:[a.jsxs("div",{className:"absolute inset-0 opacity-10",children:[a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_20%,rgba(255,255,255,0.1)_0%,transparent_50%)] animate-pulse",style:{animationDuration:"6s"}}),a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_70%_80%,rgba(255,255,255,0.08)_0%,transparent_50%)] animate-pulse",style:{animationDuration:"8s",animationDelay:"1s"}})]}),a.jsx("div",{className:"absolute inset-0 bg-grid-pattern opacity-5",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px)",backgroundSize:"50px 50px"}}),a.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-12 sm:py-16",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-12 gap-8 lg:gap-12",children:[a.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[a.jsxs(o,{href:route("landing.home"),className:"inline-flex items-center gap-3 group transition-transform duration-300 hover:scale-105",children:[a.jsxs("div",{className:"relative",children:[a.jsx("img",{src:"/images/logos/logo.png",alt:"Logo DETRI",className:"h-14 w-14 transition-transform duration-300 group-hover:rotate-12"}),a.jsx("div",{className:"absolute inset-0 bg-primary-400/20 rounded-full blur-xl group-hover:bg-primary-300/30 transition-all duration-300"})]}),a.jsx("span",{className:"text-2xl font-bold text-white tracking-tight",children:"DETRI"})]}),a.jsx("p",{className:"text-sm leading-relaxed text-primary-100/90",children:"Departamento de Electrónica, Telecomunicaciones y Redes de Información. Innovación, investigación y formación de excelencia al servicio del Ecuador."}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("a",{href:"mailto:contacto@detri.epn.edu.ec",className:"flex items-center gap-3 text-sm text-primary-100/80 hover:text-white transition-colors duration-300 group",children:[a.jsx("div",{className:"p-2 rounded-lg bg-primary-800/50 group-hover:bg-primary-700/50 transition-colors duration-300",children:a.jsx(m,{className:"text-primary-200"})}),a.jsx("span",{children:"contacto@detri.epn.edu.ec"})]}),a.jsxs("div",{className:"flex items-center gap-3 text-sm text-primary-100/80",children:[a.jsx("div",{className:"p-2 rounded-lg bg-primary-800/50",children:a.jsx(p,{className:"text-primary-200"})}),a.jsx("span",{children:"Escuela Politécnica Nacional, Quito - Ecuador"})]})]}),a.jsx("div",{className:"flex gap-3 pt-2",children:c.map((e,t)=>a.jsxs("a",{"aria-label":e.label,href:e.href,className:`group relative p-2.5 rounded-lg bg-primary-800/40 hover:bg-secondary-700/60
                             text-primary-100 hover:text-white border border-primary-700/30 hover:border-secondary-600/50
                             transition-all duration-300 hover:scale-110 hover:-translate-y-1`,style:{animationDelay:`${t*100}ms`,animation:"fadeInUp 0.6s ease-out forwards"},children:[a.jsx(e.icon,{className:"w-4 h-4"}),a.jsx("div",{className:"absolute inset-0 rounded-lg bg-secondary-500/0 group-hover:bg-secondary-500/10 transition-all duration-300"})]},e.label))})]}),a.jsx("div",{className:"lg:col-span-7 grid grid-cols-1 sm:grid-cols-2 gap-8",children:d.map((e,t)=>a.jsxs("div",{className:"space-y-4",style:{animationDelay:`${(t+1)*150}ms`,animation:"fadeInUp 0.6s ease-out forwards",opacity:0},children:[a.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider",children:e.title}),a.jsx("ul",{className:"space-y-2.5",children:e.links.map(i=>a.jsx("li",{children:a.jsxs(o,{href:route(i.href),className:`group flex items-center text-sm text-primary-200/80 hover:text-white
                                   transition-all duration-300 hover:translate-x-1`,children:[a.jsx("span",{className:"w-0 h-px bg-secondary-400 group-hover:w-4 transition-all duration-300 mr-0 group-hover:mr-2"}),i.name]})},i.name))})]},e.title))})]}),a.jsx("div",{className:"mt-12 mb-6 relative h-px bg-gradient-to-r from-transparent via-primary-600/50 to-transparent",children:a.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-secondary-500/50 to-transparent animate-pulse"})}),a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 text-sm",children:[a.jsxs("p",{className:"text-primary-200/70",children:["© ",new Date().getFullYear()," DETRI — EPN. Todos los derechos reservados."]}),a.jsx("div",{className:"flex flex-wrap gap-6 text-primary-200/70",children:a.jsxs("a",{href:"#",className:"hover:text-white transition-colors duration-300 relative group",children:["Accesibilidad",a.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 bg-secondary-400 group-hover:w-full transition-all duration-300"})]})})]})]})]}),a.jsxs("button",{onClick:l,"aria-label":"Volver arriba",className:`fixed right-6 bottom-6 z-50 p-3.5 rounded-full shadow-2xl
                    bg-gradient-to-br from-primary-600 to-secondary-600
                    text-white border-2 border-primary-400/30
                    hover:from-primary-500 hover:to-secondary-500
                    hover:scale-110 hover:shadow-primary-500/50
                    transition-all duration-300 group
                    ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-4 pointer-events-none"}`,children:[a.jsx(v,{className:"w-5 h-5 group-hover:-translate-y-1 transition-transform duration-300"}),a.jsx("div",{className:"absolute inset-0 rounded-full bg-white/20 opacity-0 group-hover:opacity-100 group-hover:animate-ping transition-opacity"})]}),a.jsx("style",{children:`
        @keyframes fadeInUp {
          from {
            opacity: 0;
            transform: translateY(20px);
          }
          to {
            opacity: 1;
            transform: translateY(0);
          }
        }
      `})]})}function w({titulo:r,children:s}){return a.jsxs(a.Fragment,{children:[a.jsx(b,{titulo:r}),s,a.jsx(y,{})]})}export{w as P};
