:root {
  --color-primary: #12A1EC;
  --color-primary-dark: #0E83C2;
  --color-primary-soft: #E6F5FD;
  --color-text: #0F1B2D;
  --color-text-muted: #5A6B82;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7FAFC;
  --color-border: #E3E9F0;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 1px 3px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 27, 45, 0.06), 0 2px 6px rgba(15, 27, 45, 0.04);
  --shadow-lg: 0 12px 40px rgba(18, 161, 236, 0.18);

  --container-max: 1200px;
  --header-h: 80px;

  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3 {
  margin: 0 0 .6em;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .8rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85rem 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(18, 161, 236, 0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 8px 22px rgba(18, 161, 236, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); color: #fff; }
.btn-whatsapp svg { width: 20px; height: 20px; }

.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* --- Brand (icon + text) --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand-icon {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-base);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}
.brand-text strong {
  font-weight: 700;
  color: var(--color-text);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { color: var(--color-primary); }
.primary-nav a.btn { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(18, 161, 236, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(18, 161, 236, .08), transparent 60%),
    var(--color-bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-text h1 .accent { color: var(--color-primary); }
.hero-text .lead {
  font-size: 1.125rem;
  max-width: 520px;
  color: var(--color-text-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual { position: relative; height: 380px; }
.hero-glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(closest-side, rgba(18, 161, 236, .35), transparent);
  filter: blur(40px);
  z-index: 0;
}
.hero-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .95rem;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.hero-card .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(18, 161, 236, .18);
}
.card-1 { top: 8%; left: 4%; animation-delay: 0s; }
.card-2 { top: 30%; right: 4%; animation-delay: 1s; }
.card-3 { bottom: 28%; left: 14%; animation-delay: 2s; }
.card-4 { bottom: 6%; right: 10%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Sections --- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-services { background: var(--color-bg-alt); }
.section-about { background: #fff; }
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 161, 236, .35);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 6px; }
.service-card p { margin: 0; font-size: .95rem; }

/* --- About / Capabilities --- */
.section-about .section-header { margin-bottom: 40px; }
.section-about .section-lead { font-size: 1.05rem; }

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.cap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cap:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 161, 236, .35);
  box-shadow: var(--shadow-md);
}
.cap-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin: 0 auto 14px;
}
.cap-icon svg { width: 24px; height: 24px; }
.cap-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}
.cap-label {
  display: block;
  font-size: .82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- Contact --- */
.section-contact { background: var(--color-bg-alt); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-text > .btn-whatsapp { margin-top: 12px; }
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 16px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field span { font-size: .9rem; font-weight: 600; color: var(--color-text); }
.field .optional { font-weight: 400; color: var(--color-text-muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 161, 236, .15);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-status {
  margin: 12px 0 0;
  font-size: .9rem;
  min-height: 1.2em;
}
.form-status.success { color: #1F8A4C; }
.form-status.error { color: #C0392B; }

/* --- Footer --- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.brand-footer .brand-icon { height: 32px; }
.brand-footer .brand-text { font-size: 1.2rem; }
.footer-meta {
  margin: 0;
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand-icon { height: 32px; }
  .brand-text { font-size: 1.2rem; }
  .capabilities { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav a:last-child {
    margin-top: 12px;
    border-bottom: 0;
    padding: 12px;
  }
  .footer-inner { flex-direction: column; text-align: center; }
}
