/* =========================================================
   Tecnoproject — Shared styles
   ========================================================= */

:root {
  --blue: #0e4b71;
  --blue-deep: #0a3556;
  --blue-900: #072844;
  --red: #ff2800;
  --red-hover: #e02400;
  --ink: #121212;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --rule: #dcdcdc;
  --rule-dark: #1e5a85;
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --bg-dark: #0e3a5f;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =====================  TYPE  ===================== */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
.display.on-dark { color: #fff; }

h1.display { font-size: clamp(40px, 6.2vw, 88px); }
h2.display { font-size: clamp(32px, 4.6vw, 64px); }
h3.display { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.on-dark { color: #a8b3bd; }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.section-num.on-dark { color: #6fb0d8; }

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}
.lede.on-dark { color: rgba(255,255,255,0.78); }

.mono { font-family: var(--font-mono); }

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  line-height: 1;
  text-align: left;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-hover); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  justify-content: center;
  width: 100%;
}
.btn-whatsapp:hover { background: #1ebe57; color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color .18s ease;
}
.btn-link.on-dark { color: #fff; }
.btn-link:hover { color: var(--red); }
.btn-link svg { width: 14px; height: 14px; transition: transform .18s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* =====================  NAV  ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 24, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.nav.nav-light {
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: inherit;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--red);
}
.logo-mark::before {
  left: 0; top: 0;
  width: 10px; height: 28px;
}
.logo-mark::after {
  left: 14px; top: 8px;
  width: 14px; height: 12px;
  background: currentColor;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  opacity: 0.6;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { position: relative; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.82;
  transition: opacity .15s ease, color .15s ease;
  cursor: pointer;
}
.nav-links a:hover { opacity: 1; color: var(--red); }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  margin-left: 16px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--red);
  color: #fff;
  transition: background-color .18s ease;
}
.nav-cta:hover { background: var(--red-hover); color: #fff !important; opacity: 1 !important; }

/* Services dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 340px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  opacity: 1;
  color: var(--ink) !important;
  border-left: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.dropdown a:hover {
  background: var(--bg-alt);
  border-left-color: var(--red);
  color: var(--ink) !important;
}
.dropdown a strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.dropdown a span {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: inherit;
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.nav-light .nav-toggle { border-color: var(--rule); }

/* =====================  HERO  ===================== */
.hero {
  position: relative;
  background: #ffffff;
  color: var(--blue);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,75,113,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,75,113,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14,75,114,0.12) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(80px, 12vh, 140px);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: clamp(40px, 6vh, 64px);
  border-bottom: 1px solid rgba(14,75,113,0.18);
}
.hero-meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(14,75,113,0.7);
}
.hero-meta-item strong { color: var(--blue); font-weight: 600; }

.hero-body {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-body > .hero-title-wrap { max-width: 880px; }
.hero-title-wrap h1 span.accent {
  color: var(--red);
  font-style: italic;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.hero-side p { color: rgba(255,255,255,0.78); margin: 0; }

/* Home slideshow — full-width band between hero and "por qué" */
.home-slideshow {
  position: relative;
  background: var(--bg-alt);
  padding: 56px 0 64px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.home-slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(14,75,113,0.05) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(14,75,113,0.05) 1px, transparent 1px) 0 0/40px 40px;
  pointer-events: none;
}
.home-ss-frame {
  position: relative;
  width: min(calc(100% - 80px), 1440px);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.home-ss-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 600ms ease, transform 4500ms ease-out;
  pointer-events: none;
}
.home-ss-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.home-ss-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-ss-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  background: linear-gradient(to top, rgba(11,28,42,0.92) 0%, rgba(11,28,42,0.55) 60%, rgba(11,28,42,0) 100%);
  color: #fff;
  font-family: var(--font-sans);
}
.home-ss-slide figcaption .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.72);
}
.home-ss-slide figcaption .title {
  font-family: var(--font-display, var(--font-sans));
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}
.home-ss-slide figcaption .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  white-space: nowrap;
}
.home-ss-dots {
  width: min(calc(100% - 80px), 1440px);
  margin: 14px auto 0;
  display: flex;
  gap: 6px;
}
.home-ss-dots button {
  flex: 1;
  height: 2px;
  background: rgba(14,75,113,0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 200ms;
}
.home-ss-dots button:hover { background: rgba(14,75,113,0.32); }
.home-ss-dots button.is-active { background: rgba(14,75,113,0.28); }
.home-ss-dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red, #d6322a);
  transform-origin: left center;
  animation: homeSsTick 4000ms linear forwards;
}
@keyframes homeSsTick {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 720px) {
  .home-slideshow { padding: 40px 0 48px; }
  .home-ss-frame { width: calc(100% - 32px); aspect-ratio: 4 / 5; }
  .home-ss-dots { width: calc(100% - 32px); }
  .home-ss-slide figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 20px;
  }
  .home-ss-slide figcaption .tag { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .home-ss-slide { transition: none; }
  .home-ss-dots button.is-active::after { animation: none; transform: scaleX(1); }
}

/* HERO LIGHT THEME — overrides for on-dark elements inside .hero */
.hero .display.on-dark { color: var(--blue); }
.hero .eyebrow.on-dark { color: rgba(14,75,113,0.72); }
.hero .lede.on-dark { color: var(--ink); }
.hero .btn-ghost-light {
  color: var(--blue);
  border-color: rgba(14,75,113,0.35);
  background: transparent;
}
.hero .btn-ghost-light:hover { background: rgba(14,75,113,0.06); border-color: var(--blue); color: var(--blue); }
.hero .hero-side { border-left-color: rgba(14,75,113,0.18); }
.hero .hero-side p { color: var(--ink); }
.hero-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-side-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-side-list li .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 28px;
}

/* Page hero (interior) — light theme */
.page-hero {
  position: relative;
  background: #ffffff;
  color: var(--blue);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.page-hero .hero-grid-bg {
  background-image:
    linear-gradient(rgba(14,75,113,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,75,113,0.06) 1px, transparent 1px);
}
.page-hero .hero-glow {
  background: radial-gradient(circle, rgba(14,75,114,0.12) 0%, transparent 60%);
}
.page-hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 120px) var(--gutter) clamp(56px, 8vh, 88px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: end;
}
.page-hero-inner .lede { max-width: 52ch; }

/* Hero variant with no media — single column, content takes full width */
.page-hero-inner--solo {
  grid-template-columns: 1fr;
  max-width: 920px;
}
.page-hero-inner--solo .lede { max-width: 56ch; }

/* Light-theme overrides for interior heroes */
.page-hero .display.on-dark { color: var(--blue); }
.page-hero .eyebrow.on-dark { color: rgba(14,75,113,0.72); }
.page-hero .lede.on-dark { color: var(--ink); }
.page-hero .btn-ghost-light {
  color: var(--blue);
  border-color: rgba(14,75,113,0.35);
  background: transparent;
}
.page-hero .btn-ghost-light:hover { background: rgba(14,75,113,0.06); border-color: var(--blue); color: var(--blue); }

.crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(14,75,113,0.6);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumb a { color: rgba(14,75,113,0.6); }
.crumb a:hover { color: var(--blue); }
.crumb .sep { opacity: 0.4; }
.crumb .current { color: var(--blue); }

/* Hero photo placeholder */
.svc-hero-media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-hero-media:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,75,113,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,75,113,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.svc-hero-media .ph-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rule);
}
.svc-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* =====================  SECTIONS  ===================== */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}
.section-head > .left { display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { margin: 0; }

/* Reasons (3 columns) */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.dark .reasons { border-top-color: var(--rule-dark); }
.reason {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dark .reason { border-right-color: var(--rule-dark); }
.reason:last-child { border-right: none; }
.reason:not(:first-child) { padding-left: 32px; }
.reason .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
}
.reason h3 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }
.dark .reason h3 { color: #fff; }
.reason p { margin: 0; font-size: 15px; color: var(--ink-2); }
.dark .reason p { color: rgba(255,255,255,0.7); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.dark .services-grid { background: var(--rule-dark); border-color: var(--rule-dark); }

.service-card {
  background: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background-color .2s ease, color .2s ease;
  position: relative;
}
.dark .service-card { background: var(--bg-dark); color: #fff; }
.service-card:hover { background: var(--blue); color: #fff; }
.service-card:hover .service-num,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .btn-link { color: #fff; }
.service-card:hover .btn-link { border-color: #fff; }

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-num .tag {
  background: rgba(255,40,0,0.1);
  color: var(--red);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.service-card:hover .service-num .tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.dark .service-card h3 { color: #fff; }
.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}
.dark .service-card p { color: rgba(255,255,255,0.65); }
.service-card .btn-link { align-self: flex-start; margin-top: 8px; }

/* Clients strip */
.clients {
  padding: 60px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.clients-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 32px;
  text-align: center;
}
.clients-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.client-logo {
  background: #fff;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  min-height: 120px;
  position: relative;
}
.client-logo img {
  max-width: 160px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.72;
  transition: opacity .2s ease, filter .2s ease;
}
.client-logo:hover img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}
/* Per-logo size tweaks so optical weight matches across the row */
.client-logo img[alt*="Aeropuertos"],
.client-logo img[alt*="Calsa"] {
  max-width: 200px;
  max-height: 96px;
}
.client-logo small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
}

/* CTA Final */
.cta-final {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.cta-final h2 { margin: 0 0 24px; }
.cta-final p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin: 0 0 36px;
}
.cta-final-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.15);
}
.cta-final-right .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6fb0d8;
}
.cta-final-right .value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.cta-final-right .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cta-final-right .row:last-of-type { border-bottom: none; }
.cta-final-right a.value { transition: color .18s ease; }
.cta-final-right a.value:hover { color: var(--red); }
.value-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #25d366;
}
.value-wa:hover { color: #1ebe57; }
.value-wa svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===================== SERVICE DETAIL ===================== */

/* Facts strip — sits between page-hero and svc-body */
.svc-facts {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}
.svc-facts-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
}
.svc-facts-inner.svc-facts-2 { grid-template-columns: repeat(2, 1fr); }
.svc-facts-inner.svc-facts-3 { grid-template-columns: repeat(3, 1fr); }
.svc-facts-inner .fact {
  background: var(--bg-alt);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-facts-inner .fact .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-facts-inner .fact .value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.svc-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding: clamp(70px, 9vw, 120px) 0;
  align-items: start;
}
.svc-body .svc-meta {
  position: sticky;
  top: 96px;
  order: 2;
  padding: 32px;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.svc-meta h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.svc-meta .meta-lede {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0 0 20px;
}
.svc-meta .meta-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.svc-meta .meta-cta .btn {
  width: 100%;
  justify-content: center;
}
.svc-meta .meta-cta .btn-ghost-light {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.svc-meta .meta-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}
.svc-meta .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.svc-meta .row:last-of-type { border-bottom: none; }
.svc-meta .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.svc-meta .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  line-height: 1.35;
}

.svc-content { order: 1; }
.svc-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 64px 0 20px;
  color: var(--ink);
  line-height: 1.15;
}
.svc-content h2:first-child { margin-top: 0; }
.svc-content h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-bottom: 20px;
}
.svc-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--ink);
  line-height: 1.25;
}
.svc-content p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
}

.svc-content ul.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc-content ul.checks li {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.svc-content .callout {
  padding: 36px;
  background: var(--blue);
  color: #fff;
  margin: 40px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.svc-content .callout::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.svc-content .callout .ico {
  width: 44px;
  height: 44px;
  background: var(--red);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  border-radius: 2px;
}
.svc-content .callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.svc-content .callout p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Mid-body photo placeholder */
.svc-photo {
  margin: 48px 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.svc-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,75,113,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,75,113,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.svc-photo .ph-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rule);
}
.svc-photo .ph-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-photo:has(img) { border: none; }
.svc-photo:has(img)::before { display: none; }
.svc-photo .caption,
.svc-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11,28,42,0.78);
  padding: 8px 12px;
  max-width: calc(100% - 32px);
}

/* Full-image variant — show image uncut, caption below */
.svc-photo--full {
  aspect-ratio: auto;
  background: transparent;
  display: block;
  overflow: visible;
}
.svc-photo--full img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.svc-photo--full figcaption {
  position: static;
  display: block;
  margin-top: 14px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  max-width: none;
}

/* Full-bleed photo section (between body and related) */
.svc-fullphoto {
  padding: 64px 0 32px;
}
.svc-fullphoto-frame {
  margin: 0;
}
.svc-fullphoto-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.svc-fullphoto-frame figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-alt);
  width: 180px;
}
.spec-table td { color: var(--ink-2); }

/* Process steps — numbered grid */
.process.process-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .process.process-5 { grid-template-columns: repeat(2, 1fr); }
}
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 32px 0 40px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.process-step {
  background: #fff;
  padding: 28px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.18;
  margin-bottom: 4px;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.process-step h4::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  margin-bottom: 10px;
}
.process-step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Related services */
.related {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 32px;
}
.related-card {
  background: #fff;
  padding: 28px 24px;
  transition: background-color .2s ease, color .2s ease;
}
.related-card:hover { background: var(--blue); color: #fff; }
.related-card:hover h4 { color: #fff; }
.related-card:hover .num { color: rgba(255,255,255,0.7); }
.related-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}

/* =====================  FOOTER  ===================== */
.footer {
  background: var(--blue-deep);
  color: #fff;
  padding: 80px 0 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 16px 0 16px;
  color: #fff;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 40ch;
  margin: 0 0 24px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--red); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0 0 10px; }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.2);
}

/* =====================  FORM  ===================== */
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding: clamp(70px, 9vw, 120px) 0;
  align-items: start;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form .full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,75,114,0.12);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--red); }
.field .error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.05em;
  display: none;
}
.field.invalid .error { display: block; }

.form-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-aside .contact-card {
  padding: 28px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-aside .contact-card .row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-aside .contact-card .row:first-child { padding-top: 0; }
.form-aside .contact-card .row:last-child { border-bottom: none; padding-bottom: 0; }
.form-aside .contact-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6fb0d8;
}
.form-aside .contact-card .value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.form-aside .contact-card a.value:hover { color: var(--red); }

.form-success {
  background: var(--bg-alt);
  padding: 40px 32px;
  border-left: 4px solid #16a34a;
  display: none;
}
.form-success.show { display: block; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}
.form-success p { margin: 0; color: var(--ink-2); }

/* =====================  CONTACT PAGE  ===================== */
.contact-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-body-main { min-width: 0; }

.contact-meta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.contact-meta-strip > div { display: flex; flex-direction: column; gap: 6px; }
.contact-meta-strip .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}
.contact-meta-strip .val {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

/* Dark contact card */
.contact-card {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(32px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
}
.contact-card-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.contact-card-row:first-child { padding-top: 0; }
.contact-card-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-card .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #6fb0d8;
  font-weight: 600;
}
.contact-card .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  word-break: break-word;
  transition: color .18s ease;
}
.contact-card a.val:hover { color: var(--red); }
.contact-card .val-static { cursor: default; }
.contact-card .val-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: #fff;
}
.contact-card .val-wa svg { width: 22px; height: 22px; flex-shrink: 0; color: #25d366; transition: opacity .18s ease; }
.contact-card .val-wa:hover { color: #25d366; }
.contact-card .val-wa:hover svg { opacity: 0.85; }

/* Legacy — kept to avoid breaking other refs (unused) */
.contact-channels { display: none; }
.contact-channel {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .25s ease;
}
.contact-channel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--red);
  transition: width .25s ease;
}
.contact-channel:hover { padding-left: 32px; }
.contact-channel:hover::before { width: 4px; }
.contact-channel .ch-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-channel .ch-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  transition: color .2s ease;
}
.contact-channel:hover .ch-value { color: var(--red); }
.contact-channel .ch-meta {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.contact-channel .ch-arrow {
  width: 56px;
  height: 56px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  color: var(--ink);
}
.contact-channel:hover .ch-arrow {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.contact-channel .ch-arrow svg { width: 18px; height: 18px; transition: transform .25s ease; }
.contact-channel:hover .ch-arrow svg { transform: translateX(4px); }

/* Where — split office card */
.contact-where {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  background: #fff;
}
.contact-where-info {
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-where-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}
.contact-where-info .addr {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}
.contact-where-info .addr-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.contact-where-info .hours {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.contact-where-info .hours .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  width: 80px;
}
.contact-where-info .hours .val {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.contact-where-info .map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color .18s ease;
}
.contact-where-info .map-link:hover { color: var(--red); }
.contact-where-info .map-link svg { width: 14px; height: 14px; transition: transform .18s ease; }
.contact-where-info .map-link:hover svg { transform: translate(2px, -2px); }

.contact-where-map {
  position: relative;
  background: var(--bg-alt);
  min-height: 360px;
  overflow: hidden;
}
.contact-where-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(0.95);
}

/* Steps strip — what happens next */
.contact-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: #fff;
}
.contact-next .step {
  padding: clamp(32px, 3.5vw, 48px);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-next .step:last-child { border-right: none; }
.contact-next .step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  font-weight: 700;
}
.contact-next .step h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.contact-next .step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* =====================  ABOUT / CASOS  ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding: clamp(70px, 9vw, 120px) 0;
}
.about-grid h2 { margin: 16px 0 32px; }
.about-grid p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 40px;
}
.stat {
  background: #fff;
  padding: 32px 28px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 8px;
}
.stat .num sup {
  font-size: 20px;
  color: var(--red);
  margin-left: 2px;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Casos de obra */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.caso-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--rule);
}
.caso-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 12px,
    rgba(14,75,114,0.06) 12px,
    rgba(14,75,114,0.06) 14px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.caso-img::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(14,75,114,0.25);
}
.caso-img span { position: relative; background: var(--bg-alt); padding: 0 8px; }
.caso-body { padding: 24px; }
.caso-body .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 600;
}
.caso-body h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.2;
}
.caso-body p { font-size: 13px; color: var(--muted); margin: 0; }

/* Case feature — 3 detailed cases with 2 photo slots each */
.casos-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
  margin-top: 56px;
}
.caso-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.caso-feature-head .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.caso-feature-head h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 820px;
}
.caso-feature-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.caso-feature-photos .caso-img {
  aspect-ratio: 3 / 2;
}
.caso-feature-photos--single {
  grid-template-columns: 1fr;
}
.caso-feature-photos--single .caso-img {
  aspect-ratio: 4 / 3;
}
.caso-feature-photos--triple {
  grid-template-columns: 1fr 1fr 1fr;
}
.caso-feature-photos--triple .caso-img {
  aspect-ratio: 4 / 3;
}
@media (max-width: 720px) {
  .caso-feature-photos--triple { grid-template-columns: 1fr; }
}
.caso-img.is-photo {
  background: #000;
  background-image: none;
  color: transparent;
  overflow: hidden;
}
.caso-img.is-photo::before { display: none; }
.caso-img.is-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.caso-feature-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.caso-feature-body p { margin: 0; }
.caso-feature-body p + p { margin-top: 20px; }
@media (max-width: 720px) {
  .caso-feature-photos { grid-template-columns: 1fr; }
}

.placeholder-banner {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border-left: 3px solid var(--blue);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  align-items: center;
}
.placeholder-banner strong { color: var(--ink); font-family: var(--font-display); }

/* =====================  UTIL / RESPONSIVE  ===================== */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-light .nav-links { background: #fff; border-top-color: var(--rule); }
  .nav-links li { width: 100%; }
  .nav-links a { width: 100%; padding: 14px 16px; }
  .dropdown { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; background: transparent; }
  .nav-light .dropdown a { color: var(--ink) !important; }
  .nav:not(.nav-light) .dropdown a { color: #fff !important; }
  .nav:not(.nav-light) .dropdown a strong { color: #fff; }
  .nav:not(.nav-light) .dropdown a:hover { background: rgba(255,255,255,0.05); }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .hero-body { grid-template-columns: 1fr; gap: 48px; }
  .hero-side { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
  .hero-meta { flex-wrap: wrap; gap: 16px; }

  .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }

  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .reasons { grid-template-columns: 1fr; }
  .reason { border-right: none; border-bottom: 1px solid var(--rule); padding: 32px 0 !important; }
  .dark .reason { border-bottom-color: var(--rule-dark); }

  .services-grid { grid-template-columns: 1fr; }
  .clients-row { grid-template-columns: repeat(3, 1fr); }

  .cta-final-inner { grid-template-columns: 1fr; gap: 40px; }

  .svc-body { grid-template-columns: 1fr; gap: 40px; }
  .svc-body .svc-meta { position: static; order: 0; }
  .svc-content { order: 1; }
  .svc-facts-inner { grid-template-columns: 1fr 1fr; }

  .related-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .form-layout { grid-template-columns: 1fr; gap: 48px; }
  .form { grid-template-columns: 1fr; }

  .contact-body { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { position: static; }
  .contact-meta-strip { grid-template-columns: 1fr; gap: 20px; }

  .contact-channel { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .contact-channel .ch-arrow { display: none; }
  .contact-channel:hover { padding-left: 16px; }
  .contact-where { grid-template-columns: 1fr; }
  .contact-where-map { min-height: 280px; order: -1; }
  .contact-next { grid-template-columns: 1fr; }
  .contact-next .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .contact-next .step:last-child { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .casos-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .casos-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }
}

/* =====================  PENTA · REPRESENTACIONES  ===================== */
.penta-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.penta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}
.penta-content .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}
.penta-content > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.penta-segments {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.penta-segments li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.penta-segments .seg-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  padding-top: 3px;
}
.penta-segments strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.penta-segments span {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.penta-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.penta-card {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.penta-card-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  background-image:
    linear-gradient(135deg, rgba(14,75,113,0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(14,75,113,0.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(14,75,113,0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(14,75,113,0.04) 25%, transparent 25%);
  background-position: 16px 0, 16px 0, 0 0, 0 0;
  background-size: 32px 32px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border-bottom: 1px solid var(--rule);
}
.penta-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.penta-card-photo .ph-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.penta-card-spec {
  padding: 8px 24px;
}
.penta-card-spec .spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.penta-card-spec .spec-row:last-child { border-bottom: none; }
.penta-card-spec .k {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-size: 11px;
  padding-top: 2px;
}
.penta-card-spec .v {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

@media (max-width: 960px) {
  .penta-grid { grid-template-columns: 1fr; gap: 40px; }
  .penta-card { position: static; }
  .penta-card-photo { aspect-ratio: 16 / 10; }
}