/* ========================================================= Secciones bot (rev. usuario): - Sec 9: 4 herramientas (Tour 360, Dron, Video, Foto pro) - Sec 10: Opiniones de clientes - Sec 11: Blog y noticias - Sec 12: Preguntas y respuestas ========================================================= */ /* ---------- Sec 9: 4 herramientas de promoción ---------- */ const TOOLS = [ { icon: "view", key: "tour360", img: "/assets/tool-tour-360.webp" }, { icon: "plane", key: "drone", img: "/assets/tool-drone.png" }, { icon: "video", key: "video", img: "/assets/tool-video-comercial.png" }, { icon: "camera", key: "photo", img: "/assets/tool-photo-pro.jpg" }]; function ToolsSection() { return (
{t("home.tools.eyebrow")}

{t("home.tools.intro")}

{TOOLS.map((tool, i) => { const badge = t(`home.tools.${tool.key}_badge`); const title = t(`home.tools.${tool.key}_title`); const desc = t(`home.tools.${tool.key}_desc`); return (
{title} 0{i + 1}
{badge}

{title}

{desc}

{t("home.tools.included")}
); })}
); } /* ---------- Sec 10: Testimonios ---------- */ const TESTIMONIALS = [ { key: "t1", name: "Carmen Zapata", avatar: "https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=160&q=80" }, { key: "t2", name: "Javi Jauregui Apestegui", avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=160&q=80" }, { key: "t3", name: "Toni gca", avatar: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=160&q=80" }, { key: "t4", name: "José Manre", avatar: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?auto=format&fit=crop&w=160&q=80" }]; function Testimonials() { const VISIBLE = 2; const N = TESTIMONIALS.length; const items = [...TESTIMONIALS, ...TESTIMONIALS.slice(0, VISIBLE)]; const [start, setStart] = useState(0); const [withTransition, setWithTransition] = useState(true); const viewportRef = useRef(null); const [cardW, setCardW] = useState(0); const gap = 60; useEffect(() => { const update = () => { if (!viewportRef.current) return; const style = window.getComputedStyle(viewportRef.current); const padL = parseFloat(style.paddingLeft) || 0; const padR = parseFloat(style.paddingRight) || 0; const w = viewportRef.current.clientWidth - padL - padR; const perView = window.innerWidth >= 880 ? VISIBLE : 1; setCardW((w - gap * (perView - 1)) / perView); }; update(); window.addEventListener("resize", update); return () => window.removeEventListener("resize", update); }, []); useEffect(() => { if (start === N) { const t = setTimeout(() => { setWithTransition(false); setStart(0); }, 500); return () => clearTimeout(t); } if (!withTransition) { const t = setTimeout(() => setWithTransition(true), 50); return () => clearTimeout(t); } }, [start, withTransition]); const next = () => { if (!withTransition) return; setStart((s) => Math.min(s + 1, N)); }; const prev = () => { if (!withTransition) return; if (start === 0) { setWithTransition(false); setStart(N); setTimeout(() => { setWithTransition(true); setStart(N - 1); }, 60); } else { setStart((s) => s - 1); } }; const trackOffset = -start * (cardW + gap); const activeDot = start % N; return (
{t("home.testimonials.eyebrow")}

{items.map((ti, i) =>
0 ? cardW + "px" : "100%" }}>

{t(`home.testimonials.${ti.key}_quote`)}

★ ★ ★ ★ ★
{ti.name} | {t(`home.testimonials.${ti.key}_role`)}
)}
{TESTIMONIALS.map((_, i) => )}
); } /* ---------- Sec 11: Blog y noticias ---------- */ const POSTS = [ { catKey: "cat_guide", dateKey: "month_may", titleKey: "post1_title", img: "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80" }, { catKey: "cat_market", dateKey: "month_apr", titleKey: "post2_title", img: "https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=900&q=80" }, { catKey: "cat_ai", dateKey: "month_apr", titleKey: "post3_title", img: "https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=900&q=80" }]; function Blog() { return (
{t("home.blogSec.eyebrow")}

{t("home.blogSec.intro")}

{POSTS.map((p, i) => { const title = t(`home.blogSec.${p.titleKey}`); return ( ); })}
); } /* ---------- Sec 12: FAQ ---------- */ const FAQ_KEYS = ["q1", "q2", "q3", "q4", "q5", "q6", "q7"]; function FAQ() { const [open, setOpen] = useState(0); return (
{t("home.faq.eyebrow")}

{t("home.faq.intro")}

{FAQ_KEYS.map((qkey, i) => setOpen(open === i ? -1 : i)} /> )}
); } function AppPromo() { return (
{t("home.appPromo.eyebrow")}

{t("home.appPromo.intro")}

{t("home.appPromo.phones_alt")}
); } /* ---------- HOME · Sección SEO con Inno (asistente IA 24/7) ---------- */ function HomeInnoSEO() { return (
{t("home.innoSeo.robot_alt")}
{t("home.innoSeo.eyebrow")}

{t("home.innoSeo.f1_title")}

{t("home.innoSeo.f1_desc")}

{t("home.innoSeo.f2_title")}

{t("home.innoSeo.f2_desc")}

{t("home.innoSeo.f3_title")}

{t("home.innoSeo.f3_desc")}

{t("home.innoSeo.f4_title")}

{t("home.innoSeo.f4_desc")}

); } /* ---------- HOME · Bienvenida al mundo Innovaria ---------- */ function HomeWelcome() { const tiles = [ { icon: "sparkles", key: "t1", href: "#asistente" }, { icon: "smartphone", key: "t2", href: "#app" }, { icon: "calculator", key: "t3", href: "valorar-mi-casa-gratis.html" }, { icon: "search", key: "t4", href: "quiero-comprar.html" }]; return (
{t("home.welcome.eyebrow")}

{t("home.welcome.intro")}

{tiles.map((tile, i) => {t(`home.welcome.${tile.key}_label`)}

{t(`home.welcome.${tile.key}_title`)}

{t(`home.welcome.${tile.key}_text`)}

)}
); } /* ---------- HOME · Servicios (estilo findrealestate.com — Comprar / Vender) ---------- */ function HomeServicios() { const rows = [ { n: "1", key: "row1", href: "quiero-comprar.html", img: "https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1800&q=80" }, { n: "2", key: "row2", href: "quiero-vender.html", img: "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80" }]; return (
{t("home.servicios.eyebrow")}


{t("home.servicios.title_html_part2")}

{rows.map((r, i) => { const label = t(`home.servicios.${r.key}_label`); const text = t(`home.servicios.${r.key}_text`); return (
{r.n}

{text}

{label}
); })}

{t("home.servicios.closing_cta")}

); } Object.assign(window, { ToolsSection, AppPromo, Testimonials, Blog, FAQ, HomeInnoSEO, HomeWelcome, HomeServicios });