:root {
  --bg: #0b1020;
  --text: #eef2ff;
  --muted: #b6c0de;
  --primary: #7c3aed;
  --primary-2: #06b6d4;
  --accent: #f59e0b;
  --border: #2b3a66;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1000px 500px at 10% -10%, #7c3aed30, transparent),
    radial-gradient(900px 420px at 90% 0%, #06b6d425, transparent),
    linear-gradient(180deg, #0b1020, #0e1427 40%, #0b1020);
  color: var(--text);
  line-height: 1.55;
}
.container { width: min(1120px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: #0b1020cc;
  border-bottom: 1px solid #26345f;
  z-index: 10;
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand img { height: 38px; width: auto; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}
nav a:hover { color: #fff; }

.hero { padding: 84px 0 68px; }
.eyebrow {
  color: #67e8f9;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .82rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.35rem); margin: 10px 0 14px; line-height: 1.08; }
.lead { max-width: 840px; color: var(--muted); font-size: 1.08rem; }

.section { padding: 68px 0; }
.section:nth-of-type(2n) {
  background:
    linear-gradient(180deg, #111933, #111a34),
    radial-gradient(600px 200px at 20% 0%, #f59e0b20, transparent);
  border-top: 1px solid #2b3a66;
  border-bottom: 1px solid #2b3a66;
}
.section.alt {
  background:
    linear-gradient(180deg, #141938, #11162f),
    radial-gradient(700px 260px at 80% 0%, #06b6d41f, transparent);
  border-top: 1px solid #2b3a66;
  border-bottom: 1px solid #2b3a66;
}
h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 2.2vw, 2.2rem); }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: linear-gradient(180deg, #1a2242, #151d38);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px #00000026;
}
.card-media {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #3a4f85;
  margin-bottom: 12px;
}
.work-photo {
  height: 260px;
  object-fit: contain;
  background: #0c1411;
  padding: 10px;
}
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; }
.card a { display: inline-block; margin-top: 12px; color: #67e8f9; text-decoration: none; font-weight: 600; }

.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid #4c67ac;
  color: #e2e8ff;
  background: linear-gradient(90deg, #2a235a, #1a3b5b);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
}

.stat-card { text-align: center; }
.stat-card h3 { font-size: 1.25rem; color: #fde68a; }

.actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), #a855f7);
  color: #fff;
  box-shadow: 0 8px 20px #7c3aed50;
}
.btn-secondary {
  background: linear-gradient(90deg, #0f2a43, #163a4a);
  border-color: #2e6a8c;
  color: #cffafe;
}

.contact { text-align: center; }
.contact p { color: var(--muted); max-width: 700px; margin: 0 auto; }

.site-footer {
  border-top: 1px solid #2b3a66;
  padding: 18px 0;
  color: var(--muted);
  font-size: .92rem;
  background: #0a0f1f;
}

/* Tema especial SERVIALPA */
.servialpa-theme {
  background:
    radial-gradient(900px 420px at 15% -10%, #16a34a2b, transparent),
    radial-gradient(900px 420px at 90% 0%, #f9731626, transparent),
    linear-gradient(180deg, #0f1a16, #13231c 45%, #0e1713);
}
.servialpa-theme .site-header {
  background: #0d1713d4;
  border-bottom: 1px solid #2f4b3f;
}
.servialpa-theme .eyebrow { color: #86efac; }
.servialpa-theme .section:nth-of-type(2n),
.servialpa-theme .section.alt {
  background:
    linear-gradient(180deg, #172a21, #12231b),
    radial-gradient(700px 240px at 80% 0%, #f59e0b22, transparent);
  border-top: 1px solid #355648;
  border-bottom: 1px solid #355648;
}
.servialpa-theme .card {
  background: linear-gradient(180deg, #1b3127, #17281f);
  border: 1px solid #3a5e4e;
}
.servialpa-theme .btn-primary {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: 0 8px 20px #16a34a55;
}
.servialpa-theme .btn-secondary {
  background: linear-gradient(90deg, #7c2d12, #c2410c);
  border-color: #ea580c;
  color: #ffedd5;
}

@media (max-width: 800px) {
  nav { display: none; }
  .hero { padding-top: 58px; }
}
