

/* MASTER INDEX HEADER/FOOTER — copied from approved base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221,232,242,.84);
}
.nav-shell { height: 112px; display: flex; align-items: center; gap: 24px; }
.brand { display:flex; align-items:center; align-self:stretch; }
.brand img { height: 172px; width: auto; max-width: 456px; object-fit: contain; transform: translateY(28px); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  color: #26394C;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.nav-link:hover { color: var(--blue); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 900; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(4,110,180,.24); }
.btn-primary:hover { background: #035F9D; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light { background: #fff; color: var(--blue); box-shadow: 0 12px 34px rgba(0,0,0,.14); }

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 20;
}
.nav-item:hover .mega-menu,
.nav-item.open .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-wide { width: min(860px, calc(100vw - 48px)); display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.mega-compact { width: 310px; display: grid; gap: 8px; }
.right-menu { left: auto; right: 0; transform: translateY(8px); }
.nav-item:hover .right-menu,
.nav-item.open .right-menu { transform: translateY(0); }
.mega-panel { background: linear-gradient(135deg, #F2F8FE, #FFFFFF); border: 1px solid #E4EFF9; border-radius: 20px; padding: 20px; }
.mega-kicker { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.mega-panel h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; }
.mega-panel p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mega-link, .accent-link { color: var(--blue)!important; font-weight: 900!important; }
.mega-grid { display: grid; gap: 10px; }
.solutions-mega { grid-template-columns: 1fr 1fr; }
.solutions-mega a, .mega-compact a, .integrations-list a { display: block; border-radius: 16px; padding: 12px; color: var(--text); border: 1px solid transparent; }
.solutions-mega a:hover, .mega-compact a:hover, .integrations-list a:hover { background: #F5FAFE; border-color: #E3EEF8; }
.solutions-mega span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 8px; background: #EEF7FF; border-radius: 9px; }
.solutions-mega b { display: inline-block; font-size: 14px; }
.solutions-mega small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.35; }
.integrations-mega { grid-template-columns: 330px 1fr; align-items: center; }
.integration-map { position: relative; min-height: 245px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(7,155,216,.18), transparent 42%), linear-gradient(135deg,#F4FAFF,#FFFFFF); border: 1px solid #E2EDF7; }
.integration-map::before, .integration-map::after { content: ""; position: absolute; inset: 50%; width: 260px; height: 1px; background: rgba(4,110,180,.18); transform: translate(-50%,-50%) rotate(22deg); }
.integration-map::after { transform: translate(-50%,-50%) rotate(-22deg); }
.integration-map .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--blue); color:#fff; border-radius: 999px; padding: 13px 18px; font-size: 14px; font-weight: 900; box-shadow: 0 12px 30px rgba(4,110,180,.22); }
.integration-map .node { position: absolute; background:#fff; border: 1px solid #DCE8F2; border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 900; color:#31506A; box-shadow:0 10px 24px rgba(31,75,112,.08); }
.n1{left:25px;top:34px}.n2{right:34px;top:28px}.n3{left:42px;bottom:38px}.n4{right:45px;bottom:40px}.n5{left:16px;top:112px}.n6{right:15px;top:115px}.n7{left:50%;bottom:18px;transform:translateX(-50%)}
.integrations-list { grid-template-columns: 1fr 1fr; }
.integrations-list a { font-weight: 900; color: #26394C; }


.site-footer { background:#071827; color:#DCEBFA; padding:57px 0 18px; }
.footer-grid { display:grid; grid-template-columns:1.3fr .8fr .95fr .85fr; gap:38px; }
.footer-brand img { width:265px; filter:brightness(0) invert(1); margin-bottom:18px; }
.site-footer h3 { color:#fff; font-size:24px; line-height:1.15; margin-bottom:12px; letter-spacing:-.035em; }
.site-footer h4 { color:#fff; margin:0 0 16px; font-size:15px; text-transform:uppercase; letter-spacing:.12em; }
.site-footer p, .site-footer span, .site-footer a { color:#AFC2D5; font-size:14px; line-height:1.55; }
.site-footer a, .site-footer span { display:block; margin:8px 0; }
.site-footer strong { color:#fff; }
.social-links { display:flex; gap:9px; margin-top:18px; }
.social-links a { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#0E2B48; color:#fff; font-weight:900; text-transform:uppercase; font-size:12px; }
.regional-note { margin-top:14px!important; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:38px; padding-top:20px; display:flex; justify-content:space-between; gap:20px; }
.footer-bottom p { margin:0; }
.footer-bottom a { display:inline; }
.whatsapp-float { position:fixed; right:24px; bottom:22px; z-index:80; display:flex; align-items:center; gap:8px; background:#25D366; color:#fff; border-radius:999px; padding:12px 16px; font-weight:900; box-shadow:0 18px 42px rgba(37,211,102,.32); }
.whatsapp-float svg { width:23px; height:23px; fill:#fff; }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }


.site-header{overflow:visible}
.nav-shell{height:104px;gap:18px}
.brand{flex:0 0 auto;align-self:auto;min-width:184px}
.brand img{width:184px;height:auto;max-width:none;transform:none;object-fit:contain}
.main-nav{gap:2px;overflow:visible}
.nav-item{padding-bottom:14px;margin-bottom:-14px}
.nav-link{position:relative;padding:14px 10px;font-family:Aptos,"Segoe UI",Arial,sans-serif;font-size:15px;font-weight:900;color:#26394C;white-space:nowrap}
.nav-link::after{content:"";position:absolute;left:10px;right:10px;bottom:3px;height:3px;border-radius:999px;background:var(--sky);transform:scaleX(0);transform-origin:center;transition:transform .18s ease}
.nav-link:hover,.nav-item:hover>.nav-link,.nav-item.open>.nav-link{color:var(--blue)}
.nav-link:hover::after,.nav-item:hover>.nav-link::after,.nav-item.open>.nav-link::after{transform:scaleX(1)}
.nav-cta{font-family:Aptos,"Segoe UI",Arial,sans-serif;font-size:15px;white-space:nowrap;padding-inline:18px}
.mega-menu{top:100%;margin-top:0}
.nav-item::after{content:"";position:absolute;left:0;right:0;top:100%;height:18px}




.footer-grid{align-items:start}
.footer-grid>div{padding-top:0}
.site-footer h4{margin-top:0;min-height:24px}
.footer-brand img{width:245px;margin-bottom:16px}
.social-links a{width:38px;height:38px}
.social-links svg{width:18px;height:18px;fill:#fff;display:block}
.country-row{display:flex!important;align-items:center;gap:8px}
.country-row b{display:inline-flex;align-items:center;justify-content:center;width:25px;height:18px;border:1px solid rgba(255,255,255,.22);border-radius:4px;color:#fff;font-size:9px;letter-spacing:.06em}



@media (max-width:1180px) and (min-width:1061px){
  .container{width:min(100% - 28px,1200px)}
  .nav-shell{gap:10px}
  .brand{min-width:152px}.brand img{width:152px}
  .nav-link{padding-inline:7px;font-size:14px}
  .nav-link::after{left:7px;right:7px}
  .nav-cta{padding-inline:14px;font-size:14px}
}
@media (max-width:1060px){
  .nav-shell{min-height:88px;height:auto;padding:8px 0}
  .brand{min-width:0}.brand img{width:154px;height:auto;max-width:none;transform:none}
  .nav-item{padding-bottom:0;margin-bottom:0}
  .nav-link{font-size:15px;padding:14px 4px}
  .nav-link::after{left:4px;right:4px;bottom:4px}
  .nav-item::after{display:none}
  .mega-menu,.right-menu{max-height:62vh;overflow:auto}
  
}
@media (max-width:680px){
  .brand img{width:142px;height:auto;transform:none}
  .footer-brand img{width:210px}
}


.nav-success{display:inline-flex;align-items:center;padding:10px 18px;border:1px solid #079BD8;border-radius:999px;color:#0b2740;text-decoration:none;font-weight:700;background:#fff;transition:all .3s ease;position:relative;overflow:hidden}
.nav-success::after{content:'→';margin-left:8px;transition:transform .3s ease}
.nav-success::before{content:'';position:absolute;top:0;left:-120%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);transform:skewX(-20deg);animation:shine 6s infinite}
.nav-success:hover{background:#079BD8;color:#fff;box-shadow:0 8px 20px rgba(7,155,216,.25)}
.nav-success:hover::after{transform:translateX(4px)}
@keyframes shine{0%,85%{left:-120%}100%{left:180%}}


/* Index base bilingue: language switch + new solution states */
.language-switch{display:inline-flex;align-items:center;gap:5px;margin-left:-7px;font-family:Aptos,"Segoe UI",Arial,sans-serif;font-size:13px;font-weight:800;color:#6d7f91;white-space:nowrap}
.language-switch a{color:#557086;text-decoration:none;transition:color .18s ease}
.language-switch a:hover{color:var(--blue)}
.language-switch .lang-current{color:var(--blue)}
.language-switch .lang-sep{color:#b7c5d0;font-weight:500}
.coming-soon-link small::after{content:""}
@media(max-width:1060px){.language-switch{margin-left:auto;margin-right:54px;order:3;font-size:14px}.nav-success{order:2}.menu-toggle{order:4}.main-nav{order:5}}
@media(max-width:520px){.language-switch{margin-right:4px}.nav-success{padding:9px 12px;font-size:13px}}

/* ===== RESPONSIVE + QA FINAL MASTER BASE ===== */
/* Keep the first mega-menu fully inside the viewport on desktop. */
@media (min-width:1061px){
  .main-nav > .nav-item:first-child > .mega-menu{
    left:0;
    transform:translateY(8px);
  }
  .main-nav > .nav-item:first-child:hover > .mega-menu,
  .main-nav > .nav-item:first-child.open > .mega-menu{
    transform:translateY(0);
  }
}

@media (max-width:1060px){
  .nav-shell{
    flex-wrap:wrap;
    row-gap:6px;
  }
  .brand{order:1;}
  .language-switch{
    order:2;
    margin-left:auto;
    margin-right:0;
    flex:0 0 auto;
  }
  .nav-success{
    order:3;
    flex:0 0 auto;
  }
  .menu-toggle{
    order:4;
    margin-left:0;
    flex:0 0 42px;
  }
  .main-nav{
    order:5;
    flex:0 0 100%;
    width:100%;
    min-width:0;
    padding:8px 0 14px;
  }
  .main-nav .nav-link{
    display:block;
    width:100%;
    padding:13px 6px;
  }
  .mega-menu,
  .right-menu{
    left:auto;
    right:auto;
    width:100%!important;
    max-width:none;
    margin:0 0 8px;
  }
  .mega-panel{padding:18px;}
  .solutions-mega a,
  .mega-compact a,
  .integrations-list a{padding:11px 10px;}
}

@media (max-width:680px){
  .site-header{backdrop-filter:blur(14px);}
  .nav-shell{column-gap:10px;}
  .brand img{width:132px;}
  .language-switch{font-size:13px;}
  .nav-success{display:none;}
  .mobile-success-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin:8px 0 2px;
    padding:13px 15px;
    border:1px solid var(--sky);
    border-radius:16px;
    color:var(--ink);
    font-family:Aptos,"Segoe UI",Arial,sans-serif;
    font-size:15px;
    font-weight:800;
    background:#fff;
  }
  .mobile-success-link::after{content:'→';color:var(--blue);font-size:20px;line-height:1;}
  .main-nav{padding-top:4px;}
  .mega-wide,.integrations-mega,.solutions-mega,.integrations-list{grid-template-columns:1fr!important;}
  .mega-menu{max-height:58vh;}
  .mega-panel h3{font-size:20px;}
  .mega-panel p{font-size:13px;}
  
  
  .hero-copy h1{font-size:clamp(38px,10.4vw,44px);line-height:1.02;}
  .hero-copy h1>span{white-space:normal!important;}
  .hero-text{line-height:1.62;}
  .metrics-row{gap:10px;}
  .ecosystem-deck{min-height:450px;overflow:hidden;}
  .ecosystem-stage{height:405px;overflow:hidden;}
  .product-panel{width:min(330px,86vw)!important;}
  .product-panel.is-prev,
  .product-panel.is-prev2,
  .product-panel.is-next,
  .product-panel.is-next2{opacity:.18!important;pointer-events:none;}
  .product-panel.is-active{opacity:1!important;}
  .footer-bottom{gap:10px;}
}

@media (max-width:420px){
  .container{width:min(100% - 24px,1200px);}
  .brand img{width:124px;}
  .menu-toggle{width:40px;height:40px;flex-basis:40px;}
  .language-switch{font-size:12px;gap:4px;}
  .hero-copy h1{font-size:clamp(36px,10vw,40px);}
  .section-pad,.section-pad.compact{padding:56px 0;}
  
}


/* ===== HEADER ACTIONS FIX — no duplicate Success Stories + stable language switch ===== */
.nav-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto;white-space:nowrap}
.nav-actions .language-switch{margin:0}
.mobile-success-link{display:none!important}
.nav-success{white-space:nowrap;flex-shrink:0}

@media (max-width:1060px){
  .nav-shell{display:flex;align-items:center;flex-wrap:wrap;column-gap:10px;row-gap:8px}
  .brand{order:1;flex:1 1 auto}
  .menu-toggle{order:2;margin-left:auto}
  .nav-actions{order:3;flex:0 0 100%;width:100%;justify-content:flex-end;padding:0 0 4px}
  .main-nav{order:4}
}

@media (max-width:680px){
  .nav-shell{padding:8px 0 10px}
  .brand{min-width:0}
  .brand img{width:124px;height:auto;max-width:124px}
  .nav-actions{justify-content:flex-end;gap:10px}
  .nav-success{display:inline-flex!important;padding:8px 13px;min-height:40px;font-size:13px;line-height:1;border-radius:999px;white-space:nowrap}
  .nav-success::after{margin-left:7px}
  .language-switch{font-size:13px!important;gap:4px!important;margin:0!important}
}

@media (max-width:420px){
  .brand img{width:116px;max-width:116px}
  .nav-actions{gap:8px}
  .nav-success{padding:8px 11px;font-size:12.5px;min-height:38px}
  .language-switch{font-size:12.5px!important}
}

/* QA active current page */
.nav-link.active{color:var(--blue)!important}.nav-link.active::after{transform:scaleX(1)!important}
