title: Smooth Scroll not working properly on mobile layout
body: <p>I'm doing a site and in browser layout, smooth-scroll works perfectly but in mobile layout when I click in a link it doesn't leave me in the right place. Always much lower. Why? 
  I have reviewed the code and documentation of Smooth Scroll but I can not find anything wrong.</p>
  
  <p>Here is my code: 
  <a href="https://codepen.io/ZeR0ByTe/pen/wrbMRZ" rel="nofollow noreferrer">https://codepen.io/ZeR0ByTe/pen/wrbMRZ</a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="es"&gt;
  &lt;head&gt;
      &lt;!-- Required meta tags --&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"&gt;
      &lt;!-- Bootstrap CSS --&gt;
      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
      &lt;link href="css/font-awesome.min.css" rel="stylesheet"&gt;
      &lt;!-- ESTILOS CSS --&gt;
      &lt;link href="css/estilo.css" rel="stylesheet"&gt;
      &lt;link href="css/responsive.css" rel="stylesheet"&gt;
      &lt;link rel="stylesheet" href="css/animate.css"&gt;
      &lt;link rel="stylesheet" href="css/owl.carousel.min.css"&gt;
      &lt;link rel="stylesheet" href="css/owl.theme.default.min.css"&gt;
      &lt;link rel="stylesheet" href="css/blueimp-gallery.min.css"&gt;
      &lt;!-- scroll --&gt;
      &lt;script src="js/smooth-scroll.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/wow.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
  
  
      &lt;/script&gt;
  &lt;/link&gt;
  &lt;/link&gt;
  &lt;/link&gt;
  &lt;/meta&gt;
  &lt;/meta&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;header class="d-none d-md-block" &gt;
          &lt;div id="sliderFotos" class="carousel slide" data-ride="carousel"&gt;
              &lt;ol class="carousel-indicators"&gt;
                  &lt;li data-target="#sliderFotos" data-slide-to="0" class="active"&gt;&lt;/li&gt;
                  &lt;li data-target="#sliderFotos"  data-slide-to="1"&gt;&lt;/li&gt;
                  &lt;li data-target="#sliderFotos"  data-slide-to="2"&gt;&lt;/li&gt;
              &lt;/ol&gt;
              &lt;div class="carousel-inner" role="listbox"&gt;
                  &lt;!-- Slide One - Set the background image for this slide in the line below --&gt;
                  &lt;div class="carousel-item active" style="background-image: url(img/bg-4.jpg"&gt;
                      &lt;div class="carousel-caption d-none d-md-block"&gt;
                          &lt;div class="row"&gt;
  
                              &lt;div class="col-4 d-flex"&gt;
                                  &lt;img class="img-fluid align-self-center logo wow bounceIn" data-wow-duration="1s" src="img/logoSB.png" width="300" height="300" alt=""&gt;
                              &lt;/div&gt;
                              &lt;div class="col-8"&gt;
                                  &lt;div class="jumbotron wow bounceIn" data-wow-duration="1s"&gt;
                                      &lt;h1 class="display-2 bg-warning"&gt;Bienvenidos!&lt;/h1&gt;
                                      &lt;p class="lead"&gt;Aca iría un primer mensaje de presentación a la página, noticia u otra cosa.&lt;/p&gt;
                                      &lt;hr class="m-y-md"&gt;
                                      &lt;p&gt;Y se puede complementar con otro texto acá, pero más corto.&lt;/p&gt;
                                      &lt;p class="lead"&gt;
                                          &lt;a class="btn btn-warning btn-lg" href="#servicio" role="button"&gt;&lt;i class="fa fa-arrow-down fa-lg mr-2"&gt;&lt;/i&gt;Más info
                                          &lt;/a&gt;
  
                                      &lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;!-- Slide Two - Set the background image for this slide in the line below --&gt;
                  &lt;div class="carousel-item" style="background-image: url(img/bg-7.jpg"&gt;
                      &lt;div class="carousel-caption d-none d-md-block"&gt;
                          &lt;h3&gt;ALGÚN MENSAJE 2&lt;/h3&gt;
                          &lt;p&gt;Descripción 2do mensaje.&lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;!-- Slide Three - Set the background image for this slide in the line below --&gt;
                  &lt;div class="carousel-item" style="background-image: url(img/bg-5.jpg"&gt;
                      &lt;div class="carousel-caption d-none d-md-block"&gt;
                          &lt;h3&gt;ALGÚN MENSAJE 3&lt;/h3&gt;
                          &lt;p&gt;Descripción 3er mensaje.&lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;!-- CONTROLES SLIDER --&gt;
              &lt;a data-scroll-ignore class="carousel-control-prev" href="#sliderFotos" role="button" data-slide="prev"&gt;
                  &lt;span class="carousel-control-prev-icon" aria-hidden="true"&gt;&lt;/span&gt;
                  &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
              &lt;/a&gt;
              &lt;a data-scroll-ignore class="carousel-control-next" href="#sliderFotos" role="button" data-slide="next"&gt;
                  &lt;span class="carousel-control-next-icon" aria-hidden="true"&gt;&lt;/span&gt;
                  &lt;span class="sr-only"&gt;Next&lt;/span&gt;
              &lt;/a&gt;
          &lt;/div&gt;
      &lt;/header&gt;
      &lt;!-- NAVBAR --&gt;
      &lt;nav class="navbar navbar-expand-xl navbar-dark bg-dark sticky-top"&gt;
          &lt;a class="navbar-brand" href="#"&gt;
              SBGuardavidas
          &lt;/img&gt;
      &lt;/a&gt;
      &lt;button aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbarSupportedContent" data-toggle="collapse" type="button"&gt;
          &lt;span class="navbar-toggler-icon"&gt;
          &lt;/span&gt;
      &lt;/button&gt;
      &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
          &lt;ul class="navbar-nav m-auto text-center"&gt;
              &lt;a class="nav-item nav-link active" data-scroll href="#"&gt;
                  Inicio
              &lt;/a&gt;
              &lt;a class="nav-item nav-link"  data-scroll href="#nosotros"&gt;
                  Nosotros
              &lt;/a&gt;
              &lt;a class="nav-item nav-link"  href="#"&gt;
                  Publicidad
              &lt;/a&gt;
              &lt;li class="nav-item dropdown"&gt;
                  &lt;a aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown" href="" id="navbarDropdownMenuLink"&gt;
                      Eventos
                  &lt;/a&gt;
                  &lt;div aria-labelledby="navbarDropdownMenuLink" class="dropdown-menu"&gt;
                      &lt;a class="dropdown-item" data-scroll href="#conciencia"&gt;
                          PROYECTO +CONCIENCIA
                      &lt;/a&gt;
                      &lt;a  class="dropdown-item" data-scroll href="#"&gt;
                          Antorchada
                      &lt;/a&gt;
                      &lt;a class="dropdown-item" data-scroll  href="#"&gt;
                          Competencias
                      &lt;/a&gt;
                  &lt;/div&gt;
              &lt;/li&gt;
              &lt;a class="nav-item nav-link" data-scroll href="#galeria"&gt;
                  Galería
              &lt;/a&gt;
              &lt;a class="nav-item nav-link" data-scroll href="#contacto"&gt;
                  Contacto
              &lt;/a&gt;
          &lt;/ul&gt;
          &lt;div class="d-flex flex-row justify-content-center"&gt;
              &lt;a class="mr-2 mx-2" href="#"&gt;
                  &lt;i class="fa fa-2x fa-facebook-official" aria-hidden="true"&gt;&lt;/i&gt;
  
              &lt;/a&gt;
              &lt;a class="" href="#"&gt;
                  &lt;i class="fa fa-2x fa-instagram" aria-hidden="true"&gt;&lt;/i&gt;
  
              &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  &lt;!-- FIN NAVBAR --&gt;
  &lt;!-- NOTICIAS --&gt;
  &lt;section class=" d-flex justify-content-center align-content-center flex-wrap iconos" &gt;
      &lt;div class="container-fluid" &gt;
          &lt;div class="row"&gt;
              &lt;div class="col-lg-12 text-center"&gt;
                  &lt;h2 class="" id="servicio" &gt;
                      SIEMPRE A TU SERVICIO
                  &lt;/h2&gt;
                  &lt;hr&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="container my-5"&gt;
          &lt;div class="row "&gt;
              &lt;div class="col-lg-3 col-md-6 text-center wow fadeInUp" data-wow-duration="0.2s"&gt;
                  &lt;div class=""&gt;
                      &lt;i class="fa fa-5x fa-binoculars text-danger sr-icons"&gt;
                      &lt;/i&gt;
                      &lt;h3&gt;
                          Seguridad
                      &lt;/h3&gt;
                      &lt;p class="text-muted"&gt;
                          A tu cuidado en la playa, continuamente vigilando.
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="col-lg-3 col-md-6 text-center wow fadeInUp" data-wow-duration="0.4s"&gt;
                  &lt;div class="service-box"&gt;
                      &lt;i class="fa fa-5x fa-handshake-o text-danger fa-fw"&gt;
                      &lt;/i&gt;
                      &lt;h3&gt;
                          Confianza
                      &lt;/h3&gt;
                      &lt;p class="text-muted"&gt;
                          Trabajamos en equipo para un mejor resultado.
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="col-lg-3 col-md-6 text-center wow fadeInUp" data-wow-duration="0.6s"&gt;
                  &lt;div class="service-box"&gt;
                      &lt;i class="fa fa-5x fa-globe text-danger sr-icons"&gt;
                      &lt;/i&gt;
                      &lt;h3&gt;
                          Medio Ambiente
                      &lt;/h3&gt;
                      &lt;p class="text-muted"&gt;
                          Protegemos, concientizamos y educamos.
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="col-lg-3 col-md-6 text-center wow fadeInUp" data-wow-duration="0.8s"&gt;
                  &lt;div class="service-box"&gt;
                      &lt;i class="fa fa-5x fa-heart text-danger sr-icons"&gt;
                      &lt;/i&gt;
                      &lt;h3&gt;
                          Pasión
                      &lt;/h3&gt;
                      &lt;p class="text-muted"&gt;
                          Amamos lo que hacemos.
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/section&gt;
  &lt;!-- FIN NOTICIAS --&gt;
  &lt;!-- NOSOTROS --&gt;
  &lt;div class="container-fluid nosotros d-flex justify-content-center align-items-center" &gt;
      &lt;div class="row"&gt;
          &lt;div class="col-sm-12"&gt;
              &lt;h2 class="text-center" id="nosotros"&gt;
                  NOSOTROS
              &lt;/h2&gt;
              &lt;hr&gt;
              &lt;p class="lead text-center"&gt;
                  Conocenos un poco más...
              &lt;/p&gt;
          &lt;/div&gt;
  
          &lt;div class="col-sm-12 col-md-6 p-4"&gt;
              &lt;p class=""&gt;
                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias iste explicabo consectetur mollitia aperiam unde dolor molestias quasi, fuga ipsam incidunt fugiat, quia molestiae eveniet. Aspe
              &lt;/p&gt;
              &lt;p class=""&gt;
                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias iste explicabo consectetur mollitia aperiam unde dolor molestias quasi, fuga ipsam incidunt fugiat, quia molestiae eveniet. Aspe
              &lt;/p&gt;
              &lt;p class=""&gt;
                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias iste explicabo consectetur mollitia aperiam unde dolor molestias quasi, fuga ipsam incidunt fugiat, quia molestiae eveniet. Aspe
              &lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="col-sm-12 col-md-6 p-4"&gt;
              &lt;img alt="" class="img-fluid" src="img/equipo.jpg"&gt;
          &lt;/img&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- FIN NOSOTROS --&gt;
  &lt;!-- +CONCIENCIA --&gt;
  &lt;div class="container-fluid" &gt;
      &lt;div class="row "&gt;
          &lt;div class="col-sm-12 col-md-6 d-flex justify-content-center align-items-center conciencia-izquierda "&gt;
              &lt;img alt="" class="img-fluid" width="400" height="400" src="img/logoSB.png"&gt;
          &lt;/img&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-12 col-md-6 d-flex justify-content-center align-items-center flex-wrap conciencia-derecha"&gt;
          &lt;h2 class="" id="conciencia"&gt;
              PROYECTO +CONCIENCIA
          &lt;/h2&gt;
          &lt;div class="col-md-12"&gt;
              &lt;p&gt;
                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum, temporibus, animi. Nesciunt fugit unde voluptates cum, aut, quia, doloribus laborum inventore quam nemo repudiandae veniam? Sapiente tempora iusto suscipit quae at eligendi nobis odit voluptatibus quos perspiciatis, assumenda deserunt modi enim minima numquam facilis quis dignissimos, molestias veniam culpa amet!
              &lt;/p&gt;
              &lt;p&gt;
                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem et cumque, aliquid. Magnam sapiente aliquam repellat dolorum harum,Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quas dignissimos aut dolorum aliquam minus, rerum. 
              &lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- FIN CONCIENCIA --&gt;
  &lt;!-- GALERIA --&gt;
  
  
  
  
  &lt;div class="container-fluid galeria d-flex align-items-center"&gt;
      &lt;div class="row "&gt;
          &lt;div class="col-md-12"&gt;
              &lt;h2 class="text-center text-white" id="galeria"&gt;
                  GALERÍA
              &lt;/h2&gt;
              &lt;hr&gt;
              &lt;p class="lead text-center text-white"&gt;
                  Un poco de nuestros momentos...
              &lt;/p&gt;
          &lt;/div&gt;
          &lt;!-- The container for the list of example images --&gt;
          &lt;div id="links" class="text-center p-2"&gt;
  
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
  
  
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
  
  
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
  
              &lt;a href="img/road.jpg" title="Banana" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300"  src="img/road.jpg" alt="Banana"&gt;
              &lt;/a&gt;
              &lt;a href="img/shelter.jpg" title="Apple" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/shelter.jpg" alt="Apple"&gt;
              &lt;/a&gt;
              &lt;a href="img/sea.jpg" title="Orange" data-gallery&gt;
                  &lt;img class="img-fluid" width="150" height="300" src="img/sea.jpg" alt="Orange"&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;!-- The Gallery as lightbox dialog, should be a child element of the document body --&gt;
          &lt;div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls"&gt;
              &lt;div class="slides"&gt;&lt;/div&gt;
              &lt;h3 class="title"&gt;&lt;/h3&gt;
              &lt;a class="prev"&gt;‹&lt;/a&gt;
              &lt;a class="next"&gt;›&lt;/a&gt;
              &lt;a class="close"&gt;×&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  
  
  
  
  
  
  
  &lt;!-- FIN GALERIA --&gt;
  
  &lt;!-- SPONSORS --&gt;
  &lt;div class="container-fluid bg-warning sponsors d-none d-lg-block"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-12"&gt;
              &lt;h2 class="text-center text-white"&gt;MARCAS QUE NOS APOYAN&lt;/h2&gt;
              &lt;hr&gt;
              &lt;p class="lead text-center text-white"&gt;
                  Cada temporada confían en nosotros...
              &lt;/p&gt;
              &lt;div class="col-12 owl-carousel owl-theme"&gt;
                  &lt;div class="item my-3"&gt;
                      &lt;img class="" src="img/partner-1.png" alt="Effacy partner"&gt;
                  &lt;/div&gt;
  
                  &lt;div class="item my-3"&gt;
                      &lt;img class="" src="img/partner-2.png" alt="Effacy partner"&gt;
                  &lt;/div&gt;
  
                  &lt;div class="item my-3"&gt;
                      &lt;img class="" src="img/partner-3.png" alt="Effacy partner"&gt;
                  &lt;/div&gt;
  
                  &lt;div class="item my-3"&gt;
                      &lt;img class="" src="img/partner-1.png" alt="Effacy partner"&gt;
                  &lt;/div&gt;
  
                  &lt;div class="item my-3"&gt;
                      &lt;img class="img-fluid center-block" src="img/partner-2.png" alt="Effacy partner"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- FIN SPONSORS --&gt;
  &lt;!-- CONTACTO --&gt;
  &lt;div class="container" &gt;
      &lt;div class="row d-flex justify-content-center align-content-center contacto"&gt;
          &lt;div class="col-12"&gt;
              &lt;h2 class="text-center" id="contacto"&gt;CONTACTO&lt;/h2&gt;
              &lt;hr&gt;
              &lt;p class="lead text-center mb-5"&gt;
                  Comunicate con nosotros ante cualquier duda.
              &lt;/p&gt;
  
          &lt;/div&gt;
  
      &lt;div class="row justify-content-center"&gt;
                  &lt;!-- MENSAJE DE ENVIO Y ERROR PHP --&gt;
          &lt;div class="alert alert-success alert-dismissible fade show" role="alert"&gt;
              &lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;
                  &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
              &lt;/button&gt;
              &lt;strong&gt;Mensaje enviado correctamente.&lt;/strong&gt; En poco tiempo te respodemos. ¡Muchas gracias!
  
          &lt;/div&gt;
  
          &lt;div class="alert alert-danger alert-dismissible fade show" role="alert"&gt;
              &lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;
                  &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
              &lt;/button&gt;
              &lt;strong&gt;Error, hubo un problema.&lt;/strong&gt; Intentalo otra vez. ¡Muchas gracias!
  
          &lt;/div&gt;
          &lt;!-- FIN MENSAJE DE ENVIO Y ERROR PHP --&gt;
      &lt;/div&gt;
          &lt;!-- FORM LADO IZQUIERDO --&gt;
          &lt;div class="col-md-12 col-lg-4"&gt;
              &lt;form action="&lt;?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?&gt;" method="post"&gt;
                  &lt;div class="input-group mb-3"&gt;
                      &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-user fa-fw"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;input class="form-control" type="text" placeholder="Nombre"&gt;
                  &lt;/div&gt;
  
                  &lt;div class="input-group mb-3"&gt;
                      &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-envelope-o fa-fw"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;input class="form-control" type="text" placeholder="E-mail"&gt;
                  &lt;/div&gt;
  
                  &lt;div class="input-group mb-3"&gt;
                      &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-mobile fa-fw"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;input class="form-control" type="text" placeholder="Celular"&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
              &lt;!-- FORM LADO DERECHO --&gt;
              &lt;div class="col-md-12 col-lg-8"&gt;
                  &lt;div class="input-group mb-3"&gt;
                      &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-commenting fa-fw"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;textarea class="form-control" id="exampleFormControlTextarea1" rows="6" placeholder="Escriba su mensaje..."&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
              &lt;button type="submit" class="btn btn-success align-s"&gt;&lt;i class="fa fa-paper-plane fa-lg mr-2"&gt;&lt;/i&gt;Enviar&lt;/button&gt;
              &lt;button type="reset" class="btn btn-danger align-s"&gt;&lt;i class="fa fa-trash-o fa-lg mr-2"&gt;&lt;/i&gt;Borrar&lt;/button&gt;
  
  
              &lt;!-- BOTON MOSTRAR MAPA DE SB --&gt;
              &lt;button id="mapa" type="button" class="btn btn-lg btn-block btn-warning mt-5" data-toggle="modal" data-target="#mostrarMapa"&gt;Mapa de San Bernardo&lt;/button&gt;
  
  
              &lt;!-- MODAL MAPA DE SB --&gt;
              &lt;div class="modal fade" id="mostrarMapa" tabindex="-1" role="dialog" aria-labelledby="modalLabelLarge" aria-hidden="true"&gt;
                  &lt;div class="modal-dialog modal-lg"&gt;
                      &lt;div class="modal-content"&gt;
  
                          &lt;div class="modal-header"&gt;
                              &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
                                  &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                              &lt;/button&gt;
                              &lt;h4 class="modal-title" id="modalLabelLarge"&gt;Mapa de San Bernardo - Horarios ENERO / FEBRERO&lt;/h4&gt;
                          &lt;/div&gt;
  
                          &lt;div class="modal-body"&gt;
                              &lt;img class="img-fluid" src="img/mapa2.png"&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;/div&gt;
  &lt;!-- FIN CONTACTO --&gt;
  
  &lt;!-- Optional JavaScript --&gt;
  &lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;
  &lt;script src="js/jquery-3.2.1.min.js"&gt;&lt;/script&gt;
  &lt;!-- Popper --&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/owl.carousel.js"&gt;&lt;/script&gt;
  &lt;script src="js/blueimp-gallery.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.blueimp-gallery.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;$(document).ready(function(){
              // Animacion Scroll (animate.css)
              new WOW().init(); 
              // SmoothScroll
              var scroll = new SmoothScroll('a[href*="#"]', {
    // Speed &amp; Easing
    speed: 2000, // Integer. How fast to complete the scroll in milliseconds
    offset: 0, // Integer or Function returning an integer. How far to offset the scrolling anchor location in pixels
    easing: 'easeInOutQuart', // Easing pattern to use
  });
  
      // COMIENZO CARROUSEL
      $(".owl-carousel").owlCarousel({
          items:8,
          loop: true,
          margin: 30,
          autoplayTimeout:1500,
          center: true,
          autoplay: true,
          autoplayHoverPause:true,
          autowidth: false,
          responsiveClass:true,
          responsive:{
              0:{
                  items:1,
                  nav:true
              },
              600:{
                  items:3,
                  nav:false
              },
              1000:{
                  items:8,
                  nav:true,
              }
          }
  
  
      });
  
      $('.navbar-nav&gt;a').on('click', function(){
          $('.navbar-collapse').collapse('hide');
      });
  
      $('.navbar-nav&gt;.dropdown&gt;.dropdown-menu&gt;a').on('click', function(){
          $('.navbar-collapse').collapse('hide');
      });
  
  });
  
  
  // comienzo isotope
  
  
  // fin isotope
  
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>-(Sorry for my english)
  -(Tablet layout is not ready yet)</p>
  
  <p>Thanks!</p>