/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* PALETA MODERNA DARK MODE (DEFAULT) */
:root {
  --bg: #0f1115;
  --surface: #161a22;
  --surface-alt: #121621;
  --text: #e6e6e6;
  --muted: #a6a6a6;
  --accent: #4fd1c5;
  --accent-hover: #38b2ac;
  --border: #232836;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* TIPOGRAFÍA ESCALADA */
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 10px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
p  { font-size: 1rem; color: var(--muted); }

/* LAYOUT */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  background: var(--surface);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--text);
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Enlace a último elemento del menú de navegación o navbar (color diferente) */
nav a:last-child {
  color: #48cec7;
  font-weight: 600;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1b1f2a, #0f1115);
  text-align: center;
  padding: 90px 20px;
}

.hero p {
  margin-top: 10px;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--surface);
}

/* BOTÓN */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--accent);
  color: #0f1115;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* CARDS */
.card {
  background: var(--surface-alt);
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.skills-grid span {
  background: var(--surface-alt);
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  color: var(--text);
  border: 1px solid var(--border);
}

/* LINKS */
.text-link {
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 10px;
  }

  h2 {
    font-size: 1.6rem;
  }
}
