/**********************************************************/
/************************* CUSTOM *************************/
/**********************************************************/

@font-face {
  font-family: CritBold;
  src: url(../fonts/crit-bold.ttf);
}

@font-face {
  font-family: CritRegular;
  src: url(../fonts/crit-regular.ttf);
}

@font-face {
  font-family: CritLight;
  src: url(../fonts/crit-extralight.ttf);
}

body, .font-critlight {
  font-family: CritLight;
}

.font-critregular {
  font-family: CritRegular;
}

strong, h1, h2, h3, h4, h5, h6, .navbar a {
  font-family: CritBold;
}

.bg-azul {
  background-color: #112ffd;
}

.bg-rosado {
  /* No es el del libro de marca (#eb5db0) porque se veía opaco */
  background-color: #ff44b1;
}

.bg-azul-largo {
  background-image: url(../img/bg-azul-largo.jpg);
  background-position: center;
  background-size: cover;
}

.bg-negro-creatividad, .bg-negro-diseno, .bg-negro-desarrollo, .bg-negro-medios {
  background-position: center left;
  background-size: cover;
}

.bg-negro-creatividad {
  background-image: url(../img/bg-negro-creatividad.jpg);
}

.bg-negro-diseno {
  background-image: url(../img/bg-negro-diseno.jpg);
}

.bg-negro-desarrollo {
  background-image: url(../img/bg-negro-desarrollo.jpg);
}

.bg-negro-medios {
  background-image: url(../img/bg-negro-medios.jpg);
}

.text-azul {
  color: #112ffd;
}

.text-rosado, .wpcf7-not-valid-tip {
  /* No es el del libro de marca porque se veía opaco */
  color: #ff44b1;
}

.navbar {
  z-index: 9999;
}

.navbar-brand-logo {
  width: 200px;
}

.fs-6vw {
  font-size: 6vw;
}

.fs-8vw {
  font-size: 8vw;
}

.pilar-lottie {
  width: 15vw;
  height: 15vw;
}

.layer-img-perfil-overlay {
  transition: 0.5s;
  opacity: 0;
}

.bg-black-transparente {
  background-color: rgba(0, 0, 0, 0.85);
}

.layer-img-perfil:hover .layer-img-perfil-overlay {
  opacity: 1;
}

.layer-img-perfil img {
  height: 400px;
  border: 3px solid #112ffd;
}

.modal {
  z-index: 99999999;
}

.vh-proyectos {
  height: 75vh;
}

.icono_pilar {
  width: 50px;
}

.single-proyecto .navbar {
  position: unset !important;
}

.single-proyecto .navbar a, .single-proyecto .navbar i {
  color: #000 !important;
}

.single-proyecto .navbar-contacto {
  border-color: #000 !important;
}

.single-proyecto .navbar-brand-logo {
  filter: invert(1);
}

.nav-link {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .pilar-lottie {
    width: 30vw;
    height: 30vw;
  }

  .layer-img-perfil img {
    height: 200px;
  }

  .bg-creatividad, .bg-diseno, .bg-desarrollo, .bg-medios {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .bg-creatividad {
    background-image: url(../img/creatividad.png);
  }

  .bg-diseno {
    background-image: url(../img/diseno.png);
  }

  .bg-desarrollo {
    background-image: url(../img/desarrollo.png);
  }

  .bg-medios {
    background-image: url(../img/medios.png);
  }

  .vh-proyectos {
    height: 40vh;
  }
}

/*** FORM DE CONTACTO ***/

.wpcf7-checkbox {
  display: flex;
  justify-content: space-between;
}

/* ocultar checkbox original */
.wpcf7-checkbox input[type="checkbox"] {
  display: none;
}

/* label */
.wpcf7-checkbox .wpcf7-list-item-label {
  position: relative;
  padding-left: 34px;
  cursor: pointer;
}

/* caja base */
.wpcf7-checkbox .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: #eee;
  transition: all .2s ease;
}

/* fondo rosado cuando está activo */
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  background: #ff44b1;
}

/* check dibujado con border (igual a tu screenshot) */
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.wpcf7-list-item {
  margin: 0;
  width: 25%;
}

.wpcf7 form .wpcf7-response-output {
  border-color: #eb5db0 !important;
  color: #fff;
  margin: 0;
}

@media (max-width:767px) {
  .wpcf7-checkbox {
    justify-content: start;
    flex-wrap: wrap;
  }

  .wpcf7-list-item {
    width: 50%;
    margin-bottom: 10px;
  }

  .wpcf7-submit {
    width: 100%;
  }
}

/*** BANNER ANIMADO CON EL SCROLL DEL HOME ***/

.lock-scroll {
  overflow: hidden;
}

.banner-animacion {
  clip-path: inset(0% 0% 0% 0%);
  will-change: clip-path;
  z-index: 999;
}

.lottie-banner-animacion {
  width: 40vw;
  height: 40vw;
}

#guia-scroll {
  transition: opacity 4s ease;
}

.girar-90 {
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  .lottie-banner-animacion {
    width: 60vw;
    height: 60vw;
  }
}

/*** CARRUSEL DE PALABRAS ***/

.headline span {
  display: inline-block;
  transition: transform .4s ease, opacity .4s ease;
  font-size: 6vw;
}

.prepare-down {
  transform: translateY(12px);
  opacity: 0;
}

.prepare-up {
  transform: translateY(-12px);
  opacity: 0;
}

.out-up {
  transform: translateY(-12px);
  opacity: 0;
}

.out-down {
  transform: translateY(12px);
  opacity: 0;
}

.in {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 767px) {
  .headline span {
    font-size: 8vw;
  }
}

/*** NAVBAR ***/

.hvr-underline-custom {
  margin: 0 !important;
}

.hvr-underline-custom, .navbar #menu-primario a, .hvr-underline-custom, .fullscreen-menu a {
  color: #ffffff;
  position: relative;
  margin: 0 20px;
}

.hvr-underline-custom::after, .hvr-underline-custom::before, .navbar #menu-primario a::after,
.navbar #menu-primario a::before, .fullscreen-menu a::after, .fullscreen-menu a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #eb5db0;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hvr-underline-custom::before, .navbar #menu-primario a::before, .fullscreen-menu a::before {
  top: -5px;
  transform-origin: left;
}

.hvr-underline-custom:hover::after, .hvr-underline-custom:hover::before, .navbar #menu-primario a:hover::after, .navbar #menu-primario a:hover::before, .fullscreen-menu a:hover::after, .fullscreen-menu a:hover::before {
  transform: scaleX(1);
}

/*** MENÚ ***/

.fullscreen-menu {
  transition: 0.5s;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
}

.esconder {
  opacity: 0;
  visibility: hidden;
}

.btn-cerrar {
  top: 30px;
  right: 30px;
}

.fullscreen-menu .menu-item a {
  color: #fff;
  font-size: 8vw;
  padding: 0;
  margin: 10px;
}

/*** VIDEO CUADRADO DE PROYECTO ***/

.video-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.video-square video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-square iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}
