@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;
  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 plantas */
.planta-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cuadro de texto */
.sign {
  position: absolute;
  width: 250px;
  background-color: rgba(100, 100, 100, 0.7);
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  padding: 17px;
  top: 50px;
  left: 50px;
  z-index: 1000;
}

.sign h1 {
  margin-bottom: 7px;
  font-size: 24px;
  color: white;
  font-family: 'Segoe UI', Roboto;
  font-weight: 350;
}

.sign p {
  margin-top: 0;
  font-size: 16px;
  color: white;
  font-family: 'Segoe UI', Roboto;
  font-weight: 350;
}

/* Contenedor de las imágenes de las plantas */
.plantas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
    height: 80%;
    width: 40%;
}

@keyframes flotar {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-3%) translateX(1%);
  }
}

/* Estilos de las imágenes de las plantas y su hover */
.planta_1,
.planta_2,
.planta_3 {
  position: absolute;
  transition: transform 0.4s ease, z-index 0s 0.4s;
  animation: flotar 3s ease-in-out infinite;
  cursor: pointer; 
}


.planta_1:hover,
.planta_2:hover,
.planta_3:hover {
  transform: scale(1.6);
  /* Hacemos el hover un poco más pronunciado */
  z-index: 1001;
  transition: transform 0.4s ease, z-index 0s;
  animation-play-state: paused;
}

.planta_1 img,
.planta_2 img,
.planta_3 img {
  width: 130%;
  height: auto;
  display: block;
  pointer-events: auto;
}

/* Cuadros de información */
.info-box_1,
.info-box_2,
.info-box_3 {
  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_1 h3,
.info-box_2 h3,
.info-box_3 h3 {
  color: black;
  font-family: 'Segoe UI', Roboto;
  font-size: 16px;
  margin: 0;
}

/* Posición del info-box */
.info-box_1 {
  top: -8%;
  left: 26%;
}

.info-box_2 {
  top: -15%;
  left: 20%;
}

.info-box_3 {
  top: 112%;
  left: 80%;
}

.planta_1:hover .info-box_1,
.planta_2:hover .info-box_2,
.planta_3:hover .info-box_3 {
  opacity: 1;
  pointer-events: auto;
}

/* Posicionamiento y tamaño de cada planta (más grandes y ajustadas) */
.planta_1 {
  z-index: 777;
  width: 500px;
  top: 57%;
  left: 22%;
  animation-delay: 0s;
}

.planta_2 {
  z-index: 888;
  width: 450px;
  top: 34%;
  left: 84%;
  animation-delay: 1s;
}

.planta_3 {
  z-index: 999;
  width: 400px;
  top: 19%;
  left: 138%;
  animation-delay: 2s;
}


/* Responsive (móvil) */
@media (max-width: 768px) {

  body,
  html {
    display: block;
  }


  .lang-dropdown {
    right: 10%;
  }

  .logos-left img {
    height: 20px;
    margin-right: 5px;
  }

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

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

  #logoModal .cerrar-modal {
    top: -15px;
  }

  .img-container {
    right: 20%;
    display: none;
  }

  .current-lang-button {
    font-size: 1em;
    padding: 0;
    height: 100%;
  }

  .dropdown-arrow {
    border-top-width: 4px;
    border-left-width: 3px;
    border-right-width: 3px;
  }

  .lang-dropdown a {
    font-size: 0.75em;
    padding: 6px 8px;
  }

  .language-selector {
    margin-top: 5px;
  }

  .bottom-footer {

    align-items: center;
    justify-content: center;
    padding: 15px;
    height: auto;
    text-align: center;
  }

  .bottom-footer .creditos,
  .bottom-footer .logo-group {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .bottom-footer .creditos img,
  .bottom-footer .logo-group img {
    height: 40px;
    margin: 5px;
  }

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

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

  .planta-container {
    height: 70%;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    width: 100%;
    top: 25%;
  }

  .plantas-wrapper {
    display: flex !important;
    flex-direction: column-reverse;
    align-items: center;
    gap: 30px;
    width: 100%;
    position: relative !important;
            height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
  }

  .planta_1,
  .planta_2,
  .planta_3 {
    position: relative !important;
    width: 50% !important;
    max-width: 400px;
    top: 0% !important;
    left: -2% !important;
    z-index: 2;
  }

  .planta_1 img,
  .planta_2 img,
  .planta_3 img {
    width: 100%;
    height: auto;
    display: block;
  }

  .planta_1 a,
  .planta_2 a,
  .planta_3 a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
  }

  .info-box_1,
  .info-box_2,
  .info-box_3 {
    position: relative;
    pointer-events: none;
    width: 100%;
    margin-top: 10px;
  }

  .sign {
    width: 60%;
    margin: 20px auto !important;
    padding: 15px;
    top: -27%;
  }

  .sign h1 {
    font-size: 1.2em;
  }

  .sign p {
    font-size: 0.95em;
  }

  /* Ajustes footer */

  .footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 70px;

  }

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

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

@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: 60%;
    white-space: nowrap;
  }
}

@media(max-height: 500px) {

  body,
  html {
    overflow: hidden;
    display: block;
  }


  .lang-dropdown {
    right: 10%;
  }

  .logos-left img {
    height: 20px;
    margin-right: 5px;
  }

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

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

  #logoModal .cerrar-modal {
    top: -15px;
  }

  #logoModal .imagen-contenedor {
    max-width: 80%;
    max-height: 80%;

  }

  .img-container {
    right: 20%;
    display: none;
  }

  .current-lang-button {
    font-size: 1em;
    padding: 0;
    height: 100%;
  }

  .dropdown-arrow {
    border-top-width: 4px;
    border-left-width: 3px;
    border-right-width: 3px;
  }

  .lang-dropdown a {
    font-size: 0.75em;
    padding: 6px 8px;
  }

  .language-selector {
    margin-top: 5px;
  }

  .bottom-footer {

    align-items: center;
    justify-content: center;
    padding: 15px;
    height: auto;
    text-align: center;
  }

  .bottom-footer .creditos,
  .bottom-footer .logo-group {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .bottom-footer .creditos img,
  .bottom-footer .logo-group img {
    height: 40px;
    margin: 5px;
  }

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

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

  .planta-container {
    position: relative;
    width: 900px;
    height: 700px;
  }

  /* Cuadro de texto */
  .sign {
        position: absolute;
        width: auto;
        background-color: rgba(100, 100, 100, 0.7);
        border-radius: 10px;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
        padding: 17px;
        top: 38px;
        left: 35px;
        z-index: 1000;
  }

  .sign h1 {
    margin-bottom: 7px;
    font-size: 24px;
    color: white;
    font-family: 'Segoe UI', Roboto;
    font-weight: 350;
  }

  .sign p {
    margin-top: 0;
    font-size: 16px;
    color: white;
    font-family: 'Segoe UI', Roboto;
    font-weight: 350;
  }

  /* Contenedor de las imágenes de las plantas */
  .plantas-wrapper {
         position: absolute;
        top: 0;
        left: -10%;
        width: 100%;
        height: 47%;
  }

  .planta_1 img,
  .planta_2 img,
  .planta_3 img {
    width: 70%;
    height: auto;
    display: block;
    pointer-events: auto;
  }

  /* Cuadros de información */
  .info-box_1,
  .info-box_2,
  .info-box_3 {
    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_1 h3,
  .info-box_2 h3,
  .info-box_3 h3 {
    color: black;
    font-family: 'Segoe UI', Roboto;
    font-size: 16px;
    margin: 0;
  }

  /* Posición del info-box */
  .info-box_1 {
    top: -20%;
    left: 40%;
  }

  .info-box_2 {
    top: -30%;
    left: 45%;
  }

  .info-box_3 {
    top: 150%;
    left: 80%;
  }

  .planta_1:hover .info-box_1,
  .planta_2:hover .info-box_2,
  .planta_3:hover .info-box_3 {
    opacity: 1;
    pointer-events: auto;
  }

  /* Posicionamiento y tamaño de cada planta (más grandes y ajustadas) */
  .planta_1 {
    z-index: 777;
    width: 500px;
    top: 57%;
    left: 16%;
    animation-delay: 0s;
  }

  .planta_2 {
    z-index: 888;
    width: 450px;
    top: 34%;
    left: 42%;
    animation-delay: 1s;
  }

  .planta_3 {
    z-index: 999;
    width: 400px;
    top: 19%;
    left: 64%;
    animation-delay: 2s;
  }

  /* Ajustes footer */

  .footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 70px;

  }

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

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

@media (max-width: 768px) and (max-height: 500px) {
      .planta-container {
         top: 5%; /* Ajusta para que no se salga */
    height: 80%;
    }
    .sign {
        left: 23px;
    }
  .plantas-wrapper {
    display: block !important;
            height: 120%;
  }

  .planta_1 {
    position: absolute !important;
    width: 500px  !important;
    top: 57%  !important;
    left: 16%  !important;
  }

  .planta_2 {
    position: absolute !important;
    width: 450px  !important;
    top: 34%  !important;
    left: 36% !important;
  }

  .planta_3 {
    position: absolute !important;
    width: 400px !important;
    top: 19% !important;
    left: 54% !important;
  }
}

@media (min-width: 1000px) and (max-height: 500px) {
      .planta-container {
         top: 5%; /* Ajusta para que no se salga */
    height: 80%;
    }
    .sign {
        left: 23px;
    }
  .plantas-wrapper {
    display: block !important;
            height: 120%;
                    left: 40%;
  }

  .planta_1 {
    position: absolute !important;
    width: 500px  !important;
    top: 57%  !important;
    left: 16%  !important;
  }

  .planta_2 {
    position: absolute !important;
    width: 450px  !important;
    top: 34%  !important;
    left: 36% !important;
  }

  .planta_3 {
    position: absolute !important;
    width: 400px !important;
    top: 19% !important;
    left: 54% !important;
  }
}
