/* =========================
   RESET + BASE
========================= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

/* =========================
   LAYOUT
========================= */
main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;  /* antes 32px */
}

/* =========================
   HEADER
========================= */
.site-header {
  background: #000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-width: 360px;
  display: block;
}

/* NAV */
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  opacity: 0.7;
}

/* =========================
   MAIN CONTENT
========================= */
main h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 24px;
}

main p {
  font-size: 18px;
  max-width: 620px;
  color: #444;
}

/* =========================
   SERVICES (CARDS)
========================= */
.services {
  margin-top: 120px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.service-card {
  border: 1px solid #eee;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
}

.service-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.service-card p {
  font-size: 15px;
  color: #555;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* =========================
   HERO FULL WIDTH IMAGE
========================= */
.hero-image {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin-top: 0; /* esto pega la imagen al header */
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid #eee;
  background: #fafafa;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

  nav a {
    margin: 0 12px;
  }

  main h1 {
    font-size: 32px;
  }
}
