Files
powerservice/wp-content/themes/powerservices/page-template-seo.php
T

282 lines
19 KiB
PHP

<?php
/**
* Template Name: Plantilla SEO
* Template Post Type: page, seo
*
* @package powerservices
*/
get_header();
?>
<main id="main-content" class="flex flex-col">
<?php get_template_part( 'template-parts/page-gutenberg-accordion' ); ?>
<?php get_template_part( 'template-parts/page-rank-math-breadcrumbs' ); ?>
<?php
$seo_content_id = get_queried_object_id();
$seo_content_slug = get_post_field( 'post_name', $seo_content_id );
$show_industrial_team = in_array(
$seo_content_slug,
array( 'servicios-mantenimiento-industrial', 'diagnostico-de-fallas-en-motores' ),
true
);
$show_service_center = in_array(
$seo_content_slug,
array( 'servicios-mantenimiento-industrial', 'diagnostico-de-fallas-en-motores', 'reparacion-de-motores-electricos' ),
true
);
$seo_hero_title = get_post_meta( $seo_content_id, '_powerservices_seo_hero_title', true );
$seo_hero_description = get_post_meta( $seo_content_id, '_powerservices_seo_hero_description', true );
if ( ! $seo_hero_title ) {
$seo_hero_title = get_the_title( $seo_content_id );
}
if ( ! $seo_hero_description ) {
$seo_hero_description = get_the_excerpt( $seo_content_id );
}
?>
<section class="relative isolate flex min-h-[600px] items-center overflow-hidden bg-color-5 text-white md:min-h-[410px]" aria-labelledby="seo-hero-title">
<?php echo wp_get_attachment_image( 14, 'full', false, array(
'class' => 'absolute inset-0 -z-10 h-full w-full object-cover object-center md:object-[58%_center]',
'alt' => '',
'loading' => 'eager',
'fetchpriority' => 'high',
'sizes' => '100vw',
) ); ?>
<div class="absolute inset-0 -z-10 bg-gradient-to-r from-black/70 via-black/40 to-black/10 md:bg-black/45" aria-hidden="true"></div>
<div class="container px-8 xxl:px-6 md:px-7 sm:px-5">
<div class="max-w-[780px]">
<h1 id="seo-hero-title" class="text-[52px] font-black uppercase leading-[1.08] tracking-[-0.025em] drop-shadow-md xxl:text-[46px] xl:text-[40px] md:max-w-[560px] md:text-[30px] sm:text-[27px]"><?php echo esc_html( $seo_hero_title ); ?></h1>
<?php if ( $seo_hero_description ) : ?>
<p class="mt-6 max-w-[680px] text-[27px] font-medium leading-[1.25] drop-shadow-md xl:text-[23px] md:mt-4 md:text-[19px] sm:text-[18px]"><?php echo esc_html( $seo_hero_description ); ?></p>
<?php endif; ?>
</div>
</div>
</section>
<section id="nuestros-servicios" class="bg-white py-20 text-color-5 lg:py-16 md:py-12" aria-labelledby="services-heading">
<div class="container px-8 xxl:px-6 md:px-5">
<h2 id="services-heading" class="text-center text-[51px] font-black uppercase leading-[1.15] xxl:text-[44px] lg:text-[38px] md:text-[30px] sm:text-[27px]">Nuestros servicios</h2>
<?php
$power_services = array(
array(
'image_id' => 18,
'title' => 'Asesoría técnica especializada y servicio de pruebas técnicas',
'text' => 'Diagnosticamos, programamos y evaluamos variadores, motores y sistemas hidráulicos para que operen con total seguridad y eficiencia.',
'path' => '/asesoria-tecnica-especializada-y-servicio-de-pruebas-tecnicas/',
),
array(
'image_id' => 19,
'title' => 'Servicios de instalación, integración y arranque',
'text' => 'Montamos y configuramos motores, tableros y bombas, asegurando que todo funcione a la primera y cumpla las normas aplicables.',
'path' => '/servicios-de-instalacion-integracion-y-arranque/',
),
array(
'image_id' => 20,
'title' => 'Servicio de mantenimiento, reparación y pólizas de servicio',
'text' => 'Prevenimos fallas con diagnósticos periódicos y refacciones originales para que tus equipos no se detengan.',
'path' => '/servicio-de-mantenimiento-reparacion-y-polizas-de-servicio/',
),
array(
'image_id' => 21,
'title' => 'Servicio de ingeniería',
'text' => 'Diseñamos protecciones, tableros y sistemas solares que optimizan energía y prolongan la vida útil de tu infraestructura.',
'path' => '/servicio-de-ingenieria/',
),
);
?>
<div class="mt-20 grid grid-cols-4 gap-6 lg:mt-12 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-12 md:mt-10 md:grid-cols-1 md:gap-10">
<?php foreach ( $power_services as $service ) : ?>
<article class="service-card group flex min-w-0 flex-col md:mx-auto md:w-full md:max-w-[469px]">
<h3 class="mb-7 flex min-h-[116px] items-center justify-center text-center text-[24px] font-semibold uppercase leading-[1.2] xxl:text-[20px] lg:min-h-[96px] md:mb-5 md:min-h-0 md:text-[20px]"><?php echo esc_html( $service['title'] ); ?></h3>
<div class="service-card-visual relative isolate overflow-hidden">
<?php echo wp_get_attachment_image( $service['image_id'], 'full', false, array( 'class' => 'block aspect-square h-auto w-full object-cover', 'alt' => $service['title'], 'loading' => 'lazy', 'sizes' => '(max-width: 767px) 469px, (max-width: 1024px) 50vw, 25vw' ) ); ?>
<div class="service-card-description absolute inset-0 flex items-center bg-black/80 p-[10%] text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100 group-focus-within:opacity-100">
<p class="text-[20px] leading-[1.45] xxl:text-[17px] lg:text-[20px] sm:text-[18px]"><?php echo esc_html( $service['text'] ); ?></p>
</div>
</div>
<a class="service-card-link mt-6 inline-flex min-h-[48px] items-center justify-center self-center bg-color-1 px-8 py-3 text-[16px] font-semibold text-white transition-colors hover:bg-color-5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-color-1" href="<?php echo esc_url( home_url( $service['path'] ) ); ?>" aria-label="<?php echo esc_attr( 'Conocer más: ' . $service['title'] ); ?>"><span>Conocer más</span><svg class="ml-5 h-6 w-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M3 12h17m-8-8 8 8-8 8"/></svg></a>
</article>
<?php endforeach; ?>
</div>
</div>
</section>
<section id="confianza-calidad" class="relative isolate flex min-h-[700px] items-center overflow-hidden bg-color-5 py-[70px] text-white md:min-h-0" aria-labelledby="confianza-calidad-title">
<?php echo wp_get_attachment_image( 1721, 'full', false, array(
'class' => 'absolute inset-0 -z-10 h-full w-full object-cover object-center',
'alt' => '',
'loading' => 'lazy',
'sizes' => '100vw',
) ); ?>
<div class="container px-[50px] md:w-[85%] md:px-0">
<div class="w-full max-w-[600px] overflow-hidden bg-[#1E1F1D] px-[47px] py-[59px] [clip-path:polygon(12%_0,100%_0,100%_88%,88%_100%,0_100%,0_12%)] md:px-[33px] md:pb-[33px] md:pt-[50px]">
<h2 id="confianza-calidad-title" class="max-w-[370px] text-[51px] font-black uppercase leading-[1.2] text-[#F8B334] lg:text-[42px] md:text-[22px]">Confianza y calidad en cada servicio con:</h2>
<ul class="mt-7 list-disc space-y-3 pl-5 text-[19px] leading-[1.65] md:mt-5 md:space-y-2 md:text-[16px]">
<li>Profesionales certificados en marcas:<span class="block">ABB, Grundfos y Franklin Electric</span></li>
<li>Respaldo directo de fabricantes líderes</li>
<li>Garantía extendida que protege tu extensión</li>
</ul>
</div>
</div>
</section>
<?php if ( $show_industrial_team ) : ?>
<section id="sobre-nosotros" class="scroll-mt-[123px] bg-white py-20 text-color-5 lg:py-16 md:py-12" aria-labelledby="seo-team-title">
<div class="container px-[50px] lg:px-8 md:w-[85%] md:px-0">
<h2 id="seo-team-title" class="mb-16 text-center text-[51px] font-black uppercase leading-tight lg:text-[40px] md:mb-10 md:text-[28px]" data-scroll-reveal>Sobre nosotros</h2>
<?php
$seo_staff_contacts = array(
array( 115, 'Miguel Rodríguez', 'Supervisor de Cuadrillas', '3319647722', 'miguel.rodriguez@powerdepot.mx' ),
array( 116, 'Abel Alvarado', 'Gerente Técnico', '3318045036', 'abel.alvarado@powerdepot.mx' ),
array( 117, 'Daniel Yorgex', 'Planeador de Centro de Servicio', '3319647722', 'daniel.yorgex@powerdepot.mx' ),
array( 118, 'Miguel Martínez', 'Supervisor de Centro de Servicio', '3318045036', 'miguel.martinez@powerdepot.mx' ),
array( 119, 'Andrea Ponce', 'Auxiliar de Centro de Servicio', '3313943756', 'centrodeservicio@powerdepot.mx' ),
);
?>
<div class="grid grid-cols-2 gap-x-14 gap-y-16 lg:grid-cols-1 md:gap-y-12">
<?php foreach ( $seo_staff_contacts as $person ) : ?>
<article class="flex items-center gap-5 sm:flex-col sm:items-start" data-scroll-reveal>
<?php echo wp_get_attachment_image( $person[0], 'full', false, array( 'class' => 'h-[150px] w-[150px] shrink-0 object-contain sm:self-center', 'alt' => $person[1], 'loading' => 'lazy', 'sizes' => '150px' ) ); ?>
<div class="min-w-0 flex-1 text-[19px] leading-snug md:text-base">
<h3 class="mb-1 text-[25px] font-normal uppercase md:text-[22px]"><?php echo esc_html( $person[1] ); ?></h3>
<p class="mb-1 font-bold"><?php echo esc_html( $person[2] ); ?></p>
<a class="flex min-h-[32px] items-center gap-2 transition-colors hover:text-color-1 focus-visible:outline focus-visible:outline-color-1" href="<?php echo esc_url( 'tel:' . $person[3] ); ?>" aria-label="<?php echo esc_attr( 'Llamar a ' . $person[1] ); ?>"><svg class="h-5 w-5 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true"><path d="M5 3H3c0 10 8 18 18 18v-5l-5-2-2 3c-3-1-6-4-7-7l3-2-2-5H5Z"/></svg><span><?php echo esc_html( $person[3] ); ?></span></a>
<a class="flex min-h-[32px] items-center gap-2 transition-colors hover:text-color-1 focus-visible:outline focus-visible:outline-color-1" href="<?php echo esc_url( 'mailto:' . $person[4] ); ?>"><svg class="h-5 w-5 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true"><rect x="2" y="4" width="20" height="16"/><path d="m2 4 10 9L22 4M2 20l7-8m13 8-7-8"/></svg><span class="[overflow-wrap:anywhere]"><?php echo esc_html( $person[4] ); ?></span></a>
</div>
</article>
<?php endforeach; ?>
</div>
</div>
</section>
<?php endif; ?>
<?php if ( $show_service_center ) : ?>
<section id="centro-servicio-especializado" class="scroll-mt-[123px] bg-white pb-20 pt-8 text-color-5 lg:pb-16 md:pb-12 md:pt-4" aria-labelledby="seo-service-center-title">
<div class="container px-8 xxl:px-6 md:px-5">
<div class="mx-auto grid max-w-[1400px] grid-cols-[2fr_3fr] items-center gap-20 xl:gap-12 lg:gap-8 md:grid-cols-1 md:gap-10">
<div class="min-w-0" data-scroll-reveal>
<div class="bg-color-5 px-10 py-16 text-white [clip-path:polygon(0_0,100%_0,100%_75%,80%_100%,0_100%)] lg:px-7 lg:py-12 md:px-8 md:py-10">
<h2 id="seo-service-center-title" class="text-[38px] font-black uppercase leading-[1.2] xl:text-[32px] lg:text-[28px] sm:text-[26px]"><span class="text-color-2">Power Depot Service Center</span> es el Centro de Servicio Especializado de <span class="text-color-1">Power Depot</span></h2>
</div>
<p class="mt-6 text-[19px] leading-[1.5] lg:text-[18px] md:text-[17px]">Nuestro objetivo es optimizar la fiabilidad, eficiencia y seguridad de tus sistemas de control y de potencia. Nuestros ingenieros, con formación continua y experiencia en campo, mejoran la fiabilidad, eficiencia energética y seguridad de tus instalaciones.</p>
<a class="mt-7 inline-flex min-h-[48px] items-center justify-center bg-color-1 px-8 py-3 text-[16px] font-semibold text-white transition-colors hover:bg-color-5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-color-1 motion-reduce:transition-none" href="<?php echo esc_url( home_url( '/equipo-power-depot-service/' ) ); ?>"><span>Nuestros beneficios</span><svg class="ml-5 h-6 w-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M3 12h17m-8-8 8 8-8 8"/></svg></a>
</div>
<div class="min-w-0" data-scroll-reveal>
<?php echo wp_get_attachment_image( 114, 'full', false, array( 'class' => 'mx-auto block h-auto w-full max-w-[602px] object-contain', 'alt' => 'Equipo de Power Depot Service Center con indumentaria de seguridad en una instalación industrial', 'loading' => 'lazy', 'sizes' => '(max-width: 767px) calc(100vw - 40px), (max-width: 1119px) 55vw, 602px' ) ); ?>
</div>
</div>
</div>
</section>
<?php endif; ?>
<section id="nuestros-clientes" class="scroll-mt-[123px] bg-white py-16 text-color-5 md:py-10" aria-label="Clientes y casos de éxito" data-clients>
<div class="container px-8 xxl:px-6 md:px-5">
<?php
$power_clients = array(
array( 'id' => 36, 'name' => 'SIAPA' ),
array( 'id' => 37, 'name' => 'PiSA' ),
array( 'id' => 38, 'name' => 'Jaloma' ),
array( 'id' => 39, 'name' => 'Plaza Patria' ),
array( 'id' => 40, 'name' => 'Punto Sur' ),
array( 'id' => 41, 'name' => 'Mutuo' ),
array( 'id' => 42, 'name' => 'Grupo Vidanta' ),
array( 'id' => 43, 'name' => 'Integnio Tala gam' ),
array( 'id' => 44, 'name' => 'Grupo Aeroportuario del Pacífico' ),
array( 'id' => 45, 'name' => 'José Cuervo' ),
array( 'id' => 46, 'name' => 'Grun Park' ),
array( 'id' => 47, 'name' => 'Hospital Comunitario Sayula' ),
array( 'id' => 48, 'name' => 'Continental' ),
);
?>
<ul id="clients-track" class="clients-track flex overflow-x-auto" tabindex="0" aria-label="Logotipos de clientes; usa las flechas para desplazarte" data-clients-track>
<?php foreach ( $power_clients as $client ) : ?>
<li class="flex h-[130px] w-1/5 shrink-0 items-center justify-center px-6 lg:w-1/3 md:h-[110px] md:w-1/2 md:px-4">
<?php echo wp_get_attachment_image( $client['id'], 'full', false, array( 'class' => 'block h-auto max-h-[90px] w-auto max-w-full object-contain grayscale md:max-h-[75px]', 'alt' => $client['name'], 'loading' => 'lazy', 'sizes' => '(max-width: 767px) 150px, 240px' ) ); ?>
</li>
<?php endforeach; ?>
</ul>
<div class="mt-3 flex flex-wrap justify-center" role="group" aria-label="Seleccionar grupo de clientes" data-clients-dots></div>
<div class="mt-8 text-center">
<a class="inline-flex min-h-[48px] items-center justify-center bg-color-1 px-8 py-3 text-[16px] font-semibold text-white transition-colors hover:bg-color-5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-color-1 motion-reduce:transition-none" href="<?php echo esc_url( home_url( '/casos-de-exito/' ) ); ?>"><span>Ver casos de éxito</span><svg class="ml-5 h-6 w-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M3 12h17m-8-8 8 8-8 8"/></svg></a>
</div>
</div>
</section>
<section id="marcas-lideres" class="scroll-mt-[123px] bg-white pb-20 pt-8 text-color-5 lg:pb-16 md:pb-12 md:pt-4" aria-labelledby="brands-heading">
<div class="container px-8 xxl:px-6 md:px-5">
<h2 id="brands-heading" class="text-center text-[51px] font-black uppercase leading-[1.15] xxl:text-[44px] lg:text-[38px] md:text-[30px] sm:text-[27px]">Trabajamos con marcas <span class="text-color-1">líderes</span></h2>
<?php
$power_brands = array(
array( 'id' => 57, 'name' => 'Franklin Electric' ),
array( 'id' => 58, 'name' => 'Control Techniques' ),
array( 'id' => 59, 'name' => 'Grundfos' ),
array( 'id' => 60, 'name' => 'Baldor' ),
array( 'id' => 61, 'name' => 'General Electric' ),
array( 'id' => 62, 'name' => 'CLA-VAL' ),
array( 'id' => 63, 'name' => 'ABB' ),
array( 'id' => 57, 'name' => 'Franklin Electric' ),
array( 'id' => 64, 'name' => 'Danfoss' ),
array( 'id' => 65, 'name' => 'Altamira' ),
array( 'id' => 66, 'name' => 'Wolong' ),
);
?>
<ul class="mx-auto mt-12 flex max-w-[1400px] flex-wrap justify-center gap-y-8 md:mt-8 md:gap-y-5" aria-label="Marcas con las que trabajamos">
<?php foreach ( $power_brands as $brand ) : ?>
<li class="flex h-[110px] w-1/4 items-center justify-center px-6 md:h-[85px] md:w-1/2 md:px-3">
<?php echo wp_get_attachment_image( $brand['id'], 'full', false, array( 'class' => 'block h-auto max-h-[90px] w-auto max-w-full object-contain grayscale md:max-h-[65px]', 'alt' => $brand['name'], 'loading' => 'lazy', 'sizes' => '(max-width: 767px) 160px, 280px' ) ); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
</section>
<section id="estamos-certificados" class="relative isolate scroll-mt-[123px] overflow-hidden bg-white pb-28 pt-16 text-color-5 md:pb-20 md:pt-12" aria-labelledby="certified-heading">
<?php echo wp_get_attachment_image( 70, 'full', false, array( 'class' => 'pointer-events-none absolute inset-0 -z-10 h-full w-full object-cover', 'alt' => '', 'loading' => 'lazy', 'sizes' => '100vw' ) ); ?>
<canvas class="pointer-events-none absolute inset-0 -z-10 h-full w-full" aria-hidden="true" data-certification-waves data-noise-src="<?php echo esc_url( get_template_directory_uri() . '/js/lib/simplex-noise.module.js' ); ?>"></canvas>
<div class="container px-8 xxl:px-6 md:px-5">
<h2 id="certified-heading" class="text-center text-[51px] font-black uppercase leading-[1.15] xxl:text-[44px] lg:text-[38px] md:text-[30px] sm:text-[27px]">Estamos certificados</h2>
<ul class="mx-auto mt-16 grid max-w-[900px] grid-cols-3 items-start gap-10 text-center md:mt-10 md:grid-cols-1 md:gap-10" aria-label="Certificaciones de nuestro equipo">
<li>
<?php echo wp_get_attachment_image( 67, 'full', false, array( 'class' => 'mx-auto block h-[150px] w-auto max-w-full object-contain md:h-[140px]', 'alt' => 'ABB Value Provider', 'loading' => 'lazy' ) ); ?>
<ul class="mt-4 text-[16px] leading-[1.3]">
<li>Programación de Variadores ABB</li>
<li>Programación PLC ABB</li>
<li>Plataforma Zenon ABB</li>
</ul>
</li>
<li>
<?php echo wp_get_attachment_image( 68, 'full', false, array( 'class' => 'mx-auto block h-[150px] w-auto max-w-full object-contain md:h-[140px]', 'alt' => 'Grundfos Service & Solutions', 'loading' => 'lazy' ) ); ?>
</li>
<li>
<?php echo wp_get_attachment_image( 69, 'full', false, array( 'class' => 'mx-auto block h-[150px] w-auto max-w-full object-contain md:h-[140px]', 'alt' => 'Franklin Electric: técnicos instaladores', 'loading' => 'lazy' ) ); ?>
</li>
</ul>
</div>
</section>
<section id="contacto-ingenieros" class="scroll-mt-[123px] bg-white py-20 text-color-5 lg:py-16 md:py-12" aria-labelledby="contact-heading">
<div class="container px-8 xxl:px-6 md:px-5">
<h2 id="contact-heading" class="text-center text-[44px] font-black uppercase leading-[1.2] lg:text-[36px] md:text-[30px] sm:text-[27px]">Habla con nuestros ingenieros</h2>
<p class="mt-8 text-center text-[22px] leading-[1.4] md:mt-5 md:text-[19px]">Mantén tu operación siempre activa</p>
<div class="ps-contact-form mx-auto mt-12 max-w-[550px] md:mt-8">
<?php if ( shortcode_exists( 'contact-form-7' ) ) : ?>
<?php echo do_shortcode( '[contact-form-7 id="71" title="PowerService — Habla con nuestros ingenieros" html_id="home-contacto"]' ); ?>
<?php else : ?>
<p class="text-center">Contáctanos por <a class="text-color-1 underline" href="https://wa.me/5213318079513">WhatsApp</a> para solicitar más información.</p>
<?php endif; ?>
</div>
</div>
</section>
</main>
<?php get_footer(); ?>