/* IMARK — polish layer over restored Woodmart/Elementor Home
   Goal: enhance full-width video slide + real imagery; do not replace layout. */

:root {
  --imark-ink: #1c1a17;
  --imark-muted: #5c564e;
  --imark-bronze: #9a6b3f;
  --imark-sand: #f6f1ea;
  --imark-white: #ffffff;
  --imark-blue: #1c5d94;
  --imark-blue-deep: #154a78;
  --imark-gold: #fbbc34;
  --imark-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Full-width hero / video slide (solo página Home, NUNCA el footer HF) —— */

/* Evita bordes blancos: el Home va en .container y Elementor estira tarde con JS */
body.home .main-page-wrapper > .container,
body.page-id-2 .main-page-wrapper > .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home .main-page-wrapper > .container > .content-layout-wrapper,
body.page-id-2 .main-page-wrapper > .container > .content-layout-wrapper,
body.home .main-page-wrapper > .container > .row,
body.page-id-2 .main-page-wrapper > .container > .row {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.home,
body.page-id-2 {
  overflow-x: hidden;
}

.elementor-2 > .elementor-section:first-child,
.elementor-2 > .elementor-top-section:first-child,
.elementor-2 > .elementor-element-3fe6274 {
  min-height: 85vh;
  min-height: 85svh;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* Instant real photo while 58MB video buffers (avoids gray flash) */
  background-color: #1c1a17 !important;
  background-image: url("https://devimark.ivancastro.cl/wp-content/uploads/2025/05/JenavaF_Front-1.jpeg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Otras secciones stretched del Home: sin FOUC de márgenes */
body.home .elementor-2 > .elementor-section.elementor-section-stretched,
body.page-id-2 .elementor-2 > .elementor-section.elementor-section-stretched {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.elementor-2 > .elementor-section:first-child > .elementor-background-overlay,
.elementor-2 > .elementor-top-section:first-child > .elementor-background-overlay {
  background-color: #000 !important;
  opacity: 0.35 !important;
}

.elementor-2 > .elementor-section:first-child .elementor-background-video-container,
.elementor-2 > .elementor-top-section:first-child .elementor-background-video-container {
  background: transparent !important;
}

.elementor-2 > .elementor-section:first-child .elementor-background-video-container video,
.elementor-2 > .elementor-top-section:first-child .elementor-background-video-container video {
  object-fit: cover;
}

.elementor-2 > .elementor-section:first-child .elementor-heading-title,
.elementor-2 > .elementor-top-section:first-child .elementor-heading-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.01em;
}

.elementor-2 > .elementor-section:first-child .elementor-button,
.elementor-2 > .elementor-top-section:first-child .elementor-button {
  transition: transform 0.25s var(--imark-ease), background-color 0.25s var(--imark-ease);
}

.elementor-2 > .elementor-section:first-child .elementor-button:hover,
.elementor-2 > .elementor-top-section:first-child .elementor-button:hover {
  transform: translateY(-1px);
}

/* Footer HF: altura al contenido, sin hueco azul */
#colophon,
#colophon .footer-width-fixer,
#colophon .elementor-16500,
#colophon .elementor-section,
#colophon .elementor-container,
#colophon .elementor-widget-wrap {
  min-height: 0 !important;
  height: auto !important;
}

#colophon .elementor-16500 > .elementor-section {
  /* padding controlled by Elementor section settings */
}

/* —— Buttons: rounded across Elementor + Woodmart —— */
body .elementor-button,
body .elementor-button-link,
body a.elementor-button,
body .btn,
body .button,
body button.button,
body input[type="submit"],
body .wd-button,
body .woodmart-hover-btn,
body .wp-block-button__link,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
  border-radius: 999px !important;
}

/* Keep padding balanced so pill shape looks even */
body .elementor-button {
  padding-left: 1.6em !important;
  padding-right: 1.6em !important;
}

/* —— Footer IMARK (referencia tipo columnas + barra legal) —— */
#colophon,
footer.elementor-location-footer,
body .elementor-16500 {
  font-family: Lato, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #fff;
  background: var(--imark-blue);
}

/* Ocultar copyrights/theme spam de Woodmart debajo del HF */
#colophon .copyrights-wrapper,
#colophon .footer-copyrights,
#colophon .wd-copyrights,
body .copyrights-wrapper {
  display: none !important;
}

#colophon a,
body .elementor-16500 a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s var(--imark-ease), opacity 0.2s var(--imark-ease);
}

#colophon a:hover,
body .elementor-16500 a:hover {
  color: var(--imark-gold);
}

body .elementor-16500 .imark-footer-logo img,
#colophon .imark-footer-logo img {
  max-height: 72px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

body .elementor-16500 .imark-footer-heading .elementor-heading-title {
  font-family: Poppins, sans-serif !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 0 1rem;
}

body .elementor-16500 .imark-footer-about p,
body .elementor-16500 .imark-footer-copy p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 34ch;
}

body .elementor-16500 .imark-footer-links .elementor-icon-list-items {
  display: grid;
  gap: 0.55rem;
}

body .elementor-16500 .imark-footer-links .elementor-icon-list-icon {
  display: none;
}

body .elementor-16500 .imark-footer-links .elementor-icon-list-text {
  font-family: Lato, sans-serif;
  color: rgba(255, 255, 255, 0.9);
}

body .elementor-16500 .imark-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body .elementor-16500 .imark-footer-legal .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
  margin: 0;
}

body .elementor-16500 .imark-footer-legal .elementor-icon-list-icon {
  display: none;
}

body .elementor-16500 .imark-footer-legal .elementor-icon-list-text {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

/* Partners row before footer — avoid stretched logo collage */
body.home .elementor-widget-image img[src*="House-Hunters"],
body.home .elementor-widget-image img[src*="Vista-Imark"],
body.home .elementor-widget-image img[src*="BOSY"],
body.page-id-2 .elementor-widget-image img[src*="House-Hunters"],
body.page-id-2 .elementor-widget-image img[src*="Vista-Imark"],
body.page-id-2 .elementor-widget-image img[src*="BOSY"] {
  max-height: 64px;
  width: auto;
  margin-inline: auto;
  opacity: 0.85;
  filter: none;
}

/* Kill leftover redesign chrome if any cached fragments */
.imark-cta-band {
  background: transparent !important;
}

/* Mobile: keep hero usable */
@media (max-width: 767px) {
  .elementor-2 > .elementor-section:first-child,
  .elementor-2 > .elementor-top-section:first-child {
    min-height: 70svh;
  }

  #colophon {
    text-align: left;
  }

  body .elementor-16500 .imark-footer-logo img {
    max-height: 60px !important;
  }

  body .elementor-16500 .imark-footer-legal .elementor-icon-list-items {
    justify-content: flex-start;
  }

  #colophon .elementor-16500 > .elementor-section.imark-footer-main {
    padding-top: 40px !important;
    padding-bottom: 12px !important;
  }
}

/* —— About Us: imagen izquierda de la sección "best investment" —— */
.elementor-element-3b8f1c6 .wd-image,
.elementor-element-3b8f1c6 .elementor-widget-container,
.elementor-element-1d354ed7 .wd-image {
  border-radius: 18px !important;
  overflow: hidden !important;
}

.elementor-element-3b8f1c6 img,
.elementor-element-1d354ed7 .wd-image img,
body.page-id-4400 .elementor-element-3c548bca .elementor-element-1d354ed7 img {
  border-radius: 18px !important;
  display: block;
  width: 100%;
  height: auto;
}

/* —— Models: espacio entre proyectos + imágenes redondeadas —— */
body.page-id-16216 .elementor-section .elementor-container.elementor-column-gap-no {
  gap: 0;
}

body.page-id-16216 .elementor-section .elementor-column.elementor-col-33 > .elementor-widget-wrap,
body.page-id-16216 .elementor-section .elementor-column.elementor-col-33 {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.page-id-16216 .elementor-section .elementor-column.elementor-col-33 {
  margin-bottom: 28px;
}

body.page-id-16216 .elementor-widget-wd_image_or_svg .wd-image,
body.page-id-16216 .elementor-widget-wd_image_or_svg .elementor-widget-container {
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.page-id-16216 .elementor-widget-wd_image_or_svg img {
  border-radius: 16px !important;
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  body.page-id-16216 .elementor-section .elementor-column.elementor-col-33 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 22px;
  }
}

/* —— IMARK page: cuadrícula de proyectos con espacio + medios redondeados —— */
body.page-id-15804 .elementor-section .elementor-column.elementor-col-25,
body.page-id-15804 .elementor-section .elementor-column.elementor-col-33 {
  padding-left: 14px !important;
  padding-right: 14px !important;
  margin-bottom: 28px;
}

body.page-id-15804 .elementor-section .elementor-column.elementor-col-25 > .elementor-widget-wrap,
body.page-id-15804 .elementor-section .elementor-column.elementor-col-33 > .elementor-widget-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-id-15804 .elementor-widget-wd_image_or_svg .wd-image,
body.page-id-15804 .elementor-widget-wd_image_or_svg .elementor-widget-container {
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.page-id-15804 .elementor-widget-wd_image_or_svg img {
  border-radius: 16px !important;
  display: block;
  width: 100%;
  height: auto;
}

body.page-id-15804 .elementor-widget-video .elementor-wrapper,
body.page-id-15804 .elementor-widget-video .e-hosted-video,
body.page-id-15804 .elementor-widget-video video {
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.page-id-15804 .elementor-widget-video video {
  display: block;
  width: 100%;
}

body.page-id-15804 .elementor-widget-button {
  margin-top: 10px;
}

@media (max-width: 1024px) {
  body.page-id-15804 .elementor-section .elementor-column.elementor-col-25,
  body.page-id-15804 .elementor-section .elementor-column.elementor-col-33 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 767px) {
  body.page-id-15804 .elementor-section .elementor-column.elementor-col-25,
  body.page-id-15804 .elementor-section .elementor-column.elementor-col-33 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 22px;
  }
}

/* —— Contact: ASK A QUESTION en azul corporativo —— */
body.page-id-4439 .wpcf7 input.wpcf7-submit,
body.page-id-4439 .wpcf7 input[type="submit"],
body.page-id-4439 .btn-color-black.wpcf7-submit {
  background-color: var(--imark-blue, #1c5d94) !important;
  background-image: none !important;
  border-color: var(--imark-blue, #1c5d94) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: background-color 0.2s var(--imark-ease, ease), transform 0.2s ease;
}

body.page-id-4439 .wpcf7 input.wpcf7-submit:hover,
body.page-id-4439 .wpcf7 input[type="submit"]:hover,
body.page-id-4439 .btn-color-black.wpcf7-submit:hover {
  background-color: var(--imark-blue-deep, #154a78) !important;
  border-color: var(--imark-blue-deep, #154a78) !important;
  color: #fff !important;
}
