:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #0f172a;
  --muted: #5b6473;
  --line: #dbe3ef;
  --accent: #0f3d91;
  --accent-2: #1f6feb;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31,111,235,0.08), transparent 22%),
    linear-gradient(180deg, #0b1220 0px, #111827 620px, var(--bg) 620px, var(--bg) 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #173b7a, #1f6feb);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 25px rgba(31,111,235,0.28);
}

.brand-text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.brand-text span {
  display: block;
  color: #aab8d0;
  font-size: 0.88rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: #dfe7f5;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

#lang-switch {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.hero {
  color: #fff;
  padding: 48px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-panel,
.hero-side {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(24, 31, 53, 0.96), rgba(17, 24, 39, 0.96));
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(2, 8, 23, 0.2);
  backdrop-filter: blur(10px);
}

.hero-panel { padding: 42px; }
.hero-side {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dbe7fb;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h2 {
  margin: 14px 0 0;
  color: #d8e4f7;
  font-size: 1.2rem;
  font-weight: 500;
}

.hero p {
  margin: 20px 0 0;
  color: #dce7f6;
  max-width: 760px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), #1253ba);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

.btn-light {
  background: #fff;
  color: var(--accent);
}

.hero-list { display: grid; gap: 10px; }

.hero-list div {
  display: flex;
  gap: 10px;
  color: #dce7f6;
  font-size: 0.95rem;
}

.hero-list div::before {
  content: "•";
  color: #7dd3fc;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stat span {
  color: #d8e4f7;
  font-size: 0.92rem;
}

.main {
  margin-top: 0;
  padding-bottom: 56px;
}

.section {
  margin-bottom: 20px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f9fbfe);
}

.card h4, .card strong { color: var(--text); }
.card p, .card span, .card li { color: #334155; }
.card p:last-child { margin-bottom: 0; }

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list-clean li {
  display: flex;
  gap: 10px;
  align-items: start;
}

.list-clean li::before {
  content: "•";
  color: var(--accent-2);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  font-size: 0.82rem;
  font-weight: 700;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1f6feb, #4f46e5, #22c55e);
}

.links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.link-pill:hover {
  border-color: #c5d3e6;
  background: #e8f0fb;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a, #172554);
  color: #fff;
}

.cta-band p { color: #d8e5f8; }

.site-footer {
  padding: 16px 0 40px;
  color: #64748b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.footer-box {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #173b7a;
  font-weight: 700;
  border: 1px solid #dbeafe;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
  transition: transform 0.2s ease;
}
.whatsapp-float img {
  width: 62px;
  height: 62px;
  display: block;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: whatsapp-pulse 2.5s infinite;
  z-index: -1;
}
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band { display: grid; }
}

@media (max-width: 760px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero { padding-bottom: 92px; }
  .hero-panel, .hero-side, .section { padding: 22px; }
  .main { margin-top: 0; }
  .hero h1 { font-size: 2.4rem; }
  .stat-grid { grid-template-columns: 1fr; }
}