:root {
  --ink: #15202e;
  --muted: #5b6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --alt: #f5f7fa;
  --accent: #1f3a5f;
  --accent-2: #2e5f94;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* Language switch: each text node exists in both languages, only one is shown */
html[data-lang="en"] [lang="es"] { display: none; }
html[data-lang="es"] [lang="en"] { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--accent-2); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted);
}
.lang-opt { padding: 0 2px; }
.lang-opt.active { color: var(--accent); font-weight: 700; }
.lang-sep { color: var(--line); }

/* HERO */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent-2); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { margin: 0 0 18px; font-size: 40px; line-height: 1.15; letter-spacing: -0.5px; color: var(--ink); }
.lead { margin: 0 0 28px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 15px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover { opacity: 0.9; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }

/* SECTIONS */
.section { padding: 64px 0; }
.section.alt { background: var(--alt); }
.section h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: -0.3px; }
.section-intro { margin: 0 0 32px; color: var(--muted); max-width: 60ch; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-grid p { margin: 0 0 16px; color: #2b3644; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent-2); }
.facts span { font-size: 15px; color: #2b3644; }

/* PROJECT CARDS (services-page style) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tags span {
  font-size: 12px; padding: 4px 9px; border-radius: 999px;
  background: #eef3f9; color: var(--accent); border: 1px solid #dbe5f1;
}

/* CONTACT */
.contact p { margin: 0 0 18px; color: var(--muted); max-width: 60ch; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a { font-size: 17px; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 340px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .brand { font-size: 14px; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 48px 0 40px; }
}
