:root {
  --blue-950: #071c32;
  --blue-900: #0b2d4d;
  --blue-700: #155b96;
  --blue-500: #1e89c8;
  --cyan-400: #49c6d8;
  --green-500: #65a844;
  --lime-300: #c7df55;
  --ink: #14202b;
  --muted: #5f6f7d;
  --line: #d9e3ea;
  --paper: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(7, 28, 50, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

body[data-somasi-loading] > .site-header,
body[data-somasi-loading] > main,
body[data-somasi-loading] > .site-footer,
.somasi-wp-site[data-somasi-loading] {
  opacity: 0;
  visibility: hidden;
}

body:not([data-somasi-loading]) > .site-header,
body:not([data-somasi-loading]) > main,
body:not([data-somasi-loading]) > .site-footer,
.somasi-wp-site:not([data-somasi-loading]) {
  opacity: 1;
  visibility: visible;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 227, 234, 0.82);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(7, 28, 50, 0.08);
}

.brand img {
  width: 156px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--blue-950);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--blue-700);
  background: #eaf5fb;
}

.main-nav a.is-featured {
  color: var(--white);
  background: var(--blue-700);
}

.main-nav a.is-featured:hover,
.main-nav a.is-featured.is-active {
  color: var(--white);
  background: var(--blue-500);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--blue-950);
}

.hero {
  min-height: 82svh;
  position: relative;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--blue-950);
}

.hero-home {
  height: 706px;
  min-height: 0;
}

.page-hero {
  min-height: 58svh;
  position: relative;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--blue-950);
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 28, 50, 0.92) 0%, rgba(7, 28, 50, 0.62) 56%, rgba(7, 28, 50, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 28, 50, 0.76) 0%, rgba(7, 28, 50, 0) 58%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 60px;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.05rem, 4.25vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--cyan-400);
  text-decoration: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 28, 50, 0.92) 0%, rgba(7, 28, 50, 0.72) 42%, rgba(7, 28, 50, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 28, 50, 0.78) 0%, rgba(7, 28, 50, 0) 52%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  min-width: 0;
  margin: 0 auto;
  padding: 118px 0 34px;
}

.hero-home .hero-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  padding: 108px 0 0;
}

.hero-copy {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cyan-400);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--lime-300);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.78rem, 3.45vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  margin-top: 26px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  color: var(--white);
  background: var(--blue-500);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-700);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--lime-300);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  align-self: end;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
}

.stat {
  min-height: 92px;
  padding: 16px 18px;
  background: rgba(7, 28, 50, 0.5);
}

.stat strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.35rem, 2.15vw, 2.15rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(70px, 9vw, 118px) 0;
  scroll-margin-top: 76px;
}

.section-white {
  background: var(--white);
}

.section-light {
  background: var(--paper);
}

.section-ink {
  color: var(--white);
  background: var(--blue-950);
}

.section-contact {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 28, 50, 0.98), rgba(11, 45, 77, 0.94)),
    url("../assets/images/slider-ambiente-2.jpg") center/cover;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.75rem, 3.35vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-ink .section-title,
.section-contact .section-title {
  color: var(--white);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-ink .lead,
.section-contact .lead {
  color: rgba(255, 255, 255, 0.76);
}

.section-ink .feature-band h2,
.section-contact .feature-band h2 {
  color: var(--white);
}

.section-ink .feature-band p,
.section-contact .feature-band p {
  color: rgba(255, 255, 255, 0.78);
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.narrative {
  display: grid;
  gap: 22px;
}

.narrative p {
  margin: 0;
  color: #3f5160;
  font-size: 1.03rem;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-900);
  background: var(--white);
  font-weight: 800;
}

.info-panel {
  border-left: 5px solid var(--blue-500);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-panel h3,
.office h4 {
  margin: 0 0 10px;
  color: var(--blue-950);
}

.office {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.office:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.office p {
  margin: 4px 0;
  color: #4c5f70;
}

.service-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.service-tabs {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
}

.service-tab {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--blue-950);
  background: var(--white);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.service-tab.is-active,
.service-tab:hover {
  color: var(--white);
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.service-detail {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.62fr);
  gap: 28px;
  align-items: stretch;
}

.service-copy {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-copy h3 {
  margin: 0 0 14px;
  color: var(--blue-950);
  font-size: clamp(1.35rem, 2.55vw, 2.15rem);
  line-height: 1.08;
}

.service-copy p {
  margin: 0 0 24px;
  color: #415464;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(101, 168, 68, 0.16);
}

.service-visual {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.lab-media {
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
}

.lab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.accordion-button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  padding: 0 18px;
  color: var(--white);
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-950);
  background: var(--cyan-400);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 2px;
}

.accordion-panel {
  display: none;
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.78);
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.accordion-light .accordion-item {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(7, 28, 50, 0.06);
}

.accordion-light .accordion-button {
  color: var(--blue-950);
}

.accordion-light .accordion-panel {
  color: #415464;
}

.accordion.compact .accordion-button {
  min-height: 56px;
}

.accordion.compact .accordion-panel p {
  margin-top: 0;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: start;
}

.service-panel p {
  margin: 0 0 18px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.link-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--blue-700);
  background: #edf7fc;
  font-weight: 800;
  text-decoration: none;
}

.team-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.preview-grid,
.office-grid,
.quality-grid,
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quality-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.lab-downloads {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.lab-downloads h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.18rem;
}

.lab-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lab-download-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: inherit;
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lab-download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 137, 200, 0.45);
  box-shadow: 0 14px 34px rgba(7, 28, 50, 0.1);
}

.lab-download-card span {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 900;
}

.lab-download-card strong {
  color: var(--blue-950);
  line-height: 1.16;
}

.lab-download-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.preview-card {
  min-height: 318px;
  display: grid;
  grid-template-rows: 160px auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: inherit;
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.preview-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.preview-card strong {
  color: var(--blue-950);
  font-size: 1.05rem;
}

.preview-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.person,
.department,
.document-card {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.person {
  display: grid;
  grid-template-rows: 210px auto;
  gap: 18px;
  padding: 0;
  overflow: hidden;
}

.person > div:not(.person-photo) {
  padding: 0 22px 24px;
}

.person-photo {
  background: #eaf5fb;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person h3,
.department h3,
.document-card h3 {
  margin: 0 0 8px;
  color: var(--blue-950);
  font-size: 1.12rem;
}

.person strong {
  color: var(--blue-700);
}

.person p,
.department p,
.document-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.staff-groups {
  display: grid;
  gap: 22px;
}

.staff-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(7, 28, 50, 0.06);
}

.staff-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--white);
  background: var(--blue-900);
}

.staff-group-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.staff-group-head span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.staff-card {
  min-height: 156px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--white);
}

.staff-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #eaf5fb;
}

.staff-card h4 {
  margin: 0 0 5px;
  color: var(--blue-950);
  font-size: 1rem;
  line-height: 1.15;
}

.staff-card strong {
  display: block;
  color: var(--blue-700);
  font-size: 0.88rem;
  line-height: 1.25;
}

.staff-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.clients-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.74fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.clients-copy {
  display: grid;
  gap: 16px;
}

.clients-copy p {
  margin: 0;
  color: #425665;
  font-size: 1.04rem;
}

.clients-strip {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 28, 50, 0.98), rgba(21, 91, 150, 0.94)),
    url("../assets/images/slider-ambiente-1.jpg") center/cover;
}

.clients-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.clients-strip-inner div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px clamp(18px, 3vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.clients-strip-inner div:first-child {
  border-left: 0;
}

.clients-strip-inner strong {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1;
}

.clients-strip-inner span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.client-logo-card {
  min-height: 136px;
  display: grid;
  grid-template-rows: 76px auto;
  gap: 14px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 14px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 28, 50, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.client-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 137, 200, 0.42);
  box-shadow: 0 16px 44px rgba(7, 28, 50, 0.12);
}

.client-logo-card img {
  max-width: 150px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-logo-card span {
  color: var(--blue-950);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
}

.oil-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-950);
}

.oil-hero-bg,
.oil-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.oil-hero-bg img {
  object-fit: cover;
  filter: saturate(0.95);
}

.oil-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 122, 24, 0.38), transparent 26%),
    linear-gradient(90deg, rgba(7, 28, 50, 0.96) 0%, rgba(7, 28, 50, 0.8) 48%, rgba(7, 28, 50, 0.34) 100%),
    linear-gradient(0deg, rgba(7, 28, 50, 0.82) 0%, rgba(7, 28, 50, 0) 58%);
}

.oil-hero-inner {
  position: relative;
  z-index: 2;
  padding: 132px 0 72px;
}

.oil-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.58fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: end;
}

.oil-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 4.45vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.oil-hero-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.14rem;
}

.oil-brand-card {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1536 / 800;
  margin: 0 0 34px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.oil-brand {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.oil-button {
  background: #f47a1f;
}

.oil-button:hover {
  background: #d95d12;
}

.oil-mark-card {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.oil-mark-card img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  border-radius: 50%;
  padding: 18px;
  background: #f7f7f7;
}

.oil-mark-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
}

.oil-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.oil-service-card {
  min-height: 286px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 28, 50, 0.06);
}

.oil-service-card h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.15rem;
  line-height: 1.12;
}

.oil-service-card p {
  margin: 0;
  color: var(--muted);
}

body[data-page="gas-oil"] .section-title {
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: 1.1;
}

.oil-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #f47a1f;
}

.oil-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.oil-ldar {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 28, 50, 0.98), rgba(11, 45, 77, 0.94)),
    url("../assets/images/seguridad-industrial.jpg") center/cover;
}

.oil-ldar-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.oil-ldar h2,
.oil-contact h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: 1.1;
}

.oil-ldar p,
.oil-contact p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.oil-regulations {
  display: grid;
  gap: 14px;
}

.oil-regulations article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.oil-regulations p {
  margin: 0;
}

.oil-measure-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.oil-measure-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oil-measure-list li {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-left: 4px solid #f47a1f;
  border-radius: 6px;
  padding: 10px 14px;
  color: #405466;
  background: var(--white);
  font-weight: 800;
}

.oil-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.oil-method-grid article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 28, 50, 0.06);
}

.oil-method-grid span {
  display: block;
  color: #f47a1f;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.oil-method-grid h3 {
  margin: 18px 0 10px;
  color: var(--blue-950);
}

.oil-method-grid p {
  margin: 0;
  color: var(--muted);
}

.oil-contact {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.oil-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.56fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.oil-contact-card {
  display: grid;
  gap: 14px;
  border-top: 5px solid #f47a1f;
  border-radius: 8px;
  padding: 26px;
  color: var(--blue-950);
  background: var(--white);
}

.oil-contact-card a {
  color: var(--blue-700);
  font-weight: 900;
  text-decoration: none;
}

.oil-contact-card p {
  margin: 0;
  color: var(--muted);
}

.equipment-grid {
  grid-template-columns: repeat(4, 1fr);
}

.equipment-item {
  min-height: 116px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: #405466;
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.feature-band.reverse {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 0.85fr);
}

.feature-band h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.75rem, 3.35vw, 3.2rem);
  line-height: 1.02;
}

.feature-band p {
  margin: 18px 0 0;
  color: #425665;
  font-size: 1.05rem;
}

.feature-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.document-card a {
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form-shell {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form-shell h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
}

.contact-form-shell p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form-shell .contact-form,
.contact-form-embed {
  margin-top: 22px;
}

.field,
.contact-form-embed .wpcf7-form p {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.contact-form-embed label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.contact-form-embed input,
.contact-form-embed select,
.contact-form-embed textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.field textarea,
.contact-form-embed textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-form-embed input:focus,
.contact-form-embed select:focus,
.contact-form-embed textarea:focus {
  border-color: var(--cyan-400);
}

.contact-form-embed input[type="submit"],
.contact-form-embed button {
  width: auto;
  min-height: 46px;
  border-color: var(--blue-500);
  padding: 0 22px;
  color: var(--white);
  background: var(--blue-500);
  cursor: pointer;
  font-weight: 900;
}

.contact-form-embed .wpcf7-not-valid-tip,
.contact-form-embed .wpcf7-response-output {
  color: var(--white);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.72);
  background: #051626;
}

.site-footer img {
  width: 132px;
}

.site-footer p {
  max-width: 560px;
  margin: 10px 0 0;
}

.footer-nav {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  color: var(--white);
  background: #20c463;
  box-shadow: 0 16px 38px rgba(7, 28, 50, 0.22), 0 0 0 8px rgba(32, 196, 99, 0.16);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #178448;
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  display: block;
  fill: currentColor;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 12px;
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: flex-start;
  justify-self: start;
  gap: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(226, 237, 246, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-social a:hover {
  color: var(--cyan-400);
}

.footer-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 84px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-home {
    height: 820px;
    min-height: 0;
  }

  .section-head,
  .company-grid,
  .service-layout,
  .service-detail,
  .service-panel,
  .lab-grid,
  .feature-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .clients-intro,
  .clients-strip-inner,
  .oil-hero-grid,
  .oil-ldar-grid,
  .oil-measure-grid,
  .oil-contact-grid {
    grid-template-columns: 1fr;
  }

  .clients-strip-inner div {
    min-height: 104px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .clients-strip-inner div:first-child {
    border-top: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid,
  .doc-grid,
  .department-grid,
  .preview-grid,
  .office-grid,
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .oil-service-grid,
  .oil-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-band.reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 68px;
  }

  .brand img {
    width: 134px;
  }

  .hero-inner {
    padding-top: 96px;
  }

  .hero-home .hero-inner {
    padding-top: 92px;
    grid-template-rows: auto auto 1fr auto;
  }

  .page-hero {
    min-height: 58svh;
  }

  .page-hero-inner {
    padding: 104px 0 44px;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    max-width: calc(100vw - 36px);
    text-wrap: wrap;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 6.8vw, 2rem);
    line-height: 1.03;
    text-wrap: wrap;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 0.98rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-tabs,
  .team-grid,
  .doc-grid,
  .department-grid,
  .preview-grid,
  .office-grid,
  .quality-grid,
  .lab-downloads,
  .lab-download-grid,
  .equipment-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .oil-hero {
    min-height: auto;
  }

  .oil-hero-inner {
    padding: 92px 0 48px;
  }

  .oil-hero-grid,
  .oil-hero-copy,
  .oil-mark-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .oil-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 7.4vw, 2.18rem);
    overflow-wrap: anywhere;
  }

  .oil-hero-copy p:not(.eyebrow) {
    max-width: 100%;
  }

  .oil-brand-card {
    width: 100%;
    max-width: 360px;
    margin-bottom: 24px;
  }

  .oil-mark-card {
    padding: 20px;
  }

  .oil-service-grid,
  .oil-measure-list,
  .oil-method-grid {
    grid-template-columns: 1fr;
  }

  .oil-service-card {
    min-height: 0;
  }

  .client-logo-card {
    min-height: 126px;
    grid-template-rows: 66px auto;
    padding: 14px 10px;
  }

  .client-logo-card img {
    max-width: 128px;
    max-height: 58px;
  }

  .client-logo-card span {
    font-size: 0.76rem;
  }

  .hero-home {
    height: 820px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    min-height: 70px;
    padding: 12px;
  }

  .stat strong {
    font-size: 1.32rem;
  }

  .stat span {
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-card {
    min-height: 0;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }

  .lab-media,
  .service-visual {
    min-height: 320px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-nav {
    justify-items: start;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .oil-hero-inner {
    width: min(354px, calc(100% - 36px));
    margin-left: 18px;
    margin-right: auto;
  }

  .oil-hero-copy h1 {
    font-size: clamp(1.66rem, 6.6vw, 1.88rem);
    line-height: 1.05;
  }
}

/* WordPress isolation: keep the SOMASI frontend independent from theme typography. */
.somasi-wp-site {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
}

.somasi-wp-site *,
.somasi-wp-site *::before,
.somasi-wp-site *::after {
  box-sizing: border-box;
}

.somasi-wp-site :where(h1, h2, h3, h4, h5, h6, p, a, span, strong, small, li, button, input, select, textarea, label) {
  font-family: inherit !important;
  letter-spacing: 0 !important;
}

.somasi-wp-site :where(h1, h2, h3, h4, h5, h6, strong, .button, .main-nav a, .eyebrow, .stat span, .footer-links a, .footer-social a) {
  font-weight: 800;
}

.somasi-wp-site :where(.lead, p, li) {
  font-weight: 400;
}

.somasi-wp-site :where(.section-title, .feature-band h2, .page-hero h1, .hero h1, .oil-hero-copy h1) {
  font-weight: 800 !important;
}

.somasi-wp-site[data-somasi-app="gas-oil"] .section-title,
.somasi-page-gas-oil .section-title {
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: 1.1;
}
