/* ==========================================
   PRICE MATCH GUARANTEE PAGE
========================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
}

main.mainbox *{
  font-family: 'Poppins'!important;
  text-align: justify;
}

/* Responsive Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

video{
  max-width: 100%;
}

.pmg-page {
  background: #ececec;
  color: #111;
}

.pmg-page img,
.pmg-page video {
  width: 100%;
  display: block;
}

.pmg-page section {
  position: relative;
}

.pmg-line {
  display: block;
  width: 160px;
  height: 2px;
  background: #d7352a;
  margin-bottom: 26px;
}

.pmg-line.white {
  background: rgba(255,255,255,0.5);
}

.pmg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none!important;
  min-width: 180px;
  height: 44px;
  padding: 0 22px;
  background: #d9211c;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease!important;
}

.pmg-btn:hover {
  background: #b91814;
  color: #fff;
  transform: translateY(-2px);
}

/* HERO */
.pmg-hero {
  background: #ffffff;
  padding-top: 50px !important;
  padding-bottom: 30px !important;
}

.pmg-hero-copy {
  padding-left: 0;
}

.pmg-hero h1 {
  font-size: 58px;
  line-height: 1.03;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: 0px;
}

.pmg-hero p {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 400;
  color: #222;
}

.pmg-hero-image img {
  object-fit: fill;
  min-height: 430px;
}

/* INTRO */
.pmg-intro {
  background: #dcdcdc;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pmg-intro-left,
.pmg-intro-right {
  height: 100%;
}

.pmg-intro-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 620px;
}

.pmg-intro-right {
  padding: 45px 42px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pmg-intro-text p {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 35px;
  color: #2a2a2a;
}

.pmg-intro-bottom-img img {
  min-height: 250px;
  object-fit: cover;
}

/* DETAILS */
.pmg-details {
  background: #ececec;
}

.pmg-card {
  background: #dcdcdc;
  padding: 40px 20px 0px;
  height: 100%;
}

.pmg-card h2 {
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
}

.pmg-card p {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
  color: #333;
  margin-bottom: 24px;
}

.pmg-mini-gallery img {
  height: 100%;
  object-fit: cover;
}

.pmg-list {
  padding-left: 0;
  text-align: justify;
}

.pmg-list li {
  font-size: 16px;
  list-style: none;
  line-height: 1.65;
  color: #222;
  margin-bottom: 8px;
}

.pmg-qualify-graphic {
  text-align: center;
  margin-top: 0;
}

.pmg-qualify-graphic img {
  max-width: 330px;
  margin: 24px auto;
}

/* WHY */
.pmg-why {
  background: #ececec;
  padding-top: 20px !important;
}

.pmg-why-copy {
  background: #ececec;
  padding: 40px 30px 30px;
  height: 100%;
}

.pmg-why h2 {
  font-size: 2.5rem;
  line-height: 1.02;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 24px;
  letter-spacing: 0;
}

.pmg-why-list {
  padding-left: 18px;
  text-align: justify;
  margin: 0;
}

.pmg-why-list li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #222;
}

.pmg-mosaic {
  height: 100%;
  padding-left: 18px;
}

.pmg-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a b c d"
    "e e f f";
  gap: 8px;
  height: 100%;
}

.pmg-mosaic-grid > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pmg-mosaic-sm:nth-child(1) { grid-area: a; }
.pmg-mosaic-sm:nth-child(2) { grid-area: b; }
.pmg-mosaic-sm:nth-child(3) { grid-area: c; }
.pmg-mosaic-sm:nth-child(4) { grid-area: d; }
.pmg-mosaic-lg { grid-area: e; }
.pmg-mosaic-stack { grid-area: f; display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }

.pmg-mosaic-sm {
  min-height: 165px;
}

.pmg-mosaic-lg {
  min-height: 360px;
}

.pmg-mosaic-stack > div {
  min-height: 176px;
}

/* CTA DARK */
.pmg-cta-dark {
  background: #2f2f2f;
  color: #fff;
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.pmg-cta-left {
  height: 100%;
  padding: 20px 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pmg-cta-left h2 {
  font-size: 2rem;
  line-height: 1.03;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.pmg-cta-left p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  max-width: 290px;
}

.pmg-divider {
  display: block;
  width: 170px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  margin-top: 70px;
}

.pmg-cta-visual {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.pmg-cta-video {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.pmg-cta-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pmg-video-label {
  position: absolute;
  display: none;
  bottom: 80px;
  left: 6px;
  background: #d9211c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  letter-spacing: 0.3px;
}

.pmg-cta-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pmg-cta-right-img img {
  min-height: 250px;
  object-fit: cover;
}

.pmg-cta-right-copy {
  padding-top: 24px;
}

.pmg-cta-right-copy h3 {
  font-size: 2rem;
  line-height: 1.02;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -1px;
}

.pmg-cta-right-copy p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 290px;
  color: rgba(255,255,255,0.9);
}

/* INSTALLATIONS */
.pmg-installations {
  background: #ececec;
}

.pmg-installations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.pmg-installations-head h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}

.pmg-installations-head .pmg-line {
  margin: 0;
  flex: 1;
  max-width: 520px;
}

.pmg-install-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  grid-auto-rows: 140px;
}

.pmg-install-grid > div {
  overflow: hidden;
}

.pmg-install-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pmg-install-large {
  grid-column: span 2;
  grid-row: span 2;
}

.pmg-install-tall {
  grid-row: span 2;
}

.pmg-bottom-link a {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.pmg-bottom-link a:hover {
  color: #d9211c;
}

/* IMAGE HOVER */
.pmg-page img,
.pmg-page video {
  transition: transform 0.45s ease;
}

.pmg-hero-image,
.pmg-intro-left,
.pmg-intro-bottom-img,
.pmg-mini-gallery,
.pmg-mosaic-grid > div,
.pmg-cta-video,
.pmg-cta-right-img,
.pmg-install-grid > div {
  overflow: hidden;
}

.pmg-hero-image:hover img,
.pmg-intro-left:hover img,
.pmg-intro-bottom-img:hover img,
.pmg-mini-gallery div:hover img,
.pmg-mosaic-grid > div:hover img,
.pmg-cta-right-img:hover img,
.pmg-install-grid > div:hover img {
  transform: scale(1.01);
}

/* RESPONSIVE */
@media (max-width: 1399.98px) {
  .pmg-hero h1 { font-size: 54px; }
  .pmg-why h2,
  .pmg-cta-left h2,
  .pmg-cta-right-copy h3 { font-size: 50px; }
}

@media (max-width: 1199.98px) {
  .pmg-hero h1 { font-size: 46px; }
  .pmg-hero p { font-size: 22px; }

  .pmg-card h2 { font-size: 34px; }
  .pmg-why h2,
  .pmg-cta-left h2,
  .pmg-cta-right-copy h3 { font-size: 42px; }

  .pmg-intro-left img {
    min-height: 540px;
  }

  .pmg-install-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991.98px) {
  .pmg-hero-copy {
    padding-left: 0;
    text-align: center;
  }

  .pmg-line {
    margin-left: auto;
    margin-right: auto;
  }

  .pmg-hero h1 {
    font-size: 42px;
  }

  .pmg-hero p {
    font-size: 20px;
  }

  .pmg-hero-image img {
    min-height: auto;
  }

  .pmg-intro-left img,
  .pmg-intro-bottom-img img {
    min-height: auto;
  }

  .pmg-intro-right {
    padding: 30px 24px;
  }

  .pmg-card {
    padding: 28px 22px;
  }

  .pmg-why-copy {
    padding: 20px 0 30px;
  }

  .pmg-mosaic {
    padding-left: 0;
    margin-top: 20px;
  }

  .pmg-cta-left {
    padding: 0;
  }

  .pmg-divider {
    margin-top: 35px;
  }

  .pmg-cta-visual {
    grid-template-columns: 1fr;
  }

  .pmg-cta-video {
    min-height: 420px;
  }

  .pmg-installations-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pmg-installations-head .pmg-line {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }

  .pmg-install-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 120px;
  }
}

@media (max-width: 767.98px) {
  .pmg-hero {
    padding-top: 35px !important;
  }

  .pmg-hero h1 {
    font-size: 36px;
  }

  .pmg-hero p {
    font-size: 18px;
  }

  .pmg-intro-text p,
  .pmg-card p,
  .pmg-list li,
  .pmg-why-list li,
  .pmg-cta-left p,
  .pmg-cta-right-copy p {
    font-size: 14px;
  }

  .pmg-card h2 {
    font-size: 28px;
  }

  .pmg-why h2,
  .pmg-cta-left h2,
  .pmg-cta-right-copy h3 {
    font-size: 34px;
  }

  .pmg-mini-gallery img {
    height: 120px;
  }

  .pmg-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a b"
      "c d"
      "e e"
      "f f";
  }

  .pmg-mosaic-lg {
    min-height: 250px;
  }

  .pmg-mosaic-stack > div {
    min-height: 140px;
  }

  .pmg-cta-video {
    min-height: 320px;
  }

  .pmg-install-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 110px;
  }

  .pmg-bottom-link a {
    font-size: 18px;
    line-height: 1.4;
  }
}

@media (max-width: 575.98px) {
  .pmg-hero h1 {
    font-size: 30px;
  }

  .pmg-card h2,
  .pmg-why h2,
  .pmg-cta-left h2,
  .pmg-cta-right-copy h3 {
    font-size: 28px;
  }

  .pmg-mini-gallery {
    grid-template-columns: 1fr;
  }

  .pmg-mini-gallery img {
    height: 180px;
  }

  .pmg-install-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .pmg-install-large,
  .pmg-install-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .pmg-btn {
    width: 100%;
  }
}
/* =========================
   UNIVERSAL VIEWER
========================= */
.universal-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.universal-viewer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.universal-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.universal-viewer__content {
  position: relative;
  z-index: 2;
  width: min(95vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.universal-viewer__media {
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.universal-viewer__media img,
.universal-viewer__media video {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #000;
}

.universal-viewer__media video {
  width: auto;
  min-width: min(90vw, 420px);
}

.universal-viewer__close {
  position: absolute;
  top: -8px;
  right: 0;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.universal-viewer__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}



/* cursor bonito para indicar que se puede ampliar */
[data-lightbox] {
  cursor: pointer;
}

/* en movil */
@media (max-width: 768px) {
  .universal-viewer__content {
    width: 100vw;
    padding: 14px;
  }

  .universal-viewer__close {
    top: 10px;
    right: 10px;
    position: fixed;
  }

  .universal-viewer__media img,
  .universal-viewer__media video {
    max-height: 80vh;
    border-radius: 10px;
  }
}

