.project-units-embed {
  width: 100%;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  background: #fff;
}

.project-units-embed__container {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  scroll-margin-top: 6rem;
}

html:has(.project-units-embed__switcher) {
  scroll-behavior: smooth;
}

.project-units-embed__switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 5vw, 5rem);
  width: min(100%, 900px);
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.project-units-embed__switcher-link,
.project-units-embed__switcher-link:hover,
.project-units-embed__switcher-link:active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border: 1px solid #4b4b4b;
  border-radius: 3px;
  color: #202020;
  background: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.project-units-embed__switcher-link:hover {
  border-color: #d71920;
  color: #fff;
  background: #d71920;
}

.project-units-embed__switcher-link:focus-visible {
  outline: 3px solid #d71920;
  outline-offset: 3px;
}

.project-units-embed__item {
  scroll-margin-top: 7rem;
}

.project-units-embed__item + .project-units-embed__item {
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.project-units-embed__heading {
  margin: 0 1rem 1.5rem;
  color: #202020;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.res-btn-plantas,
.res-btn-plantas:hover,
.res-btn-plantas:active {
  display: inline-block;
  padding: 5px 10px;
  font-size: 1.125em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 1px #333;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.4s;
}

.res-btn-plantas i {
  margin-left: 0.5rem;
}

.res-btn-plantas:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.project-units-embed__frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: #fff;
}

.project-units-embed__frame:focus-visible {
  outline: 3px solid #d71920;
  outline-offset: 4px;
}

/* Cierre de Brava y Mirador Soza sin el formulario de cotización anterior. */
.project-contact-footer .proj-cotizar {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.project-contact-footer .project-contact-footer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.project-contact-footer .project-contact-footer__layout > .column {
  width: auto;
  padding: 0;
}

.project-contact-footer .informacion-ejecutivo-brava {
  position: static;
  max-width: 760px;
  padding-bottom: 0;
}

.project-contact-footer__details {
  min-width: 0;
}

.project-contact-footer__details .line-blanva-brava {
  width: min(120px, 30%);
  margin: 1.25rem 0;
}

.project-contact-footer__details .is-flex {
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.project-contact-footer__details .is-flex img {
  flex: 0 0 auto;
  width: 24px;
  object-fit: contain;
  margin-top: 0.15rem;
}

.single-proyecto .project-contact-footer__details p,
.project-contact-footer__details .is-align-items-center {
  margin: 0;
  color: #fff;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}

.project-contact-footer .project-contact-footer__brand {
  align-self: end;
  justify-self: end;
  text-align: right;
}

.project-contact-footer .project-contact-footer__brand .logo-copahue-brava {
  position: static;
  width: auto;
  padding-bottom: 0;
  text-align: inherit;
}

.project-contact-footer__brand img {
  display: block;
  width: clamp(145px, 15vw, 220px);
  height: auto;
}

/* El video de Oficina Las Condes 7520 debe terminar antes del cotizador. */
.ofi-condes-video-section {
  position: relative;
  clear: both;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 7rem) 0;
  background: #000;
}

.ofi-condes-video-section .wrap-video-ofi-condes {
  position: relative;
  width: 100%;
}

.ofi-condes-video-section .wrap-texto-video {
  padding-top: 0;
}

.ofi-condes-video-section .video-ofi-condes {
  display: block;
  width: min(90%, 1400px) !important;
  height: auto !important;
  margin: 0 auto;
  background: #000;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .project-units-embed {
    padding: 2rem 0;
  }

  .project-units-embed__container {
    padding: 0;
  }

  .project-units-embed__switcher {
    width: auto;
    margin-right: 1rem;
    margin-left: 1rem;
    gap: 0.75rem;
  }

  .project-units-embed__item + .project-units-embed__item {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .project-units-embed__frame {
    height: 1100px;
  }

  .ofi-condes-video-section {
    padding: 2.5rem 0;
  }

  .ofi-condes-video-section .wrap-texto-video {
    padding: 0 1.25rem 1.5rem;
  }

  .ofi-condes-video-section .video-ofi-condes {
    width: 100% !important;
  }

  .project-contact-footer .proj-cotizar {
    padding: 2.5rem 0;
  }

  .project-contact-footer .project-contact-footer__layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }

  .project-contact-footer .project-contact-footer__brand {
    align-self: auto;
    justify-self: center;
    text-align: center;
  }

  .project-contact-footer__brand img {
    width: min(180px, 52vw);
  }

  .project-contact-footer__details .is-flex {
    line-height: 1.55;
  }
}

@media screen and (max-width: 480px) {
  .project-units-embed__switcher {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.project-units-embed__switcher) {
    scroll-behavior: auto;
  }
}
