* {
  --fuentes-titulos: 'VT323', monospace;
  --fuentes-texto: 'MS UI Gothic', 'Share Tech Mono', sans-serif;
  --bg-color: #141414;
}

html,
body {
  background-color: #000;
  color: #ddd;
  font-family: var(--fuentes-texto);
  cursor: url("../cursor/normal.cur"), default;
  background-image: url("../img/fog-pattern.png");
  background-size: 350px;
  background-repeat: repeat;
}

.page-frame {
  width: 60%;
  margin: 1rem auto 0;
  background-color: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7), inset 0 0 8px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .page-frame {
    width: 90%;
  }
}

.header-box {
  position: relative;
  overflow: hidden;
}

.header-box-texto {
  z-index: 1;
  padding-left: .5rem;
}

.header-box h1 {
  font-family: var(--fuentes-titulos);
  color: #eee;
  font-style: italic;
  font-size: 42px;
}

.header-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0) 65%, #141414 90%);
  pointer-events: none;
}

.header-img {
  width: 160px;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

.header-img-wrapper {
  animation: floatHeader 6s ease-in-out infinite;
}

@keyframes floatHeader {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.subtitle {
  color: #6e6e6e;
  font-size: 16px;
  margin: 0;
}

.layout-navbar {
  background-color: var(--bg-color);
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
}

.retro-navbar {
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.layout-navbar a {
  color: #ccc;
  text-decoration: none;
  cursor: url("../cursor/pointer.cur"), pointer;
}

.layout-navbar a:hover {
  color: #fc2727;
  text-decoration: underline;
}

.active a {
  color: #fc2727;
  border-bottom: 2px solid #fc2727;
}

footer,
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  padding: 1rem 0;
  opacity: 0.7;
}

.about-section {
  padding: 2rem;
  background-color: var(--bg-color);
}

@media (max-width: 768px) {
  .about-section {
    padding: 2rem 1rem 1rem !important;
  }
}

.about-subtitle {
  font-family: var(--fuentes-titulos);
  color: #eee;
  font-size: 24px;
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.about-card {
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 2rem;
  background-color: rgba(14, 14, 14, 0.85);
  width: 85%;
  margin: 0 auto;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .about-card {
    width: 90%;
  }
}

.about-avatar-wrapper {
  display: flex;
  justify-content: center;
}

@media (max-width: 1260px) {
  .about-avatar-wrapper {
    display: none;
  }
}

.about-avatar {
  width: 140px;
  height: auto;
  object-fit: cover;
  filter: contrast(0.85) brightness(0.85) saturate(0.6);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: default;
}

.avatar-mid {
  border-radius: 0px;
}

.avatar-left {
  border-radius: 25px 0px 0px 25px;
}

.avatar-right {
  border-radius: 0px 25px 25px 0px;
}

.about-title {
  text-align: center;
  font-family: var(--fuentes-titulos);
  font-size: 26px;
  font-style: italic;
  color: #eee;
  margin-bottom: .5rem;
}

.about-text {
  color: #ccc;
  line-height: 1.7;
  font-size: 15px;
  margin-top: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.about-hub {
  background-color: var(--bg-color);
}

.about-btn {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #3a3a3a;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  color: #ddd;
  text-decoration: none;
  font-family: var(--fuentes-texto);
  transition: 0.2s ease;
}

.about-btn:hover {
  background: rgba(35, 35, 35, 1);
  border-color: #5a5a5a;
}

.btn-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  margin-bottom: .3rem;
}

.flicker-glitch {
  position: relative;
  color: #fff;
  animation: flickerEffect 2s infinite, glitchAnim 1s infinite;
}

.flicker-glitch::before,
.flicker-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: #ff3c3c;
  opacity: 0.7;
  z-index: -1;
}

.flicker-glitch::after {
  color: #27fdf5;
  left: 1px;
  top: 1px;
}

@keyframes flickerEffect {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  }

  20%,
  24%,
  55% {
    opacity: 0.5;
    text-shadow: none;
  }
}

@keyframes glitchAnim {
  0% {
    transform: none;
  }

  20% {
    transform: translate(1px, -1px);
  }

  40% {
    transform: translate(-1px, 1px);
  }

  60% {
    transform: translate(1px, 1px);
  }

  80% {
    transform: translate(-1px, -1px);
  }

  100% {
    transform: none;
  }
}

.coming-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 70vh;
  background-color: #000;
}

.coming-box {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 2rem 3rem;
  max-width: 500px;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05), 0 0 12px rgba(0, 0, 0, 0.7);
}

.coming-title {
  font-family: var(--fuentes-titulos);
  color: #eee;
  font-size: 28px;
  font-style: italic;
  margin-bottom: 1rem;
}

.coming-text {
  font-family: var(--fuentes-texto);
  color: #bfbfbf;
  font-size: 15px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.img-coming {
  width: 50vw;
  height: 30vw;
  opacity: 0.9;
}


@media (max-width: 768px) {
  .img-coming {
    width: 90%;
    height: auto;
  }
}

.coming-padding {
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .retro-navbar {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .header-img {
    display: none;
  }

  .texto-header {
    text-wrap: nowrap;
  }

  .retro-navbar {
    display: flex;
    gap: 0;
    font-size: 14px;
    flex-wrap: nowrap;
  }

  .record-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .active {
    display: none;
  }
}

@media (max-width: 570px) {
  .header-box-texto h1 {
    font-size: 6vw;
    text-align: center;
  }
}
