* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

.fondo {
  background: url('../assets/fondo.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
}

.edificio {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 800px;
  gap: 0;
}

.piso {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.piso + .piso {
  margin-top: -1px;
}

.piso .imagen-piso {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  transition: opacity 0.3s ease-in-out;
}

.boton-popup {
  position: absolute;
  top: 15%;    
  right: 25%;    
  transform: translate(50%, -50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.boton-popup img {
  width: 40px;   
  height: 40px;
}

.popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-contenido {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
}

.cerrar-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: #52B200;
  cursor: pointer;
}

.popup-botones .btn {
  display: block;
  padding: 0.8rem;
  border-radius: 12px;
  margin: 1rem 0;
  text-decoration: none;
  font-weight: bold;
}

.btn.green {
  background-color: #B4F000;
  color: #000;
}

.piso-irregular .boton-popup {
  top: 45%; 
}

.btn.dark {
  background-color: #202A25;
  color: #fff;
}

@media (max-width: 480px) {
  .boton-popup img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .popup-contenido {
    padding: 1rem;
  }
  .boton-popup img {
    width: 30px;
    height: 30px;
  }
  .btn {
    font-size: 0.9rem;
  }
}