* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #e8e8e8;
}

body {
  font-family: "Lato", sans-serif;
  font-size: 17px;
  color: #2a2a29;
  display: flex;
  flex-direction: column;
}

body {
  padding-top: 80px;
}

h1 {
}

.contenedor {
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  display: grid;
}

section {
  display: block;
  padding-top: 2rem;
}

nav.menu-principal {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 90px;
  background: white;
  display: block;
  z-index: 130;
}

nav .logo {
  position: relative;
  height: 90px;
  z-index: 1000;
  width: 180px;
  border: none;
}

nav .logo img {
  height: 50px;
  width: auto;
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translateY(-50%);
}

nav .menu {
  left: 0px;
  position: fixed;
  top: 90px;
  height: 0px;
  overflow: hidden;
  background-color: #c30d23;
  width: 100%;
  display: block;
  color: #2a2a29;
  display: grid;
  grid-template-rows: 1fr auto auto;
  grid-gap: 1rem;
  transition: all 0.5s;
}

nav.activo .menu {
  height: Calc(100% - 90px);
}

nav .sombra {
  position: absolute;
  top: 100%;
  height: 20px;
  width: 100%;
  left: 0px;
  z-index: 200;
  display: block;
  background-image: url(../img/sombra.png);
  background-position: center top;
  background-repeat: repeat-x;
}

nav .menu a {
  font-weight: 700;
  display: block;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  cursor: pointer !important;
  transition: all 0.3s;
  color: #2a2a29;
  text-decoration: none;
}

nav .menu .nivel.principal a:hover {
  color: white;
}

nav .menu .nivel {
  padding-left: 5%;
  padding-right: 5%;
  display: block;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

nav .menu .nivel.idiomas {
  color: white;
  text-align: left;
  padding-top: 1rem;
  padding-bottom: 1rem;
  grid-row: 2;
}

nav .menu .nivel.idiomas a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

nav .menu .nivel.idiomas a:hover {
  color: #2a2a29;
}

nav .menu .nivel .puntos {
  display: block;
  margin-bottom: 1rem;
  text-align: left;
}

nav .menu .nivel .puntos .punto {
  width: 1rem;
  height: 1rem;
  background-color: white;
  display: inline-block;
  margin-right: 2.5%;
}

nav .menu .nivel.iconos {
  text-align: right;
  align-self: end;
}

nav .menu .nivel.iconos .social a {
  display: inline-block;
  margin-left: 3%;
  color: white;
  font-size: 32px;
}

nav .menu .nivel.iconos .social a .fa-phone {
  font-size: 28px;
}

nav .bars {
  position: absolute;
  right: 0%;
  top: 50%;
  font-size: 28px;
  transform: translateY(-50%);
}

nav .bars.fa-times {
  display: none;
}

nav.activo .bars.fa-times {
  display: block;
}

nav.activo .bars.fa-bars {
  display: none;
}

.gimmejustice {
  font-size: 1rem;
}

.gimmejustice a {
  color: #c30d23;
}

.carrousel {
  height: 300px;
  padding-top: 0;
}

.home-slide {
}

.carrousel .swiper-slide {
  height: 300px;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  cursor: pointer !important;
}

.carrousel .swiper-slide .swiper-pic {
  background-position: center center;
  background-size: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) scale(1.01);
  width: 100%;
  height: 100%;
  transition: all 0.5s;
}

/* .carrousel .swiper-slide .swiper-bg {
  background: rgb(195, 13, 35);
  background: linear-gradient(
    0deg,
    rgb(101 6 18 / 80%) 0%,
    rgb(117 3 17 / 60%) 32%,
    rgb(128 0 15 / 0%) 69%
  );
  position: absolute;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  opacity: 1;
} */

.swiper-boton {
  display: none;
}

.swiper-txt {
  position: absolute;
  bottom: 0;
  padding: 1rem;
  color: white;
  width: Calc(100% - 2rem);
}

.swiper-txt h1 {
  margin-bottom: 0;
  background-color: #000000a3;
  display: inline-block;
  padding: 1rem;
  border-radius: 8px;
}

.swiper-txt p {
  display: none !important;
}

.swiper-bg a {
  text-align: right;
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.6s;
  opacity: 0.6;
  z-index: 1000;
}

.swiper-bg a:hover {
  opacity: 1;
}

.col {
  display: grid;
}

.col h1 {
  margin-bottom: 1.5rem;
}

.col p {
  font-size: 1.2rem;
  line-height: 1.2;
}

.col p.secundario {
  font-size: 1.2rem;
  color: #6a6a6a;
}

.collage_home {
  width: 100%;
  height: auto;
}

.foto-100 {
  margin-top: 4rem;
  width: 100%;
  height: 180px;
  background-image: url(../img/collage_home.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.foto-101 {
  margin-top: 4rem;
  width: 100%;
  height: 180px;
  background-image: url(../img/collage_serv.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.col.proyecto {
  display: block;
  height: 0;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 13px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  padding-top: 100%;
  position: relative;
  cursor: pointer !important;
}

.col.proyecto .imagen {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
}

.col.proyecto .descripcion {
  position: absolute;
  bottom: 0;
  height: 30%;
  padding-left: 1rem;
  padding-right: 1rem;
  display: grid;
  align-items: end;
  padding-bottom: 12px;
}

.col.proyecto .descripcion h2 {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1;
}

.col.proyecto .descripcion p {
  margin: 0;
  font-size: 0.8rem;
}

.col.proyecto img {
  width: 100%;
  height: auto;
  transition: all 0.7s;
}

.col.proyecto:hover img {
  transform: scale(1.15);
}

.col.proyecto a {
  color: #c21123;
  position: absolute;
  right: 1rem;
  bottom: 12px;
  font-size: 1rem;
  z-index: 100;
  opacity: 0;
  transition: all 1s;
}

.col.proyecto:hover a {
  opacity: 1;
}

.rc_pic {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

#destacados {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.puntos_container .puntos {
  display: block;
  margin-bottom: 1rem;
  text-align: left;
}

.puntos_container .puntos .punto {
  width: 1rem;
  height: 1rem;
  background-color: white;
  display: inline-block;
  margin-right: 2.5%;
}

.puntos_container .puntos .punto.r {
  background-color: #c21123;
}

.puntos_container .puntos .punto.n {
  background-color: #2a2a29;
}

main {
  flex: 1 0 auto;
}

footer {
  background-color: #737373;
  color: white;
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}

footer a:hover {
  color: #2a2a29;
}

footer .logo {
  max-width: 120px;
  height: auto;
}

footer .contenedor .col {
  margin-bottom: 1rem;
}

.c2a {
  font-weight: 700;
  color: #c21123;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

.c2a:hover {
  color: #2a2a29;
}

.col.desc_servicio {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
  min-height: 120px;
  align-self: start;
}

.col.desc_servicio i {
  font-size: 50px;
  color: #7b7b7b;
  text-align: center;
}

.col.desc_servicio .desc_servicio_txt h3 {
  line-height: 1;
  padding: 0;
  margin: 0;
}

.col.desc_servicio .desc_servicio_txt span.num {
  margin-left: -19px;
  margin-right: 6px;
  font-size: 1rem;
}

.col.desc_servicio .desc_servicio_txt p {
  padding: 0;
  margin: 0;
}

.col.desc_servicio .desc_servicio_txt h3,
.col.desc_servicio .desc_servicio_txt p {
  padding-left: 1.4rem;
}

.portafolios_tipos ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  margin: 0;
}

.portafolios_tipos ul::-webkit-scrollbar {
  display: none;
}

.portafolios_tipos ul li {
  flex: 0 0 auto;
  margin-right: 1rem;
}

.portafolios_tipos ul li a {
  color: #2a2a29;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 700;
}

.portafolios_tipos ul li a:active,
.portafolios_tipos ul li a:hover,
.portafolios_tipos ul li a.selected {
  color: #c21123;
}

.portafolios_mosaico {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5rem;
  grid-column: 1/3;
  margin-top: 2rem;
}

#portafolios {
  padding-top: 1rem !important;
  align-items: start;
}

.portafolios_mosaico .col.proyecto .descripcion h2 {
  font-size: 0.9rem;
  margin: 0;
}

.portafolios_mosaico .col.proyecto .descripcion p {
  display: none;
}

#contacto {
  align-items: start;
}

.form_campo {
  width: 100%;
  background: none;
  border: none;
  border-bottom: solid 1px #2a2a29;
  color: #2a2a29;
  font-size: 1.2rem;
  font-weight: 400;
  padding: 0;
  display: block;
  margin-bottom: 2rem;
  outline: none;
  height: 45px;
}

.form_campo.chafa {
  border-bottom: solid 1px #c21123;
}

textarea.form_campo {
  height: 203px;
}

.form_campo::placeholder {
  color: #7b7b7b;
}

#contacto #map {
  height: 12rem;
  border: solid 1px #7b7b7b;
  border-radius: 6px;
  overflow: hidden;
}

#contacto .segunda_fila {
  margin-top: 1rem;
}

#contacto .segunda_fila h3 {
  margin: 0;
}

#contacto .segunda_fila a {
  color: #c21123;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#contacto .segunda_fila a:hover {
  color: #2a2a29;
}

#contacto button,
button.form_button {
  background-color: #c21123;
  padding: 0;
  height: 50px;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  align-items: center;
  transition: all 0.3s;
  outline: none;
  float: right;
  border: none;
}

#contacto button:hover,
button.form_button:hover {
  margin-right: -20px;
  box-shadow: 0px 17px 10px rgba(0, 0, 0, 0.42);
}

#contacto .aviso_contenedor {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 1rem;
  align-items: end;
}

#contacto .aviso_contenedor .nota {
  font-size: 0.8rem;
  max-width: 50%;
}

#contacto .aviso_contenedor .nota a {
  color: #c21123;
}

#contacto .aviso_contenedor .nota a:hover {
  color: #2a2a29;
}

.portafolios_detalle_titulo {
  position: relative;
  width: 100%;
  display: block;
}

.portafolios_detalle_titulo a {
  position: absolute;
  right: 0;
  color: #7b7b7b;
  font-size: 1.5rem;
  text-decoration: none;
}

.portafolios_detalle_titulo h1 {
  margin-bottom: 0;
}

.portafolios_detalle_titulo h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #7b7b7b;
}

.portafolios_imagen {
  padding-top: 66.66%;
  height: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
  border-radius: 6px;
}

.portafolios_imagen.ch {
  padding-top: 40% !important;
}

.portafolios_imagen img {
  height: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 100%;
}

#portafolios_detalle_info {
  align-items: start;
}

.portafolios_detalle_info_tabla {
  margin-bottom: 1rem;
}

.portafolios_detalle_info_tabla th,
.portafolios_detalle_info_tabla td {
  text-align: left;
  font-size: 0.8rem;
  padding-right: 1rem;
}

#portafolios_detalle_info .puntos_container {
  margin-top: 1rem;
  width: 100%;
}

#portafolios_detalle_info .puntos_container .puntos {
  text-align: right;
}

#portafolios_detalle_info .puntos_container .puntos .punto {
  margin-left: 2.5%;
  margin-right: 0%;
}

.portafolios_detalle_info_thumbs {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 1rem;
}

.portafolios_detalle_info_thumbs .thumb {
  display: inline-block;
  position: relative;
  padding-top: 100%;
  height: 0;
  border-radius: 6px;
  margin-right: 1rem;
  width: 100%;
  overflow: hidden;
  box-shadow: 0px 13px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.portafolios_detalle_info_thumbs .thumb img {
  height: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) scale(1);
  width: auto;
  transition: all 0.5s;
  transform: ;
}

.portafolios_detalle_info_thumbs .thumb:hover img {
  transform: translateX(-50%) translateY(-50%) scale(1.1);
}

#loginform_container {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0px;
  top: -100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  background-color: #ffffffe8;
  z-index: 1000;
}

#loginform_container.active {
  top: 0px;
}

#loginform_container #loginform {
  width: 90%;
  max-width: Calc(100vw * 0.618);
}

/* #c21123 */

@media (min-width: 400px) and (orientation: landscape) {
  .carrousel {
    display: none;
  }
}

@media (min-width: 768px) {
  .contenedor {
    width: 90%;
    max-width: Calc(100vw * 0.618);
    display: grid;
    grid-gap: 1.5rem;
    align-items: end;
  }

  .contenedor.dos_col {
    grid-template-columns: 1fr 1fr;
  }

  .contenedor.tres_col {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .contenedor.cuatro_col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  footer .contenedor {
    align-items: start;
  }

  .just-mobile {
    display: none !important;
  }

  nav {
    height: 90px;
  }

  nav .logo {
    height: 90px;
  }

  nav .logo img {
    height: 45px;
    left: 0px;
    transform: translateY(-22.5px);
  }

  nav .menu {
    height: 70px !important;
    top: 0px;
    background-color: transparent;
    display: grid;
    grid-template-rows: auto auto;
    grid-gap: 0;
    position: absolute;
    width: 100%;
    transition: none !important;
  }

  nav .menu .nivel {
    padding: 0;
  }

  nav .menu .nivel.principal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    align-content: end;
  }

  nav .menu .nivel.principal .links {
    grid-column: 2;
    justify-content: flex-end;
    display: flex;
    text-align: right;
  }

  nav .menu .nivel.principal a {
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
  }

  nav .menu .nivel.principal a:hover {
    color: #c21123;
  }

  nav .menu .nivel.idiomas {
    grid-row: 1;
    padding: 0;
    color: #999999;
    justify-self: right;
    font-size: 0.6rem;
    display: grid;
    align-items: end;
    padding-top: 1rem;
  }

  nav .menu .nivel.idiomas a {
    color: #999999;
    font-size: 0.6rem;
  }

  .carrousel {
    display: block;
    position: relative;
  }

  .carrousel .swiper-slide:not(.swiper-slide-active) .swiper-pic {
    filter: blur(3px);
    opacity: 0.4;
  }

  /* .carrousel .swiper-slide .swiper-bg {
    background: rgb(195, 13, 35);
    background: linear-gradient(
      0deg,
      rgb(101 6 18 / 80%) 0%,
      rgb(117 3 17 / 60%) 22%,
      rgb(128 0 15 / 0%) 59%
    );
  } */

  .carrousel .swiper-slide:not(.swiper-slide-active) .swiper-bg {
    opacity: 0;
  }

  .swiper-boton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #c21123;
    width: 80px;
    height: 50px;
    cursor: pointer;
    display: block;
    z-index: 120;
    transition: all 0.3s;
    outline: none;
  }

  .swiper-boton img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    left: 20%;
  }

  .swiper-boton.swiper-anterior {
    left: Calc(((100% - (100% * 0.618)) / 2) - 93px);
  }

  .swiper-boton.swiper-siguiente {
    right: Calc(((100% - (100% * 0.618)) / 2) - 93px);
    transform: rotate(180deg) translateY(50%);
  }

  .swiper-boton.swiper-anterior:hover {
    left: Calc(((100% - (100% * 0.618)) / 2) - 103px);
    box-shadow: 0px 17px 10px rgba(0, 0, 0, 0.42);
  }

  .swiper-boton.swiper-siguiente:hover {
    right: Calc(((100% - (100% * 0.618)) / 2) - 103px);
    box-shadow: 0px -17px 10px rgba(0, 0, 0, 0.42);
  }

  .swiper-txt p {
    max-width: 70%;
    display: block;
  }

  .swiper-txt i {
    display: block;
  }

  .foto-100,
  .foto-101 {
    height: 250px;
    margin-bottom: 2rem;
  }

  .portafolios_tipos ul {
    list-style: none;
    padding: 0;
    display: block;
  }

  .portafolios_mosaico {
    margin: 0;
    grid-column: 2/5;
  }

  .portafolios_tipos ul li {
    margin-right: 0;
    margin-bottom: 1rem;
    overflow: visible;
  }

  .portafolios_tipos ul li a {
    font-size: 0.9rem;
  }

  .portafolios_imagen {
    padding-top: 40%;
  }

  .portafolios_detalle_info_thumbs {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  nav .logo img {
    height: 60px;
    transform: translateY(-30px);
  }

  .carrousel .swiper-slide {
    height: 450px;
  }

  .carrousel {
    display: block;
    height: 450px;
  }

  .portafolios_mosaico {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
