/* Popup Venezuela — Figma 980×674 (render a 900px max para match visual) */

.oy-vz-popup-modal .modal-dialog {
  max-width: min(980px, calc(100vw - 32px));
  width: min(980px, calc(100vw - 32px));
  margin: 16px auto;
}

.oy-vz-popup-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(10, 22, 52, 0.28);
  background: #243158;
}

.oy-vz-popup-modal .modal-body {
  padding: 0;
}

.oy-vz-popup-modal .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 0.9rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(19, 35, 70, 0.16);
  opacity: 1;
}

/* ponytail: canvas Figma 980×674 a escala 1:1 en desktop */
.oy-vz-popup-scaler {
  --oy-vz-popup-w: min(980px, calc(100vw - 32px));
  width: var(--oy-vz-popup-w);
  height: calc(var(--oy-vz-popup-w) * 674 / 980);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.oy-vz-popup__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 980px;
  height: 674px;
  transform-origin: top left;
  transform: scale(calc(var(--oy-vz-popup-w) / 980px));
  overflow: hidden;
  background: #243158;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 576px) {
  .oy-vz-popup__canvas h2,
  .oy-vz-popup__canvas p,
  .oy-vz-popup__canvas ul,
  .oy-vz-popup__canvas li,
  .oy-vz-popup__canvas a {
    margin: 0;
    padding: 0;
  }
}

.oy-vz-popup__badge,
.oy-vz-popup__title,
.oy-vz-popup__description,
.oy-vz-popup__list,
.oy-vz-popup__cta {
  z-index: 3;
}

.oy-vz-popup__decor {
  position: absolute;
  z-index: 0;
  width: 795px;
  height: 786px;
  left: -194px;
  top: 50px;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.oy-vz-popup__badge {
  position: absolute;
  left: 80px;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Inter', sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 21px;
  color: #7fe2ce;
}

.oy-vz-popup__badge-icon {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}

.oy-vz-popup-modal h2.oy-vz-popup__title {
  position: absolute;
  left: 80px;
  top: 74px;
  width: 450px;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 48px !important;
  letter-spacing: 0;
  color: #fff;
}

.oy-vz-popup__description {
  position: absolute;
  left: 80px;
  top: 200px;
  width: 450px;
  max-width: 450px;
  margin: 0;
  font-family: 'Inter', sans-serif !important;
  font-size: 25px;
  font-weight: 400;
  line-height: 30px;
  color: #fff;
}

.oy-vz-popup__description strong {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
}

.oy-vz-popup__list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oy-vz-popup__list li {
  position: absolute;
  left: 80px;
  max-width: 440px;
  margin: 0;
  font-family: 'Inter', sans-serif !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #4cb69b;
}

.oy-vz-popup__list li:nth-child(1) {
  top: 440px;
}

.oy-vz-popup__list li:nth-child(2) {
  top: 480px;
}

.oy-vz-popup__list li:nth-child(3) {
  top: 522px;
}

.oy-vz-popup__cta {
  position: absolute;
  left: 86px;
  top: 582px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 256px;
  height: 40px;
  padding: 8px 24px;
  border: 0;
  border-radius: 8px;
  background: #4cb69b;
  font-family: 'Inter', sans-serif !important;
  font-size: 21px;
  font-weight: 700;
  line-height: 25px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.oy-vz-popup__cta:hover,
.oy-vz-popup__cta:focus {
  background: #43a88f;
  color: #fff;
  transform: translateY(-1px);
}

.oy-vz-popup__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Figma: pegada a la derecha, margen superior ~20px */
.oy-vz-popup__photo-wrap {
  position: absolute;
  right: 0;
  top: 20px;
  width: 450px;
  z-index: 2;
  overflow: visible;
}

.oy-vz-popup__photo {
  display: block;
  width: 450px;
  height: auto;
  max-width: none;
  margin-left: auto;
}

/* Bandera esquina inferior derecha — más pequeña que antes */
.oy-vz-popup__flag {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 280px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .oy-vz-popup-modal .modal-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin: 8px auto;
  }

  .oy-vz-popup-modal .modal-content {
    border-radius: 20px;
  }

  .oy-vz-popup-modal .btn-close {
    top: 12px;
    right: 12px;
    padding: 0.68rem;
    background-size: 0.78rem;
  }

  /* ponytail: en móvil sin scale — el canvas Figma encoge todo el texto */
  .oy-vz-popup-scaler {
    width: 100%;
    height: auto;
  }

  .oy-vz-popup__canvas {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
    padding: 3.25rem 1.25rem 5.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
  }

  .oy-vz-popup__decor {
    width: 70%;
    height: auto;
    left: -25%;
    top: 10%;
    opacity: 0.4;
  }

  .oy-vz-popup__badge,
  .oy-vz-popup-modal h2.oy-vz-popup__title,
  .oy-vz-popup__description,
  .oy-vz-popup__list,
  .oy-vz-popup__list li,
  .oy-vz-popup__cta {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: none;
  }

  .oy-vz-popup__badge {
    font-size: 0.875rem;
    line-height: 1.25;
  }

  .oy-vz-popup__badge-icon {
    width: 18px;
    height: 18px;
  }

  .oy-vz-popup-modal h2.oy-vz-popup__title {
    margin: 0.25rem 0 0;
    font-size: 1.65rem !important;
    line-height: 1.15 !important;
  }

  .oy-vz-popup__canvas .oy-vz-popup__description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .oy-vz-popup__canvas .oy-vz-popup__list {
    inset: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }

  .oy-vz-popup__list li {
    font-size: 0.9375rem;
    line-height: 1.35;
    margin: 0;
    padding: 0;
  }

  .oy-vz-popup__canvas .oy-vz-popup__cta {
    margin: 0.75rem 0 0;
    align-self: flex-start;
    width: 100%;
    max-width: 18rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.25rem;
    font-size: 1rem;
    line-height: 1.25;
  }

  .oy-vz-popup__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .oy-vz-popup__photo-wrap {
    display: none;
  }

  .oy-vz-popup__flag {
    width: 7.5rem;
    right: 0;
    bottom: 0;
  }
}
