@font-face {
  font-family: 'YEEZY';
  src: url('assets/yeezy_tstar-bold-webfont.ttf') format('truetype');
}
@font-face {
  font-family: 'PlanetKosmos';
  src: url('assets/PLANK___.ttf') format('truetype');
}

/* Reset */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Roboto, sans-serif;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
  padding: 20px;
  z-index: 1000;
  transition: all 0.6s ease;
}
header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Triángulo */
#triangle {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}
#triangle.hovered {
  transform: translateX(-50%) scale(1.5);
}
#triangle.collapsed {
  transform: translateX(-50%) scale(0);
  opacity: 0;
}

/* Dropdown */
#dropdown {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  width: 150px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.drop-item {
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'YEEZY', sans-serif;
  font-size: 20px;
}
.drop-item:last-child {
  border-bottom: none;
}
.drop-item:hover {
  background: rgba(0,0,0,0.8);
}
.sub-item {
  display: none;
  background: rgba(85,85,85,0.7);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  transition: all 0.4s ease;
}

/* Container */
#container {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro {
  max-width: 800px;
  margin: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  font-family: 'YEEZY', sans-serif;
}
.wiki-link {
  display: block;
  margin: 20px auto;
  padding: 10px;
  font-family: 'YEEZY', sans-serif;
  font-size: 30px;
  text-align: center;
  text-decoration: none; /* elimina línea azul */
  color: #000; /* letra negra */
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.wiki-link:hover {
  transform: scale(1.05);
}

/* Proyectos */
.proyectos {
  margin: 40px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.galeria {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  max-width: 300px;
  align-items: center;
}
.tarjeta {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-family: 'YEEZY', sans-serif;
  font-size: 30px;
  transition: all 0.3s ease;
  width: 100%;
}
.tarjeta:hover {
  transform: scale(1.05);
}
.tarjeta img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  opacity: 0; /* invisible hasta hover */
  transition: opacity 0.4s ease;
}
.tarjeta:hover img {
  opacity: 1;
}

/* Pong modal */
#pong-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
}
#pong-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #222;
  padding: 20px;
  border-radius: 12px;
}
#close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Arte generativo */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

