:root {
  --color-bg: #f9f9f9;
  --color-text: #111;
  --color-primary: #007aff;
  --color-accent: #0d72ec;
  --color-nav-bg: #fff;
  --color-footer: #eaeaea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

header {
  background: var(--color-nav-bg);
  border-bottom: 1px solid #ccc;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav a:hover {
  background: #eee;
}

nav a.active {
  background: var(--color-primary);
  color: white;
}

main {
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: auto;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--color-accent);
}

.btn.small {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn.outline:hover {
  background: var(--color-primary);
  color: white;
}

footer {
  background: var(--color-footer);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* ======== MENÚ HAMBURGUESA RESPONSIVE ======== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Versión móvil --- */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--color-nav-bg);
    flex-direction: column;
    width: 200px;
    gap: 0;
    border-left: 1px solid #ddd;
    box-shadow: -2px 4px 6px rgba(0,0,0,0.1);
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    border-bottom: 1px solid #eee;
  }

  nav ul li a {
    display: block;
    padding: 10px 15px;
  }

  .menu-toggle {
    display: flex;
  }
}
