/* ------- GENERALES -------*/

body {
  position: relative;
  font-size: 17px;
  font-family: montserrat;
  margin: 0px 0px;
  padding: 0px 0px;
}
li { list-style: none; }
header {
  color: white;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  background-color: rgba(0,0,0,0.7);
  position: fixed;
  padding: 10px 0px;
  width: 100%;
  z-index: 40;
}
header a { text-decoration: none; }
.pie-pagina {  padding: 20px 40px; text-align: center; }

/* ------- ELEMENTOS -------*/

#abridor_menu {
  border: solid 2px white;
  color: white;
  padding: 10px 14px;
  margin-right: 40px;
}
.menu-trigger {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  font-size: 20px;
}
#menu-toggle {
  display: none;
}
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 99;
  padding: 80px 40px;
  box-sizing: border-box;
}
main:has(#menu-toggle:checked) .menu-panel {
    transform: translateX(0);
}
.menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-panel li {
  margin-bottom: 20px;
}
.menu-panel a {
  text-decoration: none;
  color: #111;
  font-size: 24px;
}
.close-menu {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.btn-whatsapp {
  background-color: #12a802;
  background: linear-gradient(45deg,rgba(18, 168, 2, 1) 45%, rgba(59, 193, 77, 1) 85%);
  border-radius: 30px;
  color: white;
  font-size: 19px;
  margin-top: 50px;
  padding: 10px 14px;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #185401;
}
.btn-whatsapp img {
  background-color: white;
  vertical-align: middle;
  border-radius: 15px;
  margin-left: 10px;
  height: 30px;
  width: 30px;
}
.max-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.centrado-h {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Sección Hero Home ---------- */
#hero_home {
  background-image: url('https://pigodigital.com/image/servicios/servicios/Offset.jpg');
  background-size: cover;
}
.pantalla-negra {
  background-color: rgba(0,0,0,0.7);
  height: 100%;
  padding: 5vh 5vw !important;
}
#hero_home .pantalla-negra {
  padding: 35vh 10vw;
}
#hero_home h1 {
    color: white;
  margin-bottom: 50px;
}
#texto-escritura {
  font-family: inherit;
  font-size: inherit;
}
#texto-escritura::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.1em;
  background: currentColor;
  animation: parpadeo 0.7s infinite;
}

/* ---------- Sección Bienvenida ---------- */
#bienvenida {  
  margin-left: auto;
  margin-right: auto;
  padding: 15vh 40px;
}
#bienvenida h2 {
  color: red;
}
#bienvenida h2 {
  text-align: center;
}

/* ---------- Sección Catálogos de productos y de servicios ---------- */
#sec_cat_prod, #sec_cat_serv {
  background: linear-gradient(135deg,rgba(39, 84, 254, 1) 15%, rgba(80, 245, 39, 1) 85%);
  border-radius: 20px;
  padding: 10vh 40px;
}
#sec_cat_prod h2, #sec_cat_serv h2 {
  color: white;
}
#sec_cat_serv .catalogo h3 { text-align: center; }
#sec_cat_prod .item-cat {
  background-size: cover;
  color: white;
  cursor: pointer;
}
#sec_cat_serv .item-cat { background-color: white; }
.catalogo {
  display: grid;
  grid-gap: 10px;
}
.item-cat {
  border-radius: 20px;
  -webkit-box-shadow: 2px 2px 4px #000;
  -ms-box-shadow: 2px 2px 4px #000;
  -o-box-shadow: 2px 2px 4px #000;
  -webkit-box-shadow: 2px 2px 4px #000;
  box-shadow: 2px 2px 4px #ccc;
  overflow: hidden;
  position: relative;
}
.item-cat .img-prod-serv {
  max-width: 100%;
}
.item-cat .pantalla-negra{
  padding: 0px 15px 20px 15px;
}
.mask {
  position: absolute;
  left: 0px;
  top: 0px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  width: 100%;
  z-index: 2;
}
.item-cat:hover .mask, .item-cat:active .mask {
  opacity: 1;
}
.mask ul { margin-bottom: 30px; }
.descripcion-producto {
  color: white;
}
.descripcion-servicio {
  background-color: white;
  color: #070707;
  padding: 15px 20px;
  text-align: center;
}
.img-item-cat-serv {
  background-repeat: no-repeat;
  background-size: cover;
}

#sec_personalizados {
  margin-top: 10vh;
  padding: 50px 40px 30px 40px;
}
/*----------------- BANNER PRODUCTOS  -----------------*/
.banner {
  position: relative;
  width: 100%;
  height: calc(60vh - 30px);
  background-color: rgb(99, 137, 240);
  background-size: cover;
  background-position: center;
  transition: all 0.1s ease-in-out;
  background-image: url(../image/servicios/Publicidad/publi1.jpg);
  animation: banner 15s infinite linear;
  object-fit: cover;
}
/*-------- ANIMACIÓN BANNER  -------*/
@keyframes banner {
  0% {
    background-image: url(../image/servicios/Publicidad/publi1.jpg);
  }
  20% {
    background-image: url(../image/servicios/Publicidad/publi1.jpg);
  }

  21% {
    background-image: url(../image/servicios/Publicidad/publi2.jpg);
  }
  40% {
    background-image: url(../image/servicios/Publicidad/publi2.jpg);
  }
  41% {
    background-image: url(../image/servicios/Publicidad/publi3.jpg);
  }
  60% {
    background-image: url(../image/servicios/Publicidad/publi3.jpg);
  }
  61% {
    background-image: url(../image/servicios/Publicidad/publi4.jpg);
  }
  80% {
    background-image: url(../image/servicios/Publicidad/publi4.jpg);
  }
  81% {
    background-image: url(../image/servicios/Publicidad/publi5.jpg);
  }
  100% {
    background-image: url(../image/servicios/Publicidad/publi5.jpg);
  }
}
/*----------------- TERMINA BANNER PRODUCTOS ------------*/


/* ------- PÁGINA DE CONTACTO ------- */
#form_contenedor {
  background-image: url('../image/cabecera/pigo-impresores-contacto-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  padding: 15vh 0px;
}
#form_contenedor h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
}
#form_contacto {
  background: linear-gradient(45deg,#273CF5 15%, #A927F5 85%);
  border-radius: 20px;
  display: grid;
  grid-gap: 10px;
  padding: 40px 30px;
}
#form_contacto fieldset { border: none; }
#form_contacto label { color: white; text-decoration: double; }
#form_contacto input, #form_contacto textarea {
  background-color: white;
  border: none;
  border-radius: 13px;
  color: #040404;
  font-size: 17px;
  padding: 10px;
  width: calc(100% - 10px);
}
/* From Uiverse.io by cssbuttons-io */ 
#form_contacto button {
 display: block;
 position: relative;
 margin: 0.5em 0;
 padding: 0.8em 2.2em;
 cursor: pointer;
 background: #FFFFFF;
 border: none;
 border-radius: 0.4em;
 text-transform: uppercase;
 font-size: 19px;
 font-family: "Work Sans", sans-serif;
 font-weight: 500;
 letter-spacing: 0.04em;
 mix-blend-mode: color-dodge;
 perspective: 500px;
 transform-style: preserve-3d;
}
#form_contacto button:before, button:after {
 --z: 0px;
 position: absolute;
 top: 0;
 left: 0;
 display: block;
 content: "";
 width: 100%;
 height: 100%;
 opacity: 0;
 mix-blend-mode: inherit;
 border-radius: inherit;
 transform-style: preserve-3d;
 transform: translate3d(calc(var(--z) * 0px), calc(var(--z) * 0px), calc(var(--z) * 0px));
}
#form_contacto button span {
 mix-blend-mode: none;
 display: block;
}
#form_contacto button:after {
 background-color: #5D00FF;
}
#form_contacto button:before {
 background-color: #FF1731;
}
#form_contacto button:hover {
 background-color: #FFF65B;
 transition: background 0.3s 0.1s;
}
#form_contacto button:hover:before {
 --z: 0.04;
 animation: translateWobble 2.2s ease forwards;
}
#form_contacto button:hover:after {
 --z: -0.06;
 animation: translateWobble 2.2s ease forwards;
}
@keyframes rotateAngle {
 0% {
  transform: rotateY(0deg) rotateX(10deg);
  -webkit-animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
 }

 25% {
  transform: rotateY(20deg) rotateX(10deg);
 }

 50% {
  transform: rotateY(0deg) rotateX(10deg);
  -webkit-animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
 }

 75% {
  transform: rotateY(-20deg) rotateX(10deg);
 }

 100% {
  transform: rotateY(0deg) rotateX(10deg);
 }
}
@keyframes translateWobble {
 0% {
  opacity: 0;
  transform: translate3d(calc(var(--z) * 0px), calc(var(--z) * 0px), calc(var(--z) * 0px));
 }

 16% {
  transform: translate3d(calc(var(--z) * 160px), calc(var(--z) * 160px), calc(var(--z) * 160px));
 }

 28% {
  opacity: 1;
  transform: translate3d(calc(var(--z) * 70px), calc(var(--z) * 70px), calc(var(--z) * 70px));
 }

 44% {
  transform: translate3d(calc(var(--z) * 130px), calc(var(--z) * 130px), calc(var(--z) * 130px));
 }

 59% {
  transform: translate3d(calc(var(--z) * 85px), calc(var(--z) * 85px), calc(var(--z) * 85px));
 }

 73% {
  transform: translate3d(calc(var(--z) * 110px), calc(var(--z) * 110px), calc(var(--z) * 110px));
 }

 88% {
  opacity: 1;
  transform: translate3d(calc(var(--z) * 90px), calc(var(--z) * 90px), calc(var(--z) * 90px));
 }

 100% {
  opacity: 1;
  transform: translate3d(calc(var(--z) * 100px), calc(var(--z) * 100px), calc(var(--z) * 100px));
 }
}

#sec_visitanos {
  background-color: #070707 ;
  color: white;
  display: flex;
  flex-flow: row wrap;
  padding: 15vh 40px;
}
.tercio-flex {
  flex-grow: 1;
  margin-bottom: 10vh;
}
.tercio-flex img { height: 100px; }
#mapa_pigo { width: 100%; height: 40vh; }
#sec_contacto_legales { text-align: center; }



/* ------- PÁGINA DE DIGITAL ------- */
#video_portada {
  height: 85vh;
  position: relative;
  overflow: hidden;
  width: 100%;
}
#video_portada video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#video_portada .overlay-portada {
  background-color: rgba(0,0,0,0.4);
  color: white;
  height: 100%;
  width: 100%;
  padding: 35vh 0 25vh 0;
  position: relative;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 3;
}
/*--------- Inicia estilos de botones desplegables-------*/
.lanzador {
  color: white;
  background-color: red;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 1em;
  display: inline-block;
}
.lanzador:hover {
  color: white;
  background-color: orangered;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
}
.bloque-contenedor {
  /*overflow: hidden;*/
  max-height: 0;
  background-color: #f4f4f4;
  transition: max-height 0.3s;
}
.bloque-contenido {
  padding: 1rem 2rem;
  text-align: left;
}
/*--------- Termina estilos de botones desplegables-------*/
/*------------Inicia Cuadros de etapas-------*/
.contenedor-servicio {
  padding: 3em 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #e5e5e5; /*---- Color gris de fondo despliegue----*/
}
.servicio {
  max-width: 80vw;
  margin: 1em;
  border-radius: 10px;
  background-color: rgba(250, 250, 250, 0.95);
  display: flex;
  flex-direction: column;
  -webkit-box-shadow: 8 px 5px 5px #bfbfbf;
  -moz-box-shadow: 8 px 5px 5px #bfbfbf;
  -ms-box-shadow: 8 px 5px 5px #bfbfbf;
  -o-box-shadow: 8 px 5px 5px #bfbfbf;
  box-shadow: 8 px 5px 5px #bfbfbf;
}
.imagen-servicio {
  width: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.imagen-servicio img {
  object-fit: cover;
}
.contenido-servicio {
  padding: 1em;
  flex-grow: 1;
  color: white;
}
/*------------termina Cuadros de etapas-------*/
/*------------Inicia Materiales-------*/
.texto-grabamos {
  color: white;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-size: 2.5rem;
  text-align: center;
  hyphens: auto;
}
.grid-container {
  position: relative;
  display: grid;
  align-self: center;
}
.contenedor-materiales {
  /*max-width: 80em;*/
  padding: 2vw 10vw 2vw 10vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1em;
}
.material {
  border-radius: 10px;
  position: relative;
}
.material-img {
  overflow: hidden;
  background: linear-gradient(38deg, #000428, #004e92);
  border-radius: 10px;
  display: block;
  opacity: 100;
  /*filter: grayscale(100%);*/
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.material-nombre {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  color: #fafafa;
  text-align: center;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 3px 3px 3px #333333;
}
/*------------Termina Materiales-------*/




/*--------------MEDIA QUERYS----------*/
@media screen and (min-width: 800px) {
  h1 {font-size: 10vh;}
  #hero_img {  
    margin-left: 35vw;
    margin-bottom: 50px;
    width: 20vw;
  }
  #sec_cat_prod, #sec_cat_serv {
    width: calc(100vw - 200px);
    margin-bottom: 10vh;
    margin-left: 50px;
  }
  #sec_cat_prod .catalogo {
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: 
      "gcp-volantes gcp-dipticos gcp-poster" 
      "gcp-revistas gcp-libros gcp-periodicos"
      "gcp-calendarios gcp-folletos gcp-agendas"
      "gcp-tarjetas gcp-packaging gcp-adhesivo";
  }
  #sec_cat_serv .catalogo{
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: 
      "gcp-impdigi gcp-offset gcp-ctp" 
      "gcp-aregistro gcp-amaquina gcp-guillotina"
      "gcp-suaje gcp-folio";
    }
  #sec_cat_prod .item-cat, #sec_cat_serv .item-cat {
    width: calc(33%-5px);
  }
  #sec_cat_prod .item-cat {
    min-height: 30vw;
  }
  #sec_cat_serv .item-cat {
    background: #ffffff;
    max-height: 60vw;
  }
  .img-item-cat-serv {height: 250px;}
  /* ------- PÁGINA DE CONTACTO ------- */
  #form_contacto {
    grid-template-columns: 1fr 1fr; 
    grid-template-areas:
      "fc-titulo"
      "fc-nombre fc-empresa" 
      "fc-telefono fc-email"
      "fc-mensaje fc-mensaje"
      "fc-btnenviar";
  }
  .fc-mensaje, .fc-titulo {
    grid-column: 1/3;
  }
  
}

@media screen and (max-width: 799px) {
  h1 {font-size: 5vh;}
  #hero_img {
    margin-left: 25vw;
    width: 30vw;
  }
  #sec_cat_prod, #sec_cat_serv {
    width: calc(100% - 120px);
    margin-bottom: 7vh;
    margin-left: 20px;
  }
  #sec_cat_prod .item-cat {
    min-height: 50vh;
  }
  #sec_cat_prod .catalogo {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "gcp-volantes"
      "gcp-dipticos"
      "gcp-poster" 
      "gcp-revistas"
      "gcp-libros"
      "gcp-periodicos"
      "gcp-calendarios"
      "gcp-folletos"
      "gcp-agendas"
      "gcp-tarjetas"
      "gcp-packaging"
      "gcp-adhesivo";
    }
  #sec_cat_serv .catalogo{
    grid-template-columns: 1fr;
    grid-template-areas: 
      "gcp-impdigi"
      "gcp-offset"
      "gcp-ctp" 
      "gcp-aregistro"
      "gcp-amaquina"
      "gcp-guillotina"
      "gcp-suaje"
      "gcp-folio";
  }
  .img-item-cat-serv {height: 300px;}
  /* ------- PÁGINA DE CONTACTO ------- */
  #form_contacto {
    grid-template-areas:
      "fe-titulo"
      "fc-nombre"
      "fc-empresa"
      "fc-email"
      "fc-telefono"
      "fc-mensaje"
      "fc-btnenviar";
    width: calc(100% - 120px);
    margin-bottom: 7vh;
    margin-left: 30px;
  }
}