:root {
  color-scheme: light;
  --navy: #092b4c;
  --navy-deep: #061d37;
  --blue: #0879bc;
  --blue-bright: #1598d1;
  --sky: #49b5e7;
  --gold: #f0c918;
  --ink: #142d45;
  --muted: #64788c;
  --line: #dfe7ee;
  --paper: #f5f8fb;
  --white: #fff;
  --shadow: 0 24px 64px rgba(6, 29, 55, .12);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-150%); border-radius: 8px; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

/* Header and shared navigation */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(9, 43, 76, .08); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; }
.brand-copy { display: grid; gap: 1px; line-height: 1.15; }
.brand-copy strong { color: var(--navy); font: 800 16px/1.2 'Manrope', Arial, sans-serif; letter-spacing: -.035em; }
.brand-copy small { color: #718398; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); margin-left: auto; }
.primary-nav a { position: relative; padding: 31px 0; color: #516a80; font-size: 13px; font-weight: 700; transition: color .2s ease; }
.primary-nav a::after { position: absolute; right: 0; bottom: 22px; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--blue); content: ''; transition: transform .2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--navy); }
.primary-nav a:hover::after, .primary-nav a[aria-current='page']::after { transform: scaleX(1); }
.header-cta { flex: 0 0 auto; }
.menu-toggle { display: none; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid transparent; border-radius: 7px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .005em; box-shadow: 0 8px 22px rgba(8, 121, 188, .18); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: #066aa8; box-shadow: 0 13px 26px rgba(8, 121, 188, .24); }
.button span { font-size: 17px; line-height: 1; }
.button-small { min-height: 43px; gap: 10px; padding-inline: 16px; font-size: 12px; }
.button-accent { background: var(--gold); color: var(--navy-deep); box-shadow: none; }
.button-accent:hover { background: #ffdb2f; box-shadow: 0 10px 24px rgba(240, 201, 24, .24); }
.button-outline-light { border-color: rgba(255,255,255,.35); background: transparent; box-shadow: none; }
.button-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }

/* Type and section rhythm */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Inter, 'Segoe UI', Arial, sans-serif; }
h1, h2 { letter-spacing: -.045em; }
h1 em, h2 em { color: var(--blue-bright); font-style: normal; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-mark { width: 23px; height: 2px; display: inline-block; background: var(--blue-bright); }
.eyebrow-light { color: #9dd9f6; }
.eyebrow-light .eyebrow-mark { background: var(--gold); }
.section { padding: 105px 0; }
.section-heading h2 { max-width: 580px; margin-bottom: 19px; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.16; }
.section-heading > p:not(.eyebrow) { max-width: 575px; margin-bottom: 25px; color: var(--muted); font-size: 16px; }
.section-heading-compact h2 { max-width: 710px; margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 13px; font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: #fff; }

/* Homepage hero */
.hero { position: relative; overflow: hidden; padding: 78px 0 84px; background: radial-gradient(circle at 76% 40%, rgba(20, 113, 175, .55), transparent 28%), linear-gradient(118deg, var(--navy-deep) 0%, #082e52 58%, #0c4d7c 100%); color: #fff; }
.hero::before { position: absolute; inset: 0 0 0 49%; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 43px 43px; mask-image: linear-gradient(90deg, transparent, #000 35%); content: ''; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr); align-items: center; gap: clamp(38px, 6vw, 84px); }
.hero-copy { padding: 13px 0; }
.hero h1 { max-width: 660px; margin-bottom: 22px; color: #fff; font-size: clamp(42px, 5vw, 66px); font-weight: 800; line-height: 1.07; }
.hero h1 em { color: #65c4ef; }
.hero-lead { max-width: 580px; margin-bottom: 31px; color: #c4d4e2; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 44px; color: #a8c1d3; font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(240,201,24,.13); }
.hero-visual { position: relative; max-width: 535px; justify-self: end; padding: 0 0 38px 36px; }
.hero-image-frame { position: relative; overflow: hidden; min-height: 400px; border: 7px solid rgba(255,255,255,.94); border-radius: 13px; background: #b6c6d1; box-shadow: 0 28px 70px rgba(0,0,0,.3); transform: rotate(1deg); }
.hero-image-frame::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,29,55,.28)); content: ''; }
.hero-image-frame img { width: 100%; height: 405px; object-fit: cover; object-position: center; }
.hero-image-label { position: absolute; z-index: 2; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; min-width: 290px; padding: 15px 19px; border: 1px solid rgba(255,255,255,.68); border-radius: 8px; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.hero-image-label > span:last-child { display: grid; gap: 3px; }
.hero-image-label strong { font: 800 12px 'Manrope', Arial, sans-serif; }
.hero-image-label small { color: var(--muted); font-size: 10px; }
.label-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: var(--gold); font: 800 12px 'Manrope', Arial, sans-serif; }
.hero-side-note { position: absolute; top: 38px; left: 0; writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(255,255,255,.5); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.hero-side-note span { color: var(--gold); }
.hero-bottom-line { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--gold) 0 17%, #138bc4 17% 52%, transparent 52%); }

/* Trust strip and about */
.trust-strip { position: relative; z-index: 2; margin-top: -1px; border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-item { min-width: 0; min-height: 105px; display: flex; align-items: center; gap: 15px; padding: 20px 30px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item > span:last-child { min-width: 0; }
.trust-icon { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #d7e4ed; border-radius: 50%; color: var(--blue); font-size: 10px; font-weight: 800; }
.trust-item > span:last-child { display: grid; gap: 3px; }
.trust-item strong { color: var(--navy); font: 800 13px 'Manrope', Arial, sans-serif; }
.trust-item small { color: var(--muted); font-size: 11px; }
.section-about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr .93fr; align-items: center; gap: clamp(45px, 8vw, 116px); }
.about-panel { position: relative; overflow: hidden; padding: 30px 34px 21px; border: 1px solid #e7edf2; border-radius: 12px; background: var(--paper); box-shadow: 0 14px 45px rgba(9,43,76,.06); }
.about-panel-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #dce6ed; }
.panel-kicker { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.panel-symbol { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e1f0f8; color: var(--blue); font-size: 15px; }
.about-principle { position: relative; z-index: 1; display: grid; grid-template-columns: 37px 1fr; gap: 13px; padding: 18px 0; border-bottom: 1px solid #e0e8ee; }
.about-principle:last-of-type { border-bottom: 0; }
.about-principle > span { padding-top: 2px; color: #87a4ba; font-size: 11px; font-weight: 800; }
.about-principle h3 { margin: 0 0 5px; color: var(--navy); font-size: 15px; letter-spacing: -.015em; }
.about-principle p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-watermark { position: absolute; right: 18px; bottom: 0; color: rgba(9,43,76,.035); font: 800 160px/1 'Manrope', Arial, sans-serif; letter-spacing: -.1em; }

/* Service cards */
.section-services { background: var(--paper); }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 37px; }
.section-topline > .text-link { flex: 0 0 auto; margin-bottom: 7px; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 320px; display: flex; flex-direction: column; padding: 27px 27px 25px; border: 1px solid #e0e8ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 32px rgba(9,43,76,.035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #c3d9e8; box-shadow: 0 20px 42px rgba(9,43,76,.1); }
.service-card-featured { border-top: 3px solid var(--blue); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.card-number { color: #90a3b4; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.line-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: #edf6fb; }
.line-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.card-kicker { margin-bottom: 8px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-card h3 { margin-bottom: 11px; color: var(--navy); font-size: 19px; line-height: 1.3; letter-spacing: -.03em; }
.service-card > p:not(.card-kicker) { margin-bottom: 23px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid #e9eef2; color: var(--navy); font-size: 11px; font-weight: 800; }
.card-link span { color: var(--blue); font-size: 16px; }

/* Values, projects, and bottom CTA */
.section-values { background: var(--navy); color: #fff; }
.values-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(50px, 8vw, 110px); }
.values-intro h2 { max-width: 500px; margin-bottom: 18px; color: #fff; font-size: clamp(32px, 4vw, 46px); line-height: 1.16; }
.values-intro h2 em { color: #67c5ef; }
.values-intro > p:not(.eyebrow) { max-width: 435px; margin-bottom: 27px; color: #b8cad8; font-size: 14px; }
.values-intro .button { margin-top: 4px; }
.values-list { border-top: 1px solid rgba(255,255,255,.2); }
.value-item { display: grid; grid-template-columns: 48px 1fr 22px; align-items: start; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.value-index { color: var(--gold); font-size: 10px; font-weight: 800; }
.value-item h3 { margin: 0 0 5px; color: #fff; font-size: 15px; }
.value-item p { margin: 0; color: #a9c0d1; font-size: 12px; }
.value-arrow { color: #76c9ed; font-size: 14px; }
.section-projects { padding: 88px 0; background: #fff; }
.projects-callout { display: grid; grid-template-columns: 1fr .75fr; gap: 90px; align-items: center; }
.projects-callout h2 { max-width: 600px; margin-bottom: 15px; color: var(--navy); font-size: clamp(31px, 4vw, 43px); line-height: 1.16; }
.projects-callout h2 em { color: var(--blue); }
.projects-callout p:not(.eyebrow) { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.projects-side { display: grid; gap: 22px; }
.client-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.client-chips span, .project-tag, .standard-tags span { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #dfe8ef; border-radius: 5px; background: #f8fafc; color: #49647b; font-size: 10px; font-weight: 700; }
.contact-band { overflow: hidden; background: linear-gradient(110deg, #0a3f68, #092b4c 66%); color: #fff; }
.contact-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-top: 57px; padding-bottom: 57px; }
.contact-band-inner::after { position: absolute; top: -88px; right: 185px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02); content: ''; pointer-events: none; }
.contact-band-inner > div { min-width: 0; }
.contact-band-inner > a { position: relative; z-index: 1; }
.contact-band-inner > div { position: relative; z-index: 1; }
.contact-band h2 { margin-bottom: 8px; color: #fff; font-size: clamp(28px, 3.2vw, 39px); line-height: 1.18; }
.contact-band p:not(.eyebrow) { margin-bottom: 0; color: #b8cad8; font-size: 13px; }
.contact-band .button { flex: 0 0 auto; }

/* Inner pages */
.inner-hero { position: relative; overflow: hidden; padding: 65px 0 72px; background: radial-gradient(circle at 85% 10%, rgba(30,137,193,.37), transparent 25%), linear-gradient(116deg, var(--navy-deep), #0a416c); color: #fff; }
.inner-hero::after { position: absolute; right: -65px; bottom: -170px; width: 410px; height: 410px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.02); content: ''; }
.inner-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 50px; }
.inner-hero h1 { max-width: 780px; margin-bottom: 18px; color: #fff; font-size: clamp(38px, 5.2vw, 61px); line-height: 1.08; }
.inner-hero h1 em { color: #6ccbf0; }
.inner-hero p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: #bfd1df; font-size: 15px; }
.inner-hero-index { display: grid; justify-items: end; gap: 9px; padding-bottom: 7px; color: #c3d3df; text-align: right; }
.inner-hero-index > span:first-child { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.inner-hero-index strong { color: #fff; font: 700 15px/1.5 'Manrope', Arial, sans-serif; }
.index-line { width: 75px; height: 2px; margin-top: 5px; background: var(--blue-bright); }
.service-detail-section { padding: 82px 0 100px; }
.service-detail-layout { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: 70px; }
.service-aside { position: sticky; top: 112px; display: grid; gap: 0; }
.service-aside .eyebrow { margin-bottom: 14px; }
.service-aside > a { padding: 13px 0; border-bottom: 1px solid var(--line); color: #526d83; font-size: 12px; font-weight: 700; }
.service-aside > a:hover { color: var(--blue); }
.aside-cta { margin-top: 28px; padding: 20px; border-radius: 8px; background: var(--paper); }
.aside-cta strong { display: block; color: var(--navy); font: 800 13px/1.4 'Manrope', Arial, sans-serif; }
.aside-cta p { margin: 8px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.aside-cta a { color: var(--blue); font-size: 11px; font-weight: 800; }
.service-detail { padding-bottom: 49px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 105px; }
.detail-heading { display: flex; align-items: start; gap: 18px; margin-bottom: 14px; }
.detail-number { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eaf5fb; color: var(--blue); font: 800 12px 'Manrope', Arial, sans-serif; }
.detail-heading .card-kicker { margin: 2px 0 6px; }
.detail-heading h2 { margin: 0; color: var(--navy); font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.detail-intro { max-width: 760px; margin: 0 0 28px 61px; color: var(--muted); font-size: 14px; }
.service-subgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 30px; margin-left: 61px; }
.service-subgrid > div { padding: 19px 20px; border: 1px solid #e5ebf0; border-radius: 7px; background: #fff; }
.service-subgrid h3 { margin-bottom: 10px; color: var(--navy); font-size: 14px; }
.service-subgrid p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-subgrid ul { display: grid; gap: 8px; padding-left: 17px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.service-subgrid li::marker { color: var(--blue); }
.service-subgrid .subgrid-wide { grid-column: 1 / -1; }
.standard-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: 9px; background: var(--navy); color: #fff; }
.detail-cta h2 { margin: 0; font-size: 19px; }
.detail-cta .card-kicker { color: #8ed4f2; }

/* Project page */
.project-list-section { padding-top: 82px; }
.section-aside-copy { max-width: 325px; margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 48px 1fr 1.3fr; align-items: center; gap: 25px; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.project-index { align-self: start; padding-top: 4px; color: #8aa1b4; font-size: 10px; font-weight: 800; }
.project-type { display: block; margin-bottom: 5px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.project-client h3 { margin: 0; color: var(--navy); font-size: 17px; }
.project-description p { max-width: 540px; margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.project-tag { padding: 5px 9px; font-size: 9px; }
.project-note { margin: 20px 0 0; color: #7c8c9a; font-size: 10px; }
.clients-section { padding: 78px 0; background: var(--paper); }
.clients-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; }
.clients-inner h2 { max-width: 520px; margin: 0; color: var(--navy); font-size: clamp(28px, 3.5vw, 40px); line-height: 1.2; }
.clients-inner h2 em { color: var(--blue); }
.client-name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.client-name-grid span { display: grid; min-height: 64px; place-items: center; border: 1px solid #e1e9ef; border-radius: 6px; background: #fff; color: #516a80; font: 700 11px 'Manrope', Arial, sans-serif; text-align: center; }

/* Proyectos SSOMA destacados en la página de Experiencia. */
.project-case-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.project-case-highlight-media {
  min-width: 0;
  min-height: 235px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fff;
}
.project-case-highlight-media img {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}
.project-case-highlight-copy {
  align-self: center;
  padding: 26px 30px;
}
.project-case-index {
  display: block;
  margin-bottom: 10px;
  color: #8aa1b4;
  font-size: 10px;
  font-weight: 800;
}
.project-case-highlight-copy .project-type { margin-bottom: 6px; }
.project-case-highlight-copy h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
}
.project-case-highlight-copy p {
  max-width: 520px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
html[data-theme="night"] .project-case-highlight { background: #142536; }
@media (max-width: 760px) {
  .project-case-highlight { grid-template-columns: 1fr; }
  .project-case-highlight-media { min-height: 0; }
  .project-case-highlight-media img { max-height: 250px; }
  .project-case-highlight-copy { padding: 21px 22px 24px; }
}

/* Contact page */
.contact-details-section { padding: 95px 0; }
.contact-details-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(50px, 8vw, 110px); }
.contact-copy h2 { max-width: 470px; margin-bottom: 17px; color: var(--navy); font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
.contact-copy h2 em { color: var(--blue); }
.contact-copy > p:not(.eyebrow) { max-width: 410px; margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card { position: relative; min-height: 163px; display: flex; flex-direction: column; align-items: flex-start; padding: 19px 20px; border: 1px solid #e0e8ee; border-radius: 8px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: #b6d4e6; box-shadow: 0 14px 30px rgba(9,43,76,.08); }
.contact-card-wide { grid-column: 1 / -1; min-height: 140px; }
.contact-card-icon { position: absolute; top: 18px; right: 18px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #eef6fa; color: var(--blue); font-size: 9px; font-weight: 800; }
.contact-card-label { margin: 2px 35px 8px 0; color: #788c9d; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact-card strong { color: var(--navy); font: 800 14px 'Manrope', Arial, sans-serif; overflow-wrap: anywhere; }
.contact-card-action { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 13px; color: var(--blue); font-size: 10px; font-weight: 800; }
.contact-location { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 8px; background: var(--paper); }
.location-pin { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e2f2fa; color: var(--blue); font-size: 22px; }
.contact-location div { display: grid; gap: 5px; }
.contact-location .contact-card-label { margin: 0; }
.contact-location strong { color: var(--navy); font: 800 14px 'Manrope', Arial, sans-serif; }
.contact-location p { margin: 0; color: var(--muted); font-size: 11px; }

/* Footer and utility */
.site-footer { background: #061c34; color: #c3d0dc; }
.footer-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; padding-top: 39px; padding-bottom: 31px; }
.brand-footer .brand-copy strong { color: #fff; }
.brand-footer .brand-copy small { color: #93aabd; }
.brand-footer img { width: 53px; height: 53px; }
.footer-summary { max-width: 395px; margin: 0; color: #97adbf; font-size: 11px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #c3d0dc; font-size: 11px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-bottom { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #8299ac; font-size: 9px; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.error-card { width: min(530px, 100%); padding: 43px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.error-card .brand { margin-bottom: 46px; }
.error-card h1 { margin-bottom: 13px; color: var(--navy); font-size: 38px; line-height: 1.15; }
.error-card > p:not(.eyebrow) { margin-bottom: 23px; color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .header-inner { gap: 17px; }
  .primary-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr .85fr; gap: 34px; }
  .hero-image-frame { min-height: 340px; }
  .hero-image-frame img { height: 340px; }
  .hero-visual { padding-left: 23px; }
  .service-detail-layout { grid-template-columns: 180px 1fr; gap: 40px; }
  .footer-main { grid-template-columns: auto 1fr; }
  .footer-links { grid-column: 1 / -1; }
  .projects-callout { gap: 50px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, 600px); }
  .header-inner { min-height: 74px; }
  .brand img { width: 49px; height: 49px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .header-cta { display: none; }
  .menu-toggle { width: 43px; height: 43px; display: grid; align-content: center; justify-items: center; gap: 5px; margin-left: auto; border: 1px solid #dce6ed; border-radius: 6px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; display: block; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    z-index: 30;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    gap: 0;
    padding: 18px 24px;
    border-top: 1px solid #dce6ed;
    background: #fff !important;
    opacity: 1;
    isolation: isolate;
    box-shadow: 0 20px 36px rgba(6, 29, 55, .16);
  }
  .primary-nav.is-open {
    display: grid;
    background: #fff !important;
    opacity: 1;
  }
  .primary-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav a::after { bottom: 0; }
  .hero { padding: 54px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 37px; }
  .hero h1 { max-width: 600px; font-size: clamp(39px, 11vw, 57px); }
  .hero-lead { font-size: 14px; }
  .hero-note { margin-top: 29px; }
  .hero-visual { width: min(100%, 530px); justify-self: center; padding: 0 0 29px 24px; }
  .hero-image-frame { min-height: 290px; }
  .hero-image-frame img { height: 290px; }
  .hero-image-label { min-width: 0; max-width: calc(100% - 5px); padding: 12px; }
  .hero-side-note { top: 24px; }
  .trust-grid { grid-template-columns: 1fr; padding-top: 4px; padding-bottom: 4px; }
  .trust-item, .trust-item:first-child { min-height: 74px; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .trust-icon { width: 34px; height: 34px; }
  .section { padding: 72px 0; }
  .about-grid, .values-grid, .projects-callout, .clients-inner, .contact-details-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-heading h2 { font-size: clamp(30px, 8vw, 41px); }
  .about-panel { padding: 23px; }
  .section-topline { display: grid; align-items: start; gap: 20px; }
  .section-topline > .text-link { margin: 0; }
  .service-cards { grid-template-columns: 1fr; gap: 13px; }
  .service-card { min-height: 270px; padding: 23px; }
  .values-grid { gap: 38px; }
  .values-intro h2 { font-size: 36px; }
  .section-projects { padding: 72px 0; }
  .projects-side { gap: 17px; }
  .contact-band-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 43px; padding-bottom: 43px; }
  .contact-band-inner .button { justify-self: start; }
  .contact-band-inner::after { right: -80px; }
  .inner-hero { padding: 48px 0 53px; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .inner-hero h1 { font-size: clamp(37px, 10vw, 53px); }
  .inner-hero-index { display: flex; align-items: center; justify-items: initial; justify-content: flex-start; gap: 12px; text-align: left; }
  .inner-hero-index strong { font-size: 11px; }
  .inner-hero-index .index-line { width: 36px; margin: 0; }
  .service-detail-section { padding: 55px 0 70px; }
  .service-detail-layout { grid-template-columns: 1fr; gap: 31px; }
  .service-aside { position: static; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .service-aside .eyebrow, .aside-cta { grid-column: 1 / -1; }
  .service-aside > a { padding: 11px 9px; border: 1px solid var(--line); border-radius: 5px; text-align: center; font-size: 10px; }
  .aside-cta { margin-top: 9px; }
  .service-detail { padding-bottom: 33px; margin-bottom: 34px; }
  .detail-intro, .service-subgrid { margin-left: 0; }
  .service-subgrid { grid-template-columns: 1fr; gap: 12px; }
  .service-subgrid .subgrid-wide { grid-column: auto; }
  .detail-cta { align-items: flex-start; flex-direction: column; padding: 23px; }
  .project-list-section { padding-top: 60px; }
  .project-row { grid-template-columns: 30px 1fr; gap: 10px; padding: 19px 2px; }
  .project-index { grid-row: 1 / span 2; }
  .project-client { grid-column: 2; }
  .project-description { grid-column: 2; }
  .section-aside-copy { max-width: 100%; }
  .clients-section { padding: 61px 0; }
  .client-name-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-details-section { padding: 68px 0; }
  .contact-details-grid { gap: 35px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card, .contact-card-wide { grid-column: auto; min-height: 135px; }
  .footer-main { grid-template-columns: 1fr; gap: 21px; padding-top: 31px; padding-bottom: 26px; }
  .footer-links { grid-column: auto; flex-wrap: wrap; gap: 17px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding-top: 12px; padding-bottom: 12px; }
  .error-card { padding: 27px; }
  .error-card .brand { margin-bottom: 34px; }
  .error-card h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Mobile menu: keep the panel anchored to the header and fully opaque. */
@media (max-width: 760px) {
  .site-header {
    background: #fff;
    backdrop-filter: none;
  }

  .primary-nav {
    position: fixed;
    z-index: 40;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    align-content: start;
    gap: 0;
    padding: 18px 24px 28px;
    border-top: 1px solid #dce6ed;
    background: #fff !important;
    opacity: 1 !important;
    isolation: isolate;
    box-shadow: 0 20px 36px rgba(6, 29, 55, .16);
  }

  .primary-nav.is-open {
    display: grid !important;
    background: #fff !important;
    opacity: 1 !important;
  }

  .primary-nav a {
    color: #092b4c;
    background: #fff;
  }
}

/* Persistent contact shortcut */
.whatsapp-float {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px 0 15px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #1fae5a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(5, 52, 31, .28);
  font: 800 13px/1 Inter, 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #168f49;
  box-shadow: 0 14px 32px rgba(5, 52, 31, .34);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #f0c918;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: currentColor;
}

@media (max-width: 760px) {
  .whatsapp-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 54px;
    padding-inline: 14px;
  }
}

@media (max-width: 760px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}


/* Social channels and interaction polish */
.footer-social {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-top: 23px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.footer-social > strong, .error-social > strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  color: #d9e9f3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .22s ease, border-color .22s ease, color .22s ease, translate .22s ease, box-shadow .22s ease;
}
.social-links a span { color: var(--gold); font-size: 14px; }
.contact-social { margin-top: 27px; }
.contact-social h3 { margin-bottom: 11px; color: var(--navy); font-size: 14px; }
.contact-social .social-links a, .error-social .social-links a {
  border-color: #d9e5ee;
  color: var(--navy);
  background: #f6f9fc;
}
.error-social { display: grid; gap: 12px; margin-top: 30px; padding-top: 21px; border-top: 1px solid var(--line); }
.error-social > strong { color: var(--navy); }

:where(a, button):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.reveal-ready {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .65s ease, translate .65s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready.is-visible { opacity: 1; translate: 0 0; }
.hero-copy, .hero-visual, .inner-hero-grid { animation: page-enter .72s both; }
.hero-visual { animation-delay: .12s; }
@keyframes page-enter {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@media (hover: hover) {
  .social-links a:hover {
    translate: 0 -3px;
    border-color: var(--sky);
    color: #fff;
    background: #0b5683;
    box-shadow: 0 8px 20px rgba(6,29,55,.17);
  }
  .contact-social .social-links a:hover, .error-social .social-links a:hover { color: #fff; }
  .trust-item, .about-panel, .service-subgrid > div, .client-name-grid span, .client-chips span {
    transition: translate .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
  }
  .trust-item:hover { background: #f7fbfe; }
  .about-panel:hover, .service-subgrid > div:hover {
    translate: 0 -3px;
    border-color: #b7d9e8;
    box-shadow: 0 15px 32px rgba(9,43,76,.09);
  }
  .client-name-grid span:hover, .client-chips span:hover { translate: 0 -2px; border-color: #afd3e6; background: #edf7fc; }
  .value-item:hover .value-arrow { translate: 3px -3px; }
  .value-arrow { transition: translate .22s ease; }
  .card-link span { transition: translate .2s ease; }
  .service-card:hover .card-link span { translate: 3px -3px; }
}
@media (max-width: 760px) {
  .footer-social { display: grid; gap: 12px; }
  .social-links a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; translate: none; }
  .hero-copy, .hero-visual, .inner-hero-grid { animation: none; }
}


/* QHSE-inspired image-led service layout; user supplied assets can replace these marked slots. */
.section-services { background: var(--paper); }
.service-cards { gap: 22px; }
.service-card {
  min-height: 0;
  overflow: hidden;
  padding: 0 27px 25px;
  border-radius: 11px;
  border-color: #d9e5ec;
  box-shadow: 0 12px 34px rgba(9,43,76,.06);
}
.service-card-image-slot,
.detail-media-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  border: 1px dashed #8bb6cd;
  background: #eaf4f9;
}
.service-card-image-slot {
  min-height: 198px;
  align-items: end;
  padding: 18px;
  margin: 0 -27px 21px;
  border-width: 0 0 1px;
  border-bottom-style: solid;
}
.service-card-image-slot::before,
.detail-media-slot::before {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(8,121,188,.35);
  border-radius: 5px;
  content: "";
  pointer-events: none;
}
.service-card:nth-child(2) .service-card-image-slot { background: #edf5f8; }
.service-card:nth-child(3) .service-card-image-slot { background: #edf1f6; }
.service-card .card-top { padding-top: 2px; margin-bottom: 18px; }
.service-card .card-link { margin-top: auto; }
.media-slot-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 13px;
  border-left: 3px solid var(--sky);
  border-radius: 2px 6px 6px 2px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 5px 16px rgba(9,43,76,.08);
  color: var(--navy);
  text-align: left;
}
.media-slot-copy strong {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.media-slot-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.detail-media-slot {
  min-height: 220px;
  place-items: center;
  margin: 23px 0 25px;
  border-radius: 9px;
  background: #eef6fa;
  text-align: center;
}
.detail-media-slot .media-slot-copy { justify-items: center; }
@media (max-width: 760px) {
  .service-card { min-height: 0; padding: 0 22px 22px; }
  .service-card-image-slot { min-height: 178px; margin-right: -22px; margin-left: -22px; }
  .service-card .card-top { padding-top: 20px; }
  .detail-media-slot { min-height: 175px; margin: 20px 0 22px; }
}

/* QHSE visual structure: full-bleed carousel, image-led services, field cases and motion. */
html { scroll-behavior: smooth; }
.js-ready .site-header { animation: qhse-header-in .55s both; }
@keyframes qhse-header-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

.hero.hero-carousel {
  position: relative;
  min-height: 610px;
  height: min(72vw, 720px);
  max-height: calc(100svh - 82px);
  display: block;
  overflow: hidden;
  padding: 0;
  background: var(--navy-deep);
  color: #fff;
  isolation: isolate;
}
.hero-background { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,21,39,.74), rgba(4,21,39,.53) 48%, rgba(4,21,39,.62)),
              linear-gradient(0deg, rgba(4,21,39,.55), transparent 52%);
}
.hero-slides { position: relative; z-index: 1; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide-inner {
  min-height: 610px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 76px;
}
.hero-carousel .hero-copy {
  width: min(100%, 980px);
  padding: 10px 20px;
  margin: 0 auto;
  text-align: center;
  animation: none;
}
.hero-carousel .hero-copy .eyebrow { justify-content: center; margin-bottom: 22px; color: #fff; }
.hero-carousel .hero-copy .eyebrow-mark { background: var(--gold); }
.hero-carousel .hero-copy h1 {
  max-width: 950px;
  margin: 0 auto 22px;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-carousel .hero-copy h1 em { color: var(--gold); }
.hero-carousel .hero-copy .hero-lead { max-width: 740px; margin: 0 auto 30px; color: #e0edf5; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; }
.hero-carousel .hero-actions { justify-content: center; gap: 14px 25px; }
.hero-carousel .button-accent { border: 1px solid var(--gold); background: var(--gold); color: var(--navy-deep); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.hero-carousel .text-link-light { color: #fff; }
.hero-carousel .hero-slide.is-active .hero-copy { animation: qhse-copy-in .68s cubic-bezier(.2,.7,.2,1) both; }
@keyframes qhse-copy-in { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  background: rgba(6,29,55,.22);
  color: #fff;
  font: 400 26px/1 Arial, sans-serif;
  cursor: pointer;
  translate: 0 -50%;
  transition: background .2s ease, border-color .2s ease, scale .2s ease;
}
.hero-arrow-prev { left: clamp(18px, 3vw, 46px); }
.hero-arrow-next { right: clamp(18px, 3vw, 46px); }
.hero-arrow:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); scale: 1.05; }
.hero-carousel-controls {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 25px;
  left: 0;
  display: grid;
  grid-template-columns: 64px 1fr minmax(120px, 220px);
  align-items: center;
  gap: 20px;
  color: #fff;
}
.hero-counter { display: flex; align-items: center; gap: 8px; color: #c8d9e6; font-size: 12px; }
.hero-counter strong { color: var(--gold); font-size: 14px; }
.hero-pagination, .case-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero-pagination button, .case-pagination button {
  width: 25px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.52);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-pagination button[aria-current="true"] { width: 52px; background: var(--gold); }
.hero-progress { height: 2px; overflow: hidden; background: rgba(255,255,255,.3); }
.hero-progress span { width: 100%; height: 100%; display: block; transform: scaleX(0); transform-origin: left; background: var(--gold); }
.hero-progress span.is-running { animation: carousel-progress var(--progress-duration, 6800ms) linear forwards; }
@keyframes carousel-progress { to { transform: scaleX(1); } }

.trust-strip { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #fff; }
.trust-item { min-height: 96px; padding: 18px 26px; }
.trust-item strong { display: block; color: var(--navy); font-size: 12px; }
.trust-item small { color: var(--muted); font-size: 11px; }
.trust-icon { width: 40px; height: 40px; font-size: 9px; font-weight: 800; background: #f3f8fb; color: var(--blue); }

.section-services { padding: 100px 0 96px; background: var(--paper); }
.section-heading-centered { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-heading-centered .eyebrow { justify-content: center; }
.section-heading-centered h2 { max-width: 730px; margin: 0 auto 15px; font-size: clamp(34px, 4vw, 50px); text-wrap: balance; }
.section-heading-centered > p:not(.eyebrow) { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dce6ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(9,43,76,.055);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.service-card-image-slot {
  min-height: 205px;
  height: 205px;
  align-items: end;
  padding: 16px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #dce6ed;
  border-radius: 0;
  background: #e8f2f7;
}
.service-card-image-slot::before { inset: 10px; border-color: rgba(8,121,188,.35); border-radius: 4px; }
.service-card:nth-child(3n + 2) .service-card-image-slot { background: #eef3f6; }
.service-card:nth-child(3n) .service-card-image-slot { background: #e6f0f5; }
.service-card-content { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 23px; }
.service-card-content .card-kicker { margin-bottom: 9px; }
.service-card-content h3 { min-height: 50px; margin-bottom: 10px; font-size: 19px; line-height: 1.28; }
.service-card-content > p:not(.card-kicker) { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-card-content .card-link { margin-top: auto; }
.service-card-featured { border-top: 1px solid #dce6ed; }
.services-more { display: flex; justify-content: center; margin-top: 36px; }
.button-outline { border: 1px solid var(--navy); background: transparent; color: var(--navy); }
.button-outline:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.section-about { padding: 100px 0 90px; background: #fff; }
.about-topline { align-items: end; gap: 55px; margin-bottom: 40px; }
.about-topline .section-heading { max-width: 620px; }
.about-topline .section-heading h2 { max-width: 610px; font-size: clamp(34px, 4vw, 50px); text-wrap: balance; }
.about-intro { max-width: 440px; margin-bottom: 3px; color: var(--muted); font-size: 14px; }
.about-intro p { margin-bottom: 17px; }
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  position: relative;
  min-height: 218px;
  padding: 27px 26px 24px;
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 9px;
  background: var(--paper);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.why-number { display: block; margin-bottom: 22px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.why-card .card-kicker { margin-bottom: 7px; }
.why-card h3 { margin-bottom: 10px; color: var(--navy); font-size: 20px; line-height: 1.25; }
.why-card > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.brand-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.brand-values span { padding: 8px 12px; border: 1px solid #dce6ed; border-radius: 99px; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.section-cases { padding: 94px 0 84px; background: #f3f7fa; }
.cases-topline { align-items: end; margin-bottom: 30px; }
.cases-topline .section-heading { max-width: 740px; }
.cases-topline .section-heading h2 { max-width: 700px; margin-bottom: 10px; font-size: clamp(34px, 4vw, 48px); text-wrap: balance; }
.cases-topline .section-heading > p:not(.eyebrow) { max-width: 580px; color: var(--muted); font-size: 14px; }
.case-carousel {
  position: relative;
  min-height: 354px;
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9,43,76,.08);
}
.case-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr .95fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}
.case-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
.case-media-slot {
  position: relative;
  min-height: 354px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid #dce6ed;
  background: #e8f2f7;
}
.case-media-slot::before { position: absolute; inset: 14px; border: 1px dashed rgba(8,121,188,.38); content: ""; }
.case-media-slot .media-slot-copy { justify-items: center; text-align: center; }
.case-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 4vw, 58px); }
.case-copy h3 { margin: 6px 0 15px; color: var(--navy); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.case-copy > p:not(.card-kicker) { max-width: 430px; margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.case-copy .text-link { margin-top: auto; }
.case-controls { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.case-pagination { justify-content: flex-start; }
.case-pagination button { width: 23px; background: #c4d4df; }
.case-pagination button[aria-current="true"] { width: 46px; background: var(--blue); }
.case-arrows { display: flex; gap: 9px; }
.case-arrows button {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid #cddbe4; border-radius: 50%; background: #fff;
  color: var(--navy); font-size: 19px; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.case-arrows button:hover { border-color: var(--blue); background: var(--blue); color: #fff; transform: translateY(-2px); }

.clients-section { padding: 74px 0 66px; background: #fff; }
.clients-heading { margin-bottom: 30px; text-align: center; }
.clients-heading .eyebrow { justify-content: center; }
.clients-heading h2 { max-width: 760px; margin: 0 auto; color: var(--navy); font-size: clamp(28px, 3.4vw, 40px); text-wrap: balance; }
.client-marquee { overflow: hidden; padding-block: 12px; border-block: 1px solid #e2eaf0; background: #f4f8fb; }
.client-track { width: max-content; display: flex; align-items: center; animation: client-marquee 38s linear infinite; will-change: transform; }
.client-group { display: flex; align-items: center; flex: 0 0 auto; gap: 16px; padding-inline: 8px; }
.client-card { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-width: 176px; min-height: 76px; padding: 15px 20px; border: 1px solid #dce6ed; border-radius: 9px; background: linear-gradient(180deg, #fff, #f8fbfd); color: #516a80; box-shadow: 0 8px 22px rgba(9,43,76,.06); font: 800 15px/1.3 'Manrope', Arial, sans-serif; letter-spacing: -.02em; text-align: center; white-space: nowrap; transition: color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.client-card-medium { min-width: 198px; }
.client-card-wide { min-width: 235px; }
@keyframes client-marquee { to { transform: translateX(-50%); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (hover: hover) {
  .service-card:hover, .why-card:hover { transform: translateY(-6px); border-color: #b7d6e5; box-shadow: 0 20px 46px rgba(9,43,76,.13); }
  .service-card:hover .service-card-image-slot::before { inset: 7px; border-color: var(--blue); }
  .service-card:hover .media-slot-copy, .case-media-slot:hover .media-slot-copy { border-color: var(--gold); }
  .brand-values span { transition: color .2s ease, border-color .2s ease, background .2s ease; }
  .brand-values span:hover { border-color: var(--gold); background: #fff9d9; color: var(--navy); }
  .client-card:hover { color: var(--blue); border-color: #afd3e6; transform: translateY(-2px); box-shadow: 0 14px 26px rgba(9,43,76,.12); }
  .footer-links a, .primary-nav a { transition: color .2s ease, translate .2s ease; }
  .footer-links a:hover { translate: 0 -2px; }
}
.reveal-ready { transition-delay: var(--reveal-delay, 0ms); }
@media (max-width: 1020px) {
  .hero.hero-carousel { min-height: 580px; height: min(78vw, 680px); }
  .hero-slide-inner { min-height: 580px; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-topline { align-items: start; flex-direction: column; gap: 12px; }
  .about-intro { max-width: 680px; }
}
@media (max-width: 760px) {
  .hero.hero-carousel { min-height: 560px; height: 72svh; max-height: 690px; }
  .hero-slide-inner { min-height: 560px; padding: 25px 0 96px; }
  .hero-carousel .hero-copy { padding: 0 26px; }
  .hero-carousel .hero-copy h1 { font-size: clamp(37px, 10vw, 54px); }
  .hero-arrow { width: 40px; height: 40px; top: auto; bottom: 26px; translate: 0; font-size: 21px; }
  .hero-arrow-prev { left: 18px; }
  .hero-arrow-next { right: 18px; }
  .hero-carousel-controls { bottom: 40px; grid-template-columns: 34px 1fr; gap: 12px; width: calc(100% - 125px); }
  .hero-progress { display: none; }
  .hero-counter { font-size: 10px; }
  .hero-pagination { gap: 6px; }
  .hero-pagination button { width: 16px; height: 6px; }
  .hero-pagination button[aria-current="true"] { width: 34px; }
  .section-services, .section-about, .section-cases { padding: 68px 0; }
  .section-heading-centered { margin-bottom: 30px; }
  .service-cards, .why-cards { grid-template-columns: 1fr; gap: 14px; }
  .service-card-image-slot { min-height: 200px; height: 200px; }
  .service-card-content { padding: 21px 21px 22px; }
  .service-card-content h3 { min-height: 0; }
  .about-topline { margin-bottom: 28px; }
  .why-card { min-height: 0; }
  .brand-values { gap: 7px; }
  .case-carousel { min-height: 0; }
  .case-slide { grid-template-columns: 1fr; }
  .case-media-slot { min-height: 205px; border-right: 0; border-bottom: 1px solid #dce6ed; }
  .case-copy { min-height: 260px; padding: 26px; }
  .case-copy h3 { font-size: 30px; }
  .cases-topline { display: grid; gap: 18px; }
  .clients-section { padding: 58px 0 50px; }
  .client-group { gap: 12px; padding-inline: 6px; }
  .client-card { min-width: 150px; min-height: 68px; padding: 12px 16px; font-size: 14px; }
  .client-card-medium { min-width: 176px; }
  .client-card-wide { min-width: 212px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .site-header { animation: none; }
  .hero-carousel .hero-slide.is-active .hero-copy { animation: none; }
  .client-track { animation: none; }
  .client-group[aria-hidden="true"] { display: none; }
  .hero-arrow, .service-card, .why-card, .brand-values span, .case-arrows button, .service-card-image-slot::before { transition: none; }
}


/* Fotografías aportadas para servicios, proyectos y operaciones. */
.service-card-image-slot > img,
.detail-media-slot > img,
.case-media-slot > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-image-slot::before,
.detail-media-slot::before,
.case-media-slot::before {
  z-index: 1;
  pointer-events: none;
}
.hero-background img {
  transition: opacity .38s ease, transform 1.1s ease;
}
.hero-background img.is-switching { opacity: 0; }
@media (hover: hover) {
  .service-card-image-slot > img,
  .case-media-slot > img,
  .detail-media-slot > img {
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
  }
  .service-card:hover .service-card-image-slot > img,
  .case-media-slot:hover > img,
  .detail-media-slot:hover > img {
    transform: scale(1.045);
  }
}
.project-photo-gallery { margin: 58px 0 10px; }
.project-photo-gallery .section-heading { margin-bottom: 22px; }
.project-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.project-photo-grid figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e0e8ee; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(9,43,76,.045); }
.project-photo-grid img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.project-photo-grid figcaption { min-height: 52px; padding: 14px 15px; color: var(--navy); font: 800 11px/1.45 'Manrope', Arial, sans-serif; }
@media (hover: hover) {
  .project-photo-grid figure:hover { border-color: #b7d6e5; box-shadow: 0 18px 38px rgba(9,43,76,.11); }
  .project-photo-grid figure:hover img { transform: scale(1.045); }
}
@media (max-width: 980px) {
  .project-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .project-photo-gallery { margin-top: 42px; }
  .project-photo-grid { grid-template-columns: 1fr; gap: 13px; }
  .project-photo-grid img { height: 245px; }
}


/* Día y noche: paleta base, superficies y control compartido. */
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
}
.theme-toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  display: block;
  overflow: hidden;
  border: 1px solid #cddbe5;
  border-radius: 99px;
  background: #eaf3f8;
  transition: background-color .28s ease, border-color .28s ease;
}
.theme-toggle-icon {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font: 700 12px/1 Arial, sans-serif;
  transition: opacity .2s ease;
}
.theme-toggle-sun { left: 6px; color: #9f7900; }
.theme-toggle-moon { right: 6px; color: #c7d9e7; opacity: .55; }
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(9,43,76,.2);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), background-color .28s ease;
}
.theme-toggle[aria-checked="true"] .theme-toggle-track { border-color: #31536d; background: #16354e; }
.theme-toggle[aria-checked="true"] .theme-toggle-thumb { transform: translateX(19px); background: #d7e9f5; }
.theme-toggle[aria-checked="true"] .theme-toggle-sun { opacity: .5; }
.theme-toggle[aria-checked="true"] .theme-toggle-moon { color: #fff; opacity: 1; }
.theme-toggle:focus-visible { outline: 3px solid rgba(21,152,209,.42); outline-offset: 3px; }
.error-card { position: relative; }
.error-card .theme-toggle { position: absolute; top: 20px; right: 20px; }

/* Los títulos de servicios se iluminan desde la base al pasar o enfocar la tarjeta. */
.service-title-fill {
  display: inline;
  padding: 0 .08em .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(#f5d94c, #f5d94c);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0;
  transition: color .22s ease, background-size .42s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
  .service-card:hover .service-title-fill {
    background-size: 100% 100%;
    color: #092b4c;
  }
}
.service-card:focus-within .service-title-fill {
  background-size: 100% 100%;
  color: #092b4c;
}

/* Paleta nocturna con contraste legible y respeto por el estilo corporativo. */
html[data-theme="night"] {
  color-scheme: dark;
  --ink: #e8f0f6;
  --muted: #a8bac9;
  --line: #2a4053;
  --paper: #101f2d;
  --white: #0b1723;
  --shadow: 0 24px 64px rgba(0,0,0,.28);
}
html[data-theme="night"] body { background: var(--white); color: var(--ink); }
html[data-theme="night"] .site-header {
  border-color: #263a4d;
  background: rgba(8,22,35,.96);
}
html[data-theme="night"] .brand-copy strong { color: #edf4f9; }
html[data-theme="night"] .brand-copy small,
html[data-theme="night"] .primary-nav a { color: #b8c8d6; }
html[data-theme="night"] .primary-nav a:hover,
html[data-theme="night"] .primary-nav a[aria-current="page"] { color: #fff; }
html[data-theme="night"] .menu-toggle { border-color: #2b4155; background: #132536; }
html[data-theme="night"] .menu-toggle span { background: #e4edf4; }
html[data-theme="night"] .skip-link { background: #14283a; color: #f0f6fa; }
html[data-theme="night"] :is(.trust-strip, .section-about, .section-projects, .clients-section, .client-marquee, .project-list-section, .service-detail-section, .contact-details-section, .error-page) {
  background-color: #0b1723;
}
html[data-theme="night"] :is(.section-cases, .section-services) { background-color: #0e1c29; }
html[data-theme="night"] :is(.service-card, .why-card, .about-panel, .service-subgrid > div, .contact-card, .client-name-grid span, .case-carousel, .project-photo-grid figure, .error-card) {
  border-color: #2a4053;
  background-color: #142536;
  color: var(--ink);
}
html[data-theme="night"] .contact-location { background: #142536; color: var(--ink); }
html[data-theme="night"] .service-aside > a { color: #b6c7d5; }
html[data-theme="night"] .service-aside > a:hover { color: #63c4ee; }
html[data-theme="night"] body :is(h1, h2, h3) { color: #e8f0f6; }
html[data-theme="night"] body :is(h1, h2) em { color: #70c9ef; }
html[data-theme="night"] :is(.brand-copy strong, .trust-item strong, .card-link, .service-subgrid h3, .project-client h3, .contact-card strong, .project-photo-grid figcaption, .brand-values span) {
  color: #e8f0f6;
}
html[data-theme="night"] :is(.trust-item small, .service-card-content > p:not(.card-kicker), .section-heading > p:not(.eyebrow), .service-subgrid p, .service-subgrid ul, .contact-card-label, .project-description, .section-aside-copy, .error-card > p:not(.eyebrow)) {
  color: var(--muted);
}
html[data-theme="night"] :is(.client-chips span, .project-tag, .standard-tags span) {
  border-color: #30485c;
  background: #192e40;
  color: #c6d4df;
}
html[data-theme="night"] .trust-icon,
html[data-theme="night"] .line-icon,
html[data-theme="night"] .contact-card-icon,
html[data-theme="night"] .detail-number,
html[data-theme="night"] .panel-symbol {
  background: #1b3449;
  color: #74c8eb;
}
html[data-theme="night"] .button-outline { border-color: #7893a8; color: #edf4f9; }
html[data-theme="night"] .case-arrows button { border-color: #345067; background: #142536; color: #ecf3f8; }
html[data-theme="night"] .case-arrows button:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
html[data-theme="night"] .project-photo-grid figure:hover { border-color: #4b86a8; }
html[data-theme="night"] .primary-nav,
html[data-theme="night"] .primary-nav.is-open { background: #0e1c29 !important; }
html[data-theme="night"] .primary-nav a { background: transparent; }
html[data-theme="night"] .service-card:hover .service-title-fill,
html[data-theme="night"] .service-card:focus-within .service-title-fill { color: #092b4c; }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-track,
  .theme-toggle-thumb,
  .theme-toggle-icon,
  .service-title-fill { transition: none; }
}

html[data-theme="night"] .aside-cta strong,
html[data-theme="night"] .contact-location strong { color: #e8f0f6; }
html[data-theme="night"] .trust-item:hover { background: #122638; }
html[data-theme="night"] .project-note,
html[data-theme="night"] .project-index { color: #9cb0c0; }


/* Proyecto SSOMA destacado dentro del servicio. */
.service-case-highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 24px 0 32px 61px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.service-case-highlight-media {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #fff;
}
.service-case-highlight-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.service-case-highlight-copy { padding: 17px 20px 19px; }
.service-case-highlight-copy .card-kicker { margin: 0 0 6px; }
.service-case-highlight-copy h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.service-case-highlight-copy p:not(.card-kicker) { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-case-highlight-copy .text-link { color: var(--blue); font-size: 11px; font-weight: 800; }
html[data-theme="night"] .service-case-highlight { border-color: var(--line); background: #142536; }
@media (max-width: 760px) {
  .service-case-highlight { grid-template-columns: 1fr; gap: 0; margin-left: 0; }
  .service-case-highlight-copy { padding: 18px 20px 20px; }
}

/* Align all mobile trust-strip markers to a shared edge. */
@media (max-width: 760px) {
  .trust-item,
  .trust-item:first-child {
    padding-inline: 0;
  }
}

/* Native CSS scroll-entry reveals, with IntersectionObserver as the fallback. */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading,
    .why-card,
    .service-card,
    .trust-item,
    .about-proof-row,
    .client-marquee,
    .contact-band-inner,
    .project-row,
    .contact-card,
    .contact-location,
    .footer-social,
    .service-case-highlight,
    .project-case-highlight,
    .service-subgrid > div,
    .detail-heading,
    .detail-cta,
    .project-photo-grid figure,
    .clients-inner,
    .blog-topic-card,
    .contact-copy {
      animation: corporacion-scroll-reveal 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 36%;
    }
  }
}

@keyframes corporacion-scroll-reveal {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready {
    opacity: 1;
    translate: 0 0;
    animation: none !important;
    transition: none !important;
  }
}

/* Scroll-linked image motion: a restrained zoom and lift as media enters view. */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .service-card-image-slot > img,
    .detail-media-slot > img,
    .case-media-slot > img,
    .service-case-highlight-media img,
    .project-photo-grid img {
      animation: corporacion-image-scroll 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 48%;
    }
  }
}

@keyframes corporacion-image-scroll {
  from { scale: 1.045; translate: 0 6px; }
  to { scale: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card-image-slot > img,
  .detail-media-slot > img,
  .case-media-slot > img,
  .service-case-highlight-media img,
  .project-photo-grid img {
    animation: none !important;
    scale: 1 !important;
    translate: 0 0 !important;
  }
}


/* Blog corporativo: tarjetas editoriales coherentes con la identidad del sitio. */
.blog-hero .inner-hero-grid { align-items: center; }
.blog-hero-link { display: inline-flex; margin-top: 24px; }
.blog-topics-section { padding: 88px 0 100px; background: var(--paper); }
.blog-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-topic-card {
  min-width: 0;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid #dce6ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(9,43,76,.045);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.blog-topic-card:hover { transform: translateY(-4px); border-color: #bfd6e5; box-shadow: 0 18px 36px rgba(9,43,76,.09); }
.blog-topic-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.blog-topic-number { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.blog-topic-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d8e6ef; border-radius: 50%; background: #f2f8fb; color: var(--blue); font-size: 16px; }
.blog-topic-card .card-kicker { margin-bottom: 8px; }
.blog-topic-card h3 { margin: 0 0 11px; color: var(--navy); font-size: 18px; line-height: 1.34; letter-spacing: -.025em; }
.blog-topic-card > p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.68; }
.blog-topic-meta { margin-top: auto; padding-top: 21px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
html[data-theme="night"] .blog-topics-section { background-color: #0e1c29; }
html[data-theme="night"] .blog-topic-card { border-color: #2a4053; background: #142536; }
html[data-theme="night"] .blog-topic-mark { border-color: #31495f; background: #13283a; }
@media (max-width: 980px) {
  .blog-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .blog-topics-section { padding: 68px 0 76px; }
  .blog-topic-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-topic-card { min-height: 0; padding: 22px; }
  .blog-topic-card-top { margin-bottom: 21px; }
  .blog-contact-band .contact-band-inner { align-items: flex-start; flex-direction: column; }
}
/* Conserva espacio para cinco enlaces sin sacrificar la navegación en tablet. */
@media (min-width: 761px) and (max-width: 840px) {
  .header-inner { gap: 14px; }
  .header-cta { display: none; }
  .primary-nav { gap: clamp(13px, 1.7vw, 17px); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-topic-card,
  .blog-topic-card:hover { transform: none; transition: none; }
}

/* Artículos del blog: lectura clara, referencias y navegación entre temas. */
.blog-topic-link { min-height: 100%; display: flex; flex-direction: column; color: inherit; }
.blog-topic-card p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.68; }
.blog-topic-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.blog-topic-read { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--blue); font-size: 12px; font-weight: 800; }
.blog-topic-read span { transition: transform .2s ease; }
.blog-topic-link:hover .blog-topic-read span { transform: translateX(4px); }
.article-hero .inner-hero-grid { align-items: center; }
.article-hero h1 { max-width: 820px; margin: 18px 0 15px; color: #fff; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; }
.article-hero .inner-hero-grid > div:first-child > p:not(.eyebrow):not(.article-meta) { max-width: 760px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; color: #bad0df; font-size: 11px; }
.article-breadcrumb a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.article-breadcrumb a:hover { color: #9dd9f6; }
.article-deck { max-width: 740px; margin: 0; color: #d2e0ea; font-size: 17px; line-height: 1.72; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; color: #a9c4d7; font-size: 11px; font-weight: 700; }
.article-meta span:first-child { color: var(--gold); }
.article-reading { padding: 70px 0 92px; background: var(--paper); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 34px; }
.article-body { min-width: 0; padding: clamp(24px, 4vw, 52px); border: 1px solid #e1e8ee; border-radius: 12px; background: #fff; box-shadow: 0 14px 45px rgba(9,43,76,.055); }
.article-body .article-intro { margin: 0 0 34px; color: var(--navy); font-size: 19px; font-weight: 600; line-height: 1.75; }
.article-body section { margin-top: 34px; }
.article-body h2 { margin: 0 0 13px; color: var(--navy); font-size: clamp(23px, 2.7vw, 31px); line-height: 1.22; }
.article-body p { margin: 0 0 17px; color: #526a7e; font-size: 15px; line-height: 1.85; }
.article-body a:not(.article-end-links a) { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(8,121,188,.3); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body ul, .article-body ol { margin: 0 0 19px; padding-left: 22px; color: #526a7e; }
.article-body li { margin: 0 0 10px; padding-left: 4px; line-height: 1.75; }
.article-body li::marker { color: var(--blue); font-weight: 800; }
.article-body strong { color: var(--navy); }
.article-references { padding-top: 24px; border-top: 1px solid var(--line); }
.article-references h2 { font-size: 21px; }
.article-reference-list { display: grid; gap: 6px; }
.article-note { padding: 14px 16px; border-left: 3px solid var(--gold); background: #f5f8fb; font-size: 13px !important; }
.article-end-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-end-links a { color: var(--blue); font-size: 12px; font-weight: 800; }
.article-sidebar { position: sticky; top: 108px; display: grid; gap: 16px; }
.article-sidebar-card { padding: 23px; border: 1px solid #dfe7ee; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(9,43,76,.05); }
.article-sidebar-card .eyebrow { margin-bottom: 12px; font-size: 9px; }
.article-sidebar-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 20px; line-height: 1.25; letter-spacing: -.03em; }
.article-sidebar-card > p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.article-sidebar-cta .button { width: 100%; }
.article-related ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.article-related li { border-top: 1px solid var(--line); }
.article-related li:first-child { border-top: 0; }
.article-related li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: #526a7e; font-size: 12px; font-weight: 700; line-height: 1.45; }
.article-related li a:hover { color: var(--blue); }
.article-related li a span { flex: 0 0 auto; color: var(--blue); }
html[data-theme="night"] .article-reading { background: #0e1c29; }
html[data-theme="night"] .article-body,
html[data-theme="night"] .article-sidebar-card { border-color: #2a4053; background: #142536; }
html[data-theme="night"] .article-body h2,
html[data-theme="night"] .article-body strong,
html[data-theme="night"] .article-sidebar-card h2 { color: #e1edf5; }
html[data-theme="night"] .article-body p,
html[data-theme="night"] .article-body ul,
html[data-theme="night"] .article-body ol,
html[data-theme="night"] .article-related li a { color: #b7c7d4; }
html[data-theme="night"] .article-body .article-intro { color: #d5e4ee; }
html[data-theme="night"] .article-note { border-color: var(--gold); background: #1b3041; }
html[data-theme="night"] .article-references,
html[data-theme="night"] .article-end-links,
html[data-theme="night"] .article-related li { border-color: #2a4053; }
html[data-theme="night"] .article-sidebar-card > p:not(.eyebrow) { color: #b7c7d4; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .article-hero h1 { font-size: clamp(32px, 9vw, 43px); }
  .article-deck { font-size: 15px; }
  .article-reading { padding: 42px 0 62px; }
  .article-body { padding: 24px 20px; }
  .article-body .article-intro { font-size: 17px; }
  .article-body p { font-size: 14px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-end-links { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-topic-read span { transition: none; }
}

html[data-theme="night"] .client-card { border-color: #30485c; background: #142536; color: #e1edf5; box-shadow: 0 9px 24px rgba(0,0,0,.16); }
html[data-theme="night"] .client-card:hover { border-color: #3d6680; background: #192e40; color: #77c9ee; }

/* Homologación: evidencia documental visible en la página de servicios. */
.certificate-feature-section { padding: 30px 0 0; background: var(--white); }
.certificate-feature {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: 24px clamp(22px, 4vw, 42px);
  border: 1px solid #dce6ed;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: linear-gradient(120deg, #f5f9fc, #fff 70%);
  box-shadow: 0 14px 40px rgba(9,43,76,.07);
}
.certificate-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.certificate-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e1e9;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9,43,76,.13);
  transition: transform .22s ease, box-shadow .22s ease;
}
.certificate-preview:hover img,
.certificate-preview:focus-visible img { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(9,43,76,.2); }
.certificate-preview:focus-visible,
.certificate-view-link:focus-visible,
.trust-proof-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.certificate-feature-copy .card-kicker { margin: 0 0 9px; color: var(--blue); }
.certificate-feature-copy h2 { margin: 0 0 11px; color: var(--navy); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.certificate-feature-copy > p:not(.card-kicker) { max-width: 760px; margin: 0; color: #526a7e; font-size: 14px; line-height: 1.72; }
.certificate-feature-copy > p strong { color: var(--navy); }
.certificate-facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0 14px; }
.certificate-facts span { display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 11px; border: 1px solid #dce6ed; border-radius: 6px; background: rgba(255,255,255,.8); color: #526a7e; font-size: 10px; }
.certificate-facts strong { color: var(--navy); font-size: 12px; }
.certificate-view-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 12px; font-weight: 800; }
.certificate-feature-section + .service-detail-section { padding-top: 44px; }
.certificate-dialog {
  width: min(96vw, 1360px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e1e9;
  border-radius: 12px;
  background: #fff;
  color: #18344f;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.certificate-dialog::backdrop { background: rgba(5,20,34,.76); backdrop-filter: blur(4px); }
.certificate-dialog-shell { display: flex; max-height: 92vh; flex-direction: column; }
.certificate-dialog-header,
.certificate-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; }
.certificate-dialog-header { border-bottom: 1px solid #e4ebf0; }
.certificate-dialog-header .card-kicker { margin: 0 0 3px; }
.certificate-dialog-header h2 { margin: 0; color: var(--navy); font-size: 18px; }
.certificate-dialog-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #dbe4eb; border-radius: 50%; background: #f5f8fa; color: var(--navy); cursor: pointer; font-size: 24px; line-height: 1; }
.certificate-dialog-close:hover { border-color: var(--blue); background: #edf6fb; }
.certificate-dialog-image-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px; background: #e9eef2; text-align: center; }
.certificate-dialog-image-wrap img { display: block; width: auto; max-width: 100%; height: auto; max-height: none; margin: 0 auto; object-fit: contain; vertical-align: top; }
.certificate-dialog-footer { min-height: 48px; border-top: 1px solid #e4ebf0; color: #61788b; font-size: 11px; }
.certificate-dialog-footer a { color: var(--blue); font-weight: 800; }
.trust-proof-link { width: fit-content; color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.trust-proof-link:hover { text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="night"] .certificate-feature-section { background: #0b1723; }
html[data-theme="night"] .certificate-feature { border-color: #2a4053; border-left-color: #70c9ef; background: linear-gradient(120deg, #142536, #101f2d 70%); }
html[data-theme="night"] .certificate-feature-copy h2,
html[data-theme="night"] .certificate-feature-copy > p strong,
html[data-theme="night"] .certificate-facts strong,
html[data-theme="night"] .certificate-dialog-header h2 { color: #e8f0f6; }
html[data-theme="night"] .certificate-feature-copy > p:not(.card-kicker),
html[data-theme="night"] .certificate-facts span { color: #b7c7d4; }
html[data-theme="night"] .certificate-facts span { border-color: #30485c; background: #172c3e; }
html[data-theme="night"] .certificate-dialog { border-color: #2a4053; background: #142536; color: #dce8f0; }
html[data-theme="night"] .certificate-dialog-header,
html[data-theme="night"] .certificate-dialog-footer { border-color: #2a4053; }
html[data-theme="night"] .certificate-dialog-close { border-color: #30485c; background: #1a3144; color: #e8f0f6; }
html[data-theme="night"] .certificate-dialog-image-wrap { background: #0d1924; }
@media (max-width: 760px) {
  .certificate-feature-section { padding-top: 22px; }
  .certificate-feature { grid-template-columns: 96px minmax(0,1fr); gap: 18px; padding: 17px; border-radius: 9px; }
  .certificate-preview { gap: 6px; font-size: 9px; }
  .certificate-feature-copy .card-kicker { font-size: 8px; line-height: 1.5; }
  .certificate-feature-copy h2 { font-size: 19px; }
  .certificate-feature-copy > p:not(.card-kicker) { font-size: 12px; line-height: 1.6; }
  .certificate-facts { gap: 6px; margin: 12px 0; }
  .certificate-facts span { gap: 4px; padding: 6px 8px; font-size: 9px; }
  .certificate-facts strong { font-size: 10px; }
  .certificate-dialog { width: 96vw; max-height: 94vh; border-radius: 9px; }
  .certificate-dialog-shell { max-height: 94vh; }
  .certificate-dialog-header, .certificate-dialog-footer { padding: 11px 13px; }
  .certificate-dialog-header h2 { font-size: 15px; }
  .certificate-dialog-image-wrap { padding: 8px; }
  .certificate-dialog-image-wrap img { max-height: none; }
  .certificate-dialog-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (max-width: 420px) {
  .certificate-feature { grid-template-columns: 78px minmax(0,1fr); gap: 13px; padding: 14px; }
  .certificate-feature-copy h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-preview img { transition: none; }
  .certificate-preview:hover img,
  .certificate-preview:focus-visible img { transform: none; }
}

/* Logos de clientes en la cinta de Inicio. */
.client-marquee .client-card { width: clamp(150px, 18vw, 202px); min-width: 0; height: 96px; padding: 9px 14px; background: #fff; }
.client-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.about-intro p + p, .certificate-feature-copy p + p { margin-top: .7em; }
