@font-face {
  font-family: cod;
  src: url(fonts/ModernWarfare.ttf);
}

html, body {
    overflow: hidden; /* Evita el scroll */
    height: 100%; /* Asegura que no haya desplazamiento */
}

body {
  display: flex;
  justify-content: flex-end;
  margin-top: 2em;
  cursor: url('cursor/normal.cur'), auto;
}

/* Pantallazo azul estilo Windows en móviles */

  #pantalla-error {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0079D8; /* Color clásico BSOD */
    color: #ffffff;
    font-family: 'Consolas', 'Courier New', monospace;
    z-index: 9999;
    text-align: left;
    padding: 40px;
    box-sizing: border-box;
  }

  .bsod {
    max-width: 600px;
  }

  .bsod h1 {
    font-size: 5rem;
    margin: 0;
    margin-bottom: 20px;
  }

  .bsod h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .bsod p {
    font-size: 1.2rem;
    margin: 10px 0;
  }

  .bsod .small {
    font-size: 0.9rem;
    display: block;
    margin-top: 20px;
  }

.circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 30px solid transparent;
  background-image: linear-gradient(to bottom,
      #74ACDF 0%,
      #74ACDF 33.33%,
      white 33.33%,
      white 66.66%,
      #74ACDF 66.66%,
      #74ACDF 100%);
  background-clip: border-box;
  -webkit-mask-image: radial-gradient(circle, transparent 70px, black 71px);
  mask-image: radial-gradient(circle, transparent 70px, black 71px);
  background-origin: border-box;
}

#volver-home button {
  cursor: url('cursor/pointer.cur'), pointer;
}

.lateral {
  backdrop-filter: blur(50px);
  background-color: rgba(0, 0, 0, 0.103);

  transform-style: preserve-3d;
  transform: rotatey(341deg);
  /* Ajusta el valor para cambiar la inclinación */
  transition: transform 0.5s ease-in-out;
  /* Para hacer la transición suave */
}

.main {
  display: grid;
  grid-template-columns: 0.5fr 5fr;
  perspective: 800px
}

.inventario {

  transform-style: preserve-3d;
  transform: rotatey(341deg);
  /* Ajusta el valor para cambiar la inclinación */
  transition: transform 0.5s ease-in-out;
  /* Para hacer la transición suave */

  display: grid;
  grid-template-columns: repeat(2, 0fr);
  grid-template-rows: repeat(3, 1fr);
  grid-row-gap: 20px;
  margin: 0em 5em 1em 0em;
  justify-items: center;
}

.item1 {
  grid-column: span 2;
  width: 43.5em;
}

.inventario h1 {
  color: white;
  font-family: cod;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  font-size: 3.2em;

}

.inventario h2 {
  color: white;
  font-family: cod;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  font-size: 2.2em;

}



.icono {
  width: 5em;
}

.proyecto {
  position: absolute;
  opacity: 0;
  top: 0px;
  transition: opacity 0.3s ease-in-out;
  cursor: url('cursor/pointer.cur'), pointer;
}

.proyecto:hover {
  opacity: 1;
}

.inventario div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.item1 {
  background: linear-gradient(0deg, #ff1e00 -10%, rgba(0, 0, 0, 0.21052170868347342) 100%);
  backdrop-filter: blur(20px);
}

.item {
  width: 20em;
  background: linear-gradient(90deg, rgb(255, 30, 0) 7%, rgba(0, 0, 0, 0.21052170868347342) 39%);
  backdrop-filter: blur(20px);
  cursor: url('cursor/pointer.cur'), pointer;
}

#item1,
.about-item {
  background: linear-gradient(90deg, #ffb213 -3%, rgba(0, 0, 0, 0.21052170868347342) 39%);
  backdrop-filter: blur(20px);
  cursor: url('cursor/pointer.cur'), pointer;
}

#item2,
.servicios-item {
  background: linear-gradient(90deg, #05ff94 -3%, rgba(0, 0, 0, 0.21052170868347342) 39%);
  backdrop-filter: blur(20px);
  cursor: url('cursor/pointer.cur'), pointer;
}

#item3,
.proyectos-item {
  background: linear-gradient(90deg, #fc6535 -3%, rgba(0, 0, 0, 0.21052170868347342) 39%);
  backdrop-filter: blur(20px);
  cursor: url('cursor/pointer.cur'), pointer;
}

#item4,
.contacto-item {
  background: linear-gradient(90deg, #fd8000 -3%, rgba(0, 0, 0, 0.21052170868347342) 39%);
  backdrop-filter: blur(20px);
  cursor: url('cursor/pointer.cur'), pointer;
}

.contacto-menu {
  background: linear-gradient(90deg, #fd8000 -3%, rgba(0, 0, 0, 0.21052170868347342) 39%);
  backdrop-filter: blur(20px);
  width: 43.5em;
  grid-column: span 2;
}

.zoom {
  padding: 50px;
  transition: transform .2s;
  /* Animation */
  margin: 0 auto;
}

.zoom:hover {
  transform: scale(1.1);
  /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.lateral li {
  text-align: end;
  color: white;
  font-weight: bold;
  font-size: 1.3em;
  margin-top: 2em;
}

#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hace que el video cubra todo el fondo sin distorsionarse */
}

#background-video-reversa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hace que el video cubra todo el fondo sin distorsionarse */
}

/* botón mail */

/* From Uiverse.io by Galahhad */ 
.ui-btn {
  --btn-default-bg: rgb(41, 41, 41);
  --btn-padding: 15px 20px;
  --btn-hover-bg: rgb(51, 51, 51);
  --btn-transition: .3s;
  --btn-letter-spacing: .1rem;
  --btn-animation-duration: 1.2s;
  --btn-shadow-color: rgba(0, 0, 0, 0.137);
  --btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);
  --hover-btn-color: #FAC921;
  --default-btn-color: #fff;
  --font-size: 30px;
  /* 👆 this field should not be empty */
  --font-weight: 600;
  --font-family: Menlo,Roboto Mono,monospace;
  /* 👆 this field should not be empty */
}

/* button settings 👆 */

.ui-btn {
  box-sizing: border-box;
  padding: var(--btn-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-btn-color);
  font: var(--font-weight) var(--font-size) var(--font-family);
  background: var(--btn-default-bg);
  border: none;
  cursor: pointer;
  transition: var(--btn-transition);
  overflow: hidden;
  box-shadow: var(--btn-shadow);
  cursor: url('cursor/pointer.cur'), pointer;
}

.ui-btn span {
  letter-spacing: var(--btn-letter-spacing);
  transition: var(--btn-transition);
  box-sizing: border-box;
  position: relative;
  background: inherit;
}

.ui-btn span::before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  background: inherit;
}

.ui-btn:hover, .ui-btn:focus {
  background: var(--btn-hover-bg);
}

.ui-btn:hover span, .ui-btn:focus span {
  color: var(--hover-btn-color);
}

.ui-btn:hover span::before, .ui-btn:focus span::before {
  animation: chitchat linear both var(--btn-animation-duration);
}

@keyframes chitchat {
  0% {
    content: "#";
  }

  5% {
    content: ".";
  }

  10% {
    content: "^{";
  }

  15% {
    content: "-!";
  }

  20% {
    content: "#$_";
  }

  25% {
    content: "№:0";
  }

  30% {
    content: "#{+.";
  }

  35% {
    content: "@}-?";
  }

  40% {
    content: "?{4@%";
  }

  45% {
    content: "=.,^!";
  }

  50% {
    content: "?2@%";
  }

  55% {
    content: "\;1}]";
  }

  60% {
    content: "?{%:%";
    right: 0;
  }

  65% {
    content: "|{f[4";
    right: 0;
  }

  70% {
    content: "{4%0%";
    right: 0;
  }

  75% {
    content: "'1_0<";
    right: 0;
  }

  80% {
    content: "{0%";
    right: 0;
  }

  85% {
    content: "]>'";
    right: 0;
  }

  90% {
    content: "4";
    right: 0;
  }

  95% {
    content: "2";
    right: 0;
  }

  100% {
    content: "";
    right: 0;
  }
}




/* glitch */


.efecto-glitch {
  /*propiedades para hacer el efecto "responsivo"*/
  max-width: 500px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  /*Propiedades background css3 para que el fondo sea "responsivo"*/
  background: url(glitch/glitch-1.png);
  background-repeat: no-repeat;
  background-size: contain;
  /*Propiedad Animacion CSS*/
  -webkit-animation:
    /*Dos grupos de animaciones*/
    glitch 7s cubic-bezier(0.5, 0.2, 0.3, 1.0) infinite,
    glitchMotion 7s cubic-bezier(0.5, 0.2, 0.3, 1.0) infinite;
  animation:
    /*Dos grupos de animaciones*/
    glitch 7s cubic-bezier(0.5, 0.2, 0.3, 1.0) infinite,
    glitchMotion 7s cubic-bezier(0.5, 0.2, 0.3, 1.0) infinite;
}

.efecto-glitch img {
  /*la imagen oculta es la que otorga una altura proporcional al div*/
  width: 8em;
  height: auto;
  vertical-align: middle;
  opacity: 0;
}

@-webkit-keyframes glitch {

  /*Nosotros especificamos el intervalo de tiempo en el que queremos que las imagenes de fondo cambien.*/

  0% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
    border-radius: 50%;
  }

  1.5% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  1.6% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  1.7% {
    background: url(glitch/glitch-5.png) no-repeat;
    background-size: contain;
  }

  1.8% {
    background: url(glitch/glitch-2.png) no-repeat;
    background-size: contain;
  }

  1.9% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  2% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  2.3% {
    background: url(glitch/glitch-5.png) no-repeat;
    background-size: contain;
  }

  2.5% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  3% {
    background: url(glitch/glitch-2.png) no-repeat;
    background-size: contain;
  }

  5% {
    background: url(glitch/glitch-4.png) no-repeat;
    background-size: contain;
  }


  7.6% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  7.7% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  7.8% {
    background: url(glitch/glitch-2.png) no-repeat;
    background-size: contain;
  }

  7.9% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  8% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  8.3% {
    background: url(glitch/glitch-4.png) no-repeat;
    background-size: contain;
  }

  8.5% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }



  14.9% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  15.5% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  15.7% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }



  40.9% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  41.5% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  42% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  70.9% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  71.5% {
    background: url(glitch/glitch-5.png) no-repeat;
    background-size: contain;
  }

  71.8% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  72% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }


}

@keyframes glitch {

  /*Nosotros especificamos el intervalo de tiempo en el que queremos que las imagenes de fondo cambien.*/

  0% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  1.5% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  1.6% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  1.7% {
    background: url(glitch/glitch-5.png) no-repeat;
    background-size: contain;
  }

  1.8% {
    background: url(glitch/glitch-2.png) no-repeat;
    background-size: contain;
  }

  1.9% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  2% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  2.3% {
    background: url(glitch/glitch-5.png) no-repeat;
    background-size: contain;
  }

  2.5% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  3% {
    background: url(glitch/glitch-2.png) no-repeat;
    background-size: contain;
  }

  5% {
    background: url(glitch/glitch-4.png) no-repeat;
    background-size: contain;
  }


  7.6% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  7.7% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  7.8% {
    background: url(glitch/glitch-2.png) no-repeat;
    background-size: contain;
  }

  7.9% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  8% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  8.3% {
    background: url(glitch/glitch-4.png) no-repeat;
    background-size: contain;
  }

  8.5% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }



  14.9% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  15.5% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  15.7% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }



  40.9% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  41.5% {
    background: url(glitch/glitch-3.png) no-repeat;
    background-size: contain;
  }

  42% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  70.9% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }

  71.5% {
    background: url(glitch/glitch-5.png) no-repeat;
    background-size: contain;
  }

  71.8% {
    background: url(glitch/glitch-6.png) no-repeat;
    background-size: contain;
  }

  72% {
    background: url(glitch/glitch-0.png) no-repeat;
    background-size: contain;
  }


}

@-webkit-keyframes glitchMotion {

  /*Una segunda animacion para crear el efecto de movimiento, tambien puede ir dentro de la primera animacion pero preferi hacerlas por separado*/

  7% {
    transform: translateX(0);
  }

  7.5% {
    transform: translateX(0) translateY(5px);
  }

  7.9% {
    transform: translateX(0) translateY(0);
  }

  40% {
    transform: translateX(0);
  }

  40.5% {
    transform: translateX(-12px) translateY(0);
  }

  40.9% {
    transform: translateX(0) translateY(0);
  }

  70% {
    transform: translateX(0);
  }

  70.5% {
    transform: translateX(5px) translateY(0);
  }

  70.9% {
    transform: translateX(0) translateY(0);
  }

}

@keyframes glitchMotion {

  /*Una segunda animacion para crear el efecto de movimiento, tambien puede ir dentro de la primera animacion pero preferi hacerlas por separado*/

  7% {
    transform: translateX(0);
  }

  7.5% {
    transform: translateX(0) translateY(5px);
  }

  7.9% {
    transform: translateX(0) translateY(0);
  }

  40% {
    transform: translateX(0);
  }

  40.5% {
    transform: translateX(-12px) translateY(0);
  }

  40.9% {
    transform: translateX(0) translateY(0);
  }

  70% {
    transform: translateX(0);
  }

  70.5% {
    transform: translateX(5px) translateY(0);
  }

  70.9% {
    transform: translateX(0) translateY(0);
  }

}
