.mhotrix-dark {
  background-color: #0b0b0f;
  color: #d1d5db;
}

/* One transparent outline tile for service details and the contact section.
   Its own layer changes opacity without fading or intercepting the content. */
.mhotrix-mechanical-background {
  position: relative;
  isolation: isolate;
  background-color: #0b0b0f;
}

.mhotrix-mechanical-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/fondo_mecanico_oscuro.svg");
  background-repeat: repeat;
  background-position: center top;
  background-size: 960px 800px;
  opacity: 0.09;
}

@media (max-width: 767px) {
  .mhotrix-mechanical-background::before {
    background-size: 600px 500px;
  }
}

/* Keep the shared mobile logo inside the original 80px header. */
@media (max-width: 1199px) {
  .mhotrix-dark .cs_site_header .cs_site_branding {
    height: 164px;
    margin-top: 50px;
  }

  .mhotrix-dark .cs_site_header .cs_site_branding img {
    width: auto;
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .mhotrix-dark .cs_site_header.cs_style_1 .cs_btn.cs_style_1 {
    display: inline-flex;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Service listing: retain its photos, decorative shapes and card geometry. */
.mhotrix-services #servicios-mhotrix .cs_team::before {
  background-color: #17191f;
}

.mhotrix-services #servicios-mhotrix h2 {
  color: #fff;
}

.mhotrix-services #servicios-mhotrix .cs_team_shape {
  opacity: 0.08;
}

.mhotrix-services #servicios-mhotrix .cs_team:hover .cs_team_shape {
  opacity: 0.18;
}

.mhotrix-services #servicios-mhotrix a:focus-visible {
  outline-color: #fff;
}

/* One shared detail template supplies all thirteen pages. */
.mhotrix-service-detail .cs_service_detail_page {
  background-color: #0b0b0f;
  color: #d1d5db;
}

.mhotrix-service-detail .cs_service_whatsapp:focus-visible {
  outline-color: #fff;
}

/* About page: scope colors to the actual existing components. */
.mhotrix-about .cs_section_title,
.mhotrix-about .cs_card.cs_style_4 h3,
.mhotrix-about .mhotrix-beneficios h3,
.mhotrix-about .mhotrix-beneficios .cs_card_icon {
  color: #fff;
}

.mhotrix-about .cs_card.cs_style_4 .cs_card_index_wrap,
.mhotrix-about .cs_card.cs_style_4 .cs_card_content_wrapper,
.mhotrix-about .cs_card.cs_style_4 .cs_card_info {
  background-color: #0b0b0f;
  color: #d1d5db;
  border-color: #6b7280;
}

.mhotrix-about .cs_card.cs_style_4 .cs_card_index {
  color: #fff;
}

.mhotrix-about .cs_card.cs_style_4.active .cs_card_index_wrap {
  box-shadow: inset 4px 0 var(--accent-color);
}

/* Only this ornamental gear is navy; photos and red icons are untouched. */
.mhotrix-about .cs_about_shape_1 img {
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

.mhotrix-about .mhotrix-beneficios .cs_card_content {
  background-color: #17191f;
}

.mhotrix-about .mhotrix-beneficios .cs_card.cs_style_3 svg {
  color: #fff;
}

.mhotrix-about .mhotrix-beneficios .cs_card.cs_style_3:hover svg {
  color: var(--accent-color);
}

/* MHOTRIX dark palette: shared navigation and scoped page treatments. */
/* Match the same cover scale and alignment as the original 1920 x 761 JPGs.
   This overlay covers only their light panel, leaving the artwork exposed. */
.mhotrix-home .cs_home_hero .cs_hero_left_decoration::after {
  content: "";
  position: absolute;
  width: max(100cqw, calc(100cqh * 1920 / 761));
  height: max(100cqh, calc(100cqw * 761 / 1920));
  left: min(0px, calc((100cqw - 100cqh * 1920 / 761) / 2));
  top: 50%;
  transform: translateY(-50%);
  background: url("../img/hero-dark-overlay.svg") center / 100% 100% no-repeat;
}

/* Screen removes the inverted light backing; the seven original parts remain
   in the same pseudo-element with its original size and positioning rules. */
.mhotrix-home .cs_home_hero .cs_hero_left_decoration::before {
  z-index: 1;
  background-color: #fff;
  filter: invert(1) grayscale(1) contrast(1.2);
  mix-blend-mode: screen;
  opacity: 0.65;
}

.mhotrix-home .cs_home_hero .cs_hero_title {
  color: #fff;
}

.mhotrix-home .cs_home_hero .cs_hero_subtitle {
  color: #d1d5db;
}

.mhotrix-home .cs_home_hero .cs_pagination li {
  background-color: #d1d5db;
}

.mhotrix-home .cs_home_hero .cs_pagination li.slick-active,
.mhotrix-home .cs_home_hero .cs_pagination li:hover {
  background-color: var(--accent-color);
}

.mhotrix-home .cs_home_hero .cs_pagination::before {
  background: linear-gradient(180deg, transparent, #d1d5db);
}

.mhotrix-home .cs_home_hero .cs_pagination::after {
  background: linear-gradient(0deg, transparent, #d1d5db);
}

@media (max-width: 1199px) {
  .mhotrix-home .cs_home_hero .cs_hero_left_decoration::after {
    left: 0;
  }
}

.mhotrix-dark .cs_site_header.cs_style_1 {
  background-color: #0b0b0f;
}

.mhotrix-dark .cs_site_header .cs_nav,
.mhotrix-dark .cs_site_header .cs_nav_list a,
.mhotrix-dark .cs_site_header .cs_menu_toggle {
  color: #fff;
}

.mhotrix-dark .cs_site_header .cs_nav_list_wrap {
  background-color: #0b0b0f;
  color: #fff;
}

.mhotrix-dark .cs_site_header .cs_nav_list a:hover {
  color: var(--accent-color);
}

.mhotrix-dark .cs_site_header .cs_nav_list a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.mhotrix-home .cs_home_about,
.mhotrix-home .cs_home_process {
  background-color: #0b0b0f;
  color: #d1d5db;
}

.mhotrix-home .cs_home_about .cs_section_title,
.mhotrix-home .cs_home_about .cs_iconbox_title,
.mhotrix-home .cs_home_about .cs_heading_color,
.mhotrix-home .cs_home_about .cs_experience_title,
.mhotrix-home .cs_home_process .cs_section_title,
.mhotrix-home .cs_home_process .cs_card_content h3 {
  color: #fff;
}

/* Keep the existing photo labels readable against the original photographs. */
.mhotrix-home .cs_home_about .cs_experience_title,
.mhotrix-home .cs_home_about .cs_phone_number {
  text-shadow: 0 1px 4px #0b0b0f, 0 1px 12px #0b0b0f;
}

.mhotrix-home .cs_home_about .cs_esperience_text::after {
  background-color: #0b0b0f;
}

.mhotrix-home .cs_home_about .cs_features_list {
  border-color: #41444d;
}

.mhotrix-home .cs_home_process .cs_card.cs_style_3 .cs_card_content {
  background-color: #17191f;
}

/* Both the existing decorative SVG borders and icons use currentColor. */
.mhotrix-home .cs_home_process .cs_card.cs_style_3 svg {
  color: #fff;
}

.mhotrix-home .cs_home_process .cs_card.cs_style_3:hover svg {
  color: var(--accent-color);
}

/* White headings in the home specialized-care section. */
.mhotrix-home .cs_home_specialized_care .cs_section_title,
.mhotrix-home .cs_home_specialized_care .cs_iconbox_title {
  color: #fff;
}

/* Home services only: preserve the original background image and photo layout. */
.mhotrix-home #servicios-empresa {
  isolation: isolate;
}

.mhotrix-home #servicios-empresa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.mhotrix-home #servicios-empresa .cs_section_title,
.mhotrix-home #servicios-empresa .cs_card_title,
.mhotrix-home #servicios-empresa .cs_card_title a,
.mhotrix-home #servicios-empresa .cs_text_btn {
  color: #fff;
}

.mhotrix-home #servicios-empresa .cs_section_heading_right,
.mhotrix-home #servicios-empresa .cs_card_subtitle {
  color: #e5e7eb;
}

.mhotrix-home #servicios-empresa .cs_card.cs_style_1 .cs_card_info {
  background: rgba(0, 0, 0, 0.82);
  border: 2px solid #fff;
  /* Offset the extra border pixel to retain the original content and card size. */
  padding: 49px 42px 29px;
}

.mhotrix-home #servicios-empresa .cs_card.cs_style_1 .cs_card_icon {
  background-color: var(--heading-color);
  border: 2px solid #fff;
  color: #fff;
}

.mhotrix-home #servicios-empresa .cs_text_btn:hover,
.mhotrix-home #servicios-empresa .cs_text_btn:focus-visible {
  color: var(--accent-color);
}

@media (max-width: 1199px) {
  .mhotrix-home #servicios-empresa .cs_card.cs_style_1 .cs_card_info {
    padding-right: 19px;
    padding-left: 19px;
  }
}