.wa-cta {
  position: relative;
  display: inline-block;
  margin-right: 0;
}

.wa-cta > button {
  background-color: #10b981;
}

.wa-trigger {
  cursor: pointer;
  white-space: nowrap;
}

.wa-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 12px;
  min-width: 280px;
  max-width: 92vw;
  z-index: 2147483647;
}

.wa-form {
  display: block;
}

.wa-field {
  margin-bottom: 10px;
}

.wa-field label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.wa-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}

.wa-field input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.wa-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.wa-actions .wa-cancel {
  background: #f3f4f6;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.wa-actions .wa-send {
  background: #25d366;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.wa-error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
}

.mapinfomarker a.style-block {
  margin-top: 10px;
  display: inline-block;
  font-size: 10px;
}

.video-redondo {
  border-radius: 15px;
  width: 100%;
  height: auto;
  display: block;
}

.video-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Botón central Play/Pause */
.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 20px 24px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.btn-play.hide {
  opacity: 0;
  pointer-events: none;
}

/* Botón de activar sonido */
.btn-sonido {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
}

.btn-sonido:hover {
  background: rgba(0, 0, 0, 0.8);
}

.botones-sobre-video {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cubrir {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px 12px;
  border-radius: 8px;
  width: 70%;
}

/* ====== MODO MOBILE: "bottom sheet" fijo ====== */
@media (max-width: 640px) {
  .wa-cta button {
    padding: 7px;
    font-size: 10px;
  }

  .wa-cta {
    display: inline-block;
    width: 33%;
    padding: 0 !important;
    margin-right: 0;
  }

  .wa-panel .wa-before {
    cursor: pointer;
    content: "";
    position: fixed;
    background: rgba(0, 0, 0, 0.77);
    top: 0;
    left: 0;
    height: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    z-index: -1;
  }

  .wa-panel form {
    background: #fff;
    padding: 15px;
    border-radius: 7px;
  }

  .wa-trigger {
    width: 100%;
  }

  .wa-panel {
    position: fixed;
    left: 25px;
    right: 25px;
    bottom: 30px;
    top: auto;
    min-width: unset;
    max-width: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    max-height: 60vh;
    overflow: auto;
  }

  .mapinfomarker .wa-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    margin-top: 0;
    right: 0;
    left: 0;
    min-width: 0;
    width: 100%;
    box-shadow: 0 0 0 0;
  }

  .mapinfomarker .wa-panel .wa-before {
    background: #fff !important;
    position: absolute;
    height: auto;
    bottom: 0;
    top: 0;
  }

  .mapinfomarker .wa-cta {
    display: block;
    width: 100%;
  }

  .mapinfomarker .wa-cta .wa-trigger .hide991 {
    display: block !important;
  }
}

/* ====== opcional: dentro de popups/infowindows estrechos ====== */
.mapinfomarker .wa-cta {
  display: block;
}

.mapinfomarker .wa-trigger {
  width: 100%;
}

.mapinfomarker .wa-panel {
  max-width: 96vw;
}

/* === Ajustes cuando el botón vive dentro del popup del mapa === */
.mapinfomarker .wa-cta {
  display: block;
}

.mapinfomarker .wa-trigger {
  width: 100%;
}

/* El panel deja de ser flotante y se vuelve parte del contenido del popup */
.mapinfomarker .wa-panel {
  position: fixed;
  top: auto;
  margin-top: 5px;
  right: auto;
  left: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  border: 0;
  box-shadow: 0 0 9px -5px;
  padding: 10px;
  z-index: 9999;
}

/* Botonera alineada a la derecha dentro del globito */
.mapinfomarker .wa-actions {
  justify-content: flex-end;
}

/* Opcional: si ves scroll feo dentro del globito, libera el overflow del contenedor de GMaps */
.gm-style .gm-style-iw-d {
  overflow: visible !important;
  max-height: none !important;
}

.gm-style .gm-style-iw-c {
  overflow: visible !important;
}

.videoWrapper {
  position: relative;
  width: 100vw;
  height: calc(100vh - 75px);
  overflow: hidden;
  background: #000000;
}

.videowrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.videowrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.textTitleCint {
  margin: 45px auto;
}

.frases-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 170px;
  margin-bottom: 0;
  overflow: hidden;
}

.frase {
  position: absolute;
  width: 100%;
  top: 100%;
  opacity: 0;
  transition: all 0.8s ease-in-out;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.frase span {
  font-weight: 600;
  font-size: unset;
}

.frase.activa {
  top: 0;
  opacity: 1;
}

.frase.saliendo {
  top: -100%;
  opacity: 0;
}

.botones-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.boton {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 12px 19px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.boton:hover {
  background: white;
  color: #333;
}

/* Botón de scroll mouse animado */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 3;
}

.scroll-text {
  color: white;
  font-size: 0.8rem;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mouse {
  width: 34px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 20px;
  }
}

a.th-btn.style-block.open-popup-link.mapBtn {
  filter: hue-rotate(339deg);
}

/* Responsive */
@media (max-width: 991px) {
  .boton {
    font-size: 12px;
    padding: 12px 9px;
  }

  .textTitleCint {
    margin: 25px auto;
  }

  .textTitleCint p {
    font-size: 20px !important;
  }

  .videoWrapper {
    height: calc(100vh - 130px);
  }

  .frase {
    font-size: 3rem;
  }

  .botones-container {
    align-items: center;
  }

  .boton {
    width: 130px;
  }
}

@media (max-width: 480px) {
  .frase {
    font-size: 2.8rem;
  }

  .frases-container {
    height: 150px;
  }

  .scroll-indicator {
    bottom: 20px;
  }
}

.btnDorado {
  text-transform: none;
  background: #cca42e !important;
  min-width: 190px;
}

.btnDorado {
  text-transform: none;
  background: linear-gradient(135deg, #e0b84a, #cca42e);
  color: #fff;
  min-width: 190px;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* transición general */
  transition: all 0.3s ease;

  /* sombra base */
  box-shadow: 0 6px 15px rgba(204, 164, 46, 0.4);

  /* ✨ animación loop */
  animation: pulseDorado 2.5s infinite ease-in-out;
}

/* Hover */
.btnDorado:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(204, 164, 46, 0.7);
  background: linear-gradient(135deg, #f0c75e, #d4ac34);
  animation: none;
  /* se detiene para control del usuario */
}

/* Click */
.btnDorado:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 10px rgba(204, 164, 46, 0.4);
}

/* Efecto brillo */
.btnDorado::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: all 0.6s;
}

.btnDorado:hover::before {
  left: 120%;
}

/* Focus accesible */
.btnDorado:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 164, 46, 0.4);
}

/* 🔥 Animación sutil (pulse elegante) */
@keyframes pulseDorado {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 15px rgba(204, 164, 46, 0.4);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(204, 164, 46, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 6px 15px rgba(204, 164, 46, 0.4);
  }
}

div#mapaPop {
  max-width: unset;
  overflow: hidden;
}

div#map-deptos {
  width: 100%;
  height: calc(100vh - 200px);
}

.mapinfomarker {
  text-align: center;
}

.logoMarker {
  display: block;
  margin: auto;
  margin-bottom: 15px;
  width: 70px;
}

.mapinfomarker a.style-block {
  margin-top: 10px;
  display: inline-block;
}

.mapinfomarker a.style-block i {
  margin-right: 5px;
  display: inline-block;
  font-size: 14px;
}

.mapinfomarker a.style-block.wa {
  background: #25d366;
}

.tt-byu {
  font-size: 16px;
  margin: 5px auto;
  display: block;
}

.gm-style-iw-chr button {
  position: absolute !important;
  right: 0;
  top: 0;
}

b.instyleDo {
  font-weight: 600;
  margin: 5px 5px 8px 5px;
  display: inline-block;
}

.btnFiltro.activo {
  background-color: #007c89;
}

.btnFiltro.activo .sec-title,
.btnFiltro.activo .sec-title i {
  color: #fff;
}

.hide {
  display: none !important;
}

.bannerBox {
  position: relative;
  min-height: 500px;
  width: 100vw;
  overflow: hidden;
  margin-bottom: 50px;
}

.bannerBox a {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bannerBox .coverimg {
  position: absolute;
  left: -100vw;
  right: -100vw;
  text-align: center;
  top: 0;
  bottom: 0;
  display: block;
  width: 0;
  overflow: visible;
  margin: auto;
  display: block;
  height: 100%;
  z-index: 0;
}

.bannerBox .coverimg img {
  width: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  max-width: unset;
  left: -10000vw;
  right: -10000vw;
  margin: auto;
}

#bannerpdf {
  padding: 25px;
  top: 15px;
  max-width: 1200px;
  height: 100%;
  min-height: 85vh;
  margin: auto;
}

#bannerpdf iframe {
  width: 100%;
  min-height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

img.mfp-img {
  width: auto;
  max-width: 90% !important;
  height: auto;
  display: block;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
  border-radius: 15px;
  z-index: 0;
  position: relative;
}

.mfp-figure .mfp-close {
  top: -45px !important;
}

.mfp-figure .mfp-bottom-bar {
  text-align: center;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 30px;
  margin-top: 6px;
}

.mfp-close-btn-in .mfp-close {
  right: 0;
  top: 0;
}

.mfp-figure:after {
  display: none;
}

@media (max-width: 991px) {
  .bannerBox {
    min-height: 250px;
  }

  .pb0RES {
    padding-bottom: 0;
  }
}
