* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0b0f10;
  --bg-darker: #050708;
  --accent: #2ecc71;
  --accent-soft: #27ae60;
  --text: #f5f5f5;
  --text-muted: #c7c7c7;
  --card-bg: rgba(10, 16, 18, 0.9);
  --card-border: #1f2a2e;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2838 0, #050708 55%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fondo pixelado estilo Minecraft */
.bg-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 7vw;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  border-bottom: 1px solid #1b2428;
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--accent);
}

.navbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: color 0.2s ease;
}

.navbar nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 7vw 3rem;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 0 #000;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Caja IP servidor */
.server-box {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 4px #000;
}

.server-box .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

#server-ip {
  font-family: "Consolas", "Fira Code", monospace;
  background: #000;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #222;
  flex: 1;
  font-size: 0.95rem;
}

#copy-btn {
  cursor: pointer;
  background: var(--accent);
  border: 0;
  color: #000;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  box-shadow: 0 4px 0 #145f32;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

#copy-btn:hover {
  background: var(--accent-soft);
}

#copy-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #145f32;
}

.server-box .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Botones principales */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  box-shadow: 0 4px 0 #000;
}

.btn.primary {
  background: var(--accent);
  color: #000;
}

.btn.secondary {
  background: #1f2a2e;
  color: var(--text);
}

.btn.discord {
  background: #5865f2;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000;
}

/* Secciones */
.section {
  padding: 3.5rem 7vw;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
}

.section.dark {
  background: radial-gradient(circle at top, #1b2130 0, #050708 55%, #000 100%);
  text-align: center;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #000;
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Pasos */
.steps {
  max-width: 700px;
  margin: 0 auto;
  list-style: decimal;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.steps li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  padding: 1.5rem 7vw 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-darker);
  border-top: 1px solid #111;
}

/* Responsive */
@media (max-width: 720px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .navbar nav a {
    margin-left: 0.9rem;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .ip-row {
    flex-direction: column;
    align-items: stretch;
  }

  #copy-btn {
    width: 100%;
    text-align: center;
  }
}


.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 0 2px #111, 0 0 18px rgba(46, 204, 113, 0.25);
}

.hero-logo {
    width: clamp(130px, 22vw, 220px);
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 18px rgba(46, 204, 113, 0.22));
}

@media (max-width: 720px) {
    .logo {
        gap: 0.6rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .hero-logo {
        width: min(160px, 48vw);
    }
}
