import{r as s,j as e,x as l}from"./app-C417rstp.js";import{o as c}from"./index-C9OncgsG.js";import{m as a}from"./proxy-Bepa3l_N.js";function p(){const o=s.useRef(null);return s.useEffect(()=>{const t=o.current;if(!t)return;const n=()=>{var r;const i=(r=t.play)==null?void 0:r.call(t);i&&typeof i.then=="function"&&i.catch(()=>{})};return t.addEventListener("loadedmetadata",n),()=>{t.removeEventListener("loadedmetadata",n)}},[]),e.jsxs("section",{className:"relative w-full h-[90vh] flex items-center justify-center overflow-hidden",children:[e.jsxs("video",{ref:o,className:"absolute inset-0 w-full h-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",children:[e.jsx("source",{src:"/videos/Banner.mp4",type:"video/mp4"}),"Tu navegador no soporta el video en HTML5."]}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/10 via-black/10 to-black/20"}),e.jsxs("div",{className:"relative z-10 max-w-5xl px-6 text-center text-white",children:[e.jsxs(a.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1},className:`text-4xl sm:text-5xl lg:text-6xl font-extrabold leading-tight
                     text-white drop-shadow-[0_6px_12px_rgba(0,0,0,0.8)]`,children:["Departamento de Electrónica, ",e.jsx("br",{}),"Telecomunicaciones y Redes de Información"]}),e.jsx(a.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:1},className:`mt-6 text-lg sm:text-xl lg:text-2xl text-gray-200
                     drop-shadow-[0_1px_3px_rgba(0,0,0,0.18)]`,children:"Innovación, investigación y formación académica de excelencia al servicio del Ecuador."}),e.jsx(a.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:.6,duration:1},className:"mt-8 flex justify-center",children:e.jsxs(l,{href:"/oferta/pregrado",className:`inline-flex items-center gap-2 px-6 py-3 rounded-xl text-lg font-semibold
                       bg-primary-600 hover:bg-primary-700 transition-colors
                       focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-400`,children:["Conoce nuestros programas ",e.jsx(c,{})]})})]}),e.jsx(a.div,{className:"absolute bottom-6 left-1/2 -translate-x-1/2 text-white/70 text-sm",initial:{opacity:0},animate:{opacity:1,y:[0,8,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:"Desplázate"})]})}export{p as default};
