/* ============================================================
   MALLIX.CL v2 — Mobile-First Global CSS
   ============================================================ */
:root {
  --blue: #3366ff;
  --blue-dark: #2C419A;
  --dark: #0f0e1a;
  --gold: #ffcc33;
  --gold-dark: #e6b800;
  --white: #fff;
  --light: #f4f6ff;
  --gray: #6b7280;
  --border: #e5e7eb;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(51,102,255,.10);
  --shadow-lg: 0 6px 32px rgba(51,102,255,.18);
  --font: 'Open Sans', sans-serif;
  --WA: "56997561494";
}

/* RESET - prevent all overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font);
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }
ul { list-style: none; }

/* CONTAINER - strict width control */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* TYPOGRAPHY */
h1 { font-size: clamp(1.8rem, 7vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; }
p { color: #374151; font-size: .97rem; }

/* SECTION SPACING */
.section { padding: 56px 0; }
.section-sm { padding: 40px 0; }
@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
}

/* LABELS */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.label-blue { background: rgba(51,102,255,.1); color: var(--blue); }
.label-gold { background: rgba(255,204,51,.18); color: #8a6800; }
.label-white { background: rgba(255,255,255,.15); color: #fff; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  width: 100%;
}
.btn:active { transform: scale(.97); }
@media (min-width: 480px) { .btn { width: auto; } }

.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #254ee6; border-color: #254ee6; }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: #1eba55; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
@media (min-width: 480px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; width: auto; }
  .btn-row .btn { width: auto; }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 32px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  transition: background .15s, color .15s;
}
.nav-desktop a:hover, .nav-desktop a.active { background: var(--light); color: var(--blue); }
.nav-desktop .nav-wa-btn {
  background: var(--wa);
  color: #fff;
  border-radius: 100px;
  padding: 7px 16px;
}
.nav-desktop .nav-wa-btn:hover { background: #1eba55; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta-mobile {
  display: flex;
}
@media (min-width: 900px) { .nav-cta-mobile { display: none; } }
.nav-cta-btn {
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}
@media (min-width: 900px) { .hamburger { display: none; } }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mm-wa {
  margin-top: 16px;
  background: var(--wa);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
  justify-content: center;
  border: none;
  font-size: 1.1rem;
}

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 998;
  width: 56px; height: 56px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: wa-pulse 2.5s ease-in-out infinite;
  cursor: pointer;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* CARDS */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* SLIDER (horizontal scroll, no page overflow) */
.slider-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  /* Key: don't let it affect page width */
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.slider-wrap::-webkit-scrollbar { display: none; }
.slider-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 16px;
}
.slider-card {
  flex-shrink: 0;
  width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
@media (min-width: 768px) {
  .slider-wrap { margin: 0; overflow: visible; }
  .slider-track { width: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
  .slider-card { width: auto; }
}

/* SERVICE CARD */
.svc-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.svc-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.svc-card-body {
  background: #fff;
  padding: 14px 16px;
}
.svc-card-body h4 { font-size: .95rem; margin-bottom: 4px; }
.svc-card-body p { font-size: .82rem; color: var(--gray); }
@media (min-width: 768px) {
  .svc-card { width: auto; }
  .svc-card img { height: 200px; }
}

/* BENEFIT ICON */
.bicon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* STEPS */
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--dark);
  background: #fff;
  transition: border-color .18s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51,102,255,.1);
}
.form-group textarea { min-height: 90px; resize: vertical; }

/* GRID (desktop only, mobile stack) */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 16px; }
.grid-4 { display: grid; gap: 14px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  color: var(--dark);
}
.faq-icon { font-size: 1.3rem; color: var(--blue); transition: transform .25s; flex-shrink: 0; margin-top: 1px; }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s;
  font-size: .9rem;
  color: var(--gray);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-body { max-height: 300px; padding-bottom: 16px; }

/* SUPERMALLIX on dark bg */
.sm-dark-wrap {
  /* Dark bg behind the character so black blends in */
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.sm-dark-wrap img {
  /* On dark sections the black bg of the PNG is invisible */
  max-height: 340px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(51,102,255,.3));
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
}
.footer-logo { height: 28px; width: auto; margin-bottom: 14px; }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-links h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; margin-top: 24px; }
.footer-links a { display: block; color: rgba(255,255,255,.6); font-size: .88rem; margin-bottom: 8px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  margin-top: 32px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* CALC */
.calc-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(51,102,255,.12);
  padding: 24px 16px;
}
@media (min-width: 480px) { .calc-box { padding: 32px 28px; } }

.calc-result {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.price-row:last-child { border: none; }
.price-label { font-size: .88rem; opacity: .85; }
.price-value { font-weight: 800; font-size: 1rem; }
.price-big { font-size: 1.4rem; color: var(--gold); }

/* TYPE PILLS */
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 9px 16px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* MALLA CARDS (horizontal scroll on mobile) */
.malla-slider { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.malla-slider::-webkit-scrollbar { display: none; }
.malla-track { display: flex; gap: 12px; width: max-content; }
.malla-card {
  flex-shrink: 0;
  width: 175px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: #fff;
}
.malla-card.on { border-color: var(--blue); background: rgba(51,102,255,.04); }
.malla-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.malla-card h4 { font-size: .88rem; margin-bottom: 4px; }
.malla-card p { font-size: .77rem; color: var(--gray); }
.malla-card .ptag { display: inline-block; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; margin-top: 8px; }
@media (min-width: 600px) {
  .malla-slider { overflow: visible; }
  .malla-track { width: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .malla-card { width: auto; }
}

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a6e 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* UTILS */
.tc { text-align: center; }
.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.mb32 { margin-bottom: 32px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.text-blue { color: var(--blue); }
.text-gold { color: var(--gold); }
.text-white { color: #fff; }
.divider { border: none; border-top: 2px solid var(--border); margin: 24px 0; }

/* HERO specific */
.hero-section {
  background: linear-gradient(160deg, #060c2e 0%, #0e1e6e 55%, #1a2a8a 100%);
  min-height: 100svh;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
/* Glow blobs */
.hero-section::before {
  content: '';
  position: absolute;
  top: 10%; left: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,102,255,.3) 0%, transparent 70%);
  pointer-events: none;
}

/* SuperMallix hero image container - dark bg so black is invisible */
.hero-char {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0 0 0;
}
.hero-char img {
  /* Dark hero bg makes black PNG bg invisible */
  max-height: 42svh;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(51,102,255,.35));
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-content {
  color: #fff;
  padding: 24px 20px 40px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 { color: #fff; margin-bottom: 14px; }
.hero-content p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 420px; margin-bottom: 28px; }
.hero-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}

/* STATS (horizontal scroll on mobile) */
.stats-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stats-wrap::-webkit-scrollbar { display: none; }
.stats-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 16px 8px;
}
.stat-box {
  flex-shrink: 0;
  width: 150px;
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }
@media (min-width: 640px) {
  .stats-wrap { overflow: visible; }
  .stats-track { width: auto; display: grid; grid-template-columns: repeat(4,1fr); padding: 0; }
  .stat-box { width: auto; }
}
