/* MundoHabitaCo: remodeling service cards; scoped to module 298. */
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) {
  --mh-accent: #ff6600;
  --mh-ink: #43474d;
  --mh-line: #e3e7eb;
  --mh-soft: #f4f6f7;
  padding: 8px 0 28px;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArtScroll1 { padding: 8px 4px 20px; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArtScroll2 { width: 100%; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArtPage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  float: none;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt {
  display: flex;
  flex-direction: column;
  float: none;
  clear: none !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 22px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mh-line);
  border-bottom: 3px solid var(--mh-accent);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(67,71,77,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt:hover,
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(67,71,77,.13);
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspImageWrapper {
  order: 0;
  float: none;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  background: var(--mh-soft);
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) img.nspImage {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  transition: transform .35s ease;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt:hover img.nspImage { transform: scale(1.035); }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) h4.nspHeader {
  order: 1;
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 20px 22px 12px;
  text-align: left;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspHeader a { color: var(--mh-ink); }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspHeader a:hover { color: #b94700; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspText:empty { display: none !important; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) a.readon {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  float: none;
  gap: 12px;
  width: auto;
  margin: auto 22px 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--mh-line);
  border-radius: 0;
  background: transparent;
  color: var(--mh-ink);
  font: 600 13px/1.5 "Open Sans", sans-serif;
  text-decoration: none;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) a.readon::after {
  content: "\2192";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mh-soft);
  color: #b94700;
  font: 20px/1 sans-serif;
  transition: background .2s ease, color .2s ease;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) a.readon:hover::after { background: var(--mh-accent); color: #fff; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) a:focus-visible { outline: 3px solid #b94700; outline-offset: -3px; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) #divbotonmasservicios { margin-top: 4px; padding: 8px 0; }
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) #divbotonmasservicios a.readon-button {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--mh-ink);
  border-radius: 7px;
  background: var(--mh-ink);
  color: #fff;
  font: 600 13px/1.6 "Open Sans", sans-serif;
  text-decoration: none;
}
:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) #divbotonmasservicios a.readon-button:hover { background: #fff; color: var(--mh-ink); }
@media (min-width: 768px) and (max-width: 991px) {
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArtPage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArtScroll1 { overflow: visible; padding: 8px 0 16px; }
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArtPage {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-accent) var(--mh-soft);
  }
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt { flex: 0 0 85%; scroll-snap-align: start; }
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) #divbotonmasservicios a.readon-button { max-width: 100%; box-sizing: border-box; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt,
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) img.nspImage,
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) a.readon::after { transition: none; transform: none; }
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt:hover,
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt:focus-within,
  :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, :where(body.home) #nsp-nsp-287) .nspArt:hover img.nspImage { transform: none; }
}
/* End MundoHabitaCo remodeling service cards. */

/* Preserve existing carousel pages and controls, sharing the remodeling grid. */
:is(#nsp-nsp-291, :where(body.home) #nsp-nsp-287) .nspArtScroll1 { overflow: hidden; }
:is(#nsp-nsp-291, :where(body.home) #nsp-nsp-287) .nspArtScroll2 {
  display: flex;
  align-items: flex-start;
  width: 1000%;
}
:is(#nsp-nsp-291, :where(body.home) #nsp-nsp-287) .nspArtPage {
  flex: 0 0 10%;
  width: 10%;
  float: none;
}

@media (min-width: 768px) and (max-width: 800px) {
  body.home :is(#nsp-nsp-291, #nsp-nsp-287) .nspArts { min-height: 40px; }
}
@media (max-width: 767px) {
  body.home :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287) :is(.nspPrev, .nspNext) {
    display: none;
  }
}

/* Remove the old gray installation overlay only on the home page. */
body.home .instalacion-fullwidth::before { content: none; }
body.home #block-construccion { background-color: #292e34 !important; padding: 0 !important; }
body.home #block-construccion > .container { padding-inline: 0; }

/* Shared home service panels: remodeling, construction, installation and express. */
body.home .jv-module:has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) {
  background: #292e34;
  border-radius: 20px;
  padding: 28px 28px 18px;
  margin: 28px 0 36px;
}
body.home .jv-module:has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) > h3.title-module,
body.home .jv-module:has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) > h3.title-module > span {
  color: #fff;
}
body.home .jv-module:has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) > h3.title-module {
  padding: 12px 0 28px;
  margin: 0;
  letter-spacing: .04em;
}
body.home :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287) #divbotonmasservicios { height: auto; min-height: 50px; }
body.home :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287) #divbotonmasservicios a.readon-button {
  background: #ff8a3d;
  border-color: #ff8a3d;
  color: #23272c;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
}
body.home :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287) #divbotonmasservicios a.readon-button:hover {
  background: #ffa366;
  border-color: #ffa366;
  color: #23272c;
}
body.home :is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287) #divbotonmasservicios a.readon-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  body.home .jv-module:has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) { padding: 22px 14px 16px; border-radius: 14px; }
}

/* Full-width background using the existing remodeling section container. */
body.home :is(.position-content-top, .position-construccion-home):has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) {
  background: #292e34;
  box-shadow: 0 0 0 100vmax #292e34;
  clip-path: inset(0 -100vmax);
  margin-top: 28px;
  margin-bottom: 36px;
}
body.home :is(.position-content-top, .position-construccion-home) .jv-module:has(:is(#nsp-nsp-298, #nsp-nsp-291, #nsp-nsp-262, #nsp-nsp-287)) {
  background: transparent;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Dark backgrounds for the four service listing pages only. */
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #block-main {
  background-color: #292e34;
  color: #edf0f3;
}
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #k2Container .itemListCategory {
  background: transparent;
  color: #edf0f3;
}
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #k2Container .itemListCategory h2 {
  color: #fff;
}
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #k2Container .itemListCategory p {
  color: #dbe0e5;
}
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #block-breadcrumb {
  background: #292e34;
  color: #dbe0e5;
  border-bottom: 1px solid #434950;
}
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #block-breadcrumb :is(a, span, li, i) {
  color: #edf0f3;
}
body.inner_page.com_k2.view-itemlist:is(.itemid-400, .itemid-406, .itemid-401, .itemid-402) #k2Container .k2Pagination {
  color: #dbe0e5;
}

/* Remodeling listing: four services in a balanced 2 x 2 grid. */
body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 24px;
}
body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading::before,
body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading::after { display: none; }
body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading > .col-md-4 {
  float: none;
  clear: none;
  width: 100%;
  min-width: 0;
}
body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading .blog-item { margin-bottom: 0; }
body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading .catItemImage img { width: 100% !important; }
@media (max-width: 767px) {
  body.com_k2.view-itemlist.itemid-406 #k2Container #itemListLeading { grid-template-columns: minmax(0, 1fr); }
}

/* Cotizador: Santiago panorama and accessible form contrast. */
body.com_rsform.itemid-386 #block-main {
  background-color: #292e34;
  background-image: linear-gradient(rgba(18,23,29,.34), rgba(18,23,29,.62)), url('/images/cotizador-equipo-renovacion.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px 0;
}
body.com_rsform.itemid-386 #userForm {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 40px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  background: rgba(19,24,30,.84);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}
body.com_rsform.itemid-386 #userForm h2 { color: #fff; margin: 0 0 28px; text-align: center; }
body.com_rsform.itemid-386 #userForm fieldset { background: transparent; border: 0; margin: 0; padding: 0; min-width: 0; }
body.com_rsform.itemid-386 #userForm .control-group { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; }
body.com_rsform.itemid-386 #userForm .control-label {
  float: none;
  width: 160px;
  margin: 0;
  padding-top: 10px;
  text-align: left;
  color: #fff;
  font-weight: 600;
}
body.com_rsform.itemid-386 #userForm .controls { flex: 1; min-width: 0; margin-left: 0; }
body.com_rsform.itemid-386 #userForm :is(.rsform-input-box, .rsform-text-box) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  color: #23272c;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  font: 14px/1.5 "Open Sans", sans-serif;
  box-shadow: none;
}
body.com_rsform.itemid-386 #userForm .rsform-text-box { min-height: 130px; resize: vertical; }
body.com_rsform.itemid-386 #userForm input[readonly] { background: #e7ebef; color: #343a40; }
body.com_rsform.itemid-386 #userForm :is(input, textarea):focus-visible { outline: 3px solid #ff9e5e; outline-offset: 3px; }
body.com_rsform.itemid-386 #userForm .formRequired { color: #ffc28f; }
body.com_rsform.itemid-386 #userForm :is(.formError, .formRed) { color: #ffb4b4 !important; }
body.com_rsform.itemid-386 #userForm .help-block { color: #edf0f3; }
body.com_rsform.itemid-386 #userForm .rsform-submit-button {
  width: auto;
  padding: 13px 24px;
  background: #ff8a3d;
  color: #23272c;
  border: 1px solid #ff8a3d;
  border-radius: 6px;
  font-weight: 700;
  text-shadow: none;
  box-shadow: none;
}
body.com_rsform.itemid-386 #userForm .rsform-submit-button:hover { background: #ffa366; border-color: #ffa366; }
@media (max-width: 767px) {
  body.com_rsform.itemid-386 #block-main { padding: 28px 0; }
  body.com_rsform.itemid-386 #userForm { padding: 26px 18px; }
  body.com_rsform.itemid-386 #userForm .control-group { display: block; }
  body.com_rsform.itemid-386 #userForm .control-label { display: block; width: auto; padding: 0 0 8px; }
}

/* Contact page: Santiago panorama with readable form and contact details. */
body.com_content.itemid-104 #block-main {
  background-color: #292e34;
  background-image: linear-gradient(rgba(18,23,29,.34), rgba(18,23,29,.62)), url('/images/cotizador-panoramica-santiago.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 48px 0;
}
body.com_content.itemid-104 #contacto {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 36px;
  background: rgba(19,24,30,.84);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}
body.com_content.itemid-104 #contacto > tbody { display: block; }
body.com_content.itemid-104 #contacto > tbody > tr {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 44px;
}
body.com_content.itemid-104 #contacto > tbody > tr > td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  border: 0;
}
body.com_content.itemid-104 #contacto :is(h2, p, label, strong) { color: #fff; }
body.com_content.itemid-104 #contacto a { color: #ffc28f; overflow-wrap: anywhere; }
body.com_content.itemid-104 #contacto a:hover { color: #fff; }
body.com_content.itemid-104 #contacto fieldset { background: transparent; border: 0; min-width: 0; }
body.com_content.itemid-104 #contacto :is(.rsform-input-box, .rsform-text-box) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  color: #23272c;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  box-shadow: none;
}
body.com_content.itemid-104 #contacto .rsform-text-box { min-height: 130px; resize: vertical; }
body.com_content.itemid-104 #contacto .formRequired { color: #ffc28f; }
body.com_content.itemid-104 #contacto :is(.formError, .formRed) { color: #ffb4b4 !important; }
body.com_content.itemid-104 #contacto .help-block { color: #edf0f3; }
body.com_content.itemid-104 #contacto :is(input, textarea, a):focus-visible { outline: 3px solid #ff9e5e; outline-offset: 3px; }
body.com_content.itemid-104 #contacto .rsform-submit-button {
  padding: 13px 24px;
  background: #ff8a3d;
  color: #23272c;
  border: 1px solid #ff8a3d;
  border-radius: 6px;
  font-weight: 700;
  text-shadow: none;
  box-shadow: none;
}
body.com_content.itemid-104 #contacto .rsform-submit-button:hover { background: #ffa366; border-color: #ffa366; }
@media (max-width: 991px) {
  body.com_content.itemid-104 #contacto > tbody > tr { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  body.com_content.itemid-104 #block-main { padding: 28px 0; }
  body.com_content.itemid-104 #contacto { padding: 26px 18px; }
}
