:root {
  --ink: #10234E;
  --ink-2: #17336F;
  --steel: #51616d;
  --muted: #798893;
  --line: #dce2e6;
  --paper: #f5f7f8;
  --white: #ffffff;
  --gold: #EDBA18;
  --gold-2: #FBC619;
  --max: 1240px;
  --shadow: 0 22px 60px rgba(0,0,0,.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,17,23,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -.05em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: .16em;
}

.brand-copy small {
  margin-top: 5px;
  color: #aeb9c1;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  position: relative;
  color: #dce3e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition:
    transform .2s ease,
    background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-2);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
}

.btn-ghost {
  color: white;
  background: transparent;
  border-color: rgba(255,255,255,.5);
}

.btn-light {
  background: white;
  color: var(--ink);
  border-color: white;
}

.eyebrow,
.hero-kicker {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 11px;
  font-weight: 900;
}

.hero {
  position: relative;
  height: min(790px, calc(100vh - 78px));
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5,10,14,.92) 0%,
      rgba(5,10,14,.72) 43%,
      rgba(5,10,14,.22) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero h1 {
  max-width: 850px;
  margin: 18px 0;
  color: white;
  font-size: clamp(46px, 6.4vw, 90px);
  line-height: .96;
  letter-spacing: -.05em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 32px;
  color: #dce4e8;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--gold);
}

.trust-strip {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.trust-strip > div {
  min-height: 122px;
  padding: 28px 34px;
  border-right: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trust-strip strong {
  color: var(--gold);
  font-size: 24px;
}

.trust-strip span {
  color: #b9c4cb;
  font-size: 13px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 105px 0;
}

.section.soft {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - var(--max))/2));
  padding-right: max(20px, calc((100% - var(--max))/2));
  background: var(--paper);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.feature h2,
.info-card h2,
.page-title h1,
.page-hero h1,
.service-detail h2,
.contact-card h2 {
  margin: 12px 0 16px;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.section-heading h2 {
  font-size: clamp(36px, 4.7vw, 62px);
}

.section-heading p,
.lead {
  color: var(--steel);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 330px;
  padding: 35px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition:
    background .2s ease,
    color .2s ease;
}

.service-card:hover {
  background: var(--ink);
  color: white;
}

.service-number,
.service-index {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .12em;
}

.service-card h3 {
  margin: 40px 0 15px;
  font-size: 24px;
  line-height: 1.1;
}

.service-card p {
  color: var(--steel);
}

.service-card:hover p {
  color: #bcc7cd;
}

.service-card a {
  position: absolute;
  left: 35px;
  bottom: 32px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 650px;
}

.feature-dark {
  background: var(--ink);
  color: white;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
}

.feature-copy {
  padding: clamp(55px,7vw,110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h2 {
  font-size: clamp(40px,5vw,65px);
}

.feature-copy p {
  color: #bcc7cd;
  font-size: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}

.pill-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  color: #d9e0e4;
  font-size: 12px;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.showcase-card {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: var(--ink);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  transition:
    transform .35s ease,
    opacity .35s ease;
}

.showcase-card:hover img {
  transform: scale(1.035);
  opacity: .9;
}

.showcase-card span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: white;
  font-size: 19px;
  font-weight: 800;
}

.cta-band {
  padding: 85px max(20px, calc((100% - var(--max))/2));
  background: var(--gold);
  color: var(--ink);
}

.cta-band .eyebrow {
  color: rgba(11,17,23,.68);
}

.cta-band h2 {
  max-width: 820px;
  margin: 12px 0;
  font-size: clamp(39px,5vw,68px);
  line-height: 1;
  letter-spacing: -.05em;
}

.cta-band p {
  max-width: 700px;
  font-size: 18px;
}

.page-title {
  padding:
    120px
    max(20px, calc((100% - var(--max))/2))
    90px;
  background: var(--ink);
  color: white;
}

.page-title h1 {
  max-width: 980px;
  font-size: clamp(48px,7vw,86px);
}

.page-title p {
  max-width: 760px;
  color: #bdc8ce;
  font-size: 20px;
}

.page-hero {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.page-hero > div {
  padding:
    110px
    max(40px, calc((100vw - var(--max))/2));
  padding-right: 70px;
}

.page-hero h1 {
  font-size: clamp(46px,6vw,76px);
}

.page-hero p {
  color: #bdc8ce;
  font-size: 18px;
}

.page-hero img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.metric-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}

.metric-panel > div {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.metric-panel strong {
  color: var(--gold);
  font-size: 56px;
  line-height: 1;
}

.metric-panel span {
  margin-top: 10px;
  color: var(--steel);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.info-card {
  padding: 48px;
  background: white;
  border: 1px solid var(--line);
}

.info-card h2 {
  font-size: 38px;
}

.check-list {
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 9px;
  height: 9px;
  background: var(--gold);
}

.service-details {
  background: var(--white);
}

.service-detail {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.service-detail.reverse .service-photo {
  order: 2;
}

.service-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-detail h2 {
  font-size: clamp(36px,4vw,54px);
}

.service-detail-copy > p {
  color: var(--steel);
  font-size: 17px;
}

.experience-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 85px;
  align-items: center;
}

.experience-visual img {
  width: 100%;
  min-height: 650px;
  object-fit: cover;
}

.number-list {
  list-style: none;
  margin: 35px 0 0;
  padding: 0;
}

.number-list li {
  padding: 18px 0;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}

.number-list span {
  color: var(--gold);
  font-size: 12px;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - var(--max))/2));
  padding-right: max(20px, calc((100% - var(--max))/2));
  background: var(--ink);
  color: white;
}

.section-heading.light h2 {
  color: white;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,.13);
}

.stage-grid div {
  padding: 55px;
  border-right: 1px solid rgba(255,255,255,.13);
}

.stage-grid strong {
  font-size: 27px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 22px;
}

.contact-card {
  padding: 45px;
  background: var(--paper);
  min-height: 330px;
}

.contact-card.featured {
  background: var(--ink);
  color: white;
}

.contact-card h2 {
  font-size: 35px;
}

.contact-card.featured p {
  color: #bdc8ce;
}

.contact-link {
  display: inline-block;
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
}

.contact-photo {
  position: relative;
  min-height: 560px;
  background: var(--ink);
}

.contact-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  opacity: .52;
}

.contact-photo > div {
  position: absolute;
  inset: 0;
  padding: max(40px, calc((100vw - var(--max))/2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.contact-photo h2 {
  max-width: 850px;
  margin: 10px 0;
  font-size: clamp(44px,6vw,76px);
  line-height: .98;
}

.footer {
  padding:
    75px
    max(20px, calc((100% - var(--max))/2))
    25px;
  background: #060a0d;
  color: #aeb9c1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.footer h3 {
  margin-top: 0;
  color: white;
  font-size: 14px;
}

.footer a,
.footer span {
  display: block;
  margin: 8px 0;
  color: #aeb9c1;
  text-decoration: none;
}

.footer-brand {
  color: white;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .12em;
}

.footer-grid p {
  max-width: 390px;
}

.footer-bottom {
  margin-top: 55px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 25px;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 9px 0;
  }

  .trust-strip,
  .service-grid,
  .showcase-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .feature,
  .page-hero,
  .split,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .page-hero img {
    min-height: 450px;
  }

  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .service-detail.reverse .service-photo {
    order: initial;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    width: min(100% - 24px, var(--max));
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .trust-strip,
  .service-grid,
  .showcase-grid,
  .two-columns,
  .stage-grid,
  .footer-grid,
  .metric-panel {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    min-height: 90px;
  }

  .showcase-card {
    height: 310px;
  }

  .section {
    padding: 75px 0;
  }

  .feature-image img {
    min-height: 410px;
  }

  .page-title {
    padding-top: 85px;
  }

  .page-title h1 {
    font-size: 48px;
  }

  .page-hero > div {
    padding: 75px 20px;
  }

  .info-card,
  .contact-card {
    padding: 30px;
  }

  .footer-bottom {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* NET3MAX attribution — V1.2 */
.footer .net3max-credit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  white-space: nowrap;
}

.footer .net3max-credit a {
  display: inline;
  margin: 0;
}

/* NET3MAX JJMPERU V1.3
   Mobile visual separation for the four trust indicators.
   Desktop layout intentionally unchanged. */
@media (max-width: 620px) {
  .trust-strip > div + div {
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .trust-strip > div {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* ==========================================================
   NET3MAX JJMPERU V1.4
   MOBILE COMFORT / DENSITY REFINEMENT

   Goal:
   - reduce unnecessary vertical scrolling
   - preserve typography and visual hierarchy
   - preserve touch target sizes
   - preserve desktop/tablet layout
   ========================================================== */

@media (max-width: 620px) {

  /* Four credibility indicators:
     preserve V1.3 dividers but reduce excess height. */
  .trust-strip > div {
    min-height: 0;
    padding: 22px 34px;
  }

  /* Main homepage sections:
     75px in V1.3 -> 58px in V1.4. */
  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  /* Connect headings more closely to their content. */
  .section-heading {
    margin-bottom: 34px;
  }

  /* Homepage capability cards:
     retain premium whitespace while reducing scroll length. */
  .service-card {
    min-height: 300px;
    padding: 28px;
  }

  .service-card h3 {
    margin-top: 30px;
    margin-bottom: 12px;
  }

  .service-card a {
    left: 28px;
    bottom: 24px;
  }

  /* Dark company/experience feature block. */
  .feature-copy {
    padding: 44px 20px;
  }

  /* Large gold conversion bands were desktop-spaced. */
  .cta-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  /* Footer:
     reduce long vertical gaps between stacked columns. */
  .footer {
    padding-top: 52px;
    padding-bottom: 22px;
  }

  .footer-grid {
    gap: 36px;
  }

  .footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
  }
}


/* ============================================================
   JJM PERU REAL BRAND V1.5
   Change scope: real logo + palette only
   Layout/content/distribution remain unchanged
   ============================================================ */

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-mark,
.brand-copy {
  display: none !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
}

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

@media (max-width: 479px) {
  .brand-logo {
    height: 44px;
  }
}

/* NET3MAX JJMPERU V1.5.1
   Header contrast + real-logo sizing only */

.site-header {
  background: rgba(5,11,22,.985);
  border-bottom: 1px solid rgba(237,186,24,.22);
}

.brand-logo {
  height: 64px;
}

@media (max-width: 767px) {
  .brand-logo {
    height: 54px;
  }
}

@media (max-width: 479px) {
  .brand-logo {
    height: 50px;
  }
}

/* NET3MAX JJMPERU V1.5.2
   Real-logo visibility refinement only */

.site-header {
  background: rgba(246,248,251,.985);
  border-bottom: 1px solid rgba(28,66,141,.16);
}

.brand-logo {
  width: 210px;
  height: auto;
  max-width: none;
}

.nav-link {
  color: #10234E;
}

.nav-toggle span:not(.sr-only) {
  background: #10234E;
}

.btn-small {
  color: #10234E;
}

@media (max-width: 767px) {
  .brand-logo {
    width: 180px;
    height: auto;
  }
}

@media (max-width: 479px) {
  .brand-logo {
    width: 165px;
    height: auto;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6
   Slider arrows + slightly tighter mobile hero top padding
   ============================================================ */

.has-slider-arrows {
  position: relative;
}

.has-slider-arrows .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background: rgba(11,17,23,.24);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
  backdrop-filter: blur(2px);
}

.has-slider-arrows .slider-arrow:hover,
.has-slider-arrows .slider-arrow:focus {
  background: rgba(11,17,23,.46);
  border-color: rgba(255,255,255,.48);
  outline: none;
}

.has-slider-arrows .slider-arrow--prev {
  left: 24px;
}

.has-slider-arrows .slider-arrow--next {
  right: 24px;
}

.has-slider-arrows .slider-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 767px) {
  .has-slider-arrows .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .has-slider-arrows .slider-arrow--prev {
    left: 14px;
  }

  .has-slider-arrows .slider-arrow--next {
    right: 14px;
  }

  /* Slightly reduce top visual spacing in mobile hero only */
  .hero-copy,
  .hero-content,
  .hero-text,
  .hero__content,
  .hero__copy {
    padding-top: 18px !important;
  }

  .hero-copy > :first-child,
  .hero-content > :first-child,
  .hero-text > :first-child,
  .hero__content > :first-child,
  .hero__copy > :first-child {
    margin-top: 0 !important;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.1
   Mobile-only refinement:
   - remove arrow square boxes
   - move arrows closer to screen edges
   - reduce mobile hero top padding
   ============================================================ */

@media (max-width: 767px) {

  /* move hero content slightly upward */
  .hero,
  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-content,
  .hero-copy,
  .hero-inner,
  .hero .container {
    padding-top: 18px !important;
  }

  /* mobile arrows: icon only, no rectangle */
  .hero-arrow,
  .slider-arrow,
  .hero-nav button,
  .hero-control {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .hero-arrow svg,
  .slider-arrow svg,
  .hero-nav button svg,
  .hero-control svg {
    width: 26px !important;
    height: 26px !important;
    stroke-width: 2.5 !important;
  }

  .hero-arrow--prev,
  .slider-arrow.prev,
  .hero-nav .prev,
  .hero-control.prev {
    left: 8px !important;
  }

  .hero-arrow--next,
  .slider-arrow.next,
  .hero-nav .next,
  .hero-control.next {
    right: 8px !important;
  }

  .hero-arrow,
  .hero-arrow--prev,
  .hero-arrow--next,
  .slider-arrow,
  .hero-nav button,
  .hero-control {
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.96 !important;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.2
   Mobile-only refinement:
   - arrows closer to extreme viewport edges
   - remove arrow box feel
   - reduce top spacing inside hero
   Desktop unchanged.
   ============================================================ */

@media (max-width: 767px) {

  /* ---------- HERO TOP DENSITY ---------- */
  .hero,
  .hero-slider,
  .hero-slide,
  .hero-media,
  .hero-panel {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero-slide,
  .hero-slider .slide,
  .hero-slider .swiper-slide,
  .hero-slider .splide__slide {
    min-height: calc(100svh - 86px) !important;
  }

  .hero-content,
  .hero-copy,
  .hero-inner,
  .hero-panel__content,
  .hero-text {
    padding-top: 18px !important;
    margin-top: 0 !important;
  }

  /* ---------- MOBILE ARROWS: ICON ONLY, VERY CLOSE TO EDGES ---------- */
  .hero-arrow,
  .slider-arrow,
  .hero-nav button,
  .slider-nav button,
  .splide__arrow,
  .swiper-button-prev,
  .swiper-button-next {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
  }

  .hero-arrow--prev,
  .slider-arrow--prev,
  .hero-nav .prev,
  .slider-nav .prev,
  .splide__arrow--prev,
  .swiper-button-prev {
    left: 4px !important;
  }

  .hero-arrow--next,
  .slider-arrow--next,
  .hero-nav .next,
  .slider-nav .next,
  .splide__arrow--next,
  .swiper-button-next {
    right: 4px !important;
  }

  .hero-arrow,
  .slider-arrow,
  .splide__arrow,
  .swiper-button-prev,
  .swiper-button-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 8 !important;
  }

  .hero-arrow svg,
  .slider-arrow svg,
  .splide__arrow svg {
    width: 24px !important;
    height: 24px !important;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 24px !important;
    font-weight: 700 !important;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.3
   Mobile navigation contrast fix only
   Desktop unchanged
   ============================================================ */

@media (max-width: 767px) {

  /* Mobile menu remains corporate dark navy */
  .primary-nav {
    background: #10234E;
  }

  /* Navigation must be readable over navy */
  .primary-nav .nav-link {
    color: #FFFFFF;
  }

  .primary-nav .nav-link:hover,
  .primary-nav .nav-link:focus,
  .primary-nav .nav-link.active {
    color: #FFFFFF;
  }

  /* Keep corporate gold active indicator */
  .primary-nav .nav-link::after {
    background: #EDBA18;
  }

  /* CTA remains gold with dark-blue text */
  .primary-nav .btn,
  .primary-nav .btn-small {
    background: #EDBA18;
    border-color: #EDBA18;
    color: #10234E;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.4
   Mobile-only density refinement:
   - tighter mobile menu spacing
   - less top padding in hero slider
   ============================================================ */
@media (max-width: 767px) {

  /* --- MOBILE MENU DENSITY --- */
  .site-nav,
  .nav-panel,
  .mobile-nav,
  .menu-panel {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    gap: 0 !important;
  }

  .site-nav a,
  .nav-panel a,
  .mobile-nav a,
  .menu-panel a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
    line-height: 1.25 !important;
  }

  .site-nav li,
  .nav-panel li,
  .mobile-nav li,
  .menu-panel li {
    margin-bottom: 0 !important;
  }

  .site-nav .btn,
  .nav-panel .btn,
  .mobile-nav .btn,
  .menu-panel .btn,
  .site-nav .button,
  .nav-panel .button,
  .mobile-nav .button,
  .menu-panel .button {
    margin-top: 16px !important;
  }

  /* --- HERO TOP DENSITY --- */
  .hero,
  .hero-slider,
  .hero-slide {
    min-height: auto !important;
  }

  .hero-content,
  .hero-copy,
  .hero-inner,
  .slide-content {
    padding-top: 38px !important;
  }

  /* optional: slightly tighter text stack */
  .hero-content > *:first-child,
  .hero-copy > *:first-child,
  .hero-inner > *:first-child,
  .slide-content > *:first-child {
    margin-top: 0 !important;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.5
   Exact mobile selectors verified from production CSS.
   ============================================================ */

@media (max-width: 767px) {

  /* --------------------------------
     MOBILE MENU
     Original:
       padding:25px
       inherited gap:25px
       links padding:9px 0
     -------------------------------- */

  .primary-nav {
    padding: 14px 20px 18px !important;
    gap: 6px !important;
  }

  .primary-nav .nav-link {
    padding: 6px 0 !important;
    line-height: 1.25 !important;
  }

  .primary-nav .nav-link::after {
    bottom: -2px !important;
  }

  .primary-nav .btn-small {
    margin-top: 8px !important;
  }

  /* --------------------------------
     HERO
     Actual cause is vertical flex
     centering, NOT top padding.

     Preserve layout and move the
     complete content group upward.
     -------------------------------- */

  .hero-content {
    padding-top: 0 !important;
    transform: translateY(-48px);
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.6
   Mobile menu balance + arrow reposition
   ============================================================ */

@media (max-width: 767px) {

  /* 1) MOBILE MENU: slightly more spacious, not oversized */
  .primary-nav {
    padding: 30px 40px 24px !important;
    gap: 6px !important;
  }

  .primary-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 13px 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  /* small icon + text */
  .primary-nav .nav-link::before {
    content: "›";
    color: #EDBA18;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
  }

  /* keep the existing underline logic, but position it cleanly */
  .primary-nav .nav-link::after {
    bottom: -2px !important;
  }

  .primary-nav .btn,
  .primary-nav .btn-small {
    margin-top: 10px !important;
  }

  /* 2) HERO ARROWS: keep them at the edges, but lower than text */
  .hero-arrow,
  .slider-arrow,
  .hero-nav button,
  .hero-control,
  .splide__arrow,
  .swiper-button-prev,
  .swiper-button-next {
    top: 63% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .hero-arrow--prev,
  .slider-arrow--prev,
  .hero-nav .prev,
  .slider-nav .prev,
  .splide__arrow--prev,
  .swiper-button-prev {
    left: 8px !important;
  }

  .hero-arrow--next,
  .slider-arrow--next,
  .hero-nav .next,
  .slider-nav .next,
  .splide__arrow--next,
  .swiper-button-next {
    right: 8px !important;
  }

  .hero-arrow svg,
  .slider-arrow svg,
  .hero-nav button svg,
  .hero-control svg,
  .splide__arrow svg {
    width: 18px !important;
    height: 18px !important;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 34px !important;
    color: #FFFFFF !important;
    font-weight: 700;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.7
   DESKTOP-ONLY FINAL POLISH

   - tighter Capacidades section
   - denser service cards
   - stronger hero kicker
   Mobile unchanged
   ============================================================ */

@media (min-width: 981px) {

  /* CAPACIDADES:
     reduce excessive white space */
  .capabilities-section {
    padding-top: 52px !important;
    padding-bottom: 58px !important;
  }

  .capabilities-section .section-heading {
    margin-bottom: 28px !important;
  }

  .capabilities-section .section-heading h2 {
    margin-bottom: 12px !important;
  }

  .capabilities-section .section-heading p {
    margin-top: 0 !important;
    max-width: 800px;
    font-size: 19px;
    line-height: 1.55;
  }

  /* SERVICE CARDS:
     preserve premium space but remove excess height */
  .capabilities-section .service-card {
    min-height: 270px !important;
    padding: 28px 32px !important;
  }

  .capabilities-section .service-card h3 {
    margin-top: 26px !important;
    margin-bottom: 10px !important;
  }

  /* HERO KICKER:
     improve hierarchy against the large hero H1 */
  .hero-kicker {
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .11em !important;
    line-height: 1.3 !important;
    color: #FBC619 !important;
  }
}

/* ============================================================
   NET3MAX JJMPERU V1.6.8
   MOBILE FINAL UX

   - remove separators between detailed services
   - reduce excessive mobile vertical whitespace
   Desktop remains unchanged
   ============================================================ */

@media (max-width: 767px) {

  .service-detail,
  .service-detail.reverse {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
    gap: 24px !important;
    border-bottom: 0 !important;
  }

  /*
   Preserve a little breathing room at beginning/end
   of the complete services collection.
  */
  .service-detail:first-child {
    padding-top: 40px !important;
  }

  .service-detail:last-child {
    padding-bottom: 48px !important;
  }
}
