<?php
    include 'contactoPhp/paises-estados.php';                
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="theme-color" content="#1faf71">
    <link href='images/index/icono_h2.png' rel='shortcut icon' type='image/vnd.microsoft.icon'>
    <title>ITTEC | Tecnología Inteligente</title>
    <!-- slick -->
    <link rel="stylesheet" type="text/css" href="css/slick/slick.css" />
    <link rel="stylesheet" type="text/css" href="css/slick/slick-theme.css" />
    <!-- Bootstrap -->
    <link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- style this page -->
    <link href="css/style-template.css" rel="stylesheet">
    <link href="css/style-layout.css" rel="stylesheet">
    <link href="css/lang-selector.css" rel="stylesheet">
    <!-- Para animaciones -->
    <link href="css/animations.css" rel="stylesheet">
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <!-- Para la transición -->
    <script src="lib/jquery.js"></script>
    <script src="lib/jquery.bgswitcher.js"></script>
    <!-- Skeleton Loader -->
    <link rel="stylesheet" href="css/placeholder-loading.min.css">
    <!-- sweet alert -->
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
    <!-- development version, includes helpful console warnings -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <!-- production version, optimized for size and speed -->
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
    <!-- Axios -->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <script src="https://www.google.com/recaptcha/api.js?render=6LfGubMZAAAAADR-Ue6fj5qc5NuleCoUssAgoRWA"></script>

</head>

<body>
    <header id="header-vuejs">
        <?php  include 'header2.html' ?>
    </header>
    <div id="body-content">
        <!-- Skeleton-loader -->
        <div class="container-fluid skeleton-loading">
            <!-- Header -->
            <div class="row skeleton-header">
                <div class="hd-skeleton-logo pulse" style="width: 18rem;">
                    <div class="card-body img-hd">
                        <div class="ph-picture" style="height: 75px;"></div>
                    </div>
                </div>
                <div class="hd-skeleton-card pulse">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-col-10 big"></div>
                        </div>
                    </div>
                </div>
                <div class="hd-skeleton-card pulse">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-col-10 big"></div>
                        </div>
                    </div>
                </div>
                <div class="hd-skeleton-card pulse">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-col-10 big"></div>
                        </div>
                    </div>
                </div>
                <div class="hd-skeleton-search pulse">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-picture" style="height: 41px;"></div>
                        </div>
                    </div>
                </div>            
            </div>
        </div>
        <div class="container skeleton-loading">
            <div class="ph-row pulse">
                <div class="ph-col-4 empty"></div>
                <div class="ph-col-4 big"></div>
                <div class="ph-col-2 empty"></div>
            </div>
            <div class="row">
                <div class="container col-6 skeleton-video pulse">
                    <div class="ph-picture video-sk" style="height:300px;"></div>
                    <div class="ph-row">
                        <div class="ph-col-2 "></div>
                        <div class="ph-col-2 empty"></div>
                        <div class="ph-col-8 "></div>
                    </div>
                </div>
            </div>
            <div class="ph-row pulse">
                <div class="ph-col-12 empty"></div>
                <div class="ph-col-12"></div>
                <div class="ph-col-10"></div>
                <div class="ph-col-8"></div>
                <div class="ph-col-10"></div>
                <div class="ph-col-12"></div>
            </div>
            <div class="ph-row pulse">
                <div class="ph-col-12 empty"></div>
                <div class="ph-col-12"></div>
                <div class="ph-col-10"></div>
                <div class="ph-col-8"></div>
                <div class="ph-col-10"></div>
                <div class="ph-col-12"></div>
            </div>
            <div class="ph-row pulse">
                <div class="ph-col-12 empty"></div>
                <div class="ph-col-2 empty"></div>
                <div class="ph-col-8 big"></div>
            </div>
            <div class="container skeleton-loading">
                <div class="row">
                    <div class="col container pulse">
                        <div class="ph-row">
                            <div class="ph-col-6 big"></div>
                            <div class="ph-col-6 empty"></div>
                            <div class="ph-col-6 big"></div>
                            <div class="ph-col-6 empty"></div>
                        </div>
                        <div class="ph-row">
                            <div class="ph-col-8"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-12"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-8"></div>
                            <div class="ph-col-12 big empty"></div>
                        </div>
                        <div class="ph-row">
                            <div class="ph-col-8"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-12"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-8"></div>
                        </div>
                    </div>
                    <div class="container col skeleton-video pulse">
                        <div class="ph-picture video-sk" style="height:300px;"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="skeleton-loading d-flex flex-row justify-content-center alig-items-center">
            <div class="row">
                <div class="pulse skeleton-loading" style="width: 18rem;">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-col-10 big"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-12"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-8"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-8"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-6"></div>
                        </div>
                    </div>
                </div>
                <div class="pulse skeleton-loading" style="width: 18rem;">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-col-10 big"></div>
                            <div class="ph-col-2 empty big"></div>
                            <div class="ph-col-6"></div>
                            <div class="ph-col-4 empty"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-8"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-10"></div>
                            <div class="ph-col-2 empty"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-4"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-12"></div>
                        </div>
                    </div>
                </div>
                <div class="pulse skeleton-loading" style="width: 18rem;">
                    <div class="card-body">
                        <div class="ph-row">
                            <div class="ph-col-10 big"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-picture ph-col-2 big"></div>
                            <div class="ph-col-2 empty"></div>
                            <div class="ph-col-8"></div>
                            <div class="ph-picture ph-col-2 big"></div>
                            <div class="ph-col-2 empty"></div>
                            <div class="ph-col-8"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-10 big"></div>
                            <div class="ph-col-12 empty"></div>
                            <div class="ph-col-12"></div>
                        </div>
                    </div>
                </div>
                <div class="pulse skeleton-loading" style="width: 18rem;">
                    <div class="card-body">
                        <div class="ph-picture img-sk"></div>
                    </div>
                </div>            
            </div>
        </div>
        <div id="contacto-vue">
            <div class="languajes" style="z-index: 1;">
                <div class="lang-menu">
                    <div id="select" class="selected-lang">
                    </div>
                    <ul id="opciones">
                        <li>
                            <a href="#" @click="cambiarIdioma('es');guardarIdioma('es')" class="es">{{ $t("message.esp") }}</a>
                        </li>
                        <li >
                            <a href="#"  @click="cambiarIdioma('en');guardarIdioma('en')" class="en">{{ $t("message.eng") }}</a>
                        </li>                    
                    </ul> 
                </div>
            </div>
            <!-- Fin Skeleton-Loader -->
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-6 col-ms-12 col-12 d-flex align-items-center">
                        <div class="container margin-from">
                            <h2 class="title-form">{{stringContacto}}</h2>
                            <div class="form-row">
                                <div class="form-group col-md-12">
                                <input type="hidden" name="recaptcha_response" id="recaptchaResponse">
                                    <select class="custom-select required-entry form-control bg-gray-input" v-model="necesito" >
                                        <option value='' selected disabled style="color: #cccccc">{{phNecesito}}</option>
                                        <option v-for="necesito in arrNecesito" :value="necesito">{{necesito}}</option>                                
                                    </select>
                                    <span class="error ml-2" v-if="errors.necesito!=null">{{errors.necesito}}</span>
                                </div>
                                <div class="form-group col-md-6" >
                                    <input :placeholder="phNombre" class="form-control bg-gray-input" v-model="nombre" type="text"/>
                                    <span class="error ml-2" v-if="errors.nombre!=null">{{errors.nombre}}</span>
                                </div>
                                <div class="form-group col-md-6">
                                    <input :placeholder="phApellidos" class="form-control bg-gray-input" v-model="apellido" type="text"/>
                                    <span class="error ml-2" v-if="errors.apellido!=null">{{errors.apellido}}</span>
                                </div>
                                <div class="form-group col-md-12">
                                    <select class="custom-select form-control bg-gray-input" v-model="cargo">
                                        <option value='' selected disabled style="color: #cccccc">{{phCargo}}</option>
                                        <option v-for="puesto in arrPuesto" :value="puesto">{{puesto}}</option>                                
                                    </select>
                                    <span class="error ml-2" v-if="errors.cargo!=null">{{errors.cargo}}</span>
                                </div>
                                <div class="form-group col-md-12">
                                    <input :placeholder="phEmpresa" class="form-control bg-gray-input" v-model="empresa" type="text"/>
                                    <span class="error ml-2" v-if="errors.empresa!=null">{{errors.empresa}}</span>
                                </div>
                                <div class="form-group col-md-6">
                                    <select class="custom-select form-control bg-gray-input" v-model="pais">
                                        <option value='' selected disabled style="color: #cccccc">{{phPais}}</option>
                                        <option value='MEXICO'>MÉXICO</option>
                                        <?php
                                            foreach ($paises as $pais) {
                                                if ($pais!= 'MX') {
                                                    echo "<option value='".$pais."'>".$pais."</option>";
                                                }
                                            }
                                        ?>
                                    </select>
                                    <span class="error ml-2" v-if="errors.pais!=null">{{errors.pais}}</span>
                                </div>
                                <div class="form-group col-md-6">
                                    <input :placeholder="phTelefono" class="form-control bg-gray-input" v-model="telefono"/>
                                    <span class="error ml-2" v-if="errors.telefono!=null">{{errors.telefono}}</span>
                                </div>
                                <div v-show="pais=='MEXICO'" class="form-group col-md-12" id="divEstado">
                                    <select class="custom-select form-control bg-gray-input" v-model="estado">
                                    <option value='' selected disabled style="color: #cccccc">{{phEstado}}</option>
                                        <?php
                                            foreach ($estados as $estado) {
                                                echo "<option value='".$estado."'>".$estado."</option>";
                                            }
                                        ?>
                                    </select>
                                    <span class="error ml-2" v-if="errors.estado!=null">{{errors.estado}}</span>
                                </div>
                                <div class="form-group col-md-12">
                                    <input :placeholder="phCorreo" class="form-control bg-gray-input" v-model="email"/>
                                    <span class="error ml-2" v-if="errors.email!=null">{{errors.email}}</span>
                                </div>
                                <div class="form-group col-md-12">
                                    <textarea :placeholder="phComentarios" class="form-control bg-gray-input" v-model="comentarios"></textarea>
                                    <span class="error ml-2" v-if="errors.comentarios!=null">{{errors.comentarios}}</span>
                                </div>
                                <div class="form-group pl-4 col-md-12">
                                    <div class="chk">
                                        <input type="checkbox" class="form-check-input" v-model="aceptar_condiciones" type="checkbox">
                                        <label for="aceptar_condiciones" >{{phTerminos1}} <a class="no-underlinee" href="#" target="_blank">{{phTerminos2}}</a></label>
                                        <div>
                                            <span class="error" v-show="errors.aceptar_condiciones">{{errors.aceptar_condiciones}}</span>
                                        </div>
                                    </div>
                                </div>
                                <div v-if="!loader" class="col-md-12">
                                    <div class="btn-margin">
                                        <button @click="validarFormulario" class="mb-5 btn btn-form btn-lg btn-block">{{stringBtn}}</button>
                                    </div>
                                </div>
                                <div v-if="loader" class="col-md-12 text-center mb-5" id="loading">
                                    <img src="images/loader.gif" width="50px">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-ms-12 col-12">
                        <img class="img-fluid d-none d-sm-none d-md-block" src="images/index/form-contacto.png" alt="Contacto ITTEC">
                    </div>
                </div>
                <div class="row bottom-triangle">
                    <img src="images/index/triangulo.png" width="100%" alt="">
                </div>
            </div> 
        </div>
    </div>
  
    <footer id="footer-vuejs">
        <?php include 'footer.html' ?>
        <!-- <?php  //include 'modal-boletin.html' ?> -->
    </footer>
    <script>
        $(window).load(function(){ $('header,#content-principal,footer').css('display','block'); $('.skeleton-loading').css('display','none'); $('header #optC').addClass('active');}); $("#optA").mouseout(function(){ $(this).removeClass('active');}); $("#optB").mouseout(function(){ $(this).removeClass('active');}); $('#body-content').mouseenter(function(){ $('.submenu-conoce').hide('slow'); $('.submenu-construye').hide('slow');});
    </script>
    <!-- development version, includes helpful console warnings -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <!-- production version, optimized for size and speed -->
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
    <!-- Vue i18n -->
    <script src="https://unpkg.com/vue-i18n/dist/vue-i18n.js"></script>
    <!-- instancias vue -->
    <script src="contactoPhp/form-vue.js"></script>
    <script src="lang/footer-vue.js"></script>
    <script src="lang/header-vue.js"></script>
    <script src="js/boletin-vue.js"></script>
</body>
</html>