
html, body {
  /* Ahora la altura la define una variable que controlaremos con JS */
  height: var(--vh, 100vh); /* Usamos 100vh como fallback por si el JS falla */
  margin: 0;
  padding: 0;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-top: env(safe-area-inset-top, 0);
}

.navbar {
  position: fixed;
  background: #000;
  backdrop-filter: blur(5px);
  padding: 10px 10px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}



.navbar-brand img {
  height: 40px;
}



@media (max-width: 991.98px) {
  .nav-menu-inferior {
    top: 30% !important;
    right: 10px !important;
    width: 70px !important;
    height: calc(30vh - 0px) !important;
    border-radius: 5px !important;
  }
}

@media (min-width: 991.99px) {
  .tipo-vivienda-banner {
    top: 80px;
  }
  .navbar {
    top: 60px;
  }
  .tipo-vivienda-banner {
    top: 70px !important;
  }
}

.btn-outline-primary {
    --bs-btn-color: #ccc;
    --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: #444;
    --bs-btn-hover-bg: #f1f1f1;
	--bs-btn-hover-border-color: #f1f1f1;
	border-color: #666;
	--bs-btn-active-bg: #198754;

}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #de1645;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #940019;
  --bs-btn-hover-border-color: none;
  --bs-btn-focus-shadow-rgb: none;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #de1645;
  --bs-btn-active-border-color: none;
  --bs-btn-active-shadow: 0;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #ccc;
  --bs-btn-disabled-border-color: #eee;
  --bs-btn-border-color: none;
}

@media (max-width: 768px) {
  #modalAdvertencia .modal-footer .btn {
    font-size: 14px;
  }
  background: #000;
}

.nav-menu-inferior .btn:focus,
.nav-menu-inferior .btn i:focus,
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}





.hidden {
  display: none;
}

.selected-option {
  background-color: #007bff !important;
  color: white !important;
}

.option-image {
  width: 100px;
  height: 35px;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: border-color 0.3s ease;
  background: #eee;
}

.option-image.selected {
  border: 3px solid #ddd;
}

.option-image:hover {
  border: 3px solid #ddd;
  border-color: #ddd;
  transition: border-color 0.3s ease;
  background: #ddd;
}



.nav-menu-superior {
    position: fixed;
    bottom: 80px;
    background: rgb(33 33 33);
    padding: 10px 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.modal-body {
    padding: 10px;
}
.modal-title {
    margin-bottom: 0;
    line-height: var(--bs-modal-title-line-height);
    font-size: 16px;
}

.modal-header {
    color: #e9ecef;
    padding: 8px 15px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #000;
}

.form-text {
    margin-top: .25rem;
    font-size: .875em;
    color: #c1c1c1;
}

.form-control {
    background-color: #eee;
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 8px;
    background-color: #000;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
    background: #fff;
}



.nav-menu-inferior {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 80px;
  height: auto;
  max-height: 50vh;
  background: rgb(0 0 0);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (display-mode: standalone) {
  .nav-menu-inferior {
    top: 50%;
    transform: translateY(-50%);
    max-height: calc(50vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    height: auto;
    overflow-x: hidden;
    justify-content: center;
  }
  .navbar {
    top: calc(10px + env(safe-area-inset-top, 0));
  }
  .tipo-vivienda-banner {
    top: calc(70px + env(safe-area-inset-top, 0));
  }
  .nav-menu-superior {
    bottom: calc(90px + env(safe-area-inset-bottom, 0));
  }
}

@supports (-webkit-overflow-scrolling: touch) {
  .nav-menu-inferior {
    top: 50%;
    transform: translateY(-50%);
    max-height: calc(50vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    height: auto;
    overflow-x: hidden;
    justify-content: center;
  }
  .nav-menu-superior {
    bottom: calc(80px + env(safe-area-inset-bottom, 0));
  }
}

.nav-menu-inferior .btn {
  width: 100%;
  max-width: 80px;
  white-space: nowrap;
  text-align: center;
  color: #a0a0a0;
  background-color: transparent;
  border: none;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.nav-menu-inferior .menu-label {
  font-size: 11px;
  color: #a0a0a0;
  margin-top: 5px;
  text-align: center;
  line-height: 1;
  display: block;
}

.nav-menu-inferior .btn i {
  font-size: 20px;
  color: #a0a0a0;
  margin: 0;
  display: block;
  line-height: 1;
}

  .dropdown-menu {
    --bs-dropdown-min-width:14.3rem;
  }

.dropup .dropdown-menu {
  bottom: 100%;
  top: auto;
  margin-bottom: 0.5rem;
}

.dropdown-toggle,
.dropup .dropdown-menu {
  width: 150px;
}

#btnExcellenceMobile:hover,
#btnPremiumMobile:hover,
#btnExcellenceDesktop:hover,
#btnPremiumDesktop:hover {
  background-color: #de1645 !important;
  color: white !important;
  border-color: #de1645 !important;
}

#mobileMenu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

#mobileMenu .btn {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

#mobileMenu .btn i {
  margin: 0;
  display: block;
}

.footer-text {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  z-index: 20;
}

.footer-text a {
  color: #ffffff;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}



#loading-text {
  display: block;
  font-size: 14px;
  color: #de1645;
  margin-top: 10px;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

#loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  justify-content: center;
  z-index: 9999;
}

#loading-bar {
  width: 80%;
  height: 20px;
}

#loading-spinner {
  text-align: center;
  background: white;
}

#loading-spinner img {
  max-width: 100%;
}

#menuPrincipal .btn > span {
  display: none !important;
}
#menuPrincipal .btn > i {
  margin-right: 0 !important;
  font-size: 1.2rem !important;
}
#menuPrincipal .btn {
  padding: 0.375rem 0.75rem !important;
  width: auto !important;
}

#orientation-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

#orientation-warning i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #de1645;
}

body.orientation-locked {
  overflow: hidden;
  height: 100vh;
}

.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #198754;
  --bs-btn-border-color: #198754;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #157347;
  --bs-btn-hover-border-color: #146c43;
  --bs-btn-focus-shadow-rgb: none;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #146c43;
  --bs-btn-active-border-color: #13653f;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.0);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #198754;
  --bs-btn-disabled-border-color: #198754;
}

.publish-project-btn {
    font-size: 17px;
  }

@media (min-width: 992px) {
  #menuPrincipal .btn i {
    display: inline-block;
    margin-right: 8px;
    color: #fff;
  }
  
  #menuPrincipal .btn {
    font-size: 16px;
  }
  
  
   #menuPrincipal .mx-2 {
    margin-right: .0rem !important;
    margin-left: .0rem !important;
	border-radius: 4px;
	border: 0;
        background: #494949;
		font-weight: 500;
		    transition: all 0s ease;
}

   #menuPrincipal .mx-2:hover {
	    color: #fff;
        background: #656565;
}


  
  #desktop-menu-wrapper #mueblesButtons .d-none.d-lg-flex {
    width: 100%;
  }
  #desktop-menu-wrapper #mueblesButtons .btn {
    width: 100%;
    text-align: center;
  }  
  #desktop-menu-wrapper #toggleMueblesDesktop {
    width: 100%;
    text-align: center;
    margin-right: 0 !important;
  }  

  .btn-group, .btn-group-vertical {
    width: 100%;
  }

  #desktop-menu-wrapper {
        position: fixed;
        top: 30% !important;
        left: calc(100% - 220px);
        background: #2d2d2d;
        border: 0px solid #444;
        border-radius: 12px;
        padding: 10px;
        width: 250px;
        z-index: 1000;
        cursor: move !important;
        border-radius: 4px;
  }
  
@media (min-width: 992px) {
  .modal.opciones-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1010;
    background: none;
  }

  .modal.opciones-modal .modal-dialog {
    position: absolute;
    margin: 0;
    transform: none !important;
  }

  .modal.opciones-modal .modal-header {
    cursor: move;
  }

  .modal-backdrop {
    display: none !important;
  }

  .modal.opciones-modal {
    pointer-events: none;
  }

  .modal.opciones-modal .modal-content {
    pointer-events: auto;
  }
}

  #desktop-menu-wrapper .dropdown {
    margin-bottom: 10px;
  }

  #estanciaDropdownNavbar {
    background: #000;
    border-color: #444;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight:500;
  }

  #desktop-menu-wrapper .dropdown-menu {
    right: 100%;
    left: auto;
    top: 0;
    margin-right: 5px;
    background: #000;
    border: 1px solid #444;
  }

  #desktop-menu-wrapper .dropdown-item {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
  }
  


  #desktop-menu-wrapper .dropdown-item:hover {
    background: #444;
    color: #fff;
  }

  #desktop-menu-wrapper #navbarNav {
    display: block;
  }

  #menuPrincipal {
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    width: 100%;
    list-style: none;
  }

  #menuPrincipal li {
    border-bottom: 1px solid #444;
  }

  #desktop-menu-wrapper .btn-guardar {
    width: 70%;
    text-align: center;
    padding: 5px 8px;
    font-size: 16px;
    margin-top: 10px;
    font-weight: 600;
	border-radius: 4px;
  }
  
    #desktop-menu-wrapper .btn-tm {
        width: 100%;
        padding: 8px;
        font-size: 16px;
        margin-top: 10px;
        font-weight: 500;
        flex: auto;
        background: #0d6efd;
        border: 0;
        border-radius: 4px;
        color: #fff;
    }
	
#desktop-menu-wrapper .btn-tm:hover {
        background: #004bba;
    }
	
  #desktop-menu-wrapper .btn-tipovivienda {
    width: 100%;
    text-align: center;
    padding: 8px;
    font-weight: 500;
    margin-top: 0px;
    margin-bottom: 10px;
	        border-radius: 4px;
  }
  
  #desktop-menu-wrapper .btn-tipomobiliario {
    width: 100%;
    text-align: center;
    padding: 8px;
    margin-top: 12px;
    font-weight: 500;
  }
  
    #desktop-menu-wrapper .btn-help {
        width: 25%;
        padding: 2px;
        font-size: 18px;
        margin-top: 10px;
        font-weight: 800;
        flex: auto;
        background: hsla(11, 100%, 62.2%, 1);
        margin-left: 10px;
        border: 0;
        border-radius: 4px;
    }
	    }

.modal-body .btn.active {
  background-color: #198754;
  color: white;
  border-color: #198754;
}

.modal-body .btn {
    border-color: #dee2e6;
    color: #929292;
}

.modal-body .btn:hover {  
    background: #3f3f3f;
}



@media (max-width: 991.98px) {
  .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    gap: 5px;
  }
  .container-fluid > div {
    margin: 0;
    display: none;
  }
  .d-flex.align-items-center {
    display: flex !important;
    order: 1;
  }
  #mueblesButtons {
    display: flex !important;
    order: 2;
  }
  .btn.d-flex.ms-auto {
    display: flex;
    align-items: center;
    order: 3;
    position: static;
    margin-left: 5px;
    gap: 10px !important;
  }
  .dropdown.d-none.d-lg-flex,
  .collapse.navbar-collapse,
  .d-flex.d-none.d-lg-flex {
    display: none !important;
  }
  #mueblesButtons .btn,
  #toggleTipoVivienda {
    padding: 0.4rem 0.5rem;
    font-size: 14px;
    white-space: nowrap;
  }
  .custom-help-btn i {
    font-size: 16px;
  }
}

.btn-sm {
  --bs-btn-padding-y: 0.45rem;
  --bs-btn-padding-x: 0.5rem;
}

.btn {
  --bs-btn-padding-y: 0.35rem;
  --bs-btn-padding-x: 0.5rem;
}

.btn-muebles-aktive {
  background-color: #de1645 !important;
  color: #fff !important;
  border-color: #de1645 !important;
  transition: all 0.3s ease;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.btn-muebles-lgance {
  background-color: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.btn-muebles-aktive:hover,
.btn-muebles-lgance:hover {
  opacity: 0.9;
}

@media (max-width: 428px) {
  #mueblesButtons .btn,
  #toggleTipoVivienda {
    padding: 0.35rem 0.5rem;
  }
  .container-fluid {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.btn-plateado {
  background: #c7ac7f;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
}

.btn-plateado:hover {
  background: #a19052;
  color: #fff;
}

.btn-dorado {
  background: #dbb300;
  color: #fff;
  transition: all 0.3s ease;
   font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
}

.btn-dorado:hover {
  background: #ba8000;
  color: #fff;
}

@media (max-width: 991.98px) {
  .nav-menu-inferior {
    top: 50% !important;
    transform: translateY(-50%) !important;
    max-height: calc(50vh - 60px) !important;
    height: auto !important;
    overflow-x: hidden !important;
    justify-content: center !important;
  }
}

/* Menú principal (versión escritorio) - Estilo Planner5D */
.desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.desktop-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.desktop-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.desktop-nav .nav-list li {
  display: flex;
  align-items: center;
}

.desktop-nav .nav-list a {
  text-decoration: none;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

.desktop-nav .nav-list a:hover {
  background-color: #444;
  border-radius: 5px;
}

.desktop-nav .nav-list a.active {
  background-color: #198754;
  border-radius: 5px;
}

/* Menú principal (versión móvil) - Estilo de la captura */


.mobile-nav .nav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0 10px;
}

.mobile-nav .nav-list li {
  flex: 1;
  text-align: center;
}

.mobile-nav .nav-list a {
  text-decoration: none;
  color: #a0a0a0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.mobile-nav .nav-list i {
  font-size: 20px;
  margin-bottom: 5px;
}

.mobile-nav .nav-list span {
  font-size: 11px;
}

.mobile-nav .nav-list a.active {
  color: #28a745;
}

.mobile-nav .nav-list a.active i {
  color: #28a745;
}

/* Media queries para responsividad */
@media (max-width: 991.98px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile-nav {
    display: none;
  }
}

/* Estilo para secciones generales */
.section {
  padding: 40px 20px;
  text-align: center;
}

.section h1 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.section p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Estilos para la galería en imagenes.html */
.gallery-section {
  margin-top: 80px;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 5px;
  font-weight: 600;
  padding: 0px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.modal-hidden {
    opacity: 0 !important;
    transition: none !important; /* Evita transiciones que puedan causar parpadeos */
}

.opciones-modal .modal-dialog {
    position: fixed;
    margin: 0;
    transition: none; /* Evita transiciones de Bootstrap que puedan interferir */
}

    .btn-azul {
        background-color: #007bff;
        border-color: #007bff;
        color: #fff;
    }
    .btn-azul:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }
    .btn-verde {
        background-color: #28a745;
        border-color: #28a745;
        color: #fff;
    }
    .btn-verde:hover {
        background-color: #218838;
        border-color: #218838;
    }
	
/* ==========================================================
   CSS FINAL v5 - CON FIX DE CLIC
   ========================================================== */
.annotation-type-comment { content: "\f4ad"; color: #0d6efd; }


/* --- ASIGNACIÓN DE ICONO Y COLOR --- */
.annotation-type-comment::before { content: "\f4ad"; color: #0d6efd; }
.annotation-type-like::before { content: "\f164"; color: #198754; }
.annotation-type-love::before { content: "\f004"; color: #dc3545; }
.annotation-type-info-product::before {
    font-family: "Font Awesome 6 Free"; /* O la que uses */
    font-weight: 900;
    content: "\f05a"; /* Este es el código para el icono de círculo de información (i) */
}
.annotation-type-task::before { content: "\f08d"; color: #ffc107; }

/* --- ESTILOS DEL POPUP (no cambian) --- */
.annotation-popup {
    position: fixed;
    z-index: 900;
    background-color: #0e0e0e;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    min-width: 200px;
    max-width: 280px;
}
.annotation-popup-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 8px; }
.annotation-popup-user { font-weight: bold; color: hsla(0, 0%, 97.25%, 1); }
.annotation-popup-close { background: none; border: none; font-size: 24px; line-height: 1; color: #888; cursor: pointer; padding: 0 4px; }
.annotation-popup-close:hover { color: #000; }
.annotation-popup-content { display: flex; align-items: center; gap: 12px; color: hsla(0, 0%, 97.25%, 1); }
.annotation-popup-content i { font-size: 20px; }
.annotation-popup-content p { margin: 0; font-size: 14px; word-wrap: break-word; }

/* Colores de los iconos DENTRO del popup */
.annotation-popup-content .fa-comment-dots { color: #0d6efd; }
.annotation-popup-content .fa-thumbs-up { color: #198754; }
.annotation-popup-content .fa-heart { color: #dc3545; }
.annotation-popup-content .fa-info-circle { color: #0dcaf0; }

/* ==========================================================
   ESTILOS PARA EL MODAL DE CONVERSACIONES
   ========================================================== */

#conversation-modal-body {
    background-color: #e9ecef; /* Un fondo gris claro para el chat */
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#comment-history-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-bubble-wrapper {
    display: flex;
    max-width: 80%;
}

.comment-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 15px;
}

.comment-author {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.comment-timestamp {
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* Estilo para los comentarios de "otros" (a la izquierda) */
.comment-bubble.is-other {
    background-color: #fff;
    color: #333;
    border-top-left-radius: 4px;
}
.comment-bubble.is-other .comment-author {
    color: #0d6efd; /* Azul para el autor */
}

/* Estilo para los comentarios "propios" (a la derecha) */
.comment-bubble-wrapper.is-self {
    align-self: flex-end; /* Alinea el contenedor a la derecha */
}
.comment-bubble.is-self {
    background-color: #d1e7dd; /* Verde claro de Bootstrap success */
    color: #0f5132;
    border-top-right-radius: 4px;
}
.comment-bubble.is-self .comment-author {
    color: #0f5132;
}

/* Estilos para el pie del modal */
#conversationThreadModal .modal-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#newCommentInput {
    flex-grow: 1;
}

#sendNewCommentBtn {
    flex-shrink: 0;
}
/* ==========================================================================
   ESTILOS PARA LA NUEVA BARRA SECUNDARIA MÓVIL
   ========================================================================== */

.mobile-secondary-toolbar {
    background-color: #212529; /* Un color negro/gris oscuro de Bootstrap */
    color: #ffffff;
    padding: 8px 10px;
    position: sticky; /* Se queda fija arriba al hacer scroll */
    top: 56px; /* Ajusta este valor si la altura de tu header es diferente */
    z-index: 1025; /* Un poco por encima del z-index de la navbar de Bootstrap */
    border-bottom: 1px solid #444;
}

.text-white-50 {
    --bs-text-opacity: 1;
    color: rgb(255 255 255 / 64%) !important;
    font-weight: 500;
	FONT-SIZE: 12px;
}

/* Estilos para el contenedor de los iconos de opciones (Suelo, Puertas, etc.) */
#mobileMenu {
    gap: 8px; /* Espacio entre los iconos */
}

/* Para evitar que los botones de opciones se deformen */
#mobileMenu .btn {
    flex-shrink: 0;
}

/* Ocultar la barra de scroll horizontal en el menú de iconos */
#mobileMenu::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
#mobileMenu {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ajustes para los botones de la barra de anotaciones */


/* Estilos para el interruptor de visibilidad */
.mobile-secondary-toolbar .form-check-input {
    background-color: #495057;
    border-color: #6c757d;
		height: 30px;
    width: 60px;
	margin-right: 5px;
}
.mobile-secondary-toolbar .form-check-input:checked {
    background-color: #0d6efd; /* O tu color primario */
    border-color: #0d6efd;
	height: 30px;
    width: 60px;
	margin-right: 5px;
}



.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    color: #000000;
    pointer-events: none;
    background-color: #fbc828;
    border-color: none;
    opacity: 1;
}

.btn {
    font-weight: 500;

}

.bg-danger {
background-color: #444 !important;
    --bs-btn-close-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e);

}



.btn-primary .btn-success.btn-guardar {
    font-weight: 500;
	    border-radius: 4px;
}

#panorama-container.placing-annotation {
    cursor: crosshair !important;
}

/* Estilo para el hotspot de teletransporte */
.pnlm-hotspot-base.annotation-type-change_view {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    border: 0px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icono de Font Awesome dentro del hotspot */
.pnlm-hotspot-base.annotation-type-change_view::before {
    content: '\f4d7'; /* Código unicode para el icono 'fa-route' de Font Awesome 6 */
    font-family: "Font Awesome 6 Free"; /* Asegúrate de que coincida con la versión que usas */
    font-weight: 900;
    font-size: 20px;
    color: white;
}

/* Efecto al pasar el ratón por encima */
.pnlm-hotspot-base.annotation-type-change_view:hover {
    transform: scale(1.2);
    background-color: rgba(0, 86, 179, 0.9); /* Un azul más oscuro */
    cursor: pointer;
}

/* ---- Animación de Enfoque para Anotaciones ---- */

.form-switch-pc {
    padding-left: 2.5em;
    margin-top: 10px;
}

.btn-close{
    --bs-btn-close-color: #000;
    --bs-btn-close-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e);
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-btn-close-focus-opacity: 0;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: var(--bs-btn-close-color);
    background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: var(--bs-btn-close-opacity);
}

.pnlm-hotspot-base.focused-annotation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid rgba(0, 123, 255, 0.7); /* Azul brillante, puedes cambiarlo */
    transform: translate(-50%, -50%);
    opacity: 0;
    
    /* ¡Aquí está la magia! */
    animation: ripple-effect 1.5s ease-out;
}

/* Definición de la animación de "ripple" (onda) */
@keyframes ripple-effect {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(3); /* El anillo se expande 3 veces su tamaño */
        opacity: 0;
    }
}

/* Estilo para los iconos que pertenecen al usuario actual */
.hotspot-owner {
    z-index: 10;
    border-radius: 50%;
    border: 0px solid hsla(242, 87.6%, 62%, 1);
}


/* ---- Estilos para el Banner de Modo Revisión ---- */
#review-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,193,7,1) 0%, rgba(245,166,35,1) 100%);
    color: #333;
    padding: 10px 20px;
    z-index: 1050; /* Por encima de otros elementos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}
#review-mode-banner .banner-content {
    font-weight: 500;
}
#review-mode-banner .banner-actions button {
    font-size: 0.85rem;
    padding: 5px 12px;
}



/* --- Estilos para la Nueva Barra de Herramientas de Escritorio --- */

/* Contenedor principal de la barra */
.desktop-annotation-toolbar {
    /* Usamos flex para alinear los iconos en una fila */
    display: flex;

}

.mobile-desktop-annotation-toolbar {
    /* Usamos flex para alinear los iconos en una fila */
    display: flex;

}

/* El contenedor de las herramientas de admin/dueño también debe ser flex */
#adminAnnotationTools {
    display: flex; /* Cambiado desde JS, pero lo forzamos aquí */

}

/*
   Reutilizamos la clase .long-press-menu-item que ya tienes definida.
   Gracias a esto, los botones ya tendrán el color de fondo, el color del icono,
   el borde redondeado y el efecto hover. No necesitamos reescribir ese código.
   Si por alguna razón el tamaño no encaja, puedes ajustarlo aquí.
*/
.desktop-annotation-toolbar .long-press-menu-item {
    font-size: 15px; /* Un tamaño ligeramente más pequeño para la barra */
    padding: 8px;
	width: 31px;
    height: 31px;
	  margin: 0 1px;
	align-items: center;
    justify-content: center;

}

.mobile-desktop-annotation-toolbar .long-press-menu-item {
    font-size: 15px; /* Un tamaño ligeramente más pequeño para la barra */
    padding: 8px;
	    width: 30px;
    height: 30px;
	    margin: 0 4px;
		    align-items: center;
    justify-content: center;

}

.pnlm-layer-hotspot .pnlm-sprite {
    display: none;
}

/* =================================================================== */
/* == INICIO: Overlay oscuro para el visor (VERSIÓN ACTUALIZADA) == */
/* =================================================================== */



.pnlm-container {
    background: #000000 url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2267%22%20height%3D%22100%22%20viewBox%3D%220%200%2067%20100%22%3E%0A%3Cpath%20stroke%3D%22%23ccc%22%20fill%3D%22none%22%20d%3D%22M33.5%2C50%2C0%2C63%2C33.5%2C75%2C67%2C63%2C33.5%2C50m-33.5-50%2C67%2C25m-0.5%2C0%2C0%2C75m-66.5-75%2C67-25m-33.5%2C75%2C0%2C25m0-100%2C0%2C50%22%2F%3E%0A%3C%2Fsvg%3E%0A) repeat;
}

/* 2. Creación del overlay virtual (sin cambios) */
#panorama-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

/* 3. ¡LA LÍNEA CLAVE ACTUALIZADA!
   Activamos el overlay si (A) hay un modal abierto O (B) si el
   propio contenedor del panorama tiene nuestra clase personalizada. */
body.modal-open .modal:not(.opciones-modal) + #panorama-container::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================================= */
/* == INICIO: ESTILOS PARA MODALES DE OPCIONES (DEFINITIVO) == */
/* ============================================================= */

/* 1. Hacemos que la cabecera sea el "mango" para arrastrar */
.opciones-modal .modal-header {
  cursor: move;
}

/* 2. Para los modales de opciones, ocultamos el fondo de Bootstrap
   y nuestro propio overlay oscuro en TODAS las plataformas. */
.opciones-modal + .modal-backdrop,
body.modal-open .opciones-modal.show ~ #panorama-container::before {
    display: none !important;
}

.btn-close {
    /* El color de la "X" se define en el 'fill' del SVG. 
       Cambiamos #000 (negro) por #fff (blanco). */
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    
    /* Variables originales de Bootstrap para el resto de propiedades */
    --bs-btn-close-color: #000; /* Esto no afecta al SVG, se mantiene por si se usa texto */
    --bs-btn-close-opacity: 0.7; /* Aumentamos la opacidad para que se vea mejor */
    --bs-btn-close-hover-opacity: 1; /* Opacidad total al pasar el ratón */
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
    
    /* Estilos estructurales originales */
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: var(--bs-btn-close-color);
    background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: var(--bs-btn-close-opacity);
}

.form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #86b7fe00;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(13 110 253 / 0%);
}

/* =================================================== */
/* ============= ESTILOS DEL ASISTENTE DE IA ========= */
/* =================================================== */



.ai-chat-fab:hover {
    transform: scale(1.1);
}

/* Contenedor principal del chat */
.ai-chat-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cabecera del chat */
.ai-chat-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.ai-chat-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

/* Área de mensajes */
.ai-chat-messages-area {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #e9ecef;
}

.user-message, .ai-message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto; /* Alinea a la derecha */
    border-bottom-right-radius: 3px;
}

.ai-message {
    background-color: #ffffff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.ai-message.thinking {
    font-style: italic;
    color: #6c757d;
}

/* Área de entrada de texto */
.ai-chat-input-area {
    border-top: 1px solid #dee2e6;
    padding: 10px;
    background-color: #f8f9fa;
}

#ai-chat-form {
    display: flex;
}

#ai-chat-input {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
}

#ai-chat-send-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
}
#ai-chat-send-btn:disabled {
    background-color: #6c757d;
}

/* Estilos para pines, popups, y menús de anotación. */

/* --- Iconos de Anotación (Pines) --- */
.annotation-hotspot-wrapper { width: 30px; height: 30px; cursor: pointer; align-content: center; }
.annotation-hotspot-wrapper::before { font-family: "Font Awesome 6 Free"; font-weight: 900; display: flex; justify-content: center; align-items: center; width: 25px; height: 25px; border-radius: 3px; font-size: 14px; color: white; }
.annotation-type-comment::before { content: "\f4ad"; background-color: #0d6efd; }
.annotation-type-like::before { content: "\f164"; background-color: #198754; }
.annotation-type-love::before { content: "\f004"; background-color: #dc3545; }
.annotation-type-info-product::before { content: "\f05a"; background-color: #0dcaf0; }
.annotation-type-task::before { content: "\f08d"; background-color: #ffc107; }

.annotation-type-ai_training::before { content: "\f5dc"; background-color: #9c27b0; }

/* --- Popup de Detalles de Anotación --- */
.annotation-popup { position: fixed; z-index: 900; background-color: #0e0e0e; border-radius: 4px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); padding: 12px 16px; min-width: 200px; max-width: 280px; }
.annotation-popup-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 10px; gap: 15px; }
.annotation-popup-user { font-weight: 600; color: hsla(0, 0%, 97.25%, 1); }
.annotation-popup-actions { display: flex; align-items: center; gap: 8px; }
.annotation-popup-action-btn.delete { background: none; border: none; cursor: pointer; color: #6c757d; font-size: 1.1em; padding: 0; line-height: 1; transition: color 0.2s ease; }
.annotation-popup-action-btn.delete:hover { color: #dc3545; }
.annotation-popup-content { display: flex; align-items: center; gap: 12px; color: hsla(0, 0%, 97.25%, 1); }
.annotation-popup-content i { font-size: 20px; }
.annotation-popup-content p { margin: 0; font-size: 14px; word-wrap: break-word; }
.annotation-popup-content .fa-comment-dots { color: #0d6efd; }
.annotation-popup-content .fa-thumbs-up { color: #198754; }
.annotation-popup-content .fa-heart { color: #dc3545; }
.annotation-popup-content .fa-info-circle { color: #0dcaf0; }

/* --- Menú Pulsación Larga (Móvil) --- */
#long-press-menu { position: fixed; z-index: 1060; display: flex; justify-content: center; align-items: center; padding: 10px; background-color: rgba(40, 40, 40, 0.9); border-radius: 4px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); transition: transform 0.2s ease-out, opacity 0.2s ease-out; transform: translateX(-50%) scale(0.8); opacity: 0; pointer-events: none; }
#long-press-menu.long-press-menu-visible { transform: translateX(-50%) scale(1); opacity: 1; pointer-events: auto; }
.long-press-menu-item { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; margin: 0 5px; font-size: 20px; color: white; background-color: #000; border-radius: 4px; cursor: pointer; }
.long-press-menu-item:hover { background-color: rgba(255, 255, 255, 0.1); }
#long-press-admin-tools { display: flex; }

/* --- Barra de Herramientas de Anotación (Escritorio y Móvil) --- */
#annotationToolbar, #annotationToolbarMobile { display: flex; }
#annotationToolbar .btn, #annotationToolbarMobile .btn { width: 45px; height: 45px; font-size: 20px; color: #fff; background: #000; border: none; display: inline-flex; align-items: center; justify-content: center; }
#annotationToolbarMobile .btn:hover { background-color: rgba(255, 255, 255, 0.1); color: #ffffff; }

/* --- Animación de Enfoque --- */
.pnlm-hotspot-base.focused-annotation::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border-radius: 50%; background-color: transparent; border: 2px solid rgba(0, 123, 255, 0.7); transform: translate(-50%, -50%); opacity: 0; animation: ripple-effect 1.5s ease-out; }
@keyframes ripple-effect { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; } }

        /* NUEVOS ESTILOS PARA LA TARJETA MEJORADA */
        .project-description {
            font-size: 0.85em;
            color: #666;
            height: 50px; /* Altura fija para 2-3 líneas */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Limitar a 3 líneas */
            -webkit-box-orient: vertical;
            margin-bottom: 10px;
        }
        .project-meta {
            border-top: 1px solid #eee;
            padding-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .project-stats {
            font-size: 0.9em;
            color: #555;
        }
        .project-stats .fas {
            color: #999;
        }
        .project-type-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.75em;
            font-weight: bold;
            text-transform: uppercase;
        }
		
		        /* ... tus otros estilos ... */
        
        /* ESTILOS CORREGIDOS PARA EL CREADOR */
        .project-creator {
            font-size: 0.9em;
            color: #555;
            display: flex;         /* <-- CLAVE: Activa Flexbox */
            align-items: center;   /* <-- CLAVE: Centra verticalmente el avatar y el nombre */
            gap: 8px;              /* <-- CLAVE: Añade un espacio entre el avatar y el nombre */
            overflow: hidden;      /* Previene que el contenido se desborde */
        }
         .creator-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid #eee;
            flex-shrink: 0;        /* <-- CLAVE: Evita que el avatar se encoja */
        }
        .creator-name {
            white-space: nowrap;         /* Evita que el nombre se parta en dos líneas */
            overflow: hidden;            /* Oculta el texto que no cabe */
            text-overflow: ellipsis;     /* Añade "..." si el nombre es muy largo */
        }


		/* ========================================================== */
/* ==   ESTILOS PARA EL INDICADOR DE CARGA (SPINNER)       == */
/* ========================================================== */

#loading-container .spinner-wrapper {
  /* Este contenedor solo sirve para centrar */
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-container .spinner-border {
  width: 3.5rem; /* Ancho del círculo */
  height: 3.5rem; /* Alto del círculo */
  color: #fff; /* Color rojo principal de tu marca */
  border-width: 0.3em; /* Grosor del borde del círculo */
}

/* ================================================================= */
/* ==   CSS FINAL REFORZADO PARA INTERACCIÓN CON MODALES          == */
/* ================================================================= */

/*
  REGLA CLAVE 1 (MÓVIL Y ESCRITORIO):
  Cuando el modal de opciones esté visible (tenga la clase .show), forzamos
  a que su contenedor principal IGNORE TODOS LOS CLICS Y TOQUES.
  El !important garantiza que esta regla anule cualquier otra.
*/
.modal.opciones-modal.show {
    pointer-events: none !important;
}

/*
  REGLA CLAVE 2 (MÓVIL Y ESCRITORIO):
  Al mismo tiempo, reactivamos los clics y toques ÚNICAMENTE para la
  ventana de diálogo visible y su contenido (botones, opciones, etc.).
*/
.modal.opciones-modal.show .modal-dialog {
    pointer-events: auto !important;
}

/*
  REGLA 3 (SOLO ESCRITORIO):
  Mantenemos la lógica para que en pantallas grandes, los modales
  se puedan posicionar libremente y arrastrar. Esto no afecta al móvil.
*/
@media (min-width: 992px) {
    .modal.opciones-modal .modal-dialog {
        position: absolute;
        margin: 0;
        transform: none !important;
    }

    .modal.opciones-modal .modal-header {
        cursor: move;
    }
}

/* ========================================================== */
/* ==   ESTILOS PARA EL CAMPO DE ASIGNACIÓN DE TAREAS      == */
/* ========================================================== */

/* Contenedor principal que envuelve el input y los resultados */
.vhivhe-user-search-wrapper {
    position: relative; /* Necesario para posicionar los resultados debajo */
}

/* Contenedor de las "píldoras" de usuarios ya seleccionados */
.vhivhe-assigned-users-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    margin-bottom: -1px; /* Para que se junte con el input */
    cursor: text; /* Hace que parezca que todo el área es editable */
}

/* La "píldora" individual de un usuario seleccionado */
.vhivhe-user-pill {
    display: inline-flex;
    align-items: center;
    background-color: #0d6efd; /* Azul primario */
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* El botón 'x' para eliminar una píldora */
.vhivhe-remove-pill-btn {
    background: none;
    border: none;
    color: white;
    margin-left: 6px;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
}

.vhivhe-remove-pill-btn:hover {
    opacity: 1;
}

/* El input de búsqueda cuando está dentro del contenedor (MODIFICADO) */
.vhivhe-assigned-users-container + .input-group .form-control {
    border-top-left-radius: 0;
}

.vhivhe-assigned-users-container + .input-group .input-group-text {
    border-top-right-radius: 0;
}

/* Contenedor para la lista de resultados de búsqueda */
.vhivhe-user-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1E1F26; /* Mismo fondo que nuestros menús */
    border: 1px solid #343744;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1060; /* Por encima del contenido del modal */
    max-height: 150px;
    overflow-y: auto;
    display: none; /* Oculto por defecto */
}

/* Un elemento individual en la lista de resultados */
.vhivhe-user-search-item {
    padding: 10px 12px;
    color: #C5C6CC;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

/* Efecto al pasar el ratón sobre un resultado */
.vhivhe-user-search-item:hover {
    background-color: #343744;
    color: #FFFFFF;
}

.vhivhe-embed-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9 / 16 = 0.5625, para un aspect ratio de 16:9 */
  height: 0;
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 1);
  backdrop-filter: blur(5px);
  border-radius: 0;
  z-index: 999;
  padding: 10px 0;
}

/* ================================================================== */
/* == INICIO: CÓDIGO PARA LAYOUT MÓVIL CON MENÚS FIJOS (V.4.0) == */
/* ================================================================== */

/* Solo aplicamos estos cambios en la vista móvil */
@media (max-width: 991.98px) {

    /* 1. Definimos la altura de los menús con variables para fácil mantenimiento */
    :root {
        --navbar-height: 0px; /* Altura de tu .navbar superior */
        --secondary-toolbar-height: 47px; /* Altura de la barra de anotaciones */
        --menu-superior-height: 0px; /* Altura de tu .nav-menu-superior */
        --mobile-nav-height: 80px; /* Altura de tu .mobile-nav inferior */
    }

    /* 2. Creamos el espacio para el visor usando padding en el body */
    /* El visor vivirá dentro de este espacio "seguro" */
    body {
        padding-top: calc(var(--navbar-height) + var(--secondary-toolbar-height));
        padding-bottom: calc(var(--menu-superior-height) + var(--mobile-nav-height));
        box-sizing: border-box; /* Asegura que el padding no aumente el tamaño total */
    }

    /* 3. Posicionamos los menús fijos */
    .navbar {
        top: 0;
        position: fixed;
    }
    .mobile-secondary-toolbar {
        top: var(--navbar-height); /* Se pega justo debajo de la navbar principal */
        position: fixed;
        width: 100%;
		display: none;
    }
    .mobile-nav {
        bottom: 0;
        position: fixed;
    }
    .nav-menu-superior {
        position: fixed;
		display: none;
    }

    /* 4. Hacemos que el visor ocupe el 100% del espacio disponible (del body con padding) */
    #panorama-container {
        position: fixed;
        top: calc(var(--navbar-height) + var(--secondary-toolbar-height));
        left: 0;
        right: 0;
        bottom: calc(var(--menu-superior-height) + var(--mobile-nav-height));
        height: auto; /* Dejamos que top y bottom definan la altura */
        width: 100%;
    }
}

/* Botón IA oculto */
.ai-chat-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1050; /* Por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
	display: none;
}

.tipo-vivienda-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  width: auto;
  top: 110px;
  text-align: center;
  z-index: 10;
  color: white;
  padding: 8px 0;
  font-size: 14px;
  font-weight: normal;
      display: none;
}

@media (max-width: 992px) {
  #footerText {
    position: absolute;
    bottom: 155px;
    width: 100%;
    text-align: center;
    font-size: 12px;
	      display: none;
  }
}

