/* ==========================================================================
   TOUR AÉREO MUSICAL 3D · PUNTA CANA (DC PUNTA CANA & ASONAHORES)
   100% aislado del Tour Mundial 3D general y del Tour Nutri100cia
   Optimizado para monitores 4K/43" con DPI alto, laptop, móvil y embed iframe
   ========================================================================== */
:root {
  --pc-bg: #070b14;
  --pc-panel: rgba(9, 16, 30, 0.88);
  --pc-border: rgba(212, 175, 55, 0.46);
  --pc-gold: #f5d87e;
  --pc-gold-deep: #d4af37;
  --pc-aqua: #38bdf8;
  --pc-aqua-soft: #7dd3fc;
  --pc-text: #f3f6fb;
  --pc-muted: #b7c4d8;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--pc-bg);
  color: var(--pc-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.pc-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #0e223d 0%, #070b14 76%);
}

.pc-map-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.pc-map-wrap gmp-map-3d {
  width: 100%;
  height: 100%;
  display: block;
}

/* Barra superior fina, elegante y compacta */
.pc-topbar {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pc-panel);
  border: 1px solid var(--pc-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pc-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--pc-aqua-soft);
  white-space: nowrap;
  padding-left: 4px;
}

.pc-select {
  flex: 1 1 200px;
  min-width: 150px;
  max-width: 340px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
.pc-select:focus { border-color: var(--pc-gold); }
.pc-select option { background: #0d1526; color: #ffffff; }

.pc-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pc-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #eef3fa;
  font-size: 0.71rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.pc-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--pc-gold);
}
.pc-btn.is-fs {
  border-color: rgba(245, 216, 126, 0.52);
  color: var(--pc-gold);
}
.pc-fs-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pc-fs-tip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 65;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #fff3c4;
  background: linear-gradient(135deg, #d4af37, #f5d87e);
  color: #090d16;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.pc-fs-tip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: #e6c257;
  border-left: 1px solid #fff3c4;
  border-top: 1px solid #fff3c4;
}
.pc-fs-tip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pc-offer-cta {
  margin-left: auto;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #fde047 100%);
  color: #090d16;
  font-size: 0.70rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.32);
  transition: filter 0.16s ease;
}
.pc-offer-cta:hover { filter: brightness(1.07); }

/* En pantalla completa: mantener visible el desplegable con el directorio de tours + botón salir */
.pc-fs-restore {
  display: none;
  height: 28px;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid var(--pc-gold);
  color: var(--pc-gold);
  font-size: 0.71rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.pc-fs-restore:hover { background: var(--pc-gold); color: #090d16; }
.pc-stage.is-cine .pc-fs-restore { display: inline-flex; }
.pc-stage.is-cine .pc-hide-cine { display: none !important; }
.pc-stage.is-cine .pc-brand { display: none; }

/* Globo Maestro de Lujo redondo con medallón circular estilo INESIMED para DC Punta Cana */
.pc-balloon {
  position: absolute;
  top: 52px;
  right: clamp(12px, 3vw, 44px);
  z-index: 36;
  width: clamp(108px, 24vh, 170px);
  height: clamp(108px, 24vh, 170px);
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
  animation: pcBalloonFloat 5.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.pc-balloon:hover { transform: scale(1.04); }
.pc-balloon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transform: scaleX(1.13);
}
.pc-balloon-medallion {
  position: absolute;
  top: 15.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2.2px solid #f5d87e;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.pc-balloon-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes pcBalloonFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

/* Avioneta con Banner (dentro de #pcStage, visible en pantalla completa) */
.pc-plane {
  position: absolute;
  top: 46px;
  left: -460px;
  z-index: 24;
  width: clamp(240px, 37vw, 395px);
  cursor: pointer;
  display: none;
  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));
}
.pc-plane.is-flying {
  display: block;
  animation: pcPlaneFly 24s linear forwards;
}
.pc-plane:hover { animation-play-state: paused; }
.pc-plane canvas {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes pcPlaneFly {
  0%   { transform: translateX(0) translateY(0); }
  25%  { transform: translateX(calc(34vw + 180px)) translateY(-6px); }
  50%  { transform: translateX(calc(68vw + 360px)) translateY(4px); }
  75%  { transform: translateX(calc(102vw + 540px)) translateY(-5px); }
  100% { transform: translateX(calc(132vw + 740px)) translateY(0); }
}

/* Tarjeta compacta de parada actual (esquina inferior derecha, sin tapar el mapa ni el dock) */
.pc-stop-card {
  position: absolute;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 56;
  width: min(265px, 28vw);
  padding: 8px 11px;
  border-radius: 13px;
  background: rgba(9, 15, 28, 0.88);
  border: 1px solid var(--pc-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.58);
}
.pc-stop-tag {
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pc-aqua-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-stop-name {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-stop-meta {
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--pc-gold);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-stop-links {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-stop-links a,
.pc-inline-cta {
  font-size: 0.64rem;
  font-weight: 800;
  color: #fde68a;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.pc-stop-links a:hover,
.pc-inline-cta:hover { text-decoration: underline; color: #ffffff; }

/* Modal Autoservicio PayPal / Tarjeta sin cuenta PayPal */
.pc-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.pc-modal.is-open { display: flex; }
.pc-modal-box {
  width: min(560px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  background: #0c1425;
  border: 1.5px solid var(--pc-gold-deep);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.75);
  color: #f3f6fb;
}
.pc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}
.pc-modal-kicker {
  display: block;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--pc-gold);
}
.pc-modal-title {
  margin: 3px 0 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
}
.pc-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.pc-modal-close:hover { background: var(--pc-gold); color: #090d16; }
.pc-modal-lead {
  margin: 10px 0 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.pc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
@media (max-width: 560px) {
  .pc-form-grid { grid-template-columns: 1fr; }
}
.pc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pc-field span {
  font-size: 0.67rem;
  font-weight: 800;
  color: #e2e8f0;
}
.pc-field input,
.pc-field select {
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
}
.pc-field select option { background: #0c1425; color: #ffffff; }
.pc-field input:focus,
.pc-field select:focus { border-color: var(--pc-gold); }
.pc-file-field { margin-top: 9px; }
.pc-file-field input { padding: 5px 8px; height: auto; }
.pc-form-feedback {
  margin-top: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fde047;
  min-height: 16px;
}
.pc-form-feedback.is-err { color: #f87171; }
.pc-submit-btn {
  margin-top: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #d4af37, #fde047);
  color: #090d16;
  font-size: 0.80rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.pc-submit-btn:hover { filter: brightness(1.06); }
.pc-submit-btn:disabled { opacity: 0.6; cursor: wait; }
.pc-pay-box {
  margin-top: 10px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.5);
}
.pc-pay-summary {
  font-size: 0.77rem;
  font-weight: 800;
  color: #a7f3d0;
  margin-bottom: 8px;
}
.pc-pay-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 520px) {
  .pc-pay-actions { grid-template-columns: 1fr; }
}
.pc-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}
.pc-pay-btn.is-paypal { background: #ffc439; color: #003087; }
.pc-pay-btn.is-card { background: #1e293b; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); }
.pc-pay-btn:hover { filter: brightness(1.07); }
.pc-modal-note {
  margin: 10px 0 0;
  font-size: 0.69rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Pill discreto de activar audio */
.pc-audio-prompt {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 61;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #fff3c4;
  background: linear-gradient(135deg, #d4af37, #f5d87e);
  color: #090d16;
  font-size: 0.76rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
.pc-audio-prompt.is-visible { display: inline-flex; }

/* Reproductor inferior compacto en 1 fila (SIEMPRE encima: z-index 60) */
.pc-dock {
  position: absolute;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  width: min(460px, calc(100vw - 20px));
  padding: 6px 11px;
  border-radius: 15px;
  background: rgba(9, 14, 26, 0.92);
  border: 1px solid var(--pc-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.pc-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #d4af37, #f5d87e);
  color: #090d16;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.38);
}
.pc-play-btn:hover { filter: brightness(1.08); }

.pc-dock-info { flex: 1 1 auto; min-width: 0; }
.pc-dock-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-dock-sub {
  font-size: 0.67rem;
  color: var(--pc-gold);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-dock-progress {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pc-bar-bg {
  flex: 1 1 auto;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  cursor: pointer;
}
.pc-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #f5d87e);
  transition: width 0.2s linear;
}
.pc-time {
  font-size: 0.62rem;
  color: var(--pc-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pc-dock-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.pc-icon-btn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #eef3fa;
  font-size: 0.70rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pc-icon-btn:hover { border-color: var(--pc-gold); color: var(--pc-gold); }
.pc-icon-btn.is-active {
  background: rgba(212, 175, 55, 0.24);
  border-color: var(--pc-gold);
  color: var(--pc-gold);
}

/* Sello discreto inferior izquierdo */
.pc-corner-links {
  position: absolute;
  left: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 54;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pc-corner-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.34);
  color: #e8cf82;
  font-size: 0.63rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.pc-corner-pill:hover { background: #d4af37; color: #090d16; }

/* Toast discreto */
.pc-toast {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 64;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.94);
  border: 1px solid var(--pc-border);
  color: var(--pc-gold);
  font-size: 0.71rem;
  font-weight: 700;
  max-width: calc(100vw - 24px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pc-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .pc-brand { display: none; }
  .pc-corner-links { display: none; }
  .pc-stop-card { display: none; }
}
@media (max-width: 680px) {
  .pc-topbar {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 5px 7px;
    gap: 5px;
  }
  .pc-select { flex: 1 1 100%; max-width: none; height: 27px; }
  .pc-offer-cta { font-size: 0.66rem; padding: 0 9px; height: 26px; }
  .pc-btn { height: 26px; padding: 0 8px; font-size: 0.68rem; }
  .pc-balloon { top: 82px; right: 8px; width: 106px; height: 106px; }
  .pc-plane { top: 78px; width: 78vw; }
  .pc-dock { padding: 6px 9px; gap: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .pc-play-btn { width: 32px; height: 32px; }
  .pc-dock-title { font-size: 0.74rem; }
  .pc-dock-sub { font-size: 0.64rem; }
}
