/* ==========================================================================
   SISTEMA «¡DESPLIEGA TU GLOBO!», AVIONETA CON BANNER Y TOUR 3D PERSONALIZADO
   ========================================================================== */

/* Globo Maestro de Lujo (+20% más presencia y ligeramente más redondo para lucir el medallón) */
.sponsor-balloon:not(.is-chroma-video) .sponsor-balloon-art {
  width: clamp(132px, 29vh, 214px) !important;
  height: clamp(132px, 29vh, 214px) !important;
  top: 56px !important;
  right: clamp(12px, 3vw, 60px) !important;
}
.sponsor-balloon:not(.is-chroma-video) .sponsor-balloon-img {
  transform: scaleX(1.13);
}
body.site-menu-open .sponsor-balloon:not(.is-chroma-video) .sponsor-balloon-art {
  top: 122px !important;
}
@media (max-height: 660px) {
  .sponsor-balloon:not(.is-chroma-video) .sponsor-balloon-art {
    top: 46px !important;
    right: 12px !important;
  }
}
@media (max-width: 780px) {
  .sponsor-balloon:not(.is-chroma-video) .sponsor-balloon-art {
    width: 118px !important;
    height: 118px !important;
    top: 58px !important;
    right: 8px !important;
  }
}

/* Ajuste fino del logotipo dentro del medallón marfil (centrado exacto en la placa rectangular) */
.sponsor-balloon-logo-slot {
  top: 19% !important;
  left: 29% !important;
  width: 42% !important;
  height: 15% !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1px 3px;
}
/* Cuando el patrocinador usa logo REDONDO/EMBLEMA (ni rectangular ni placeholder), mostrar medallón circular grande con borde dorado (estilo INESIMED) */
.sponsor-balloon-logo-slot:not(.fit-rect):not(.is-placeholder):not(.is-hidden) {
  top: 12% !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: 44% !important;
  height: 44% !important;
  border-radius: 50% !important;
  background: #f6f1e4 !important;
  border: 2.5px solid #d4af37 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(212, 175, 55, 0.45) !important;
  padding: 5% !important;
}
.sponsor-balloon-logo-slot.is-hidden { display: none !important; }
.sponsor-balloon-logo-slot img {
  max-width: 94%;
  max-height: 92%;
  object-fit: contain !important;
  border-radius: 50%;
}
.sponsor-balloon-logo-slot.fit-rect img {
  max-width: 94%;
  max-height: 92%;
  width: auto;
  height: auto;
  border-radius: 3px !important;
}
/* Emblema elegante "TU LOGO AQUÍ" dentro del medallón del globo cuando está disponible */
.sponsor-balloon-logo-slot.is-placeholder {
  display: flex !important;
}
.sponsor-balloon-logo-slot.is-placeholder img {
  display: none !important;
}
.sponsor-balloon-logo-slot.is-placeholder::after {
  content: "TU LOGO\AAQUÍ";
  white-space: pre-line;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.03em;
  color: #102042;
  padding: 1px 2px;
}

/* Estado A: Globo disponible anclado en tierra (oscilación suave + hover claro) */
.sponsor-balloon.is-anchored .sponsor-balloon-art {
  animation: omBalloonAnchorSway 3.8s ease-in-out infinite !important;
  transform-origin: 50% 94%;
}
.sponsor-balloon.is-anchored .sponsor-balloon-art::after {
  content: "🎈 Haz clic para desplegar tu marca aquí";
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(11, 17, 32, 0.94);
  color: #f6d57a;
  border: 1px solid #d4af37;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
.sponsor-balloon.is-anchored:hover .sponsor-balloon-art::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@keyframes omBalloonAnchorSway {
  0%, 100% { transform: rotate(-2.4deg) translateY(0); }
  50% { transform: rotate(2.4deg) translateY(-3px); }
}

/* Estado C: Animación «¡Wow!» de despegue tras pago */
.sponsor-balloon.is-launching .sponsor-balloon-art {
  animation: omBalloonTakeoff 3.2s cubic-bezier(0.22, 0.95, 0.36, 1) forwards !important;
}
@keyframes omBalloonTakeoff {
  0%   { transform: translateY(110px) scale(0.84) rotate(-3deg); opacity: 0.75; }
  35%  { transform: translateY(38px) scale(1.03) rotate(2deg); opacity: 1; }
  75%  { transform: translateY(-10px) scale(1.05) rotate(-1deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

/* Chispas doradas del momento ¡Wow! */
.om-wow-burst {
  position: fixed;
  inset: 0;
  z-index: 100020;
  pointer-events: none;
  overflow: hidden;
}
.om-spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, #f1c653 55%, #b88418 100%);
  box-shadow: 0 0 12px rgba(241, 198, 83, 0.9);
  animation: omSparkFall 2.4s ease-out forwards;
}
@keyframes omSparkFall {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.1); opacity: 0; }
}

/* Avioneta publicitaria periódica cruzando el cielo 3D (+20% presencia, SIN tapar controles ni reproductor) */
.om-banner-plane {
  position: fixed;
  top: 44px;
  left: -560px;
  z-index: 24 !important;
  width: clamp(310px, 45vw, 495px);
  cursor: pointer;
  pointer-events: auto;
  display: none;
  /* Recortar zonas transparentes superior e inferior del canvas para nunca interceptar clics fuera de la avioneta */
  clip-path: inset(26% 2% 26% 2%);
  -webkit-clip-path: inset(26% 2% 26% 2%);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}
/* Garantizar SIEMPRE que reproductor, HUD superior y cintillo inferior estén por encima de avioneta y globo */
.map-floating-dock { z-index: 60 !important; }
.globe-hud-top { z-index: 58 !important; }
.sponsor-balloon-tag { z-index: 55 !important; }
.om-country-ticker { z-index: 62 !important; }
.om-group-watermark { z-index: 54 !important; }
.om-banner-plane.is-flying {
  display: block;
  animation: omPlaneFlyAcross 24s linear forwards;
}
.om-banner-plane:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 16px 30px rgba(212, 175, 55, 0.72));
}
.om-banner-plane canvas {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes omPlaneFlyAcross {
  0%   { transform: translateX(0) translateY(0); }
  25%  { transform: translateX(calc(34vw + 240px)) translateY(-10px); }
  50%  { transform: translateX(calc(68vw + 480px)) translateY(5px); }
  75%  { transform: translateX(calc(102vw + 720px)) translateY(-7px); }
  100% { transform: translateX(calc(132vw + 980px)) translateY(0); }
}

/* Modo VIP Sin Anuncios para usuarios que pagaron su Tour Personalizado (?tour=TUR-...) */
body.om-adfree-tour #sponsorBalloon,
body.om-adfree-tour #omBannerPlane,
body.om-adfree-tour #openDeployBalloonTopBtn,
body.om-adfree-tour #openDeployBalloonBtn {
  display: none !important;
}
.om-vip-tour-badge {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 49;
  max-width: min(340px, 86vw);
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.92), rgba(28, 22, 11, 0.92));
  border: 1px solid #d4af37;
  color: #f6df95;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.om-vip-tour-badge strong { display: block; color: #fff; font-size: 0.86rem; margin-top: 2px; }
.om-vip-tour-badge small { display: block; color: #d5dce8; margin-top: 2px; font-style: italic; }
.om-adfree-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(53, 196, 112, 0.16);
  border: 1px solid rgba(53, 196, 112, 0.55);
  color: #b8f5cf;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Botones de acceso en el HUD */
.hud-btn.balloon-cta {
  background: linear-gradient(135deg, #d4af37 0%, #f3d57a 50%, #b98924 100%);
  color: #0b101d;
  border-color: #f6df95;
  font-weight: 800;
}
.hud-btn.balloon-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.om-floating-deploy-btn {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 48;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
body.cine-mode .om-floating-deploy-btn { display: none; }
@media (max-width: 780px) {
  .om-floating-deploy-btn { display: none; }
}
.hud-btn.tour-builder-cta {
  background: rgba(20, 44, 88, 0.9);
  color: #f5d887;
  border-color: rgba(212, 175, 55, 0.65);
  font-weight: 700;
}
.hud-btn.tour-builder-cta:hover {
  background: #1b3b75;
  border-color: #f5d887;
}

/* Modal unificado (sin sacar al usuario del mapa 3D) */
.om-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.om-modal-backdrop.is-open { display: flex; }

.om-modal-card {
  width: min(940px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #101728 0%, #0b0f1b 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 18px;
  color: #f2eee4;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.om-modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: rgba(13, 20, 36, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}
.om-modal-title-wrap h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #f6d57a;
}
.om-modal-title-wrap p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #bfc8d8;
}
.om-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.om-modal-close:hover { background: #d4af37; color: #0b0f1b; border-color: #d4af37; }

.om-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(32, 66, 130, 0.22));
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  font-size: 0.77rem;
  color: #f4e6be;
}
.om-lock-pill {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid #d4af37;
  color: #ffe08a;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.om-modal-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  padding: 18px 20px 22px;
}
.om-preview-pane {
  background: radial-gradient(circle at 50% 35%, #1d2f54 0%, #0d1424 72%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.om-preview-pane canvas {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  display: block;
}
.om-preview-tabs {
  display: flex;
  gap: 6px;
  width: 100%;
}
.om-ptab {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: transparent;
  color: #e6d7ad;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.om-ptab.is-active {
  background: #d4af37;
  color: #0b0f1b;
  border-color: #d4af37;
}

.om-price-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.om-price-label { font-size: 0.72rem; color: #b9c3d4; text-transform: uppercase; letter-spacing: 0.08em; }
.om-price-val { font-size: 1.75rem; font-weight: 900; color: #f6d57a; margin: 2px 0; }
.om-price-sub { font-size: 0.74rem; color: #d5dce8; }

/* Lista puntualizada de beneficios debajo del precio en la ficha */
.om-benefits-box {
  width: 100%;
  background: rgba(8, 14, 28, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 12px;
  padding: 12px 13px;
  text-align: left;
  box-sizing: border-box;
}
.om-benefits-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: #f6d57a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.om-benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.om-benefits-list li {
  font-size: 0.79rem;
  line-height: 1.42;
  color: #e6ecf6;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.om-benefits-list li strong { color: #fef08a; }
.om-trust-details {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.75rem;
  color: #cbd5e1;
}
.om-trust-details summary {
  cursor: pointer;
  color: #f6d57a;
  font-weight: 800;
  list-style: none;
}
.om-trust-details summary::-webkit-details-marker { display: none; }
.om-trust-details p {
  margin: 6px 0 0;
  line-height: 1.45;
  color: #dce6f5;
}

.om-form-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.om-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.om-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e6d39f;
  margin-bottom: 4px;
}
.om-field input,
.om-field select,
.om-field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
}
.om-field select option { background: #101728; color: #fff; }
.om-field input:focus,
.om-field select:focus,
.om-field textarea:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.09);
}

.om-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 155px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.om-city-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe2ef;
  cursor: pointer;
  transition: all 0.15s ease;
}
.om-city-chip.is-selected {
  background: #d4af37;
  border-color: #f6df95;
  color: #0b0f1b;
  font-weight: 800;
}

.om-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.om-btn-primary {
  flex: 1;
  min-width: 190px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #d4af37 0%, #f5d87e 55%, #b98924 100%);
  color: #0b0f1b;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}
.om-btn-primary:hover { filter: brightness(1.08); }
.om-btn-secondary {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.12);
  color: #f6d57a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.om-btn-secondary:hover { background: #d4af37; color: #0b0f1b; }

.om-status-msg {
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: 8px;
  display: none;
}
.om-status-msg.is-ok  { display: block; background: rgba(34, 165, 89, 0.18); border: 1px solid #35c470; color: #b8f5cf; }
.om-status-msg.is-err { display: block; background: rgba(215, 65, 65, 0.2); border: 1px solid #e66060; color: #ffd0d0; }

/* Asegurar que el autocompletado de Google Places quede sobre el modal */
.pac-container { z-index: 100050 !important; }

/* Modal Tour Personalizado */
.om-tour-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.om-tour-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.om-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.om-stat-card small { display: block; font-size: 0.68rem; color: #aeb9cc; text-transform: uppercase; }
.om-stat-card strong { display: block; font-size: 1.2rem; color: #f6d57a; margin-top: 2px; }

@media (max-width: 780px) {
  .om-modal-grid { grid-template-columns: 1fr; }
  .om-row-2 { grid-template-columns: 1fr; }
  .om-tour-stats { grid-template-columns: repeat(2, 1fr); }
  .om-banner-plane { top: 64px; width: 88vw; }
}

/* ==========================================================================
   FRANJA INFERIOR DE PAÍS / BANDERA + POPUP CULTURAL, 4LIFE Y TOUR-PAÍS 3D
   ========================================================================== */

/* Elevar levemente el mini reproductor y letrero del globo para dar espacio limpio al cintillo full-width */
.map-floating-dock {
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}
.sponsor-balloon-tag {
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 1120px) {
  .sponsor-balloon-tag {
    bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 640px) {
  .map-floating-dock {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .sponsor-balloon-tag {
    bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.om-country-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  width: 100%;
  height: calc(42px + env(safe-area-inset-bottom, 0px));
  padding: 0 14px env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 0;
  background: rgba(5, 9, 18, 0.96);
  border-top: 1px solid rgba(212, 175, 55, 0.48);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  color: #edf2f7;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.78rem;
  overflow: hidden;
  transition: opacity 0.25s ease, border-color 0.2s ease;
}
.om-country-ticker:hover {
  border-top-color: #f4d57a;
}
body.cine-mode .om-country-ticker {
  opacity: 0.76;
}
.om-ct-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  cursor: pointer;
}
.om-ct-flag {
  font-size: 1.08rem;
  line-height: 1;
  flex-shrink: 0;
}
.om-ct-country {
  font-weight: 900;
  color: #f6d57a;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.om-ct-sep {
  color: rgba(212, 175, 55, 0.55);
  flex-shrink: 0;
}
.om-ct-monument {
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.om-ct-fact {
  color: #b7c4d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 140px;
  min-width: 0;
}
.om-ct-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.om-ct-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.14);
  color: #f6df95;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.om-ct-btn:hover {
  background: #d4af37;
  color: #090d16;
}
.om-ct-btn.is-green {
  background: rgba(34, 165, 89, 0.22);
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}
.om-ct-btn.is-green:hover {
  background: #22c55e;
  color: #05140b;
}
.om-ct-btn.is-lang {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #dbe6f7;
}
.om-ct-btn.is-lang:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 820px) {
  .om-ct-fact { display: none; }
  .om-ct-monument { max-width: 170px; }
}
@media (max-width: 540px) {
  .om-country-ticker {
    border-radius: 12px;
    padding: 5px 8px;
    gap: 5px;
    font-size: 0.71rem;
  }
  .om-ct-monument { max-width: 112px; }
  .om-ct-btn { padding: 4px 7px; font-size: 0.67rem; }
}

/* Popup Cultural, Monumento 3D y Bienestar 4Life */
.om-dest-card {
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #10182b 0%, #0a0f1c 100%);
  border: 1px solid rgba(212, 175, 55, 0.68);
  border-radius: 18px;
  color: #f3efe6;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.82);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.om-dest-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.om-dest-fact {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d9e2ef;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #d4af37;
  padding: 10px 12px;
  border-radius: 8px;
}
.om-dest-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.om-dest-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: #f6df95;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.om-dest-action:hover {
  background: #d4af37;
  color: #0a0f1c;
  transform: translateY(-1px);
}
.om-dest-action.is-primary {
  background: linear-gradient(135deg, #d4af37 0%, #f5d87e 55%, #b98924 100%);
  color: #090d16;
  border-color: #fff0b8;
}

.om-dest-4life-box {
  background: linear-gradient(135deg, rgba(16, 54, 42, 0.45), rgba(14, 29, 52, 0.6));
  border: 1px solid rgba(74, 222, 128, 0.42);
  border-radius: 14px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.om-dest-4life-kicker {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}
.om-dest-4life-box h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #ffffff;
}
.om-dest-4life-box p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: #d6f5e3;
}
.om-dest-4life-gift {
  font-size: 0.78rem;
  color: #fef08a;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 9px;
  padding: 8px 10px;
}
.om-dest-4life-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.om-dest-4life-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #04150a;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}
.om-dest-4life-btn:hover { filter: brightness(1.08); }
.om-dest-4life-btn.is-alt {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #dcfce7;
}
.om-dest-4life-btn.is-alt:hover {
  background: rgba(34, 197, 94, 0.25);
}

.om-dest-eco-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}
.om-dest-eco-row a,
.om-dest-eco-row button {
  color: #cbd5e1;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.om-dest-eco-row a:hover,
.om-dest-eco-row button:hover {
  color: #f6d57a;
  text-decoration: underline;
}

/* Aviso sutil de Tour-País personalizado (?pais=XX&ref=ID) */
.om-tourpais-pill {
  position: fixed;
  top: 52px;
  right: 14px;
  z-index: 46;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(11, 29, 24, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.6);
  color: #bbf7d0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

/* Desplegable Cultural Transitorio Semitransparente (Tips Históricos y Monumentales del País) */
.om-cultural-tip {
  position: fixed;
  top: 72px;
  left: 14px;
  z-index: 33;
  width: min(355px, calc(100vw - 28px));
  padding: 11px 14px 12px;
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.64);
  border: 1px solid rgba(212, 175, 55, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f4f1e8;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease, background 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}
body.site-menu-open .om-cultural-tip {
  top: 138px;
}
.om-cultural-tip.is-showing {
  opacity: 0.94;
  transform: translateY(0);
  pointer-events: auto;
}
.om-cultural-tip:hover {
  opacity: 1;
  background: rgba(8, 14, 26, 0.88);
  border-color: rgba(246, 213, 122, 0.78);
}
.om-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.om-tip-kicker {
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f6d57a;
}
.om-tip-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: #b7c4d8;
}
.om-tip-close {
  background: none;
  border: 0;
  color: #cbd5e1;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.om-tip-close:hover { color: #f6d57a; }
.om-tip-text {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.46;
  color: #edf2f7;
}
.om-tip-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #d4af37, #f6e08e);
  transform-origin: left center;
  transform: scaleX(0);
}
.om-cultural-tip.is-showing .om-tip-bar {
  animation: omTipBarDrain 7.8s linear forwards;
}
.om-cultural-tip:hover .om-tip-bar {
  animation-play-state: paused;
}
@keyframes omTipBarDrain {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* Lista de tips dentro del popup cultural */
.om-dest-tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.om-dest-tips-list li {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #dbe4f1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 9px;
  padding: 8px 10px;
}

@media (max-width: 780px) {
  .om-dest-actions { grid-template-columns: 1fr; }
  .om-tourpais-pill { display: none; }
  .om-cultural-tip {
    top: 66px;
    left: 10px;
    width: calc(100vw - 20px);
    padding: 9px 12px 10px;
  }
  .om-tip-text { font-size: 0.76rem; }
}

/* ==========================================================================
   CINTILLO ALTERNADO DE MARCAS VIP ("DALE CLIC A TU MARCA" ESTILO BANDERAS) + SELLO OMCAMINO.GROUP
   ========================================================================== */
.om-ct-brands-wrap {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
}
.om-country-ticker.is-brands-mode .om-ct-main {
  display: none !important;
}
.om-country-ticker.is-brands-mode .om-ct-brands-wrap {
  display: flex !important;
}
.om-brands-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f5d87e);
  color: #090d16;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.om-brands-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.om-brands-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  will-change: transform;
  animation: omBrandsScroll 34s linear infinite;
}
.om-brands-viewport:hover .om-brands-track {
  animation-play-state: paused;
}
@keyframes omBrandsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.om-brand-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3fa;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.om-brand-chip:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: #f4d57a;
  color: #fff;
}
.om-brand-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.om-brand-cta-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fff0b8;
  background: linear-gradient(135deg, #d4af37, #f5d87e);
  color: #090d16;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}
.om-brand-cta-chip:hover {
  filter: brightness(1.08);
}
.om-promo-pill {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fde047);
  color: #090d16;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.om-price-strike {
  font-size: 0.92rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 600;
}

/* Sello discreto omcamino.group en el mapa (esquina inferior izquierda sin estorbar) */
.om-group-watermark {
  position: fixed;
  left: 12px;
  bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  z-index: 29;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #e8cf82;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: background 0.18s ease, color 0.18s ease, opacity 0.2s ease;
}
.om-group-watermark:hover {
  background: #d4af37;
  color: #090d16;
}
body.cine-mode .om-group-watermark {
  opacity: 0.55;
}
@media (max-width: 900px) {
  .om-group-watermark {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    font-size: 0.64rem;
    padding: 3px 8px;
  }
}

/* ==========================================================================
   MODO COMPACTO PARA PANTALLAS CON ESCALA DPI ALTA / ALTURA <= 660px
   (Evita que HUD, Globo, Tarjeta del Globo, Activar música y Reproductor se choquen o se vean gigantes)
   ========================================================================== */
@media (max-height: 660px) {
  .hud-compact-bar {
    padding: 4px 8px !important;
    gap: 5px !important;
    transform-origin: top left;
    transform: scale(0.86);
  }
  .om-floating-deploy-btn {
    top: 8px !important;
    right: 10px !important;
    padding: 5px 11px !important;
    font-size: 0.72rem !important;
  }
  .om-cultural-tip {
    top: 48px !important;
    left: 10px !important;
    width: min(275px, 42vw) !important;
    padding: 7px 10px 8px !important;
    border-radius: 11px !important;
  }
  .om-tip-kicker { font-size: 0.60rem !important; }
  .om-tip-text { font-size: 0.72rem !important; line-height: 1.36 !important; }

  #centerTourCta,
  #centerFullscreenCta,
  .center-floating-cta {
    padding: 8px 18px !important;
    font-size: 0.80rem !important;
    border-radius: 999px !important;
    top: 42% !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 64 !important;
  }

  .map-floating-dock {
    bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 5px 11px !important;
    gap: 8px !important;
    border-radius: 999px !important;
    transform-origin: bottom center;
    transform: translateX(-50%) !important;
  }
  .sponsor-balloon-tag {
    bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
    max-width: 175px !important;
    padding: 5px 8px !important;
    font-size: 0.67rem !important;
    border-radius: 10px !important;
  }
  .sponsor-balloon-name { font-size: 0.74rem !important; }
  .sponsor-balloon-kind { font-size: 0.56rem !important; }
  .sponsor-balloon-links { gap: 6px !important; margin-top: 3px !important; }
  .sponsor-balloon-links a { font-size: 0.64rem !important; }

  .om-country-ticker {
    height: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 0.70rem !important;
    padding: 0 10px env(safe-area-inset-bottom, 0px) !important;
  }
  .om-ct-btn { padding: 3px 7px !important; font-size: 0.64rem !important; }
  .om-brand-chip { padding: 2px 8px 2px 4px !important; font-size: 0.68rem !important; }
  .om-brand-logo { width: 16px !important; height: 16px !important; }
  .om-brand-cta-chip { padding: 2px 9px !important; font-size: 0.66rem !important; }

  .om-group-watermark {
    bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important;
    font-size: 0.62rem !important;
    padding: 3px 8px !important;
  }
}

/* Reproductor siempre LARGO y DELGADO en 1 sola fila horizontal (laptop y escritorio), nunca en 2 líneas altas */
@media (min-width: 681px) {
  .map-floating-dock,
  body.cine-mode .map-floating-dock {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: min(760px, calc(100vw - 240px)) !important;
    padding: 5px 12px !important;
    gap: 10px !important;
    border-radius: 999px !important;
    height: auto !important;
  }
  .map-floating-dock .dock-play-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.86rem !important;
    flex-shrink: 0 !important;
  }
  .map-floating-dock .dock-info {
    flex: 1 1 auto !important;
    min-width: 110px !important;
    max-width: 240px !important;
    text-align: left !important;
  }
  .map-floating-dock .dock-title {
    font-size: 0.80rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .map-floating-dock .dock-meta {
    font-size: 0.67rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .map-floating-dock .dock-actions {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
  }
  .map-floating-dock .dock-actions .hud-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    height: 28px !important;
    white-space: nowrap !important;
  }
}

/* Hacer 100% evidente el botón superior izquierdo que pone a andar o pausa el mundo */
#toggleSpinBtn {
  width: auto !important;
  padding: 0 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
#toggleSpinBtn::after {
  content: "Pausar";
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
#toggleSpinBtn.is-paused::after {
  content: "Andar";
}
