:root {
  --bg: #0d1117;
  --card: #161b22;
  --text: #ffffff;
  --subtext: #a0aec0;
  --primary: #1e90ff;
  --accent: #f5a623;
}

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

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

.logo {
  color: var(--primary);
  font-size: 1.5rem;
}
.logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: color .3s;
}
.nav-links a:hover { color: var(--primary); }

.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #0d1117 0%, #0d1117cc 100%),
              url('https://picsum.photos/1920/1080?blur') center/cover;
  text-align: center;
}
.hero h2 { font-size: 2.5rem; margin-bottom: .5rem; }
.hero h3 { font-size: 1.5rem; color: var(--subtext); margin-bottom: 1.5rem; }
.btn {
  background: var(--primary);
  color: #fff;
  padding: .7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background .3s;
}
.btn:hover { background: var(--accent); }

section {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 1rem;
}
h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.about p {
  text-align: center;
  max-width: 700px;
  margin: auto;
  color: var(--subtext);
}

.projects .grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform .3s;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--accent); margin-bottom: .5rem; }
.card p { color: var(--subtext); }

.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 4rem; /* tamaño de los íconos */
}
.icons i {
  transition: transform .3s;
}
.icons i:hover {
  transform: scale(1.2);
}

.contact p {
  text-align: center;
  margin-bottom: .5rem;
}
.contact a { color: var(--primary); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

footer {
  background: var(--card);
  text-align: center;
  padding: 1rem;
  color: var(--subtext);
  font-size: .9rem;
}

