@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rubik:wght@300;400;600&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --accent: #7d00ff;
  --accent2: #00bfff;
  --text: #f5f5f5;
  --muted: #999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Rubik', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ===== LOGO DE FONDO ===== */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: url("../img/logo.png") no-repeat center;
  background-size: contain;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 30px;
  z-index: 1000;
  border-bottom: 1px solid #1a1a1a;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-family: 'Anton', sans-serif;
  color: var(--accent);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.bar {
  width: 26px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), var(--bg-dark));
  position: relative;
  padding-top: 67px;
  z-index: 2;
}

.hero-content {
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--accent);
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(125, 0, 255, 0.5);
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 25px;
  color: var(--text);
}

.btn {
  display: inline-block;
  background: var(--accent);
  padding: 12px 30px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 600;
  border: 2px solid var(--accent);
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #050505;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #1a1a1a;
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 5;
}

footer a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 67px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
  }

  .bar {
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1.1rem;
  }

  .navbar {
    padding: 10px 15px;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 0 15px;
  }
}
