:root{
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-2: #eef6ff;

  --text: #0f1c2e;
  --muted: #4f647d;

  --line: rgba(15, 28, 46, .10);

  --blue: #146ef5;
  --blue-2: #0b57d0;

  --green: #16a34a;
  --green-2: #0f7a37;

  --shadow: 0 14px 40px rgba(15, 28, 46, .10);
  --radius: 16px;
  --radius-sm: 12px;

  --max: 1120px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(20,110,245,.12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(22,163,74,.10), transparent 60%),
    var(--bg);
  line-height:1.55;
}

a{ color: inherit; }
a:hover{ text-decoration: none; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:1rem;
  top:1rem;
  width:auto;
  height:auto;
  padding:.7rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:1rem;
  padding: .9rem 0;
  position: relative;

  /* Important: allows flex items to shrink correctly instead of forcing overflow */
  min-width: 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  text-decoration:none;

  /* Desktop keeps your original intent */
  min-width: 220px;

  /* Allows shrinking when space is tight (mobile fix) */
  min-width: 0;
}

.logo-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 30px rgba(20,110,245,.18);
  flex-shrink: 0;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width: 0;
}
.brand-name{ font-weight: 900; letter-spacing:.2px; }
.brand-sub{ color: var(--muted); font-size:.92rem; }

/* Nav */
.nav{
  display:flex;
  gap:.25rem;
  flex-wrap: wrap;
  align-items:center;
}

.nav a{
  text-decoration:none;
  color: var(--muted);
  padding: .55rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
}

.nav a:hover{
  background: rgba(20,110,245,.08);
  color: var(--text);
}

.nav a[aria-current="page"]{
  background: rgba(20,110,245,.12);
  color: var(--text);
}

.header-cta{
  display:flex;
  gap:.6rem;
  align-items:center;
  flex-shrink: 0;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(15,28,46,.06);
  font-weight: 850;
  text-decoration:none;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(20,110,245,.20);
}
.btn-whatsapp{
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(22,163,74,.18);
}
.btn-ghost{
  background: rgba(255,255,255,.70);
}
.btn-block{ width:100%; }

/* Hamburger */
.menu-toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.menu-toggle span{
  display:block;
  height:3px;
  background: var(--text);
  border-radius: 3px;
  margin:5px 0;
  transition: .25s ease;
}

/* Hero */
.hero{
  padding: 3.25rem 0 2rem;
}

.hero-grid{
  display:grid;
  gap: 1.25rem;
  grid-template-columns: 1.25fr .95fr;
  align-items:start;
}

.kicker{
  margin:0 0 .6rem;
  color: var(--blue-2);
  font-weight: 900;
  letter-spacing:.2px;
}

h1{
  margin:0 0 .85rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height:1.05;
}

.lead{
  margin:0 0 1.25rem;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 70ch;
}

.badges{
  list-style:none;
  padding:0;
  margin:0 0 1.2rem;
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}

.badges li{
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(20,110,245,.08);
  border: 1px solid rgba(20,110,245,.14);
  color: var(--text);
  font-weight: 800;
}
.badges li span{ color: var(--muted); font-weight: 700; }

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap:.6rem;
  margin-bottom: .85rem;
}
.micro{ margin:0; color: var(--muted); }

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3{ margin:0 0 .6rem; }
.card p{ margin:0; color: var(--muted); }

.hero-card .card-actions{
  display:grid;
  gap:.6rem;
  margin: 1rem 0 1rem;
}

.mini-list{
  margin:0 0 .9rem;
  padding:0;
  display:grid;
  gap:.7rem;
}

.mini-list > div{
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top:.7rem;
  border-top: 1px solid var(--line);
}

.mini-list dt{ color: var(--muted); }
.mini-list dd{ margin:0; font-weight: 900; color: var(--text); }

.tiny{ margin:0; color: var(--muted); font-size:.92rem; }

/* Sections */
.section{ padding: 2.4rem 0; }

.section.alt{
  background: rgba(255,255,255,.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2{
  margin:0 0 .5rem;
  font-size: 1.7rem;
}

.section-lead{
  margin:0 0 1.25rem;
  color: var(--muted);
}

.grid-3{
  display:grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tick-list{
  margin:0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.tick-list li{ margin:.55rem 0; }

.highlight{
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(22,163,74,.18);
  background: rgba(22,163,74,.08);
  color: var(--text);
  font-weight: 800;
}

.page-hero{
  padding: 2.2rem 0 1.1rem;
}

.breadcrumb{
  margin:0 0 .5rem;
  color: var(--muted);
  font-weight: 750;
}

.breadcrumb a{ color: var(--muted); text-decoration:none; }
.breadcrumb a:hover{ text-decoration: underline; }

.split{
  display:grid;
  gap: 1rem;
  grid-template-columns: 1.1fr .9fr;
  align-items:start;
}

/* Footer */
.site-footer{
  padding: 1.75rem 0 2.6rem;
}
.footer-inner{
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display:flex;
  flex-direction: column;
  gap:.35rem;
}
.footer-brand{ margin:0; font-weight: 900; }
.smallprint{ margin:0; color: var(--muted); font-size:.92rem; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
}

/* Mobile hamburger behaviour + header overflow fix */
@media (max-width: 760px){

  /* Always show hamburger on mobile */
  .menu-toggle{ display:block; }

  /* Ensure CTA group stays visible */
  .header-cta{
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Mobile: keep WhatsApp, hide Call (prevents overflow) */
  .header-cta .btn-ghost{
    display: none;
  }

  /* Allow brand to shrink + truncate neatly */
  .brand{
    min-width: 0;
    max-width: calc(100% - 130px);
  }

  .brand-text{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* Mobile nav dropdown */
  .nav{
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .75rem;
    display: none;
    flex-direction: column;
    min-width: 240px;
    max-width: calc(100vw - 2rem);
  }

  .nav a{
    padding: .65rem .85rem;
    border-radius: 12px;
  }

  .nav.open{
    display:flex;
  }
}
