@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@350&display=swap');

body,
html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  color: #333;
  touch-action: none;
  background-color: rgba(205, 205, 205);
  font-family: 'Segoe UI', Roboto;
}

/**/
/* Estilos para el nuevo modal sin zoom */
#logoModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
    flex-direction: column;
}

#logoModal .imagen-contenedor {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#logoModal .imagen-sin-zoom {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  transform-origin: center center;
}

#logoModal .cerrar-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

#logoModal .cerrar-modal:hover,
#logoModal .cerrar-modal:focus {
  color: #bbb;
  text-decoration: none;
}

/**/
/**/

.footer-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  padding: 10px 20px;
  flex-direction: row;
  justify-content: space-between;
  z-index: 10;
  color: white;
  box-sizing: border-box;
  display: flex;
}

.logos-left {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-start;
}

.logos-right {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
  flex-direction: row;
}

.top-icons {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
  gap: 10px;
}

.bandera {
  width: 30px;
  height: auto;
}

.logos-left img {
  height: 25px;
  padding-left: 0.2%;
  margin-right: 5px;
}

.marq-logo {
  height: 50px;
  object-fit: contain;
}

/**/


/* Estilos para el overlay superior/inferior */
.top {
  position: fixed;
  /* Lo fijamos en la parte superior */
  width: 100%;
  height: 3%;
  /* Altura de la barra superior para móvil */
  background-color: rgba(255, 255, 255, 0.5);
  /* Color de fondo de la barra superior */
  display: flex;
  /* Usamos flexbox */
  align-items: center;
  /* Centrar verticalmente los elementos */
  justify-content: space-between;
  /* Reparte el espacio */
  z-index: 9995;
  /* Asegura que esté por encima del resto del contenido */
}

.top>a {
  margin-left: 85%;
  white-space: nowrap;
}

.language-selector {
  position: relative;
  /* Para posicionar el desplegable respecto a este contenedor */
  display: inline-block;
  /* Ocupa solo el espacio necesario */
  margin-left: auto;
  /* ESTO ES CLAVE: Empuja el selector de idioma a la derecha */
  z-index: 11;
  /* Asegura que esté por encima de otros elementos */
  height: 100%;
  padding-right: 2%;
  padding-left: 1%;
  width: 1.9%;
}

.current-lang-button {
  background-color: rgba(255, 255, 255, 0);
  /* Fondo del botón actual */
  color: black;
  border-radius: 8px;
  border: none;
  /* Bordes redondeados */
  cursor: pointer;
  font-size: 1em;
  height: 100%;
  /* Ancho mínimo para que se vea bien "ES" o "EN" */
  text-align: center;
  width: 110%;

  display: flex;
  /* Usamos flexbox para alinear el texto y la flecha */
  align-items: center;
  /* Centramos verticalmente */
}

/* Estilo para el texto dentro del botón */
.lang-text {
  margin-right: 8px;
  /* Espacio entre el texto y la flecha */
}

/* Estilo para el icono de la flecha */
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid black;
  /* La flecha apunta hacia abajo por defecto */
  transition: transform 0.3s ease;
}

/* Estilo para la flecha cuando el menú está abierto */
.dropdown-arrow.open {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  /* Oculto por defecto */
  position: absolute;
  background-color: rgba(255, 255, 255, 0.5);
  /* Fondo del menú desplegable */
  z-index: 1;
  border-radius: 8px;
  right: 33%;
  /* Alinea el desplegable a la derecha del botón */
  top: 100%;
  /* Coloca el desplegable justo debajo del botón */
  margin-top: 5px;
  /* Pequeño espacio entre botón y desplegable */
  overflow: hidden;
  /* Asegura que los bordes redondeados se vean bien */

}

.lang-dropdown a {
  color: black;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.lang-dropdown a:hover {
  background-color: #575757;
  color: white;
  /* Color al pasar el ratón */
}

.lang-dropdown.show {
  display: block;
  /* Clase para mostrar el desplegable con JavaScript */
}


/* Contenedor de pagina */
.pagina {
  position: fixed;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  width: auto;
  height: 150px;
  background-color: rgba(100, 100, 100, 0.7);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 19px 0;
  z-index: 999;
}


.ui-controls {
  gap: 15px;
  padding: 0 10px;
}

.flecha {
  width: 100%;
  height: 100%;
  border: none;
  color: white;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flecha img {
  width: 20%;
  height: 20%;

}

.casa img {
  width: 100%;
  height: 100%;

}

.flecha:disabled {
  background-color: #cccccc;
  /* Color cuando el botón está deshabilitado */
  cursor: not-allowed;
}


/* Contenedor de plantas */
.planta-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  overflow: hidden;
  /* para que no se salga el zoom */
}

.planta-container {
  position: relative;
  width: 1920px;
  /* tamaño real del plano base */
  height: 1080px;
}

.planta-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Que ocupe todo el ancho del contenedor */
  height: 100%;
  /* Que ocupe todo el alto del contenedor */
  object-fit: contain;
  /* Asegura que la imagen mantenga proporción */
  z-index: 1;
}

.planta-container img:nth-child(1) {
  top: -3%;
  left: -1%;
  z-index: 3;
  /* Imagen del fondo */
}

.planta-container img:nth-child(2) {
  top: -2%;
  left: 1%;
  z-index: 2;
  /* Imagen del fondo */
}

.planta-container img:nth-child(3) {
  top: -2%;
  left: 1%;
  z-index: 3;
  /* Imagen del fondo */
}

.planta-container img:nth-child(4) {
  top: 5%;
  left: 18%;
  z-index: 4;
  /* Imagen encima */
  width: 70%;
  height: 70%;
}

.planta-container img:nth-child(5) {
  top: 5%;
  left: 18%;
  z-index: 5;
  /* Imagen encima */
  width: 70%;
  height: 70%;
}

.planta-container img:nth-child(6) {
  top: 5%;
  left: 18%;
  z-index: 6;
  /* Imagen encima */
  width: 70%;
  height: 70%;
}

.planta-container a:nth-child(7)>img {
  top: 30%;
  left: 40.5%;
  height: 7%;
  width: 6%;
  z-index: 999;
}

.planta-container a:nth-child(8)>img {
  top: 28.8%;
  left: 60.5%;
  height: 7%;
  width: 6%;
  z-index: 999;
}

.planta-container a:nth-child(9)>img {
  top: 23%;
  left: 63.8%;
  height: 7%;
  width: 6%;
  z-index: 999;
}

.planta-container a:nth-child(10)>img {
  top: 17.2%;
  left: 57.5%;
  height: 5%;
  width: 3%;
  z-index: 999;
}


/* Cuadros de información */
.info-box_7,
.info-box_8,
.info-box_9,
.info-box_10 {
  background-color: white;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(80, 80, 80, 0.5);
  z-index: 1001;
  position: absolute;
  padding: 4px 6px;
  white-space: nowrap;
}

.info-box_7 h3,
.info-box_8 h3,
.info-box_9 h3,
.info-box_10 h3 {
  color: black;
  font-family: 'Segoe UI', Roboto;
  font-weight: 350;
  font-size: 16px;
  margin: 0;
}

/* Posición del info-box */
.info-box_7 {
  top: 29%;
  left: 40.5%;
}

.info-box_8 {
  top: 27.8%;
  left: 60.5%;
}

.info-box_9 {
  top: 20.5%;
  left: 63.8%;
}

.info-box_10 {
  top: 13.8%;
  left: 56.5%;
}

.planta-container a:nth-child(7):hover .info-box_7,
.planta-container a:nth-child(8):hover .info-box_8,
.planta-container a:nth-child(9):hover .info-box_9,
.planta-container a:nth-child(10):hover .info-box_10 {
  opacity: 1;
  pointer-events: auto;
}




/*leyenda*/
.container-leyenda {
  position: fixed;
  width: auto;
  height: auto;
  bottom: 14%;
  right: 6%;
  background-color: rgba(100, 100, 100, 0.7);
  padding: 7px;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.leyenda {
  position: relative;
  z-index: 999;
  width: 90%;
}

.leyenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 350;
}

.leyenda-header h2 {
  color: white;
  font-family: 'Segoe UI', Roboto;
  font-size: 20px;
  font-weight: 350;
}

.leyenda-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6%;

  /* elimino height para que se adapte al contenido */
}

.filtro-icono {
  position: absolute;
  top: 7%;
  left: 79%;
  width: 40px;
  /* tamaño normal */
  height: 40px;
  z-index: 1000;
  cursor: pointer;
  /* posición normal en escritorio */

}

.color-box {
  width: 40px;
  /* tamaño fijo para todas las imágenes */
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.color-box img:hover {
  transform: scale(1.5);
}

#checkAzul {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  border: 2px solid #555;
  border-radius: 10px;
  background-image: url('../../assets/botones/boton_azul_1.png');
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  position: relative;
}

#checkAzulClaro {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  border: 2px solid #555;
  border-radius: 10px;
  background-image: url('../../assets/botones/boton_azul_claro_1.png');
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  position: relative;
}



#checkAzulClaro:checked::after,
#checkAzul:checked::after {
  content: "✔";
  color: black;
  font-size: 24px;
  font-weight: 350;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  background: transparent;
}

.leyenda-item h3 {
  margin: 0;
  /* elimina márgenes que pueden desalinear */
  color: white;
  font-family: 'Segoe UI', Roboto;
  font-size: 16px;
  font-weight: 350;
}


/* Fondo oscuro detrás del cartel */
.infobox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
}

/* Estilos del cartel emergente */
.infobox-popup {
  background-color: white;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(80, 80, 80, 0.5);
  z-index: 1001;
  position: absolute;
  padding: 4px 6px;
  white-space: nowrap;

}

.infobox-popup h3 {
  overflow-wrap: break-word;
  white-space: normal;
  margin: 0%;
}

.infobox-overlay {
  z-index: 1000;
}

.infobox-popup {
  z-index: 1001;
}


#mobileOverlay {
  display: none;
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(205, 205, 205);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#mobileOverlay .overlay-image {
  width: 22vmin;
  border-radius: 10px;
}

#mobileOverlay p {
  color: #2D2926;
  ;
  font-family: 'Segoe UI', Roboto;
  font-weight: 350;
}

#gif-container {
  position: fixed;
  width: 100%;
  height: 100%;
  display: none;
  /* oculto por defecto */
   z-index: 999;
  /* por encima de todo */
  animation: fadeIn 0.5s ease-in-out;
  overflow: hidden;
  pointer-events: none;
}

#gif-container img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15%;
  height: auto;
  margin: 0 auto;
  /* centra horizontalmente */
}

/* Animaciones suaves */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Responsive (móvil) */
@media (max-width: 768px) {
  .planta-wrapper {
    width: 100%;

  }

  .planta-container {
    position: relative;
    width: 1880px;
    height: 832px;
  }

  #mobileOverlay {
    display: flex;
  }

  #gif-container img {
    display: none;
  }
}

@media (max-width: 1100px){
 /* Ajustar leyenda */

  .container-leyenda {
    position: fixed;
    top: 7%;
    left: 5%;
    right: auto;
    bottom: auto;
    background-color: transparent;
    padding: 7px;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  }

  .leyenda-item h3 {
    font-size: 14px;
  }

  #checkAzulClaro {
    width: 30px;
    height: 30px;
  }

  #checkAzulOscuro {
    width: 30px;
    height: 30px;
  }

  #checkSmart {
    width: 30px;
    height: 30px;
  }

  .filtro-icono {
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: absolute;
    top: 5%;
    left: 5%;
    z-index: 1000;
    background-color: rgba(100, 100, 100, 0.8);
    border-radius: 10px;
  }

  .popup-content {
    width: 90%;
    height: auto;
  }

  .popup-content img {
    height: auto;
    max-height: 80vh;
    width: 100%;
  }


  .pagina {
    position: fixed;
    right: 20px;
    height: auto;
    left: auto;
    padding: 0;

  }

  .ui-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .ui-controls a {
    display: block;
  }

  .ui-controls img {
    display: block;
    width: 32px;
    height: auto;
  }

  .marq-logo {
    height: 25px;
    object-fit: contain;
  }

}

@media (max-height: 768px) {
  /* Ajustar leyenda */

  .container-leyenda {
    position: fixed;
    top: 7%;
    left: 5%;
    right: auto;
    bottom: auto;
    background-color: transparent;
    padding: 7px;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  }

  .leyenda-item h3 {
    font-size: 14px;
  }

  #checkAzulClaro {
    width: 30px;
    height: 30px;
  }

  #checkAzulOscuro {
    width: 30px;
    height: 30px;
  }

  #checkSmart {
    width: 30px;
    height: 30px;
  }

  .filtro-icono {
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: absolute;
    top: 5%;
    left: 5%;
    z-index: 1000;
    background-color: rgba(100, 100, 100, 0.8);
    border-radius: 10px;
  }

  .popup-content {
    width: 90%;
    height: auto;
  }

  .popup-content img {
    height: auto;
    max-height: 80vh;
    width: 100%;
  }


  .pagina {
    position: fixed;
    right: 20px;
    height: auto;
    left: auto;
    padding: 0;

  }

  .ui-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .ui-controls a {
    display: block;
  }

  .ui-controls img {
    display: block;
    width: 32px;
    height: auto;
  }

  .marq-logo {
    height: 25px;
    object-fit: contain;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .top {
    padding: 5px 0px;
    justify-content: center;
  }

  .language-selector {
    padding-right: 5%;
  }
}

@media (max-width: 768px) {

  .top>a {
    margin-right: 7%;
    margin-left: 50%;
    white-space: nowrap;
  }
}

@media(max-height: 500px) {
  .top>a {
    margin-right: 7%;
    margin-left: 50%;
    white-space: nowrap;
  }
}

@media(max-height: 500px) {
  #mobileOverlay {
    display: none;
  }

  #gif-container img {
    width: 30%;
  }

  /* Ajustar leyenda */

  .container-leyenda {
    position: fixed;
    top: 7%;
    left: 5%;
    right: auto;
    bottom: auto;
    background-color: transparent;
    padding: 7px;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  }


  .leyenda-item h3 {
    font-size: 14px;
  }

  #checkAzulClaro {
    width: 30px;
    height: 30px;
  }

  #checkAzulOscuro {
    width: 30px;
    height: 30px;
  }

  #checkSmart {
    width: 30px;
    height: 30px;
  }

  .filtro-icono {
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: absolute;
    top: 8%;
    left: 5%;
    z-index: 1000;
    background-color: rgba(100, 100, 100, 0.8);
    border-radius: 10px;
  }

  .popup-content {
    width: 90%;
    height: auto;
  }
    #logoModal .cerrar-modal {
    top: -15px;
  }
#logoModal .imagen-contenedor {
  max-width: 80%;
  max-height: 80%;

}
  /* Ajustar contenedor de plantas */


  .planta-wrapper {
    width: 100%;

  }

  .planta-container {
    position: relative;
    width: 1880px;
    height: 832px;
    right: 10%;
  }

  .planta-container img {
    width: 110%;
    height: 110%;
    top: -9%;
    left: -6%;
  }

  .planta-container img:nth-child(1),
  .planta-container img:nth-child(2) {
    top: -11%;
    left: -29%;
  }

  .planta-container img:nth-child(3) {
    top: -9%;
    left: -29%;
  }

  .planta-container img:nth-child(4),
  .planta-container img:nth-child(5),
  .planta-container img:nth-child(6) {
    top: -4%;
    left: -12%;
    width: 80%;
    height: 80%;
  }

  .planta-container a:nth-child(7)>img {
    top: 26%;
    left: 17%;
    height: 7%;
    width: 5%
  }

  .planta-container a:nth-child(8)>img {
    top: 24.8%;
    left: 35.2%;
    height: 7%;
    width: 5%;
  }

  .planta-container a:nth-child(9)>img {
    top: 16.5%;
    left: 37%;
    height: 7%;
    width: 5%;
  }

  .planta-container a:nth-child(10)>img {
    top: 12%;
    left: 33%;
    height: 4%;
    width: 2%;
  }

  .info-box_7 {
    top: 23%;
    left: 9%;
  }

  .info-box_8 {
    top: 31.58%;
    left: 30%;
  }

  .info-box_9 {
    top: 18%;
    left: 24.5%;
  }

  .info-box_10 {
    top: 12%;
    left: 23%;
  }

  .pagina {
    position: fixed;
    right: 20px;
    height: auto;
    left: auto;
    padding: 0;

  }

  .ui-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .ui-controls a {
    display: block;
  }

  .ui-controls img {
    display: block;
    width: 32px;
    height: auto;
  }

  .marq-logo {
    height: 25px;
    object-fit: contain;
  }

  .footer-bottom {
    bottom: -10px;
  }
}