* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  display: block;
  text-decoration: none;
}

p a {
  display: inline;
}

li {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  color: inherit;
}

body {
  font-size: 16px;
  font-family: "Kanit", sans-serif;
}

form, form* {
  font-size: inherit;
  font-family: inherit;
  background-color: transparent;
  outline: none;
}

input, textarea, select {
  display: block;
}

.telefono {
  color: #4380b6;
}

.correo {
  color: #4380b6;
}

.active {
  color: #4380b6;
  font-size: 1.3em;
}
.active .linea {
  display: none;
}

span {
  font-size: 0.8em;
}

header {
  width: 100%;
  background-color: black;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: flex-end;
  color: white;
}
header .fa-bars {
  display: none;
}
header .main_header {
  width: 80%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
  margin: 30px auto;
}
header .main_header h1 {
  font-size: 2em;
  color: #4380b6;
}
header nav {
  width: 100%;
  background-color: grey;
}
header nav ul {
  width: 60%;
  margin: 0 auto;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
}
header nav ul li {
  margin: 0 15px;
}
header nav ul li a {
  position: relative;
  text-transform: uppercase;
}
header nav ul li a:hover .linea {
  transform: scale(1, 1);
  transform-origin: right center;
}
header nav ul li a:active {
  font-weight: bold;
}
header nav ul li .linea {
  width: 100%;
  height: 3px;
  background: #4380b6;
  position: absolute;
  top: 0;
  transition: all 0.8s;
  transform: scale(0, 1);
  transform-origin: left center;
}
header nav ul li:hover {
  color: #4380b6;
}

.img-fondo {
  width: 100%;
  height: 90vh;
  background-image: url(../assets/opac.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.img-fondo .centrado {
  width: 80%;
  margin: auto;
  padding: 200px 100px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.img-fondo .centrado h2 {
  font-size: 3em;
  margin: 60px auto;
  text-align: center;
  animation: titulo-index 0.5s ease 1 both 0.5s;
  color: #4380b6;
}
.img-fondo .centrado h3 {
  font-size: 1.7em;
  margin: 60px auto;
  text-align: center;
  animation: subtitulo-index 1s ease 1 both 1s;
}

.centrado {
  width: 80%;
  margin: auto;
}
.centrado .info-taller {
  width: 80%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
  margin: 100px auto;
}
.centrado .info-taller .info {
  width: 200px;
  height: 300px;
  border-radius: 5%;
  box-shadow: 0 10px 40px 0 rgba(15, 15, 15, 0.2);
  background-color: white;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
}
.centrado .info-taller .info i {
  font-size: 3em;
  margin: 50px auto;
  color: #4380b6;
}
.centrado .info-taller .info p {
  width: 50%;
  text-align: center;
  line-height: 35px;
}

.rectangulo {
  width: 100%;
  height: 100px;
  background-color: #4380b6;
  color: white;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.rectangulo p {
  margin-bottom: 10px;
}

.linea {
  width: 10%;
  height: 5px;
  background-color: black;
  margin: 20px auto 50px;
}

.grid-cbjmotor {
  width: 80%;
  margin: 10vh auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.grid-cbjmotor article {
  font-size: 2em;
}
.grid-cbjmotor .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  opacity: 0;
}
.grid-cbjmotor .overlay h5 {
  font-size: 0.7em;
  color: #4380b6;
  text-transform: uppercase;
  text-transform: uppercase;
}
.grid-cbjmotor .img-grid {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.grid-cbjmotor .img-grid img {
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
}
.grid-cbjmotor .img-grid::after {
  content: "";
  width: 0px;
  height: 80%;
  position: absolute;
  top: 10%;
  left: 10%;
  border-top: 2px solid #4380b6;
  border-bottom: 2px solid #4380b6;
  transition: all 0.5s ease;
}
.grid-cbjmotor .img-grid::before {
  content: "";
  width: 80%;
  height: 0px;
  position: absolute;
  top: 10%;
  left: 10%;
  border-left: 2px solid #4380b6;
  border-right: 2px solid #4380b6;
  z-index: 2;
  transition: all 0.5s ease;
}
.grid-cbjmotor .img-uno {
  grid-column: 1/3;
  grid-row: 1/2;
}
.grid-cbjmotor :hover .overlay {
  opacity: 1;
  color: black;
}
.grid-cbjmotor :hover img {
  transform: scale(1.2);
  opacity: 0.2;
}
.grid-cbjmotor .img-uno:hover::after {
  width: 80.5%;
}
.grid-cbjmotor .img-uno:hover::before {
  height: 81%;
}
.grid-cbjmotor .img-dos {
  grid-column: 3/4;
  grid-row: 1/2;
}
.grid-cbjmotor .img-dos img {
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
}
.grid-cbjmotor :hover .overlay {
  opacity: 1;
  color: black;
}
.grid-cbjmotor :hover img {
  transform: scale(1.2);
  opacity: 0.2;
}
.grid-cbjmotor .img-dos:hover::after {
  width: 81%;
}
.grid-cbjmotor .img-dos:hover::before {
  height: 81%;
}
.grid-cbjmotor .img-tres {
  grid-column: 4/5;
  grid-row: 1/2;
}
.grid-cbjmotor .img-tres img {
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
}
.grid-cbjmotor :hover .overlay {
  opacity: 1;
  color: black;
}
.grid-cbjmotor :hover img {
  transform: scale(1.2);
  opacity: 0.2;
}
.grid-cbjmotor .img-tres::after {
  content: "";
  width: 0px;
  height: 40%;
  position: absolute;
  top: 30%;
  left: 10%;
  border-top: 2px solid #4380b6;
  border-bottom: 2px solid #4380b6;
  transition: all 0.5s ease;
}
.grid-cbjmotor .img-tres::before {
  content: "";
  width: 80%;
  height: 0px;
  position: absolute;
  top: 30%;
  left: 10%;
  border-left: 2px solid #4380b6;
  border-right: 2px solid #4380b6;
  z-index: 2;
  transition: all 0.5s ease;
}
.grid-cbjmotor .img-tres:hover::after {
  width: 81%;
}
.grid-cbjmotor .img-tres:hover::before {
  height: 41%;
}
.grid-cbjmotor .img-cuatro {
  grid-column: 1/2;
  grid-row: 2/3;
}
.grid-cbjmotor .img-cuatro img {
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
}
.grid-cbjmotor :hover .overlay {
  opacity: 1;
  color: black;
}
.grid-cbjmotor :hover img {
  transform: scale(1.2);
  opacity: 0.2;
}
.grid-cbjmotor .img-cuatro::after {
  content: "";
  width: 0px;
  height: 40%;
  position: absolute;
  top: 30%;
  left: 10%;
  border-top: 2px solid #4380b6;
  border-bottom: 2px solid #4380b6;
  transition: all 0.5s ease;
}
.grid-cbjmotor .img-cuatro::before {
  content: "";
  width: 80%;
  height: 0px;
  position: absolute;
  top: 30%;
  left: 10%;
  border-left: 2px solid #4380b6;
  border-right: 2px solid #4380b6;
  z-index: 2;
  transition: all 0.5s ease;
}
.grid-cbjmotor .img-cuatro:hover::after {
  width: 81%;
}
.grid-cbjmotor .img-cuatro:hover::before {
  height: 41%;
}
.grid-cbjmotor .img-cinco {
  grid-column: 2/3;
  grid-row: 2/3;
}
.grid-cbjmotor .img-cinco img {
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
}
.grid-cbjmotor :hover .overlay {
  opacity: 1;
  color: black;
}
.grid-cbjmotor :hover img {
  transform: scale(1.2);
  opacity: 0.2;
}
.grid-cbjmotor .img-cinco:hover::after {
  width: 81%;
}
.grid-cbjmotor .img-cinco:hover::before {
  height: 81%;
}
.grid-cbjmotor .img-seis {
  grid-column: 3/5;
  grid-row: 2/4;
}
.grid-cbjmotor .img-seis img {
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
}
.grid-cbjmotor :hover .overlay {
  opacity: 1;
  color: black;
}
.grid-cbjmotor :hover img {
  transform: scale(1.2);
  opacity: 0.2;
}
.grid-cbjmotor .img-seis:hover::after {
  width: 80.5%;
}
.grid-cbjmotor .img-seis:hover::before {
  height: 81%;
}

footer {
  width: 100%;
  background-color: black;
  color: white;
}
footer .footer_main {
  width: 60%;
  margin: auto;
  padding: 30px 0;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
footer .footer_main h2 {
  margin: 10px auto;
  color: #4380b6;
  font-size: 2em;
}
footer .footer_main .redes_sociales {
  margin: 10px auto;
  font-size: 2em;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
}
footer .footer_main .redes_sociales .fa-facebook-f {
  margin: 0 20px;
}
footer .footer_main .contact_info {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
}
footer .footer_main .contact_info .direccion {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  margin: 10px;
}
footer .footer_main .contact_info .direccion .fa-search-location {
  font-size: 40px;
  margin: 20px;
}
footer .footer_main .contact_info .telefono-footer {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
footer .footer_main .contact_info .telefono-footer .fa-phone-alt {
  font-size: 40px;
  margin: 10px;
}
footer .footer_main .contact_info .email {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
footer .footer_main .contact_info .email .fa-envelope-open {
  font-size: 40px;
  margin: 10px;
}

.servicios .centrado {
  width: 80%;
  padding: 50px;
}
.servicios .centrado .servicio_main {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}
.servicios .centrado .servicio_main img {
  width: 40%;
  min-width: 300px;
  margin-right: 50px;
}
.servicios .centrado .servicio_main .col_izq_datos_info {
  width: 60%;
}
.servicios .centrado .servicio_main .col_izq_datos_info h3 {
  font-size: 1.5em;
  margin-bottom: 30px;
}
.servicios .centrado .servicio_main .col_izq_datos_info p {
  margin: 20px auto;
}
.servicios .centrado h2 {
  font-size: 2.3em;
  text-align: center;
  text-transform: uppercase;
  margin-top: 150px;
}
.servicios .masinfo-servicios {
  width: 100%;
  height: 30vh;
  background-color: white;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
  border: 1px solid #4380b6;
  color: black;
  padding: 30px;
  margin-bottom: 50px;
  background-image: url(../assets/8.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.servicios .masinfo-servicios .question-masinfo h4 {
  font-size: 1.5em;
  margin-bottom: 10px;
}
.servicios .masinfo-servicios .boton-presupuesto {
  display: inline-block;
  border-radius: 7px;
  background-color: #4380b6;
  padding: 15px 30px;
  color: white;
  cursor: pointer;
}
.servicios .masinfo-servicios .boton-presupuesto:hover {
  background-color: white;
  color: #4380b6;
}
.servicios section .mecanica-rapida {
  width: 100%;
  margin: 50px auto 150px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.servicios section .mecanica-rapida .col-mec-rap {
  width: calc(100% / 3 - 40px );
  height: 40vh;
  border-radius: 5%;
  box-shadow: 0 10px 40px 0 rgba(15, 15, 15, 0.2);
  margin: 40px 20px;
  padding: 10px 20px;
}
.servicios section .mecanica-rapida .col-mec-rap h3 {
  margin: 20px auto;
  text-transform: uppercase;
  font-size: 1.7em;
}
.servicios section .mecanica-rapida .col-mec-rap div {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
}
.servicios section .mecanica-rapida .col-mec-rap div i {
  font-size: 3em;
  margin: 0 20px;
  color: #4380b6;
}
.servicios section .mecanica-rapida .col-mec-rap div p {
  font-size: 0.8em;
}

.presupuesto .imagen-fondo-presupuesto {
  width: 100%;
  height: 40vh;
  background-image: url(../assets/presupuesto.jpg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
}
.presupuesto .pre-formulario .titulo-pre-formulario {
  font-size: 1.5em;
  margin: 50px 0;
}
.presupuesto .pre-formulario p {
  margin: 40px 0;
}
.presupuesto .question-presupuesto {
  margin: 50px 0;
}
.presupuesto input {
  width: 100%;
  height: 40px;
  border: 2px solid #4380b6;
  border-radius: 7px;
}
.presupuesto .datos-form {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
}
.presupuesto .datos-form .col1 {
  width: 45%;
}
.presupuesto .datos-form .col1 div {
  margin: 30px 0;
}
.presupuesto .datos-form .col2 {
  width: 45%;
}
.presupuesto .datos-form .col2 div {
  margin: 30px 0;
}
.presupuesto .checkbox {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}
.presupuesto .checkbox .check {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  margin: 30px 0;
}
.presupuesto .checkbox .check[type=checkbox] {
  width: 10%;
}
.presupuesto .checkbox .col-izq-1 {
  width: 30%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: flex-start;
}
.presupuesto .checkbox .col-izq-1 label {
  width: 300px;
}
.presupuesto .checkbox .col-der-2 {
  width: 30%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.presupuesto .checkbox .col-der-2 label {
  width: 300px;
}
.presupuesto .observaciones {
  margin: 50px 0;
}
.presupuesto .observaciones textarea {
  width: 50%;
  height: 20vh;
  margin: 30px 0;
  border: 2px solid #4380b6;
  border-radius: 7px;
}
.presupuesto .question-pre-itv {
  margin: 30px 0;
}
.presupuesto .afir-neg {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}
.presupuesto .afir-neg .pre-itv-afirmativo {
  width: 10%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 30px;
}
.presupuesto .afir-neg .pre-itv-negativo {
  width: 10%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
}
.presupuesto .ley-proteccion {
  width: 50%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}
.presupuesto .ley-proteccion input[type=checkbox] {
  width: 10%;
  margin: 0 30px 0 0;
}
.presupuesto .ley-proteccion label {
  width: 90%;
}
.presupuesto .campos-obligatorios {
  margin: 30px 0;
}
.presupuesto input[type=submit] {
  width: 20%;
  background-color: #4380b6;
  color: white;
  margin: 50px 0;
  cursor: pointer;
}
.presupuesto input[type=submit]:hover {
  background-color: white;
  color: #4380b6;
}

.contacto .imagen-fondo-contacto {
  width: 100%;
  height: 40vh;
  background-image: url(../assets/contacto.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.contacto .contacto-main {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 40px;
}
.contacto .contacto-main .informacion-contacto .taller {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
}
.contacto .contacto-main .informacion-contacto .taller .icon {
  width: 75px;
  height: 75px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 10px 30px;
}
.contacto .contacto-main .informacion-contacto .taller i {
  width: 50px;
  height: 50px;
  font-size: 3em;
  color: #4380b6;
}
.contacto .contacto-main .mapa {
  width: 50%;
}

@keyframes titulo-index {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media screen and (max-width: 480px) {
  header .main_header {
    width: 80%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    margin: 30px auto;
  }
  header .main_header h1 {
    font-size: 1.3em;
    color: #4380b6;
  }

  i.fas {
    display: block;
    font-size: 1.7em;
    margin: 20px 45px;
  }

  nav {
    display: none;
  }

  nav.ver {
    width: 100%;
    display: flex;
  }

  nav.mostrar ul {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
  }

  .img-fondo .centrado h2 {
    font-size: 1.5em;
  }

  .img-fondo .centrado h3 {
    font-size: 1em;
  }

  .linea {
    width: 50%;
    margin: 0 auto;
  }

  .centrado .info-taller {
    flex-flow: column nowrap;
  }
  .centrado .info-taller .info {
    margin: 10px 0;
  }

  .grid-cbjmotor {
    width: 80%;
  }

  .presupuesto .datos-form {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
  }
  .presupuesto .datos-form .col1 {
    width: 100%;
  }
  .presupuesto .datos-form .col1 div {
    margin: 30px 0;
  }
  .presupuesto .datos-form .col2 {
    width: 100%;
  }
  .presupuesto .datos-form .col2 div {
    margin: 30px 0;
  }
  .presupuesto .checkbox {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .presupuesto .checkbox .check {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    margin: 30px 0;
  }
  .presupuesto .checkbox .col-izq-1 {
    width: 50%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
  }
  .presupuesto .checkbox .col-izq-1 label {
    width: 400px;
  }
  .presupuesto .checkbox .col-der-2 {
    width: 50%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
  }
  .presupuesto .checkbox .col-der-2 label {
    width: 400px;
  }
  .presupuesto .observaciones {
    margin: 50px 0;
  }
  .presupuesto .observaciones textarea {
    width: 100%;
    height: 20vh;
    margin: 30px 0;
    border: 2px solid #4380b6;
    border-radius: 7px;
  }
  .presupuesto .afir-neg .pre-itv-afirmativo {
    width: 50%;
  }
  .presupuesto .afir-neg .pre-itv-afirmativo label {
    margin: 0 10px 10px;
  }
  .presupuesto .afir-neg .pre-itv-negativo {
    width: 50%;
  }
  .presupuesto .afir-neg .pre-itv-negativo label {
    margin: 0 10px 0px;
  }
  .presupuesto .ley-proteccion {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
  }
  .presupuesto .ley-proteccion input[type=checkbox] {
    width: 10%;
  }
  .presupuesto .ley-proteccion label {
    width: 90%;
  }

  .contacto .contacto-main {
    flex-flow: column nowrap;
  }
  .contacto .contacto-main .mapa {
    width: 100%;
  }
  .contacto .contacto-main .mapa iframe {
    width: 100%;
  }

  .servicios .centrado {
    padding: 0;
  }
  .servicios .centrado .servicio_main {
    flex-flow: column nowrap;
  }
  .servicios .centrado .servicio_main img {
    width: 100%;
    margin: 30px auto;
  }
  .servicios .centrado .servicio_main .col_izq_datos_info {
    margin-top: 30px;
    width: 100%;
  }
  .servicios section .mecanica-rapida .col-mec-rap {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .servicios section .mecanica-rapida .col-mec-rap h3 {
    margin: 0 auto;
  }
  .servicios section .mecanica-rapida .col-mec-rap div {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
  }
  .servicios section .mecanica-rapida .col-mec-rap div i {
    font-size: 3em;
    margin: 20px;
    color: #4380b6;
  }
  .servicios section .mecanica-rapida .col-mec-rap div p {
    font-size: 0.8em;
    margin-top: 20px auto;
  }
  .servicios .linea {
    margin: 60px auto;
  }
}