/* ===== Tokens ===== */
:root {
  --navy: #0e3355;
  --navy-dark: #0a2440;
  --teal: #2b98a6;
  --teal-dark: #217984;
  --ink: #1c2530;
  --ink-soft: #566072;
  --paper: #ffffff;
  --paper-alt: #f6f7f8;
  --line: #e4e7ea;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --radius: 10px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 720px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 16px; color: var(--ink-soft); }

.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section h2 { margin-bottom: 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-full { width: 100%; }
.btn-small { padding: 10px 18px; font-size: 0.88rem; }
.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.logo img { height: 38px; width: auto; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.main-nav a:hover { color: var(--teal-dark); }
.nav-cta { margin-left: 24px; white-space: nowrap; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 64px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(43,152,166,0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-lead { font-size: 1.12rem; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-image img {
  border-radius: 16px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ===== Trust strip ===== */
.trust-strip { padding: 8px 0 72px; }
.trust-grid {
  background: var(--navy);
  border-radius: 16px;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-figure { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; }
.trust-label { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.service-icon {
  width: 40px; height: 40px;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin: 0; font-size: 0.98rem; color: var(--ink); font-family: var(--font-body); font-weight: 600; }

/* ===== Contact ===== */
.contact-lead { font-size: 1.02rem; }
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-top: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-alt);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  background: #fff;
}
.hidden-field { display: none !important; }
.form-status { min-height: 20px; font-size: 0.9rem; margin: 12px 0 0; text-align: center; }
.form-status.ok { color: var(--teal-dark); }
.form-status.error { color: #b23b3b; }

.whatsapp-cta {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--paper);
}
.whatsapp-cta h3 { margin: 0 0 4px; }
.whatsapp-cta p { margin: 0; font-size: 0.92rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { height: 28px; opacity: 0.85; }
.footer-contacts { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-soft); }
.footer-contacts a:hover { color: var(--teal-dark); }

/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 60;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden {
  opacity: 0;
  transform: scale(0.7);
  visibility: hidden;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-image img { height: 280px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { 
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .whatsapp-cta { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
}
