/* ===== Opacity slider in LayersPanel ===== */
.xl-opacityPanel {
	background: rgba(56, 69, 67, 0.9);
	padding: 0px 8px;
	border-radius: 8px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  gap: 8px;
  width: 129px;
	height: 32px;
}

.xl-opacityRange {
	appearance: none;
	-webkit-appearance: none;
	width: 116px;
	height: 4px;
	border-radius: 8px;
	background: #D9D9D9;
	outline: none;
  cursor: pointer;
}
.xl-opacityRange::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 8px;
	background: #D9D9D9;
}
.xl-opacityRange::-moz-range-track {
	height: 4px;
	border-radius: 8px;
	background: #D9D9D9;
}
.xl-opacityRange::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	margin-top: -10px; /* center 28px thumb over 8px track */
	width: 24px;
	height: 24px;
	border-radius: 14px;
	background: 
		radial-gradient(circle at 40% 40%, #6AB2A3 0 0.2px, transparent 2.5px),
		radial-gradient(circle at 60% 40%, #6AB2A3 0 0.2px, transparent 2.5px),
		radial-gradient(circle at 40% 60%, #6AB2A3 0 0.2px, transparent 2.5px),
		radial-gradient(circle at 60% 60%, #6AB2A3 0 0.2px, transparent 2.5px),
		#8CFAE2; /* mint base */
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	border: 0;
}
.xl-opacityRange::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 14px;
	background: 
  radial-gradient(circle at 40% 40%, #6AB2A3 0 0.2px, transparent 2.5px),
  radial-gradient(circle at 60% 40%, #6AB2A3 0 0.2px, transparent 2.5px),
  radial-gradient(circle at 40% 60%, #6AB2A3 0 0.2px, transparent 2.5px),
  radial-gradient(circle at 60% 60%, #6AB2A3 0 0.2px, transparent 2.5px),
		#8CFAE2;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	border: 0;
}
.xl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(90deg, #FFFFFF 85.1%, #8D8D8D 100%);
  display: flex;
  justify-content: stretch;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.xl-header__inner {
  width: 100%;
  max-width: none;
  padding: 0 0px;
  box-sizing: border-box;
}

/* Rectangle 3 (la franja gris de 64px) */
.xl-header__bar {
  height: 60px;
  width: 100%;
  background: #F3F3F3;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding-inline: 12px;           
  gap: 0px;                       
  position: relative;
  overflow: visible; /* permite que el dropdown se muestre completo */
}

.xl-header__left  { display:flex; align-items:center; gap:12px; border-right: 1px solid rgba(255,255,255,1); height: 100%; align-self: stretch; }
.xl-header__right { display:flex; align-items:center; gap:8px; margin-left:auto; padding-right: 18px; }

html, body { margin: 0; }
body { font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* Ornament right inline SVG container */
.xl-header__ornamentRight {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Avatar (iniciales) redondo en la derecha */
.avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #384543;
  color: #EAF1EF;
  font-family: 'Montserrat';
  font-weight: 400;
  font-size: 16px;
  line-height: 20;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 2; /* sobrepuesta al ornamento */
}

@media (max-width: 820px) {
  .xl-header__toolsMobile {
    position: fixed;
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    max-width: 100vw;
    bottom: 0px;
    z-index: 1300;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 10px 14px;
    border-radius: 0px;
    background: rgba(255,255,255,1);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    overflow: visible;
  }
  .xl-header__toolsWrapper { display: none; }
  .xl-floatingControls {
    right: 26px;
    bottom: 86px;
    top: auto;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .xl-floatingButtons {
    margin-top: auto;
    margin-bottom: auto;
  }
  .xl-header {
    height: auto;
    padding-top: 0px;
    padding-bottom: 0px;
    /*background: rgba(255, 255, 255, 0.92);*/
    background: #D2D2D2;
    backdrop-filter: blur(10px);
  }
  .xl-header__bar {
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 0 12px 6px;
    background: transparent;
  }
  .xl-branddd {
    display: none;
  }
  .xl-header__left {
    width: auto;
    border-right: none;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .xl-instructionMenu {
    flex: 1 1 auto;
    max-width: 320px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    height: auto;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 18px;
    background: #F9FBFA;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .xl-instructionMenu__input {
    width: 100%;
    font-size: 13px;
  }
  .xl-instructionMenu__btn,
  .xl-instructionMenuStarts__btn {
    width: 38px;
    height: 38px;
  }
  .xl-header__tools {
    pointer-events: auto;
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 8px;
  }
  .xl-instructionMenu__tools {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(238,240,240,0.95);
  }
  #btnHeaderClean {
    display: none;
  }
  .xl-header__divider {
    display: none;
  }
  .xl-header__right {
    order: 3;
    width: auto;
    justify-content: center;
    padding-right: 0;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .xl-header__ornamentRight {
    display: none;
  }
  .xl-floatingZoomButton {
    display: none !important;
  }
}
 
 /* Instruction menu (voz y texto) */
.xl-instructionMenu {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  background: #E9E9E9;
  border-bottom-right-radius: 16px;
  height: 60px;
}
.xl-instructionMenu__input {
  flex: 1;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #384543;
    resize: none;
    overflow-y: auto;
    min-height: 30px;
    max-height: 120px;
}
.xl-instructionMenu__icon {
  color: #384543;
  width: 25px;
  height: 25px;
}
.xl-instructionMenu__opener { cursor: pointer; }
.xl-instructionMenu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  /*border: 0.5px solid #D1D5DB;*/
  background: #F3F3F3;
  color: #374151;
  cursor: pointer;
  padding: 6px;
  gap: 8px;
}
.xl-instructionMenu__btn.is-on {
  color: #047857;
  border-color: #04785733;
  background: #8CFAE2;
}
.xl-pdfMenu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    /*border: 0.5px solid #D1D5DB;*/
    background: #FFFFFF;
    color: #374151;
    cursor: pointer;
    padding: 6px;
    gap: 8px;
}
.xl-instructionMenu__tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 6px;
  gap: 8px;
  width: 35px;
  height: 35px;
  background: #E9E9E9;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  color: #384543;
}

.xl-header__tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}
.xl-floatingControls {
  position: fixed;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: flex-end;
  gap: 25px;
  z-index: 1200;
}
.xl-floatingWatermark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.xl-floatingButtons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 820px) {
  .xl-floatingButtons {
    margin-top: calc((100vh - 36px) / 2);
    transform: translateY(-50%);
  }
}
.xl-header__toolsMobile {
  display: none;
}

/* Tamaño homogéneo para los íconos de los botones externos */
.xl-header__tools .xl-instructionMenu__btn svg {
  width: 20px;
  height: 20px;
}

.xl-instructionMenuStarts__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  /*border: 0.5px solid #D1D5DB;*/
  background: #8CFAE2;
  color: #374151;
  cursor: pointer;
  padding: 6px;
  gap: 8px;
}

/* Responsivo: que nunca se sobreponga ni crezca más de lo debido */
@media (max-width: 1200px) {
  .xl-instructionMenu { max-width: 380px; }
}
@media (max-width: 1024px) {
  .xl-instructionMenu { max-width: 320px; padding: 6px 10px; }
  .xl-instructionMenu__input { font-size: 13px; }
}
@media (max-width: 900px) {
  .xl-instructionMenu { max-width: 280px; gap: 8px; }
}

/* Brand dropdown (logo + marca + menu) */
.xl-branddd {
  display:flex;
  align-items:center;
  height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative; /* ancla el menú a este botón */
}

.xl-branddd__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}

.xl-branddd__button:hover{ background: rgba(0,0,0,.04); }
.xl-branddd__button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(56,69,67,.18);
}

.xl-branddd__logo{
  height: 28px;
  width: auto;
  display: block;
}

.xl-branddd__brand { font-size: 16px; font-weight: 600; color: #2B2B2B; letter-spacing: 0.2px; white-space: nowrap; }
.xl-branddd__brand svg{
  height: 48px;
  width: auto;
  display: block;
  vertical-align: middle;
}

.xl-branddd__chevron{
  width: 14px;
  height: 14px;
  color: #2b2b2b;
  opacity: 1;
  margin-left: 2px;
}

.xl-branddd__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  /*background: rgba(56, 69, 67, 0.78);*/
  background: rgba(27, 41, 39, 0.9);
  border: none;
  /*backdrop-filter: blur(8px) saturate(115%);*/
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  border-radius: 12px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.24);
  padding: 16px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}

.xl-branddd__menuHeader {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xl-branddd__menuHeaderLabel {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.2px;
  color: #DCE9E6;
}

.xl-branddd__menuHeaderControls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xl-branddd__projectButton {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 0px;
  background: rgba(27, 41, 39, 0.9);
  color: #F4F8F7;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  line-height: 19px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: none;
}

.xl-branddd__projectButton svg {
  width: 16px;
  height: 16px;
  color: #8CFAE2;
  flex-shrink: 0;
}

.xl-branddd__projectButton:hover,
.xl-branddd__projectButton:focus-visible {
  background: #2F4541;
  border-color: #8CFAE2;
  outline: none;
}

.xl-branddd__projectName {
  flex: 1;
  white-space: normal;
  line-height: 1.2;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #FFFFFF;
}

.xl-branddd__projectIconBtn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 41, 39, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.xl-branddd__projectIconBtn:hover,
.xl-branddd__projectIconBtn:focus-visible {
  background: #2F4541;
  border-color: #8CFAE2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
  outline: none;
}

.xl-branddd__projectIconBtn img {
  width: 13px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.xl-branddd__menuDivider {
  width: 100%;
  height: 1px;
  background: rgba(42, 60, 57, 0.6);
  margin: 4px 0 0 0;
}

.xl-branddd__menuItem {
  display: block;
  width: 100%;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  text-align: left;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 16px;
  line-height: 21px;
  color: #E9EDEB;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.xl-branddd__menuItem:hover,
.xl-branddd__menuItem:focus-visible {
  background: #2F4541;
  color: #FFFFFF;
  outline: none;
}

.xl-branddd__menuItem_title{
  padding: 10px 12px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  color: #E9E9E9;
}

/* Fila de versión en el menú */
.xl-branddd__version {
  margin-top: 12px;
  padding: 10px 4px 4px 4px;
  border-top: 1px solid #2A3C39;
  color: #AFC0BC;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3px;
  pointer-events: none;
}

/* Separador vertical entre “XphereLab” y la ubicación */
.xl-header__divider {
  width: 1px;
  height: 100%;
  background: #e3e3e3;
  margin-left: 16px;
  margin-right: 8px;
}

/* Contenedor del bloque de ubicación */
.xl-loc {
  display: flex;
  flex-direction: column;   /* apila los hijos verticalmente */
  align-items: flex-end;
  gap: 0px;                 /* separación entre ciudad y chip del año */
  height: 46px;              /* similar a la altura del trigger de marca */
  padding: 0 14px;           /* que respire dentro del segmento */
}

.xl-loc__city {
  width: 136px;
  height: 15px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
  color: #384543;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  margin-top: 4px;
}


.xl-loc__year {
  width: 104.72px;
  height: 15px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  text-align: right;
  color: #384543;
  flex: none;
  order: 0;
  flex-grow: 0;
  margin-top: 4px;
}

.xl-loc__info {
  width: 14px;
  height: 15px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  text-align: right;
  color: #384543;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.xl-instructionMenu__input {
  width: 250px;                 
  font-family: 'Montserrat';
  font-style: normal;
  font-size: 14px;              
  font-weight: 400;             
  line-height: 1.4;               
  color: #384543;              
  background: transparent;      
  border: none;                 
  outline: none;               
  padding: 5px 0;                   
  min-height: 30px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  caret-color: #384543;
}
/* Evitar que el autofill altere color de fondo/texto del buscador */
.xl-instructionMenu__input:-webkit-autofill,
.xl-instructionMenu__input:-webkit-autofill:hover,
.xl-instructionMenu__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #384543 !important;
  caret-color: #384543;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px #FFFFFF00 inset; /* transparente */
}
.xl-instructionMenu__input:-moz-autofill {
  box-shadow: 0 0 0px 1000px #FFFFFF00 inset;
  -moz-text-fill-color: #384543;
  caret-color: #384543;
}

/* Placeholder con la misma tipografía y color */
.xl-instructionMenu__input::placeholder {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #384543;
  opacity: 0.7; /* ajusta si lo quieres más tenue (0.6–0.8) */
}

/* Opcional: al enfocar no cambies estilo */
.xl-instructionMenu__input:focus {
  border: none;
  box-shadow: none;
}

/* ================= Chat Panel (aislado) ================= */
.xl-chat {
  position: fixed;
    top: 60px;
    left: 425px;
    width: 528px;
    height: 583px;
    max-width: 92vw;
    background: #E2F5FF;
    /* azul muy claro */
    border-top: 2px solid #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 0px 0px 16px 16px;
    z-index: 1200;
}
.xl-chat__header { display:flex; justify-content: space-between; align-items: center; padding: 6px 0px 2px 6px; }
.xl-chat__title { display:flex; align-items:center; gap:8px; font-weight:700; color:#24323A; padding-left: 18px; padding-top: 20px; padding-bottom: 15px;}
.xl-chat__titleIcon { font-size: 22px; }
.xl-chat__titleText {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 21.6616px;
  line-height: 26px; 
  color: #384543;
 }
.xl-chat__headerTools { display:flex; align-items:center; gap:8px; }
.xl-chat__chip { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 999px;
    border: 0;
    background: #FFFFFF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
}
.xl-chat__chip--date svg { color:#111827; }
.chattextHoy {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
}
.xl-chat__iconBtn { width:28px; height:28px; border-radius:999px; border:0; background:#ffffffb3; cursor:pointer; }
.xl-chat__btnRound { width:34px; height:34px; border-radius:999px; border:0; background:#ffffff; cursor:pointer; box-shadow: 0 1px 2px rgba(0,0,0,.1); display:inline-flex; align-items:center; justify-content:center; }
.xl-chat__btnRound--close {
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px;
  right: 0px;
  gap: 8px;
  background: #E2F5FF;
  border-width: 1px 0px 1px 1px;
  border-style: solid;
  border-color: #BCE8FF;
  border-radius: 50px 0px 0px 50px;
}

.xl-chat__body { 
    background: #FFFFFF;
    width: 474px;
    height: 394px;
    border-radius: 10px;
    left: calc(50% - 474px/2);
    top: 73px;
    margin-left: 20px;
    color: #111827;
    border-radius: 20px;
    padding: 20px;
    overflow: auto;
}
.xl-chat__intro {
  margin-bottom: 10px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  line-height: 23px;
  color: #000000;
}
.xl-chat__intro2 {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 17px;
  color: #000000;
}
.xl-chat__subtitle { 
  font-family: 'Montserrat';
font-style: normal;
  font-weight:700; 
  font-size: 16px;
line-height: 20px;
  margin:10px 0 6px; 
  color: #000000;
}
.xl-chat__suggestions { display:flex; flex-direction:column; gap:8px; }
.xl-chat__pill {
  align-self: flex-start;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 4px;
  gap: 8px;
  background: #E9E9E9;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
}

.xl-chat__footer { display:flex; align-items:center; gap:8px; padding:10px 12px 12px; }
.xl-chat__inputWrap {
  position: relative;
}
.xl-chat__input {

  font-family: 'Montserrat';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px;
  align-items: center;
  padding: 10px 4px 4px 15px;
  width: 471px;
  height: 90px;
  margin-left: 10px;
  bottom: 19px;
  background: #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.14);
  border-radius: 16px;
}
.xl-chat__input::placeholder {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #384543;
}
.xl-chat__inputBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 0;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.xl-chat__inputBtn--mic { 
    width: 35px;
    height: 35px;
    right: 66px;
    background: linear-gradient(0deg, #384543, #384543), linear-gradient(324.05deg, #F26A6B 19.51%, #0E0599 100%);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 50px;            
 }
.xl-chat__inputBtn--send { 
  width: 56px;
  height: 56px;
  right: 4px; 
  background: #8CFAE2; 
}

/* ================= Layers Panel ================= */
.xl-layers {
  position: fixed;
  top: 60px; /* debajo del header */
  left: 0px;
  width: 425px;
  height: 100%;
  background: #F3F3F3;
  border-radius: 0px 0px 16px 0px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-top: 2px solid #FFFFFF;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  z-index: 1200;
  transform: translateX(-110%);
  transition: transform 0.8s ease;
  padding-bottom: 50px;
}
.xl-layers.is-open { transform: translateX(0); }
.xl-layers__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0px 0px 25.73px;
  gap: 8px;
}
.xl-layers__tabs { display:flex; gap:8px; }
.xl-layers__tabs > button {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #383838;
  cursor: pointer;
}
.xl-layers__tabs>button.is-active {
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  gap: 8px;
  background: #383838;
  border-radius: 8px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #E2F5FF;
}
.xl-layers__close { 
  width: 40px; 
  height: 40px; 
  right: 0px;
  border: 1px solid #e5e7eb; 
  background:#F6F6F6;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 50px 0px 0px 50px;
  cursor:pointer;
}
.xl-layers__content { overflow-y:auto; }
.xl-layers__group { 
  background: #FFFFFF;
  border-bottom: 1px solid #f1f5f9; 
  margin: 4px 20px 2px 20px;
  gap: 4px;
}

.xl-layers__groupHeader { display:flex; align-items:center; gap:10px; padding:12px 14px; }
.xl-layers__expander { 
  width: 24px; height: 24px; border: 0; background: transparent; color:#6b7280; 
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; 
  transform: rotate(0deg); transition: transform .15s ease;
}
.xl-layers__expander.is-open { transform: rotate(90deg); }
/*.xl-layers__content .xl-layers__group:first-of-type { background: transparent; }
.xl-layers__content .xl-layers__group:first-of-type .xl-layers__groupHeader {
  background: #FFFFFF;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}*/
.xl-layers__thumb { width:96px; height:96px; border-radius:12px; box-shadow: inset 0 0 0 2px #e5e7eb; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.xl-layers__thumbImg { width:98px; height:98px; object-fit: contain; filter: saturate(1); }
.xl-layers__groupTitle { 
  font-family: 'Montserrat'; 
  font-style: normal;
  font-weight:500; 
  font-size: 16px;
  line-height: 20px;
  color:#000000; 
  flex:1; 
}
.xl-layers__iconBtn { 
    width: 35px;
    height: 35px;
    align-items: center;
    gap: 8px;
    width: 35px;
    height: 35px;
    background: #F6F6F6;
    border-radius: 50px;
    cursor: pointer;
}

.xl-layers__item { display:flex; align-items:center; gap:12px; padding:8px 16px; }
.xl-layers__items { padding: 6px 0 12px; }
.xl-layers__itemIcon { width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; color:#6b7280; }
.xl-layers__itemLabel { flex:1; font-family:'Montserrat'; color:#111827; font-size:14px; }
.xl-layers__itemTools { display:flex; gap:8px; }
.xl-layers__chip { width:30px; height:30px; border-radius:999px; border:1px solid #e5e7eb; background:#F6F6F6; color:#111827; align-items:center; justify-content:center; cursor:pointer; }

/* Escenarios: tamaños más compactos sin afectar Capas */
.xl-scen .xl-layers__groupHeader { padding: 8px 12px; }
.xl-scen .xl-layers__thumb { width:26px; height:34px; }
.xl-scen .xl-layers__thumbImg { width:20px; height:20px; }
.xl-scen .xl-layers__groupTitle { font-size: 15px; }
.xl-scen .xl-layers__item { padding:6px 12px; }
.xl-scen .xl-layers__itemLabel { font-size: 13px; }
.xl-scen .xl-layers__chip { width:28px; height:28px; }

/* Tooltip de leyenda para LayersPanel */
.xl-legendTooltip {
  position: fixed;
  background: #25323A;
  color: #E2F5FF;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  z-index: 3000;
}
.xl-legendTooltip img { display:block; max-width: 220px; height: auto; }

@media (max-width: 560px) {
  .xl-layers { left: 12px; right: 12px; width: auto; }
}

/* Ocultar por completo toolbars por defecto de Cesium si existieran */
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-selectionIndicatorContainer,
.cesium-viewer-infoBoxContainer,
.cesium-viewer-navigationContainer {
  display: none !important;
}

/* ===== Atributos (panel_atr) estilo similar a LayersPanel ===== */
.xl-attrPanel {
  display: none;
  position: fixed;
  top: 60px;
  left: 0px;
  width: 425px;
  height: 100%;
  background: #F3F3F3;
  border-radius: 0px 0px 16px 0px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-top: 2px solid #FFFFFF;
  overflow: auto;
  z-index: 1200;
}
.xl-attrPanel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F3F3F3;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 0px 0px 25.73px;
}
.xl-attrPanel__tabs { display: flex; gap: 8px; }
.xl-pill {
  background: #ffffff;
  color: #383838;
  border-radius: 8px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  padding: 4px 8px;
}
.xl-pill.is-active {
  background: #383838;
  border-radius: 8px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #E2F5FF;
  padding: 4px 8px;
}
.xl-pill_verde {
  background: #8CFAE2;
  color: #383838;
  border-radius: 8px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  padding: 4px 8px;
}
.xl-attrPanel__tools { display: flex; align-items: center; gap: 8px; }
.xl-attrPanel__pdf {
  border: 0;
  background: #F55;
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.xl-attrPanel__close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.xl-attrPanel__content {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}
.xl-attrCard {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}
.xl-attrCard__title {
  background: #E2F5FF;
  padding: 6px 8px;
  border-radius: 6px;
  gap: 8px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #383838;
}
.xl-attrCard__body table { width: 100%; border-collapse: collapse; }
.xl-attrTable { width: 100%; border-collapse: collapse; }
.xl-attrRowTitle td {
  padding: 10px 8px 0;
  border: none;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  color: #383838;
}
.xl-attrRowValue td {
  padding: 2px 8px 10px;
  border-bottom: 1px solid #E5E9E8;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #383838;
}

@media (max-width: 560px) {
  .xl-attrPanel { left: 12px; right: 12px; width: auto; }
}

/* ===== Login new layout ===== */
.xl-login { display: grid; grid-template-columns: 480px 1fr; height: 100vh; }
.xl-login__left { padding: 48px 48px 24px 56px; display:flex; flex-direction:column; gap:24px; background:#ffffff; align-items:center; position: relative; }
.xl-login__right { position: relative; background: url('/images/iglesia.png') center/cover no-repeat; }
.xl-login__claim {
  position: absolute;
  top: 70.68px;
  right: 56px;
  max-width: 220px;
  text-align: right;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  color: #FFFFFF;
}
.xl-login__claimMobile {
  display: none;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #384543;
  text-align: center;
  max-width: 320px;
}
.xl-help { position: absolute; top: 16px; right: 16px; color:#384543; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; width: 36px; height: 36px; background: #FFFFFF; border: 1px solid #e5e7eb; border-radius: 50px; box-shadow: 0 2px 4px rgba(0,0,0,0.06); }
.xl-help:hover { background:#F8F9FA; }
.xl-help i { font-size: 18px; }
.xl-login__brand { margin-top: 24px; padding: 0px; width: 100%; display:flex; justify-content:center; }
.xl-login__form { display:flex; flex-direction:column; gap:16px; max-width: 90%; }
.xl-login__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
}
.xl-input {
  width: 313.8px;
  height: 40px;
  border: 1px solid #B0B7BF;
  background: #FFFFFF;
  border: 1px solid #B0B7BF;
  border-radius: 8px;
  padding: 0 12px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
}
/* Mantener el borde en foco pese a reglas globales */
.xl-login__left .xl-input:focus,
.xl-login__left .xl-input:focus-visible {
  border: 1px solid #B0B7BF !important;
  outline: none;
  box-shadow: none;
}
/* Forzar estilo cuando el navegador autocompleta (Chrome/Edge) */
.xl-login__left .xl-input:-webkit-autofill,
.xl-login__left .xl-input:-webkit-autofill:hover,
.xl-login__left .xl-input:-webkit-autofill:focus,
.xl-login__left .xl-input:-webkit-autofill:active {
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px #FFFFFF inset;
  -webkit-box-shadow: 0 0 0px 1000px #FFFFFF inset;
  border: 1px solid #B0B7BF;
  border-radius: 8px;
}
/* Firefox */
.xl-login__left .xl-input:-moz-autofill {
  box-shadow: 0 0 0px 1000px #FFFFFF inset;
  -moz-box-shadow: 0 0 0px 1000px #FFFFFF inset;
  -moz-text-fill-color: #000000;
  caret-color: #000000;
  border: 1px solid #B0B7BF;
  border-radius: 8px;
}
.xl-inputWrap { position:relative; }
.xl-eye {
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:25px;
  height:25px;
  border:0;
  background: url('/Icons/eyegris.png') center/25px 25px no-repeat transparent;
  cursor:pointer;
}
.xl-login__extras { margin-top: 6px; }
.xl-recaptcha { height: 78px; width: 304px; border-radius: 10px; background:#ffffff; box-shadow: 0 1px 2px rgba(0,0,0,.1); border:1px solid #E5E7EB; display:flex; align-items:center; justify-content:center; color:#6B7280; }
.xl-login__submit {
  margin-top: 8px;
  width: 191.9px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: #8CFAE2;
  padding: 10px 62px;
  gap: 8px;
  cursor: pointer;
  align-self: center;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
}
.xl-login__msg { color:#2563EB; margin: 4px 0; }
.xl-login__link {
  color: #384543;
  text-decoration: underline;
  font-size: 14px;
  align-self: center;
  height: 17px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
}

@media (max-width: 980px) {
  .xl-login { grid-template-columns: 1fr; }
  .xl-login__right { display: none; }
}

@media (max-width: 600px) {
  .xl-login {
    min-height: 100vh;
    justify-items: center;
    align-items: center;
    padding: 16px;
  }
  .xl-login__left {
    width: 100%;
    padding: 32px 20px 40px;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .xl-login__claimMobile {
    display: block;
  }
  .xl-login__brand {
    margin-top: 8px;
  }
  .xl-login__form {
    width: 100%;
    max-width: 340px;
    align-items: stretch;
  }
  .xl-login__field {
    width: 100%;
  }
  .xl-input {
    width: 100%;
  }
  .xl-recaptcha {
    width: 100%;
    max-width: 304px;
    margin: 0 auto;
  }
  .xl-login__submit,
  .xl-login__link {
    align-self: center;
  }
}
 
 .coordsDisplay {
   position: absolute;
   bottom: 10px;
   left: 10px;
   padding: 4px 8px;
   gap: 8px;
   background: rgba(0, 0, 0, 0.39);
   color: #FFFFFF;
   font-family: 'Montserrat';
   font-style: normal;
   font-weight: 400;
   font-size: 12px;
   line-height: 133.7%;
   text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.45);
   align-items: flex-end;
   text-align: right;
}

/* Final mobile overrides to ensure toolbar is visible */
@media (max-width: 820px) {
  .xl-header__toolsMobile { display: inline-flex !important; }
}

/* Mobile overrides for floating controls: keep watermark bottom-right,
   center only the buttons column vertically */
@media (max-width: 820px) {
  .xl-floatingControls {
    right: 26px;
    bottom: 86px;
    top: auto;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .xl-floatingButtons {
    position: fixed;
    right: 10px;
    top: 180px;
    transform: translateY(-50%);
    margin: 0;
  }
  /* Show floating clean button below extend when visible */
  #btnHeaderCleanFloating {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
  }
  /* Watermark: smaller logo, hide reserved text */
  .xl-floatingWatermark img[alt="XphereLab"] { width: 60px !important; height: auto !important; }
  .xl-floatingWatermark img[alt="Derechos Reservados"] { display: none !important; }
  /* Place user/avatar block at bottom-right on mobile */
  .xl-header__right { display: none; }
  .xl-header__userMobile {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1300;
    display: inline-flex;
    align-items: center;
  }
  /* Make instruction menu full-width */
  .xl-header__bar { padding: 0; }
  .xl-header__left { width: 100%; }
  .xl-instructionMenu {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0 0 16px 16px;
    padding: 0px 12px;
    overflow: hidden;
    gap: 0;
    padding-right: 0;
  }
  /* Shrink brand logo */
  .xl-branddd__button img[alt="XphereLab"] { width: 113px !important; height: 29px !important; }
  /* Floating mic button bottom center */
  .xl-micMobile { display: none; }
  /* Optionally hide mic inside the top full-width bar to avoid duplication */
  .xl-instructionMenu .xl-instructionMenu__btn { display: none; }
  /* Stretch the green send button to cover the right side */
  .xl-instructionMenuStarts__btn {
    align-self: stretch;
    height: 100% !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
border-radius: 50px 0px 16px 50px;
    padding: 0 16px !important;
    min-width: 65px;
    margin: 0;
  }
  /* Brand container with white background on mobile */
  .xl-branddd { 
    background: #FFFFFF; 
    border-radius: 16px 16px 16px 16px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }
  .xl-branddd__button { margin: 0 auto; }
  /* Tool buttons look */
  .xl-header__toolsMobile .xl-instructionMenu__tools {
    width: 35px; height: 35px; background: #E5E5E5; box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    display: inline-flex; align-items: center; justify-content: center; border: 0;
  }
  /* Make the mic button slightly bigger with custom background */
  .xl-header__toolsMobile .xl-instructionMenu__tools[title="Hablar"] {
    width: 44px;
    height: 44px;
    background: #85F9E1;
    /*border-radius: 16px;*/
  }
  .xl-header__toolsMobile .xl-instructionMenu__tools[title="Hablar"] img[alt="Hablar"] {
    width: 16px; height: 22px;
  }
  .xl-header__toolsMobile .avatar {
    width: 32px; height: 32px; font-size: 14px; line-height: 32px;
  }
  /* Open dropdown menus upward when inside the bottom tools bar */
  .xl-header__toolsMobile .xl-branddd__menu {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
    left: auto;
  }
  /* Force left-to-right opening for measure/categorize dropdowns in the bottom bar */
  .xl-header__toolsMobile .xl-menu--ltr {
    left: 0 !important;
    right: auto !important;
  }
  /* Mic active state (if app adds .is-on) */
  .xl-header__toolsMobile .xl-instructionMenu__tools.is-on {
    background: #8CFAE2;
  }
}
#offcanvasLabel {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: #000000;
}
#offcanvasSubtitle {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #383838;
}
#EstatOffcanvas .offcanvas-header { background: #F3F3F3; }
#EstatOffcanvas .offcanvas-headerText {
  padding-right: 56px; /* space reserved for close button */
}
.xl-offcanvasClose {
  background-color: #F6F6F6;
  /* keep default background-image (the X) */
  opacity: 1;
  background-size: 12px 12px;
  /* keep X visible inside the 32px circle */
  width: 30px;
  height: 30px;
  right: 7px; /* compensate header padding so right edge aligns with panel edge */
  top: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 50px 0px 0px 50px;
  position: absolute;
}

.offcanvas-headerText {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Replace default X with same image used in Layers close button */
.xl-offcanvasClose {
  -webkit-mask: none; mask: none; /* ensure Bootstrap's svg X is not masking */
  background-image: url('/Icons/closelayers.png');
  background-repeat: no-repeat;
  background-position: center;
}

/* Stats cards inside offcanvas */
#EstatOffcanvas .xl-statsCard {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  margin: 12px 12px 8px 12px;
  padding: 12px;
}
#EstatOffcanvas .xl-statsCard + .xl-statsCard { margin-top: 8px; }

/* Stats offcanvas sizing to match Layers panel */
#EstatOffcanvas.offcanvas {
  width: 425px; /* same as .xl-layers */
  top: 60px;   /* align with layers panel below header */
  background: #F3F3F3;
}
#EstatOffcanvas .xl-statsBody {
  overflow-y: auto;
  max-height: calc(100vh - 60px - 64px); /* viewport minus top offset and header height approx */
  padding-bottom: 12px;
}
@media (max-width: 980px) {
  #EstatOffcanvas.offcanvas { left: 12px; right: 12px; width: auto; }
}
