Files
xmarticaims/wp-content/themes/xmartica/footer-es.php
T
2026-11-02 10:26:32 -06:00

281 lines
21 KiB
PHP

<?php
/**
* Site footer.
*
* @package Xmartica
*/
$xmartica_footer_home_url = wp_make_link_relative( function_exists( 'pll_home_url' ) ? pll_home_url( 'es' ) : home_url( '/' ) );
$xmartica_footer_claim = get_post_meta( get_queried_object_id(), 'footer_claim', true );
$xmartica_footer_has_custom_claim = is_string( $xmartica_footer_claim ) && '' !== trim( $xmartica_footer_claim );
$xmartica_footer_is_enterprise = is_page_template( 'page-consultoria-de-transformacion-empresarial.php' ) || is_page( 'consultoria-de-transformacion-empresarial' );
$xmartica_footer_is_digital = is_page_template( 'page-consultoria-de-transformacion-digital.php' ) || is_page( 'consultoria-de-transformacion-digital' );
$xmartica_footer_is_process = is_page_template( 'page-consultoria-de-mejora-de-procesos.php' ) || is_page( 'consultoria-de-mejora-de-procesos' );
$xmartica_footer_is_data = is_page_template( 'page-consultoria-de-datos-y-analitica.php' ) || is_page( 'consultoria-de-datos-y-analitica' );
$xmartica_footer_is_ai = is_page_template( 'page-consultoria-de-estrategia-de-ia.php' ) || is_page( 'consultoria-de-estrategia-de-ia' );
$xmartica_footer_is_change = is_page_template( 'page-consultoria-de-gestion-del-cambio.php' ) || is_page( 'consultoria-de-gestion-del-cambio' );
$xmartica_footer_is_cx = is_page_template( 'page-estrategia-de-experiencia-de-cliente.php' ) || is_page( 'estrategia-de-experiencia-de-cliente' );
$xmartica_footer_is_industrial = is_page_template( 'page-servicios-tecnicos-industriales.php' ) || is_page( 'servicios-tecnicos-industriales' );
$xmartica_footer_is_maintenance = is_page_template( 'page-servicios-de-mantenimiento-industrial.php' ) || is_page( 'servicios-de-mantenimiento-industrial' );
$xmartica_footer_is_reliability = is_page_template( 'page-ingenieria-de-confiabilidad.php' ) || is_page( 'ingenieria-de-confiabilidad' );
$xmartica_footer_is_asset_management = is_page_template( 'page-servicios-de-gestion-de-activos.php' ) || is_page( 'servicios-de-gestion-de-activos' );
$xmartica_footer_is_repair = is_page_template( 'page-servicios-de-reparacion-industrial.php' ) || is_page( 'servicios-de-reparacion-industrial' );
$xmartica_footer_is_home = is_front_page();
$xmartica_footer_cta_text = esc_html__( 'Habla con un especialista', 'html5blank' );
if ( ! $xmartica_footer_has_custom_claim ) {
if ( $xmartica_footer_is_home ) {
$xmartica_footer_claim = esc_html__( 'De la estrategia del activo a la continuidad operativa.', 'html5blank' );
} elseif ( $xmartica_footer_is_repair ) {
$xmartica_footer_claim = esc_html__( 'Reparación industrial que cumple especificación, no solo lo pone en marcha. Reparación, reacondicionamiento, reconstrucción y renovación en un solo taller.', 'html5blank' );
} elseif ( $xmartica_footer_is_asset_management ) {
$xmartica_footer_claim = esc_html__( 'Gestión de activos que demuestra su valor. Estrategia, gobierno, desempeño e ISO 55001 — en un solo programa.', 'html5blank' );
} elseif ( $xmartica_footer_is_reliability ) {
$xmartica_footer_claim = esc_html__( 'Confiabilidad que previene la falla, no solo la repara. Análisis de criticidad, análisis de causa raíz y mantenimiento centrado en confiabilidad.', 'html5blank' );
} elseif ( $xmartica_footer_is_maintenance ) {
$xmartica_footer_claim = esc_html__( 'Mantenimiento industrial que mantiene los activos disponibles. Ingeniería, ejecución, capacitación y repuestos — un solo socio de mantenimiento.', 'html5blank' );
} elseif ( $xmartica_footer_is_industrial ) {
$xmartica_footer_claim = esc_html__( 'Servicios técnicos industriales que llegan cuando importa. Servicios de campo, pruebas de equipo y soporte técnico en un solo lugar.', 'html5blank' );
} else {
$xmartica_footer_claim = esc_html__( 'Mantenimiento industrial con ejecución real.', 'html5blank' );
}
}
$xmartica_footer_claim = trim( wp_strip_all_tags( $xmartica_footer_claim ) );
$xmartica_footer_mark = '';
if ( preg_match( '/([.!?])$/u', $xmartica_footer_claim, $xmartica_mark_match ) ) {
$xmartica_footer_mark = $xmartica_mark_match[1];
$xmartica_footer_claim = preg_replace( '/[.!?]$/u', '', $xmartica_footer_claim );
}
$xmartica_footer_words = preg_split( '/\s+/u', $xmartica_footer_claim, -1, PREG_SPLIT_NO_EMPTY );
$xmartica_footer_accent = '';
$xmartica_footer_lead = '';
if ( $xmartica_footer_words ) {
$xmartica_accent_count = min( 2, count( $xmartica_footer_words ) );
$xmartica_accent_words = array_splice( $xmartica_footer_words, -$xmartica_accent_count );
$xmartica_footer_lead = implode( ' ', $xmartica_footer_words );
$xmartica_footer_accent = implode( ' ', $xmartica_accent_words );
}
if ( $xmartica_footer_is_asset_management ) {
$xmartica_footer_cta_text = esc_html__( 'Habla con un consultor de gestión de activos', 'html5blank' );
} elseif ( $xmartica_footer_is_enterprise ) {
$xmartica_footer_cta_text = esc_html__( 'Habla con un consultor de transformación empresarial', 'html5blank' );
}
$xmartica_footer_logo = get_theme_file_uri( '/assets/header/xmart.svg' );
$xmartica_footer_ims = get_theme_file_uri( '/assets/header/ims.svg' );
$xmartica_footer_cta_arrow = get_theme_file_uri( '/assets/header/arrow-forward-sharp.svg' );
$xmartica_footer_contact_url = home_url( '/#contacto' );
$xmartica_footer_faqs = $xmartica_footer_is_industrial ? '#preguntas-frecuentes' : home_url( '/#preguntas-frecuentes' );
$xmartica_footer_privacy = get_privacy_policy_url();
$xmartica_footer_service_links = array(
array(
'label' => esc_html__( 'Servicios Técnicos Industriales', 'html5blank' ),
'path' => '/servicios-tecnicos-industriales',
),
array(
'label' => esc_html__( 'Servicios de Mantenimiento Industrial', 'html5blank' ),
'path' => '/servicios-de-mantenimiento-industrial',
),
array(
'label' => esc_html__( 'Ingeniería de Confiabilidad', 'html5blank' ),
'path' => '/ingenieria-de-confiabilidad',
),
array(
'label' => esc_html__( 'Servicios de Gestión de Activos', 'html5blank' ),
'path' => '/servicios-de-gestion-de-activos',
),
array(
'label' => esc_html__( 'Servicios de Reparación Industrial', 'html5blank' ),
'path' => '/servicios-de-reparacion-industrial',
),
);
if ( ! $xmartica_footer_privacy ) {
$xmartica_footer_privacy = home_url( '/privacy-policy/' );
}
?>
<footer id="site-footer" class="site-footer site-footer--ims px-[240px] pb-[102px] pt-[60px] text-white xxxl:px-[120px] xxl:px-[72px] xl:px-8 lg:px-4 lg:pb-12" style="background:#111d31;" data-node-id="334:3408">
<div class="mx-auto flex w-full max-w-[1440px] flex-col items-center gap-5">
<h2 class="m-0 <?php echo ( $xmartica_footer_is_home || $xmartica_footer_is_repair || $xmartica_footer_is_asset_management || $xmartica_footer_is_reliability || $xmartica_footer_is_maintenance || $xmartica_footer_is_industrial || $xmartica_footer_is_enterprise || $xmartica_footer_is_digital || $xmartica_footer_is_process || $xmartica_footer_is_data || $xmartica_footer_is_ai || $xmartica_footer_is_change || $xmartica_footer_is_cx ) ? 'w-full max-w-[1220px]' : 'w-[494px]'; ?> text-center text-[55px] font-semibold leading-[60px] lg:w-full lg:max-w-[900px] lg:text-[42px] lg:leading-[48px] sm:text-[34px] sm:leading-[40px]" data-node-id="332:1112">
<?php if ( $xmartica_footer_is_home ) : ?>
<span class="block"><?php echo esc_html__( 'De la ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'estrategia del activo', 'html5blank' ); ?></span></span>
<span class="block"><?php echo esc_html__( 'a la continuidad operativa.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_repair && ! $xmartica_footer_has_custom_claim ) : ?>
<span class="block"><?php echo esc_html__( 'Reparación industrial que cumple', 'html5blank' ); ?></span>
<span class="block bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'especificación, no solo lo pone en marcha.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Reparación, reacondicionamiento, reconstrucción', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'y renovación en un solo taller.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_asset_management && ! $xmartica_footer_has_custom_claim ) : ?>
<span class="block"><?php echo esc_html__( 'Gestión de activos que ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'demuestra su valor.', 'html5blank' ); ?></span></span>
<span class="block"><?php echo esc_html__( 'Estrategia, gobierno, desempeño e ISO 55001 —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'en un solo programa.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_reliability && ! $xmartica_footer_has_custom_claim ) : ?>
<span class="block"><?php echo esc_html__( 'Confiabilidad que ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'previene la falla,', 'html5blank' ); ?></span></span>
<span class="block"><?php echo esc_html__( 'no solo la repara.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Análisis de criticidad, análisis de causa raíz', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'y mantenimiento centrado en confiabilidad.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_maintenance && ! $xmartica_footer_has_custom_claim ) : ?>
<span class="block"><?php echo esc_html__( 'Mantenimiento industrial que mantiene los', 'html5blank' ); ?></span>
<span class="block bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'activos disponibles.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Ingeniería, ejecución, capacitación y repuestos —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'un solo socio de mantenimiento.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_industrial && ! $xmartica_footer_has_custom_claim ) : ?>
<span class="block"><?php echo esc_html__( 'Servicios técnicos industriales', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'que ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'llegan cuando importa.', 'html5blank' ); ?></span></span>
<span class="block"><?php echo esc_html__( 'Servicios de campo, pruebas de equipo', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'y soporte técnico en un solo lugar.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_enterprise ) : ?>
<span class="block">
<?php echo esc_html__( 'Transformación empresarial que ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'llega hasta la', 'html5blank' ); ?></span>
</span>
<span class="block bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'operación.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Estrategia, modelo operativo y ejecución —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'diseñados y entregados juntos.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_digital ) : ?>
<span class="block">
<?php echo esc_html__( 'Transformación digital que ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'llega a producción.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Estrategia, arquitectura y adopción —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'diseñados y entregados juntos.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_process ) : ?>
<span class="block">
<?php echo esc_html__( 'Mejora de procesos ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'que se acumula.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Flujos más rápidos, menos traspasos manuales', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'y desempeño que se sostiene.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_data ) : ?>
<span class="block">
<?php echo esc_html__( 'Datos que impulsan decisiones, ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'no solo dashboards.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Estrategia, gobierno y analítica —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'construidos para usarse.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_ai ) : ?>
<span class="block"><?php echo esc_html__( 'IA que se gana la confianza,', 'html5blank' ); ?></span>
<span class="block bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'no solo la atención.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Estrategia, gobierno e implementación —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'diseñados juntos.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_change ) : ?>
<span class="block">
<?php echo esc_html__( 'Cambio que perdura, ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'no solo se lanza.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Preparación, adopción y alineación de liderazgo —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'incorporados en el despliegue.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_cx ) : ?>
<span class="block">
<?php echo esc_html__( 'Experiencia de cliente ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'que gana lealtad.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Recorrido, modelo comercial y ejecución —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'diseñados juntos.', 'html5blank' ); ?></span>
<?php else : ?>
<?php if ( $xmartica_footer_lead ) : ?>
<span><?php echo esc_html( $xmartica_footer_lead ); ?></span>
<?php endif; ?>
<?php if ( $xmartica_footer_lead && $xmartica_footer_accent ) : ?> <?php endif; ?>
<span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html( $xmartica_footer_accent ); ?></span><span><?php echo esc_html( $xmartica_footer_mark ); ?></span>
<?php endif; ?>
</h2>
<a class="flex h-[47px] items-center justify-center gap-5 rounded-[50px] px-10 py-3 text-lg font-normal text-white no-underline transition-colors hover:text-[#ffcd11] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#ffcd11]" href="<?php echo esc_url( $xmartica_footer_contact_url ); ?>" data-node-id="332:1113">
<span><?php echo esc_html( $xmartica_footer_cta_text ); ?></span>
<span class="flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#ffcd11]" aria-hidden="true" data-node-id="332:1115">
<?php if ( $xmartica_footer_cta_arrow ) : ?>
<img class="block h-[15px] w-[15px] max-w-none" src="<?php echo esc_url( $xmartica_footer_cta_arrow ); ?>" alt="" width="15" height="15" data-node-id="332:1116">
<?php endif; ?>
</span>
</a>
<div class="flex min-h-[330px] w-[1341px] max-w-full items-center justify-between rounded-[40px] border-[0.5px] border-[#ffcd11] bg-[linear-gradient(108deg,rgba(255,205,17,0.5)_0%,rgba(14,28,47,0.64)_100%)] pb-[49px] pl-[50px] pt-[50px] lg:h-auto lg:min-h-0 lg:flex-col lg:items-stretch lg:gap-10 lg:px-8 lg:py-10 sm:rounded-[28px] sm:px-6" data-node-id="334:3405">
<div class="flex w-[214px] shrink-0 flex-col items-start gap-[15px] lg:w-full" data-node-id="335:3414">
<a class="flex items-center justify-center py-2.5" href="<?php echo esc_url( $xmartica_footer_home_url ); ?>" aria-label="<?php echo esc_attr__( 'XmartIMS — Inicio', 'html5blank' ); ?>" data-node-id="333:3173">
<span class="flex items-center gap-0.5">
<?php if ( $xmartica_footer_logo ) : ?>
<img class="block h-[21.0823px] w-[83.4433px] max-w-none" src="<?php echo esc_url( $xmartica_footer_logo ); ?>" alt="Xmart" width="83.4433" height="21.0823" data-node-id="333:3175">
<?php endif; ?>
<span class="flex h-[31.42px] w-[70.246px] items-center justify-center rounded-[20px] bg-[#ffcd11] px-2.5 py-[5px]">
<?php if ( $xmartica_footer_ims ) : ?>
<img class="block h-[21.42px] w-[50.246px] max-w-none" src="<?php echo esc_url( $xmartica_footer_ims ); ?>" alt="IMS" width="50.246" height="21.42" data-node-id="333:3182">
<?php endif; ?>
</span>
</span>
</a>
<p class="m-0 text-base font-semibold leading-normal" data-node-id="333:3191"><?php echo wp_kses_post( __( 'Soluciones de mantenimiento<br>industrial', 'html5blank' ) ); ?></p>
<a class="flex items-center justify-center gap-[5px] text-xs font-semibold text-white no-underline hover:text-[#ffcd11]" href="<?php echo esc_url( $xmartica_footer_contact_url ); ?>" data-node-id="333:3187">
<span><?php echo esc_html__( 'Contáctanos', 'html5blank' ); ?></span>
</a>
<div class="text-xs font-light leading-normal" data-node-id="333:3186">
<p class="m-0">© <?php echo esc_html( wp_date( 'Y' ) ); ?> XmartIMS</p>
<a class="text-white no-underline hover:text-[#ffcd11]" href="<?php echo esc_url( $xmartica_footer_privacy ); ?>"><?php echo esc_html__( 'Privacy Policy', 'html5blank' ); ?></a>
</div>
</div>
<nav class="flex w-[669px] max-w-full shrink-0 flex-col items-start justify-center gap-[14px] lg:w-full" aria-label="<?php echo esc_attr__( 'Navegación del footer', 'html5blank' ); ?>" data-node-id="335:3420">
<div class="w-full">
<p class="m-0 bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-[35px] font-semibold leading-[44px] text-transparent lg:text-[30px]">
<?php echo esc_html__( 'Soluciones', 'html5blank' ); ?>
</p>
<ul class="mt-2.5 flex w-full flex-wrap items-center gap-x-2 gap-y-1.5 p-0 pr-8" aria-label="<?php echo esc_attr__( 'Servicios XmartIMS', 'html5blank' ); ?>">
<?php foreach ( $xmartica_footer_service_links as $xmartica_footer_service_link ) : ?>
<li class="m-0 shrink-0 list-none p-0">
<a class="site-footer__solution-link inline-flex min-h-[24px] items-center whitespace-nowrap rounded-full px-3 py-1 text-[11px] font-light leading-[14px] text-white no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white" href="<?php echo esc_url( home_url( $xmartica_footer_service_link['path'] ) ); ?>">
<?php echo esc_html( $xmartica_footer_service_link['label'] ); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="h-px w-[518px] max-w-full bg-[rgba(255,255,255,0.42)]" aria-hidden="true" data-node-id="335:3418"></div>
<a class="site-footer__faq-link inline-flex items-center gap-5 text-[35px] font-semibold leading-[44px] text-[#ffcd11] no-underline lg:text-[30px]" href="<?php echo esc_url( $xmartica_footer_faqs ); ?>">
<span><?php echo esc_html__( 'FAQs', 'html5blank' ); ?></span>
<span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[#ffcd11]" aria-hidden="true">
<img class="block h-[15px] w-[15px] max-w-none" src="<?php echo esc_url( $xmartica_footer_cta_arrow ); ?>" alt="" width="15" height="15">
</span>
</a>
</nav>
</div>
</div>
</footer>
<style>
.site-footer--ims .site-footer__solution-link::before {
background: linear-gradient(90deg, #ffcd11 0%, rgba(255, 205, 17, 0.48) 52%, rgba(255, 255, 255, 0.85) 100%);
}
.site-footer--ims .site-footer__solution-link:hover {
background-color: rgba(255, 205, 17, 0.16);
box-shadow: 0 0 18px rgba(255, 205, 17, 0.16);
}
.site-footer--ims .site-footer__faq-link {
transition: color 180ms ease;
}
.site-footer--ims .site-footer__faq-link img {
transition: transform 180ms ease;
}
.site-footer--ims .site-footer__faq-link:hover {
color: #fff3a7;
}
.site-footer--ims .site-footer__faq-link:hover img {
transform: translateX(2px);
}
</style>
<?php wp_footer(); ?>
</body>
</html>