/* ===========================
   N4L Sistemas - styles.css
   =========================== */

/* ---------- Variables ---------- */

/* ---------- Modal (resultado contacto) ---------- */
.modal[hidden]{ display:none !important; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 2100; /* por encima del lightbox (2000) */
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
}

.modal__dialog{
  position: relative;
  z-index: 2;
  max-width: min(720px, calc(100vw - 28px));
  margin: 14vh auto 0;
  background: #ffffff;
  color: var(--light-text);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal__dialog h3{
  margin: 0 0 10px 0;
  font-size: 18px;
}

.modal__dialog p{
  margin: 0 0 14px 0;
  color: var(--light-muted);
}

.modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--light-border);
  background: #fff;
  color: var(--light-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover{
  background: rgba(0,59,109,0.06);
}

.modal__close:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

:root{
  --bg: #0b1220;
  --bg2: #0f1b33;
  --surface: rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --light-bg: #f7fafc;
  --light-surface: #ffffff;
  --light-text: #0f172a;
  --light-muted: #475569;
  --light-border: rgba(15,23,42,0.12);

  /* Palette inspired by your logo */
  --primary: #003b6d;    /* deep navy */
  --secondary: #006aa6;  /* blue/teal */
  --accent: #18b6c8;     /* cyan accent for highlights */

  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --shadow2: 0 10px 30px rgba(0,0,0,0.28);

  --radius: 18px;
  --radius2: 12px;
  --max: 1200px;

  --ring: 0 0 0 4px rgba(24,182,200,0.25);

  /* HERO images tuning */
  --hero-img-opacity: 0.18;
  --hero-img-blur: 10px;
  --hero-fade: 1.4s;
  --hero-pan-duration: 16s;
}

/* ---------- Base / Reset ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--light-text);
  background: var(--light-bg);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 1rem 0; }
h1,h2,h3{ margin: 0 0 .6rem 0; line-height: 1.15; letter-spacing: -0.015em; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Container */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: var(--shadow2);
  z-index: 9999;
}
.skip-link:focus{
  left: 12px;
  outline: none;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-border);
}

.nav__container{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  height: 72px;
  gap: 14px;
  padding: 0 28px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo{
  margin-left: 15px; /* <-- añade esto */
  height: 95px;
  width: auto;
}
.brand__text{
  display: none;
}

/* Desktop links */
.nav__links{
  display: none;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a{
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  opacity: .84;
  padding: 10px 10px;
  border-radius: 10px;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.nav__links a:hover{
  background: rgba(0,59,109,0.07);
  opacity: 1;
}
.nav__links a:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

/* Mobile toggle */
.nav__toggle{
  appearance: none;
  border: 1px solid var(--light-border);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav__toggle:active{ transform: scale(0.98); }
.nav__toggle:focus-visible{ outline: none; box-shadow: var(--ring); }

.nav__toggle-lines{
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after,
.nav__toggle-lines{
  background: transparent;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 99px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.nav__toggle-lines::before{ top: 2px; }
.nav__toggle-lines::after{ top: 8px; }

/* Mobile menu panel */
.nav__mobile{
  border-top: 1px solid var(--light-border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
}
.nav__mobile-links{
  list-style: none;
  padding: 10px 18px 18px;
  margin: 0;
  display: grid;
  gap: 6px;
}
.nav__mobile-links a{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 650;
  color: #0f172a;
  background: rgba(0,0,0,0.02);
}
.nav__mobile-links a:hover{
  background: rgba(0,59,109,0.08);
}
.nav__mobile-links a:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 750;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active{ transform: scale(0.99); }
.btn:focus-visible{ outline: none; box-shadow: var(--ring); }

.btn--primary{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  
  box-shadow: 0 10px 26px rgba(0,59,109,0.25);
}

.btn--primary:hover{
  box-shadow: 0 16px 34px rgba(0,59,109,0.30);
  transform: translateY(-1px);
}

.btn--primary1{
  background: linear-gradient(135deg, rgba rgb(255, 0, 0), rgb(49, 171, 12));
  color: #fff;
  
  box-shadow: 0 10px 26px rgba(0,59,109,0.25);
}

.btn--primary1:hover{
  box-shadow: 0 16px 34px rgba(204, 30, 3, 0.3);
  transform: translateY(-1px);
}

.btn--ghost{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}
.btn--ghost:hover{
  background: rgba(255,255,255,0.18);
}
.btn--full{ width: 100%; border-radius: 14px; padding: 14px 16px; }

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--light-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.icon-btn:hover{ background: rgba(0,59,109,0.06); }
.icon-btn:active{ transform: scale(0.98); }
.icon-btn:focus-visible{ outline: none; box-shadow: var(--ring); }

.icon-btn--primary{
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ---------- Hero ---------- */
/* Oscurecido + textura por encima de las imágenes, por debajo del texto */
.hero{
  position: relative;
  isolation: isolate; /* evita líos de z-index */
  overflow: hidden;   /* <-- AQUI: recorta el blur/scale del fondo */
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* Mezcla de tu textura anterior + un velo para legibilidad del texto */
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.07), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,0.04), transparent 55%),
    linear-gradient(180deg, rgba(6,16,40,0.55) 0%, rgba(6,16,40,0.40) 60%, rgba(6,16,40,0.55) 100%);
}

.hero__bg--a{
  background-image: url("assets/hero/hero-01.png");
}

/* Capas de fondo con imagen (A/B) para crossfade */
.hero__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* La imagen la pondrá el JS con background-image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Efecto “difuminado” */
  transform: scale(1.06);
  filter: blur(3px) saturate(1.08) contrast(1.08) brightness(0.85);

  /* Fade */
  opacity: 0;
  transition: opacity 900ms ease;
}

/* La capa activa se ve */
.hero__bg.is-active{
  opacity: 1;
}

/* Movimiento sutil tipo “cámara lenta” */
@keyframes heroPan{
  from { transform: translate3d(-1.2%, -0.8%, 0) scale(1.10); }
  to   { transform: translate3d( 1.2%,  0.8%, 0) scale(1.16); }
}

.hero__content{
  position: relative;
  z-index: 2;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  font-weight: 650;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 18px;
}
.badge__dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(24,182,200,0.16);
}

.hero__title{
  font-size: clamp(34px, 4.6vw, 62px);
  margin-bottom: 14px;
  color: rgba(255,255,255,0.95); /* <-- para que no herede negro */
}
.hero__highlight{
  background: linear-gradient(90deg, rgba(24,182,200,1), rgba(0,106,166,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__highlight1{
  background: linear-gradient(90deg, rgb(255, 204, 0), rgb(255, 149, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead{
  max-width: 64ch;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.86);
  margin-bottom: 22px;
}

.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__meta{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}
.meta-card{
  background: rgba(255, 255, 255, 0.233);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 14px 14px;
}
.meta-card__kpi{
  font-weight: 900;
  font-size: 22px;
  margin: 0;
  color: rgba(255,255,255,0.78);
}
.meta-card__text{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}

/* ---------- Sections ---------- */
.section{
  padding: 64px 0;
  background: var(--light-bg);
  color: var(--light-text);
}
.section--alt{
  background: #ffffff;
}
.section--dark{
  background: linear-gradient(180deg, #07122b 0%, #081a37 50%, #07122b 100%);
  color: var(--text);
}
.section--contact{
  background: radial-gradient(800px 500px at 20% 0%, rgba(0,106,166,0.10), transparent 55%),
              radial-gradient(700px 500px at 90% 15%, rgba(24,182,200,0.10), transparent 55%),
              #f6f9fd;
}

.section__header{
  margin-bottom: 26px;
}
.section__header--row{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.section__eyebrow{
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 8px;
}
.section__eyebrow--light{
  color: rgba(24,182,200,0.95);
}
.section__title{
  font-size: clamp(24px, 3vw, 40px);
  margin-bottom: 10px;
}
.section__title--light{
  color: rgba(255,255,255,0.96);
}
.section__subtitle{
  margin: 0;
  color: var(--light-muted);
  max-width: 70ch;
}
.section__subtitle--light{
  color: rgba(255,255,255,0.78);
}

/* ---------- Grid / Cards ---------- */
.grid{
  display: grid;
  gap: 14px;
}
.grid--services{
  grid-template-columns: 1fr;
}
.card{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.10);
}

.card__title{
  font-size: 18px;
  margin-bottom: 8px;
}

.card__text{
  margin: 0;
  color: var(--light-muted);
  font-size: 14px;
}

.card__text1{
  margin: 0;
  font-size: 14px;
}
.brand-logos{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  align-content:flex-end;
  justify-content:flex-start;
  gap:12px;
  margin-top:auto;
  min-height:72px;
}

.brand-logos img{
  width:auto;
  object-fit:contain;
  opacity:.95;
  transition: transform .25s ease, opacity .25s ease;
}

.brand-logos--1{
  justify-content:center;
}

.brand-logos--1 img{
  height:64px;
  max-width:190px;
}

.brand-logos--2 img{
  height:42px;
  max-width:150px;
  justify-content:center;
}

.brand-logos--4 img{
  height:30px;
  max-width:120px;
}
/* Ajustes individuales */

.brand-logos img[alt="KUKA"]{
  height:55px;
}

.brand-logos img[alt="Fanuc"]{
  height:30px;
}

.brand-logos img[alt="Omron"]{
  height:64px;
}
.brand-logos img[alt="Delta"]{
  height:64px;
}
.brand-logos img[alt="Siemens"]{
  height:44px;
}
.brand-logos img[alt="Schneider"]{
  height:44px;
}
.brand-logos img[alt="ReeR"]{
  height:100px;
}
.brand-logos img:hover{
  transform:scale(1.06);
  opacity:1;
}

.card1{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card1:hover{
  background-image: url("assets/cards/RoboticaIndustrial.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card2{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card2:hover{
  background-image: url("assets/cards/RoboticaColaborativa.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card3{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card3:hover{
  background-image: url("assets/cards/PLC.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card4{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card4:hover{
  background-image: url("assets/cards/HMI.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card5{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card5:hover{
  background-image: url("assets/cards/Cuadros.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card6{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card6:hover{
  background-image: url("assets/cards/HMI.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card7{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card7:hover{
  background-image: url("assets/cards/HMI.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}

.card4{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card4:hover{
  background-image: url("assets/cards/HMI.png");
  background-size: cover;       /* ajusta la imagen al card */
  background-position: center;  /* centrada */
  background-repeat: no-repeat; /* evita mosaico */
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 107, 14, 0.1);
  color: white;
  
}


.card--highlight{
  background: linear-gradient(135deg, rgba(0,59,109,0.92), rgba(0,106,166,0.92));
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.18);
}
.card--highlight .card__text{ color: rgba(255,255,255,0.82); }
.card__link{
  display: inline-flex;
  margin-top: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
}
.card__link:hover{ text-decoration: underline; }
/* ---------- Brands / Technologies ---------- */
.brand-card{
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
  transform .25s ease,
  box-shadow .25s ease,
  border-color .25s ease;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,252,0.96)),
    radial-gradient(circle at 100% 0%, rgba(24,182,200,0.16), transparent 42%);
}
.brand-card::before{
  content: "";

  position: absolute;

  top: -40px;
  right: -40px;

  width: 120px;
  height: 120px;

  border-radius: 999px;

  background:
    radial-gradient(
      circle,
      rgba(24,182,200,0.12),
      transparent 70%
    );

  pointer-events: none;
}
.brand-card:hover{
  transform: translateY(-6px);

  border-color: rgba(0,106,166,0.25);

  box-shadow:
    0 20px 50px rgba(15,23,42,0.10),
    0 0 0 1px rgba(24,182,200,0.08);
}
.brand-card__title{
  font-size: 18px;
  margin-bottom: 10px;
}

.brand-card__text{
  color: var(--light-muted);
  font-size: 14px;
  margin-bottom: 18px;
}



.brand-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0,106,166,0.18);
  background: rgba(0,106,166,0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
}
/* ---------- Split sections ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
.split__media img{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--light-border);
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
  background: #e7eef7;
}
.split__content{
  padding: 0;
}
.actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.checklist{
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 28px;
  color: var(--light-muted);
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,182,200,0.14);
  color: var(--primary);
  font-weight: 900;
}

/* Reverse split helper */
.split--reverse .split__media{ order: 1; }
.split--reverse .split__content{ order: 2; }

/* ---------- Timeline ---------- */
.timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.timeline__item{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 16px 16px;
}
.timeline__title{
  color: rgba(255,255,255,0.96);
  font-size: 16px;
  margin-bottom: 6px;
}
.timeline__text{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

/* ---------- Carousel / Works ---------- */
.carousel__controls{
  display: flex;
  gap: 10px;
}

.carousel{
  position: relative;
  border-radius: var(--radius);
}
.carousel__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 10px;
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar{ height: 10px; }
.carousel__track::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,0.18);
  border-radius: 99px;
}
.carousel__track::-webkit-scrollbar-track{
  background: transparent;
}

.work{
  scroll-snap-align: start;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15,23,42,0.08);
  transition: transform .22s ease, box-shadow .22s ease;
}
.work:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.12);
}

.work__media{
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
  text-align: left;
}
.work__media img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e7eef7;
}

.work__body{
  padding: 14px 16px 16px;
}
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tag{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,106,166,0.10);
  color: var(--primary);
  border: 1px solid rgba(0,106,166,0.18);
}
.work__title{
  font-size: 16px;
  margin-bottom: 6px;
}
.work__text{
  margin: 0;
  font-size: 13px;
  color: var(--light-muted);
}

/* ---------- About / Tech ---------- */
.grid--about{
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}
.pill{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 16px;
}
.pill__title{ font-size: 16px; margin-bottom: 6px; }
.pill__text{ margin: 0; color: var(--light-muted); font-size: 14px; }

.tech{
  background: linear-gradient(135deg, rgba(0,59,109,0.08), rgba(24,182,200,0.08));
  border: 1px solid rgba(0,59,109,0.14);
  border-radius: var(--radius);
  padding: 18px;
}
.tech__title{ font-size: 16px; margin-bottom: 10px; }
.tech__list{
  margin: 0;
  padding-left: 18px;
  color: var(--light-muted);
  display: grid;
  gap: 6px;
}
.tech__note{
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(71,85,105,0.85);
}

/* ---------- FAQ ---------- */
.faq{
  display: grid;
  gap: 10px;
}
.faq__item{
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.faq__q{
  cursor: pointer;
  font-weight: 800;
  padding: 8px 4px;
  list-style: none;
}
.faq__q::-webkit-details-marker{ display:none; }
.faq__a{
  padding: 4px 4px 10px;
  color: var(--light-muted);
  font-size: 14px;
}

/* ---------- Contact ---------- */
.contact{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
}
.contact__form{
  padding: 18px;
}
.contact__title{
  font-size: 22px;
  margin-bottom: 6px;
}
.contact__text{
  margin: 0 0 14px;
  color: var(--light-muted);
}

.form__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.field label{
  font-weight: 750;
  font-size: 13px;
  color: #0f172a;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--light-border);
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.field textarea{ resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(24,182,200,0.55);
  box-shadow: var(--ring);
  background: #fff;
}

.field--honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__msg{
  margin: 10px 0 0;
  font-weight: 650;
  font-size: 13px;
  color: #0f172a;
}
.form__legal{
  margin: 10px 0 0;
  color: rgba(71,85,105,0.85);
  font-size: 12px;
}
.form__legal a{
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__info{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: rgba(255,255,255,0.92);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.contact__info::before,
.contact__info::after{
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  filter: blur(0px);
}
.contact__info::before{
  width: 240px; height: 240px;
  right: -120px; top: -120px;
}
.contact__info::after{
  width: 240px; height: 240px;
  left: -120px; bottom: -120px;
  background: rgba(24,182,200,0.18);
}
.contact__brand{
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.info{
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.info__k{
  margin: 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
  font-weight: 800;
}
.info__v{
  margin: 3px 0 0;
  font-weight: 650;
  color: rgba(255,255,255,0.92);
}
.info__v a{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social{
  position: relative;
  z-index: 1;
  margin-top: 16px;
}
.social__label{
  margin: 0 0 8px;
  font-weight: 800;
  opacity: .9;
}
.social__links{
  display: flex;
  gap: 12px;
}
.social__links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  background: #0A66C2;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);

  font-weight: 800;
  text-decoration: none;

  transition: all .25s ease;
}

.social__links a:hover{
  background: #084f96;
  transform: translateY(-2px);
}

.social__links svg{
  width: 25px;
  height: 25px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
.footer{
  background: linear-gradient(180deg, #e9edf3 0%, #d7dde7 55%, #c2cad8 100%);
  color: rgba(15,23,42,0.78);
  border-top: 1px solid rgba(15,23,42,0.12);
  padding: 26px 0 18px;
}
.footer__inner{
  display: grid;
  gap: 14px;
  align-items: center;
}
.footer__brand{
  display: grid;
  gap: 8px;
}
.footer__logo{
  width: 150px;
  height: auto;
  filter: brightness(1.2);
}
.footer__tagline{
  margin: 0;
  color: rgba(109, 166, 231, 0.78);
}
.footer__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__nav a{
  color: rgba(109, 166, 231, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__nav a:hover{
  color: rgba(109, 166, 231, 0.78);
}
.footer__bottom{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  color: rgba(18, 53, 94, 0.78);
}

/* ---------- Lightbox ---------- */
.lightbox[hidden]{ display: none !important; }
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
}
.lightbox__dialog{
  position: relative;
  z-index: 2;
  max-width: min(980px, calc(100vw - 28px));
  margin: 60px auto;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  cursor: pointer;
}
.lightbox__close:hover{ background: rgba(255,255,255,0.14); }
.lightbox__close:focus-visible{ outline: none; box-shadow: var(--ring); }

.lightbox__figure{
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.lightbox__figure img{
  width: 100%;
  height: min(62vh, 560px);
  object-fit: contain;
  background: #070f22;
}
.lightbox__caption{
  padding: 14px 16px 16px;
  color: rgba(255,255,255,0.90);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.lightbox__caption h3{ margin: 0 0 6px; font-size: 18px; }
.lightbox__caption p{ margin: 0; color: rgba(255,255,255,0.78); font-size: 14px; }

.lightbox__nav{
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.lightbox .icon-btn{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.lightbox .icon-btn:hover{ background: rgba(255,255,255,0.12); }

/* ---------- Responsive ---------- */
@media (min-width: 640px){
  .hero{ padding: 92px 0 64px; }
  .hero__meta{ grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .grid--services{ grid-template-columns: repeat(2, 1fr); }
  .carousel__track{ grid-auto-columns: 60%; }
  .form__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px){
  .nav__links{ display: flex; }
  .nav__toggle{ display: none; }
  .nav__mobile{ display: none !important; }

  .section{ padding: 78px 0; }
  .split{ grid-template-columns: 1.05fr 0.95fr; gap: 26px; }
  .split--reverse .split__media{ order: 2; }
  .split--reverse .split__content{ order: 1; }

  .grid--services{ grid-template-columns: repeat(4, 1fr); }
  .grid--about{ grid-template-columns: repeat(3, 1fr); }

  .section__header--row{
    flex-direction: row;
    align-items: flex-end;
  }

  .timeline{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .carousel__track{ grid-auto-columns: 36%; }

  .contact{
    grid-template-columns: 1.2fr 0.8fr;
  }
  .contact__form{ padding: 26px; }
  .contact__info{ padding: 26px; }

  .footer__inner{
    grid-template-columns: 1fr auto;
    justify-content: space-between;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__bg.is-active{
    animation: none !important;
  }
}
