/* ============================================================
   RESET & VARIABLES
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #0f2d5e;
  --brand-mid:   #1e4da1;
  --brand-light: #2563eb;
  --accent:      #f97316;
  --wa:          #25D366;
  --dark:        #0a1628;
  --text:        #1e293b;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --light:       #f8fafc;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ============================================================
   UTILITY
============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  font-weight: 800; line-height: 1.2; margin-bottom: .75rem;
}

.section-sub {
  font-size: 1rem; color: var(--muted); max-width: 560px;
}

.section-head { margin-bottom: 2.75rem; }

/* ============================================================
   HEADER
============================================================ */
header {
  position: sticky; top: 0; z-index: 500;
  background: var(--dark);
  padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.logo {
  font-size: 1.45rem; font-weight: 900; color: #fff;
  letter-spacing: -.5px;
}
.logo span { color: var(--accent); }
.logo-sub {
  font-size: .62rem; font-weight: 400; color: #94a3b8;
  display: block; letter-spacing: .2px; line-height: 1.2;
}

.btn-wa-header {
  background: var(--wa); color: #fff; border: none;
  padding: .55rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .82rem; cursor: pointer;
  display: flex; align-items: center; gap: .45rem;
  transition: opacity .2s, transform .15s; white-space: nowrap;
}
.btn-wa-header:hover { opacity: .9; transform: scale(1.03); }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(150deg, var(--dark) 0%, #1a3a68 55%, #0f2d5e 100%);
  color: #fff; text-align: center;
  padding: 4.5rem 1.25rem 5rem;
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}

.hero > .container { position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.4);
  color: #fb923c; font-size: .78rem; font-weight: 700;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
  letter-spacing: .5px; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 1.1rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #94a3b8; max-width: 620px; margin: 0 auto 2.25rem;
}

.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: .9rem 2.1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 18px rgba(249,115,22,.45);
  transition: transform .15s, box-shadow .15s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(249,115,22,.55); }

.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  padding: .9rem 2.1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: border-color .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-outline:hover { border-color: #fff; }

.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 900; color: var(--accent); }
.hero-stat span   { font-size: .8rem; color: #94a3b8; font-weight: 500; }

/* ============================================================
   TRUST BAR
============================================================ */
.trust-bar {
  background: var(--light); border-bottom: 1px solid var(--border);
  padding: .85rem 1.25rem;
}
.trust-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  gap: 1.75rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .83rem; color: var(--muted); font-weight: 500;
}
.trust-item i { color: var(--brand-light); font-size: .9rem; }

/* ============================================================
   SERVICES
============================================================ */
.services { padding: 5rem 0; background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(15,45,94,.12);
  border-color: var(--brand-light);
}

.service-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; margin-bottom: 1rem;
}

.service-card h3 { font-size: .97rem; font-weight: 700; margin-bottom: .4rem; }
.service-card p  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   WHY US
============================================================ */
.why { background: var(--dark); color: #fff; padding: 5rem 0; }
.why .section-title { color: #f1f5f9; }
.why .section-sub  { color: #94a3b8; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}

.why-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center;
  transition: background .2s;
}
.why-item:hover { background: rgba(255,255,255,.07); }

.why-num { font-size: 2.75rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: .5rem; }
.why-item h4 { font-size: .95rem; font-weight: 700; color: #f1f5f9; margin-bottom: .35rem; }
.why-item p  { font-size: .83rem; color: #94a3b8; line-height: 1.55; }

/* ============================================================
   CLIENTS
============================================================ */
.clients { padding: 5rem 0; background: var(--light); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(15,45,94,.12);
}

.client-img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  background: #e2e8f0;
}

.client-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.client-tags {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem;
}

.client-tag {
  font-size: .68rem; font-weight: 700;
  background: rgba(37,99,235,.08); color: var(--brand-light);
  padding: .18rem .6rem; border-radius: 999px;
  letter-spacing: .2px;
}

.client-name {
  font-size: 1rem; font-weight: 700; margin-bottom: .3rem;
  color: var(--text);
}

.client-loc {
  font-size: .78rem; color: var(--muted);
  display: flex; align-items: center; gap: .3rem;
}

/* ============================================================
   LEAD CAPTURE FORM
============================================================ */
.lead-section {
  padding: 5rem 0;
  background: linear-gradient(160deg, #eff6ff 0%, #fff7ed 100%);
  border-top: 1px solid var(--border);
}

.lead-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.lead-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; line-height: 1.25; margin-bottom: 1rem;
}
.lead-copy h2 em { color: var(--accent); font-style: normal; }
.lead-copy p { color: var(--muted); margin-bottom: 1.25rem; font-size: .95rem; }

.lead-promise { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
.lead-promise-item {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .88rem; color: var(--text);
}
.lead-promise-item i { color: var(--wa); margin-top: .2rem; flex-shrink: 0; }

/* Form card */
.form-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 2.5rem 2rem;
}

.form-card-title { font-size: 1.3rem; font-weight: 800; margin-bottom: .3rem; }
.form-card-sub   { font-size: .87rem; color: var(--muted); margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text); margin-bottom: .32rem;
}
.form-group label .req { color: var(--accent); }

.form-control {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control::placeholder { color: #cbd5e1; }
.form-control.error { border-color: #ef4444; }

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  background-size: 16px; padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  width: 100%; padding: 1rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 15px rgba(249,115,22,.35);
  transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .5rem;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(249,115,22,.48); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.privacy-note {
  text-align: center; font-size: .75rem; color: var(--muted); margin-top: .85rem;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
}

.field-error { font-size: .75rem; color: #ef4444; margin-top: .25rem; display: none; }

/* ============================================================
   SUCCESS STATE
============================================================ */
.success-box { display: none; text-align: center; padding: 1rem 0; }

.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(34,197,94,.4);
}
.success-icon i { font-size: 2rem; color: #fff; }
.success-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.success-box p  { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.btn-wa-success {
  background: var(--wa); color: #fff; border: none;
  padding: .85rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: opacity .2s;
}
.btn-wa-success:hover { opacity: .9; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  background: var(--wa); color: #fff;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.55);
  transition: transform .2s;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.55); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.85); }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--dark); color: #94a3b8;
  padding: 2.25rem 1.25rem; text-align: center; font-size: .85rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: .35rem; }
.footer-logo span { color: var(--accent); }
footer p { margin-bottom: .35rem; }
footer a { color: var(--accent); }
footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin: .75rem 0;
}
.footer-links a { display: flex; align-items: center; gap: .35rem; }

/* ============================================================
   MID-PAGE CTA
============================================================ */
.mid-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  padding: 4.5rem 1.5rem;
  text-align: center;
  color: #fff;
}
.mid-cta-tag {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .75rem;
}
.mid-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .85rem;
}
.mid-cta-sub {
  font-size: 1rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.mid-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  font-size: 1.05rem;
  padding: .9rem 2.25rem;
  box-shadow: 0 4px 24px rgba(249,115,22,.45);
}
.mid-cta .btn-primary:hover { background: #ea6c0a; }

/* ============================================================
   CARD CTA LINK
============================================================ */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand-light);
  letter-spacing: .2px;
  transition: gap .2s;
}
.card-cta:hover { gap: .7rem; }
.card-cta i { font-size: .72rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .lead-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .lead-copy { text-align: center; }
  .lead-copy .section-sub { max-width: 100%; }
  .lead-promise { align-items: center; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem 1.25rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat strong { font-size: 1.4rem; }
  .services, .why, .lead-section, .clients { padding: 3.5rem 0; }
}

@media (max-width: 400px) {
  .logo-sub { display: none; }
}
