:root {
  --blue: #0765ae;
  --orange: #f76a0c;
  --red: #e63d29;
  --ice: #d4ebf3;
  --ink: #444444;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}
.logo img { width: 168px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--blue); text-decoration: none; font-weight: 650; }
.nav a:hover, .nav a.active { color: var(--orange); }
.menu-toggle { display: none; }
.menu-toggle-input { position: absolute; opacity: 0; pointer-events: none; }

.hero {
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(7, 101, 174, .82), rgba(7, 101, 174, .35)),
    url("../img/oficina.png") center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}
.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.page-hero p { margin: 0; max-width: 720px; }

.intro { padding: 64px 0 20px; }
.intro p { margin: 0 0 16px; font-size: 18px; }

.ambito {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0 64px;
}
.ambito img { border-radius: 16px; width: 100%; object-fit: cover; min-height: 280px; }
.ambito h2 { margin: 0 0 16px; color: var(--blue); font-size: 30px; }
.ambito li { margin: 0 0 12px; }

.services {
  background: var(--ice);
  padding: 64px 0;
}
.services h2 {
  margin: 0 0 28px;
  text-align: center;
  color: var(--blue);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(7, 101, 174, .08);
}
.card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; color: var(--red); letter-spacing: .03em; }
.card:nth-child(2) h3 { color: var(--blue); }
.card:nth-child(3) h3 { color: var(--orange); }

.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta h2 { margin: 0 0 10px; font-size: 30px; }
.cta p { margin: 0 0 18px; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 26px;
}
.btn:hover { filter: brightness(1.05); }

.contacto { padding: 64px 0; }
.contacto h2 { margin: 0 0 8px; color: var(--blue); }
form { display: grid; gap: 14px; max-width: 680px; margin-top: 18px; }
label { font-weight: 600; }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #b7d3e4;
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
button {
  justify-self: start;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  background: #05588f;
  color: #fff;
  text-align: center;
  padding: 36px 16px;
}
.footer img { width: 150px; margin: 0 auto 12px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.footer a { color: #fff; }

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 92px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .menu-toggle-input:checked ~ .nav { display: flex; }
  .ambito, .cards { grid-template-columns: 1fr; }
}
