:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #5a5f68;
  --line: #e9ebef;
  --primary: #102a43;
  --accent: #b08d57;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(16, 42, 67, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f6fb;
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover { background: #f8fafc; color: var(--text); }

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.1rem;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
  background: #fff;
}
.mobile-menu a {
  display: block;
  padding: 10px 6px;
  color: var(--muted);
  font-weight: 600;
}
.mobile-menu.show { display: block; }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,15,27,0.72) 0%, rgba(8,15,27,0.55) 38%, rgba(8,15,27,0.25) 65%, rgba(8,15,27,0.15) 100%),
    linear-gradient(180deg, rgba(8,15,27,0.18), rgba(8,15,27,0.35));
}
.hero-content { position: relative; z-index: 2; }
.hero-card {
  width: min(640px, 100%);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  border-radius: 20px;
  padding: 1.4rem;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero-card h1 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.05;
}
.hero-text {
  margin: 0.85rem 0 0;
  color: #2b3138;
  font-size: 1rem;
}
.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: #d8e0ea;
}
.btn-outline:hover { background: #f8fbff; }
.btn-dark {
  background: #111827;
  color: #fff;
}

.section {
  padding: 70px 0;
}
.section-alt {
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  margin-bottom: 1.2rem;
}
.section-head h2,
.split-text h2,
.banner-contacto h2 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.section-head p { margin: 8px 0 0; color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 20px rgba(16, 42, 67, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(16, 42, 67, 0.10);
}
.service-card .icon {
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f5f8fd;
  border: 1px solid #e7eef7;
  margin-bottom: 10px;
}
.service-card h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.service-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
}
.split-text p {
  color: var(--muted);
  margin-top: 10px;
}
.cta-box {
  margin-top: 12px;
}
.split-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-contacto {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f9fbff);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.05);
}
.banner-contacto p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer {
  background: #101828;
  color: #f8fafc;
  padding: 30px 0;
}
.footer-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.footer p {
  margin: 6px 0 0;
  color: #cbd5e1;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a {
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-links a:hover { background: rgba(255,255,255,0.06); }

@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero { min-height: 70vh; }
  .hero-card { padding: 1rem; }
  .banner-contacto { flex-direction: column; align-items: flex-start; }
  .footer-wrap { flex-direction: column; }
}

@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr; }
  .container { width: min(1120px, calc(100% - 1rem)); }
}
