/* =========================================================
   Pharma Piping — Onepage
   Brand: #0091EA (azul), acero inoxidable, blanco pharma
   ========================================================= */

:root {
  --blue: #0091EA;
  --blue-600: #007ac2;
  --blue-700: #0369a1;
  --blue-soft: #e6f4fd;
  --ink: #0c1922;
  /* navy/charcoal */
  --ink-2: #12242f;
  --ink-3: #1b3340;
  --steel: #5b6b76;
  /* body text on light */
  --muted: #8a97a0;
  --line: #e6ebef;
  --line-2: #d7dee3;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 25, 34, .06), 0 2px 8px rgba(12, 25, 34, .05);
  --shadow: 0 10px 30px rgba(12, 25, 34, .10);
  --shadow-lg: 0 24px 60px rgba(12, 25, 34, .18);
  --container: 1180px;
  --ff-head: "Archivo", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none
}

ul {
  list-style: none
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

/* ---------- Typography helpers ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-head);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink)
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue-600);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue);
  display: inline-block
}

.kicker--light {
  color: #7fd0ff
}

.kicker--light::before {
  background: #7fd0ff
}

.hl {
  color: var(--blue)
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: .22s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 145, 234, .28)
}

.btn--primary:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 145, 234, .36)
}

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px)
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  transform: translateY(-2px)
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1.05rem
}

.btn--block {
  width: 100%
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #c4d0d8;
  font-size: .82rem
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: .5rem 24px;
  text-align: center
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem
}

.topbar__sep {
  color: var(--blue);
  font-weight: 700
}

.ic {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: .25s
}

.header.scrolled {
  box-shadow: var(--shadow-sm)
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height .25s
}

.header.scrolled .header__inner {
  height: 66px
}

.brand__logo {
  height: 38px;
  width: auto;
  transition: height .25s
}

.header.scrolled .brand__logo {
  height: 34px
}

.nav {
  display: flex;
  align-items: center;
  gap: .35rem
}

.nav__link {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-2);
  padding: .55rem .8rem;
  border-radius: 8px;
  transition: .18s;
  position: relative
}

.nav__link:hover {
  color: var(--blue-600);
  background: var(--blue-soft)
}

.nav__link.active {
  color: var(--blue-600)
}

.nav__link.active::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .28rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px
}

.nav__cta {
  margin-left: .6rem
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: .28s
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg)
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 6rem 0
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards
}

@keyframes heroZoom {
  to {
    transform: scale(1)
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 20, 28, .94) 0%, rgba(9, 20, 28, .80) 42%, rgba(9, 20, 28, .45) 75%, rgba(9, 20, 28, .30) 100%),
    radial-gradient(1200px 500px at 15% 20%, rgba(0, 145, 234, .20), transparent 60%)
}

.hero__inner {
  position: relative;
  max-width: 1200px
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.3rem
}

.hero__sub {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: #d3dde3;
  max-width: 680px;
  margin-bottom: 2rem
}

.hero__sub strong {
  color: #fff
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .16)
}

.hero__trust li {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e7eef2;
  display: flex;
  align-items: center;
  gap: .55rem
}

.hero__trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue)
}

/* ---------- Value strip ---------- */
.strip {
  background: var(--bg);
  padding: 4.2rem 0 1rem
}

.strip__lead {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  max-width: 960px;
  color: var(--ink-2)
}

.strip__lead strong {
  color: var(--blue-600)
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2.4rem
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .2rem
}

.stat__num {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-600);
  letter-spacing: -.02em
}

.stat__lbl {
  color: var(--steel);
  font-size: .95rem
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0
}

.section--soft {
  background: var(--bg-soft)
}

.section--dark {
  background: var(--ink);
  color: #cdd8de
}

.section--dark .section__title {
  color: #fff
}

.section--dark .section__intro {
  color: #a9b8c1
}

.section__head {
  max-width: 760px;
  margin: 0 auto 3.2rem;
  text-align: center
}

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem)
}

.section__intro {
  color: var(--steel);
  font-size: 1.08rem;
  margin-top: 1rem
}

/* ---------- Cards (servicios) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: .25s;
  position: relative;
  overflow: hidden
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: .3s
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent
}

.card:hover::before {
  transform: scaleX(1)
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.card__title {
  font-size: 1.22rem;
  margin-bottom: .6rem
}

.card__text {
  color: var(--steel);
  font-size: .98rem
}

/* ---------- Proceso ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center
}

.process__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/11
}

.steps {
  display: flex;
  flex-direction: column;
  gap: .4rem
}

.step {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09)
}

.step:last-child {
  border-bottom: none
}

.step__n {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  background: var(--blue);
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.step h3 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: .2rem
}

.step p {
  color: #a9b8c1;
  font-size: .96rem
}

/* ---------- Feature (orbital) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.4rem;
  align-items: center
}

.feature__media {
  position: relative;
  padding-bottom: 2rem;
  padding-right: 1.5rem
}

.feature__img--main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover
}

.feature__img--float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border-radius: 14px;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  object-fit: cover
}

.feature__body .section__title {
  text-align: left
}

.feature__body p {
  color: var(--steel);
  margin-bottom: 1.4rem
}

/* ---------- Checklist ---------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.8rem
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--steel);
  font-size: 1rem
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007ac2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px
}

.section--dark .checklist li {
  color: #b9c7cf
}

.section--dark .checklist li::before {
  background-color: rgba(0, 145, 234, .2)
}

/* ---------- Why (nosotros) ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem
}

.why__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem
}

.why__ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem
}

.why__ic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.why__item h3 {
  font-size: 1.12rem;
  margin-bottom: .5rem
}

.why__item p {
  color: var(--steel);
  font-size: .95rem
}

/* ---------- Calidad ---------- */
.quality {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 3.4rem;
  align-items: center
}

.quality__body .section__title {
  text-align: left
}

.quality__body p {
  color: var(--steel);
  margin-bottom: 1.6rem
}

.norms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem
}

.norm {
  flex: 1 1 160px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 1rem 1.2rem
}

.norm__t {
  display: block;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink)
}

.norm__d {
  display: block;
  color: var(--steel);
  font-size: .86rem;
  margin-top: .15rem
}

.quality__badge {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem
}

.quality__badge img {
  width: 170px;
  margin: 0 auto 1.4rem;
  filter: saturate(1.05)
}

.quality__badge p {
  color: var(--steel);
  font-size: .95rem
}

/* ---------- Sectores ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem
}

.sector {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  transition: .22s
}

.sector:hover {
  background: var(--ink-3);
  transform: translateY(-3px);
  border-color: rgba(0, 145, 234, .4)
}

.sector svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.sector span {
  font-family: var(--ff-head);
  font-weight: 600;
  color: #e7eef2;
  font-size: 1rem
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm)
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease
}

.gallery__item:hover img {
  transform: scale(1.07)
}

.gallery__item--tall {
  grid-row: span 2
}

.gallery__item--wide {
  grid-column: span 2
}

/* ---------- Contacto ---------- */
.contact {
  background: var(--bg)
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.4rem;
  align-items: start
}

.contact__intro .section__title {
  text-align: left
}

.contact__intro p {
  color: var(--steel);
  margin-bottom: 1.6rem
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--ink-2);
  font-weight: 500
}

.contact__list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.contact__list a:hover {
  color: var(--blue-600)
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow)
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-2);
  margin-bottom: 1rem
}

.form input,
.form textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: .18s;
  width: 100%
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted);
  font-weight: 400
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 145, 234, .12)
}

.form textarea {
  resize: vertical
}

.form__note {
  font-family: var(--ff-body);
  font-size: .85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1rem;
  text-align: center
}

.form__note a {
  color: var(--blue-600);
  font-weight: 600
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #a9b8c1;
  padding: 4rem 0 2rem
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.4rem
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.1rem
}

.footer__brand p {
  font-size: .95rem;
  max-width: 340px;
  margin-bottom: 1.2rem
}

.footer__badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap
}

.footer__badges span {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  color: #cdd8de;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  padding: .3rem .6rem
}

.footer__col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem
}

.footer__col a,
.footer__muted {
  display: block;
  color: #a9b8c1;
  font-size: .93rem;
  padding: .28rem 0;
  transition: .16s
}

.footer__col a:hover {
  color: var(--blue)
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 3rem;
  padding-top: 1.6rem;
  font-size: .85rem;
  color: #7d8d97
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 145, 234, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .28s;
  z-index: 50
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.to-top:hover {
  background: var(--blue-600);
  transform: translateY(-3px)
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .hero__bg {
    animation: none
  }

  html {
    scroll-behavior: auto
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:960px) {

  .cards,
  .why,
  .sectors {
    grid-template-columns: repeat(2, 1fr)
  }

  .process,
  .feature,
  .quality,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.4rem
  }

  .feature__media {
    max-width: 520px;
    margin: 0 auto
  }

  .quality__badge {
    max-width: 420px;
    margin: 0 auto
  }

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px
  }

  .gallery__item--wide {
    grid-column: span 2
  }
}

@media (max-width:760px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .2rem;
    background: #fff;
    padding: 6rem 1.6rem 2rem;
    box-shadow: -20px 0 60px rgba(12, 25, 34, .2);
    transform: translateX(100%);
    transition: transform .32s ease;
    z-index: 55
  }

  .nav.open {
    transform: translateX(0)
  }

  .nav__link {
    padding: .9rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line)
  }

  .nav__cta {
    margin: 1rem 0 0;
    text-align: center
  }

  .nav-toggle {
    display: flex;
    z-index: 60
  }

  body.nav-open {
    overflow: hidden
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 25, 34, .5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 54
  }

  .nav-backdrop.show {
    opacity: 1;
    visibility: visible
  }

  .topbar__inner {
    font-size: .75rem
  }

  .topbar__item:nth-child(3),
  .topbar__sep:nth-child(2) {
    display: none
  }
}

@media (max-width:560px) {
  body {
    font-size: 16px
  }

  .container {
    padding: 0 18px
  }

  .section {
    padding: 4rem 0
  }

  .cards,
  .why,
  .sectors,
  .stats {
    grid-template-columns: 1fr
  }

  .form__row {
    grid-template-columns: 1fr
  }

  .footer__inner {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0
  }

  .hero__actions .btn {
    flex: 1
  }

  .feature__img--float {
    width: 42%
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px
  }
}

/* =========================================================
   MULTIPAGE COMPONENTS
   ========================================================= */

/* ---- Nav dropdown (desktop) ---- */
.nav__item {
  position: relative;
  display: flex;
  align-items: center
}

.nav__drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-2);
  padding: .55rem .8rem;
  border-radius: 8px;
  transition: .18s
}

.nav__drop-toggle:hover {
  color: var(--blue-600);
  background: var(--blue-soft)
}

.nav__drop-toggle .chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s;
  z-index: 70
}

.nav__item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px
}

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px)
}

.nav__item--dropdown:hover .chev {
  transform: rotate(180deg)
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .6rem .8rem;
  border-radius: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  transition: .15s
}

.dropdown a small {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .8rem;
  color: var(--muted)
}

.dropdown a:hover {
  background: var(--blue-soft);
  color: var(--blue-600)
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 0 4rem;
  overflow: hidden
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04)
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(9, 20, 28, .95) 0%, rgba(9, 20, 28, .82) 48%, rgba(9, 20, 28, .55) 100%),
    radial-gradient(900px 400px at 12% 15%, rgba(0, 145, 234, .22), transparent 60%)
}

.page-hero__inner {
  position: relative;
  max-width: 840px
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: #fff;
  margin-bottom: .6rem
}

.page-hero__sub {
  color: #cdd8de;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 660px;
  margin-top: 1rem
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .82rem;
  color: #93a6b0;
  margin-bottom: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .06em
}

.crumbs a {
  transition: .15s
}

.crumbs a:hover {
  color: #fff
}

.crumbs .sep {
  color: var(--blue)
}

.crumbs .cur {
  color: #e7eef2
}

/* ---- Prose / article content ---- */
.lead {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 820px;
  margin: 0 auto 1rem;
  text-align: center
}

.prose {
  max-width: 780px;
  margin: 0 auto
}

.prose h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin: 2.6rem 0 1rem
}

.prose h2:first-child {
  margin-top: 0
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 .7rem
}

.prose p {
  color: var(--steel);
  margin-bottom: 1.15rem
}

.prose strong {
  color: var(--ink)
}

.prose ul {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.prose ul li {
  position: relative;
  padding-left: 2rem;
  color: var(--steel)
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007ac2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px
}

/* ---- Split (image + text) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  align-items: center;
  margin: 0 auto;
  max-width: 1080px
}

.split+.split {
  margin-top: 3.5rem
}

.split--reverse .split__media {
  order: 2
}

.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover
}

.split__body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  text-align: left;
  margin-bottom: 1rem
}

.split__body p {
  color: var(--steel);
  margin-bottom: 1rem
}

.split__body .kicker {
  margin-bottom: .8rem
}

/* ---- Highlight box ---- */
.hlbox {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin: 2rem auto;
  max-width: 780px
}

.hlbox h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem
}

.hlbox p {
  color: var(--steel);
  margin: 0
}

/* ---- Info cards (servicios overview / related) ---- */
.icards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem
}

.icard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  transition: .25s;
  position: relative;
  overflow: hidden;
  height: 100%
}

.icard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: .3s
}

.icard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent
}

.icard:hover::before {
  transform: scaleX(1)
}

.icard__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem
}

.icard__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.icard h3 {
  font-size: 1.18rem;
  margin-bottom: .5rem
}

.icard p {
  color: var(--steel);
  font-size: .96rem;
  margin-bottom: 1.1rem
}

.icard__link {
  margin-top: auto;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: .4rem
}

.icard__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s
}

.icard:hover .icard__link svg {
  transform: translateX(4px)
}

/* ---- CTA section (blue) ---- */
.cta {
  background: linear-gradient(120deg, var(--blue-700), var(--blue) 70%);
  color: #fff;
  text-align: center
}

.cta .container {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 720px;
  margin: 0 auto .8rem
}

.cta p {
  color: rgba(255, 255, 255, .9);
  max-width: 620px;
  margin: 0 auto 1.8rem;
  font-size: 1.05rem
}

.cta .btn--primary {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18)
}

.cta .btn--primary:hover {
  background: #eef7fe;
  color: var(--blue-700)
}

.cta .btn--ghost {
  border-color: rgba(255, 255, 255, .7)
}

.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap
}

/* ---- Related pages ---- */
.related {
  border-top: 1px solid var(--line)
}

.related__head {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.6rem
}

.rel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem
}

.rel-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  transition: .22s
}

.rel-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px)
}

.rel-card span {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem
}

.rel-card span svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.rel-card small {
  color: var(--steel);
  font-size: .9rem;
  display: block;
  margin-top: .4rem
}

/* ---- Responsive multipage ---- */
@media (max-width:960px) {

  .icards,
  .rel-cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 560px
  }

  .split--reverse .split__media {
    order: 0
  }
}

@media (max-width:760px) {

  /* dropdown becomes accordion inside slide-in nav */
  .nav__item {
    width: 100%;
    flex-direction: column;
    align-items: stretch
  }

  .nav__drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .9rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0
  }

  .nav__drop-toggle:hover {
    background: none;
    color: var(--ink-2)
  }

  .nav__item--dropdown::after {
    display: none
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
  }

  .nav__item--dropdown.open .dropdown {
    max-height: 420px
  }

  .nav__item--dropdown.open .chev {
    transform: rotate(180deg)
  }

  .dropdown a {
    padding: .7rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft)
  }
}

@media (max-width:560px) {

  .icards,
  .rel-cards {
    grid-template-columns: 1fr
  }

  .page-hero {
    padding: 4rem 0 3rem
  }
}

/* ---- Contact Form 7 Integration ---- */
.wpcf7 {
  width: 100%
}

.wpcf7-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow)
}

.wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-2);
  margin-bottom: 1rem
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: .18s;
  width: 100%
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--muted);
  font-weight: 400
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 145, 234, .12)
}

.wpcf7-form textarea {
  resize: vertical
}

.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: .82rem;
  margin-top: .35rem;
  font-family: var(--ff-body);
  font-weight: 400
}

.wpcf7-response-output {
  margin: 1.2rem 0 0 !important;
  padding: .85rem 1rem !important;
  border-radius: 10px !important;
  font-size: .9rem !important;
  font-family: var(--ff-body) !important;
  border: 1px solid transparent !important
}

.wpcf7-form.sent .wpcf7-response-output {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important
}

.wpcf7-spinner {
  display: inline-block;
  margin-left: .5rem
}