1import{r as t,j as e}from"./index-CrUtuemb.js";import{L as n,I as l,B as g}from"./label-CnhVL9Dm.js";import{T as h}from"./textarea-c_uQ3t8M.js";import{S as f}from"./SectionHeader-BDNnvphk.js";import{S as j}from"./SEO-pgJMXHjt.js";import"./utils-BJMx_d8c.js";function E(){const[r,o]=t.useState({name:"",email:"",message:""}),[s,d]=t.useState({}),[m,i]=t.useState(!1),c=()=>{const a={};return r.name.trim()||(a.name="El nombre es obligatorio"),r.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r.email)||(a.email="El email no es válido"):a.email="El email es obligatorio",r.message.trim()||(a.message="El mensaje es obligatorio"),d(a),Object.keys(a).length===0},u=a=>{if(a.preventDefault(),c()){const p=`mailto:[email protected]?subject=Contacto desde web&body=Nombre: ${encodeURIComponent(r.name)}%0D%0AEmail: ${encodeURIComponent(r.email)}%0D%0A%0D%0A${encodeURIComponent(r.message)}`;window.location.href=p,i(!0),o({name:"",email:"",message:""}),setTimeout(()=>i(!1),5e3)}},x={"@context":"https://schema.org","@type":"ContactPage",name:"Contacto - Ãrdora Ediciones",description:"Contacta con Ãrdora Ediciones. Consultas, pedidos especiales o propuestas editoriales.",url:"https://ardora.com/contacto",publisher:{"@type":"Organization",name:"Ãrdora Ediciones",logo:{"@type":"ImageObject",url:"https://ardora.com/img/logo_ardora.jpg"},email:"[email protected]"}};return e.jsxs(e.Fragment,{children:[e.jsx(j,{title:"Contacto | Ãrdora Ediciones",description:"Contacta con Ãrdora Ediciones. Consultas, pedidos especiales o propuestas editoriales.",url:"https://ardora.com/contacto",jsonLd:x}),e.jsx("div",{className:"min-h-screen py-12",children:e.jsxs("div",{className:"container-custom",children:[e.jsx(f,{title:"Contacto",subtitle:"Estamos aquà para ayudarte"}),e.jsxs("div",{className:"max-w-2xl mx-auto",children:[e.jsx("div",{className:"mb-10 text-center",children:e.jsx("p",{className:"text-gray-700 leading-relaxed text-lg",children:"Si tienes alguna consulta, pedido especial o propuesta editorial, no dudes en contactarnos. Responderemos a la mayor brevedad posible."})}),m&&e.jsxs("div",{className:"mb-8 p-6 bg-gradient-to-br from-green-50 to-emerald-50 border-2 border-green-200 rounded-2xl text-green-800 text-center shadow-lg animate-in fade-in slide-in-from-top-4 duration-500",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-2",children:[e.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),e.jsx("span",{className:"text-lg font-medium",children:"¡Mensaje enviado!"})]}),e.jsx("p",{className:"text-green-700",children:"Gracias por tu mensaje. Te responderemos pronto."})]}),e.jsxs("form",{onSubmit:u,className:"space-y-6 bg-gradient-to-br from-white to-gray-50 p-8 rounded-2xl shadow-lg border border-gray-100",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"name",className:"text-gray-700 font-medium",children:"Nombre"}),e.jsx(l,{id:"name",type:"text",placeholder:"Tu nombre completo",value:r.name,onChange:a=>o({...r,name:a.target.value}),className:`transition-all duration-300 ${s.name?"border-red-400 focus:border-red-500 focus:ring-red-500":"border-gray-200 focus:border-[#138a8a] focus:ring-[#138a8a]"}`}),s.name&&e.jsxs("p",{className:"text-red-500 text-sm mt-1 flex items-center gap-1",children:[e.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),s.name]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"email",className:"text-gray-700 font-medium",children:"Email"}),e.jsx(l,{id:"email",type:"email",placeholder:"[email protected]",value:r.email,onChange:a=>o({...r,email:a.target.value}),className:`transition-all duration-300 ${s.email?"border-red-400 focus:border-red-500 focus:ring-red-500":"border-gray-200 focus:border-[#138a8a] focus:ring-[#138a8a]"}`}),s.email&&e.jsxs("p",{className:"text-red-500 text-sm mt-1 flex items-center gap-1",children:[e.jsx("svg",{className:"w-4 h-4",fill:"
1currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),s.email]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"message",className:"text-gray-700 font-medium",children:"Mensaje"}),e.jsx(h,{id:"message",rows:6,placeholder:"Cuéntanos en qué podemos ayudarte...",value:r.message,onChange:a=>o({...r,message:a.target.value}),className:`transition-all duration-300 ${s.message?"border-red-400 focus:border-red-500 focus:ring-red-500":"border-gray-200 focus:border-[#138a8a] focus:ring-[#138a8a]"}`}),s.message&&e.jsxs("p",{className:"text-red-500 text-sm mt-1 flex items-center gap-1",children:[e.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),s.message]})]}),e.jsx(g,{type:"submit",className:"w-full bg-gradient-to-r from-[#138a8a] to-[#0f6f6f] hover:from-[#0f6f6f] hover:to-[#0d5c5c] text-white font-medium py-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:-translate-y-1",children:e.jsxs("span",{className:"flex items-center justify-center gap-2",children:["Enviar mensaje",e.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})})]}),e.jsx("div",{className:"mt-12 pt-8 border-t border-gray-200",children:e.jsxs("div",{className:"text-center bg-gradient-to-br from-gray-50 to-white p-6 rounded-xl border border-gray-100",children:[e.jsx("p",{className:"text-gray-600 mb-2",children:"También puedes escribirnos directamente"}),e.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-[#138a8a] hover:text-[#0f6f6f] font-medium text-lg transition-colors group",children:[e.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),e.jsx("span",{className:"border-b border-transparent group-hover:border-[#138a8a] transition-all",children:"[email protected]"})]})]})})]})]})})]})}export{E as Contact};
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.