/* ============================================
   MSM CONSULTING — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,300;1,600&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== VARIABLES ===== */
:root {
  --navy: #2B2D6E;
  --navy-light: #3D3F8F;
  --navy-dark: #1e2050;
  --gold: #F5A623;
  --gold-light: #FDEFC8;
  --gold-mid: #FCD27A;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f9f9fc;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse        { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes fadeUp       { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes waBounce     { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes waPing       { 0%{transform:scale(1);opacity:0.8} 100%{transform:scale(1.9);opacity:0} }
@keyframes slideInRight { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

.fade-up   { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.46s; }

/* ===== UTILITIES ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2.5rem; }
.divider   { border: none; border-top: 1px solid var(--border); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--navy); color: #fff;
  border: none; border-radius: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'Barlow', sans-serif;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 14px 28px; font-size: 15px;
  cursor: pointer; font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Barlow', sans-serif;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-gold:hover { background: var(--gold-mid); transform: translateY(-1px); }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; line-height: 1; }
.nav-logo-sub  { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-top: -1px; }
.nav-links { display: flex; gap: 0; list-style: none; flex: 1; justify-content: center; }
.nav-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; padding: 0.4rem 0.75rem; white-space: nowrap; border-radius: 6px; }
.nav-links a:hover { color: var(--navy); background: var(--bg-soft, #f9f9fc); }
.nav-links a[aria-current] { color: var(--navy); font-weight: 600; }
.nav-cta {
  font-size: 13px; font-weight: 600;
  background: var(--navy); color: #fff;
  border: none; border-radius: 7px; padding: 8px 18px;
  cursor: pointer; font-family: 'Barlow', sans-serif;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--navy-light); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }
.nav-mobile { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--border); background: #fff; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; color: var(--text-muted); text-decoration: none; padding: 1rem 2.5rem; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.nav-mobile a:hover { background: var(--bg-soft); color: var(--navy); }

/* ===== HERO ===== */
.hero { padding: 6rem 0 5rem; }
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 2.5rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); background: var(--gold-light);
  border-radius: 5px; padding: 5px 12px; margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
}
.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 58px; line-height: 1.04; font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.5px; margin-bottom: 1.3rem;
}
.hero-h1 span { color: var(--gold); }
.hero-sub { font-size: 16px; color: var(--text-muted); line-height: 1.75; font-weight: 300; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.stat-card {
  background: var(--bg-soft); border-radius: 12px; padding: 1.3rem;
  border: 1px solid var(--border); transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.stat-val span { color: var(--gold); }
.stat-lbl { font-size: 12px; color: var(--text-muted); }
.hero-quote {
  background: var(--gold-light); border-radius: 10px;
  padding: 1.1rem 1.3rem; border-left: 3px solid var(--gold);
}
.hero-quote p { font-size: 13px; font-style: italic; color: var(--navy); line-height: 1.65; font-weight: 300; }

/* ===== SECTION HEADERS ===== */
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.section-h { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.3px; margin-bottom: 0.5rem; }
.section-sub { font-size: 15px; color: var(--text-muted); font-weight: 300; max-width: 500px; line-height: 1.7; margin-bottom: 2.5rem; }

/* ===== SERVICES ===== */
.services { padding: 5rem 0; }
.svcs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem;
  border-top: 3px solid var(--navy); transition: box-shadow 0.25s, transform 0.2s;
}
.svc-card:hover { box-shadow: 0 8px 30px rgba(43,45,110,0.1); transform: translateY(-3px); }
.svc-icon { width: 42px; height: 42px; background: var(--gold-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.svc-icon svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-size: 15px; font-weight: 600; margin-bottom: 0.5rem; }
.svc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ===== AGENTE IA ===== */
.ai-section { background: var(--navy); }
.ai-header {
  max-width: 1080px; margin: 0 auto; padding: 5rem 2.5rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy); border-radius: 6px;
  padding: 6px 14px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: pulse 1.8s infinite; }
.ai-h { font-family: 'Barlow Condensed', sans-serif; font-size: 46px; font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: -0.5px; line-height: 1.05; margin-bottom: 0.7rem; }
.ai-h em { font-style: italic; color: var(--gold); font-weight: 300; text-transform: none; }
.ai-sub { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.75; font-weight: 300; margin-bottom: 2rem; }

.chat-window { background: #fff; border-radius: 16px; overflow: hidden; }
.chat-header { padding: 1rem 1.3rem; background: var(--navy-light); display: flex; align-items: center; gap: 10px; }
.chat-av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.chat-name   { font-size: 13px; font-weight: 600; color: #fff; }
.chat-status { font-size: 11px; color: #4ade80; }
.chat-status::before { content: '●'; margin-right: 4px; font-size: 8px; }
.chat-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.msg-bot  { background: #f3f4f8; color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }

.ai-feats {
  max-width: 1080px; margin: 0 auto; padding: 0 2.5rem 4rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ai-feat { background: rgba(255,255,255,0.07); border-radius: 14px; padding: 1.8rem; border: 1px solid rgba(255,255,255,0.12); border-top: 3px solid var(--gold); transition: background 0.2s; }
.ai-feat:hover { background: rgba(255,255,255,0.11); }
.ai-feat-num   { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; font-weight: 700; color: var(--gold); margin-bottom: 0.3rem; }
.ai-feat-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.ai-feat-desc  { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.65; font-weight: 300; }

/* ===== PROCESS ===== */
.process { padding: 5rem 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step { padding: 1.5rem; border-right: 1px solid var(--border); }
.process-step:last-child { border-right: none; }
.step-num  { font-family: 'Barlow Condensed', sans-serif; font-size: 48px; font-weight: 700; color: var(--gold-mid); margin-bottom: 0.5rem; line-height: 1; }
.step-name { font-size: 15px; font-weight: 600; margin-bottom: 0.4rem; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ===== TESTIMONIOS ===== */
.testimonios { padding: 5rem 0; background: var(--bg-soft); }
.testis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.testi-card { background: #fff; border-radius: 14px; padding: 1.8rem; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.testi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(43,45,110,0.07); }
.testi-stars  { color: var(--gold); font-size: 14px; margin-bottom: 0.8rem; letter-spacing: 2px; }
.testi-text   { font-size: 14px; font-style: italic; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.2rem; font-weight: 300; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-av     { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-light); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; font-family: 'Barlow Condensed', sans-serif; }
.testi-name   { font-size: 14px; font-weight: 600; }
.testi-role   { font-size: 11px; color: var(--text-muted); }

/* ===== CTA FINAL ===== */
.cta-final { padding: 6rem 0; text-align: center; border-top: 1px solid var(--border); }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); background: var(--gold-light);
  border-radius: 5px; padding: 5px 12px; margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
}
.cta-h   { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 700; text-transform: uppercase; max-width: 580px; margin: 0 auto 1rem; letter-spacing: -0.3px; }
.cta-h span { color: var(--gold); }
.cta-sub  { font-size: 15px; color: var(--text-muted); max-width: 440px; margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.7; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 2rem 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ===== WHATSAPP BUTTON ===== */
.wa-wrapper {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.wa-bubble {
  background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14); max-width: 260px;
  font-size: 13px; line-height: 1.5; color: var(--text);
  animation: slideInRight 0.35s ease both;
  border: 1px solid var(--border); position: relative;
}
.wa-bubble::after {
  content: ''; position: absolute; bottom: -8px; right: 20px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}
.wa-bubble strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 13px; }
.wa-bubble-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted); line-height: 1; padding: 2px;
}
.wa-bubble-close:hover { color: var(--text); }
.wa-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  animation: waBounce 2.5s ease-in-out infinite;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  text-decoration: none;
}
.wa-btn:hover { background: var(--whatsapp-dark); transform: scale(1.05); animation: none; }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-ping {
  position: absolute; top: 0; right: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ff4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.wa-ping::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: #ff4444;
  animation: waPing 1.5s ease-out infinite;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--navy-dark); color: #fff;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 700px; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 7px; padding: 9px 20px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Barlow', sans-serif;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--gold-mid); }
.cookie-reject {
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 7px; padding: 9px 20px;
  font-size: 13px; cursor: pointer; font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-reject:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ===== PAGES (privacy, legal, cookies) ===== */
.page-hero { background: var(--navy); padding: 4rem 0 3rem; }
.page-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 700; text-transform: uppercase; color: #fff; margin-bottom: 0.5rem; }
.page-hero p  { font-size: 14px; color: rgba(255,255,255,0.6); }
.page-content { padding: 4rem 0 6rem; }
.page-content h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; margin: 2.5rem 0 0.8rem; color: var(--navy); }
.page-content h2:first-child { margin-top: 0; }
.page-content p  { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-weight: 300; }
.page-content ul { margin: 0.5rem 0 1rem 1.5rem; }
.page-content li { font-size: 15px; color: var(--text-muted); line-height: 1.8; font-weight: 300; margin-bottom: 0.3rem; }
.page-content a  { color: var(--navy); }
.page-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; }
.page-back:hover { color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner, .ai-header { grid-template-columns: 1fr; gap: 2.5rem; }
  .svcs-grid  { grid-template-columns: 1fr 1fr; }
  .ai-feats   { grid-template-columns: 1fr 1fr; }
  .testis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-h1 { font-size: 38px; }
  .svcs-grid, .ai-feats, .testis-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
  .section-h { font-size: 28px; }
  .ai-h { font-size: 34px; }
  .cta-h { font-size: 30px; }
  .footer { flex-direction: column; text-align: center; }
  .wa-wrapper { bottom: 18px; right: 18px; }
  .cookie-banner { padding: 1rem 1.5rem; }
}
