/* ═══════════════════════════════════════════
   PERTISE — SHARED CSS (Header, Footer, WPP, Utils)
   Cacheable across all pages
   ═══════════════════════════════════════════ */

:root {
  --indigo: #373083;
  --indigo-deep: #1E1A5A;
  --indigo-dark: #0F0C2E;
  --indigo-light: #4A42A0;
  --indigo-pale: #EEEDFA;
  --white: #FFFFFF;
  --gray-600: #6B6B7B;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A6E;
  --accent: #0D9668;
  --accent-hover: #0A7B54;
  --wpp-green: #25D366;
  --font-heading: 'Montserrat', sans-serif;
  --radius-sm: 8px;
  --ease-spring: cubic-bezier(.16,1,.3,1);
  --ease-out-expo: cubic-bezier(.19,1,.22,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══ HEADER v3 ═══ */
.header-v3 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,12,46,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 40px rgba(0,0,0,.3);
  transition: background .5s var(--ease-spring), border-color .5s, box-shadow .5s;
}
.header-v3__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.header-v3__logo svg {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity .3s;
}
.header-v3__logo:hover svg { opacity: .8; }
.header-v3__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.header-v3__links a {
  text-decoration: none;
  color: rgba(255,255,255,.5);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
}
.header-v3__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width .3s var(--ease-spring);
}
.header-v3__links a:hover { color: rgba(255,255,255,.9); }
.header-v3__links a:hover::after { width: 100%; }
.header-v3__links a.active { color: var(--white); }
.header-v3__links a.active::after { width: 100%; }
.header-v3__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 6px;
  font-size: 13px !important;
  letter-spacing: .3px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  transition: all .3s var(--ease-spring);
  box-shadow: 0 2px 12px rgba(13,150,104,.2);
}
.header-v3__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(13,150,104,.3);
}
.header-v3__cta::after { display: none !important; }
.header-v3__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.header-v3__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.header-v3__mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--indigo-dark);
  z-index: 999;
  padding: 40px 24px;
  flex-direction: column;
  gap: 24px;
}
.header-v3__mobile.active { display: flex; }
.header-v3__mobile a {
  text-decoration: none;
  color: rgba(255,255,255,.8);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  transition: color .2s;
}
.header-v3__mobile a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .header-v3__nav { padding: 0 20px; }
  .header-v3__links { display: none; }
  .header-v3__hamburger { display: flex; }
}

/* ═══ FOOTER v3 ═══ */
.footer-v3 {
  position: relative;
  background: linear-gradient(180deg, #0A0821 0%, #05030F 100%);
  padding: 80px 0 0;
  overflow: hidden;
  z-index: 1;
}
.footer-v3__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.footer-v3__bg-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 20% 0%, rgba(55,48,131,.08) 0%, transparent 60%),
    radial-gradient(ellipse 600px 350px at 80% 100%, rgba(13,150,104,.06) 0%, transparent 60%);
}
.footer-v3__bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 10%, transparent 70%);
  opacity: 0.4;
}
.footer-v3__bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; pointer-events: none; }
.footer-v3__bg-orb--1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--indigo) 0%, transparent 70%); top: -150px; left: -100px; }
.footer-v3__bg-orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); bottom: -100px; right: -80px; }
.footer-v3__edge {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 20%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.08) 80%, transparent 100%);
}
.footer-v3__edge::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 40px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,255,255,.03) 0%, transparent 100%);
  pointer-events: none;
}
.footer-v3__container { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.footer-v3__main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 64px;
  padding-top: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-v3__brand { max-width: 320px; }
.footer-v3__logo { margin-bottom: 20px; }
.footer-v3__logo svg { height: 36px; width: auto; display: block; transition: opacity .3s ease; }
.footer-v3__logo svg:hover { opacity: .75; }
.footer-v3__brand-desc { font-size: clamp(13px, 1.8vw, 14px); line-height: 1.7; color: rgba(255,255,255,.45); margin-bottom: 24px; }
.footer-v3__social { display: flex; align-items: center; gap: 12px; }
.footer-v3__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  color: rgba(255,255,255,.5); transition: all .3s var(--ease-spring);
  position: relative; overflow: hidden;
}
.footer-v3__social-link::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.footer-v3__social-link:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--white); transform: translateY(-2px); }
.footer-v3__social-link:hover::before { opacity: 1; }
.footer-v3__col-title {
  font-family: var(--font-heading); font-size: clamp(12px, 1.5vw, 13px); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.footer-v3__nav { display: flex; flex-direction: column; gap: 12px; }
.footer-v3__link {
  position: relative; font-size: clamp(14px, 1.8vw, 15px); color: rgba(255,255,255,.65);
  text-decoration: none; transition: all .3s var(--ease-spring); display: inline-block; width: fit-content;
}
.footer-v3__link::before {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  transition: width .4s var(--ease-spring);
}
.footer-v3__link:hover { color: var(--white); transform: translateX(4px); }
.footer-v3__link:hover::before { width: 100%; }
.footer-v3__contact { display: flex; flex-direction: column; gap: 12px; }
.footer-v3__link--contact { font-size: clamp(13px, 1.7vw, 14px); }
.footer-v3__info { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-v3__info span { font-size: clamp(12px, 1.5vw, 13px); color: rgba(255,255,255,.35); line-height: 1.6; }
.footer-v3__bottom { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 32px; }
.footer-v3__copyright { font-size: clamp(12px, 1.5vw, 13px); color: rgba(255,255,255,.35); }
.footer-v3__legal { display: flex; align-items: center; gap: 12px; }
.footer-v3__legal-link {
  font-size: clamp(12px, 1.5vw, 13px); color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .3s ease; position: relative;
}
.footer-v3__legal-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: rgba(255,255,255,.6); transition: width .3s var(--ease-spring);
}
.footer-v3__legal-link:hover { color: rgba(255,255,255,.7); }
.footer-v3__legal-link:hover::after { width: 100%; }
.footer-v3__legal-divider { color: rgba(255,255,255,.2); font-size: 12px; }

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-v3__main { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
  .footer-v3__col--contact { grid-column: 1 / -1; max-width: 320px; }
}
@media (max-width: 768px) {
  .footer-v3 { padding: 60px 0 0; }
  .footer-v3__container { padding: 0 24px; }
  .footer-v3__main { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-v3__brand { max-width: 100%; }
  .footer-v3__col--contact { grid-column: auto; max-width: 100%; }
  .footer-v3__bottom { flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px 0 28px; }
  .footer-v3__legal { width: 100%; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .footer-v3 { padding: 48px 0 0; }
  .footer-v3__main { gap: 32px; padding-bottom: 32px; }
  .footer-v3__col-title { margin-bottom: 16px; }
  .footer-v3__nav { gap: 10px; }
  .footer-v3__contact { gap: 10px; }
  .footer-v3__bottom { padding: 20px 0 24px; }
  .footer-v3__legal { flex-direction: column; gap: 8px; }
}

/* ═══ WHATSAPP FLOAT ═══ */
.wpp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; background: var(--wpp-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: all .3s var(--ease-spring); text-decoration: none;
}
.wpp-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.45); }
.wpp-float svg { width: 28px; height: 28px; color: #fff; }
@media (max-width: 768px) {
  .wpp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .wpp-float svg { width: 24px; height: 24px; }
}

/* ═══ SCROLL PROGRESS ═══ */
.svc-scroll-progress {
  position: fixed; top: 72px; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--accent));
  z-index: 200; width: 0; transition: none;
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  .footer-v3__main, .footer-v3__col, .footer-v3__bottom { opacity: 1 !important; transform: none !important; }
  .footer-v3__link, .footer-v3__social-link, .footer-v3__legal-link { transition: none !important; }
  .footer-v3__link:hover, .footer-v3__social-link:hover { transform: none !important; }
}

/* ═══ MOBILE CONVERSION FIXES ═══ */
@media (max-width: 480px) {
  /* Buttons min touch target */
  .header-v3__cta { min-height: 44px; display: inline-flex; align-items: center; }

  /* Footer links tappable */
  .footer-v3__link { padding: 8px 0; display: block; }
  .footer-v3__social-link { width: 44px; height: 44px; }
  .footer-v3__nav { gap: 4px; }
}

@media (max-width: 360px) {
  .footer-v3__container { padding: 0 16px; }
  .footer-v3__main { gap: 28px; padding-bottom: 28px; }
}