{"id":7095,"date":"2026-01-22T11:33:37","date_gmt":"2026-01-22T10:33:37","guid":{"rendered":"http:\/\/www.civilnova.com\/?page_id=7095"},"modified":"2026-03-06T12:02:48","modified_gmt":"2026-03-06T11:02:48","slug":"noticias","status":"publish","type":"page","link":"https:\/\/aura.www.civilnova.com\/en\/noticias\/","title":{"rendered":"News"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"7095\" class=\"elementor elementor-7095\">\n\t\t\t\t<div class=\"elementor-element elementor-element-aa1cf09 e-flex e-con-boxed e-con e-parent\" data-id=\"aa1cf09\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-30651b1 elementor-widget elementor-widget-heading\" data-id=\"30651b1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">News<\/h1>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-74c455b e-flex e-con-boxed e-con e-parent\" data-id=\"74c455b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f569102 elementor-widget elementor-widget-html\" data-id=\"f569102\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"mastodon-feed\"><\/div>\n\n<style>\n\/* Contenedor general *\/\n#mastodon-feed {\n    display: grid;\n    gap: 20px;\n}\n\n\/* Dos columnas en pantallas medianas y grandes *\/\n@media (min-width: 768px) {\n    #mastodon-feed {\n        grid-template-columns: repeat(2, 1fr);\n    }\n}\n\n\/* Tarjeta de cada noticia *\/\n.masto-card {\n    background: #ffffff;\n    border: 1px solid #ddd;\n    padding: 15px;\n    border-radius: 8px;\n    box-shadow: 0 2px 6px rgba(0,0,0,0.08);\n    transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n\n\/* Efecto hover *\/\n.masto-card:hover {\n    transform: translateY(-3px);\n    box-shadow: 0 4px 10px rgba(0,0,0,0.12);\n}\n\n\/* Fecha *\/\n.masto-card h3 {\n    margin-top: 0;\n    font-size: 1.1rem;\n    color: #333;\n}\n\n\/* Im\u00e1genes y v\u00eddeos *\/\n.masto-card img,\n.masto-card video {\n    width: 100%;\n    border-radius: 6px;\n    margin-top: 10px;\n}\n\n\/* Enlace \"Leer m\u00e1s\" *\/\n.masto-card a {\n    font-weight: bold;\n    color: #0073aa;\n}\n\n.masto-card a:hover {\n    text-decoration: underline;\n}\n<\/style>\n\n<script>\nasync function loadMastodonFeed() {\n    const container = document.getElementById(\"mastodon-feed\");\n\n    container.innerHTML = \"<p>Cargando publicaciones...<\/p>\";\n\n    try {\n        const response = await fetch(\"https:\/\/mastodon.social\/api\/v1\/accounts\/112234965192185266\/statuses?limit=10\");\n        const posts = await response.json();\n\n        if (!Array.isArray(posts)) {\n            container.innerHTML = \"<p>No se pudieron cargar las publicaciones.<\/p>\";\n            return;\n        }\n\n        let html = \"\";\n\n        posts.forEach(post => {\n            const date = new Date(post.created_at);\n            const formatted = date.toLocaleDateString(\"es-ES\");\n\n            html += `<article class=\"masto-card\">\n                <h3>${formatted}<\/h3>\n                <div>${post.content}<\/div>\n            `;\n\n            \/* Im\u00e1genes *\/\n            if (post.media_attachments) {\n                post.media_attachments.forEach(media => {\n                    if (media.type === \"image\") {\n                        html += `<img decoding=\"async\" src=\"${media.preview_url}\" \/>`;\n                    }\n                });\n            }\n\n            \/* V\u00eddeos *\/\n            if (post.media_attachments) {\n                post.media_attachments.forEach(media => {\n                    if (media.type === \"video\") {\n                        html += `\n                            <video controls muted>\n                                <source src=\"${media.url}\">\n                            <\/video>`;\n                    }\n                });\n            }\n\n            \/* Enlace \"Leer m\u00e1s\" *\/\n            if (post.card && post.card.url) {\n                html += `<p><a href=\"${post.card.url}\" target=\"_blank\">Leer m\u00e1s<\/a><\/p>`;\n            }\n\n            html += `<\/article>`;\n        });\n\n        container.innerHTML = html;\n\n    } catch (e) {\n        container.innerHTML = \"<p>Error al cargar el feed.<\/p>\";\n        console.error(e);\n    }\n}\n\nloadMastodonFeed();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-53a8a34 e-grid e-con-boxed e-con e-parent\" data-id=\"53a8a34\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5a3141a elementor-widget elementor-widget-image\" data-id=\"5a3141a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/ances.com\/sello-eibt-ances\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"330\" height=\"146\" src=\"https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/EIBT_resized.png\" class=\"attachment-large size-large wp-image-8222\" alt=\"\" srcset=\"https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/EIBT_resized.png 330w, https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/EIBT_resized-300x133.png 300w, https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/EIBT_resized-18x8.png 18w\" sizes=\"100vw\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2a0bb15 elementor-widget elementor-widget-image\" data-id=\"2a0bb15\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.buildingsmart.es\/\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"330\" height=\"146\" src=\"https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/buidlingSMART_330.jpg\" class=\"attachment-large size-large wp-image-7982\" alt=\"\" srcset=\"https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/buidlingSMART_330.jpg 330w, https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/buidlingSMART_330-300x133.jpg 300w, https:\/\/aura.www.civilnova.com\/wp-content\/uploads\/2026\/03\/buidlingSMART_330-18x8.jpg 18w\" sizes=\"100vw\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>News<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inspiro_hide_title":false,"footnotes":""},"class_list":["post-7095","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/pages\/7095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/comments?post=7095"}],"version-history":[{"count":9,"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/pages\/7095\/revisions"}],"predecessor-version":[{"id":8319,"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/pages\/7095\/revisions\/8319"}],"wp:attachment":[{"href":"https:\/\/aura.www.civilnova.com\/en\/wp-json\/wp\/v2\/media?parent=7095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}