/* ============================================================
   INMTEC — Variante B "Claridad Luminosa"
   Corporativo · confianza · limpieza · profesionalismo
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg:        #f6f8fb;   /* off-white con tinte azul, nunca #fff puro */
  --surface:   #ffffff;   /* superficies blancas */
  --ink:       #142033;   /* navy de marca */
  --muted:     #5b6675;
  --accent:    #2e4a6b;   /* azul de marca */
  --accent-h:  #3d6899;   /* hover */
  --hairline:  #e3e9f1;
  --hairline-strong: #d3dced;

  /* Sección oscura */
  --dark-bg:   #142033;
  --dark-surface: #1b2a41;
  --dark-ink:  #f2f6fc;
  --dark-muted:#9fb0c6;
  --dark-hairline: rgba(255,255,255,.10);

  /* Tipografía */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ritmo */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 9vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;

  /* Easings — nunca 'ease' */
  --e-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-soft:  cubic-bezier(0.33, 1, 0.68, 1);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(20,32,51,.04), 0 4px 14px rgba(20,32,51,.05);
  --shadow-md: 0 8px 30px rgba(20,32,51,.08), 0 2px 8px rgba(20,32,51,.05);
  --shadow-accent: 0 10px 26px rgba(46,74,107,.28);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section__head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-top: .35rem;
}

.section__lead {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--on-dark { color: var(--dark-muted); }
.eyebrow--on-dark::before { background: var(--accent-h); }

/* ---------- Buttons ---------- */
.btn {
  --_pad: .85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--_pad);
  font-family: inherit;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color .4s var(--e-out),
    color .4s var(--e-out),
    border-color .4s var(--e-out),
    box-shadow .4s var(--e-out),
    transform .4s var(--e-out);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(46,74,107,.34);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn__arrow { transition: transform .4s var(--e-out); }
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(246,248,251,.72);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    background-color .5s var(--e-out),
    border-color .5s var(--e-out),
    box-shadow .5s var(--e-out);
}
.nav.scrolled {
  background: rgba(246,248,251,.94);
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: .75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.nav__word { display: flex; flex-direction: column; line-height: 1.05; }
.nav__name { font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; }
.nav__tag { font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.nav__links a:not(.nav__cta) {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding-block: .35rem;
  transition: color .35s var(--e-out);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--e-out);
}
.nav__links a:not(.nav__cta):hover { color: var(--accent); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta { padding: .6rem 1.15rem; font-size: .88rem; }

/* Hamburguesa */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .4s var(--e-out), opacity .3s var(--e-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — split asimétrico 3fr / 2fr
   ============================================================ */
.hero {
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: var(--section-y);
}
.hero__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin-top: 1.1rem;
  max-width: 15ch;
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  font-weight: 300;
}
.hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Visual */
.hero__frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}
.hero__art {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-accent);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hero__badge-k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .82; font-weight: 500; }
.hero__badge-v { font-weight: 800; font-size: 1.02rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-block: 1px solid var(--hairline);
  background: var(--surface);
}
.stats__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  position: relative;
  padding-left: 1.25rem;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: .2rem; bottom: .2rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-h));
}
.stat__num {
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat__label {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform .5s var(--e-out),
    box-shadow .5s var(--e-out),
    border-color .5s var(--e-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(160deg, #eef3fa, #e2ebf6);
  border: 1px solid var(--hairline);
  margin-bottom: 1.3rem;
  transition: color .5s var(--e-out), background-color .5s var(--e-out);
}
.card:hover .card__icon {
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-h));
}
.card__title { font-size: 1.18rem; margin-bottom: .5rem; }
.card__text { color: var(--muted); font-size: .96rem; }

/* ============================================================
   MISIÓN & VISIÓN — sección oscura
   ============================================================ */
.section--dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  /* halo sutil azul-plata */
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(61,104,153,.28), transparent 62%);
  pointer-events: none;
}
.section--dark .section__title { color: var(--dark-ink); }

.mv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  position: relative;
}
.mv__card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-hairline);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.mv__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  color: var(--accent-h);
  background: rgba(61,104,153,.14);
  border: 1px solid var(--dark-hairline);
  margin-bottom: 1.2rem;
}
.mv__title { font-size: 1.4rem; margin-bottom: .8rem; color: var(--dark-ink); }
.mv__text { color: var(--dark-muted); font-size: 1rem; font-weight: 300; }

/* ============================================================
   VALORES
   ============================================================ */
.values__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}
.value {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--e-out), border-color .45s var(--e-out);
}
.value:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.value__dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-h));
  box-shadow: 0 0 0 4px rgba(46,74,107,.10);
}

/* ============================================================
   PROCESO
   ============================================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--hairline-strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.step__icon {
  position: absolute;
  top: 1.9rem; right: 1.6rem;
  display: inline-flex;
  color: var(--accent);
}
.step__title { font-size: 1.1rem; margin-top: 1rem; margin-bottom: .45rem; }
.step__text { color: var(--muted); font-size: .93rem; }

/* ============================================================
   PROYECTOS
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project__media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-bottom: 1px solid var(--hairline);
}
.project__media svg { width: 62%; height: auto; opacity: .9; }
/* gradientes sutiles azul-plata distintos por tarjeta */
.project__media--a { background: linear-gradient(150deg, #eef3fa 0%, #dbe6f4 100%); }
.project__media--b { background: linear-gradient(150deg, #edf2f9 0%, #d6e2f2 100%); }
.project__media--c { background: linear-gradient(150deg, #f0f4fa 0%, #dde7f5 100%); }
.project__cap {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.15rem 1.35rem 1.35rem;
}
.project__name { font-weight: 800; font-size: 1.05rem; }
.project__tag { font-size: .82rem; color: var(--accent); font-weight: 500; letter-spacing: .02em; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--dark-bg);
  color: var(--dark-ink);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(61,104,153,.32), transparent 60%),
    radial-gradient(50% 120% at 90% 100%, rgba(46,74,107,.30), transparent 60%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 20ch;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--ink);
}
.contact__ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.contact__item > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.contact__k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact__item a { font-weight: 500; transition: color .35s var(--e-out); }
.contact__item a:hover { color: var(--accent); }

/* Form */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.15rem;
}
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; font-size: .88rem; color: var(--ink); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: .98rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  resize: vertical;
  transition: border-color .35s var(--e-out), box-shadow .35s var(--e-out), background-color .35s var(--e-out);
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa6b6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(46,74,107,.14);
}
.contact__note {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(3rem, 5vw, 4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: var(--shadow-sm); }
.footer__name { font-weight: 800; letter-spacing: .04em; }
.footer__tag { font-size: .8rem; color: var(--muted); font-weight: 500; }
.footer__nav { display: flex; flex-direction: column; gap: .55rem; }
.footer__nav a,
.footer__contact a,
.footer__contact span {
  color: var(--muted);
  font-weight: 500;
  font-size: .93rem;
  transition: color .35s var(--e-out);
}
.footer__nav a:hover,
.footer__contact a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: .55rem; }

.footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-block: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}
.footer__demo { font-style: italic; opacity: .85; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s var(--e-out),
    transform .8s var(--e-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
  .hero__title { max-width: 18ch; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Nav mobile */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 6rem 2rem 2rem;
    background: var(--surface);
    border-left: 1px solid var(--hairline);
    box-shadow: -20px 0 50px rgba(20,32,51,.14);
    transform: translateX(100%);
    transition: transform .5s var(--e-inout);
    z-index: 55;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a:not(.nav__cta) { font-size: 1.1rem; }
  .nav__cta { width: 100%; margin-top: .5rem; }

  .mv__grid { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .services__grid,
  .process__grid,
  .stats__grid,
  .values__list,
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
