/* Header - Sticky y Transparente */
.header {
	background-color: rgba(34, 34, 34, 0.749); /* Fondo transparente */
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 50px; /* Reducimos el padding para bajar la altura */
	width: 100%;
	position: sticky; /* Sticky para mantenerlo visible al hacer scroll */
	top: 0;
	z-index: 1000000; /* Mayor que el z-index del video para situarse encima */
	backdrop-filter: blur(5px); /* Añadir desenfoque si es necesario */
	height: 100px; /* Ajustamos la altura si es necesario */
}
  /* Ajustamos el contenedor del logo */
.header .logo img {
	width: 100px; /* Tamaño del logo */
	height: fit-content;
	padding-top: 20px;
}

.logo {
	padding-left: 50px;
	z-index: 100000;
}
  
  .navbar {
	display: flex;
	gap: 30px; /* Ajustar el espacio entre enlaces */
  }
  
  
  /* Menú */
  article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
  *,
  *::after,
  *::before {
  box-sizing: border-box;
  }
  /* Asegúrate de que el menú esté siempre encima */
.menu {
    position: fixed; /* Fija el menú en pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Valor extremadamente alto */
}

/* Ajusta las cartas y textos para estar por debajo */
.item, .intro, .content, .glitch {
    position: relative; /* Asegura un contexto de apilamiento */
    z-index: 1; /* Mantén este valor bajo */
}

/* Ajusta el fondo o cualquier otro elemento que pueda estar afectando */
.background, .bubbles, body {
    position: relative;
    z-index: 0; /* Asegúrate de que queden en el fondo */
}
  body {
  --color-text: #fff;
  --color-bg: #F0F0F0;
  --color-link: #fff;
  --color-link-hover: #D1B190;
  --color-bg-item1: #1C1F21;
  --color-bg-item2: #D1B190;
  --color-bg-item3: #1C1F21;
  --color-bg-item4: #1d2027;
  --color-bg-item5: #F0F0F0;
  --color-item-alt: #1068ff00;
  --color-quote: #1C1F21;
  --color-info: #57535a;
  --color-title: #D1B190;
  --color-tagline: #e2e2e2;
  font-family: "europa", Futura, Arial, sans-serif;
  min-height: 100vh;
  color: #57585c;
  color: var(--color-text);
  background-color: #F0F0F0;
  background-color: var(--color-bg);
  overflow: visible;
  padding: 6rem 0 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }
  
  /* Carga */
  .js .loading::before {
  content: '';
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  }
  
  .js .loading::after {
  content: '';
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
  }
  
  @keyframes loaderAnim {
  to {
	opacity: 1;
	transform: scale3d(0.5,0.5,1);
  }
  }
  
  
  a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  transition: color 0.2s;
  }
  
  a:hover,
  a:focus {
  color: var(--color-link-hover);
  }
  
  button:focus,
  a:focus {
  outline: none;
  }
  
  .hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
  }
  
  /* Icons */
  .icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0 auto;
  fill: currentColor;
  }
  
  main {
  position: relative;
  width: 100%;
  }
  
  .frame {
  position: relative;
  z-index: 199;
  }
  
  .content {
  text-align: center;
  position: relative;
  z-index: 100;
  }
  
  .background {
  perspective: 1000px;
  }
  
  .background,
  .background__copy {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url(../img/1.jpg);
  background-position: 50% 0%;
  background-size: cover;
  z-index: 1;
  }
  
  .background__copy {
  opacity: 0.3;
  transform: translate3d(0,0,0);
  }
  
  /* Header 2 */
  .codrops-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  align-self: start;
  }
  
  .codrops-header__title {
  font-size: 1rem;
  line-height: 1;
  font-weight: normal;
  margin: 0 1rem;
  }
  
  .info {
  display: block;
  grid-area: info;
  margin: 1rem 0;
  justify-self: end;
  text-align: center;
  }
  
  /* Top Navigation Style */
  .codrops-links {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-size: 0.85rem;
  }
  
  .codrops-icon {
  display: inline-block;
  padding: 0.25em;
  }
  
  .content__title {
  font-family: "sabbath-black", serif;
  font-size: 14vw;
  font-weight: normal;
  mix-blend-mode: screen;
  line-height: 0.8;
  text-transform: lowercase;
  margin: 0;
  color: var(--color-title);
  z-index: 199;
  cursor: default;
  }
  
  .content__tagline {
  color: var(--color-tagline);
  margin: 1rem 0 0 0;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.125rem;
  word-spacing: 0.25rem;
  text-transform: uppercase;
  text-align: center;
  z-index: 199;
  cursor: default;
  }
  
  
  
  
  
  
  .action {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0;
  }
  
  .action--menu {
  pointer-events: auto;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  }
  
  .menu--open .action--menu {
  pointer-events: none;
  }
  
  .action--close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 1000;
  opacity: 0;
  padding: 0 0.5rem;
  }
  
  .icon--menu {
  width: 3rem;
  }
  
  .icon--close {
  width: 3rem;
  }

  
  .menu {
  text-align: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: repeat(3,33.33%);
  pointer-events: none;
  }
  
  .menu--open {
  pointer-events: auto;
  }
  
  .menu__item {
  width: 100%;
  position: relative;
  overflow: hidden;
  }
  
  .menu__item-inner {
  overflow: hidden;
  transform: translate3d(100%,0,0);
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  }
  
  .menu__item--1 .menu__item-inner {
  background: var(--color-bg-item1);
  }
  .menu__item--2 .menu__item-inner {
  background: var(--color-bg-item2);
  }
  .menu__item--3 .menu__item-inner {
  background: var(--color-bg-item3);
  }
  .menu__item--4 .menu__item-inner {
  background: var(--color-bg-item4);
  }
  .menu__item--5 .menu__item-inner {
  background: var(--color-bg-item5);
  }
  
  
  
  .label {
  display: none;
  }
  
  .mainmenu__item {
  opacity: 0;
  }
  
  .mainmenu__item,
  .sidemenu__item {
  position: relative;
  overflow: hidden;
  transition: color 0.1s;
  margin: 0.25rem 0;
  display: block;
  }
  
  .sidemenu__item-inner {
  display: block;
  transform: translate3d(0,100%,0);
  }
  
  .menu__item-map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: url(https://i.imgur.com/fwgijm6.jpeg) no-repeat 50% 50%;
  background-size: cover;
  transition: transform 0.8s cubic-bezier(0.2,1,0.8,1);
  }
  
  .menu__item-inner:hover .menu__item-map {
  transform: scale3d(1.1,1.1,1);
  }
  
  .menu__item-hoverlink {
  font-weight: bold;
  text-transform: capitalize;
  position: relative;
  z-index: 1000;
  display: block;
  }
  
  .menu__item-hoverlink:hover {
  color: var(--color-link);
  }
  
  .quote {
  font-size: 2rem;
  padding: 1rem;
  text-align: center;
  max-width: 70%;
  color: var(--color-quote);
  font-family: "sabbath-black",serif;
  }
  
  .menu__item-link {
  text-align: left;
  align-self: flex-start;
  justify-self: start;
  font-size: 1.5rem;
  width: 100%;
  line-height: 1;
  padding: 2rem ;
  margin: 3rem 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100% - 3rem);
  }
  
  .menu__item-link::after {
  content: '\27F6';
  display: block;
  margin-top: auto;
  font-size: 0.95rem;
  }
  
  @media screen and (min-width: 768px) {
  body {
	padding: 0;
  }
  .content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	min-height: 10vh;
	text-align: left;
  }
  .frame {
	position: fixed;
	z-index: 199;
	top: 0;
	left: 0;
	display: grid;
	align-content: space-between;
	width: 100%;
	max-width: none;
	height: 100vh;
	padding: 1.5rem;
	pointer-events: none;
	grid-template-columns: 50% 50%;
	grid-template-rows: auto auto auto;
	grid-template-areas: 
	'codropsheader info'
	'... ...'
	'github ...';
  }
  .codrops-header {
	grid-area: codropsheader;
	padding: 0;
	justify-content: start;
  }
  .codrops-links {
	margin: 0;
  }
  .frame a {
	pointer-events: auto;
  }
  .github {
	grid-area: github;
	justify-self: start;
  }
  .info {
	margin: 0 6rem 0 0;
	color: var(--color-info);
  }
  .menu {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	position: fixed;
	top: 0;
	left: 0;
	grid-template-columns: 20% 30% 50%;
	grid-template-rows: 60% 40%;
	grid-template-areas: 
			"item3 item2 item1"
			"item4 item5 item1";
  }
  .menu__item {
	height: 100%;
  }
  .menu__item--1 {
	grid-area: item1;
  }
  .menu__item--2 {
	grid-area: item2;
  }
  .menu__item--3 {
	grid-area: item3;
  }
  .menu__item--4 {
	grid-area: item4;
  }
  .menu__item--5 {
	grid-area: item5;
  }
  .menu__item--4, 
  .menu__item--5 {
	display: block;
  }
  .menu__item-inner {
	align-items: center;
  }
  .label {
	display: block;
	color: var(--color-item-alt);
	position: absolute;
	z-index: 1000;
	font-size: 0.85rem;
	font-weight: bold;
	margin: 0;
	white-space: nowrap;
  }
  .label--topleft {
	top: 2rem;
	left: 2rem;
  }
  .label--vert,
  .label--vert-mirror {
	-webkit-writing-mode: vertical-rl;
	writing-mode: vertical-rl;
  }
  .label--vert-mirror {
	transform: rotate(180deg);
  }
  .label--bottomright {
	bottom: 2rem;
	right: 2rem;
  }
  .label::before {
	content: '------------- ';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: -1px;
	margin: 0 0.75rem 0 0;
  }
  .label--vert::before,
  .label--vert-mirror::before {
	margin: 0.75rem 0;
  }
  .mainmenu,
  .sidemenu {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
  }
  .mainmenu {
	counter-reset: menuitem;
  }
  .mainmenu__item {
	font-size: 5vw;
	text-transform: lowercase;
	overflow: hidden;
	margin: 0.5rem 0;
	padding: 0 0.5rem;
	position: relative;
	transition: color 0.3s;
  }
  .mainmenu__item:hover {
	color: var(--color-item-alt);
  }
  .mainmenu__item::before {
	counter-increment: menuitem;
	content: counters(menuitem, "", decimal-leading-zero);
	position: absolute;
	  font-size: 0.85rem;	
	  top: 25%;
	  left: -1.25rem;
	  color: var(--color-item-alt);
  }
  .mainmenu__item::after {
	content: '';
	width: 100%;
	top: 58%;
	height: 6px;
	background: var(--color-link-hover);
	position: absolute;
	left: 0;
	opacity: 0;
	transform: scale3d(0,1,1);
	transition: transform 0.3s, opacity 0.3s;
	transform-origin: 100% 50%;
  }
  .mainmenu__item:hover::after {
	opacity: 1;
	transform: scale3d(1,1,1);
  }
  .sidemenu__item {
	text-transform: uppercase;
	letter-spacing: 0.15rem;
	font-size: 0.85rem;
  }
  .menu__item-hoverlink {
	font-size: 1.25rem;
	text-transform: lowercase;
	border-bottom: 2px solid #fff;
	opacity: 0;
	transition: opacity 0.3s;
  }
  .menu__item-inner:hover .menu__item-hoverlink {
	opacity: 1;
  }
  }
  
  .action--menu {
	position: fixed; /* Fija el botón en la ventana */
	top: 0; /* Alineado al borde superior */
	right: 0; /* Alineado al borde derecho */
	margin: 1rem; /* Espaciado dentro de la esquina */
	z-index: 1000; /* Asegura que esté por encima de otros elementos */
	pointer-events: auto; /* Habilita la interacción */
  }
  .menu-container {
	position: static; /* O elimina la propiedad position si no es necesaria */
  }
  @media screen and (max-width: 768px) {
	.action--menu {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		margin: 1rem !important;
	}
  }
  
  
  @media screen and (max-width: 768px) {
	.action--menu {
		top: 1rem; /* Puedes ajustar esto según sea necesario */
		right: 1rem; /* Puedes ajustar esto según sea necesario */
	}
  }
  
  
  

	/* Efecto Glitch*** */

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
	--color-text: #000;
	--color-bg: #F0F0F0;
	--color-link: #fff;
	--color-link-hover: #000;
	--color-label: #fff;
	--content-hover: #D1B190;
	/* Glitch variables */
	--gap-horizontal: 20px;
    --gap-vertical: 5px;
	--time-anim: 1s;
	--blend-mode-1: none;
	--blend-mode-2: color-dodge;
	--blend-mode-3: luminosity;
	--blend-mode-4: none;
	--blend-mode-5: none;
	--blend-color-1: c
	--blend-color-2: #D1B190;
	--blend-color-3: #F0F0F0;
	--blend-color-4: #F0F0F0;
	--blend-color-5: #D1B190;
	/* Rotation variables */
	--rotate-time: 0.5s;
	--rotate-easing: cubic-bezier(0.2,1,0.3,1);
	/* Cover variables */
	--fade-out-time: 0.25s;
	--fade-in-time: 0.25s;
	--fade-out-easing: ease-out;
	--fade-in-easing: ease-out;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: widescreen-ex, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

p{ color:#1C1F21
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}


a:focus {
	/* Para navegadores que no supporten el focus visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	background: transparent;
}

a:focus-visible {
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	padding: 1rem 2rem;
	text-transform: uppercase;
}

.frame__title-main {
	font-size: 1rem;
	margin: 0;
	font-weight: normal;
}

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-bottom: 0.15rem;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: var(--color-text);
}

.frame__title-prev {
	margin: 0 2rem 0 0;
}

.frame__demo {
	margin: 0 1rem 0 0;
}

.frame__demo--current {
	color: var(--color-link-hover);
}

.intro { 
	padding: 10vh 2rem 10vh;
	margin-bottom: 2rem;
}

.intro__title {
	grid-area: title;
	font-family: widescreen-ex, sans-serif;
	font-weight: 800;
	font-size: clamp(2rem,12vw,10rem);
	line-height: 1;
	margin: 0;
}

.intro__title span {
	text-transform: uppercase;
	-webkit-text-stroke: 1px #000;
	text-stroke: 1px #000;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;
	color: transparent;
	text-shadow: -10px 10px 0 #000;
}

.intro__title em {
	
	font-weight: 300;
	font-style: normal;
	display: block;
	margin: -2.5vw 0 0 0;
	text-transform: uppercase;
    font-size: clamp(2rem,10vw,10rem);
    -webkit-text-stroke: 1px #000;
	text-stroke: 1px #000;
	-webkit-text-fill-color: var(--color-bg);
	text-fill-color: var(--color-bg);
	color: var(--color-bg);
}

.intro__description {
	margin: 1.75vw 0 0 0;
	grid-area: desc;
	font-weight: 500;
	font-size: clamp(1rem, 2vw, 1.25rem);
	max-width: 350px;
}

.intro__button {
	grid-area: button;
	border: 1px solid var(--color-text);
	background: var(--color-bg);
	box-shadow: 1px 2px 0 #000;
	font-size: 1.25rem;
	padding: 1rem 2rem;
	border-radius: 1.25rem;
	justify-self: end;
	font-weight: bold;
	text-transform: uppercase;
	margin-top: 1rem;
}

.intro__button:hover,
.intro__button:focus {
	transform: translate3d(1px,2px,0);
	box-shadow: 0px 0px 0 #000;
}

.content {
	display: grid;
	grid-gap: 1.5rem;
	margin: 0 auto;
	padding-bottom: 30vh;
	grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
}

.item {
	aspect-ratio: 0.8;
	cursor: pointer;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	perspective: 1000px;
	overflow: hidden;
	position: relative;
	margin: 0;
}

.demo-2 .item {
	overflow: visible;
}

.demo-2 .item--oh {
	overflow: hidden;
}

.item__img {
	grid-area: 1 / 1 / -1 / -1;
	position: relative;
	opacity: 0;
	width: 100%;
	height: 100%;
}

.item:hover .item__img {
	opacity: 1;
	transition: transform var(--rotate-time) var(--rotate-easing);
	transform: translateZ(-200px) rotateX(60deg) rotateY(0) rotateZ(-35deg);
}

.glitch {
	display: grid;
	place-items: center;
}

.glitch__img {
	grid-area: 1 / 1 / -1 / -1;
	background-image: var(--img);
	background-position: 50% 50%;
	background-size: cover;
	image-rendering: pixelated;
	width: 100%;
	height: 100%;
	background-color: var(--blend-color-1);
	transform: translate3d(0,0,0);
	background-blend-mode: var(--blend-mode-1);
}

.glitch__img:nth-child(2) {
	background-color: var(--blend-color-2);
	background-blend-mode: var(--blend-mode-2);
}

.glitch__img:nth-child(3) {
	background-color: var(--blend-color-3);
	background-blend-mode: var(--blend-mode-3);
}

.glitch__img:nth-child(4) {
	background-color: var(--blend-color-4);
	background-blend-mode: var(--blend-mode-4);
}

.glitch__img:nth-child(5) {
	background-color: var(--blend-color-5);
	background-blend-mode: var(--blend-mode-5);
}

/* Hide all images except the first one */
.glitch__img:nth-child(n+2) {
	opacity: 0;
}

/* Hovers */

/* On hover we show the 2nd, 3rd, 4th and 5th image*/
.item:hover .glitch__img:nth-child(n+2) {
	opacity: 1;
}

/* Hover animations for horizontal case */
.item:hover .glitch__img:nth-child(2) {
	transform: translate3d(var(--gap-horizontal),0,0);
	animation: glitch-anim-1-horizontal var(--time-anim) infinite linear alternate;
}

.item:hover .glitch__img:nth-child(3) {
	transform: translate3d(calc(-1 * var(--gap-horizontal)),0,0);
	animation: glitch-anim-2-horizontal var(--time-anim) infinite linear alternate;
}

.item:hover .glitch__img:nth-child(4) {
	transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0) scale3d(-1,-1,1);
	animation: glitch-anim-3-horizontal var(--time-anim) infinite linear alternate;
}

/* Hover flash animation on last image */
.item:hover .glitch__img:nth-child(5) {
	animation: glitch-anim-flash 0.5s steps(1,end) infinite;
}

/* Animations */

/* Horizontal */
@keyframes glitch-anim-1-horizontal {
	0% { 
		-webkit-clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
		clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
	}
	10% {
		-webkit-clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
		clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
	}
	20% {
		-webkit-clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
		clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
	}
	30% {
		-webkit-clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
		clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
	}
	40% {
		-webkit-clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
		clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
	}
	50% {
		-webkit-clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
		clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
	}
	60% {
		-webkit-clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
		clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
	}
	70% {
		-webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
		clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
	}
	80% {
		-webkit-clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
		clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
	}
	90% {
		-webkit-clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
		clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
	}
	100% {
		-webkit-clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
		clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
	}
}

@keyframes glitch-anim-2-horizontal {
	0% { 
		-webkit-clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
		clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
	}
	15% {
		-webkit-clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
		clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
	}
	22% {
		-webkit-clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
		clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
	}
	31% {
		-webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
		clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
	}
	45% {
		-webkit-clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
		clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
	}
	51% {
		-webkit-clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
		clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
	}
	63% {
		-webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
		clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
	}
	76% {
		-webkit-clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
		clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
	}
	81% {
		-webkit-clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
		clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
	}
	94% {
		-webkit-clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
		clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
	}
	100% {
		-webkit-clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
		clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
	}
}

@keyframes glitch-anim-3-horizontal {
	0% { 
		-webkit-clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
		clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
	}
	5% {
		-webkit-clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
		clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
	}
	10% {
		-webkit-clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
		clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
	}
	25% {
		-webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
		clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
	}
	27% {
		-webkit-clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
		clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
	}
	30% {
		-webkit-clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
		clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
	}
	33% {
		-webkit-clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
		clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
	}
	37% {
		-webkit-clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
		clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
	}
	40% {
		-webkit-clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
		clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
	}
	45% {
		-webkit-clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
		clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
	}
	50% {
		-webkit-clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
		clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
	}
	53% {
		-webkit-clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
		clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
	}
	57% {
		-webkit-clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
		clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
	}
	60% {
		-webkit-clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
		clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
	}
	65% {
		-webkit-clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
		clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
	}
	70% {
		-webkit-clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
		clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
	}
	73% {
		-webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
		clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
	}
	80% {
		-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
		clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
	}
	100% {
		-webkit-clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
		clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
	}
}

/* Vertical */
@keyframes glitch-anim-1-vertical {
	0% { 
		-webkit-clip-path: polygon(2% 0, 5% 0, 5% 100%, 2% 100%);
		clip-path: polygon(2% 0, 5% 0, 5% 100%, 2% 100%);
	}
	10% {
		-webkit-clip-path: polygon(15% 0, 15% 0, 15% 100%, 15% 100%);
		clip-path: polygon(15% 0, 15% 0, 15% 100%, 15% 100%);
	}
	20% {
		-webkit-clip-path: polygon(10% 0, 20% 0, 20% 100%, 10% 100%);
		clip-path: polygon(10% 0, 20% 0, 20% 100%, 10% 100%);
	}
	30% {
		-webkit-clip-path: polygon(1% 0, 2% 0, 2% 100%, 1% 100%);
		clip-path: polygon(1% 0, 2% 0, 2% 100%, 1% 100%);
	}
	40% {
		-webkit-clip-path: polygon(33% 0, 33% 0, 33% 100%, 33% 100%);
		clip-path: polygon(33% 0, 33% 0, 33% 100%, 33% 100%);
	}
	50% {
		-webkit-clip-path: polygon(44% 0, 44% 0, 44% 100%, 44% 100%);
		clip-path: polygon(44% 0, 44% 0, 44% 100%, 44% 100%);
	}
	60% {
		-webkit-clip-path: polygon(50% 0, 20% 0, 20% 100%, 50% 100%);
		clip-path: polygon(50% 0, 20% 0, 20% 100%, 50% 100%);
	}
	70% {
		-webkit-clip-path: polygon(70% 0, 70% 0, 70% 100% 70%, 70% 100%);
		clip-path: polygon(70% 0, 70% 0, 70% 100% 70%, 70% 100%);
	}
	80% {
		-webkit-clip-path: polygon(80% 0, 80% 0, 80% 100% 80%, 80% 100%);
		clip-path: polygon(80% 0, 80% 0, 80% 100% 80%, 80% 100%);
	}
	90% {
		-webkit-clip-path: polygon(50% 0, 55% 0, 55% 100%, 50% 100%);
		clip-path: polygon(50% 0, 55% 0, 55% 100%, 50% 100%);
	}
	100% {
		-webkit-clip-path: polygon(70% 0, 80% 0, 80% 100%, 70% 100%);
		clip-path: polygon(70% 0, 80% 0, 80% 100%, 70% 100%);
	}
}

@keyframes glitch-anim-2-vertical {
	0% { 
		-webkit-clip-path: polygon(25% 0, 30% 0, 30% 100%, 25% 100%);
		clip-path: polygon(25% 0, 30% 0, 30% 100%, 25% 100%);
	}
	15% {
		-webkit-clip-path: polygon(3% 0, 3% 0, 3% 100%, 3% 100%);
		clip-path: polygon(3% 0, 3% 0, 3% 100%, 3% 100%);
	}
	22% {
		-webkit-clip-path: polygon(5% 0, 20% 0, 20% 100%, 5% 100%);
		clip-path: polygon(5% 0, 20% 0, 20% 100%, 5% 100%);
	}
	31% {
		-webkit-clip-path: polygon(20% 0, 20% 0, 20% 100%, 20% 100%);
		clip-path: polygon(20% 0, 20% 0, 20% 100%, 20% 100%);
	}
	45% {
		-webkit-clip-path: polygon(40% 0, 40% 0, 40% 100%, 40% 100%);
		clip-path: polygon(40% 0, 40% 0, 40% 100%, 40% 100%);
	}
	51% {
		-webkit-clip-path: polygon(52% 0, 59% 0, 59% 100%, 52% 100%);
		clip-path: polygon(52% 0, 59% 0, 59% 100%, 52% 100%);
	}
	63% {
		-webkit-clip-path: polygon(60% 0, 60% 0, 60% 100%, 60% 100%);
		clip-path: polygon(60% 0, 60% 0, 60% 100%, 60% 100%);
	}
	76% {
		-webkit-clip-path: polygon(75% 0, 75% 0, 75% 100%, 75% 100%);
		clip-path: polygon(75% 0, 75% 0, 75% 100%, 75% 100%);
	}
	81% {
		-webkit-clip-path: polygon(65% 0, 40% 0, 40% 100%, 65% 100%);
		clip-path: polygon(65% 0, 40% 0, 40% 100%, 65% 100%);
	}
	94% {
		-webkit-clip-path: polygon(45% 0, 50% 0, 50% 100%, 45% 100%);
		clip-path: polygon(45% 0, 50% 0, 50% 100%, 45% 100%);
	}
	100% {
		-webkit-clip-path: polygon(14% 0, 33% 0, 33% 100%, 14% 100%);
		clip-path: polygon(14% 0, 33% 0, 33% 100%, 14% 100%);
	}
}

@keyframes glitch-anim-3-vertical {
	0% { 
		-webkit-clip-path: polygon(1% 0, 3% 0, 3% 100%, 1% 100%);
		clip-path: polygon(1% 0, 3% 0, 3% 100%, 1% 100%);
	}
	5% {
		-webkit-clip-path: polygon(10% 0, 9% 0, 9% 100%, 10% 100%);
		clip-path: polygon(10% 0, 9% 0, 9% 100%, 10% 100%);
	}
	10% {
		-webkit-clip-path: polygon(5% 0, 6% 0 6% 100%, 5% 100%);
		clip-path: polygon(5% 0, 6% 0 6% 100%, 5% 100%);
	}
	25% {
		-webkit-clip-path: polygon(20% 0, 20% 0, 20% 100%, 20% 100%);
		clip-path: polygon(20% 0, 20% 0, 20% 100%, 20% 100%);
	}
	27% {
		-webkit-clip-path: polygon(10% 0, 10% 0, 10% 100%, 10% 100%);
		clip-path: polygon(10% 0, 10% 0, 10% 100%, 10% 100%);
	}
	30% {
		-webkit-clip-path: polygon(30% 0, 25% 0, 25% 100%, 30% 100%);
		clip-path: polygon(30% 0, 25% 0, 25% 100%, 30% 100%);
	}
	33% {
		-webkit-clip-path: polygon(15% 0, 16% 0, 16% 100%, 15% 100%);;
		clip-path: polygon(15% 0, 16% 0, 16% 100%, 15% 100%);
	}
	37% {
		-webkit-clip-path: polygon(40% 0, 39% 0, 39% 100%, 40% 100%);;
		clip-path: polygon(40% 0, 39% 0, 39% 100%, 40% 100%);
	}
	40% {
		-webkit-clip-path: polygon(20% 0, 21% 0, 21% 100%, 20% 100%);
		clip-path: polygon(20% 0, 21% 0, 21% 100%, 20% 100%); 
	}
	45% {
		-webkit-clip-path: polygon(60% 0, 55% 0, 55% 100%, 60% 100%);
		clip-path: polygon(60% 0, 55% 0, 55% 100%, 60% 100%);
	}
	50% {
		-webkit-clip-path: polygon(30% 0, 31% 0, 31% 100%, 30% 100%);
		clip-path: polygon(30% 0, 31% 0, 31% 100%, 30% 100%);
	}
	53% {
		-webkit-clip-path: polygon(70% 0, 69% 0, 69% 100%, 70% 100%);
		clip-path: polygon(70% 0, 69% 0, 69% 100%, 70% 100%);
	}
	57% {
		-webkit-clip-path: polygon(40% 0, 41% 0, 41% 100%, 40% 100%);
		clip-path: polygon(40% 0, 41% 0, 41% 100%, 40% 100%);
	}
	60% {
		-webkit-clip-path: polygon(80% 0, 75% 0, 75% 100%, 80% 100%);
		clip-path: polygon(80% 0, 75% 0, 75% 100%, 80% 100%);
	}
	65% {
		-webkit-clip-path: polygon(50% 0, 51% 0, 51% 100%, 50% 100%);
		clip-path: polygon(50% 0, 51% 0, 51% 100%, 50% 100%);
	}
	70% {
		-webkit-clip-path: polygon(90% 0, 90% 0, 90% 100%, 90% 100%);
		clip-path: polygon(90% 0, 90% 0, 90% 100%, 90% 100%);
	}
	73% {
		-webkit-clip-path: polygon(60% 0, 60% 0, 60% 100%, 60% 100%);
		clip-path: polygon(60% 0, 60% 0, 60% 100%, 60% 100%);
	}
	80% {
		-webkit-clip-path: polygon(100% 0, 99% 0, 99% 100%, 100% 100%);
		clip-path: polygon(100% 0, 99% 0, 99% 100%, 100% 100%);
	}
	100% {
		-webkit-clip-path: polygon(70% 0, 71% 0, 71% 100%, 70% 100%);
		clip-path: polygon(70% 0, 71% 0, 71% 100%, 70% 100%);
	}
}

/* Flash */
@keyframes glitch-anim-flash {
	0% { 
		opacity: 0.2; 
		transform: translate3d(var(--gap-horizontal), var(--gap-vertical), 0);
	}
	33%, 100% { 
		opacity: 0;
		transform: translate3d(0,0,0);
	}
}

.item__cover {
	grid-area: 1 / 1 / -1 / -1;
	background-size: cover;
	background-position: 50% 50%;
	position: relative;
	transition: opacity var(--fade-in-time) var(--fade-in-easing);
	pointer-events: none;
}

.item__cover::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg,rgb(54 58 199 / 38%), rgba(0,0,0,0.2));
}

.item:hover .item__cover {
	opacity: 0;
	transition: opacity var(--fade-out-time) var(--fade-out-easing);
}

.item__content {
	display: flex;
	flex-direction: column;
	pointer-events: none;
	padding: 1.5rem;
	position: relative;
	grid-area: 1 / 1 / -1 / -1;
	color: var(--color-label);
}


.item__content-title {
	font-family: park-lane, serif;
	font-weight: 300;
	font-style: normal;
	font-size: clamp(3rem,4vw,5rem);
	line-height: 1;
	margin: 0;
}

.item:hover .item__content-title,
.item:hover .item__content-label {
	color: var(--content-hover);
}

.item__content-label {
	margin: auto 0 0;
}

blockquote {
	font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

@media screen and (min-width: 53em) {
	.frame {
		text-align: center;
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		grid-template-areas: 'title sponsor' 'demos demos';
		grid-row-gap: 1rem;
		align-content: space-between;
	}
	.frame__title {
		grid-area: title;
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: auto auto 1fr;
		align-items: start;
		justify-items: flex-start;
	}
	.frame__demos {
		grid-area: demos;
		justify-self: end;
	}
	.frame__demo {
		margin: 0 0 0 1rem;
	}
	.intro {
		display: grid;
		grid-column-gap: 1rem;
		grid-template-areas: 'title desc' 
							'title button';
		justify-content: space-between;
		align-items: start;
		text-align: right;
	}
}


/* Footer */
body {
	display: grid;
	grid-template-rows: 1fr auto; /* Asegura que el contenido principal ocupe todo el espacio disponible */
	min-height: 100vh; /* Altura mínima para la página completa */
	margin: 0;
  }
  
  body .footer {
	z-index: 1;
	--footer-background: #1C1F21;
	display: grid;
	position: relative;
	grid-area: footer;
	min-height: 12rem;
	overflow-x: hidden; /* Asegura que los elementos no se desborden horizontalmente */
	background: var(--footer-background);
  }
  
  body .footer .bubbles {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1rem;
	background: var(--footer-background);
	filter: url("#blob");
	z-index: -1; /* Opcional: asegura que las burbujas no bloqueen contenido */
  }
  
  body .footer .bubbles .bubble {
	position: absolute;
	left: var(--position, 50%);
	background: var(--footer-background);
	border-radius: 100%;
	animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
			   bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
	transform: translate(-50%, 100%);
  }
  
  body .footer .content a,
  body .footer .content p {
	color: #F0F0F0;
	text-decoration: none;
  }
  
  body .footer .content b {
	color: white;
  }
  
  body .footer .content p {
	margin: 0;
	font-size: 17px;
  }
  
  body .footer .content > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
  }
  
  body .footer .content > div > div {
	margin: 0.25rem 0;
  }
  
  body .footer .content > div > div > * {
	margin-right: .5rem;
  }
  
  body .footer .content > div .image {
	align-self: center;
	width: 4rem;
	height: 4rem;
	margin: 0.25rem 0;
	background-size: cover;
	background-position: center;
  }
  
  @keyframes bubble-size {
	0%, 75% {
	  width: var(--size, 4rem);
	  height: var(--size, 4rem);
	}
	100% {
	  width: 0rem;
	  height: 0rem;
	}
  }
  
  @keyframes bubble-move {
	0% {
	  bottom: -4rem;
	}
	100% {
	  bottom: var(--distance, 10rem);
	}
  }
  