:root {
  --blue: #2b6cb0;
  --blue-dark: #215387;
  --ink: #1a202c;
  --text: #4a5568;
  --heading: #2d3748;
  --red: #e20613;
  --card: #eeeeee;
  --page: #f7fafc;
  --max: 1290px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.logo img { width: 148px; height: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: #718096;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .01em;
}
.nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }
.menu-toggle-input { position: absolute; opacity: 0; pointer-events: none; }

.hero {
  min-height: 560px;
  background: url("../img/hero.png") center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.hero h1 {
  margin: 0;
  max-width: 920px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  background: rgba(26, 32, 44, .78);
  border-radius: 999px;
  padding: 18px 42px;
}

.intro { padding: 72px 0 36px; }
.intro .cols {
  columns: 2;
  column-gap: 48px;
}
.intro p { margin: 0 0 18px; break-inside: avoid; }

.services { padding: 24px 0 20px; }
.service {
  display: grid;
  grid-template-columns: minmax(240px, 38%) 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 0 0 28px;
}
.service img {
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.service > div {
  position: relative;
  background: var(--card);
  border-radius: 16px 8px 8px 16px;
  padding: 28px 56px 28px 32px;
}
.service > div::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  right: -12px;
  width: 26px;
  background: var(--red);
  border-radius: 16px;
}
.service h2 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.service p { margin: 0; }

.empresa { padding: 48px 0 20px; }
.empresa .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.empresa h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 28px;
  letter-spacing: .04em;
  line-height: 1.15;
}
.empresa p { margin: 0; }

.contacto { padding: 48px 0 72px; }
.contacto h2 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: 28px;
}
form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}
label { font-weight: 500; color: var(--heading); font-size: 15px; }
input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
button {
  justify-self: start;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--blue-dark); }

.footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 42px 20px 32px;
}
.footer img { width: 150px; margin: 0 auto 16px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 8px 0; }

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    background: none;
    color: var(--ink);
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 88px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #edf2f7;
    padding: 8px 20px 16px;
  }
  .menu-toggle-input:checked ~ .nav { display: flex; }
  .nav a { padding: 10px 0; }
  .intro .cols, .empresa .grid, .service { grid-template-columns: 1fr; columns: auto; }
  .service img { min-height: 0; height: 220px; }
  .hero { min-height: 380px; }
  .hero h1 { border-radius: 24px; padding: 16px 22px; }
}
