/* =========================================================================
   CWB Solutions LLC — Design System & Landing Styles
   Brand: Navy (#12315F) + Technical Blue (#159BE0)
   Vanilla CSS. No build step required.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0A1B38;
  --navy-800: #0E2748;
  --navy-700: #12315F;   /* brand navy (wordmark) */
  --navy-600: #1B4179;
  --blue-600: #0E7BC0;
  --blue-500: #159BE0;   /* brand accent (node icon) */
  --blue-400: #35A8ED;
  --blue-300: #7FC7F2;

  /* Neutrals */
  --white: #ffffff;
  --gray-50:  #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --bg:            var(--white);
  --bg-alt:        var(--gray-50);
  --bg-dark:       var(--navy-900);
  --surface:       #ffffff;   /* cards, form, chips */
  --surface-2:     var(--gray-50);
  --text:          var(--gray-800);
  --text-soft:     var(--gray-500);
  --text-on-dark:  #dce6f2;
  --heading:       var(--navy-700);
  --accent:        var(--blue-500);
  --accent-hover:  var(--blue-600);
  --border:        var(--gray-200);
  --header-solid:  rgba(255,255,255,.96);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
  --fs-h1:      clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-h2:      clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-lead:    clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.78rem;

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem;  --sp-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(10,27,56,.06), 0 1px 3px rgba(10,27,56,.08);
  --shadow:    0 4px 12px rgba(10,27,56,.08), 0 2px 4px rgba(10,27,56,.05);
  --shadow-md: 0 12px 28px rgba(10,27,56,.12), 0 4px 8px rgba(10,27,56,.06);
  --shadow-lg: 0 24px 60px rgba(10,27,56,.18);
  --ring: 0 0 0 3px rgba(21,155,224,.35);

  --header-h: 76px;
  --ease: cubic-bezier(.4,0,.2,1);
  --transition: 220ms var(--ease);
  color-scheme: light;
}

/* Dark theme — soft navy dark (not pure black) */
[data-theme="dark"] {
  --bg:        #16233a;
  --bg-alt:    #111d33;
  --bg-dark:   #0c1728;
  --surface:   #1f3050;
  --surface-2: #24365a;
  --text:      #d7e2f2;
  --text-soft: #9db0cc;
  --heading:   #ffffff;
  --border:    rgba(255,255,255,.12);
  --header-solid: rgba(18,33,58,.92);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow:    0 4px 12px rgba(0,0,0,.4);
  --shadow-md: 0 12px 28px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: .9rem; font-size: var(--fs-lead); color: var(--text-soft); }
.section--dark .section-head p { color: var(--text-on-dark); }

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; transition: var(--transition); white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(21,155,224,.35); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21,155,224,.45); }
.btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy-700); border-color: #fff; }
.btn--ghost { border-color: var(--border); color: var(--navy-700); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); transition: gap var(--transition); }
.link-arrow:hover { gap: .7rem; }

/* -------------------------------------------------------------------------
   5. Header / Nav
   ------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
/* Wordmark image in header — white over hero, navy on light scrolled bar */
.brand__logo { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter var(--transition); }
.header.is-scrolled .brand__logo { filter: none; }
/* Dark mode: whole logo lockup rendered white for guaranteed contrast (both states) */
[data-theme="dark"] .brand__mark { filter: brightness(0) invert(1); }
[data-theme="dark"] .brand__logo { filter: brightness(0) invert(1) !important; }
@media (max-width: 480px) { .brand__mark { width: 36px; height: 36px; } .brand__logo { height: 32px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; color: #fff; transition: color var(--transition); }
.brand__sub { font-size: .6rem; font-weight: 700; letter-spacing: .34em; color: var(--blue-300); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a { font-weight: 600; font-size: .95rem; color: #fff; opacity: .9; position: relative; padding-block: .4rem; transition: opacity var(--transition); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__actions .btn { padding: .5rem 1.15rem; font-size: .88rem; line-height: 1.2; }
.nav__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; font-size: .95rem; }
.nav__phone svg { width: 18px; height: 18px; color: var(--blue-300); }

.lang { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px; }
.lang a { font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; color: #fff; opacity: .75; }
.lang a.is-active { background: var(--accent); opacity: 1; }

/* Scrolled state (solid) */
.header.is-scrolled { background: var(--header-solid); backdrop-filter: blur(10px); box-shadow: var(--shadow); height: 66px; }
.header.is-scrolled .brand__name { color: var(--navy-700); }
.header.is-scrolled .brand__sub { color: var(--accent); }
.header.is-scrolled .nav__links a,
.header.is-scrolled .nav__phone { color: var(--navy-700); }
.header.is-scrolled .lang { border-color: var(--border); }
.header.is-scrolled .lang a { color: var(--navy-700); }
.header.is-scrolled .lang a.is-active { color: #fff; }
.header.is-scrolled .btn--outline { border-color: var(--accent); color: var(--accent); }
.header.is-scrolled .btn--outline:hover { background: var(--accent); color: #fff; }
.header.is-scrolled .nav__toggle span { background: var(--navy-700); }

/* Mobile toggle */
.nav__toggle { display: none; width: 46px; height: 46px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 12px; background: rgba(21,155,224,.18); border: 1px solid rgba(127,199,242,.45); backdrop-filter: blur(4px); }
.nav__toggle span { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: var(--transition); }
.header.is-scrolled .nav__toggle { background: rgba(21,155,224,.12); border-color: var(--border); }
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. Hero + Carousel
   ------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,20,40,.40) 0%, rgba(8,20,40,.28) 45%, rgba(8,20,40,.60) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: calc(var(--header-h) + 2rem) 4rem; }
.hero__content { max-width: 860px; margin-inline: auto; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem;
  border: 1px solid rgba(127,199,242,.4); border-radius: 999px; background: rgba(21,155,224,.12);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 1.6rem; backdrop-filter: blur(4px);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(21,155,224,.25); }
.hero h1 { color: #fff; font-size: var(--fs-display); line-height: 1.05; margin-bottom: 1.3rem; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero h1 .accent { color: var(--blue-400); }
.hero__lead { font-size: var(--fs-lead); color: #eef4fc; max-width: 640px; margin: 0 auto 2.2rem; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hero__stat .num, .hero__stat .lbl { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__content .hero__cta { justify-content: center; }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero__stat .num { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1; }
.hero__stat .lbl { font-size: var(--fs-sm); color: var(--blue-300); margin-top: .35rem; }

.hero__dots { position: absolute; z-index: 3; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); transition: var(--transition); }
.hero__dots button.is-active { background: var(--accent); width: 28px; border-radius: 999px; }

/* -------------------------------------------------------------------------
   6b. Services ribbon (marquee strip below the hero)
   ------------------------------------------------------------------------- */
.svc-ribbon {
  position: relative;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700) 50%, var(--navy-800));
  border-block: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 8px 24px -18px rgba(0,0,0,.6), inset 0 -8px 24px -18px rgba(0,0,0,.6);
  overflow: hidden;
  --ribbon-speed: 40s;
}
/* soft fade edges so items enter/exit gracefully */
.svc-ribbon::before, .svc-ribbon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 130px);
  z-index: 2; pointer-events: none;
}
.svc-ribbon::before { left: 0; background: linear-gradient(90deg, var(--navy-800), transparent); }
.svc-ribbon::after  { right: 0; background: linear-gradient(270deg, var(--navy-800), transparent); }
.svc-ribbon__track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: svcRibbon var(--ribbon-speed) linear infinite; will-change: transform;
}
.svc-ribbon:hover .svc-ribbon__track,
.svc-ribbon:focus-within .svc-ribbon__track { animation-play-state: paused; }
.svc-ribbon__group { display: inline-flex; align-items: center; }
.svc-ribbon__item {
  display: inline-flex; align-items: center; gap: .65rem;
  padding-block: 1rem; padding-inline: clamp(1.15rem, 2.6vw, 2.2rem);
  font-weight: 700; font-size: clamp(.9rem, .82rem + .3vw, 1.05rem);
  letter-spacing: .01em; color: #eaf3fb;
}
.svc-ribbon__item::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400); box-shadow: 0 0 0 4px rgba(21,155,224,.18);
}
@keyframes svcRibbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Reduced motion: no scroll — show services as a static centered wrap */
@media (prefers-reduced-motion: reduce) {
  .svc-ribbon__track { animation: none; flex-wrap: wrap; justify-content: center; white-space: normal; width: 100%; }
  .svc-ribbon__group[aria-hidden="true"] { display: none; }
  .svc-ribbon__group { flex-wrap: wrap; justify-content: center; }
}

/* -------------------------------------------------------------------------
   7. Services
   ------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
/* Media card: referential background image; text overlays and fades on hover to reveal image */
.service-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; box-shadow: var(--shadow-sm); isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .6s var(--ease); }
.service-card:hover .service-card__bg { transform: scale(1.09); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,27,56,.30) 0%, rgba(10,27,56,.72) 55%, rgba(10,27,56,.94) 100%);
  transition: opacity .45s var(--ease); }
.service-card:hover::after { opacity: .12; }
.service-card__body { position: relative; z-index: 2; padding: 1.9rem 1.7rem;
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.service-card:hover .service-card__body { opacity: 0; transform: translateY(12px); }
.service-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(21,155,224,.28); border: 1px solid rgba(127,199,242,.4); color: #fff; margin-bottom: 1.1rem; backdrop-filter: blur(3px); }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; color: #fff; }
.service-card p { color: #dbe6f5; font-size: .93rem; }
/* Touch devices have no hover — keep text visible */
@media (hover: none) {
  .service-card:hover .service-card__body { opacity: 1; transform: none; }
  .service-card:hover::after { opacity: 1; }
}

/* -------------------------------------------------------------------------
   8. Projects
   ------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter-btn { padding: .55rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text-soft); border: 1px solid var(--border); background: var(--surface); transition: var(--transition); }
.filter-btn:hover { color: var(--accent); border-color: var(--accent); }
.filter-btn.is-active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; box-shadow: var(--shadow-sm); background: var(--navy-800);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover img { transform: scale(1.08); }
.project-card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; color: #fff;
  background: linear-gradient(180deg, rgba(10,27,56,0) 30%, rgba(10,27,56,.55) 65%, rgba(10,27,56,.92) 100%);
}
.project-card__cat { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(21,155,224,.9); padding: .3rem .7rem; border-radius: 999px; margin-bottom: auto; }
.project-card__title { font-size: 1.15rem; font-weight: 800; color: #fff; }
.project-card__loc { font-size: var(--fs-sm); color: var(--blue-300); display: flex; align-items: center; gap: .35rem; margin-top: .25rem; }
.project-card__loc svg { width: 14px; height: 14px; }
.project-card .zoom { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: var(--transition); }
.project-card:hover .zoom { opacity: 1; transform: scale(1); }
.project-card .zoom svg { width: 18px; height: 18px; color: #fff; }
.project-card.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,15,32,.94); display: none; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; transition: opacity var(--transition); }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; color: #fff; transition: var(--transition); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 1.5rem; }
.lightbox__nav.next { right: 1.5rem; }

/* -------------------------------------------------------------------------
   9. About / Why
   ------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.about__media { position: relative; display: flex; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.about__badge { position: absolute; bottom: -1.5rem; right: -1rem; background: var(--navy-700); color: #fff; padding: 1.2rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center; }
.about__badge .num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--blue-400); }
.about__badge .lbl { font-size: var(--fs-xs); letter-spacing: .05em; margin-top: .3rem; color: var(--text-on-dark); }
.about h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }
.about p { color: var(--text-soft); margin-bottom: 1.1rem; }
.feature-list { display: grid; gap: 1rem; margin: 1.8rem 0; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(21,155,224,.12); color: var(--accent); display: grid; place-items: center; }
.feature-list .ic svg { width: 16px; height: 16px; }
.feature-list b { color: var(--navy-700); display: block; }
.feature-list span.txt { color: var(--text-soft); font-size: .93rem; }

/* -------------------------------------------------------------------------
   10. Industries strip
   ------------------------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.industry { background: var(--surface); padding: 2rem 1rem; text-align: center; transition: var(--transition); }
.industry:hover { background: var(--surface-2); }
.industry svg { width: 36px; height: 36px; color: var(--accent); margin: 0 auto .8rem; }
.industry span { font-weight: 700; color: var(--heading); font-size: .95rem; }
@media (min-width: 1024px) { .industries { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------
   11. Testimonials
   ------------------------------------------------------------------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem; }
.testimonial .stars { color: #FFC24B; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial p { color: #e6eefa; font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial__who { display: flex; align-items: center; gap: .9rem; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--navy-600)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testimonial__who b { color: #fff; display: block; font-size: .95rem; }
.testimonial__who span { color: var(--blue-300); font-size: var(--fs-sm); }

/* -------------------------------------------------------------------------
   12. CTA banner
   ------------------------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4.5rem); background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); color: #fff; text-align: center; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(21,155,224,.35), transparent 55%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 1rem; }
.cta-banner p { color: var(--text-on-dark); max-width: 560px; margin: 0 auto 2rem; font-size: var(--fs-lead); }
.cta-banner .hero__cta { justify-content: center; }

/* -------------------------------------------------------------------------
   13. Contact
   ------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.contact__info > p { color: var(--text-soft); margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(21,155,224,.15), rgba(21,155,224,.05)); color: var(--accent); display: grid; place-items: center; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--navy-700); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-item a, .contact-item span { color: var(--text); font-size: 1.05rem; font-weight: 600; }
.contact-item a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-700); margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: var(--fs-xs); color: var(--text-soft); margin-top: .8rem; text-align: center; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f7ee; color: #157347; }
.form-status.err { background: #fdecec; color: #c0392b; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* -------------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------------- */
.footer { background: linear-gradient(rgba(11,20,38,.86), rgba(11,20,38,.93)), url(/assets/img/placa_electronica.jpg) center/cover fixed no-repeat; color: var(--text-on-dark); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer .brand__name { color: #fff; }
.footer p { color: #a9bcd6; font-size: .92rem; margin-top: 1rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.2rem; letter-spacing: .03em; }
.footer__links li { margin-bottom: .7rem; }
.footer__links a { color: #a9bcd6; font-size: .92rem; transition: var(--transition); }
.footer__links a:hover { color: var(--blue-400); }
.footer__social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: var(--transition); }
.footer__social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; font-size: var(--fs-sm); color: #8ca3c4; }
.footer__bottom a { color: #a9bcd6; }
.footer__bottom a:hover { color: var(--blue-400); }
.footer__credit a { color: var(--blue-300); font-weight: 600; }

/* -------------------------------------------------------------------------
   15. Reveal animation
   ------------------------------------------------------------------------- */
/* Hidden state applies ONLY when JS is available (progressive enhancement).
   Without JS, .reveal content stays fully visible. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* -------------------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .about__badge { right: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(10,27,56,.99); backdrop-filter: blur(12px); padding: 1.5rem clamp(1.1rem,4vw,2rem) 2rem;
    gap: 0; transform: translateY(-120%); transition: transform var(--transition); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { color: #fff !important; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); opacity: 1; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__phone { display: inline-flex !important; color: #fff !important; padding: 1rem 0; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1.2rem; }
  .nav__actions .btn { width: 100%; }
  .lang { align-self: flex-start; }
  .header.is-scrolled .nav__links a, .header.is-scrolled .nav__phone { color: #fff !important; }
  .header.is-scrolled .lang a { color: #fff; }
}
@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__grid > div { display: flex; flex-direction: column; align-items: center; }
  .footer .brand { justify-content: center; }
  .footer p { margin-inline: auto; }
  .footer__social { justify-content: center; }
  .footer__links a { justify-content: center; }
  .hero { min-height: 92svh; }
  .hero__stats { gap: 1.5rem 2rem; }
}

/* Large screens: widen container gracefully */
@media (min-width: 1600px) {
  .container { max-width: var(--container-wide); }
}

/* =========================================================================
   17. Theme toggle
   ========================================================================= */
.theme-toggle { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); color: #fff; transition: var(--transition); flex-shrink: 0; }
.theme-toggle:hover { background: rgba(255,255,255,.12); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.header.is-scrolled .theme-toggle { border-color: var(--border); color: var(--heading); }

/* =========================================================================
   18. Geolocation section
   ========================================================================= */
.geo-band { position: relative; background-size: cover; background-position: center; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.geo-band__overlay { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(8,20,40,.94) 0%, rgba(8,20,40,.80) 42%, rgba(8,20,40,.32) 72%, rgba(8,20,40,.12) 100%); }
.geo-band .container { position: relative; z-index: 1; }
.geo-panel { max-width: 540px; background: rgba(10,22,42,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(127,199,242,.22); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3.5vw, 3rem); color: #fff; box-shadow: var(--shadow-lg); }
.geo-panel .eyebrow { color: var(--blue-300); }
.geo-panel h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 1.1rem; }
.geo-panel p { color: #d7e3f5; margin-bottom: 1.4rem; }
.geo__list { display: grid; gap: .9rem; margin-bottom: 1.9rem; }
.geo__list li { display: flex; gap: .8rem; align-items: flex-start; color: #eaf1fb; }
.geo__list .ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(21,155,224,.25); color: #fff; display: grid; place-items: center; }
.geo__list .ic svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
  .geo-band__overlay { background: linear-gradient(180deg, rgba(8,20,40,.72), rgba(8,20,40,.9)); }
  .geo-panel { max-width: none; background: rgba(10,22,42,.55); }
}

/* =========================================================================
   19. License credential + modal
   ========================================================================= */
.license-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0;
  padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.license-card__seal { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: rgba(21,155,224,.14); color: var(--accent); display: grid; place-items: center; }
.license-card__seal svg { width: 24px; height: 24px; }
.license-card__txt { flex: 1; min-width: 180px; }
.license-card__txt b { display: block; color: var(--heading); font-size: .95rem; }
.license-card__txt span { font-size: var(--fs-sm); color: var(--text-soft); }
.license-card .btn { white-space: nowrap; }

.modal { position: fixed; inset: 0; z-index: 210; background: rgba(6,15,32,.94); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal.is-open { display: flex; }
.modal img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background:#fff; }
.modal__close { position: absolute; top: 1.5rem; right: 1.5rem; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: var(--transition); }
.modal__close:hover { background: var(--accent); }
.modal__close svg { width: 24px; height: 24px; }

/* =========================================================================
   20. Testimonial reference (location + phone)
   ========================================================================= */
.testimonial__ref { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.testimonial__ref a, .testimonial__ref span { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); color: var(--blue-300); }
.testimonial__ref a:hover { color: var(--blue-400); }
.testimonial__ref svg { width: 14px; height: 14px; }

/* =========================================================================
   21. Dark-theme component overrides
   ========================================================================= */
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .header.is-scrolled .brand__name,
[data-theme="dark"] .header.is-scrolled .nav__links a,
[data-theme="dark"] .header.is-scrolled .lang a { color: var(--heading); }
[data-theme="dark"] .header.is-scrolled .lang { border-color: var(--border); }
[data-theme="dark"] .header.is-scrolled .nav__toggle span { background: #fff; }
[data-theme="dark"] .header.is-scrolled .theme-toggle { color: #fff; }
[data-theme="dark"] .service-card__icon { color: #fff; }
[data-theme="dark"] .cta-banner { background: linear-gradient(120deg, #17263f, #0c1728); }
[data-theme="dark"] .testimonial { background: rgba(255,255,255,.05); }
[data-theme="dark"] .about__badge { background: var(--surface); }
[data-theme="dark"] .field input::placeholder, [data-theme="dark"] .field textarea::placeholder { color: #7f92ad; }
@media (max-width: 1024px) {
  [data-theme="dark"] .nav { background: rgba(12,23,40,.99); }
}

/* =========================================================================
   22. Responsive centering (mobile/tablet)
   ========================================================================= */
@media (max-width: 900px) {
  .section-head { text-align: center; margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }
  .filters { justify-content: center; }
  .about { text-align: center; }
  .about__text { text-align: center; }
  .about__media { margin-inline: auto; max-width: 620px; }
  .about__badge { right: 50%; transform: translateX(50%); }
  /* keep bullet lists readable: centered block, left-aligned rows */
  .feature-list { display: inline-block; text-align: left; margin-inline: auto; }
  .license-card { justify-content: center; text-align: center; }
  .license-card__txt { flex: 0 1 auto; }
}

/* =========================================================================
   23. Testimonials carousel (responsive; activates when items exceed per-view)
   ========================================================================= */
.tcar__viewport { overflow: hidden; }
.tcar__track { display: flex; gap: 1.5rem; transition: transform .5s var(--ease); will-change: transform; }
.tcar .testimonial { flex: 0 0 calc((100% - 3rem) / 3); }      /* 3 per view */
@media (max-width: 899px) { .tcar .testimonial { flex-basis: calc((100% - 1.5rem) / 2); } }  /* 2 per view */
@media (max-width: 599px) { .tcar .testimonial { flex-basis: 100%; } }                        /* 1 per view */
.tcar__nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.2rem; }
.tcar__nav[hidden] { display: none; }
.tcar__arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); transition: var(--transition); }
.tcar__arrow:hover { background: var(--accent); border-color: var(--accent); }
.tcar__arrow svg { width: 22px; height: 22px; }
.tcar__dots { display: flex; gap: .5rem; }
.tcar__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); transition: var(--transition); }
.tcar__dots button.is-active { background: var(--accent); width: 26px; border-radius: 999px; }

/* -------------------------------------------------------------------------
   WhatsApp floating button
   ------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 58px; height: 58px; border-radius: 50%; z-index: 90;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37,211,102,.6); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* -------------------------------------------------------------------------
   Recommend section (share CWB via WhatsApp)
   ------------------------------------------------------------------------- */
.recommend { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; text-align: center; }
.recommend .container { max-width: 720px; }
.recommend h2 { color: #fff; }
.recommend p.lead { color: rgba(255,255,255,.82); margin: .9rem auto 2rem; font-size: var(--fs-lead); }
.recommend__form { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.recommend__form input { flex: 1 1 280px; max-width: 360px; padding: .95rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; }
.recommend__form input::placeholder { color: rgba(255,255,255,.55); }
.recommend__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,155,224,.35); }
.recommend__btn { background: #25D366; color: #fff; border: none; }
.recommend__btn:hover { background: #1fb457; }
.recommend__hint { margin-top: 1rem; font-size: var(--fs-xs); color: rgba(255,255,255,.6); }
.recommend__eyebrow { color: var(--accent); }

/* -------------------------------------------------------------------------
   Decorative section transitions (soften the hard "axe-cut" between blocks)
   A subtle glowing celeste hairline frames each light/dark boundary.
   ------------------------------------------------------------------------- */
.hero, .geo-band, .section--dark, .footer, .recommend { position: relative; }
.hero::after,
.geo-band::before, .geo-band::after,
.section--dark::before, .section--dark::after,
.recommend::before, .recommend::after,
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(21,155,224,.55) 20%, rgba(53,168,237,.75) 50%, rgba(21,155,224,.55) 80%, transparent);
  box-shadow: 0 0 14px rgba(21,155,224,.45);
}
.geo-band::before, .section--dark::before, .recommend::before, .footer::before { top: 0; }
.hero::after, .geo-band::after, .section--dark::after, .recommend::after { bottom: 0; }
/* Gentle inner feather so the dark edge fades instead of cutting flat */
.geo-band .geo-band__overlay { box-shadow: inset 0 60px 60px -60px rgba(0,0,0,.35), inset 0 -60px 60px -60px rgba(0,0,0,.35); }
