:root {
  --accent: #ff4d6d;
  --accent-2: #3b82f6;
  --bg: #ffffff;
  --muted: #6b7280;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ================================
   CABECERA
===================================*/
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* ================================
   MENÚ DE NAVEGACIÓN
===================================*/
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav li { position: relative; }

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
nav a:hover {
  color: var(--accent);
  background: rgba(59,130,246,0.04);
}

/* SUBMENÚ */
.submenu {
  position: absolute;
  left: 0;
  top: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  display: none;
  min-width: 200px;
}
.submenu a {
  display: block;
  padding: 8px 12px;
  color: #0f172a;
  font-weight: 600;
}
nav li.active > .submenu { display: block; }

/* ================================
   SECCIÓN HERO
===================================*/
.hero {
  background: url('https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?auto=format&fit=crop&w=1600&q=80')
              center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
}

/* ================================
   PIE DE PÁGINA
===================================*/
footer {
  background: #0f172a;
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  margin-top: auto;
}
footer span {
  color: var(--accent-2);
  font-weight: 700;
}

/* ================================
   RESPONSIVE
===================================*/
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .container { padding: 14px; }

  nav ul {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  }

  .menu-toggle {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15,23,42,0.06);
    background: transparent;
    cursor: pointer;
  }

  nav ul.show { display: flex; }

  .submenu {
    position: static;
    box-shadow: none;
    padding-left: 8px;
  }

  .logo-img {
    width: 120px;
  }
}
