:root{
  --bg:#070b14;
  --surface:#0b1220;
  --surface2:#0f1a2f;
  --card:#0b1427;
  --fg:#eef2ff;
  --muted:#a9b3cf;
  --border:rgba(255,255,255,.10);
  --primary:#3b82f6;
  --primary2:#2563eb;
  --accent:#60a5fa;
  --success:#22c55e;
  --danger:#ef4444;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 26px rgba(0,0,0,.22);
  --radius:20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--fg);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(59,130,246,.35) 0%, transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(96,165,250,.22) 0%, transparent 55%),
    linear-gradient(180deg, #060912 0%, var(--bg) 40%, #050813 100%);
  line-height:1.65;
}

/* Discreet tech illustration background */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:url("/assets/tech-bg.svg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0.20;
  pointer-events:none;
  z-index:-1;
}

a{color:inherit; text-decoration:none}

.container{max-width:1140px; margin:0 auto; padding:0 18px}
.row{display:flex; gap:12px; flex-wrap:wrap}
.between{justify-content:space-between; align-items:center}
.grid{display:grid; gap:22px}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}

/* Top bar */
header.sticky{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,18,32,.78);
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{display:block; height:44px; width:auto}
.brand strong{
  font-weight:850;
  letter-spacing:-.01em;
  color:#eaf1ff;
}

.nav{
  display:flex;
  gap:16px;
  align-items:center;
}
.nav a{
  color:rgba(238,242,255,.86);
  font-weight:600;
  padding:10px 10px;
  border-radius:999px;
}
.nav a:hover{background:rgba(255,255,255,.06)}
.nav a.active{background:rgba(59,130,246,.20); color:#fff}

.badge{
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
  color:rgba(238,242,255,.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.badge:hover{background:rgba(255,255,255,.10)}

/* Badge groups ("What you can expect" / "Lo que puedes esperar") */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

@media (max-width: 640px){
  /* Two-column, tidy pills on mobile */
  .badges{gap:8px;}
  .badges .badge{
    flex: 1 1 calc(50% - 8px);
    white-space:normal; /* allow long labels to wrap inside the pill */
    text-align:center;
    line-height:1.15;
    padding:8px 10px;
    font-size:13px;
  }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  border:1px solid rgba(59,130,246,.35);
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  color:#fff;
  box-shadow:0 18px 40px rgba(37,99,235,.22);
}
.btn:hover{filter:brightness(1.03)}
.btn.secondary{
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}
.btn.secondary:hover{background:rgba(255,255,255,.10)}
.btn.wa{
  background:linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color:rgba(34,197,94,.35);
  box-shadow:0 18px 40px rgba(34,197,94,.18);
}

/* Sections */
.hero{
  padding:78px 0 56px;
}
.h1{
  font-size:clamp(36px,4.8vw,54px);
  line-height:1.05;
  margin:0 0 12px;
  letter-spacing:-.02em;
}
.lead{
  color:rgba(169,179,207,.95);
  font-size:18px;
  max-width:68ch;
}
.section{padding:66px 0}
.title{font-size:32px; margin:0 0 10px; letter-spacing:-.015em}
.muted{color:var(--muted)}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(238,242,255,.92);
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.25);
  padding:7px 12px;
  border-radius:999px;
}

/* Cards */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.04) 100%);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}
.card .body{padding:18px}
.card h3{margin:0 0 8px}
.card p{margin:0}

/* Forms */
label{display:block; margin-top:12px}
input, textarea, select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  color:var(--fg);
  font:inherit;
}
input::placeholder, textarea::placeholder{color:rgba(169,179,207,.75)}
input:focus, textarea:focus, select:focus{
  outline:none;
  border-color:rgba(96,165,250,.55);
  box-shadow:0 0 0 3px rgba(59,130,246,.22);
}

hr.sep{border:0; border-top:1px solid var(--border); margin:20px 0}
.small{font-size:14px}
.note{font-size:12px; color:rgba(169,179,207,.85); margin-top:8px}

.alert{
  border:1px solid rgba(34,197,94,.35);
  background:rgba(34,197,94,.10);
  color:#d1fae5;
  padding:12px;
  border-radius:14px;
  display:none;
}
.alert.err{
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.10);
  color:#fee2e2;
}

/* Footer */
footer{border-top:1px solid var(--border); background:rgba(11,18,32,.55)}
footer .container{padding:18px}
footer a{color:rgba(238,242,255,.86)}
footer a:hover{text-decoration:underline}

/* Floating WhatsApp */
.wa-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  display:flex;
  gap:10px;
  align-items:center;
}
.wa-fab a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(34,197,94,.35);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:var(--shadow-soft);
}
.wa-ic{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(34,197,94,.16);
  color:#22c55e;
  box-shadow:0 0 0 6px rgba(34,197,94,.10);
}

/* Responsive */
@media (max-width:720px){
  .hero{padding:66px 0 44px}
  .nav{gap:10px}
  .nav a{padding:8px 10px}
  .brand strong{display:none}
}

/* Header logo fix */
.header-logo {
    height: 64px;
    width: auto;
    display: block;
}

header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .header-logo {
        height: 48px;
    }
}


/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 14px 16px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    text-decoration: none;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    header, .container, section {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.3rem;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
    }
}


/* --- Mobile fit + overflow fixes --- */
html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; }
.brand-text { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 12px;
}
.nav-toggle span{
  display:block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: rgba(255,255,255,0.9);
}

@media (max-width: 820px) {
  header { position: sticky; top: 0; z-index: 1000; }
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }
  /* Make header layout: brand left, burger right */
  header .header-inner, header .container, header { }
  /* Force nav to drawer */
  
#site-nav{
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  right: auto;
  top: auto;
  transition: none;
}
body.nav-open #site-nav { right: 0; }

  /* overlay */
  body.nav-open::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
  }
  #site-nav { z-index: 1001; }

  
#site-nav ul{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#site-nav a{ font-size: 18px; padding: 10px 12px; display:block; }

  /* Prevent desktop nav layout from pushing width */
  header nav ul { flex-wrap: nowrap; }
}

/* Ensure header content doesn't exceed viewport */
header, .container { max-width: 100%; }

/* --- Mobile drawer nav (only on mobile) --- */
@media (max-width: 820px){
  .nav-toggle{ display:inline-flex !important; align-items:center; justify-content:center; }
  .nav-toggle{ background: transparent; border:0; padding:10px; cursor:pointer; border-radius:12px; }
  .nav-toggle span{ display:block; width:26px; height:2px; margin:4px 0; background: rgba(255,255,255,0.92); border-radius:2px; }

  .nav-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1000;
  }
  body.nav-open .nav-overlay{ opacity:1; pointer-events:auto; }

  #site-nav{
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    padding: 90px 18px 18px;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,255,255,0.08);
    transition: right .25s ease;
    z-index: 1001;
  }
  body.nav-open #site-nav{ right: 0; }

  #site-nav ul{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap: 10px;
  }
  #site-nav a{
    display:block;
    padding: 12px 12px;
    border-radius: 14px;
  }
  #site-nav a:hover{
    background: rgba(255,255,255,0.06);
  }

  /* language switch inside drawer */
  #site-nav .lang-switch{
    display:flex;
    gap:10px;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,0.08);
  }
  #site-nav .lang-switch a{
    flex:1;
    text-align:center;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:999px;
  }
  #site-nav .lang-switch a.active{
    background: rgba(86,120,255,0.20);
    border-color: rgba(86,120,255,0.35);
  }
}

/* Hide mobile-only pieces on desktop */
@media (min-width: 821px){
  .nav-overlay{ display:none; }
  .nav-toggle{ display:none !important; }
  #site-nav .lang-switch{ display:none !important; }
}

/* --- FORCE DESKTOP NAV HORIZONTAL (override any stray mobile styles) --- */
@media (min-width: 821px){
  header{ position: relative; }
  #site-nav{ 
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    right: auto !important;
    top: auto !important;
    backdrop-filter: none !important;
    transform: none !important;
  }
  #site-nav ul{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #site-nav li{ list-style: none !important; margin: 0 !important; padding: 0 !important; }
  #site-nav a{ display: inline-flex !important; padding: 10px 12px !important; border-radius: 999px !important; }
  .nav-toggle{ display: none !important; }
  .nav-overlay{ display: none !important; }
  #site-nav .lang-switch{ display:none !important; }
}

/* --- Mobile: make hamburger always tappable (Safari) --- */
@media (max-width: 820px){
  header{ position: relative; }
  .nav-toggle{
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 1102 !important;
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-toggle *{ pointer-events: none; } /* so taps register on button itself */
  .nav-overlay{ z-index: 1100 !important; }
  #site-nav{ z-index: 1101 !important; }
}

/* Avoid decorative layers blocking taps */
header::before, header::after{ pointer-events:none; }


@media (min-width: 821px){
  .wa-fab{ bottom: 84px !important; }
}

footer .footer-links, footer .footer-nav, footer nav{ justify-content: flex-end; }



/* --- NAV MOBILE FIX (iOS/Safari clickable links) --- */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}
body.nav-open .nav-overlay{
  opacity: 1;
  pointer-events: auto;
}
#site-nav{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  z-index: 2000;
  pointer-events: auto;
}
.nav-toggle{
  position: relative;
  z-index: 3000;
  -webkit-tap-highlight-color: transparent;
}
/* make sure the 4 lines are visible and stacked */
.nav-toggle span{
  display:block;
  width: 26px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
}
/* drawer links must be clickable */
#site-nav a, #site-nav button{
  pointer-events: auto;
}
/* Prevent overlay layers inside header from blocking taps */
header, .site-header{ position: relative; z-index: 10; }
/* --- END NAV MOBILE FIX --- */

/* === Mobile drawer close + active tab styling (final fixes) === */

/* Keep header/hamburger clickable above overlay */
.site-header{position:sticky;top:0;z-index:2100;}
.nav-toggle{position:relative;z-index:2200;}

/* Ensure overlay never blocks the drawer */
.nav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:1500;}
body.nav-open .nav-overlay{opacity:1;pointer-events:auto;}

/* Robust drawer behavior (mobile) */
@media (max-width: 900px){
  #site-nav{position:fixed;top:0;right:0;bottom:0;width:min(82vw, 340px);max-width:340px;transform:translateX(100%);transition:transform .18s ease;z-index:2000;pointer-events:none;}
  body.nav-open #site-nav{transform:translateX(0);pointer-events:auto;}
}

/* Desktop nav stays inline/horizontal */
@media (min-width: 901px){
  #site-nav{position:static;transform:none !important;pointer-events:auto;z-index:auto;}
}

/* Replace "Menu" label by simply hiding the title (EN/ES stays visible) */

/* Active page highlight (works on desktop + mobile) */
.nav-link{border:1px solid transparent;border-radius:999px;padding:8px 12px;}
.nav-link.active,
.nav-link[aria-current="page"]{border-color:rgba(140,190,255,.45);background:rgba(90,140,255,.12);box-shadow:0 0 0 1px rgba(140,190,255,.15) inset;}

/* --- Final mobile + header overrides (Jan 2026) --- */

/* Ensure the hamburger button is always tappable above overlays on iOS */
.nav-toggle{
  position: relative;
  z-index: 3005;
}

/* 4-line hamburger icon */
.nav-toggle span{
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.92);
  display: block;
  margin: 3px 0;
}

/* Keep overlay below the drawer, but above the page */
.nav-overlay{ z-index: 2500; }
#site-nav{ z-index: 2600; }

/* Make sure drawer content can receive taps */
.nav-drawer, #site-nav *{ pointer-events: auto; }

/* Remove the old "Menu" label (we show EN/ES instead) */

/* Language switch styling */
.lang-switch{ display:flex; gap:10px; align-items:center; }
.lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.18);
  color:rgba(255,255,255,0.92);
  text-decoration:none;
  font-weight:700;
  letter-spacing:0.02em;
}
.lang-switch a.active{ border-color: rgba(140,190,255,.55); background: rgba(90,140,255,.16); }

/* WhatsApp floating button */
.wa-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.wa-fab .wa-icon{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: inline-block;
}

/* Keep footer links from being hidden behind the WA button on wide screens */
@media (min-width: 900px){
  .footer .footer-links{ padding-right: 190px; }
}

/* Keep overlay below the drawer, but above the page */
.nav-overlay{
  z-index: 2990;
}
#site-nav{
  z-index: 3000;
}

/* Hide the old “Menu/Menú” title (we use EN/ES instead) */

/* Language switch pills */
.lang-switch{
  display:flex;
  gap:8px;
  align-items:center;
}
.lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  text-decoration:none;
  background: rgba(255,255,255,0.06);
}
.lang-switch a.active{
  border-color: rgba(120,110,255,0.85);
  box-shadow: 0 0 0 3px rgba(120,110,255,0.18);
}

/* Active tab styling (desktop nav) */
.nav-link{ border-radius: 999px; }
.nav-link.active{
  border:1px solid rgba(120,110,255,0.8);
  background: rgba(120,110,255,0.12);
}

/* WhatsApp floating action button */
.wa-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.wa-fab:active{ transform: translateY(1px); }
.wa-fab svg{ width: 18px; height: 18px; display:block; }

/* Keep footer links visible on desktop (WA button should not cover) */
@media (min-width: 900px){
  .footer-links{ padding-right: 180px; }
}


/* =====================================================================
   FINAL HOTFIXES (Mobile Safari/Chrome menu tap + active tab styling)
   ===================================================================== */

@media (max-width: 900px){
  /* Make sure the overlay never blocks taps on the drawer */
  .nav-overlay{
    z-index: 9998 !important;
  }
  #site-nav{
    z-index: 9999 !important;
    pointer-events: auto !important;
  }
  #site-nav *{
    pointer-events: auto !important;
  }
  .nav-toggle{
    z-index: 10000 !important;
  }
}

/* Active tab / current page — make it feel like a button */
.nav-links a,
.nav-list a{
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links a.active,
.nav-list a.active{
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* Keep hamburger icon as 4 stacked lines */
.nav-toggle{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
}
.nav-toggle span{
  display: block !important;
  height: 2px !important;
  width: 22px !important;
  border-radius: 2px !important;
}

/* =====================================================================
   FINAL HOTFIXES (Mobile Safari/Chrome menu tap + active tab styling)
   ===================================================================== */

@media (max-width: 900px){
  /* Make sure the overlay never blocks taps on the drawer */
  .nav-overlay{ z-index: 9998 !important; }
  #site-nav{ z-index: 9999 !important; }
  .nav-toggle{ z-index: 10000 !important; }

  /* Some mobile browsers get weird with touch-action on overlays */
  .nav-overlay,
  #site-nav{ touch-action: auto !important; }
}

/* Stronger active-state styling for desktop nav tabs */
.nav-links a{
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
}
.nav-links a:hover{ border-color: rgba(255,255,255,0.18); }
.nav-links a.active,
.nav-links a[aria-current="page"]{
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.05);
}

/* =====================================================================
   FINAL HOTFIXES (Mobile Safari/Chrome menu tap + active tab styling)
   ===================================================================== */

@media (max-width: 900px){
  /* Ensure the overlay never blocks taps on the drawer */
  .nav-overlay{ z-index: 9998 !important; touch-action: auto !important; }
  #site-nav{ z-index: 9999 !important; touch-action: auto !important; }
  /* Force tap/click through on menu items */
  #site-nav, #site-nav *{ pointer-events: auto !important; }
}

/* Hide the 'Menu' label everywhere (we show language toggle instead) */

/* Active tab / current page styling (desktop + mobile) */
.nav-links a.active,
.nav-links a[aria-current="page"]{
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
}



/* --- Desktop language switch + active nav pills --- */
.lang-switch-desktop{display:flex;gap:10px;align-items:center;margin-left:18px;}
.lang-pill{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:34px;padding:0 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#e9ecff;text-decoration:none;font-weight:600;font-size:13px;}
.lang-pill.active{border-color:rgba(122,98,255,.8);box-shadow:0 0 0 2px rgba(122,98,255,.15) inset;}
.nav-links a.active, .drawer-links a.active{
  border:1px solid rgba(122,98,255,.55);
  background:rgba(122,98,255,.10);
  border-radius:999px;
  padding:8px 14px;
}
.nav-links a{padding:8px 14px;border-radius:999px;}
/* Desktop: never show hamburger */
@media (min-width: 821px){
  .nav-toggle{display:none !important;}
  .nav-overlay{display:none !important;}
}
/* Mobile: hide desktop language switch to keep header clean (language switch stays inside drawer too) */
@media (max-width: 820px){
  .lang-switch-desktop{display:none !important;}
}

@media (min-width:1024px){
  .hamburger,.hamburger-menu,.mobile-menu{display:none!important}
}
.nav a, nav a{
  position:relative;
  padding:8px 14px;
  border-radius:14px;
  transition:box-shadow .25s ease,color .25s ease;
}
.nav a:hover,nav a:hover,.nav a.active,nav a.active{
  box-shadow:0 0 0 2px rgba(138,99,255,.9),0 0 18px rgba(138,99,255,.6);
}
/* --- Desktop language toggle placement --- */
.site-header { position: sticky; }
/* Push desktop nav slightly down so it doesn't overlap the language button */
@media (min-width: 901px){
  .site-header { padding-top: 22px; }
  .site-header .nav-links { margin-top: 6px; }
}

/* ===================== MOBILE NAV FIX OVERRIDES (DO NOT AFFECT DESKTOP) ===================== */
/* 1) Ensure the old body pseudo-overlay never blocks taps (we use .nav-overlay element instead) */
body.nav-open::before { display: none !important; pointer-events: none !important; }

/* 2) Desktop should NOT show the hamburger button */
@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
}

/* 3) Mobile hamburger: force 4 stacked lines and enough height */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex !important;
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 10px !important;
    border-radius: 12px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    z-index: 4005 !important;
  }
  .nav-toggle span {
    position: static !important;
    display: block !important;
    width: 26px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.92) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12) inset !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* Keep overlay below drawer so links are clickable */
  .nav-overlay { z-index: 3990 !important; }
  #site-nav { z-index: 4000 !important; pointer-events: auto !important; }

  /* Mobile language button INSIDE drawer */
  .nav-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 110, 255, 0.45);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-decoration: none;
    background: rgba(80, 60, 190, 0.18);
    box-shadow: 0 0 0 1px rgba(140, 110, 255, 0.12) inset, 0 10px 30px rgba(0,0,0,0.35);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }
  .nav-lang-btn:active { transform: translateY(1px); }
  .nav-lang-btn:hover {
    background: rgba(130, 95, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(170, 140, 255, 0.25) inset, 0 12px 34px rgba(120, 90, 255, 0.25);
  }
}


/* === Clickable mobile menu fix: overlay never blocks taps === */
@media (max-width: 900px){
  .nav-overlay{ pointer-events: none !important; }
}


/* === MOBILE hamburger visibility (no desktop changes) === */
@media (max-width: 900px){
  .nav-toggle{
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 10px;
  }
  .nav-toggle span{
    display:block;
    width: 22px;
    height: 3px;
    margin: 4px 0;
    background: #ffffff;
    opacity: 0.95;
    border-radius: 2px;
  }
}


/* === MOBILE polish: subtle tap + open/close animation + thicker lines (no desktop changes) === */
@media (max-width: 900px){
  :root{
    --hamburger-line: 3px;          /* thickness */
    --hamburger-width: 22px;
    --hamburger-gap: 4px;
    --tap-scale: 0.97;
  }

  .nav-toggle{
    transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }

  /* subtle hover (works on some mobile browsers with cursor) */
  .nav-toggle:hover{
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 0 14px rgba(160,120,255,0.25);
  }

  /* tap feedback */
  .nav-toggle:active{
    transform: scale(var(--tap-scale));
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.38);
  }

  .nav-toggle span{
    width: var(--hamburger-width);
    height: var(--hamburger-line);
    margin: var(--hamburger-gap) 0;
    transition: opacity .18s ease, transform .18s ease;
  }

  /* Drawer open/close animation (smooth) */
  #site-nav{
    transition: right .22s ease, transform .22s ease, opacity .18s ease;
    transform: translateX(12px);
    opacity: 0.98;
    will-change: transform, right;
  }
  body.nav-open #site-nav{
    transform: translateX(0);
    opacity: 1;
  }

  /* Background fade (overlay) animation (even though it's non-blocking) */
  .nav-overlay{
    transition: opacity .18s ease;
  }
}


/* === MOBILE NAV VISIBILITY GUARANTEE (v3) === */
@media (max-width: 900px){
  /* Keep drawer hidden by default */
  #site-nav{
    right: -360px !important;
    transform: none !important;
    opacity: 1 !important;
  }
  body.nav-open #site-nav{
    right: 0 !important;
  }
}
/* === END MOBILE NAV VISIBILITY GUARANTEE (v3) === */
