/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: #141414;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
::selection { background: #122C4F; color: #fff; }
a { text-decoration: none; color: inherit; }
input, textarea, select, button { font-family: inherit; }
img { max-width: 100%; }

.heading-font { font-family: 'Saira', sans-serif; }

/* ===== Reveal-on-scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.2,.6,.2,1), transform .75s cubic-bezier(.2,.6,.2,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ===== Shared bits ===== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(70px, 9vw, 120px) 0; background: #fff; }
.section--gray { background: #f4f5f6; border-top: 1px solid #eceef0; border-bottom: 1px solid #eceef0; }

.eyebrow {
  font-family: 'Saira', sans-serif;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 13px;
  color: #6E7378;
  margin-bottom: 18px;
}
.eyebrow--light { color: #9fb0c6; }

.section-title {
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  color: #122C4F;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title--light { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 54px; }

.body-text { font-size: 17px; line-height: 1.75; color: #4a4f55; margin-bottom: 18px; }
.body-text--last { margin-bottom: 0; }

.btn-primary {
  display: inline-block;
  background: #122C4F;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 11px 22px;
  border-radius: 3px;
  transition: background .2s;
}
.btn-primary:hover { background: #0e2440; }

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 3px;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-lg { font-size: 16px; padding: 16px 32px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #e6e8eb;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-desktop a:not(.btn-primary) {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #222;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-desktop a:not(.btn-primary):hover { color: #122C4F; border-bottom-color: #122C4F; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #122C4F; display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid #e6e8eb;
  background: #fff;
  padding: 14px 24px 22px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile a:not(.btn-primary) {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f3;
}
.nav-mobile .btn-primary { margin-top: 14px; text-align: center; padding: 14px; }
.nav-mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,20,38,0.5) 0%, rgba(8,20,38,0.28) 38%, rgba(8,20,38,0.88) 100%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 96px;
  width: 100%;
}
.hero-text { max-width: 820px; }
.hero-title {
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero-desc {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Stats ===== */
.stats-section { background: #fff; border-bottom: 1px solid #eceef0; }
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat { padding: 42px 22px; border-right: 1px solid #eceef0; text-align: left; }
.stat-value {
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 4.5vw, 56px);
  color: #122C4F;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label { margin-top: 10px; font-size: 14px; color: #6E7378; font-weight: 500; letter-spacing: .01em; }

/* ===== Nosotros ===== */
.nosotros-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.nosotros-text { flex: 1 1 440px; }
.nosotros-image {
  flex: 1 1 380px;
  aspect-ratio: 4/5;
  min-height: 320px;
  position: relative;
  border: 1px solid #e1e3e6;
  border-radius: 4px;
  overflow: hidden;
}
.nosotros-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Servicios ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: #e1e3e6;
  border: 1px solid #e1e3e6;
}
.service-card {
  background: #fff;
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .2s;
}
.service-card:hover { background: #fbfbfc; }
.card-num { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 15px; color: #6E7378; letter-spacing: .06em; }
.card-title { font-family: 'Saira', sans-serif; font-weight: 600; font-size: 22px; color: #122C4F; line-height: 1.12; }
.card-desc { font-size: 15.5px; line-height: 1.65; color: #5a5f65; }

/* ===== Por qué TJS ===== */
.why-section { padding: clamp(70px, 9vw, 120px) 0; background: #122C4F; position: relative; overflow: hidden; }
.why-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(125deg, #122C4F 0 30px, #142f54 30px 60px);
  opacity: .5;
}
.why-inner { position: relative; }
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; }
.reason { display: flex; gap: 20px; align-items: flex-start; }
.reason-num { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 20px; color: #9fb0c6; line-height: 1; padding-top: 2px; }
.reason-title { font-family: 'Saira', sans-serif; font-weight: 600; font-size: 20px; color: #fff; margin-bottom: 10px; line-height: 1.15; }
.reason-desc { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }

/* ===== Proyectos ===== */
.proyectos-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 42px;
}
.proyectos-head-text { max-width: 620px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: 'Saira', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 9px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid #d8dbdf;
  background: #fff;
  color: #5a5f65;
}
.filter-btn.is-active { border-color: #122C4F; background: #122C4F; color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.project-card {
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}
.project-card:hover { border-color: #c9ccd1; }
.project-card.is-hidden { display: none; }
.project-image {
  aspect-ratio: 4/3;
  position: relative;
  background: #eef0f2;
  border-bottom: 1px solid #e6e8eb;
  overflow: hidden;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-magnitude {
  position: absolute;
  top: 14px; left: 14px;
  background: #122C4F;
  color: #fff;
  font-family: 'Saira', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 6px 11px;
  border-radius: 3px;
}
.project-body { padding: 22px 22px 26px; }
.project-category {
  display: inline-block;
  font-family: 'Saira', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6E7378;
  margin-bottom: 9px;
}
.project-name { font-family: 'Saira', sans-serif; font-weight: 600; font-size: 19px; color: #122C4F; line-height: 1.15; margin-bottom: 7px; }
.project-location { font-size: 14px; color: #6E7378; margin-bottom: 12px; }
.project-type { font-size: 14.5px; line-height: 1.55; color: #5a5f65; }

/* ===== Proceso ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: #e1e3e6;
  border: 1px solid #e1e3e6;
}
.process-step { background: #f4f5f6; padding: 34px 26px; display: flex; flex-direction: column; gap: 14px; }
.process-num { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 34px; color: #cdd1d6; line-height: 1; }
.process-title { font-family: 'Saira', sans-serif; font-weight: 600; font-size: 18px; color: #122C4F; line-height: 1.18; }
.process-desc { font-size: 14.5px; line-height: 1.6; color: #5a5f65; }

/* ===== Sectores ===== */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sector-card { border-top: 3px solid #122C4F; padding: 26px 4px 0; }
.sector-title { font-family: 'Saira', sans-serif; font-weight: 600; font-size: 22px; color: #122C4F; margin-bottom: 12px; }
.sector-desc { font-size: 15.5px; line-height: 1.65; color: #5a5f65; }

/* ===== CTA ===== */
.cta-section { background: #122C4F; position: relative; overflow: hidden; }
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-text { max-width: 680px; }
.cta-title {
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cta-desc { font-size: 18px; color: rgba(255,255,255,0.92); margin-top: 16px; line-height: 1.55; }
.btn-cta {
  display: inline-block;
  background: #fff;
  color: #122C4F;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  padding: 18px 38px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-cta:hover { background: #e8ebef; }

/* ===== Contacto ===== */
.contacto-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contacto-info { flex: 1 1 360px; }
.contacto-title { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 24px; }
.contacto-desc { font-size: 16.5px; line-height: 1.7; color: #4a4f55; margin-bottom: 36px; max-width: 420px; }

.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: center; gap: 16px; transition: color .2s; }
a.contact-item:hover { color: #122C4F; }
.contact-icon {
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid #d8dbdf;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  color: #122C4F;
}
.contact-label { display: block; font-size: 12px; color: #6E7378; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.contact-value { display: block; font-size: 17px; color: #141414; font-weight: 500; margin-top: 3px; }

.contacto-form-wrap { flex: 1 1 420px; }
.contact-form {
  background: #f4f5f6;
  border: 1px solid #e6e8eb;
  border-radius: 5px;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #3a3f45;
}
.form-field--full { flex-basis: 100%; }
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid #d4d7db;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: #141414;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: #122C4F; outline: none; }

.btn-submit {
  background: #122C4F;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  padding: 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #0e2440; }
.form-note { font-size: 12.5px; color: #8a8f95; text-align: center; line-height: 1.5; }

/* ===== Footer ===== */
.site-footer { background: #0e2440; color: #fff; padding: clamp(54px, 7vw, 80px) 0 36px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
.footer-brand { flex: 1 1 280px; max-width: 340px; }
.footer-logo { height: 54px; width: auto; display: block; margin-bottom: 20px; }
.footer-desc { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col { flex: 0 1 auto; }
.footer-heading {
  font-family: 'Saira', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9fb0c6;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: rgba(255,255,255,0.78); }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-wa { color: #9fb0c6; font-weight: 600; }
.footer-wa:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 38px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
