/* REFIDER 4.0 - Premium popup campaigns without inner scroll */
.rx-popup-layer{
  position:fixed;
  inset:0;
  z-index:10050;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(10px,2vw,24px);
  background:
    radial-gradient(circle at 20% 15%,rgba(122,192,0,.16),transparent 22%),
    radial-gradient(circle at 84% 10%,rgba(59,130,246,.14),transparent 24%),
    rgba(2,6,23,.74);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:0;
  transition:opacity .38s ease;
}
.rx-popup-layer.is-open{display:flex}
.rx-popup-layer.is-visible{opacity:1}

.rx-popup-shell{
  --pop-accent:#79c000;
  position:relative;
  width:min(1120px,96vw);
  max-height:min(710px,calc(100dvh - 28px));
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  overflow:hidden;
  border-radius:34px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.96);
  box-shadow:0 42px 110px rgba(2,6,23,.42);
  transform:translateY(18px) scale(.972);
  opacity:.24;
  transition:transform .48s cubic-bezier(.2,.8,.2,1),opacity .38s ease;
}
.rx-popup-layer.is-visible .rx-popup-shell{transform:none;opacity:1}

.rx-popup-close{
  position:absolute;
  z-index:12;
  top:16px;
  right:16px;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(5,15,45,.42);
  color:#fff;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(2,6,23,.18);
  backdrop-filter:blur(12px);
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
.rx-popup-close:hover{transform:translateY(-2px) rotate(7deg);background:#fff;color:#071747}

.rx-popup-media{
  position:relative;
  min-height:100%;
  background:#06132f;
  overflow:hidden;
  isolation:isolate;
}
.rx-popup-slides,
.rx-popup-slide{position:absolute;inset:0}
.rx-popup-slide{opacity:0;transform:scale(1.045);transition:opacity .85s ease,transform 1.6s ease}
.rx-popup-slide.is-active{opacity:1;transform:scale(1)}
.rx-popup-slide img{width:100%;height:100%;display:block;object-fit:cover}
.rx-popup-media::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(2,6,23,.08) 26%,rgba(2,6,23,.62) 100%),
    radial-gradient(circle at 18% 18%,rgba(255,255,255,.24),transparent 26%);
}
.rx-popup-media::after{
  content:"";
  position:absolute;
  inset:-20%;
  z-index:1;
  background:radial-gradient(circle at 18% 30%,rgba(255,255,255,.14),transparent 20%),radial-gradient(circle at 82% 20%,rgba(121,192,0,.18),transparent 18%);
  animation:rxPopupGlow 8s linear infinite;
}

.rx-popup-flight-trail{
  position:absolute;
  z-index:4;
  right:22px;
  top:22px;
  width:230px;
  height:112px;
  pointer-events:none;
}
.rx-popup-flight-trail span{
  position:absolute;
  inset:18px 8px 8px 8px;
  border-top:2px dashed rgba(255,255,255,.58);
  border-right:2px dashed rgba(255,255,255,.22);
  border-radius:999px;
  transform:rotate(-9deg);
  opacity:.8;
}
.rx-popup-flight-trail i{
  position:absolute;
  right:16px;
  top:0;
  color:#fff;
  font-size:1.05rem;
  filter:drop-shadow(0 10px 14px rgba(2,6,23,.22));
  animation:rxPopupPlane 5s ease-in-out infinite;
}
.rx-popup-floating-badge{
  position:absolute;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(16px);
  box-shadow:0 14px 30px rgba(2,6,23,.16);
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rx-popup-floating-badge.badge-one{left:22px;top:24px;animation:rxPopupFloat 5.2s ease-in-out infinite}
.rx-popup-floating-badge.badge-two{left:22px;bottom:98px;animation:rxPopupFloat 5.6s ease-in-out infinite reverse}

.rx-popup-nav{
  position:absolute;
  z-index:7;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(4,14,42,.36);
  color:#fff;
  cursor:pointer;
  backdrop-filter:blur(12px);
  transition:transform .22s ease,background .22s ease,color .22s ease;
}
.rx-popup-nav:hover{transform:translateY(-50%) scale(1.06);background:#fff;color:#071747}
.rx-popup-prev{left:16px}
.rx-popup-next{right:16px}
.rx-popup-dots{
  position:absolute;
  z-index:8;
  left:24px;
  bottom:96px;
  display:flex;
  gap:8px;
}
.rx-popup-dot{
  width:10px;
  height:10px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.4);
  cursor:pointer;
  transition:width .28s ease,background .28s ease,transform .2s ease;
}
.rx-popup-dot.is-active{width:30px;background:#fff}

.rx-popup-media-caption{
  position:absolute;
  z-index:5;
  left:24px;
  right:24px;
  bottom:24px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  color:#fff;
}
.rx-popup-media-caption small{
  display:block;
  margin-bottom:9px;
  color:#d9f99d;
  font-size:10px;
  font-weight:900;
  letter-spacing:.19em;
  text-transform:uppercase;
}
.rx-popup-media-caption strong{
  display:block;
  max-width:390px;
  font-size:clamp(1.25rem,2.45vw,2rem);
  line-height:1.03;
  letter-spacing:-.04em;
}
.rx-popup-count{
  flex:none;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(2,6,23,.34);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
  font-size:11px;
  font-weight:900;
}

.rx-popup-copy{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  padding:clamp(28px,3.5vw,44px);
  overflow:hidden;
  background:
    radial-gradient(circle at 88% 8%,rgba(121,192,0,.18),transparent 24%),
    radial-gradient(circle at 0 100%,rgba(59,130,246,.12),transparent 24%),
    linear-gradient(145deg,#ffffff,#f7fbff 55%,#f4fae8);
}
.rx-popup-copy::before{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-86px;
  width:210px;
  height:210px;
  border-radius:50%;
  border:1px solid rgba(0,27,121,.06);
  box-shadow:0 0 0 26px rgba(0,27,121,.022),0 0 0 56px rgba(0,27,121,.015);
  pointer-events:none;
}
.rx-popup-copy-top{display:flex;flex-direction:column;gap:10px}
.rx-popup-label{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  background:#edf9db;
  color:#3f6212;
  font-size:10px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.rx-popup-mini-points{display:flex;flex-wrap:wrap;gap:8px}
.rx-popup-mini-points span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid #e7edf5;
  color:#475569;
  font-size:11px;
  font-weight:800;
  box-shadow:0 10px 26px rgba(15,23,42,.04);
}
.rx-popup-mini-points i{color:#001b79}

.rx-popup-copy h2{
  margin:0;
  color:#071747;
  font-size:clamp(2.25rem,4vw,4rem);
  line-height:.92;
  letter-spacing:-.06em;
  font-weight:950;
}
.rx-popup-description,
.rx-popup-copy p{
  margin:0;
  color:#64748b;
  font-size:15px;
  line-height:1.72;
}
.rx-popup-description{
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.rx-popup-highlights{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.rx-popup-highlights span{
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 12px;
  border-radius:15px;
  background:rgba(255,255,255,.86);
  border:1px solid #e7edf5;
  color:#334155;
  font-size:11px;
  font-weight:850;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}
.rx-popup-highlights i{color:#001b79}
.rx-popup-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rx-popup-cta{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:220px;
  max-width:100%;
  padding:15px 20px;
  border-radius:16px;
  text-decoration:none;
  background:linear-gradient(135deg,#7fc800,#5da500);
  color:#132500;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
  box-shadow:0 18px 34px rgba(121,192,0,.25);
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease,color .25s ease;
}
.rx-popup-cta:hover{transform:translateY(-3px);background:#001b79;color:#fff;box-shadow:0 20px 34px rgba(0,27,121,.22)}
.rx-popup-ghost{
  border:1px solid #d9e2ec;
  border-radius:14px;
  padding:13px 15px;
  background:#fff;
  color:#475569;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:.22s ease;
}
.rx-popup-ghost:hover{border-color:#001b79;color:#001b79;transform:translateY(-2px)}
.rx-popup-note{
  display:flex;
  align-items:center;
  gap:8px;
  color:#94a3b8!important;
  font-size:11px!important;
}

.rx-popup-theme-viajes .rx-popup-shell{--pop-accent:#b7f14e}
.rx-popup-theme-viajes .rx-popup-label{background:#e9f8ce;color:#365314}
.rx-popup-theme-viajes .rx-popup-close{background:rgba(7,21,54,.34)}
.rx-popup-theme-premium .rx-popup-cta,
.rx-popup-theme-institucional .rx-popup-cta{background:#001b79;color:#fff}
.rx-popup-theme-institucional .rx-popup-label{background:#eef4ff;color:#001b79}
.rx-popup-theme-minimal .rx-popup-shell{grid-template-columns:1fr 1fr;border-radius:26px}
.rx-popup-theme-minimal .rx-popup-copy{background:#fff}
.rx-popup-theme-minimal .rx-popup-copy::before,
.rx-popup-theme-minimal .rx-popup-mini-points,
.rx-popup-theme-minimal .rx-popup-highlights,
.rx-popup-theme-minimal .rx-popup-flight-trail,
.rx-popup-theme-minimal .rx-popup-floating-badge{display:none}

@keyframes rxPopupFloat{50%{transform:translateY(-8px)}}
@keyframes rxPopupPlane{50%{transform:translate(6px,-4px) rotate(-9deg)}}
@keyframes rxPopupGlow{50%{transform:translate3d(-2%,2%,0) scale(1.02)}}

@media(max-width:920px){
  .rx-popup-layer{align-items:flex-end;padding:10px}
  .rx-popup-shell{
    width:min(100%,980px);
    max-height:min(760px,calc(100dvh - 16px));
    grid-template-columns:1fr;
    grid-template-rows:minmax(250px,38vh) auto;
    border-radius:28px;
  }
  .rx-popup-media{min-height:0}
  .rx-popup-copy{padding:26px 22px 24px}
  .rx-popup-copy h2{font-size:clamp(2rem,8vw,3rem)}
  .rx-popup-description{-webkit-line-clamp:4}
  .rx-popup-highlights{gap:9px}
  .rx-popup-dots{left:18px;bottom:78px}
  .rx-popup-media-caption{left:18px;right:18px;bottom:18px}
  .rx-popup-media-caption strong{font-size:1.35rem}
}
@media(max-width:560px){
  .rx-popup-layer{padding:0}
  .rx-popup-shell{
    width:100%;
    max-height:100dvh;
    border-radius:0;
    grid-template-rows:minmax(220px,34vh) auto;
  }
  .rx-popup-close{top:12px;right:12px;width:42px;height:42px}
  .rx-popup-copy{padding:22px 18px 22px;gap:14px}
  .rx-popup-copy h2{font-size:clamp(1.9rem,8.6vw,2.65rem)}
  .rx-popup-mini-points{gap:6px}
  .rx-popup-mini-points span{font-size:10px;padding:6px 9px}
  .rx-popup-highlights{grid-template-columns:1fr 1fr}
  .rx-popup-actions{flex-direction:column;align-items:stretch}
  .rx-popup-cta,.rx-popup-ghost{width:100%}
  .rx-popup-flight-trail{width:170px;height:88px;right:12px;top:14px}
  .rx-popup-floating-badge.badge-one{left:14px;top:16px}
  .rx-popup-floating-badge.badge-two{left:14px;bottom:76px}
  .rx-popup-nav{width:40px;height:40px}
  .rx-popup-prev{left:10px}
  .rx-popup-next{right:10px}
  .rx-popup-count{display:none}
}
@media(prefers-reduced-motion:reduce){
  .rx-popup-layer,
  .rx-popup-shell,
  .rx-popup-slide,
  .rx-popup-close,
  .rx-popup-cta,
  .rx-popup-ghost,
  .rx-popup-nav,
  .rx-popup-dot,
  .rx-popup-flight-trail i,
  .rx-popup-floating-badge,
  .rx-popup-media::after{transition:none!important;animation:none!important}
}

/* REFIDER 4.3 - Popup premium optimizado */
.rx-popup-layer.rx-popup-lite{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(2,6,23,.82)!important}
.rx-popup-layer.rx-popup-lite .rx-popup-shell{box-shadow:0 24px 64px rgba(2,6,23,.36)!important}
.rx-popup-layer.rx-popup-lite .rx-popup-flight-trail,
.rx-popup-layer.rx-popup-lite .rx-popup-floating-badge{display:none!important}
.rx-popup-layer.rx-popup-lite .rx-popup-slide{transition:opacity .32s ease!important;transform:none!important}
.rx-popup-layer.rx-popup-lite .rx-popup-slide img{transform:none!important}
.rx-popup-layer.rx-popup-lite .rx-popup-copy,
.rx-popup-layer.rx-popup-lite .rx-popup-close,
.rx-popup-layer.rx-popup-lite .rx-popup-nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.rx-popup-shell{max-height:min(700px,calc(100dvh - 24px))!important}
.rx-popup-copy{overflow:hidden!important}
.rx-popup-description{-webkit-line-clamp:4!important}

@media(max-height:760px) and (min-width:821px){
  .rx-popup-shell{max-height:calc(100dvh - 18px)!important}
  .rx-popup-copy{padding:26px 30px!important;gap:12px!important}
  .rx-popup-copy h2{font-size:clamp(2rem,3.3vw,3.2rem)!important}
  .rx-popup-highlights{gap:7px!important}
  .rx-popup-highlights span{padding:8px 9px!important}
  .rx-popup-note{display:none!important}
}
@media(max-width:820px){
  .rx-popup-layer{padding:0!important;align-items:center!important}
  .rx-popup-shell{height:min(100dvh,760px)!important;max-height:100dvh!important;border-radius:0!important;grid-template-rows:minmax(210px,34vh) minmax(0,1fr)!important}
  .rx-popup-copy{padding:20px 18px 18px!important;gap:11px!important;justify-content:flex-start!important}
  .rx-popup-copy h2{font-size:clamp(1.85rem,8vw,2.55rem)!important;line-height:.94!important}
  .rx-popup-description{font-size:13px!important;line-height:1.55!important;-webkit-line-clamp:3!important}
  .rx-popup-highlights{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .rx-popup-highlights span{padding:8px!important;font-size:10px!important}
  .rx-popup-mini-points{display:none!important}
  .rx-popup-note{display:none!important}
  .rx-popup-actions{margin-top:auto!important}
  .rx-popup-media-caption strong{font-size:1.12rem!important;max-width:260px!important}
}
@media(max-width:520px){
  .rx-popup-shell{grid-template-rows:minmax(190px,31vh) minmax(0,1fr)!important}
  .rx-popup-highlights{display:none!important}
  .rx-popup-copy{padding:18px 16px 16px!important}
  .rx-popup-label{font-size:9px!important;padding:7px 10px!important}
  .rx-popup-actions{gap:8px!important}
  .rx-popup-cta,.rx-popup-ghost{padding:12px 14px!important;font-size:11px!important}
}
